Remove make_cleanup_restore_current_ui
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-10-21 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
4 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
5 (tui_on_no_history, tui_on_user_selected_context_changed):
6 Update.
7 * top.h (switch_thru_all_uis): New class.
8 (SWITCH_THRU_ALL_UIS): Rewrite.
9 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
10 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
11 declare.
12 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
13 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
14 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
15 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
16 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
17 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
18 (mi_breakpoint_created, mi_breakpoint_deleted)
19 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
20 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
21 (mi_memory_changed, mi_user_selected_context_changed): Update.
22 * infrun.c (all_uis_check_sync_execution_done)
23 (all_uis_on_sync_execution_starting, normal_stop): Update.
24 * event-top.c (restore_ui_cleanup)
25 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
26 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
27 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
28 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
29 (cli_on_no_history, cli_on_user_selected_context_changed):
30 Update.
31 * breakpoint.c (watchpoint_check): Update.
32
33 2016-10-21 Tom Tromey <tom@tromey.com>
34
35 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
36 "reader" argument. Update.
37 (xcoff_initial_scan): Update.
38 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
39 * mipsread.c (mipscoff_symfile_read): Update.
40 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
41 * minsyms.h (minimal_symbol_reader) <record, record_full>:
42 Declare.
43 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
44 <record_with_info>: New function, renamed from
45 prim_record_minimal_symbol_and_info.
46 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
47 globals.
48 (minimal_symbol_reader): Initialize new members.
49 (minimal_symbol_reader::record): Renamed from
50 prim_record_minimal_symbol.
51 (minimal_symbol_reader::record_full): Renamed from
52 prim_record_minimal_symbol_full.
53 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
54 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
55 (record_minimal_symbol): Add "reader" argument. Update.
56 (elfmdebug_build_psymtabs): Update.
57 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
58 "reader" argument. Update.
59 (macho_symfile_read): Update.
60 * elfread.c (record_minimal_symbol, elf_symtab_read)
61 (elf_rel_plt_read): Add "reader" argument. Update.
62 (elf_read_minimal_symbols): Update.
63 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
64 (read_dbx_symtab): Add "reader" argument. Update.
65 (dbx_symfile_read): Update.
66 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
67 "reader" argument. Update.
68 (coff_symfile_read): Update.
69 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
70 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
71 (read_pe_exported_syms): Add "reader" argument. Update.
72
73 2016-10-21 Tom Tromey <tom@tromey.com>
74
75 * xcoffread.c (xcoff_initial_scan): Update.
76 * mipsread.c (mipscoff_symfile_read): Update.
77 * minsyms.c (minimal_symbol_reader): Add obj argument.
78 Initialize member.
79 (install): Remove objfile argument. Update.
80 * mdebugread.c (elfmdebug_build_psymtabs): Update.
81 * machoread.c (macho_symfile_read): Update.
82 * elfread.c (elf_read_minimal_symbols): Update.
83 * dbxread.c (dbx_symfile_read): Update.
84 * coffread.c (coff_symfile_read): Update.
85 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
86 (constructor): Add objfile argument.
87 (minimal_symbol_reader::install): Remove objfile argument.
88
89 2016-10-21 Tom Tromey <tom@tromey.com>
90
91 * xcoffread.c (xcoff_initial_scan): Use
92 minimal_symbol_reader.
93 * mipsread.c (mipscoff_symfile_read): Use
94 minimal_symbol_reader.
95 * minsyms.h (minimal_symbol_reader): New class.
96 (init_minimal_symbol_collection)
97 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
98 Don't declare.
99 * minsyms.c (minimal_symbol_reader): Renamed from
100 init_minimal_symbol_collection, turned into constructor.
101 (~minimal_symbol_reader): Renamed from
102 do_discard_minimal_symbols_cleanup, turned into destructor.
103 (make_cleanup_discard_minimal_symbols): Remove.
104 (minimal_symbol_reader::install): Rename form
105 install_minimal_symbols.
106 * mdebugread.c (elfmdebug_build_psymtabs): Use
107 minimal_symbol_reader.
108 * machoread.c (macho_symfile_read): Use
109 minimal_symbol_reader.
110 * elfread.c (elf_read_minimal_symbols): Use
111 minimal_symbol_reader.
112 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
113 * coffread.c (coff_symfile_read): Use
114 minimal_symbol_reader.
115
116 2016-10-21 Tom Tromey <tom@tromey.com>
117
118 * top.c (new_ui_command, wait_sync_command_done)
119 (gdb_readline_wrapper): Use scoped_restore.
120 * infrun.c (fetch_inferior_event): Use scoped_restore.
121 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
122
123 2016-10-21 Tom Tromey <tom@tromey.com>
124
125 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
126 (struct restore_ui_file_closure): Remove.
127 * utils.h (make_cleanup_restore_ui_file): Don't declare.
128 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
129 scoped_restore.
130 * top.c (execute_command_to_string): Use scoped_restore.
131
132 2016-10-21 Tom Tromey <tom@tromey.com>
133
134 * common/scoped_restore.h: New file.
135 * utils.h: Include scoped_restore.h.
136 * top.c (execute_command_to_string): Use scoped_restore.
137 * python/python.c (python_interactive_command): Use
138 scoped_restore.
139 (python_command, execute_gdb_command): Likewise.
140 * printcmd.c (do_one_display): Use scoped_restore.
141 * mi/mi-main.c (exec_continue): Use scoped_restore.
142 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
143 * linux-fork.c (checkpoint_command): Use scoped_restore.
144 * infrun.c (restore_execution_direction): Remove.
145 (fetch_inferior_event): Use scoped_restore.
146 * compile/compile.c (compile_file_command): Use
147 scoped_restore.
148 (compile_code_command, compile_print_command): Likewise.
149 * cli/cli-script.c (execute_user_command): Use
150 scoped_restore.
151 (while_command, if_command, script_from_file): Likewise.
152 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
153 scoped_restore.
154
155 2016-10-21 Tom Tromey <tom@tromey.com>
156
157 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
158
159 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
160 Ulrich Weigand <uweigand@de.ibm.com>
161
162 * xcoffread.c (read_xcoff_symtab): Make name of current file as
163 pst->filename instead of _start_ in AIX.
164
165 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
166
167 * solist.h (struct target_so_ops): Delete special_symbol_handling
168 hook.
169 * solib.c (solib_add, reload_shared_libraries): Adjust.
170 * solib-aix.c (solib_aix_special_symbol_handling): Delete
171 (_initialize_solib_aix): Adjust
172 * solib-darwin.c (darwin_special_symbol_handling): Delete
173 (_initialize_darwin_solib): Adjust
174 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
175 (_initialize_dsbt_solib): Adjust
176 * solib-frv.c (frv_special_symbol_handling): Delete
177 (_initialize_frv_solib): Adjust
178 * solib-svr4.c (svr4_special_symbol_handling): Delete
179 (_initialize_svr4_solib): Adjust
180 * solib-target.c (solib_target_special_symbol_handling): Delete
181 (_initialize_solib_target): Adjust
182
183 2016-10-20 Yao Qi <yao.qi@linaro.org>
184
185 * configure.tgt: Don't configure if target is *-*-vxworks*.
186
187 2016-10-19 Pedro Alves <palves@redhat.com>
188
189 * config.in: Regenerate.
190
191 2016-10-18 Pedro Alves <palves@redhat.com>
192
193 * common/common-defs.h (__STDC_CONSTANT_MACROS)
194 (__STDC_LIMIT_MACROS): Delete.
195
196 2016-10-18 Pedro Alves <palves@redhat.com>
197
198 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
199 2692e23a48e21f6daa029e8af9f1a143b7532f47.
200 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
201 Regenerate.
202 * gnulib/import/Makefile: Update.
203 * gnulib/import/alloca: Update.
204 * gnulib/import/basename-lgpl: Update.
205 * gnulib/import/canonicalize-lgpl: Update.
206 * gnulib/import/config: Update.
207 * gnulib/import/dirent: Update.
208 * gnulib/import/dirfd: Update.
209 * gnulib/import/dirname-lgpl: Update.
210 * gnulib/import/dirname.h: Update.
211 * gnulib/import/dosname.h: Update.
212 * gnulib/import/errno: Update.
213 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
214 * gnulib/import/extra/snippet/c++defs.h: Update.
215 * gnulib/import/extra/snippet/warn-on-use.h: Update.
216 * gnulib/import/extra/update-copyright: Update.
217 * gnulib/import/flexmember.h: Update.
218 * gnulib/import/float+.h: Update.
219 * gnulib/import/float: Update.
220 * gnulib/import/float: Update.
221 * gnulib/import/fnmatch: Update.
222 * gnulib/import/fnmatch: Update.
223 * gnulib/import/fnmatch_loop: Update.
224 * gnulib/import/fpucw.h: Update.
225 * gnulib/import/frexp: Update.
226 * gnulib/import/frexpl: Update.
227 * gnulib/import/gettimeofday: Update.
228 * gnulib/import/hard-locale: Update.
229 * gnulib/import/hard-locale.h: Update.
230 * gnulib/import/inttypes: Update.
231 * gnulib/import/isnan: Update.
232 * gnulib/import/isnand-nolibm.h: Update.
233 * gnulib/import/isnand: Update.
234 * gnulib/import/isnanl-nolibm.h: Update.
235 * gnulib/import/isnanl: Update.
236 * gnulib/import/itold: Update.
237 * gnulib/import/limits: Update.
238 * gnulib/import/localcharset: Update.
239 * gnulib/import/localcharset.h: Update.
240 * gnulib/import/lstat: Update.
241 * gnulib/import/m4/00gnulib: Update.
242 * gnulib/import/m4/absolute-header: Update.
243 * gnulib/import/m4/alloca: Update.
244 * gnulib/import/m4/canonicalize: Update.
245 * gnulib/import/m4/codeset: Update.
246 * gnulib/import/m4/configmake: Update.
247 * gnulib/import/m4/dirent_h: Update.
248 * gnulib/import/m4/dirfd: Update.
249 * gnulib/import/m4/dirname: Update.
250 * gnulib/import/m4/double-slash-root: Update.
251 * gnulib/import/m4/eealloc: Update.
252 * gnulib/import/m4/errno_h: Update.
253 * gnulib/import/m4/exponentd: Update.
254 * gnulib/import/m4/exponentl: Update.
255 * gnulib/import/m4/extensions: Update.
256 * gnulib/import/m4/extern-inline: Update.
257 * gnulib/import/m4/fcntl-o: Update.
258 * gnulib/import/m4/flexmember: Update.
259 * gnulib/import/m4/float_h: Update.
260 * gnulib/import/m4/fnmatch: Update.
261 * gnulib/import/m4/fpieee: Update.
262 * gnulib/import/m4/frexp: Update.
263 * gnulib/import/m4/frexpl: Update.
264 * gnulib/import/m4/gettimeofday: Update.
265 * gnulib/import/m4/glibc21: Update.
266 * gnulib/import/m4/gnulib-cache: Update.
267 * gnulib/import/m4/gnulib-common: Update.
268 * gnulib/import/m4/gnulib-comp: Update.
269 * gnulib/import/m4/gnulib-tool: Update.
270 * gnulib/import/m4/hard-locale: Update.
271 * gnulib/import/m4/include_next: Update.
272 * gnulib/import/m4/inttypes-pri: Update.
273 * gnulib/import/m4/inttypes: Update.
274 * gnulib/import/m4/isnand: Update.
275 * gnulib/import/m4/isnanl: Update.
276 * gnulib/import/m4/largefile: Update.
277 * gnulib/import/m4/limits-h: Update.
278 * gnulib/import/m4/localcharset: Update.
279 * gnulib/import/m4/locale-fr: Update.
280 * gnulib/import/m4/locale-ja: Update.
281 * gnulib/import/m4/locale-zh: Update.
282 * gnulib/import/m4/longlong: Update.
283 * gnulib/import/m4/lstat: Update.
284 * gnulib/import/m4/malloc: Update.
285 * gnulib/import/m4/malloca: Update.
286 * gnulib/import/m4/math_h: Update.
287 * gnulib/import/m4/mbrtowc: Update.
288 * gnulib/import/m4/mbsinit: Update.
289 * gnulib/import/m4/mbsrtowcs: Update.
290 * gnulib/import/m4/mbstate_t: Update.
291 * gnulib/import/m4/memchr: Update.
292 * gnulib/import/m4/memmem: Update.
293 * gnulib/import/m4/mmap-anon: Update.
294 * gnulib/import/m4/multiarch: Update.
295 * gnulib/import/m4/nocrash: Update.
296 * gnulib/import/m4/off_t: Update.
297 * gnulib/import/m4/pathmax: Update.
298 * gnulib/import/m4/rawmemchr: Update.
299 * gnulib/import/m4/readlink: Update.
300 * gnulib/import/m4/rename: Update.
301 * gnulib/import/m4/rmdir: Update.
302 * gnulib/import/m4/signal_h: Update.
303 * gnulib/import/m4/ssize_t: Update.
304 * gnulib/import/m4/stat: Update.
305 * gnulib/import/m4/stdbool: Update.
306 * gnulib/import/m4/stddef_h: Update.
307 * gnulib/import/m4/stdint: Update.
308 * gnulib/import/m4/stdio_h: Update.
309 * gnulib/import/m4/stdlib_h: Update.
310 * gnulib/import/m4/strchrnul: Update.
311 * gnulib/import/m4/string_h: Update.
312 * gnulib/import/m4/strstr: Update.
313 * gnulib/import/m4/strtok_r: Update.
314 * gnulib/import/m4/sys_socket_h: Update.
315 * gnulib/import/m4/sys_stat_h: Update.
316 * gnulib/import/m4/sys_time_h: Update.
317 * gnulib/import/m4/sys_types_h: Update.
318 * gnulib/import/m4/time_h: Update.
319 * gnulib/import/m4/unistd_h: Update.
320 * gnulib/import/m4/warn-on-use: Update.
321 * gnulib/import/m4/wchar_h: Update.
322 * gnulib/import/m4/wchar_t: Update.
323 * gnulib/import/m4/wctype_h: Update.
324 * gnulib/import/m4/wint_t: Update.
325 * gnulib/import/malloc: Update.
326 * gnulib/import/malloca: Update.
327 * gnulib/import/malloca.h: Update.
328 * gnulib/import/math: Update.
329 * gnulib/import/math: Update.
330 * gnulib/import/mbrtowc: Update.
331 * gnulib/import/mbsinit: Update.
332 * gnulib/import/mbsrtowcs-impl.h: Update.
333 * gnulib/import/mbsrtowcs-state: Update.
334 * gnulib/import/mbsrtowcs: Update.
335 * gnulib/import/memchr: Update.
336 * gnulib/import/memmem: Update.
337 * gnulib/import/pathmax.h: Update.
338 * gnulib/import/rawmemchr: Update.
339 * gnulib/import/readlink: Update.
340 * gnulib/import/ref-add.sin: Update.
341 * gnulib/import/ref-del.sin: Update.
342 * gnulib/import/rename: Update.
343 * gnulib/import/rmdir: Update.
344 * gnulib/import/same-inode.h: Update.
345 * gnulib/import/signal: Update.
346 * gnulib/import/stat: Update.
347 * gnulib/import/stdbool: Update.
348 * gnulib/import/stddef: Update.
349 * gnulib/import/stdint: Update.
350 * gnulib/import/stdio: Update.
351 * gnulib/import/stdlib: Update.
352 * gnulib/import/str-two-way.h: Update.
353 * gnulib/import/strchrnul: Update.
354 * gnulib/import/streq.h: Update.
355 * gnulib/import/string: Update.
356 * gnulib/import/stripslash: Update.
357 * gnulib/import/strnlen1: Update.
358 * gnulib/import/strnlen1.h: Update.
359 * gnulib/import/strstr: Update.
360 * gnulib/import/strtok_r: Update.
361 * gnulib/import/sys_stat: Update.
362 * gnulib/import/sys_time: Update.
363 * gnulib/import/sys_types: Update.
364 * gnulib/import/time: Update.
365 * gnulib/import/unistd: Update.
366 * gnulib/import/unistd: Update.
367 * gnulib/import/verify.h: Update.
368 * gnulib/import/wchar: Update.
369 * gnulib/import/wctype: Update.
370 * gnulib/import/flexmember.h: New file.
371 * gnulib/import/hard-locale.c: New file.
372 * gnulib/import/hard-locale.h: New file.
373 * gnulib/import/limits.in.h: New file.
374 * gnulib/import/m4/flexmember.m4: New file.
375 * gnulib/import/m4/hard-locale.m4: New file.
376 * gnulib/import/m4/limits-h.m4: New file.
377
378 2016-10-18 Pedro Alves <palves@redhat.com>
379
380 * common/common-defs.h: Include "gdb_unique_ptr.h".
381 * common/gdb_unique_ptr.h: New.
382
383 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
384
385 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
386 is `bfd_arch_i386' before proceeding.
387 (i386_mpx_set_bounds): Likewise.
388
389 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
390
391 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
392 type for `operands'.
393
394 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
395
396 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
397 before using it.
398
399 2016-10-17 Pedro Alves <palves@redhat.com>
400
401 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
402 'int' as type.
403
404 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
405 Ulrich Weigand <uweigand@de.ibm.com>
406
407 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
408 path is set properly if program has a dependency on .a archive and
409 sysroot is set via set sysroot command.
410
411 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
412
413 * nat/linux-btrace.c: Remove leftover comment.
414
415 2016-10-14 Eli Zaretskii <eliz@gnu.org>
416
417 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
418 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
419
420 2016-10-13 Pedro Alves <palves@redhat.com>
421
422 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
423 (false, true): Remove checks.
424
425 2016-10-12 Tom Tromey <tom@tromey.com>
426
427 * machoread.c (macho_symfile_read_all_oso): Use std::string.
428
429 2016-10-12 Tom Tromey <tom@tromey.com>
430
431 * tracepoint.c (trace_dump_command): Remove unnecessary
432 null_cleanup.
433
434 2016-10-12 Tom Tromey <tom@tromey.com>
435
436 * valprint.c (generic_emit_char, count_next_character)
437 (generic_printstr): Update.
438 * charset.c (struct wchar_iterator): Move to charset.h.
439 (wchar_iterator::wchar_iterator): Rename from
440 make_wchar_iterator, turn into a constructor.
441 (wchar_iterator::~wchar_iterator): Rename from
442 do_cleanup_iterator, turn into a destructor.
443 (make_cleanup_wchar_iterator): Remove.
444 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
445 "iter" argument. Update.
446 * charset.h: Include <vector>.
447 (class wchar_iterator): New class, from old struct
448 wchar_iterator.
449 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
450 declare.
451
452 2016-10-12 Tom Tromey <tom@tromey.com>
453
454 * selftest.c: Include <vector>, not "vec.h".
455 (self_test_function_ptr): Remove.
456 (tests): Now a std::vector.
457 (register_self_test, run_self_tests): Update.
458
459 2016-10-13 Pedro Alves <palves@redhat.com>
460 Tom Tromey <tom@tromey.com>
461
462 * tid-parse.h (tid_range_parser): New class.
463 (enum tid_range_state): Move into tid_range_parser's scope.
464 Remove TID_RANGE_ prefix from all values.
465 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
466 (tid_range_parser_star_range, tid_range_parser_finished)
467 (tid_range_parser_skip, tid_range_parser_qualified): Don't
468 declare.
469 (tid_is_in_list): Update comment.
470 * tid-parse.c (tid_range_parser::tid_range_parser): New.
471 (init, finished, get_string, skip, tid_is_qualified)
472 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
473 turn into methods.
474 (tid_is_in_list): Adjust.
475 * cli/cli-utils.h (number_or_range_parser): New class.
476 (init_number_or_range, get_number_or_range)
477 (number_range_setup_range): Don't declare.
478 * cli/cli-utils.c
479 (number_or_range_parser::number_or_range_parser): New.
480 (init_number_or_range, get_number_or_range)
481 (number_range_setup_range): Rename; turn into methods.
482 (number_is_in_list): Adjust.
483 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
484 (trace_pass_command, get_tracepoint_by_number): Adjust.
485 * breakpoint.h (get_tracepoint_by_number): Adjust.
486 * inferior.c (detach_inferior_command, kill_inferior_command)
487 (remove_inferior_command): Adjust.
488 * linespec.c (decode_line_2): Adjust.
489 * memattr.c (mem_enable_command, mem_disable_command)
490 (mem_delete_command): Adjust.
491 * printcmd.c (map_display_numbers): Adjust.
492 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
493 * thread.c (thread_apply_command): Adjust.
494
495 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
496
497 * arc-newlib-tdep.c: New file.
498 * configure.tgt: Add newlib support for ARC.
499
500 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
501
502 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
503 * arc-tdep.c (arc_get_longjmp_target): New function.
504 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
505 (arc_dump_tdep): Print jb_pc.
506
507 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
508
509 * arc-tdep.h (struct gdbarch_tdep): New.
510 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
511
512 2016-10-12 Yao Qi <yao.qi@linaro.org>
513
514 PR tdep/20682
515 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
516 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
517 Assert that operand 0 and 1 can be X or D registers. Update
518 register number for D registers. Update registers in frame
519 cache.
520 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
521
522 2016-10-10 Yao Qi <yao.qi@linaro.org>
523
524 * arch/arm.h (enum arm_breakpoint_kinds): New.
525 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
526 ARM_BP_KIND_THUMB2.
527
528 2016-10-10 Yao Qi <yao.qi@linaro.org>
529
530 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
531 'gdbarch'.
532
533 2016-10-10 Yao Qi <yao.qi@linaro.org>
534
535 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
536 breakpoint instruction.
537 (v850_dbtrap_breakpoint_from_pc): Remove.
538 (v850_gdbarch_init): Update.
539
540 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
541
542 * ui-out.c (push_level): Remove "id" parameter.
543 (ui_out_begin): Update call.
544
545 2016-10-07 Joel Brobecker <brobecker@adacore.com>
546
547 GDB 7.12 released.
548
549 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
550
551 * python/python.c (gdbpy_decode_line): Call
552 string_to_event_location_basic instead of new_linespec_location.
553
554 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
555
556 * target.c (target_supports_multi_process): New function, moved
557 from...
558 * target.h (target_supports_multi_process): ... here. Remove
559 macro.
560 * target/target.h (target_supports_multi_process): New prototype.
561
562 2016-10-06 Pedro Alves <palves@redhat.com>
563
564 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
565 EXPORTED_CONST.
566 * stub-termcap.c: Remove __cplusplus checks.
567 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
568 EXTERN_C_POP): Delete.
569 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
570 (GDB_XCPT) [!__cplusplus]: Delete.
571 (throw_exception, throw_exception_sjlj): Update comments.
572 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
573 * guile/guile.c (extension_language_guile): Write "extern const"
574 instead of EXPORTED_CONST.
575 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
576 "extern const" instead of EXPORTED_CONST.
577
578 2016-10-06 Doug Evans <dje@google.com>
579
580 * python/py-value.c (valpy_long): Handle unsigned values.
581
582 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
583
584 * frame.h: Forward-declare struct ui_out.
585
586 2016-10-06 Tom Tromey <tom@tromey.com>
587
588 * MAINTAINERS: Remove Java test maintainer.
589 * varobj.h (java_varobj_ops): Don't declare.
590 * valprint.h (struct value_print_options)
591 <pascal_static_field_print>: Update comment.
592 * utils.c (producer_is_gcc): Remove java reference.
593 * symtab.h (struct general_symbol_info): Remove java references.
594 (SYMBOL_SEARCH_NAME): Likewise.
595 * objfiles.c (allocate_objfile): Update comment.
596 * linespec.c (find_linespec_symbols): Remove java references.
597 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
598 java references.
599 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
600 (TYPE_CPLUS_REALLY_JAVA): Remove.
601 * c-varobj.c (enum vsections): Update comment.
602 * symtab.c (symbol_set_language, symbol_set_names)
603 (symbol_natural_name, symbol_demangled_name)
604 (demangle_for_lookup, symbol_matches_domain)
605 (default_make_symbol_completion_list_break_on_1): Remove java
606 references.
607 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
608 * psymtab.c (match_partial_symbol, psymtab_search_name)
609 (lookup_partial_symbol): Remove java references.
610 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
611 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
612 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
613 (process_structure_scope, read_subroutine_type)
614 (read_subrange_type, load_partial_dies)
615 (new_symbol_full, determine_prefix, typename_concat)
616 (dwarf2_name): Remove java references.
617 (set_cu_language): Treat Java as C++.
618 * c-typeprint.c (c_type_print_args): Remove java reference.
619 * defs.h (enum language) <language_java>: Remove.
620 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
621 (YYOBJ, local-maintainer-clean): Don't mention java files.
622 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
623 jv-varobj.c: Remove.
624
625 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
626
627 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
628 32-bit.
629
630 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
631
632 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
633 throughout.
634
635 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
636
637 * stack.c (frame_info): Call val_print_not_saved instead of
638 val_print_unavailable if frame_id check fails.
639
640 2016-10-06 Pedro Alves <palves@redhat.com>
641
642 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
643 the cached code address.
644
645 2016-10-06 Doug Evans <dje@google.com>
646
647 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
648 "end" in all fields.
649 * features/aarch64.c: Regenerate.
650 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
651 and "enabled" fields. Correct size of "enabled" field.
652 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
653 and "enabled" fields.
654 * features/i386/i386-avx-mpx-linux.c: Regenerate.
655 * features/i386/i386-avx-mpx.c: Regenerate.
656 * features/i386/i386-avx512-linux.c: Regenerate.
657 * features/i386/i386-avx512.c: Regenerate.
658 * features/i386/i386-mpx-linux.c: Regenerate.
659 * features/i386/i386-mpx.c: Regenerate.
660 * features/arc-arcompact.c: Regenerate.
661 * features/arc-v2.c: Regenerate.
662 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
663 fields default to "bool" type.
664
665 Revert 2016-03-15 Doug Evans <dje@google.com>
666 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
667 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
668 * features/i386/64bit-core.xml (i386_eflags): Ditto.
669 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
670 * features/i386/x32-core.xml (i386_eflags): Ditto.
671
672 2016-10-05 Tom Tromey <tom@tromey.com>
673
674 PR breakpoints/20653:
675 * location.c (string_to_explicit_location): Use NULL, not '\0'.
676
677 2016-10-05 Tom Tromey <tom@tromey.com>
678
679 PR symtab/20652:
680 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
681 fields.
682
683 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
684
685 * dwarf2expr.c (dwarf_expr_require_composition): Allow
686 DW_OP_GNU_uninit.
687 (execute_stack_op): Use dwarf_expr_require_composition instead of
688 copying its logic.
689
690 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
691
692 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
693
694 2016-10-05 Yao Qi <yao.qi@linaro.org>
695
696 * features/Makefile (WHICH): Add
697 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
698 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
699 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
700 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
701 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
702 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
703 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
704 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
705 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
706
707 2016-10-05 Yao Qi <yao.qi@linaro.org>
708
709 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
710 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
711 s390x-vx-linux64.xml.
712
713 2016-10-05 Yao Qi <yao.qi@linaro.org>
714
715 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
716 amd64-expedite, and x32-expedite.
717
718 2016-10-05 Terry Guo <terry.guo@arm.com>
719 Yao Qi <yao.qi@linaro.org>
720
721 * arm-tdep.c: Adjust includes.
722 * features/Makefile (WHICH): Add "arm/" directory to arm
723 target descriptions.
724 (XMLTOC): Likewise.
725 (arm/arm-with-iwmmxt.dat): Adjust the path for
726 dependencies.
727 * features/arm-core.xml: Moved to ...
728 * features/arm/arm-core.xml: ... it.
729 * features/arm-fpa.xml: Moved to ...
730 * features/arm/arm-fpa.xml: ... it.
731 * features/arm-m-profile.xml: Moved to ...
732 * features/arm/arm-m-profile.xm: ... it.
733 * features/arm-vfpv2.xml: Moved to ...
734 * features/arm/arm-vfpv2.xm: ... it.
735 * features/arm-vfpv3.xml: Moved to ...
736 * features/arm/arm-vfpv3.xml: ... it.
737 * features/arm-with-iwmmxt.c: Moved to ...
738 * features/arm/arm-with-iwmmxt.c: ... it.
739 * features/arm-with-iwmmxt.xml: Moved to ...
740 * features/arm/arm-with-iwmmxt.xml: ... it.
741 * features/arm-with-m-fpa-layout.c: Moved to ...
742 * features/arm/arm-with-m-fpa-layout.c: ... it.
743 * features/arm-with-m-fpa-layout.xml: Moved to ...
744 * features/arm/arm-with-m-fpa-layout.xml: ... it.
745 * features/arm-with-m-vfp-d16.c: Moved to ...
746 * features/arm/arm-with-m-vfp-d16.c: ... it.
747 * features/arm-with-m-vfp-d16.xml: Moved to ...
748 * features/arm/arm-with-m-vfp-d16.xml: ... it.
749 * features/arm-with-m.c: Moved to ...
750 * features/arm/arm-with-m.c: ... it.
751 * features/arm-with-m.xml: Moved to ...
752 * features/arm/arm-with-m.xm: ... it.
753 * features/arm-with-neon.c: Moved to ...
754 * features/arm/arm-with-neon.c: ... it.
755 * features/arm-with-neon.xml: Moved to ...
756 * features/arm/arm-with-neon.xml: ... it.
757 * features/arm-with-vfpv2.c: Moved to ...
758 * features/arm/arm-with-vfpv2.c: ... it.
759 * features/arm-with-vfpv2.xml: Moved to ...
760 * features/arm/arm-with-vfpv2.xml: ... it.
761 * features/arm-with-vfpv3.c: Moved to ...
762 * features/arm/arm-with-vfpv3.c: ... it.
763 * features/arm-with-vfpv3.xml: Moved to ...
764 * features/arm/arm-with-vfpv3.xml: ... it.
765 * features/xscale-iwmmxt.xml: Moved to ...
766 * features/arm/xscale-iwmmxt.xml: ... it.
767
768 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
769 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
770
771 PR gdb/20487
772 * NEWS: Mention new frame field of =thread-selected event.
773 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
774 (add_com_suppress_notification): New function definition.
775 (cmd_func): Set and restore the suppress_notification flag.
776 * cli/cli-deicode.h (struct cmd_list_element)
777 <suppress_notification>: New field.
778 * cli/cli-interp.c (cli_suppress_notification): New global variable.
779 (cli_on_user_selected_context_changed): New function.
780 (_initialize_cli_interp): Attach to user_selected_context_changed
781 observer.
782 * command.h (struct cli_suppress_notification): New structure.
783 (cli_suppress_notification): New global variable declaration.
784 (add_com_suppress_notification): New function declaration.
785 * defs.h (enum user_selected_what_flag): New enum.
786 (user_selected_what): New enum flag type.
787 * frame.h (print_stack_frame_to_uiout): New function declaration.
788 * gdbthread.h (print_selected_thread_frame): New function declaration.
789 * inferior.c (print_selected_inferior): New function definition.
790 (inferior_command): Remove printing of inferior/thread/frame switch
791 notifications, notify user_selected_context_changed observer.
792 * inferior.h (print_selected_inferior): New function declaration.
793 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
794 suppression to stack-select-frame and thread-select commands.
795 * mi/mi-interp.c (struct mi_suppress_notification)
796 <user_selected_context>: Initialize.
797 (mi_user_selected_context_changed): New function definition.
798 (_initialize_mi_interp): Attach to user_selected_context_changed.
799 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
800 (mi_execute_command): Handle notification suppression. Notify
801 user_selected_context_changed observer on thread change instead of printing
802 event directly. Don't send it if command already sends the notification.
803 (command_notifies_uscc_observer): New function.
804 (mi_cmd_execute): Don't handle notification suppression.
805 * mi/mi-main.h (struct mi_suppress_notification)
806 <user_selected_context>: New field.
807 * stack.c (print_stack_frame_to_uiout): New function definition.
808 (select_frame_command): Notify user_selected_context_changed
809 observer.
810 (frame_command): Call print_selected_thread_frame if there's no frame
811 change or notify user_selected_context_changed observer if there is.
812 (up_command): Notify user_selected_context_changed observer.
813 (down_command): Likewise.
814 (_initialize_stack): Suppress user_selected_context notification for
815 command select-frame.
816 * thread.c (thread_command): Notify
817 user_selected_context_changed if the thread has changed, print
818 thread info directly if it hasn't.
819 (do_captured_thread_select): Do not print thread switch event.
820 (print_selected_thread_frame): New function definition.
821 * tui/tui-interp.c (tui_on_user_selected_context_changed):
822 New function definition.
823 (_initialize_tui_interp): Attach to user_selected_context_changed
824 observer.
825
826 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
827
828 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
829 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
830 Use it.
831 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
832 * infcmd.c (setup_inferior): Update caller.
833 * remote.c (remote_add_inferior): Likewise.
834
835 2016-09-28 Pedro Alves <palves@redhat.com>
836
837 * infcall.c (run_inferior_call): Remove input from the event
838 loop while running the infcall.
839
840 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
841
842 * arm-tdep.c (arm_m_addr_is_magic): New function.
843 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
844 (arm_m_exception_unwind_sniffer): Likewise.
845
846 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
847
848 * windows-nat.c (windows_delete_thread): Adjusting call to
849 target_mourn_inferior to include ptid_t argument.
850
851 2016-09-23 Tom Tromey <tom@tromey.com>
852
853 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
854 * utils.c: Don't include dyn-string.h.
855 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
856 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
857 (argv_to_string): Rename. Change return type to std::string.
858 (alias_command): Use std::string.
859
860 2016-09-23 Tom Tromey <tom@tromey.com>
861
862 * objfiles.c: Include <vector>.
863 (objfile_relocate): Use std::vector.
864
865 2016-09-23 Tom Tromey <tom@tromey.com>
866
867 * rust-lang.c: Include <string> and <vector>.
868 (rust_evaluate_funcall): Use std::vector, std::string.
869 (rust_evaluate_subexp): Use std::string.
870 (rust_lookup_symbol_nonlocal): Use std::string.
871
872 2016-09-23 Tom Tromey <tom@tromey.com>
873
874 * cp-namespace.c: Include <string>.
875 (cp_search_static_and_baseclasses)
876 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
877 Use std::string.
878
879 2016-09-23 Tom Tromey <tom@tromey.com>
880
881 * break-catch-sig.c: Include <string>.
882 (signal_catchpoint_print_one): Use std::string.
883
884 2016-09-23 Tom Tromey <tom@tromey.com>
885
886 * utils.c (struct restore_ui_out_closure): Remove.
887 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
888
889 2016-09-23 Yao Qi <yao.qi@linaro.org>
890
891 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
892 sprintf with xsnprintf.
893 (linux_xfer_osdata_fds): Likewise.
894
895 2016-09-23 Pedro Alves <palves@redhat.com>
896
897 * Makefile.in (SFILES): Add common/new-op.c.
898 (COMMON_OBS): Add common/new-op.o.
899 (new-op.o): New rule.
900 * common/common-exceptions.h: Include <new>.
901 (struct gdb_quit_bad_alloc): New type.
902 * common/new-op.c: New file.
903
904 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
905
906 * rs6000-tdep.c (ppc_process_record_op31): Fix
907 regcache_raw_read_unsigned call using the correct parameter type.
908
909 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
910
911 * arc-tdep.c: Fix ARI warning for printf(%p).
912
913 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
914
915 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
916
917 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
918
919 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
920 (HFILES_NO_SRCDIR): Add arc-tdep.h.
921 (ALLDEPFILES): Add arc-tdep.c.
922 * NEWS: Mention new ARC port.
923 * configure.tgt: Add ARC.
924 * arc-tdep.c: New file.
925 * arc-tdep.h: New file.
926 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
927 * features/arc-v2.xml: New file.
928 * features/arc-v2.c: New file (generated).
929 * features/arc-arcompact.xml: New file.
930 * features/arc-arcompact.c: New file (generated).
931
932 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
933
934 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
935 handlers.
936
937 2016-09-21 Tom Tromey <tom@tromey.com>
938
939 PR gdb/20604:
940 * top.h (quit_force): Update.
941 * top.c (quit_force): Changed type of first argument. Don't
942 evaluate expression. Pass NULL to kill_or_detach.
943 * cli/cli-cmds.c (quit_command): Evaluate "args".
944
945 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
946
947 * .gitignore: Ignore more files.
948 * data-directory/.gitignore: Likewise.
949
950 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
951
952 * rs6000-tdep.c (PPC_DQ): New macro.
953 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
954 (ppc_process_record_op19): Likewise.
955 (ppc_process_record_op31): Likewise.
956 (ppc_process_record_op59): Likewise.
957 (ppc_process_record_op60): Likewise.
958 (ppc_process_record_op63): Likewise.
959 (ppc_process_record): Likewise.
960 (ppc_process_record_op61): New function.
961
962 2016-09-21 Yao Qi <yao.qi@linaro.org>
963
964 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
965 bits 20 to 23.
966
967 2016-09-20 Tom Tromey <tom@tromey.com>
968
969 * python/py-value.c (convert_value_from_python): Make PyInt_Check
970 conditional on Python 2.
971 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
972 conditional on Python 2.
973
974 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
975
976 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
977 Word instructions.
978
979 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
980
981 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
982 'resume_ptid' to 'target_mourn_inferior'. Fix regression
983 introduced by my last commit.
984
985 2016-09-19 Pedro Alves <palves@redhat.com>
986
987 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
988 textdomain, bindtextdomain): Delete macros.
989 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
990 textdomain calls.
991
992 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
993
994 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
995 target_mourn_inferior to include ptid_t argument.
996 * fork-child.c (startup_inferior): Likewise.
997 * gnu-nat.c (gnu_kill_inferior): Likewise.
998 * inf-ptrace.c (inf_ptrace_kill): Likewise.
999 * infrun.c (handle_inferior_event_1): Likewise.
1000 * linux-nat.c (linux_nat_attach): Likewise.
1001 (linux_nat_kill): Likewise.
1002 * nto-procfs.c (interrupt_query): Likewise.
1003 (procfs_interrupt): Likewise.
1004 (procfs_kill_inferior): Likewise.
1005 * procfs.c (procfs_kill_inferior): Likewise.
1006 * record.c (record_mourn_inferior): Likewise.
1007 * remote-sim.c (gdbsim_kill): Likewise.
1008 * remote.c (remote_detach_1): Likewise.
1009 (remote_kill): Likewise.
1010 * target.c (target_mourn_inferior): Change declaration to accept
1011 new ptid_t argument; use gdb_assert on it.
1012 * target.h (target_mourn_inferior): Move function prototype from
1013 here...
1014 * target/target.h (target_mourn_inferior): ... to here. Adjust it
1015 to accept new ptid_t argument.
1016 * windows-nat.c (get_windows_debug_event): Adjusting call to
1017 target_mourn_inferior to include ptid_t argument.
1018
1019 2016-09-18 Pedro Alves <palves@redhat.com>
1020
1021 * s390-linux-nat.c: Include <algorithm>.
1022
1023 2016-09-18 Pedro Alves <palves@redhat.com>
1024
1025 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
1026 specify the std:min/std::max specialization.
1027 * exec.c (section_table_read_available_memory): Likewise.
1028 * remote.c (remote_read_qxfer): Likewise.
1029 * target.c (simple_verify_memory): Likewise.
1030
1031 2016-09-16 Simon Marchi <simark@simark.ca>
1032
1033 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
1034 (print_stop_event): Use make_cleanup_restore_current_uiout.
1035 * python/python.c (execute_gdb_command): Likewise.
1036 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
1037 (make_cleanup_restore_current_uiout): New function definition.
1038 * ui-out.h (make_cleanup_restore_current_uiout): New function
1039 declaration.
1040 * utils.c (do_restore_ui_out): Remove.
1041 (make_cleanup_restore_ui_out): Remove.
1042 * utils.h (make_cleanup_restore_ui_out): Remove.
1043
1044 2016-09-16 Pedro Alves <palves@redhat.com>
1045
1046 * defs.h (min, max): Delete.
1047 * aarch64-tdep.c: Include <algorithm> and use std::min and
1048 std::max throughout.
1049 * aarch64-tdep.c: Likewise.
1050 * alpha-tdep.c: Likewise.
1051 * amd64-tdep.c: Likewise.
1052 * amd64-windows-tdep.c: Likewise.
1053 * arm-tdep.c: Likewise.
1054 * avr-tdep.c: Likewise.
1055 * breakpoint.c: Likewise.
1056 * btrace.c: Likewise.
1057 * ctf.c: Likewise.
1058 * disasm.c: Likewise.
1059 * doublest.c: Likewise.
1060 * dwarf2loc.c: Likewise.
1061 * dwarf2read.c: Likewise.
1062 * environ.c: Likewise.
1063 * exec.c: Likewise.
1064 * f-exp.y: Likewise.
1065 * findcmd.c: Likewise.
1066 * ft32-tdep.c: Likewise.
1067 * gcore.c: Likewise.
1068 * hppa-tdep.c: Likewise.
1069 * i386-darwin-tdep.c: Likewise.
1070 * i386-tdep.c: Likewise.
1071 * linux-thread-db.c: Likewise.
1072 * lm32-tdep.c: Likewise.
1073 * m32r-tdep.c: Likewise.
1074 * m88k-tdep.c: Likewise.
1075 * memrange.c: Likewise.
1076 * minidebug.c: Likewise.
1077 * mips-tdep.c: Likewise.
1078 * moxie-tdep.c: Likewise.
1079 * nds32-tdep.c: Likewise.
1080 * nios2-tdep.c: Likewise.
1081 * nto-procfs.c: Likewise.
1082 * parse.c: Likewise.
1083 * ppc-sysv-tdep.c: Likewise.
1084 * probe.c: Likewise.
1085 * record-btrace.c: Likewise.
1086 * remote.c: Likewise.
1087 * rs6000-tdep.c: Likewise.
1088 * rx-tdep.c: Likewise.
1089 * s390-linux-nat.c: Likewise.
1090 * s390-linux-tdep.c: Likewise.
1091 * ser-tcp.c: Likewise.
1092 * sh-tdep.c: Likewise.
1093 * sh64-tdep.c: Likewise.
1094 * source.c: Likewise.
1095 * sparc-tdep.c: Likewise.
1096 * symfile.c: Likewise.
1097 * target-memory.c: Likewise.
1098 * target.c: Likewise.
1099 * tic6x-tdep.c: Likewise.
1100 * tilegx-tdep.c: Likewise.
1101 * tracefile-tfile.c: Likewise.
1102 * tracepoint.c: Likewise.
1103 * valprint.c: Likewise.
1104 * value.c: Likewise.
1105 * xtensa-tdep.c: Likewise.
1106 * cli/cli-cmds.c: Likewise.
1107 * compile/compile-object-load.c: Likewise.
1108
1109 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1110
1111 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
1112 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
1113 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
1114 (PER_CONTROL_ALTERATION): New macros.
1115 (struct s390_debug_reg_state) <break_areas>: New member.
1116 (s390_forget_process): Free break_areas as well.
1117 (s390_linux_new_fork): Copy break_areas as well.
1118 (s390_prepare_to_resume): Install hardware breakpoints.
1119 (s390_can_use_hw_breakpoint): Indicate support for hardware
1120 breakpoints.
1121 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
1122 linux_nat target methods.
1123 (_initialize_s390_nat): Register them.
1124
1125 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126
1127 * nat/linux-nat.h (lwp_is_stepping): New declaration.
1128 * linux-nat.c (lwp_is_stepping): New function.
1129
1130 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131
1132 * s390-linux-nat.c (gdbcmd.h): New include.
1133 (s390_show_debug_regs): New function.
1134 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
1135 (s390_prepare_to_resume): Likewise.
1136 (_initialize_s390_nat): Register the command "maint set
1137 show-debug-regs".
1138
1139 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1140
1141 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
1142 member of...
1143 (struct s390_debug_reg_state): ...this. New struct.
1144 (struct s390_process_info): New struct.
1145 (s390_process_list): New variable.
1146 (s390_find_process_pid, s390_add_process, s390_process_info_get)
1147 (s390_get_debug_reg_state): New functions.
1148 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
1149 s390_get_debug_reg_state.
1150 (s390_prepare_to_resume): Likewise.
1151 (s390_insert_watchpoint): Likewise.
1152 (s390_remove_watchpoint): Likewise.
1153 (s390_forget_process, s390_linux_new_fork): New linux_nat target
1154 methods.
1155 (_initialize_s390_nat): Register them.
1156
1157 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158
1159 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
1160 (watch_base): Remove variable.
1161 (watch_areas): New variable.
1162 (s390_stopped_by_watchpoint): Transform operations on the
1163 watch_base list to equivalent operations on the watch_areas VEC.
1164 (s390_prepare_to_resume): Likewise.
1165 (s390_insert_watchpoint): Likewise.
1166 (s390_remove_watchpoint): Likewise.
1167
1168 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1169
1170 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
1171 functions instead of accessing lwp_info structure members.
1172 (s390_mark_per_info_changed): New function.
1173 (s390_new_thread): Use it.
1174 (s390_refresh_per_info_cb): New function.
1175 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
1176 the current process.
1177 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
1178 (s390_remove_watchpoint): Likewise.
1179
1180 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1181
1182 * elfread.c (auxv.h): New include.
1183 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
1184
1185 2016-09-08 Tom Tromey <tom@tromey.com>
1186
1187 * remote.c (remote_notif_stop_ack, remote_wait_as)
1188 (show_remote_cmd): Remove unneeded casts.
1189
1190 2016-09-06 Pedro Alves <palves@redhat.com>
1191
1192 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
1193 change across events. Restore the current UI before returning.
1194 (gdb_readline_wrapper): Restore the current UI before returning.
1195
1196 2016-09-06 Pedro Alves <palves@redhat.com>
1197
1198 * event-top.c (restore_ui_cleanup): Now static.
1199 (make_cleanup_restore_current_ui): New function.
1200 (switch_thru_all_uis_init): Use it.
1201 * infcall.c (call_thread_fsm_should_stop): Use it.
1202 * infrun.c (fetch_inferior_event): Use it.
1203 * top.c (new_ui_command): Use it.
1204 * top.h (restore_ui_cleanup): Delete declaration.
1205 (make_cleanup_restore_current_ui): New declaration.
1206
1207 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1208
1209 * i386-tdep.c (i386_floatformat_for_type): New function.
1210 (i386_gdbarch_init): Install it.
1211 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
1212 (ppc_linux_init_abi): Install it.
1213
1214 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
1217 * gdbarch.h, gdbarch.c: Re-generate.
1218 * arch-utils.h (default_floatformat_for_type): New prototype.
1219 * arch-utils.c (default_floatformat_for_type): New function.
1220
1221 * doublest.c (floatformat_from_length): Remove.
1222 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
1223 * gdbtypes.c (verify_floatformat): Require non-NULL format.
1224
1225 * dwarf2read.c (dwarf2_init_float_type): New function.
1226 (read_base_type): Use it.
1227 * stabsread.c (dbx_init_float_type): New function.
1228 (read_sun_floating_type): Use it.
1229 (read_range_type): Likewise.
1230
1231 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1232
1233 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
1234 platform ABI floating-point formats for built-in types.
1235 * d-lang.c (build_d_types): Likewise.
1236 * f-lang.c (build_fortran_types): Likewise.
1237 * m2-lang.c (build_m2_types): Likewise.
1238 * mdebugread.c (basic_type): Likewise.
1239
1240 * go-lang.c (build_go_types): Use IEEE floating-point formats
1241 for language built-in types as mandanted by the language.
1242 * jv-lang.c (build_java_types): Likewise.
1243 * rust-lang.c (rust_language_arch_info): Likewise.
1244 * stabsread.c (rs6000_builtin_type): Likewise.
1245
1246 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1247
1248 * gdbtypes.c (init_type): Remove "char" special case.
1249 (arch_integer_type): Likewise.
1250 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
1251 (objfile_type): Likewise.
1252 * mdebugread.c (basic_type): Likewise.
1253 * stabsread.c (rs6000_builtin_type): Likewise.
1254
1255 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1256
1257 * gdbtypes.h (enum type_flag_value): Remove.
1258 Remove references to TYPE_FLAG_... in comments throughout.
1259 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
1260 flags, print the corresponding TYPE_... access macro names.
1261 Remove references to TYPE_FLAG_... in comments throughout.
1262 * infcall.c: Remove references to TYPE_FLAG_... in comments.
1263 * valprint.c: Likewise.
1264 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
1265 values, only TYPE_INSTANCE_FLAG_... values.
1266 (class TypeFlagsPrinter): Likewise.
1267
1268 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1269
1270 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
1271 argument to first position.
1272 (init_integer_type): New prototype.
1273 (init_character_type): Likewise.
1274 (init_boolean_type): Likewise.
1275 (init_float_type): Likewise.
1276 (init_decfloat_type): Likewise.
1277 (init_complex_type): Likewise.
1278 (init_pointer_type): Likewise.
1279 * gdbtypes.c (verify_floatflormat): New function.
1280 (init_type): Remove FLAGS argument and processing. Move OBJFILE
1281 argument to first position.
1282 (init_integer_type): New function.
1283 (init_character_type): Likewise.
1284 (init_boolean_type): Likewise.
1285 (init_float_type): Likewise.
1286 (init_decfloat_type): Likewise.
1287 (init_complex_type): Likewise.
1288 (init_pointer_type): Likewise.
1289 (arch_float_type): Use verify_floatflormat.
1290 (objfile_type): Use init_..._type helpers instead of calling
1291 init_type directly.
1292 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
1293 prototype.
1294 (read_namespace_type): Likewise.
1295 (read_module_type): Likewise.
1296 (read_typedef): Likewise.
1297 (read_unspecified_type): Likewise.
1298 (build_error_marker_type): Likewise.
1299 (read_base_type): Use init_..._type helpers.
1300 * mdebugread.c (basic_type): Use init_..._type helpers.
1301 (parse_type): Update to changed init_type prototype.
1302 (cross_ref): Likewise.
1303 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
1304 (read_sun_builtin_type): Likewise.
1305 (read_sun_floating_type): Likewise.
1306 (read_range_type): Likewise. Also update to changed init_type
1307 prototype.
1308
1309 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1310
1311 * gdbtypes.h (arch_decfloat_type): New prototype.
1312 (arch_pointer_type): Likewise.
1313 * gdbtypes.c (arch_decfloat_type): New function.
1314 (arch_pointer_type): Likewise.
1315 (gdbtypes_post_init): Use arch_decfloat_type.
1316 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
1317 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1318 * m32c-tdep.c (make_types): Likewise.
1319 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1320
1321 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1322
1323 * gdbtypes.c (set_type_code): New function.
1324 (init_type, arch_type): Use it.
1325
1326 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1327
1328 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
1329 instead of gdbarch_double_bit for "long_long_float".
1330
1331 2016-09-05 Pedro Alves <palves@redhat.com>
1332
1333 * NEWS: Mention that a C++ compiler is now required.
1334 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
1335 (COMPILE.pre, CC_LD): Use CXX directly.
1336 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
1337 * acinclude.m4: Don't include build-with-cxx.m4.
1338 * build-with-cxx.m4: Delete file.
1339 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
1340 * warning.m4: Assume $enable_build_with_cxx is yes.
1341 * configure: Regenerate.
1342
1343 2016-09-05 Pedro Alves <palves@redhat.com>
1344
1345 PR backtrace/19927
1346 * frame.c (get_frame_id): Compute the frame id if not computed
1347 yet.
1348 (unwind_to_current_frame): Delete.
1349 (get_current_frame): Use get_prev_frame_always_1 to get the
1350 current frame and assert that that always succeeds.
1351 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
1352 the current frame.
1353
1354 2016-09-02 Tom Tromey <tom@tromey.com>
1355
1356 PR gdb/11616:
1357 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
1358 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
1359 DW_OP_form_tls_address.
1360 (locexpr_describe_location_piece): Likewise.
1361 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
1362 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
1363 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
1364 * compile/compile-loc2c.c (struct insn_info): Update comment.
1365 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
1366
1367 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1368
1369 * target.c (target_wait): Mention that the function's prototype
1370 can be found at target/target.h.
1371 * target.h (target_wait): Move prototype from here...
1372 * target/target.h (target_wait): ... to here.
1373
1374 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1375
1376 * fork-child.c (startup_inferior): Replace calls to target_resume
1377 by target_continue{,_no_signal}, depending on the case.
1378 * linux-nat.c (cleanup_target_stop): Call
1379 target_continue_no_signal instead of target_resume.
1380 * procfs.c (procfs_wait): Likewise.
1381 * target.c (target_continue): New function.
1382 * target/target.h (target_continue): New prototype.
1383
1384 2016-08-31 Yao Qi <yao.qi@linaro.org>
1385
1386 * record-full.c (record_full_insert_breakpoint): Fix typo.
1387
1388 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1389
1390 * thread.c (tp_array_compar): Insert missing parentheses.
1391
1392 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1393
1394 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
1395 designated initializer list by plain initializer list, for C++
1396 compliance.
1397
1398 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1399
1400 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
1401 struct ps_prochandle.
1402 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
1403 * arm-linux-nat.c (ps_get_thread_area): Likewise.
1404 * gdb_proc_service.h (ps_get_thread_area): Likewise.
1405 * i386-linux-nat.c (ps_get_thread_area): Likewise.
1406 * m68klinux-nat.c (ps_get_thread_area): Likewise.
1407 * mips-linux-nat.c (ps_get_thread_area): Likewise.
1408 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
1409 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
1410 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
1411
1412 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
1413
1414 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
1415 NULL if terminal_name is an empty string.
1416 (_initialize_infcmd): Make the argument of "set inferior-tty"
1417 optional, mention it in the help doc.
1418
1419 2016-08-24 Carl Love <cel@us.ibm.com>
1420
1421 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
1422 set_gdbarch_deprecated_fp_regnum() architecture
1423 initialization function.
1424
1425 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
1426
1427 * stack.c (parse_frame_specification): Fix typo in comment.
1428
1429 2016-08-23 Pedro Alves <palves@redhat.com>
1430
1431 PR gdb/20494
1432 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
1433 comments.
1434 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
1435 Delete.
1436 (set_initial_gdb_ttystate): Record our_terminal_info here too,
1437 instead of ...
1438 (gdb_has_a_terminal): ... here. Reimplement in terms of
1439 initial_gdb_ttystate. Make static.
1440 * terminal.h (gdb_has_a_terminal): Delete declaration.
1441 (set_initial_gdb_ttystate): Add comment.
1442 * top.c (show_interactive_mode): Use input_interactive_p instead
1443 of gdb_has_a_terminal.
1444
1445 2016-08-22 Pedro Alves <palves@redhat.com>
1446
1447 PR gdb/20505
1448 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
1449 find the vDSO's start address with AT_SYSINFO_EHDR too, and
1450 determine the vDSO's size by finding the PT_LOAD segment that
1451 matches AT_SYSINFO_EHDR.
1452
1453 2016-08-19 Yao Qi <yao.qi@linaro.org>
1454
1455 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
1456 based STP instruction.
1457
1458 2016-08-19 Yao Qi <yao.qi@linaro.org>
1459
1460 * completer.c (linespec_location_completer): Make file_to_match
1461 null-terminated.
1462
1463 2016-08-19 Pedro Alves <palves@redhat.com>
1464
1465 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
1466 addresses over 0x7fffffff.
1467
1468 2016-08-18 Carl Love <cel@us.ibm.com>
1469
1470 * MAINTANERS Write After Approval): Add "Carl Love".
1471
1472 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1473
1474 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
1475
1476 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1477
1478 * inferior.c (remove_inferior_command): Fix error message.
1479
1480 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1481
1482 * inferior.c (exit_inferior_1): Remove comment.
1483
1484 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
1485
1486 PR gdb/20457
1487 * gdb_proc_service.h: Add an include of gregset.h
1488 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
1489
1490 2016-08-15 Yao Qi <yao.qi@linaro.org>
1491
1492 * location.c (explicit_location_lex_one): Compare the return
1493 value of strncmp with zero. Don't check (*inp)[9]. Increment
1494 *inp by 8.
1495
1496 2016-08-11 Pedro Alves <palves@redhat.com>
1497
1498 PR gdb/20413
1499 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
1500 "gregset.h".
1501
1502 2016-08-10 Pedro Alves <palves@redhat.com>
1503
1504 PR gdb/19187
1505 * record-full.c (record_full_remove_breakpoint): Don't remove the
1506 breakpoint from the record_full_breakpoints VEC if we're detaching
1507 the breakpoint from a fork child.
1508
1509 2016-08-10 Pedro Alves <palves@redhat.com>
1510
1511 PR gdb/19187
1512 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
1513 interface.
1514 * break-catch-syscall.c (remove_catch_syscall):
1515 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
1516 (remove_breakpoint_1): Pass 'reason' down.
1517 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
1518 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
1519 (base_breakpoint_remove_location, bkpt_remove_location)
1520 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
1521 interface.
1522 * breakpoint.h (enum remove_bp_reason): Moved here from
1523 breakpoint.c.
1524 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
1525 * corelow.c (core_remove_breakpoint): New function.
1526 (init_core_ops): Install it as to_remove_breakpoint method.
1527 * exec.c (exec_remove_breakpoint): New function.
1528 (init_exec_ops): Install it as to_remove_breakpoint method.
1529 * mem-break.c (memory_remove_breakpoint): Adjust interface.
1530 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
1531 interface.
1532 * record-full.c (record_full_remove_breakpoint)
1533 (record_full_core_remove_breakpoint): Adjust interface.
1534 * remote.c (remote_remove_breakpoint): Adjust interface.
1535 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
1536 macro.
1537 * target-delegates.c: Regenerate.
1538 * target.c (target_remove_breakpoint): Add 'reason' parameter.
1539 * target.h (struct target_ops) <to_remove_breakpoint>: Add
1540 'reason' parameter.
1541 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
1542 parameter.
1543
1544 2016-08-10 Pedro Alves <palves@redhat.com>
1545
1546 PR gdb/19187
1547 * breakpoint.c (insertion_state_t): Delete.
1548 (enum remove_bp_reason): New.
1549 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
1550 Adjust to use enum remove_bp_reason instead of insertion_state_t.
1551
1552 2016-08-10 Pedro Alves <palves@redhat.com>
1553
1554 PR gdb/19187
1555 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
1556 always pass mark_uninserted to remove_breakpoint_1.
1557 (insert_breakpoint_locations, remove_breakpoints)
1558 (remove_breakpoints_pid, update_global_location_list): Update
1559 callers.
1560
1561 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
1562 Pedro Alves <palves@redhat.com>
1563
1564 * windows-nat.c (MS_VC_EXCEPTION): New define.
1565 (handle_exception_result): New enum.
1566 (windows_delete_thread): Free the thread's name.
1567 (handle_exception): Handle MS_VC_EXCEPTION.
1568 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
1569 (windows_thread_name): New function.
1570 (windows_target): Install it as to_thread_name method.
1571 * NEWS: Mention the thread naming support on MS-Windows.
1572
1573 2016-08-10 Pedro Alves <palves@redhat.com>
1574
1575 * common/signals-state-save-restore.c
1576 (save_original_signals_state, restore_original_signals_state):
1577 Wrap perror_with_name arguments with '()'.
1578
1579 2016-08-09 Pedro Alves <palves@redhat.com>
1580
1581 PR gdb/20418
1582 * event-top.c (ui_register_input_event_handler)
1583 (ui_unregister_input_event_handler): New functions.
1584 (async_enable_stdin): Register input in the event loop.
1585 (async_disable_stdin): Unregister input from the event loop.
1586 (gdb_setup_readline): Register input in the event loop.
1587 * infrun.c (check_curr_ui_sync_execution_done): Register input in
1588 the event loop.
1589 * target.c (target_terminal_inferior): Don't unregister input from
1590 the event loop.
1591 (target_terminal_ours): Don't register input in the event loop.
1592 * target.h (target_terminal_inferior)
1593 (target_terminal_ours_for_output, target_terminal_ours): Update
1594 comments.
1595 * top.h (ui_register_input_event_handler)
1596 (ui_unregister_input_event_handler): New declarations.
1597 * utils.c (ui_unregister_input_event_handler_cleanup)
1598 (prepare_to_handle_input): New functions.
1599 (defaulted_query, prompt_for_continue): Use
1600 prepare_to_handle_input.
1601
1602 2016-08-09 Pedro Alves <palves@redhat.com>
1603
1604 PR mi/20431
1605 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
1606 state to PROMPT_NEEDED.
1607
1608 2016-08-09 Pedro Alves <palves@redhat.com>
1609
1610 PR gdb/18653
1611 * Makefile.in (SFILES): Add
1612 common/signals-state-save-restore.c.
1613 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
1614 (COMMON_OBS): Add signals-state-save-restore.o.
1615 (signals-state-save-restore.o): New rule.
1616 * configure: Regenerate.
1617 * fork-child.c: Include "signals-state-save-restore.h".
1618 (fork_inferior): Call restore_original_signals_state.
1619 * main.c: Include "signals-state-save-restore.h".
1620 (captured_main): Call save_original_signals_state.
1621 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
1622 * common/signals-state-save-restore.c: New file.
1623 * common/signals-state-save-restore.h: New file.
1624
1625 2016-08-09 Pedro Alves <palves@redhat.com>
1626
1627 * value.c (unpack_value_bitfield): Skip unpacking if the parent
1628 has no contents buffer to begin with.
1629
1630 2016-08-08 Pedro Alves <palves@redhat.com>
1631
1632 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
1633 * features/i386/amd64-avx-mpx.c: Regenerate.
1634 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1635 * features/i386/i386-avx-mpx.c: Regenerate.
1636
1637 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
1638
1639 * event-top.h (cli_command_loop): Remove.
1640
1641 2016-08-05 Pedro Alves <palves@redhat.com>
1642
1643 PR remote/20398
1644 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
1645 flag before calling quit.
1646
1647 2016-08-05 Pedro Alves <palves@redhat.com>
1648
1649 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
1650 by default.
1651
1652 2016-08-05 Pedro Alves <palves@redhat.com>
1653
1654 * build-with-cxx.m4: Change help string to be in terms of
1655 --disable-build-with-cxx.
1656 * configure: Regenerate.
1657
1658 2016-08-04 Yao Qi <yao.qi@linaro.org>
1659
1660 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
1661 declaration.
1662 (aarch64_linux_read_description): Remove code on getting
1663 auxv and select target description on it. Select target
1664 description by the result of NT_ARM_VFP ptrace request.
1665
1666 2016-08-03 Tom Tromey <tom@tromey.com>
1667
1668 PR python/18565:
1669 * python/py-frame.c (frapy_function): Use find_frame_funname.
1670
1671 2016-08-03 Tom Tromey <tom@tromey.com>
1672
1673 * stack.c (find_frame_funname): Avoid any possible leak in case
1674 cp_remove_params can throw.
1675
1676 2016-08-03 Tom Tromey <tom@tromey.com>
1677
1678 * NEWS: Mention new Python breakpoint events.
1679
1680 2016-08-02 Tom Tromey <tom@tromey.com>
1681
1682 * MAINTAINERS (Core): Add self as Rust maintainer.
1683
1684 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1685
1686 * NEWS: Create a new section for the next release branch.
1687 Rename the section of the current branch, now that it has
1688 been cut.
1689
1690 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1691
1692 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
1693 * version.in: Bump version to 7.12.50.DATE-git.
1694
1695 2016-07-27 Alan Modra <amodra@gmail.com>
1696
1697 * amd64-darwin-tdep.c: Don't include libbfd.h.
1698 * i386-darwin-tdep.c: Likewise.
1699 * rs6000-nat.c: Likewise.
1700 * rs6000-tdep.c: Likewise.
1701
1702 2016-07-26 Tom Tromey <tom@tromey.com>
1703
1704 * symtab.c (register_symbol_computed_impl): Update.
1705 PR python/20190:
1706 * value.h (symbol_read_needs): Declare.
1707 (symbol_read_needs_frame): Add comment.
1708 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
1709 comment.
1710 <get_symbol_read_needs>: Rename. Change return type.
1711 * findvar.c (symbol_read_needs): New function.
1712 (symbol_read_needs_frame): Rewrite.
1713 (default_read_var_value): Use symbol_read_needs.
1714 * dwarf2loc.c (struct symbol_needs_baton): Rename.
1715 <needs>: Renamed from needs_frame. Changed type.
1716 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
1717 (symbol_needs_read_mem, symbol_needs_frame_base)
1718 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1719 (symbol_needs_dwarf_call): Rename.
1720 (needs_dwarf_reg_entry_value): Update.
1721 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
1722 Rename and update.
1723 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
1724 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
1725 * defs.h (enum symbol_needs_kind): New.
1726
1727 2016-07-26 Pedro Alves <palves@redhat.com>
1728
1729 * nat/linux-ptrace.c: Include "gregset.h".
1730 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
1731 PTRACE_PEEKUSER.
1732
1733 2016-07-26 Pedro Alves <palves@redhat.com>
1734
1735 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
1736 parameter to 'ptrace'.
1737 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
1738 (nat_uptr_t): New an unsigned long.
1739 (nat_clock_t): Remove attribute __aligned__.
1740 (struct nat_timeval): Delete.
1741 (nat_siginfo_t): Remove attribute __aligned__.
1742 (ptrace_siginfo_t): Define.
1743 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1744 (compat_x32_siginfo_from_siginfo)
1745 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
1746 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
1747 Remove casts.
1748 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
1749 'ptrace'. Remove static assertions.
1750 (top level): New static assertions.
1751
1752 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
1753
1754 * top.h (make_delete_ui_cleanup): New declaration.
1755 * top.c (delete_ui_cleanup): New function.
1756 (make_delete_ui_cleanup): New function.
1757 (new_ui_command): Create restore_ui cleanup earlier, create a
1758 delete_ui cleanup and discard it on success.
1759
1760 2016-07-25 Pedro Alves <palves@redhat.com>
1761 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
1764 't'.
1765
1766 2016-07-25 Pedro Alves <palves@redhat.com>
1767
1768 * nat/linux-procfs.c (enum proc_state): New enum.
1769 (parse_proc_status_state): New function.
1770 (linux_proc_pid_get_state): Replace output string buffer parameter
1771 with an output proc_state parameter. Use parse_proc_status_state.
1772 (linux_proc_pid_is_gone): Adjust to use proc_state values.
1773 (linux_proc_pid_has_state): Change type of 'state' parameter; now
1774 an enum proc_state. Adjust to linux_proc_pid_get_state interface
1775 change.
1776 (linux_proc_pid_is_stopped)
1777 (linux_proc_pid_is_trace_stopped_nowarn)
1778 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
1779 linux_proc_pid_get_state interface change.
1780
1781 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1782
1783 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
1784
1785 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1786
1787 * NEWS: Resume btrace on reconnect.
1788 * record-btrace.c: Added record-btrace.h include.
1789 (record_btrace_open): Split into this and ...
1790 (record_btrace_push_target): ... this.
1791 (record_btrace_disconnect): New function.
1792 (init_record_btrace_ops): Use record_btrace_disconnect.
1793 * record-btrace.h: New file.
1794 * remote.c: Added record-btrace.h include.
1795 (remote_start_remote): Check recording status.
1796 (remote_btrace_maybe_reopen): New function.
1797
1798 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
1799
1800 * xml-syscall.c (get_syscalls_by_group): New.
1801 (get_syscall_group_names): New.
1802 (struct syscall_group_desc): New structure to store group data.
1803 (struct syscalls_info): Include field to store the group list.
1804 (sysinfo_free_syscall_group_desc): New.
1805 (free_syscalls_info): Free group list.
1806 (syscall_group_create_syscall_group_desc): New.
1807 (syscall_group_add_syscall): New.
1808 (syscall_create_syscall_desc): Add syscall to its groups.
1809 (syscall_start_syscall): Load group attribute.
1810 (syscall_group_get_group_by_name): New.
1811 (xml_list_syscalls_by_group): New.
1812 (xml_list_of_groups): New.
1813 * xml-syscall.h (get_syscalls_by_group): Export function
1814 to retrieve a list of syscalls filtered by the group name.
1815 (get_syscall_group_names): Export function to retrieve the list
1816 of syscall groups.
1817 * break-catch-syscall.c (catch_syscall_split_args): Verify if
1818 argument is a syscall group and expand it to a list of syscalls
1819 when creating catchpoints.
1820 (catch_syscall_completer): Add word completion for system call
1821 groups.
1822 * configure.ac: Include dependency for xsltproc when building
1823 in maintainer-mode.
1824 * break-catch-syscall.c (_initialize_breakpoint): Update catch
1825 syscall command documentation.
1826 * NEWS: Include section about catching groups of syscalls.
1827 * configure: Regenerate.
1828 * data-directory/Makefile.in: Generate syscall xml when building
1829 in maintainer mode.
1830 * syscalls/gdb-syscalls.dtd: Include group attribute to the
1831 syscall element.
1832 * syscalls/apply-defaults.xsl: New.
1833 * syscalls/linux-defaults.xml.in: New.
1834 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
1835 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
1836 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
1837 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
1838 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
1839 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
1840 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
1841 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
1842 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
1843 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
1844 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
1845 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
1846 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
1847 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
1848 * syscalls/aarch64-linux.xml: Regenerate.
1849 * syscalls/amd64-linux.xml: Regenerate.
1850 * syscalls/arm-linux.xml: Regenerate.
1851 * syscalls/i386-linux.xml: Regenerate.
1852 * syscalls/mips-n32-linux.xml: Regenerate.
1853 * syscalls/mips-n64-linux.xml: Regenerate.
1854 * syscalls/mips-o32-linux.xml: Regenerate.
1855 * syscalls/ppc-linux.xml: Regenerate.
1856 * syscalls/ppc64-linux.xml: Regenerate.
1857 * syscalls/s390-linux.xml: Regenerate.
1858 * syscalls/s390x-linux.xml: Regenerate.
1859 * syscalls/sparc-linux.xml: Regenerate.
1860 * syscalls/sparc64-linux.xml: Regenerate.
1861
1862 2016-07-23 Andrew Pinski <apinski@cavium.com>
1863
1864 * nat/aarch64-linux-hw-point.c
1865 (aarch64_linux_get_debug_reg_capacity): Handle
1866 ARMv8.1 and ARMv8.2 debug versions.
1867 * nat/aarch64-linux-hw-point.h
1868 (AARCH64_DEBUG_ARCH_V8_1): New define.
1869 (AARCH64_DEBUG_ARCH_V8_2): New define.
1870
1871 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
1872
1873 PR gdb/14529
1874 * windows-nat.c (signal_event_command): New command 'signal-event'
1875 for W32 JIT debug support.
1876 * NEWS: Add an entry about the new 'signal-event' command.
1877
1878 2016-07-22 Tom Tromey <tom@tromey.com>
1879
1880 PR rust/20162:
1881 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
1882 Call scan_partial_symbols for children when reading a Rust CU.
1883 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
1884 rustc.
1885 (process_structure_scope) <DW_TAG_subprogram>: Call
1886 read_func_scope for Rust.
1887
1888 2016-07-22 Yao Qi <yao.qi@linaro.org>
1889
1890 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
1891 bt_ctf_get_int64.
1892
1893 2016-07-21 Tom Tromey <tom@tromey.com>
1894
1895 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
1896 structs.
1897 * rust-exp.y (struct_expr_list): Allow empty elements.
1898
1899 2016-07-21 Tom Tromey <tom@tromey.com>
1900
1901 * configure: Rebuild.
1902 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
1903 -Wunused-but-set-parameter, -Wunused-but-set-variable.
1904
1905 2016-07-21 Pedro Alves <palves@redhat.com>
1906
1907 * go32-nat.c (go32_create_inferior): Add cast.
1908 * ser-go32.c (dos_noop): Delete.
1909 (dos_flush_output, dos_setparity, dos_drain_output): New
1910 functions.
1911 (dos_write): Add cast.
1912 (dos_ops): Use dos_flush_output, dos_setparity and
1913 dos_drain_output.
1914 * top.c (do_chdir_cleanup): Add cast.
1915
1916 2016-07-21 Pedro Alves <palves@redhat.com>
1917
1918 * windows-nat.c (handle_exception): Remove "th".
1919
1920 2016-07-21 Pedro Alves <palves@redhat.com>
1921
1922 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
1923 scope that uses it.
1924
1925 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1926
1927 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
1928 events.
1929 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
1930 defined.
1931 (fbsd_add_vfork_done): Likewise.
1932 (fbsd_is_vfork_done_pending): Likewise.
1933 (fbsd_next_vfork_done): Likewise.
1934 (fbsd_resume): Only ignore pending vfork done events if
1935 "PTRACE_VFORK" is not defined.
1936 (fbsd_wait): Only look for pending vfork done events if
1937 "PTRACE_VFORK" is not defined.
1938 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
1939 events.
1940 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
1941 is not defined.
1942
1943 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1944
1945 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
1946 new child processes.
1947
1948 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1949
1950 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
1951 (fbsd_enable_proc_events): New function.
1952 (fbsd_enable_follow_fork): Remove function.
1953 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
1954 (fbsd_post_attach): Likewise.
1955
1956 2016-07-15 John Baldwin <jhb@FreeBSD.org>
1957
1958 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
1959 (do_gdb_signal_to_host): Likewise.
1960 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
1961 programs.
1962 * proc-events.c (signal_table): Add entry for SIGLIBRT.
1963
1964 2016-07-14 Tom Tromey <tom@tromey.com>
1965
1966 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
1967 newline.
1968
1969 2016-07-14 Tom Tromey <tom@tromey.com>
1970
1971 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
1972 (mips_o32_push_dummy_call): Remove "stack_used_p".
1973 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
1974 "insn_bit28".
1975 * rust-lang.c (rust_print_type): Remove "len".
1976 * rust-exp.y (super_name): Remove "current_len".
1977 * python/py-framefilter.c (py_print_type): Remove "type".
1978 * mdebugread.c (parse_partial_symbols): Remove
1979 "past_first_source_file".
1980 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
1981 * m2-valprint.c (m2_print_unbounded_array): Remove
1982 "content_type".
1983 (m2_val_print): Remove "i".
1984 * linespec.c (unexpected_linespec_error): Remove "cleanup".
1985 * f-valprint.c (f_val_print): Remove "i".
1986 * elfread.c (elf_symtab_read): Remove "offset".
1987 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
1988 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
1989
1990 2016-07-14 Tom Tromey <tom@tromey.com>
1991
1992 * arch-utils.c (default_skip_permanent_breakpoint): Remove
1993 "bp_insn".
1994 * disasm.c (do_assembly_only): Remove "num_displayed".
1995 * dwarf2read.c (read_abbrev_offset): Remove "length".
1996 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
1997 "constant".
1998 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
1999 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
2000 * tracefile.c (trace_save): Remove "status".
2001
2002 2016-07-14 Tom Tromey <tom@tromey.com>
2003
2004 * symfile.c (simple_overlay_update_1): Remove initialization
2005 of "size", and commented-out code.
2006 (simple_overlay_update): Likewise.
2007
2008 2016-07-14 Tom Tromey <tom@tromey.com>
2009
2010 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
2011 * tui/tui-io.c (tui_puts): Use getcurx.
2012 (tui_redisplay_readline): Likewise.
2013
2014 2016-07-14 Tom Tromey <tom@tromey.com>
2015
2016 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
2017
2018 2016-07-14 Tom Tromey <tom@tromey.com>
2019
2020 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
2021 succeeded.
2022
2023 2016-07-13 Tom Tromey <tom@tromey.com>
2024
2025 PR python/15620, PR python/18620:
2026 * python/py-evts.c (gdbpy_initialize_py_events): Call
2027 add_new_registry for new events.
2028 * python/py-events.h (events_object) <breakpoint_created,
2029 breakpoint_deleted, breakpoint_modified>: New fields.
2030 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
2031 breakpoint changed event.
2032 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
2033 (gdbpy_breakpoint_modified): New function.
2034 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
2035 observer.
2036
2037 2016-07-13 Tom Tromey <tom@tromey.com>
2038
2039 PR python/17698:
2040 * NEWS: Update.
2041 * python/py-breakpoint.c (bppy_get_pending): New function.
2042 (breakpoint_object_getset): Add entry for "pending".
2043 * breakpoint.h (pending_breakpoint_p): Declare.
2044 * breakpoint.c (pending_breakpoint_p): New function.
2045
2046 2016-07-13 Tom Tromey <tom@tromey.com>
2047
2048 * python/py-breakpoint.c (bppy_get_visibility)
2049 (gdbpy_breakpoint_created): Use user_breakpoint_p.
2050
2051 2016-07-13 Tom Tromey <tom@tromey.com>
2052
2053 PR cli/18053:
2054 * jit.c (jit_reader_load_command): Use tilde_expand.
2055 (_initialize_jit): Fix help for jit-reader-unload. Set completer
2056 for new commands.
2057
2058 2016-07-12 Tom Tromey <tom@tromey.com>
2059
2060 PR python/19293:
2061 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
2062 gdb.invalidate_cached_frames.
2063 * python/lib/gdb/unwinder.py (register_unwinder): Call
2064 gdb.invalidate_cached_frames.
2065 * python/python.c (gdbpy_invalidate_cached_frames): New function.
2066 (python_GdbMethods): Add entry for invalidate_cached_frames.
2067
2068 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2069
2070 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
2071 lang_this.symbol.
2072
2073 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
2074
2075 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
2076 parameter to look for the symbol "this".
2077
2078
2079 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2080
2081 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
2082
2083 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2084
2085 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
2086 left shifts.
2087
2088 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2089
2090 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
2091 the MEDIA_FP_REGNUM register.
2092
2093 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2094
2095 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
2096 negative size.
2097
2098 2016-07-06 John Baldwin <jhb@FreeBSD.org>
2099
2100 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
2101
2102 2016-07-06 Yao Qi <yao.qi@linaro.org>
2103
2104 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
2105 arm_vfp_cprc_sub_candidate for static field.
2106
2107 2016-07-06 Manish Goregaokar <manish@mozilla.com>
2108
2109 * rust-lang.c (rust_subscript): Allow subscripting pointers
2110
2111 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
2113 * configure: Regenerate.
2114 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
2115
2116 2016-07-01 Don Breazeal <donb@codesourcery.com>
2117
2118 * remote.c (remote_get_memory_xfer_limit): New function.
2119 * target-delegates.c: Regenerate.
2120 * target.c (memory_xfer_partial): Call
2121 target_ops.to_get_memory_xfer_limit.
2122 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
2123 member.
2124
2125 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2126
2127 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
2128 (struct fbsd_fork_info): ... this.
2129 (struct fbsd_fork_info) <child>: Rename to ...
2130 (struct fbsd_fork_info) <ptid>: ... this.
2131 (fbsd_pending_children): Update type.
2132 (fbsd_remember_child): Update type and field name.
2133 (fbsd_is_child_pending): Likewise.
2134 (fbsd_pending_vfork_done): New variable.
2135 (fbsd_is_vfork_done_pending): New function.
2136 (fbsd_next_vfork_done): New function.
2137 (fbsd_resume): Don't resume processes with a pending vfork done
2138 event.
2139 (fbsd_wait): Report pending vfork done events.
2140 (fbsd_follow_fork): Delay and record a pending vfork done event
2141 for a vfork parent when detaching the child.
2142
2143 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2144
2145 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
2146 (resume_one_thread_cb): Move below fork following helper code.
2147 (resume_all_threads_cb): Likewise.
2148 (fbsd_resume): Likewise.
2149
2150 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2151
2152 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
2153 "detach_fork" is true.
2154
2155 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2156
2157 * x86bsd-nat.c: Include 'gdbthread.h'.
2158 (x86bsd_dr_set): Set debug registers on all threads belonging to
2159 the current inferior.
2160
2161 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2162
2163 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
2164 'x86bsd-nat.h'.
2165 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
2166 'amd64bsd-nat.h'.
2167 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
2168 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
2169 with 'x86bsd_xsave_len'.
2170 (amd64bsd_store_inferior_registers): Likewise.
2171 (amd64bsd_target): Inherit from x86bsd_target.
2172 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
2173 (amd64bsd_dr_set): Likewise.
2174 (amd64bsd_dr_set_control): Likewise.
2175 (amd64bsd_dr_set_addr): Likewise.
2176 (amd64bsd_dr_get_addr): Likewise.
2177 (amd64bsd_dr_get_status): Likewise.
2178 (amd64bsd_dr_get_control): Likewise.
2179 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
2180 'amd64bsd-nat.h'.
2181 (super_mourn_inferior): Move to x86bsd-nat.c.
2182 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
2183 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
2184 'x86bsd_xsave_len'.
2185 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
2186 mourn_inferior' target op.
2187 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
2188 * config/i386/fbsd64.mh: Likewise.
2189 * config/i386/nbsd64.mh: Likewise.
2190 * config/i386/nbsdelf.mh: Likewise.
2191 * config/i386/obsd.mh: Likewise.
2192 * config/i386/obsd64.mh: Likewise.
2193 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
2194 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
2195 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
2196 with 'x86bsd_xsave_len'.
2197 (i386bsd_store_inferior_registers): Likewise.
2198 (i386bsd_target): Inherit from x86bsd_target.
2199 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
2200 (i386bsd_dr_set): Likewise.
2201 (i386bsd_dr_set_control): Likewise.
2202 (i386bsd_dr_set_addr): Likewise.
2203 (i386bsd_dr_get_addr): Likewise.
2204 (i386bsd_dr_get_status): Likewise.
2205 (i386bsd_dr_get_control): Likewise.
2206 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
2207 (i386bsd_dr_set_control): Remove.
2208 (i386bsd_dr_set_addr): Remove.
2209 (i386bsd_dr_get_addr): Remove.
2210 (i386bsd_dr_get_status): Remove.
2211 (i386bsd_dr_get_control): Remove.
2212 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
2213 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
2214 'x86bsd_xsave_len'.
2215 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
2216 mourn_inferior' target op.
2217 * x86bsd-nat.c: New file.
2218 * x86bsd-nat.h: New file.
2219
2220 2016-07-01 Pedro Alves <palves@redhat.com>
2221 Tom Tromey <tom@tromey.com>
2222
2223 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
2224 jit_inferior_created_hook.
2225 (jit_reader_unload_command): Call reinit_frame_cache and
2226 jit_inferior_exit_hook.
2227 * jit.c (struct jit_unwind_private) <registers>: Delete field.
2228 <regcache>: New field.
2229 (jit_unwind_reg_set_impl): Set the register's value in the
2230 regcache. Free the passed-in gdb_reg_value.
2231 (jit_dealloc_cache): Adjust to free the regcache.
2232 (jit_frame_sniffer): Allocate a regcache instead of an array of
2233 gdb_reg_value pointers.
2234 (jit_frame_this_id): Adjust.
2235 (jit_frame_prev_register): Read raw registers off of the regcache
2236 instead of from the gdb_reg_value pointer array. Use
2237 gdbarch_pseudo_register_read_value to read pseudo registers.
2238 * regcache.c (regcache_raw_set_cached_value): New function,
2239 factored out from ...
2240 (regcache_raw_write): ... here.
2241 * regcache.h (regcache_raw_set_cached_value): Declare.
2242
2243 2016-07-01 Pedro Alves <palves@redhat.com>
2244 Antoine Tremblay <antoine.tremblay@ericsson.com>
2245
2246 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
2247 out from ...
2248 (inf_ptrace_detach): ... here.
2249 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
2250 * linux-nat.c (get_pending_status): Rename to ...
2251 (get_detach_signal): ... this, and return a host signal instead of
2252 filling in a wait status.
2253 (detach_one_lwp): New function, factored out from detach_callback
2254 and adjusted to handle detaching from a zombie thread.
2255 (detach_callback): Skip the leader thread.
2256 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
2257 the leader thread, nor build a signal string to pass down.
2258 Instead, use target_announce_detach, detach_one_lwp and
2259 inf_ptrace_detach_success.
2260
2261 2016-07-01 Pedro Alves <palves@redhat.com>
2262
2263 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
2264 locations.
2265 * infcmd.c (detach_command): Call breakpoint_init_inferior.
2266
2267 2016-07-01 Pedro Alves <palves@redhat.com>
2268
2269 * darwin-nat.c (darwin_detach): Use target_announce_detach.
2270 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2271 * nto-procfs.c (procfs_detach): Likewise.
2272 * remote.c (remote_detach_1): Likewise.
2273 * target.c (target_announce_detach): New function.
2274 * target.h (target_announce_detach): New declaration.
2275
2276 2016-06-29 Tom Tromey <tom@tromey.com>
2277
2278 PR python/20129:
2279 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
2280 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
2281 not "name".
2282
2283 2016-06-29 Tom Tromey <tom@tromey.com>
2284
2285 PR gdb/17210:
2286 * target.c (free_memory_read_result_vector): Take a pointer to the
2287 VEC as an argument.
2288 (read_memory_robust): Install a cleanup for "result".
2289 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
2290
2291 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2292
2293 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
2294
2295 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2296
2297 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
2298
2299 2016-06-28 Yao Qi <yao.qi@linaro.org>
2300
2301 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
2302 variable new_offset.
2303
2304 2016-06-27 Manish Goregaokar <manish@mozilla.com>
2305
2306 * rust-lang.c (rust_print_type, rust_decorations): Print unit
2307 types as "()".
2308 (rust_print_type): Omit return type for functions returning unit.
2309
2310 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
2311
2312 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
2313 when there is an error during the breakpoint creation.
2314
2315 2016-06-25 Tom Tromey <tom@tromey.com>
2316
2317 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
2318 formatting.
2319
2320 2016-06-25 Manish Goregaokar <manish@mozilla.com>
2321
2322 PR gdb/20239
2323 * rust-lang.c (rust_get_disr_info): Correctly interpret
2324 NonZero-optimized enums of arbitrary depth.
2325 (rust_print_type): Correctly print NonZero-optimized
2326 enums.
2327
2328 2016-06-24 David Taylor <dtaylor@emc.com>
2329
2330 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
2331 * c-lang.h: Change all parameters, variables, and struct or union
2332 members used as struct or union fie3ld offsets from int to
2333 LONGEST.
2334 * c-valprint.c: Likewise.
2335 * cp-abi.c: Likewise.
2336 * cp-abi.h: Likewise.
2337 * cp-valprint.c: Likewise.
2338 * d-valprint.c: Likewise.
2339 * dwarf2loc.c: Likewise.
2340 * eval.c: Likewise.
2341 * extension-priv.h: Likewise.
2342 * extension.c: Likewise.
2343 * extension.h: Likewise.
2344 * findvar.c: Likewise.
2345 * gdbtypes.h: Likewise.
2346 * gnu-v2-abi.c: Likewise.
2347 * gnu-v3-abi.c: Likewise.
2348 * go-valprint.c: Likewise.
2349 * guile/guile-internal.h: Likewise.
2350 * guile/scm-pretty-print.c: Likewise.
2351 * jv-valprint.c Likewise.
2352 * opencl-lang.c: Likewise.
2353 * p-lang.h: Likewise.
2354 * python/py-prettyprint.c: Likewise.
2355 * python/python-internal.h: Likewise.
2356 * spu-tdep.c: Likewise.
2357 * typeprint.c: Likewise.
2358 * valarith.c: Likewise.
2359 * valops.c: Likewise.
2360 * valprint.c: Likewise.
2361 * valprint.h: Likewise.
2362 * value.c: Likewise.
2363 * value.h: Likewise.
2364 * p-valprint.c: Likewise.
2365 * c-typeprint.c (c_type_print_base): When printing offset, use
2366 plongest, not %d.
2367 * gdbtypes.c (recursive_dump_type): Ditto.
2368
2369 2016-06-24 David Taylor <david.taylor@emc.com>
2370
2371 * MAINTAINERS (Write After Approval): Add David Taylor.
2372
2373 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2374
2375 * configure.ac: Check for support for system call LWP fields on
2376 FreeBSD.
2377 * config.in, configure: Rebuild.
2378 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
2379 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2380 Report system call events.
2381 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
2382 (fbsd_set_syscall_catchpoint): New function.
2383 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2384 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
2385 * fbsd-tdep.c: Include xml-syscall.h
2386 (fbsd_get_syscall_number): New function.
2387 (fbsd_init_abi): Set XML system call file name.
2388 Add "get_syscall_number" gdbarch method.
2389 * syscalls/freebsd.xml: New file.
2390
2391 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2392
2393 * fbsd-tdep.c: Include "auxv.h".
2394 (fbsd_print_auxv_entry): New function.
2395 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
2396
2397 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2398
2399 * auxv.c (fprint_auxv_entry): New function.
2400 (default_print_auxv_entry): New function.
2401 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
2402 * auxv.h (enum auxv_format): New enum.
2403 (fprint_auxv_entry): Declare.
2404 (default_print_auxv_entry): Declare.
2405 * gdbarch.sh (print_auxv_entry): New.
2406 * gdbarch.c, gdbarch.h: Re-generated.
2407
2408 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2409
2410 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
2411 (fbsd_xfer_partial): New function.
2412 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
2413 "fbsd_xfer_partial".
2414
2415 2016-06-23 Tom Tromey <tom@tromey.com>
2416
2417 * symtab.c (symbol_find_demangled_name): Loop over languages and
2418 use language_sniff_from_mangled_name.
2419 * rust-lang.c (rust_sniff_from_mangled_name): New function.
2420 (rust_language_defn): Update.
2421 * p-lang.c (pascal_language_defn): Update.
2422 * opencl-lang.c (opencl_language_defn): Update.
2423 * objc-lang.c (objc_sniff_from_mangled_name): New function.
2424 (objc_language_defn): Update.
2425 * m2-lang.c (m2_language_defn): Update.
2426 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
2427 field.
2428 (language_sniff_from_mangled_name): Declare.
2429 * language.c (language_sniff_from_mangled_name): New function.
2430 (unknown_language_defn, auto_language_defn, local_language_defn):
2431 Update.
2432 * jv-lang.c (java_sniff_from_mangled_name): New function.
2433 (java_language_defn): Use it.
2434 * go-lang.c (go_sniff_from_mangled_name): New function.
2435 (go_language_defn): Use it.
2436 * f-lang.c (f_language_defn): Update.
2437 * defs.h (enum language): Reorder.
2438 * d-lang.c (d_sniff_from_mangled_name): New function.
2439 (d_language_defn): Use it.
2440 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
2441 * cp-support.c (gdb_sniff_from_mangled_name): New function.
2442 * c-lang.c (c_language_defn, cplus_language_defn)
2443 (asm_language_defn, minimal_language_defn): Update.
2444 * ada-lang.c (ada_sniff_from_mangled_name): New function.
2445 (ada_language_defn): Use it.
2446
2447 2016-06-23 Tom Tromey <tom@tromey.com>
2448
2449 * ada-lang.c (ada_extensions): New array.
2450 (ada_language_defn): Use it.
2451 * c-lang.c (c_extensions): New array.
2452 (c_language_defn): Use it.
2453 (cplus_extensions): New array.
2454 (cplus_language_defn): Use it.
2455 (asm_extensions): New array.
2456 (asm_language_defn): Use it.
2457 (minimal_language_defn): Update.
2458 * d-lang.c (d_extensions): New array.
2459 (d_language_defn): Use it.
2460 * f-lang.c (f_extensions): New array.
2461 (f_language_defn): Use it.
2462 * go-lang.c (go_language_defn): Update.
2463 * jv-lang.c (java_extensions): New array.
2464 (java_language_defn): Use it.
2465 * language.c (add_language): Call add_filename_language.
2466 (unknown_language_defn, auto_language_defn, local_language_defn):
2467 Update.
2468 * language.h (struct language_defn) <la_filename_extensions>: New
2469 field.
2470 * m2-lang.c (m2_language_defn): Update.
2471 * objc-lang.c (objc_extensions): New array.
2472 (objc_language_defn): Use it.
2473 * opencl-lang.c (opencl_language_defn): Update.
2474 * p-lang.c (p_extensions): New array.
2475 (pascal_language_defn): Use it.
2476 * rust-lang.c (rust_extensions): New array.
2477 (rust_language_defn): Use it.
2478 * symfile.c (add_filename_language): No longer static. Make "ext"
2479 const.
2480 (init_filename_language_table): Remove.
2481 (_initialize_symfile): Update.
2482 * symfile.h (add_filename_language): Declare.
2483
2484 2016-06-23 Tom Tromey <tom@tromey.com>
2485
2486 * symfile.c (filename_language_table): Now a VEC.
2487 (fl_table_size, fl_table_next): Remove.
2488 (add_filename_language): Use VEC_safe_push.
2489 (set_ext_lang_command, info_ext_lang_command)
2490 (deduce_language_from_filename): Use VEC_iterate.
2491 (init_filename_language_table): Use VEC_empty.
2492
2493 2016-06-23 Tom Tromey <tom@tromey.com>
2494
2495 * python/python.c (gdbpy_parameter): Now static.
2496 * python/python-internal.h (gdbpy_parameter): Don't declare.
2497
2498 2016-06-23 Tom Tromey <tom@tromey.com>
2499
2500 PR gdb/16483:
2501 * python/lib/gdb/command/frame_filters.py
2502 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
2503 nothing if no filters found. Return value indicating whether
2504 filters were printed.
2505 (InfoFrameFilter.print_list): Remove.
2506 (InfoFrameFilter.invoke): Print message if no frame filters
2507 found.
2508
2509 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
2510
2511 * f-valprint.c (f_val_print): Add field names for printing
2512 derived types fields.
2513
2514 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2515
2516 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
2517 in name of last-break regset.
2518
2519 2016-06-21 Pedro Alves <palves@redhat.com>
2520
2521 * fork-child.c (fork_inferior): Switch the child to the main UI
2522 right after vfork. Save/restore the current UI in the parent.
2523 Flush outputs of the main UI instead of the current UI.
2524
2525 2016-06-21 Pedro Alves <palves@redhat.com>
2526
2527 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
2528 to all UIs.
2529
2530 2016-06-21 Pedro Alves <palves@redhat.com>
2531
2532 * NEWS: Mention support for running interpreters on separate
2533 UIs and the new new-ui command.
2534
2535 2016-06-21 Pedro Alves <palves@redhat.com>
2536
2537 * interps.c (set_top_level_interpreter): New function, factored
2538 out from captured_main.
2539 (interpreter_completer): Make extern.
2540 * interps.h (set_top_level_interpreter, interpreter_completer):
2541 New declarations.
2542 (captured_main): Use set_top_level_interpreter.
2543 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
2544 (open_terminal_stream, new_ui_command): New functions.
2545 (init_main): Install the "new-ui" command.
2546
2547 2016-06-21 Pedro Alves <palves@redhat.com>
2548
2549 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
2550 (read_command_lines): Use input_interactive_p instead of
2551 input_from_terminal_p.
2552 * defs.h (struct ui): Forward declare.
2553 (input_from_terminal_p): Rename to ...
2554 (input_interactive_p): ... this.
2555 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
2556 to quit_command.
2557 (command_handler): Adjust to per-UI stdin.
2558 (handle_line_of_input): Adjust to per-UI stdin and use
2559 input_interactive_p instead of ISATTY and input_from_terminal_p.
2560 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
2561 (command_line_handler): Always pass true as "from_tty" parameter
2562 of handle_line_of_input and execute_command.
2563 (async_sigterm_handler): Pass 0 as from_tty argument to
2564 quit_command.
2565 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
2566 (gdb_has_a_terminal): Don't check interactive_mode here.
2567 (_initialize_inflow): Don't install "set interactive-mode" here.
2568 * main.c (captured_command_loop): Adjust to per-UI stdin.
2569 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
2570 stdin.
2571 * top.c (new_ui): Save the stdin stream and whether it's a tty.
2572 (dont_repeat): Adjust to per-UI stdin.
2573 (command_line_input): Adjust to per-UI stdin and to use
2574 input_interactive_p.
2575 (quit_force): Write history if any UI supports interactive input.
2576 (interactive_mode, show_interactive_mode): Move here, from
2577 inflow.c.
2578 (input_from_terminal_p): Rename to ...
2579 (input_interactive_p): ... this, and check the "interactive_mode"
2580 global instead of calling gdb_has_a_terminal.
2581 (_initialize_top): Install "set interactive-mode" here.
2582 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
2583 fields.
2584 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
2585 (defaulted_query): Adjust to per-UI stdin and to use
2586 input_interactive_p.
2587
2588 2016-06-21 Pedro Alves <palves@redhat.com>
2589
2590 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
2591 secondary UI's input stream that closed. Instead, just delete the
2592 UI.
2593
2594 2016-06-21 Pedro Alves <palves@redhat.com>
2595
2596 * event-top.c (main_ui_): Delete.
2597 (main_ui, current_ui, ui_list): No longer initialize here.
2598 * main.c (captured_main): UI initialization code factored out to
2599 new new_ui function.
2600 (gdb_main): Wrap captured_main with TRY/CATCH instead of
2601 catch_errors.
2602 * top.c (highest_ui_num): New global.
2603 (new_ui): New function.
2604 * top.h (struct ui) <num>: New field.
2605 (new_ui): New declaration.
2606
2607 2016-06-21 Pedro Alves <palves@redhat.com>
2608
2609 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
2610 nothing to print. Use should_print_stop_to_console.
2611 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
2612
2613 2016-06-21 Pedro Alves <palves@redhat.com>
2614
2615 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
2616 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
2617 thread parameter.
2618 (until_break_command): Pass command interpreter to thread fsm
2619 ctor.
2620 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
2621 * gdbthread.h (struct thread_control_state) <command_interp>:
2622 Delete field.
2623 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
2624 Pass it down.
2625 (call_thread_fsm_should_stop): Add thread parameter.
2626 (call_function_by_hand_dummy): Pass command interpreter to thread
2627 fsm ctor. Pass thread pointer to fsm clean up method.
2628 * infcmd.c: Include interps.h.
2629 (struct step_command_fsm) <thread>: Delete field.
2630 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
2631 (step_command_fsm_prepare): Remove references to fsm's thread
2632 field.
2633 (step_1): Pass command interpreter to thread
2634 fsm ctor. Pass thread pointer to fsm clean up method.
2635 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
2636 thread parameter and use it.
2637 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
2638 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
2639 parameter and use it.
2640 (until_next_command): Pass command interpreter to thread fsm ctor.
2641 (struct finish_command_fsm) <thread>: Delete field.
2642 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
2643 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
2644 down. Remove thread parameter and adjust.
2645 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
2646 thread parameter and use it.
2647 (finish_command): Pass command interpreter to thread fsm ctor.
2648 Don't pass thread.
2649 * infrun.c (follow_fork): Move thread fsm to child fork instead of
2650 command interpreter, only.
2651 (clear_proceed_status_thread): Remove reference to command_interp.
2652 (proceed): Don't record the thread's command interpreter.
2653 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
2654 method.
2655 (fetch_inferior_event): Pass thread to fsm should_stop method.
2656 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
2657 Store it.
2658 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2659 parameter and pass it down.
2660 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
2661 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
2662 parameter.
2663 (thread_fsm_ctor): Add 'cmd_interp' parameter.
2664 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2665 parameter.
2666 * thread.c (thread_cancel_execution_command): Pass thread to
2667 thread fsm clean_up method.
2668
2669 2016-06-21 Pedro Alves <palves@redhat.com>
2670
2671 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
2672 (should_print_stop_to_console): New function, factored out from
2673 mi_on_normal_stop_1.
2674 * cli/cli-interp.h (should_print_stop_to_console): Declare.
2675 * mi/mi-interp.c (mi_on_normal_stop_1): Use
2676 should_print_stop_to_console. Pass it the current UI's console
2677 interpreter.
2678 * mi/mi-main.c (captured_mi_execute_command): Use the
2679 INTERP_CONSOLE symbol rather than explicit "console".
2680
2681 2016-06-21 Pedro Alves <palves@redhat.com>
2682
2683 * infcmd.c (prepare_execution_command): Use
2684 all_uis_on_sync_execution_starting.
2685 * infrun.c (all_uis_on_sync_execution_starting): New function.
2686 * infrun.h (all_uis_on_sync_execution_starting): Declare.
2687
2688 2016-06-21 Pedro Alves <palves@redhat.com>
2689
2690 * annotate.c: Include top.h.
2691 (async_background_execution_p): Delete.
2692 (print_value_flags): Check the UI's prompt state rather then
2693 async_background_execution_p.
2694 * event-loop.c (start_event_loop): Set the prompt state to
2695 PROMPT_NEEDED.
2696 * event-top.c (display_gdb_prompt, async_enable_stdin)
2697 (async_disable_stdin): Check the current UI's prompt state instead
2698 of the sync_execution global.
2699 (command_line_handler): Set the prompt state to PROMPT_NEEDED
2700 before running a command, and display the prompt if still needed
2701 afterwards.
2702 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
2703 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
2704 (call_thread_fsm_should_stop): Set the prompt state to
2705 PROMPT_NEEDED.
2706 (run_inferior_call): Adjust to temporarily set the prompt state to
2707 PROMPT_BLOCKED instead of using the sync_execution global.
2708 (call_function_by_hand_dummy): Pass the current UI to
2709 new_call_thread_fsm.
2710 * infcmd.c: Include top.h.
2711 (continue_1): Check the current UI's prompt state instead of the
2712 sync_execution global.
2713 (continue_command): Validate global execution state before calling
2714 prepare_execution_command.
2715 (step_1): Call all_uis_check_sync_execution_done.
2716 (attach_post_wait): Don't call async_enable_stdin here. Remove
2717 reference to sync_execution.
2718 * infrun.c (sync_execution): Delete global.
2719 (follow_fork_inferior)
2720 (reinstall_readline_callback_handler_cleanup): Check the current
2721 UI's prompt state instead of the sync_execution global.
2722 (check_curr_ui_sync_execution_done)
2723 (all_uis_check_sync_execution_done): New functions.
2724 (fetch_inferior_event): Call all_uis_check_sync_execution_done
2725 instead of trying to determine whether the global sync execution
2726 changed.
2727 (handle_no_resumed): Check the prompt state of all UIs.
2728 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
2729 UIs. Emit the "Switching to" notification to all UIs. Enable
2730 stdin in all UIs.
2731 * infrun.h (sync_execution): Delete.
2732 (all_uis_check_sync_execution_done): Declare.
2733 * main.c (captured_command_loop): Don't call
2734 interp_pre_command_loop if the prompt is blocked.
2735 (catch_command_errors, catch_command_errors_const): Adjust.
2736 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
2737 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
2738 PROMPTED.
2739 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
2740 comment.
2741 (mi_execute_command_input_handler): Set the prompt state to
2742 PROMPT_NEEDED before executing the command, and only display the
2743 prompt if the prompt state is PROMPT_NEEDED afterwards.
2744 (mi_on_resume_1): Adjust to check the prompt state.
2745 * target.c (target_terminal_inferior): Adjust to check the prompt
2746 state.
2747 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
2748 (execute_command): Check the current UI's prompt state instead of
2749 sync_execution.
2750 * top.h (enum prompt_state): New.
2751 (struct ui) <prompt_state>: New field.
2752 (ALL_UIS): New macro.
2753
2754 2016-06-21 Pedro Alves <palves@redhat.com>
2755
2756 * top.c (gdb_secondary_prompt_depth): Delete.
2757 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
2758 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
2759 per-UI gdb_secondary_prompt_depth.
2760 * top.h (struct ui) <secondary_prompt_depth>: New field.
2761
2762 2016-06-21 Pedro Alves <palves@redhat.com>
2763
2764 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
2765 function.
2766 (cli_interp_procs): Install it instead of cli_command_loop.
2767 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
2768 * event-top.c (cli_command_loop): Delete.
2769 * interps.c (interp_new): Remove reference to command_loop_proc.
2770 (current_interp_command_loop): Delete.
2771 (interp_pre_command_loop): New function.
2772 (interp_command_loop_ftype): Delete.
2773 * interps.h (interp_pre_command_loop_ftype): New typedef.
2774 (struct interp_procs) <command_loop_proc>: Delele field.
2775 <pre_command_loop_proc>: New field.
2776 (current_interp_command_loop): Delete declaration.
2777 (interp_pre_command_loop): New declaration.
2778 * main.c (captured_command_loop): Call interp_pre_command_loop
2779 instead of current_interp_command_loop and start an event loop.
2780 * mi/mi-interp.c (mi_command_loop): Delete.
2781 (mi_interpreter_pre_command_loop): New.
2782 (mi_interp_procs): Update.
2783 * tui/tui-interp.c (tui_interp_procs): Install
2784 cli_interpreter_pre_command_loop instead of cli_command_loop.
2785
2786 2016-06-21 Pedro Alves <palves@redhat.com>
2787
2788 * interps.c (current_interpreter): New function.
2789 * interps.h (current_interpreter): New declaration.
2790 * mi/mi-cmds.h (raw_stdout): Delete declaration.
2791 * mi/mi-common.h (struct mi_interp) <raw_stdout,
2792 saved_raw_stdout>: New field.
2793 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
2794 to per-UI raw_stdout.
2795 (mi_interpreter_init): Adjust to per-UI raw_stdout.
2796 (mi_on_sync_execution_done, mi_execute_command_input_handler)
2797 (mi_command_loop): Pass MI instance to display_mi_prompt.
2798 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
2799 (mi_on_resume): Adjust to per-UI raw_stdout.
2800 (saved_raw_stdout): Delete.
2801 (mi_set_logging): Adjust to per-UI raw_stdout and
2802 saved_raw_stdout.
2803 * mi/mi-main.c (raw_stdout): Delete.
2804 (mi_cmd_gdb_exit, captured_mi_execute_command)
2805 (mi_print_exception, mi_load_progress): Adjust to per-UI
2806 raw_stdout.
2807 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
2808 Pass it along.
2809 (print_diff): New ui_file parameter. Send output there instead of
2810 raw_stdout.
2811 * mi/mi-main.h (struct ui_file): Forward declare.
2812 (mi_print_timing_maybe): Add ui_file parameter.
2813
2814 2016-06-21 Pedro Alves <palves@redhat.com>
2815
2816 * mi/mi-interp.c (display_mi_prompt): New function.
2817
2818 2016-06-21 Pedro Alves <palves@redhat.com>
2819
2820 * target.c (target_terminal_inferior): Bail out after
2821 unregistering input_fd if not on the main UI.
2822 (target_terminal_ours): Bail out after registering input_fd if not
2823 on the main UI.
2824 (target_terminal_ours_for_output): Bail out if not on the main UI.
2825
2826 2016-06-21 Pedro Alves <palves@redhat.com>
2827
2828 * event-top.c (restore_ui_cleanup): Make extern.
2829 * infrun.c (fetch_inferior_event): Always switch to the main UI.
2830 * top.h (restore_ui_cleanup): Declare.
2831
2832 2016-06-21 Pedro Alves <palves@redhat.com>
2833
2834 PR mi/20034
2835 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
2836 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
2837 UI's input_handler here.
2838 (cli_interpreter_supports_command_editing): New function.
2839 (cli_interp_procs): Install it.
2840 * cli/cli-interp.h: New file.
2841 * event-top.c (async_command_editing_p): Rename to ...
2842 (set_editing_cmd_var): ... this.
2843 (change_line_handler): Add parameter 'editing', and use it. Bail
2844 early if the interpreter doesn't support editing. Don't touch
2845 readline state if editing is off.
2846 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2847 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
2848 main UI.
2849 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
2850 not using readline. Check whether the current UI is using command
2851 editing instead of checking the async_command_editing_p global.
2852 (set_async_editing_command): Delete.
2853 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
2854 on the main UI. Don't touch readline state if editing is off.
2855 (gdb_disable_readline): Don't touch readline state if editing is
2856 off.
2857 * event-top.h (gdb_setup_readline): Add 'int' parameter.
2858 (set_async_editing_command): Delete declaration.
2859 (change_line_handler, command_line_handler): Declare.
2860 (async_command_editing_p): Rename to ...
2861 (set_editing_cmd_var): ... this.
2862 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
2863 whether the current UI has editing enabled rather than checking
2864 the async_command_editing_p global.
2865 * interps.c (interp_supports_command_editing): New function.
2866 * interps.h (interp_supports_command_editing_ftype): New typedef.
2867 (struct interp_procs) <supports_command_editing_proc>: New field.
2868 (interp_supports_command_editing): Declare.
2869 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
2870 gdb_setup_readline. Don't clear the async_command_editing_p
2871 global. Update comments.
2872 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
2873 whether the current UI has editing enabled rather than checking
2874 the async_command_editing_p global. Don't touch readline state if
2875 editing is off.
2876 (undo_terminal_modifications_before_exit): Switch to the main UI.
2877 Unconditionally call gdb_disable_readline.
2878 (set_editing): New function.
2879 (show_async_command_editing_p): Rename to ...
2880 (show_editing): ... this. Show the state of the current UI.
2881 (_initialize_top): Adjust.
2882 * top.h (struct ui) <command_editing>: New field.
2883 * tui/tui-interp.c: Include cli/cli-interp.h.
2884 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
2885 input_handler.
2886 (tui_interp_procs): Install
2887 cli_interpreter_supports_command_editing.
2888 * tui/tui-io.c (tui_getc): Check whether the current UI has
2889 editing enabled rather than checking the async_command_editing_p
2890 global.
2891
2892 2016-06-21 Pedro Alves <palves@redhat.com>
2893
2894 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
2895 * top.h (struct ui) <m_current_uiout>: New field.
2896 * ui-out.c (current_uiout): Delete.
2897 * ui-out.h (current_uiout): Delete.
2898 (current_ui_current_uiout_ptr): New declaration.
2899 (current_uiout): Reimplement as wrapper around
2900 current_ui_current_uiout_ptr.
2901
2902 2016-06-21 Pedro Alves <palves@redhat.com>
2903
2904 * ui-out.c (default_ui_out_impl): Delete.
2905 (def_uiout): Delete.
2906 (current_uiout): Set to NULL.
2907 (default_table_begin, default_table_body, default_table_end)
2908 (default_table_header, default_begin, default_end)
2909 (default_field_int, default_field_skip, default_field_string)
2910 (default_field_fmt, default_spaces, default_text, default_message)
2911 (default_wrap_hint, default_flush, default_data_destroy): Delete.
2912
2913 2016-06-21 Pedro Alves <palves@redhat.com>
2914
2915 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
2916 errstream to stdout_fileopen and stderr_fileopen.
2917 * exceptions.c: Include top.h.
2918 (print_flush): Open the current UI's outstream file descriptor,
2919 instead of hardcoding file descriptor 1.
2920 * main.c (captured_main): Save the main UI's out and error
2921 streams. Adjust stderr_fileopen call.
2922 * top.h (struct ui) <outstream, errstream>: New fields.
2923 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
2924 instead of stderr.
2925 * ui-file.h (stderr_fileopen): Add stream parameter and update
2926 comment.
2927
2928 2016-06-21 Pedro Alves <palves@redhat.com>
2929
2930 * event-top.c (input_fd): Delete.
2931 (stdin_event_handler): Switch to the UI whose input descriptor got
2932 the event. Adjust to per-UI input_fd.
2933 (gdb_setup_readline): Don't set the input_fd global. Adjust to
2934 per-UI input_fd.
2935 (gdb_disable_readline): Adjust to per-UI input_fd.
2936 * event-top.h (input_fd): Delete declaration.
2937 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
2938 from the event-loop here.
2939 (linux_nat_terminal_ours): Don't register input_fd in the
2940 event-loop here.
2941 * main.c (captured_main): Adjust to per-UI input_fd.
2942 * remote.c (remote_terminal_inferior): Don't remove input_fd from
2943 the event-loop here.
2944 (remote_terminal_ours): Don't register input_fd in the event-loop
2945 here.
2946 * target.c: Include top.h and event-top.h.
2947 (target_terminal_inferior): Remove input_fd from the event-loop
2948 here.
2949 (target_terminal_ours): Register input_fd in the event-loop.
2950 * top.h (struct ui) <input_fd>: New field.
2951
2952 2016-06-21 Pedro Alves <palves@redhat.com>
2953
2954 * cli/cli-script.c (execute_user_command, read_next_line)
2955 (read_next_line): Adjust to per-UI instream.
2956 * event-top.c (stdin_event_handler, command_handler)
2957 (handle_line_of_input, command_line_handler)
2958 (gdb_readline_no_editing_callback, async_sigterm_handler)
2959 (gdb_setup_readline): Likewise.
2960 * inflow.c: Include top.h.
2961 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
2962 (gdb_save_tty_state, child_terminal_inferior)
2963 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
2964 (initialize_stdin_serial): Adjust to per-UI instream.
2965 * main.c (captured_command_loop, captured_main): Adjust to per-UI
2966 instream.
2967 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
2968 * python/python.c (python_interactive_command): Likewise.
2969 * terminal.h (struct ui): Forward declare.
2970 (initialize_stdin_serial): Add struct ui parameter.
2971 * top.c (instream): Delete.
2972 (do_restore_instream_cleanup, read_command_file, dont_repeat)
2973 (gdb_readline_no_editing, command_line_input)
2974 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
2975 * top.h (struct ui) <instream>: New field.
2976 (instream): Delete declaration.
2977 (quit): Adjust to per-UI instream.
2978
2979 2016-06-21 Pedro Alves <palves@redhat.com>
2980
2981 * event-loop.c: Include top.h.
2982 (invoke_async_signal_handlers): Switch to the main UI.
2983 * event-top.c (main_ui_): Update comment.
2984 (main_ui): New global.
2985 * top.h (main_ui): Declare.
2986
2987 2016-06-21 Pedro Alves <palves@redhat.com>
2988
2989 * cli/cli-interp.c (cli_interp): Delete.
2990 (as_cli_interp): New function.
2991 (cli_on_normal_stop, cli_on_signal_received)
2992 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2993 (cli_on_no_history): Send output to all CLI UIs.
2994 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
2995 the top level interpreter is not a CLI.
2996 (cli_interpreter_init): Don't set cli_interp or install observers
2997 here.
2998 (_initialize_cli_interp): Install observers here.
2999 * event-top.c (main_ui_, ui_list): New globals.
3000 (current_ui): Point to main_ui_.
3001 (restore_ui_cleanup, switch_thru_all_uis_init)
3002 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
3003 functions.
3004 * mi/mi-interp.c (as_mi_interp): New function.
3005 (mi_interpreter_init): Don't install observers here.
3006 (mi_on_sync_execution_done): Skip output if the top level
3007 interpreter is not a MI.
3008 (mi_new_thread, mi_thread_exit, mi_record_changed)
3009 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
3010 (mi_inferior_removed): Send output to all MI UIs.
3011 (find_mi_interpreter, mi_interp_data): Delete.
3012 (find_mi_interp): New function.
3013 (mi_on_signal_received, mi_on_end_stepping_range)
3014 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
3015 to all MI UIs.
3016 (mi_on_normal_stop): Rename to ...
3017 (mi_on_normal_stop_1): ... this.
3018 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
3019 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
3020 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
3021 (mi_breakpoint_modified, mi_output_running_pid): Send output to
3022 all MI UIs.
3023 (mi_on_resume): Rename to ...
3024 (mi_on_resume_1): ... this. Don't handle infcalls here.
3025 (mi_on_resume): Reimplement, sending output to all MI UIs.
3026 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
3027 (mi_memory_changed): Send output to all MI UIs.
3028 (report_initial_inferior): Install observers here.
3029 * top.h (struct ui) <next>: New field.
3030 (ui_list): Declare.
3031 (struct switch_thru_all_uis): New.
3032 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
3033 (switch_thru_all_uis_next): Declare.
3034 (SWITCH_THRU_ALL_UIS): New macro.
3035 * tui/tui-interp.c (tui_interp): Delete global.
3036 (as_tui_interp): New function.
3037 (tui_on_normal_stop, tui_on_signal_received)
3038 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
3039 (tui_on_no_history): Send output to all TUI UIs.
3040 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
3041 the top level interpreter is not a TUI.
3042 (tui_init): Don't set tui_interp or install observers here.
3043 (_initialize_tui_interp): Install observers here.
3044
3045 2016-06-21 Pedro Alves <palves@redhat.com>
3046
3047 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
3048 (struct cli_interp): ... this new structure.
3049 (cli_on_normal_stop, cli_on_signal_received)
3050 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
3051 (cli_on_no_history): Use interp_ui_out.
3052 (cli_interpreter_init): If top level, set the cli_interp global.
3053 (cli_interpreter_init): Return the interp's data instead of NULL.
3054 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
3055 to cli_uiout being in the interpreter's data.
3056 (cli_interp_procs): New, factored out from _initialize_cli_interp.
3057 (cli_interp_factory): New function.
3058 (_initialize_cli_interp): Call interp_factory_register.
3059 * interps.c (get_interp_info): New, factored out from ...
3060 (get_current_interp_info): ... this.
3061 (interp_new): Add parameter 'data'. Store it.
3062 (struct interp_factory): New function.
3063 (interp_factory_p): New typedef. Define a VEC_P.
3064 (interpreter_factories): New global.
3065 (interp_factory_register): New function.
3066 (interp_add): Add 'ui' parameter. Use get_interp_info and
3067 interp_lookup_existing.
3068 (interp_lookup): Rename to ...
3069 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
3070 check for NULL or empty name here.
3071 (interp_lookup): Add 'ui' parameter and reimplement.
3072 (interp_set_temp, interpreter_exec_cmd): Adjust.
3073 (interpreter_completer): Complete on registered interpreter
3074 factories instead of interpreters.
3075 * interps.h (interp_factory_func): New typedef.
3076 (interp_factory_register): Declare.
3077 (interp_new, interp_add): Adjust.
3078 (interp_lookup): Declare.
3079 * main.c (captured_main): Adjust.
3080 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
3081 (mi_interp_procs): New, factored out from
3082 _initialize_mi_interp.
3083 (mi_interp_factory): New function.
3084 * python/python.c (execute_gdb_command): Adjust.
3085 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
3086 global.
3087 (tui_interp_procs): New.
3088 (tui_interp_factory): New function.
3089 (_initialize_tui_interp): Call interp_factory_register.
3090
3091 2016-06-21 Pedro Alves <palves@redhat.com>
3092
3093 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
3094 async field instead of the interpreter_async global.
3095 * cli/cli-script.c (execute_user_command, while_command)
3096 (if_command, script_from_file): Likewise.
3097 * compile/compile.c: Include top.h instead of interps.h.
3098 (compile_file_command, compile_code_command)
3099 (compile_print_command): Access the current UI's async field
3100 instead of the interpreter_async global.
3101 * guile/guile.c: Include top.h instead of interps.h.
3102 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
3103 Access the current UI's async field instead of the
3104 interpreter_async global.
3105 * guile/scm-ports.c: Include top.h instead of interps.h.
3106 (ioscm_with_output_to_port_worker): Access the current UI's async
3107 field instead of the interpreter_async global.
3108 * inf-loop.c (inferior_event_handler): Likewise.
3109 * infcall.c (run_inferior_call): Likewise.
3110 * infrun.c (reinstall_readline_callback_handler_cleanup)
3111 (fetch_inferior_event): Likewise.
3112 * interps.c (interpreter_async): Delete.
3113 (struct ui_interp_info): New.
3114 (get_current_interp_info): New function.
3115 (interp_list, current_interpreter, top_level_interpreter_ptr):
3116 Delete.
3117 (interp_add, interp_set, interp_lookup, interp_ui_out)
3118 (current_interp_set_logging, interp_set_temp)
3119 (current_interp_named_p): Adjust to per-UI interpreters.
3120 (command_interpreter): Delete.
3121 (command_interp, current_interp_command_loop, interp_quiet_p)
3122 (interp_exec, interpreter_exec_cmd, interpreter_completer)
3123 (top_level_interpreter, top_level_interpreter_data): Adjust to
3124 per-UI interpreters.
3125 * interps.h (interpreter_async): Delete.
3126 * main.c (captured_command_loop): Access the current UI's async
3127 field instead of the interpreter_async global.
3128 * python/python.c (python_interactive_command, python_command)
3129 (execute_gdb_command): Likewise.
3130 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
3131 Access the current UI's async field instead of the
3132 interpreter_async global.
3133 * top.h (struct tl_interp_info): Forward declare.
3134 (struct ui) <interp_info, async>: New fields.
3135
3136 2016-06-21 Pedro Alves <palves@redhat.com>
3137
3138 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
3139 globals.
3140 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
3141 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
3142 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
3143 m_gdb_stdlog>: New fields.
3144 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
3145 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
3146 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
3147 macros.
3148
3149 2016-06-21 Pedro Alves <palves@redhat.com>
3150
3151 * event-top.c: Update readline-related comments.
3152 (input_handler, call_readline): Delete globals.
3153 (gdb_rl_callback_handler): Call the current UI's input_handler
3154 method.
3155 (change_line_handler): Adjust to set current UI's properties
3156 instead of globals.
3157 (current_ui_, current_ui): New globals.
3158 (get_command_line_buffer): Rewrite to refer to the current UI.
3159 (stdin_event_handler): Adjust to call the call_readline method of
3160 the current UI.
3161 (gdb_readline_no_editing_callback): Adjust to call the current UI's
3162 input_handler method.
3163 (gdb_setup_readline): Adjust to set current UI's properties
3164 instead of globals.
3165 * event-top.h (call_readline, input_handler): Delete declarations.
3166 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
3167 UI's properties instead of globals.
3168 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
3169 properties instead of globals.
3170 (gdb_readline_wrapper): Adjust to call and set current UI's
3171 methods instead of globals.
3172 * top.h: Include buffer.h and event-loop.h.
3173 (struct ui): New struct.
3174 (current_ui): New declaration.
3175
3176 2016-06-21 Pedro Alves <palves@redhat.com>
3177
3178 * ada-lang.c (ada_exception_name_addr_1): Add comment.
3179 (print_it_exception): Select the current frame.
3180
3181 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
3182
3183 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
3184 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
3185 (ALLDEPFILES): Add nds32-tdep.c.
3186 * NEWS: Mention new NDS32 port.
3187 * configure.tgt: Add NDS32.
3188 * nds32-tdep.c: New file.
3189 * nds32-tdep.h: New file.
3190 * features/Makefile (XMLTOC): Add nds32.xml.
3191 * features/nds32-core.xml: New file.
3192 * features/nds32-fpu.xml: New file.
3193 * features/nds32-system.xml: New file.
3194 * features/nds32.c: New file (generated).
3195 * features/nds32.xml: New file.
3196
3197 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3198
3199 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
3200
3201 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3202
3203 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
3204
3205 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3206
3207 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
3208
3209 2016-06-13 Nick Clifton <nickc@redhat.com>
3210
3211 * gdbtypes.c (replace_type): Fix assertion.
3212
3213 2016-06-10 Tom Tromey <tom@tromey.com>
3214
3215 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
3216 (arch_boolean_type, arch_float_type, arch_complex_type)
3217 (arch_flags_type, append_flags_type_field)
3218 (append_flags_type_flag, arch_composite_type)
3219 (append_composite_type_field_raw)
3220 (append_composite_type_field_aligned)
3221 (append_composite_type_field): Make "name" parameter const.
3222 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
3223 (arch_boolean_type, arch_float_type, arch_complex_type)
3224 (append_composite_type_field, append_composite_type_field_aligned)
3225 (append_composite_type_field_raw, arch_flags_type)
3226 (append_flags_type_field, append_flags_type_flag): Constify.
3227
3228 2016-06-10 Tom Tromey <tom@tromey.com>
3229
3230 PR rust/20110:
3231 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
3232
3233 2016-06-10 Tom Tromey <tom@tromey.com>
3234
3235 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
3236 (YYFILES): Add rust-exp.c.
3237 (YYOBJ): Add rust-exp.o.
3238 (local-maintainer-clean): Remove rust-exp.c.
3239
3240 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3241
3242 * NEWS: Mention that GDB now supports a negative repeat count in
3243 the 'x' command.
3244 * printcmd.c (decode_format): Allow '-' in the parameter
3245 "string_ptr" to accept a negative repeat count.
3246 (find_instruction_backward): New function.
3247 (read_memory_backward): New function.
3248 (integer_is_zero): New function.
3249 (find_string_backward): New function.
3250 (do_examine): Use new functions to examine memory backward.
3251 (_initialize_printcmd): Mention that 'x' command supports a negative
3252 repeat count.
3253
3254 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3255
3256 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
3257
3258 2016-06-09 Tom Tromey <tom@tromey.com>
3259
3260 PR python/19819:
3261 * python/py-xmethods.c (invoke_method_name)
3262 (py_get_result_type_method_name, py_invoke_method_name): Remove.
3263 (gdbpy_initialize_xmethods): Don't initialize
3264 py_invoke_method_name, py_get_result_type_method_name.
3265
3266 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
3267
3268 * mi/mi-interp.c (mi_record_changed): Add missing braces.
3269
3270 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
3271
3272 * findvar.c (follow_static_link): Check for valid pointer.
3273
3274 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
3275
3276 * NEWS: Mention the new fields in =record-started.
3277 * common/btrace-common.h (btrace_format_short_string): New function
3278 declaration.
3279 * common/btrace-common.c (btrace_format_short_string): New
3280 function.
3281 * mi/mi-interp.c (mi_record_changed): Output method and format
3282 fields in the =record-started record.
3283 * record-btrace.c (record_btrace_open): Adapt record_changed
3284 notification.
3285 * record-full.c (record_full_open): Likewise.
3286 * record.c (cmd_record_stop): Likewise.
3287
3288 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3289
3290 * windows-nat.c (handle_output_debug_string): Return type of
3291 gdb_signal_from_host() is gdb_signal, not an int.
3292 (windows_get_exec_module_filename): Add pointer casts for C++.
3293
3294 2016-06-02 Tom Tromey <tom@tromey.com>
3295
3296 PR python/18984:
3297 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
3298
3299 2016-06-01 Pedro Alves <palves@redhat.com>
3300
3301 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
3302 (remote_fio_osa)
3303 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
3304 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
3305 Delete.
3306 (remote_fileio_o_quit_handler): New global.
3307 (remote_fileio_quit_handler): New function.
3308 (remote_fileio_reply): Check the quit flag instead of the custom
3309 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
3310 of changing the SIGINT handler.
3311 (do_remote_fileio_request): Override the quit handler instead of
3312 changing the SIGINT handler.
3313
3314 2016-06-01 Nick Clifton <nickc@redhat.com>
3315
3316 * common/common-utils.c (xmalloc_failed): New function. Provided
3317 so that the version in libiberty is not linked in.
3318
3319 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
3320
3321 * infcmd.c (skip_finish_frames): New.
3322 (finish_command): Call skip_finish_frames.
3323
3324 2016-06-01 Yao Qi <yao.qi@linaro.org>
3325
3326 PR remote/19998
3327 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
3328 quit_serial_event_set.
3329
3330 2016-06-01 Joel Brobecker <brobecker@adacore.com>
3331
3332 GDB 7.11.1 released.
3333
3334 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
3335
3336 PR c++/19893
3337 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
3338 fetch_const_value_from_synthetic_pointer): New functions.
3339 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
3340 (pieced_value_funcs): Implement coerce_ref.
3341 * valops.c (value_addr): Call coerce_ref for synthetic references.
3342 * valprint.c (valprint_check_validity): Return true for synthetic
3343 references. Also, don't show "<synthetic pointer>" if they reference
3344 addressable values.
3345 (generic_val_print_ref): Handle synthetic references. Also move some
3346 code to print_ref_address.
3347 (print_ref_address, get_value_addr_contents): New functions.
3348
3349 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3350
3351 PR c++/15231
3352 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
3353 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
3354 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
3355 (read_call_site_scope): Adjust callers.
3356 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
3357 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3358
3359 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3360
3361 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
3362 * dwarf2read.c (enum pc_bounds_kind) New.
3363 (dwarf2_get_pc_bounds): Use it in the declaration.
3364 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
3365 to cu_bounds_kind.
3366 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
3367 Adjust callers.
3368 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
3369 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3370
3371 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
3374 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
3375 deleted.
3376
3377 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3378
3379 * NEWS (N stop reply): Remove empty line.
3380
3381 2016-05-28 Alan Modra <amodra@gmail.com>
3382
3383 * compile/compile-object-load.c (link_callbacks_multiple_definition,
3384 link_callbacks_warning, link_callbacks_undefined_symbol,
3385 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
3386 link_callbacks_reloc_dangerous,
3387 link_callbacks_unattached_reloc): Return void.
3388
3389 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * opencl-lang.c (evaluate_subexp_opencl): If
3392 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
3393 the returned value in the STRUCTOP_STRUCT case.
3394
3395 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
3398 mode, forward the VALUE_LVAL attribute to the returned value in
3399 the STRUCTOP_PTR case.
3400
3401 2016-05-25 Tom Tromey <tom@tromey.com>
3402
3403 * python/py-value.c (value_object_as_number): Use correct spelling
3404 of HAVE_LIBPYTHON2_4.
3405
3406 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3407
3408 * f-typeprint.c (f_type_print_base): Replace 0 by show.
3409
3410 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3411
3412 * f-typeprint.c (f_type_print_base): Decrease show by one.
3413
3414 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3415
3416 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
3417
3418 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3419
3420 * f-typeprint.c (f_type_print_base): Take print level into account.
3421
3422 2016-05-24 Tom Tromey <tom@tromey.com>
3423
3424 PR python/17386:
3425 * python/py-value.c (value_object_as_number): Add
3426 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
3427
3428 2016-05-24 Tom Tromey <tom@tromey.com>
3429
3430 * python/py-value.c (value_object_as_number): Add
3431 nb_inplace_divide for Python 2.
3432
3433 2016-05-23 Tom Tromey <tom@tromey.com>
3434
3435 PR python/17981:
3436 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
3437 when there are no breakpoints.
3438
3439 2016-05-24 Pedro Alves <palves@redhat.com>
3440
3441 PR gdb/19828
3442 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
3443 resumed, and add the thread to GDB's thread list.
3444
3445 2016-05-24 Pedro Alves <palves@redhat.com>
3446
3447 PR gdb/19828
3448 * linux-nat.c (get_pending_status): If the thread reported the
3449 event to the core and it's pending, use the pending status signal
3450 number.
3451
3452 2016-05-24 Pedro Alves <palves@redhat.com>
3453
3454 PR gdb/19828
3455 * linux-nat.c (lwp_lwpid_htab): New htab.
3456 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3457 (lwp_lwpid_htab_add_lwp): New functions.
3458 (lwp_list): Tweak comment.
3459 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3460 functions.
3461 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3462 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3463 (delete_lwp): Use lwp_list_remove. Remove htab too.
3464 (find_lwp_pid): Search in htab.
3465 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3466 * linux-nat.h (struct lwp_info) <prev>: New field.
3467
3468 2016-05-24 Pedro Alves <palves@redhat.com>
3469
3470 PR gdb/19828
3471 * linux-nat.c (lwp_lwpid_htab): New htab.
3472 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3473 (lwp_lwpid_htab_add_lwp): New functions.
3474 (lwp_list): Tweak comment.
3475 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3476 functions.
3477 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3478 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3479 (delete_lwp): Use lwp_list_remove. Remove htab too.
3480 (find_lwp_pid): Search in htab.
3481 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3482 * linux-nat.h (struct lwp_info) <prev>: New field.
3483
3484 2016-05-24 Pedro Alves <palves@redhat.com>
3485
3486 PR gdb/19828
3487 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
3488 field.
3489 (linux_nat_update_thread_list): Don't fetch the core if already
3490 known.
3491
3492 2016-05-24 Pedro Alves <palves@redhat.com>
3493
3494 PR gdb/19828
3495 * linux-tdep.c (find_mapping_size): Delete.
3496 (linux_vsyscall_range_raw): Rewrite reading from
3497 /proc/PID/task/PID/maps directly instead of using
3498 gdbarch_find_memory_regions.
3499
3500 2016-05-24 Pedro Alves <palves@redhat.com>
3501
3502 PR gdb/19828
3503 * linux-nat.c (report_thread_events): New global.
3504 (linux_handle_extended_wait): Report
3505 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
3506 enabled.
3507 (wait_lwp, linux_nat_filter_event): Report all thread exits if
3508 thread event reporting is enabled. Remove comment.
3509 (filter_exit_event): New function.
3510 (linux_nat_wait_1): Use it.
3511 (linux_nat_thread_events): New function.
3512 (linux_nat_add_target): Install it as target_thread_events method.
3513
3514 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
3515
3516 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
3517
3518 2016-05-23 Yao Qi <yao.qi@arm.com>
3519
3520 * arch-utils.c (default_code_of_frame_writable): New function.
3521 * arch-utils.h (default_code_of_frame_writable): Declare.
3522 * arm-tdep.c (arm_code_of_frame_writable): New function.
3523 (arm_gdbarch_init): Install gdbarch method
3524 code_of_frame_writable if the target is M-profile.
3525 * frame.c (skip_unwritable_frames): New function.
3526 * frame.h (skip_unwritable_frames): Declare.
3527 * gdbarch.sh (code_of_frame_writable): New.
3528 * gdbarch.c, gdbarch.h: Re-generated.
3529 * infcmd.c (finish_command): Call skip_unwritable_frames.
3530
3531 2016-05-23 Tom Tromey <tom@tromey.com>
3532
3533 PR python/19438, PR python/18393:
3534 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
3535 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
3536
3537 2016-05-23 Gary Benson <gbenson@redhat.com>
3538
3539 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
3540 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
3541 Remove field.
3542 (try_thread_db_load_1): Remove td_thr_validate initialization.
3543
3544 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
3545
3546 * configure.ac: Search for libutil-freebsd as alternative to libutil.
3547 * configure: Re-generated.
3548
3549 2016-05-19 Andreas Schwab <schwab@suse.de>
3550
3551 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
3552 (libunwind_frame_set_descr): Likewise.
3553 (libunwind_frame_cache): Likewise.
3554 (libunwind_frame_dealloc_cache): Likewise.
3555 (libunwind_frame_sniffer): Likewise.
3556 (libunwind_search_unwind_table): Likewise.
3557 (libunwind_sigtramp_frame_sniffer): Likewise.
3558 (libunwind_get_reg_special): Likewise.
3559 (libunwind_load): Likewise.
3560 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3561 (ia64_linux_store_register): Likewise.
3562 (ia64_linux_xfer_partial): Likewise.
3563 * ia64-tdep.c (ia64_access_reg): Likewise.
3564 (ia64_access_fpreg): Likewise.
3565 (ia64_access_rse_reg): Likewise.
3566 (ia64_access_rse_fpreg): Likewise.
3567
3568 2016-05-18 Tom Tromey <tom@tromey.com>
3569
3570 * rust-lang.c (rust_subscript): Initialize "high".
3571
3572 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 PR gdb/20045
3575 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
3576 of target_is_async_p.
3577
3578 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3579
3580 PR gdb/18077
3581 * mi/mi-main.c (run_one_inferior): Use run target to determine
3582 whether to run async or not.
3583 (mi_cmd_exec_run): Likewise.
3584
3585 2016-05-17 Tom Tromey <tom@tromey.com>
3586
3587 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
3588 * rust-lang.c: Don't include f-lang.h.
3589 (rust_range, rust_compute_range, rust_subscript)
3590 (rust_evaluate_subexp): Update.
3591 * rust-exp.y: Don't include f-lang.h.
3592 (ast_range, convert_ast_to_expression): Update.
3593 * parse.c (operator_length_standard): Update.
3594 * f-lang.h (enum f90_range_type): Move to expression.h.
3595 * f-exp.y: Use OP_RANGE.
3596 * expression.h (enum range_type): New enum; renamed from
3597 f90_range_type.
3598 * expprint.c: Don't include f-lang.h.
3599 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
3600 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
3601
3602 2016-05-17 Tom Tromey <tom@tromey.com>
3603
3604 * NEWS: Add Rust item.
3605
3606 2016-05-17 Tom Tromey <tom@tromey.com>
3607 Manish Goregaokar <manishsmail@gmail.com>
3608
3609 * symtab.c (symbol_find_demangled_name): Handle Rust.
3610 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
3611 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
3612 constants.
3613 * rust-lang.h: New file.
3614 * rust-lang.c: New file.
3615 * rust-exp.y: New file.
3616 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
3617 (dwarf2_compute_name, read_func_scope, read_structure_type)
3618 (read_base_type, read_subrange_type, set_cu_language)
3619 (new_symbol_full, determine_prefix): Handle Rust.
3620 * defs.h (enum language) <language_rust>: New constant.
3621 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
3622 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
3623
3624 2016-05-17 Tom Tromey <tom@tromey.com>
3625
3626 * valprint.h (struct generic_val_print_array) <array_start,
3627 array_end>: New fields.
3628 * valprint.c (generic_val_print_array): Add "decorations"
3629 parameter. Use "array_start", "array_end".
3630 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
3631 * p-valprint.c (p_decorations): Update.
3632 * m2-valprint.c (m2_decorations): Update.
3633 * f-valprint.c (f_decorations): Update.
3634 * c-valprint.c (c_decorations): Update.
3635
3636 2016-05-17 Tom Tromey <tom@tromey.com>
3637
3638 * NEWS: Add "maint selftest" entry.
3639 * selftest.h: New file.
3640 * selftest.c: New file.
3641 * maint.c: Include selftest.h.
3642 (maintenance_selftest): New function.
3643 (_initialize_maint_cmds): Add "maint selftest" command.
3644 * configure.ac (GDB_SELF_TEST): Maybe define.
3645 * config.in, configure: Rebuild.
3646 * Makefile.in (SFILES): Add selftest.c.
3647 (COMMON_OBS): Add selftest.o.
3648
3649 2016-05-17 Tom Tromey <tom@tromey.com>
3650
3651 * expprint.c: Include f-lang.h.
3652 (print_subexp_standard, dump_subexp_body_standard): Handle
3653 OP_F90_RANGE.
3654
3655 2016-05-17 Tom Tromey <tom@tromey.com>
3656
3657 * Makefile.in (init.c): Search .y files for initialization
3658 functions.
3659
3660 2016-05-12 Doug Evans <dje@google.com>
3661
3662 PR symtab/19999
3663 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
3664 add base_offset.
3665
3666 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3667
3668 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
3669 anything.
3670 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
3671
3672 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3673
3674 * arm-tdep.c (arm_elf_make_msymbol_special): Use
3675 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
3676
3677 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3678
3679 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
3680 variables.
3681 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
3682 (aarch64_scan_prologue): Likewise.
3683 (aarch64_prologue_prev_register): Likewise.
3684 (aarch64_dwarf2_prev_register): Likewise.
3685 (pass_in_v): Likewise.
3686 (aarch64_push_dummy_call): Likewise.
3687 (aarch64_breakpoint_from_pc): Likewise.
3688 (aarch64_return_in_memory): Likewise.
3689 (aarch64_return_value): Likewise.
3690 (aarch64_displaced_step_b_cond): Likewise.
3691 (aarch64_displaced_step_cb): Likewise.
3692 (aarch64_displaced_step_tb): Likewise.
3693 (aarch64_gdbarch_init): Likewise.
3694 (aarch64_process_record): Likewise.
3695 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
3696 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
3697 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3698 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
3699 * amd64-tdep.c (fixup_riprel): Likewise.
3700 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
3701 (amd64_windows_frame_decode_insns): Likewise.
3702 (amd64_windows_frame_cache): Likewise.
3703 (amd64_windows_frame_prev_register): Likewise.
3704 (amd64_windows_frame_this_id): Likewise.
3705 (amd64_windows_init_abi): Likewise.
3706 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
3707 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3708 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
3709 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
3710 (arm_epilogue_frame_prev_register): Likewise.
3711 (arm_record_vdata_transfer_insn): Likewise.
3712 (arm_record_exreg_ld_st_insn): Likewise.
3713 * auto-load.c (execute_script_contents): Likewise.
3714 (print_scripts): Likewise.
3715 * avr-tdep.c (avr_frame_prev_register): Likewise.
3716 (avr_push_dummy_call): Likewise.
3717 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
3718 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3719 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
3720 * break-catch-throw.c (fetch_probe_arguments): Likewise.
3721 * breakpoint.c (breakpoint_xfer_memory): Likewise.
3722 (breakpoint_init_inferior): Likewise.
3723 (breakpoint_inserted_here_p): Likewise.
3724 (software_breakpoint_inserted_here_p): Likewise.
3725 (hardware_breakpoint_inserted_here_p): Likewise.
3726 (bpstat_what): Likewise.
3727 (break_range_command): Likewise.
3728 (save_breakpoints): Likewise.
3729 * coffread.c (coff_symfile_read): Likewise.
3730 * cris-tdep.c (cris_push_dummy_call): Likewise.
3731 (cris_scan_prologue): Likewise.
3732 (cris_register_size): Likewise.
3733 (_initialize_cris_tdep): Likewise.
3734 * d-exp.y: Likewise.
3735 * dbxread.c (dbx_read_symtab): Likewise.
3736 (process_one_symbol): Likewise.
3737 (coffstab_build_psymtabs): Likewise.
3738 (elfstab_build_psymtabs): Likewise.
3739 * dicos-tdep.c (dicos_init_abi): Likewise.
3740 * disasm.c (do_mixed_source_and_assembly): Likewise.
3741 (gdb_disassembly): Likewise.
3742 * dtrace-probe.c (dtrace_process_dof): Likewise.
3743 * dwarf2read.c (error_check_comp_unit_head): Likewise.
3744 (build_type_psymtabs_1): Likewise.
3745 (skip_one_die): Likewise.
3746 (process_imported_unit_die): Likewise.
3747 (dwarf2_physname): Likewise.
3748 (read_file_scope): Likewise.
3749 (setup_type_unit_groups): Likewise.
3750 (create_dwo_cu_reader): Likewise.
3751 (create_dwo_cu): Likewise.
3752 (create_dwo_unit_in_dwp_v1): Likewise.
3753 (create_dwo_unit_in_dwp_v2): Likewise.
3754 (lookup_dwo_unit_in_dwp): Likewise.
3755 (free_dwo_file): Likewise.
3756 (check_producer): Likewise.
3757 (dwarf2_add_typedef): Likewise.
3758 (dwarf2_add_member_fn): Likewise.
3759 (read_unsigned_leb128): Likewise.
3760 (read_signed_leb128): Likewise.
3761 (dwarf2_const_value): Likewise.
3762 (follow_die_sig_1): Likewise.
3763 (dwarf_decode_macro_bytes): Likewise.
3764 * extension.c (restore_active_ext_lang): Likewise.
3765 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3766 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
3767 * gdbtypes.c (lookup_typename): Likewise.
3768 (resolve_dynamic_range): Likewise.
3769 (check_typedef): Likewise.
3770 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
3771 (h8300_gdbarch_init): Likewise.
3772 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
3773 (hppa_frame_this_id): Likewise.
3774 (_initialize_hppa_tdep): Likewise.
3775 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
3776 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
3777 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
3778 * i386-tdep.c (i386_bnd_type): Likewise.
3779 (i386_gdbarch_init): Likewise.
3780 (i386_mpx_bd_base): Likewise.
3781 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
3782 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
3783 * ia64-tdep.c (examine_prologue): Likewise.
3784 (ia64_frame_cache): Likewise.
3785 (ia64_push_dummy_call): Likewise.
3786 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
3787 (default_print_one_register_info): Likewise.
3788 * infrun.c (infrun_thread_ptid_changed): Likewise.
3789 (thread_still_needs_step_over): Likewise.
3790 (stop_all_threads): Likewise.
3791 (restart_threads): Likewise.
3792 (keep_going_stepped_thread): Likewise.
3793 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
3794 * language.c (language_init_primitive_type_symbols): Likewise.
3795 * linespec.c (add_sal_to_sals): Likewise.
3796 * linux-nat.c (status_callback): Likewise.
3797 (kill_unfollowed_fork_children): Likewise.
3798 (linux_nat_kill): Likewise.
3799 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3800 * linux-thread-db.c (thread_db_notice_clone): Likewise.
3801 (record_thread): Likewise.
3802 * location.c (string_to_event_location_basic): Likewise.
3803 * m32c-tdep.c (m32c_prev_register): Likewise.
3804 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
3805 * m32r-tdep.c (decode_prologue): Likewise.
3806 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3807 * machoread.c (macho_symtab_read): Likewise.
3808 (macho_symfile_read): Likewise.
3809 (macho_symfile_offsets): Likewise.
3810 * maint.c (set_per_command_cmd): Likewise.
3811 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3812 (mi_cmd_stack_list_variables): Likewise.
3813 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
3814 (output_register): Likewise.
3815 (mi_cmd_execute): Likewise.
3816 (mi_cmd_trace_define_variable): Likewise.
3817 (print_variable_or_computed): Likewise.
3818 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
3819 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
3820 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
3821 * mt-tdep.c (mt_registers_info): Likewise.
3822 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
3823 (nios2_push_dummy_call): Likewise.
3824 (nios2_frame_unwind_cache): Likewise.
3825 (nios2_stub_frame_cache): Likewise.
3826 (nios2_stub_frame_sniffer): Likewise.
3827 (nios2_gdbarch_init): Likewise.
3828 * ppc-ravenscar-thread.c: Likewise.
3829 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
3830 * python/py-evts.c (add_new_registry): Likewise.
3831 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3832 (bpfinishpy_detect_out_scope_cb): Likewise.
3833 * python/py-framefilter.c (py_print_value): Likewise.
3834 * python/py-inferior.c (infpy_write_memory): Likewise.
3835 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
3836 * python/py-infthread.c (thpy_get_ptid): Likewise.
3837 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
3838 (ltpy_get_all_source_lines): Likewise.
3839 (ltpy_is_valid): Likewise.
3840 (ltpy_iternext): Likewise.
3841 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
3842 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
3843 (unwind_infopy_str): Likewise.
3844 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
3845 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3846 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
3847 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
3848 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
3849 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
3850 (s390_frame_prev_register): Likewise.
3851 (s390_dwarf2_frame_init_reg): Likewise.
3852 (s390_record_vr): Likewise.
3853 (s390_process_record): Likewise.
3854 * score-tdep.c (score_push_dummy_call): Likewise.
3855 (score3_analyze_prologue): Likewise.
3856 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3857 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
3858 (sh64_push_dummy_call): Likewise.
3859 (sh64_extract_return_value): Likewise.
3860 (sh64_do_fp_register): Likewise.
3861 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
3862 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
3863 (darwin_solib_read_all_image_info_addr): Likewise.
3864 * solib-dsbt.c (enable_break): Likewise.
3865 * solib-frv.c (enable_break2): Likewise.
3866 (frv_fdpic_find_canonical_descriptor): Likewise.
3867 * solib-svr4.c (svr4_handle_solib_event): Likewise.
3868 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
3869 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
3870 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3871 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3872 * stack.c (read_frame_local): Likewise.
3873 * symfile.c (symbol_file_add_separate): Likewise.
3874 (remove_symbol_file_command): Likewise.
3875 * symmisc.c (maintenance_print_one_line_table): Likewise.
3876 * symtab.c (symbol_cache_flush): Likewise.
3877 (basic_lookup_transparent_type): Likewise.
3878 (sort_search_symbols_remove_dups): Likewise.
3879 * target.c (target_memory_map): Likewise.
3880 (target_detach): Likewise.
3881 (target_resume): Likewise.
3882 (acquire_fileio_fd): Likewise.
3883 (target_store_registers): Likewise.
3884 * thread.c (print_thread_info_1): Likewise.
3885 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
3886 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
3887 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3888 (tilegx_analyze_prologue): Likewise.
3889 (tilegx_stack_frame_destroyed_p): Likewise.
3890 (tilegx_frame_cache): Likewise.
3891 * tracefile.c (trace_save): Likewise.
3892 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
3893 (start_tracing): Likewise.
3894 (print_one_static_tracepoint_marker): Likewise.
3895 * tui/tui.c (tui_enable): Likewise.
3896 * valops.c (value_struct_elt_bitpos): Likewise.
3897 (find_overload_match): Likewise.
3898 (find_oload_champ): Likewise.
3899 * value.c (value_contents_copy_raw): Likewise.
3900 * windows-tdep.c (windows_get_tlb_type): Likewise.
3901 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
3902 * xcoffread.c (record_minimal_symbol): Likewise.
3903 (scan_xcoff_symtab): Likewise.
3904 * xtensa-tdep.c (execute_code): Likewise.
3905 (xtensa_gdbarch_init): Likewise.
3906 (_initialize_xtensa_tdep): Likewise.
3907
3908 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3909
3910 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
3911 (spu_bfd_open): Likewise.
3912
3913 2016-05-04 Yao Qi <yao.qi@linaro.org>
3914
3915 PR gdb/19947
3916 * corefile.c (read_memory): Rename it to ...
3917 (read_memory_object): ... it. Add parameter object.
3918 (read_memory): Call read_memory_object.
3919 (read_stack): Likewise.
3920 (read_code): Likewise.
3921
3922 2016-05-03 Yunlian Jiang <yunlian@google.com>
3923 Doug Evans <dje@google.com>
3924
3925 PR symtab/19914
3926 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
3927 is separate debug file.
3928
3929 2016-05-03 Don Breazeal <donb@codesourcery.com>
3930
3931 * serial.h (gdb_pipe): Fix argument names in comment.
3932
3933 2016-05-03 Pedro Alves <palves@redhat.com>
3934
3935 PR python/20037
3936 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
3937 oldloc.
3938
3939 2016-05-03 Pedro Alves <palves@redhat.com>
3940
3941 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
3942 code.
3943
3944 2016-05-03 Pedro Alves <palves@redhat.com>
3945
3946 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
3947 * configure: Regenerate.
3948
3949 2016-05-03 Pedro Alves <palves@redhat.com>
3950
3951 * configure.ac (checking for the dynamic export flag): Add
3952 $PYTHON_CPPFLAGS to CPPFLAGS.
3953 * configure: Regenerate.
3954
3955 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3956
3957 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
3958 warning.
3959 (find_pc_mapped_section): Likewise.
3960 (list_overlays_command): Likewise.
3961
3962 2016-05-02 Eli Zaretskii <eliz@gnu.org>
3963
3964 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
3965 error in allocation of space for "$HOME/.gdbinit" string. This
3966 caused GDB to abort on startup whenever a '~/gdb.ini' file was
3967 actually found, because xsnprintf would hit an assertion
3968 violation.
3969
3970 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
3971
3972 * cli/cli-decode.c (help_cmd_list): Do not list commands that
3973 are deprecated.
3974
3975 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3976
3977 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
3978
3979 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
3980
3981 * c-valprint.c (c_value_print): Always convert val back to reference
3982 type if we converted it to a pointer type.
3983
3984 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3985
3986 * configure.ac: Enhance configure check for babeltrace to reject
3987 non-C++-enabled versions.
3988 * configure: Regenerate.
3989
3990 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
3991 Keven Boell <keven.boell@intel.com>
3992 Bernhard Heckel <bernhard.heckel@intel.com>
3993
3994 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
3995 function.
3996 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
3997 (f77_print_array_1): Use value_subscript to subscript a
3998 value array.
3999 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
4000 (f_val_print): Use value_field to construct a field value.
4001
4002 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4003
4004 * valarith.c (value_address): Resolve dynamic types.
4005
4006 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
4007 Keven Boell <kevel.boell@intel.com>
4008
4009 * NEWS: Add new supported features for fortran.
4010 * gdbtypes.c (remove_dyn_prop): New.
4011 (resolve_dynamic_struct): Keep type length for fortran structs.
4012 * gdbtypes.h: Forward declaration of new function.
4013 * value.c (value_address): Return dynamic resolved location of a value.
4014 (set_value_component_location): Adjust the value address
4015 for single value prints.
4016 (value_primitive_field): Support value types with a dynamic location.
4017 (set_internalvar): Remove dynamic location property of
4018 internal variables.
4019
4020 2016-04-25 Pedro Alves <palves@redhat.com>
4021 Yao Qi <yao.qi@linaro.org>
4022
4023 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
4024 object. Insert it if it is not inserted yet. Increase the
4025 refcount and link it into the proc's raw breakpoint list.
4026
4027 2016-04-25 Yao Qi <yao.qi@linaro.org>
4028
4029 * breakpoint.c (should_be_inserted): Return 0 if the location's
4030 owner is not single step breakpoint or single step breakpoint's
4031 thread isn't the thread which is stepping past a breakpoint.
4032 * gdbarch.sh (software_single_step): Update comments.
4033 * gdbarch.h: Regenerated.
4034 * infrun.c (struct step_over_info) <thread>: New field.
4035 (set_step_over_info): New argument 'thread'. Callers updated.
4036 (clear_step_over_info): Set field thread to -1.
4037 (thread_is_stepping_over_breakpoint): New function.
4038 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
4039
4040 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4041
4042 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
4043 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
4044
4045 2016-04-22 Yao Qi <yao.qi@linaro.org>
4046
4047 * valops.c (read_value_memory): New local variable 'stack'.
4048 Set it to either TARGET_OBJECT_STACK_MEMORY or
4049 TARGET_OBJECT_MEMORY.
4050
4051 2016-04-22 Pedro Alves <palves@redhat.com>
4052
4053 * ada-exp.y: Remove all yy symbol remappings.
4054 (GDB_YY_REMAP_PREFIX): Define.
4055 Include "yy-remap.h".
4056 * ada-lang.c (ada_language_defn): Adjust.
4057 * ada-lang.h (ada_error): Rename to ...
4058 (ada_yyerror): ... this.
4059 * c-exp.y: Remove all yy symbol remappings.
4060 (GDB_YY_REMAP_PREFIX): Define.
4061 Include "yy-remap.h".
4062 * c-lang.c (c_language_defn, cplus_language_defn)
4063 (asm_language_defn, minimal_language_defn): Adjust.
4064 * c-lang.h (c_error): Rename to ...
4065 (c_yyerror): ... this.
4066 * d-exp.y: Remove all yy symbol remappings.
4067 (GDB_YY_REMAP_PREFIX): Define.
4068 Include "yy-remap.h".
4069 * d-lang.c (d_language_defn): Adjust.
4070 * d-lang.h (d_error): Rename to ...
4071 (d_yyerror): ... this.
4072 * f-exp.y: Remove all yy symbol remappings.
4073 (GDB_YY_REMAP_PREFIX): Define.
4074 Include "yy-remap.h".
4075 * f-lang.c (f_language_defn): Adjust.
4076 * f-lang.h (f_error): Rename to ...
4077 (f_yyerror): ... this.
4078 * go-exp.y: Remove all yy symbol remappings.
4079 (GDB_YY_REMAP_PREFIX): Define.
4080 Include "yy-remap.h".
4081 * go-lang.c (go_language_defn): Adjust.
4082 * go-lang.h (go_error): Rename to ...
4083 (go_yyerror): ... this.
4084 * jv-exp.y: Remove all yy symbol remappings.
4085 (GDB_YY_REMAP_PREFIX): Define.
4086 Include "yy-remap.h".
4087 * jv-lang.c (java_language_defn): Adjust.
4088 * jv-lang.h (java_error): Rename to ...
4089 (java_yyerror): ... this.
4090 * m2-exp.y: Remove all yy symbol remappings.
4091 (GDB_YY_REMAP_PREFIX): Define.
4092 Include "yy-remap.h".
4093 * m2-lang.c (m2_language_defn): Adjust.
4094 * m2-lang.h (m2_error): Rename to ...
4095 (m2_yyerror): ... this.
4096 * objc-exp.y: Remove all yy symbol remappings.
4097 (GDB_YY_REMAP_PREFIX): Define.
4098 Include "yy-remap.h".
4099 * objc-lang.c (objc_language_defn): Adjust.
4100 * opencl-lang.c (opencl_language_defn): Adjust.
4101 * p-exp.y: Remove all yy symbol remappings.
4102 (GDB_YY_REMAP_PREFIX): Define.
4103 Include "yy-remap.h".
4104 * p-lang.c (pascal_language_defn): Adjust.
4105 * p-lang.h (pascal_error): Rename to ...
4106 (pascal_yyerror): ... this.
4107 * yy-remap.h: New file.
4108
4109 2016-04-22 Pedro Alves <palves@redhat.com>
4110
4111 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
4112 the foreign frames issue.
4113 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4114
4115 2016-04-22 Pedro Alves <palves@redhat.com>
4116
4117 * common/common-exceptions.c (enum catcher_state, struct catcher)
4118 (current_catcher): Define in C++ mode too.
4119 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
4120 throw_exception.
4121 (throw_exception_sjlj, throw_exception_cxx): New functions,
4122 factored out from throw_exception.
4123 (throw_exception): Reimplement.
4124 * common/common-exceptions.h (exceptions_state_mc_init)
4125 (exceptions_state_mc_action_iter)
4126 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4127 Declare in C++ mode too.
4128 (TRY): Rename to ...
4129 (TRY_SJLJ): ... this.
4130 (CATCH): Rename to ...
4131 (CATCH_SJLJ): ... this.
4132 (END_CATCH): Rename to ...
4133 (END_CATCH_SJLJ): ... this.
4134 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
4135 equivalents.
4136 (throw_exception): Update comments.
4137 (throw_exception_sjlj): Declare.
4138 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
4139 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
4140 intercepted exception.
4141 (gdb_rl_callback_handler): New function.
4142 (gdb_rl_callback_handler_install): Always install
4143 gdb_rl_callback_handler as readline callback.
4144
4145 2016-04-22 Pedro Alves <palves@redhat.com>
4146
4147 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
4148 (gdb_rl_callback_read_char_wrapper): ... this.
4149 (change_line_handler, gdb_setup_readline): Adjust.
4150
4151 2016-04-22 Yao Qi <yao.qi@linaro.org>
4152
4153 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
4154 bits 20 to 23.
4155
4156 2016-04-22 Joel Brobecker <brobecker@adacore.com>
4157
4158 * MAINTAINER: Remove myself as AIX Maintainer.
4159
4160 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
4161
4162 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
4163 `num_regs' to 90 rather than 79. Where a target description is
4164 present adjust the setting appropriately.
4165
4166 2016-04-21 Pedro Alves <palves@redhat.com>
4167
4168 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
4169 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
4170
4171 2016-04-21 Pedro Alves <palves@redhat.com>
4172
4173 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
4174 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
4175 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
4176 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
4177 pointer, and cast return to gdb_byte pointer.
4178
4179 2016-04-21 Pedro Alves <palves@redhat.com>
4180
4181 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
4182 void * instead of gdb_byte *.
4183
4184 2016-04-21 Pedro Alves <palves@redhat.com>
4185
4186 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
4187 (file_file_name, file_full_name): Add char * cast to sentinel in
4188 concat/reconcat calls.
4189 * event-top.c (top_level_prompt): Likewise.
4190 * guile/guile.c (initialize_scheme_side): Likewise.
4191 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4192 * macrotab.c (macro_source_fullname): Likewise.
4193 * main.c (get_init_files, captured_main): Likewise.
4194 * psymtab.c (psymtab_to_fullname): Likewise.
4195 * python/python.c (_initialize_python)
4196 (gdbpy_finish_initialization): Likewise.
4197 * source.c (symtab_to_fullname): Likewise.
4198
4199 2016-04-20 Pedro Alves <palves@redhat.com>
4200
4201 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
4202 * configure: Renegerate.
4203
4204 2016-04-20 Pedro Alves <palves@redhat.com>
4205
4206 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
4207
4208 2016-04-20 Pedro Alves <palves@redhat.com>
4209
4210 * aarch64-tdep.c (aarch64_record_load_store): Change type of
4211 'reg_rm_val' local to ULONGEST.
4212
4213 2016-04-20 Pedro Alves <palves@redhat.com>
4214
4215 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
4216
4217 2016-04-20 Doug Evans <xdje42@gmail.com>
4218
4219 * symmisc.c (dump_symtab_1): Print owning compunit for identical
4220 blockvectors.
4221
4222 2016-04-20 Yao Qi <yao.qi@linaro.org>
4223
4224 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
4225
4226 2016-04-20 Yao Qi <yao.qi@linaro.org>
4227
4228 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
4229 * arch/arm-linux.h: ... here.
4230
4231 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4232
4233 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
4234 to void *.
4235 (amd64bsd_store_inferior_registers): Likewise.
4236 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
4237 (resume_all_threads_cb): Likewise.
4238 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
4239 (i386bsd_collect_gregset): Likewise.
4240 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
4241 (i386bsd_store_inferior_registers): Likewise.
4242
4243 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4244
4245 * main.c (setup_alternate_signal_stack): Cast to char *.
4246
4247 2016-04-19 Doug Evans <xdje42@gmail.com>
4248
4249 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
4250 All callers updated.
4251
4252 2016-04-19 Doug Evans <xdje42@gmail.com>
4253
4254 PR gdb/17911
4255 * source.c (is_regular_file): New arg errno_ptr.
4256 All callers updated.
4257
4258 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * linux-record.c (record_linux_system_call): Merge handling for
4261 readlink/recv/read and pipe/pipe2.
4262
4263 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
4264
4265 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
4266 * features/i386/amd64-mpx.xml: Remove AVX feature.
4267 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
4268 * features/i386/i386-mpx.xml: Remove AVX feature.
4269 * features/i386/amd64-mpx-linux.c: Regenerate.
4270 * features/i386/amd64-mpx.c: Regenerate.
4271 * features/i386/i386-mpx-linux.c: Regenerate.
4272 * features/i386/i386-mpx.c: Regenerate.
4273 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
4274 * regformats/i386/amd64-mpx.dat: Regenerate.
4275 * regformats/i386/i386-mpx-linux.dat: Regenerate.
4276 * regformats/i386/i386-mpx.dat: Regenerate.
4277
4278 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4279
4280 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
4281 New include.
4282 (amd64_linux_core_read_description): Add case for
4283 X86_XSTATE_AVX_MPX_MASK.
4284 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
4285 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
4286 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
4287 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4288 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
4289 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
4290 (X86_XSTATE_AVX_MPX_MASK): New case.
4291 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
4292 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
4293 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
4294 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
4295 New expedites.
4296 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
4297 include.
4298 (i386_linux_core_read_description): Add case
4299 X86_XSTATE_AVX_MPX_MASK.
4300 (_initialize_i386_linux_tdep): Call
4301 initialize_tdesc_i386_avx_mpx_linux.
4302 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
4303 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
4304 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4305 * x86-linux-nat.c (x86_linux_read_description): Add case for
4306 X86_XSTATE_AVX_MPX_MASK.
4307 * features/i386/amd64-avx-mpx-linux.xml: New file.
4308 * features/i386/i386-avx-mpx-linux.xml: New file.
4309 * features/i386/i386-avx-mpx.xml: New file.
4310 * features/i386/amd64-avx-mpx.xml: New file.
4311 * features/i386/amd64-avx-mpx-linux.c: Generated.
4312 * features/i386/amd64-avx-mpx.c: Generated.
4313 * features/i386/i386-avx-mpx-linux.c: Generated.
4314 * features/i386/i386-avx-mpx.c: Generated.
4315 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
4316 * regformats/i386/amd64-avx-mpx.dat: Generated.
4317 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
4318 * regformats/i386/i386-avx-mpx.dat: Generated.
4319
4320 2016-04-18 Pedro Alves <palves@redhat.com>
4321
4322 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
4323 * configure: Regenerate.
4324
4325 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
4326
4327 * valops.c (value_addr): For C++ references, set the copied value's
4328 enclosing_type as well.
4329
4330 2016-04-18 Yao Qi <yao.qi@linaro.org>
4331
4332 Revert:
4333 2016-04-15 Yao Qi <yao.qi@linaro.org>
4334
4335 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4336 PC is far from the end of function.
4337
4338 2016-04-16 Pedro Alves <palves@redhat.com>
4339
4340 * ada-exp.y (yydefred): Define as ada_yydefred.
4341
4342 2016-04-15 Pedro Alves <palves@redhat.com>
4343
4344 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
4345 'name_str' locals.
4346
4347 2016-04-15 Pedro Alves <palves@redhat.com>
4348
4349 * btrace.c (pt_btrace_insn_flags): Change return type to
4350 btrace_insn_flags. Use btrace_insn_flags for local.
4351
4352 2016-04-15 Pedro Alves <palves@redhat.com>
4353
4354 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
4355 accept TRAP_BRKPT.
4356 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
4357
4358 2016-04-15 Yao Qi <yao.qi@linaro.org>
4359
4360 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4361 PC is far from the end of function.
4362
4363 2016-04-14 Pedro Alves <palves@redhat.com>
4364
4365 * cli/cli-cmds.c (alias_usage_error): New function.
4366 (alias_command): Use it.
4367 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
4368 ctf_save_write_metadata call.
4369
4370 2016-04-14 Pedro Alves <palves@redhat.com>
4371
4372 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
4373 argument to function expecting LONGEST.
4374 * value.c (unpack_long): Add casts to LONGEST.
4375
4376 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
4377
4378 * exec.c (exec_file_locate_attach): Guard a couple functions
4379 that can throw errors.
4380 (exception_print_same): New helper function.
4381
4382 2016-04-13 Pedro Alves <palves@redhat.com>
4383
4384 PR remote/19840
4385 * remote.c (struct remote_state) <last_resume_exec_dir>: New
4386 field.
4387 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
4388 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
4389 (remote_resume): Store the last execution direction.
4390 (remote_execution_direction): New function.
4391 (init_remote_ops): Install it as to_execution_direction target_ops
4392 method.
4393
4394 2016-04-12 Pedro Alves <palves@redhat.com>
4395
4396 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
4397 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4398
4399 2016-04-12 Pedro Alves <palves@redhat.com>
4400
4401 * common/common-exceptions.c (struct catcher) <buf>: Now a
4402 'jmp_buf' instead of SIGJMP_BUF.
4403 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4404 (throw_exception): Use longjmp instead of SIGLONGJMP.
4405 * common/common-exceptions.h: Include <setjmp.h> instead of
4406 "gdb_setjmp.h".
4407 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4408 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
4409 SIGSETJMP.
4410 * cp-support.c: Include "gdb_setjmp.h".
4411
4412 2016-04-12 Pedro Alves <palves@redhat.com>
4413
4414 * common/common-exceptions.c (exception_rethrow): Remove
4415 prepare_to_throw_exception call.
4416 * common/common-exceptions.h (prepare_to_throw_exception): Delete
4417 declaration.
4418 * exceptions.c (prepare_to_throw_exception): Delete.
4419
4420 2016-04-12 Pedro Alves <palves@redhat.com>
4421
4422 * target.c (target_check_pending_interrupt): Delete.
4423 * target.h (struct target_ops) <to_check_pending_interrupt>:
4424 Remove method.
4425 (target_check_pending_interrupt): Remove declaration.
4426 * target-delegates.c: Regenerate.
4427
4428 2016-04-12 Pedro Alves <palves@redhat.com>
4429
4430 * defs.h: Update comments on SIGINT handling.
4431 (immediate_quit): Delete declaration.
4432 * event-loop.c (call_async_signal_handler): Delete.
4433 * event-loop.h (call_async_signal_handler): Delete declaration.
4434 (mark_async_signal_handler): Update comments.
4435 (gdb_call_async_signal_handler): Delete declaration.
4436 * event-top.c (handle_sigint): Call mark_async_signal_handler
4437 instead of gdb_call_async_signal_handler.
4438 * exceptions.c (prepare_to_throw_exception): Remove reference to
4439 immediate_quit.
4440 (exception_fprintf): Remove comments about immediate_quit.
4441 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
4442 (gdb_select): Don't wait on sigint_event.
4443 (gdb_call_async_signal_handler): Delete.
4444 (_initialize_mingw_hdep): Delete.
4445 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
4446 * utils.c (immediate_quit): Delete.
4447
4448 2016-04-12 Pedro Alves <palves@redhat.com>
4449
4450 * defs.h (quit_handler_ftype, quit_handler)
4451 (make_cleanup_override_quit_handler, default_quit_handler): New.
4452 (QUIT): Adjust comments.
4453 * event-top.c (default_quit_handler): New function.
4454 (quit_handler): New global.
4455 (struct quit_handler_cleanup_data): New.
4456 (restore_quit_handler, restore_quit_handler_dtor)
4457 (make_cleanup_override_quit_handler): New.
4458 (async_request_quit): Call QUIT.
4459 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
4460 (async_sigint_remote_twice_token, async_sigint_remote_token):
4461 Delete.
4462 (remote_close): Update comments.
4463 (remote_start_remote): Don't set immediate_quit. Set starting_up
4464 earlier.
4465 (remote_serial_quit_handler, remote_unpush_and_throw): New
4466 functions.
4467 (remote_open_1): Clear got_ctrlc_during_io. Set
4468 remote_async_terminal_ours_p unconditionally.
4469 (async_initialize_sigint_signal_handler)
4470 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
4471 (remote_check_pending_interrupt, async_remote_interrupt)
4472 (async_remote_interrupt_twice)
4473 (async_cleanup_sigint_signal_handler, ofunc)
4474 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
4475 (remote_terminal_inferior, remote_terminal_ours): Remove async
4476 checks.
4477 (remote_wait_as): Don't install a SIGINT handler in sync mode.
4478 (readchar, remote_serial_write): Override the quit handler with
4479 remote_serial_quit_handler.
4480 (getpkt_or_notif_sane_1): Don't call QUIT.
4481 (initialize_remote_ops): Don't install
4482 remote_check_pending_interrupt.
4483 (_initialize_remote): Don't create async_sigint_remote_token and
4484 async_sigint_remote_twice_token.
4485 * ser-base.c (ser_base_wait_for): Call QUIT and use
4486 interruptible_select.
4487 (ser_base_write): Call QUIT.
4488 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
4489 * ser-unix.c (wait_for): Don't use VTIME. Always take the
4490 gdb_select path, but call QUIT and interruptible_select.
4491 * utils.c (maybe_quit): Call the current quit handler. Don't call
4492 target_check_pending_interrupt.
4493 (defaulted_query, prompt_for_continue): Override the quit handler
4494 with the default quit handler.
4495
4496 2016-04-12 Pedro Alves <palves@redhat.com>
4497
4498 * tui/tui-hooks.c (tui_target_has_run): Delete.
4499 (tui_about_to_proceed): Delete.
4500 (tui_about_to_proceed_observer): Delete.
4501 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
4502 about_to_proceed observer.
4503
4504 2016-04-12 Pedro Alves <palves@redhat.com>
4505
4506 * mi/mi-interp.c (mi_new_thread): Put
4507 target_terminal_ours_for_output in effect while outputting.
4508 (mi_thread_exit): Use target_terminal_ours_for_output instead of
4509 target_terminal_ours.
4510 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4511 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4512 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4513 (mi_breakpoint_created, mi_breakpoint_deleted)
4514 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
4515 (mi_command_param_changed, mi_memory_changed)
4516 (report_initial_inferior): Use target_terminal_ours_for_output
4517 instead of target_terminal_ours. Restore terminal settings.
4518 * mi/mi-main.c (mi_execute_command): Use
4519 target_terminal_ours_for_output instead of target_terminal_ours.
4520 Restore terminal settings.
4521
4522 2016-04-12 Pedro Alves <palves@redhat.com>
4523
4524 PR gdb/19828
4525 * gnu-nat.c (inf_validate_task_sc): Don't call
4526 target_terminal_ours / target_terminal_inferior around query.
4527 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
4528 call target_terminal_ours / target_terminal_inferior around
4529 yquery.
4530 * linux-record.c (record_linux_system_call): Don't call
4531 target_terminal_ours / target_terminal_inferior around yquery.
4532 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
4533 / target_terminal_inferior around query.
4534 * record-full.c (record_full_check_insn_num): Remove
4535 'set_terminal' parameter. Don't call target_terminal_ours /
4536 target_terminal_inferior around query.
4537 (record_full_message, record_full_registers_change)
4538 (record_full_xfer_partial): Adjust.
4539 * remote.c (interrupt_query): Don't call target_terminal_ours /
4540 target_terminal_inferior around query.
4541 * utils.c (defaulted_query): Install cleanup to restore target
4542 terminal. Put target_terminal_ours_for_output in effect while
4543 defaulted producing, and target_terminal_ours in in effect while
4544 handling input.
4545 (prompt_for_continue): Install cleanup to restore target terminal.
4546 Put target_terminal_ours in in effect while handling input.
4547
4548 2016-04-12 Pedro Alves <palves@redhat.com>
4549
4550 * utils.c (defaulted_query, prompt_for_continue): Free temporary
4551 strings with cleanups, instead of xfree.
4552
4553 2016-04-12 Pedro Alves <palves@redhat.com>
4554
4555 * utils.c (vwarning, internal_vproblem): Use
4556 make_cleanup_restore_target_terminal and
4557 target_terminal_ours_for_output.
4558
4559 2016-04-12 Pedro Alves <palves@redhat.com>
4560
4561 * infcmd.c (post_create_inferior, prepare_one_step): Use
4562 target_terminal_ours_for_output instead of target_terminal_ours.
4563
4564 2016-04-12 Pedro Alves <palves@redhat.com>
4565
4566 * exceptions.c (print_flush): Use target_terminal_ours_for_output
4567 instead of target_terminal_ours, and restore target terminal with
4568 a cleanup.
4569
4570 2016-04-12 Pedro Alves <palves@redhat.com>
4571
4572 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
4573 instead of target_terminal_ours, and restore target terminal with
4574 a cleanup.
4575
4576 2016-04-12 Pedro Alves <palves@redhat.com>
4577
4578 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
4579 functions.
4580 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
4581
4582 2016-04-12 Pedro Alves <palves@redhat.com>
4583
4584 * ser-base.c (fd_event): Retry read_prim on EINTR.
4585 (do_ser_base_readchar): Retry read_prim on EINTR.
4586 (ser_base_write): Retry write_prim on EINTR.
4587 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
4588 (ser_unix_write_prim): Remove comment.
4589
4590 2016-04-12 Pedro Alves <palves@redhat.com>
4591
4592 * remote.c (remote_pass_ctrlc): New function.
4593 (init_remote_ops): Install it.
4594 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
4595 target.
4596 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
4597 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
4598 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
4599 * target-delegates.c: Regenerate.
4600
4601 2016-04-12 Pedro Alves <palves@redhat.com>
4602
4603 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
4604 mode.
4605 * linux-nat.c (linux_nat_interrupt): Delete.
4606 (linux_nat_add_target): Don't install linux_nat_interrupt.
4607 * remote.c (remote_interrupt_ns): Change return type to void.
4608 Throw error if interrupting the target is not supported.
4609 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
4610
4611 2016-04-12 Pedro Alves <palves@redhat.com>
4612
4613 * defs.h (clear_quit_flag): Remove declaration.
4614 * extension-priv.h (struct extension_language_ops)
4615 <clear_quit_flag>: Remove field and update comments.
4616 * extension.c (clear_quit_flag): Delete.
4617 * guile/guile.c (guile_extension_ops): Adjust.
4618 * python/python.c (python_extension_ops): Adjust.
4619 (gdbpy_clear_quit_flag): Delete.
4620
4621 2016-04-12 Pedro Alves <palves@redhat.com>
4622
4623 * main.c (captured_main): Don't clear the quit flag.
4624
4625 2016-04-12 Pedro Alves <palves@redhat.com>
4626
4627 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
4628 flag.
4629
4630 2016-04-12 Pedro Alves <palves@redhat.com>
4631
4632 * event-top.c (command_handler): Don't call clear_quit_flag.
4633
4634 2016-04-12 Pedro Alves <palves@redhat.com>
4635
4636 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
4637 * remote.c (remote_wait_as): Don't call clear_quit_flag.
4638
4639 2016-04-12 Pedro Alves <palves@redhat.com>
4640
4641 * python/python.c: Include "ser-event.h".
4642 (gdbpy_event_fds): Delete.
4643 (gdbpy_serial_event): New.
4644 (gdbpy_run_events): Change prototype. Use serial_event_clear
4645 instead of serial_readchar.
4646 (gdbpy_post_event): Use serial_event_set instead of serial_write.
4647 (gdbpy_initialize_events): Use make_serial_event instead of
4648 serial_pipe.
4649
4650 2016-04-12 Pedro Alves <palves@redhat.com>
4651
4652 * defs.h: Extend QUIT-related comments to mention
4653 interruptible_select.
4654 (quit_serial_event_set, quit_serial_event_clear): Declare.
4655 * event-top.c: Include "ser-event.h" and "gdb_select.h".
4656 (quit_serial_event): New global.
4657 (async_init_signals): Make quit_serial_event.
4658 (quit_serial_event_set, quit_serial_event_clear)
4659 (quit_serial_event_fd, interruptible_select): New functions.
4660 * extension.c (set_quit_flag): Set the quit serial event.
4661 (check_quit_flag): Clear the quit serial event.
4662 * gdb_select.h (interruptible_select): New declaration.
4663 * guile/scm-ports.c (ioscm_input_waiting): Use
4664 interruptible_select instead of gdb_select.
4665 * top.c (gdb_readline_no_editing): Likewise.
4666 * ui-file.c (stdio_file_read): Likewise.
4667
4668 2016-04-12 Pedro Alves <palves@redhat.com>
4669
4670 * event-loop.c: Include "ser-event.h".
4671 (async_signal_handlers_serial_event): New global.
4672 (async_signals_handler, initialize_async_signal_handlers): New
4673 functions.
4674 (mark_async_signal_handler): Set
4675 async_signal_handlers_serial_event.
4676 (invoke_async_signal_handlers): Clear
4677 async_signal_handlers_serial_event.
4678 * event-top.c (async_init_signals): Call
4679 initialize_async_signal_handlers.
4680
4681 2016-04-12 Pedro Alves <palves@redhat.com>
4682
4683 * Makefile.in (SFILES): Add ser-event.c.
4684 (HFILES_NO_SRCDIR): Add ser-event.h.
4685 (COMMON_OBS): Add ser-event.o.
4686 * ser-event.c, ser-event.h: New files.
4687 * serial.c (new_serial): New function, factored out from
4688 (serial_fdopen_ops): ... this.
4689 (serial_open_ops_1): New function, factored out from
4690 (serial_open): ... this.
4691 (serial_open_ops): New function.
4692 * serial.h (struct serial): Forware declare.
4693 (serial_open_ops): New declaration.
4694
4695 2016-04-12 Pedro Alves <palves@redhat.com>
4696
4697 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4698 Remove references to name.
4699 * serial.h (struct serial) <name>: Delete.
4700
4701 2016-04-12 Pedro Alves <palves@redhat.com>
4702
4703 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
4704 Delete.
4705 (async_remote_fileio_interrupt): Delete.
4706 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
4707 handler. Instead just always set the ctrl_c flag.
4708 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
4709 re-enabling the SIGINT handler.
4710 (remote_fileio_func_open, remote_fileio_func_close)
4711 (remote_fileio_func_read, remote_fileio_func_write)
4712 (remote_fileio_func_lseek, remote_fileio_func_rename)
4713 (remote_fileio_func_unlink, remote_fileio_func_stat)
4714 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4715 (remote_fileio_func_isatty, remote_fileio_func_system)
4716 (remote_fileio_request): Remove references to
4717 remote_fio_no_longjmp.
4718 (initialize_remote_fileio): Don't create an async signal handler.
4719
4720 2016-04-12 Pedro Alves <palves@redhat.com>
4721
4722 * event-top.c (stdin_event_handler): Call QUIT;
4723 (prompt_for_continue): Don't run with immediate_quit set.
4724
4725 2016-04-12 Pedro Alves <palves@redhat.com>
4726
4727 * tui/tui-io.c (tui_redisplay_readline): Check
4728 gdb_in_secondary_prompt_p instead of immediate_quit.
4729 * tui/tui.c: Include top.h.
4730 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
4731 immediate_quit.
4732
4733 2016-04-12 Pedro Alves <palves@redhat.com>
4734
4735 * top.c (read_command_file): Inline command_loop here.
4736 (command_loop): Delete.
4737
4738 2016-04-12 Pedro Alves <palves@redhat.com>
4739
4740 * top.c: Include "gdb_select.h".
4741 (gdb_readline_no_editing): Wait for input with gdb_select instead
4742 of blocking in fgetc.
4743 (command_line_input): Don't set immediate_quit.
4744
4745 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
4746
4747 * value.c (value_next): Make pass-by-reference parameters const-correct.
4748 (value_parent): Likewise.
4749 (value_enclosing_type): Likewise.
4750 (value_lazy): Likewise.
4751 (value_stack): Likewise.
4752 (value_embedded_offset): Likewise.
4753 (value_pointed_to_offset): Likewise.
4754 (value_raw_address): Likewise.
4755 (deprecated_value_modifiable): Likewise.
4756 (value_free_to_mark): Likewise.
4757 (value_release_to_mark): Likewise.
4758 (internalvar_name): Likewise.
4759 (readjust_indirect_value_type): Likewise.
4760 (value_initialized): Likewise.
4761 * value.h (value_next): Likewise.
4762 (value_parent): Likewise.
4763 (value_enclosing_type): Likewise.
4764 (value_lazy): Likewise.
4765 (value_stack): Likewise.
4766 (value_embedded_offset): Likewise.
4767 (value_pointed_to_offset): Likewise.
4768 (value_raw_address): Likewise.
4769 (deprecated_value_modifiable): Likewise.
4770 (value_free_to_mark): Likewise.
4771 (value_release_to_mark): Likewise.
4772 (internalvar_name): Likewise.
4773 (readjust_indirect_value_type): Likewise.
4774 (value_initialized): Likewise.
4775
4776 2016-04-07 Yao Qi <yao.qi@linaro.org>
4777
4778 * record-full.c (record_full_insert_breakpoint): Return
4779 early if entry on the address is found in
4780 record_full_breakpoints.
4781
4782 2016-04-07 Yao Qi <yao.qi@linaro.org>
4783
4784 * record-full.c (record_full_insert_breakpoint): Set
4785 bp_tgt->reqstd_address and bp_tgt->placed_size.
4786
4787 2016-04-06 Don Breazeal <donb@codesourcery.com>
4788
4789 * value.c (value_actual_type): Don't try to get rtti type
4790 of the value if it has been optimized out.
4791 (value_optimized_out): If a memory access error occurs,
4792 just check vaue->optimized_out.
4793
4794 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4795
4796 Revert the previous commit adding unknown_v_replies_ok.
4797
4798 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4799
4800 * remote.c (struct remote_state): New field unknown_v_replies_ok.
4801 (packet_config_support): Read it.
4802 (remote_start_remote): Set it.
4803
4804 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4805
4806 * remote.c: Revert check-in by a mistake in the previous commit.
4807
4808 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4809 Pedro Alves <palves@redhat.com>
4810
4811 * exec.c (exec_file_locate_attach): Print warning for unsupported
4812 target_pid_to_exec_file.
4813 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
4814 message part.
4815
4816 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
4817
4818 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
4819 trailing spaces.
4820
4821 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
4822
4823 PR gdb/19820
4824 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
4825 the type of BINOP_REPEAT's second operand.
4826
4827 2016-03-31 Yichao Yu <yyc1992@gmail.com>
4828
4829 PR gdb/19858
4830 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
4831 got the breakpoint at the right address.
4832 (jit_inferior_created): New function.
4833 (_initialize_jit): Install jit_inferior_created as
4834 inferior_created observer.
4835
4836 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4837
4838 * NEWS: Mention support for tracepoints on powerpc*-linux.
4839
4840 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
4841
4842 PR python/19743
4843 * python/python.c (execute_gdb_command): Use console uiout
4844 when executing gdb command.
4845 * utils.c (restore_ui_out_closure): New structure.
4846 (do_restore_ui_out): New function.
4847 (make_cleanup_restore_ui_out): Likewise.
4848 * utils.h (make_cleanup_restore_ui_out): Declare.
4849
4850 2016-03-31 Pedro Alves <palves@redhat.com>
4851
4852 * NEWS: Mention that support for "target m32rsdi", "target mips",
4853 "target pmon", "target ddb", "target rockhopper", and "target lsi"
4854 was removed.
4855 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
4856 remote-mips.o.
4857 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
4858 * configure.tgt: Remove all references to remote-m32r-sdi.o and
4859 remote-mips.o.
4860 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
4861 function.
4862 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
4863 declaration.
4864 * remote-m32r-sdi.c, remote-mips.c: Delete files.
4865 * symfile.c (generic_load, generic_load): Remove comments.
4866
4867 2016-03-30 Yao Qi <yao.qi@linaro.org>
4868
4869 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
4870 0 rather than NULL.
4871
4872 2016-03-30 Yao Qi <yao.qi@linaro.org>
4873
4874 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
4875 (arm_epilogue_frame_this_id): New function.
4876 (arm_epilogue_frame_prev_register): New function.
4877 (arm_epilogue_frame_sniffer): New function.
4878 (arm_epilogue_frame_unwind): New.
4879 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
4880
4881 2016-03-30 Yao Qi <yao.qi@linaro.org>
4882
4883 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
4884 (arm_stack_frame_destroyed_p_1): ... here. Don't call
4885 arm_pc_is_thumb.
4886 (arm_stack_frame_destroyed_p): Call
4887 thumb_stack_frame_destroyed_p and
4888 arm_stack_frame_destroyed_p_1.
4889
4890 2016-03-30 Doug Evans <dje@google.com>
4891
4892 * python/py-utils.c (host_string_to_python_string): New function.
4893 * python/python-internal.h (host_string_to_python_string): Declare it.
4894 * python/py-*.c (*): Update all calls to
4895 PyString_Decode (str, strlen (str), host_charset (), NULL);
4896 to use host_string_to_python_string instead.
4897
4898 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4899
4900 * remote.c (remote_check_symbols): Allocate own buffer for reply.
4901
4902 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
4903
4904 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
4905 Use safe_read_memory_integer instead of read_memory_integer.
4906
4907 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4908
4909 * NEWS: Mention support for tracepoints on s390*-linux.
4910
4911 2016-03-29 Don Breazeal <donb@codesourcery.com>
4912
4913 * gdb/value.c (value_actual_type): Fix formatting issue.
4914
4915 2016-03-23 Yao Qi <yao.qi@linaro.org>
4916
4917 * gdbarch.sh (software_single_step): Remove comments.
4918 * gdbarch.h: Regenerated.
4919
4920 2016-03-21 Yao Qi <yao.qi@linaro.org>
4921
4922 * arm-tdep.c (arm_record_media): New.
4923 (arm_record_ld_st_reg_offset): Call arm_record_media.
4924
4925 2016-03-21 Yao Qi <yao.qi@linaro.org>
4926
4927 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
4928 more syscalls.
4929
4930 2016-03-18 Yao Qi <yao.qi@linaro.org>
4931
4932 * sparc-tdep.c (sparc_software_single_step): Make it static.
4933 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
4934
4935 2016-03-18 Yao Qi <yao.qi@linaro.org>
4936
4937 * spu-tdep.c (spu_software_single_step): Throw error when
4938 target_read_memory fails.
4939
4940 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
4943
4944 2016-03-17 Pedro Alves <palves@redhat.com>
4945 Don Breazeal <donb@codesourcery.com>
4946
4947 PR remote/19496
4948 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
4949 instead of checking the 'non_stop' global.
4950 * remote.c (remote_add_thread): New parameter 'executing'. Use it
4951 to set the new thread's executing state.
4952 (remote_notice_new_inferior): Rename parameter 'running' to
4953 'executing'. Always set the thread state to THREAD_RUNNING in
4954 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
4955 EXECUTING to remote_add_thread and notice_new_inferior.
4956 (remote_update_thread_list): Update to pass executing state, not
4957 running state.
4958
4959 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4960
4961 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
4962 to 374.
4963 * syscalls/s390x-linux.xml: Likewise.
4964
4965 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4966
4967 * linux-record.c (record_mem_at_reg): New helper function.
4968 (record_linux_system_call): Exploit new helper function where
4969 applicable.
4970
4971 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4972
4973 * linux-record.c: Fix whitespace issues; tabify, remove trailing
4974 spaces.
4975
4976 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4977
4978 * linux-record.c (record_linux_system_call): Add missing return
4979 statements to handling of pipe and pipe2 syscalls.
4980
4981 2016-03-16 Doug Evans <dje@google.com>
4982
4983 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
4984
4985 2016-03-16 Yao Qi <yao.qi@linaro.org>
4986
4987 * arm-linux-tdep.c (arm_linux_init_abi): Fix
4988 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
4989 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
4990 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
4991 arm_linux_record_tdep.arg7.
4992
4993 2016-03-15 Keith Seitz <keiths@redhat.com>
4994
4995 PR breakpoints/18303
4996 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
4997 look for "::" instead of simply ":".
4998 (cp_search_static_and_baseclasses): Return null_block_symbol for
4999 malformed input.
5000 Remove assertions.
5001 * cp-support.c (cp_find_first_component_aux): Do not return
5002 a prefix length for ':' unless the next character is also ':'.
5003
5004 2016-03-15 Doug Evans <dje@google.com>
5005
5006 * features/aarch64-core.xml (cpsr_flags): New flags type.
5007 (cpsr): Use it.
5008 * features/aarch64.c: Regenerate.
5009
5010 2016-03-15 Doug Evans <dje@google.com>
5011
5012 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
5013 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
5014 * features/i386/64bit-core.xml (i386_eflags): Ditto.
5015 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
5016 * features/i386/x32-core.xml (i386_eflags): Ditto.
5017
5018 2016-03-15 Doug Evans <dje@google.com>
5019 Wei-cheng Wang <cole945@gmail.com>
5020
5021 Extend flags to support multibit and enum bitfields.
5022 * NEWS: Document new features.
5023 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
5024 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
5025 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
5026 (append_flags_type_field): New function.
5027 (append_flags_type_flag): Call it.
5028 * gdbtypes.h (append_flags_type_field): Declare.
5029 * target-descriptions.c (struct tdesc_type_flag): Delete.
5030 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
5031 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
5032 (struct tdesc_type) <u.f>: Delete.
5033 (tdesc_predefined_types): Add "bool".
5034 (tdesc_predefined_type): New function.
5035 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
5036 Update TDESC_TYPE_FLAGS support.
5037 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
5038 (tdesc_create_flags): Update.
5039 (tdesc_create_enum): New function.
5040 (tdesc_add_field): Initialize start,end to -1.
5041 (tdesc_add_typed_bitfield): New function.
5042 (tdesc_add_bitfield): Call it.
5043 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
5044 (tdesc_add_enum_value): New function.
5045 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
5046 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
5047 * target-descriptions.h (tdesc_create_enum): Declare.
5048 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
5049 * valprint.c (generic_val_print_enum_1): New function.
5050 (generic_val_print_enum): Call it.
5051 (val_print_type_code_flags): Make static. Handle multibit bitfields
5052 and enum bitfields.
5053 * valprint.h (val_print_type_code_flags): Delete.
5054 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
5055 Delete. All uses removed.
5056 (tdesc_start_enum): New function.
5057 (tdesc_start_field): Handle multibit and enum bitfields.
5058 (tdesc_start_enum_value): New function.
5059 (enum_value_attributes, enum_children, enum_attributes): New static
5060 globals.
5061 (feature_children): Add "enum".
5062 * features/gdb-target.dtd (enum, evalue): New elements.
5063
5064 2016-03-15 Doug Evans <dje@google.com>
5065
5066 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
5067 from LONGEST to int.
5068 (struct tdesc_type) <u.f.size>: Ditto.
5069 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
5070 to int. Add assertion size > 0.
5071 (tdesc_create_flags): Ditto.
5072 * target-descriptions.h (tdesc_set_struct_size): Update.
5073 (tdesc_create_flags): Update.
5074 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
5075 (MAX_VECTOR_SIZE): New macro.
5076 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
5077 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
5078
5079 2016-03-15 Doug Evans <dje@google.com>
5080
5081 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
5082 TYPE_CODE_FLAGS instead of "field_type", for consistency.
5083 * features/i386/amd64-avx-linux.c: Regenerate.
5084 * features/i386/amd64-avx.c: Regenerate.
5085 * features/i386/amd64-avx512-linux.c: Regenerate.
5086 * features/i386/amd64-avx512.c: Regenerate.
5087 * features/i386/amd64-linux.c: Regenerate.
5088 * features/i386/amd64-mpx-linux.c: Regenerate.
5089 * features/i386/amd64-mpx.c: Regenerate.
5090 * features/i386/amd64.c: Regenerate.
5091 * features/i386/i386-avx-linux.c: Regenerate.
5092 * features/i386/i386-avx.c: Regenerate.
5093 * features/i386/i386-avx512-linux.c: Regenerate.
5094 * features/i386/i386-avx512.c: Regenerate.
5095 * features/i386/i386-linux.c: Regenerate.
5096 * features/i386/i386-mmx-linux.c: Regenerate.
5097 * features/i386/i386-mmx.c: Regenerate.
5098 * features/i386/i386-mpx-linux.c: Regenerate.
5099 * features/i386/i386-mpx.c: Regenerate.
5100 * features/i386/i386.c: Regenerate.
5101 * features/i386/x32-avx-linux.c: Regenerate.
5102 * features/i386/x32-avx.c: Regenerate.
5103 * features/i386/x32-avx512-linux.c: Regenerate.
5104 * features/i386/x32-avx512.c: Regenerate.
5105 * features/i386/x32-linux.c: Regenerate.
5106 * features/i386/x32.c: Regenerate.
5107
5108 2016-03-15 Pedro Alves <palves@redhat.com>
5109
5110 PR gdb/19676
5111 * linux-thread-db.c (try_thread_db_load_1): Leave
5112 info->td_ta_thr_iter_p NULL iff debugging a live process and we
5113 have /proc access.
5114 (find_new_threads_once): Assert that we have a non-NULL
5115 info->td_ta_thr_iter_p instead of checking whether the target has
5116 execution.
5117
5118 2016-03-15 Pedro Alves <palves@redhat.com>
5119
5120 PR gdb/19676
5121 * infrun.c (displaced_step_prepare): Also disable displaced
5122 stepping on NOT_SUPPORTED_ERROR.
5123 * linux-tdep.c (linux_displaced_step_location): If reading auxv
5124 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
5125
5126 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
5127
5128 * s390-linux-tdep.c (s390_gen_return_address): New function.
5129 (s390_gdbarch_init): Fill gen_return_address hook.
5130
5131 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * symmisc.c (maintenance_info_line_tables): New function.
5134 (maintenance_print_one_line_table): New function.
5135 (_initialize_symmisc): Register 'maint info line-table' command.
5136 * NEWS: Mention new command.
5137
5138 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
5139
5140 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
5141 (s390_ax_pseudo_register_push_stack): New function.
5142 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
5143 ax_pseudo_register_push_stack hooks.
5144
5145 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
5148 gdb/function/as_string.py.
5149 * python/lib/gdb/function/as_string.py: New file.
5150 * NEWS: Mention the new $_as_string function.
5151
5152 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5153
5154 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
5155
5156 2016-03-09 Pedro Alves <palves@redhat.com>
5157
5158 * event-top.c (more_to_come): Delete.
5159 (struct readline_input_state): Delete.
5160 (readline_input_state): Delete.
5161 (get_command_line_buffer): New function.
5162 (command_handler): Update comments. Don't handle NULL commands
5163 here. Do not execute commented lines.
5164 (command_line_append_input_line): New function.
5165 (handle_line_of_input): New function, partly based on
5166 command_line_handler and command_line_input.
5167 (command_line_handler): Rewrite.
5168 * event-top.h (command_handler): New declaration.
5169 (command_loop): Defer command execution to command_handler.
5170 (command_line_input): Update comments. Simplify, using struct
5171 buffer and handle_line_of_input.
5172 * top.h (struct buffer): New forward declaration.
5173 (handle_line_of_input): New declaration.
5174
5175 2016-03-09 Pedro Alves <palves@redhat.com>
5176
5177 * event-top.c (command_line_handler): Use xfree + xstrdup instead
5178 of xrealloc + strcpy.
5179 * main.c (captured_main): Use xstrdup instead of xmalloc plus
5180 manual clear.
5181 * top.c (saved_command_line): Rewrite comment.
5182 (saved_command_line_size): Delete.
5183 (command_line_input): Use xfree + xstrdup instead of xrealloc +
5184 strcpy.
5185 * top.h (saved_command_line_size): Delete declaration.
5186
5187 2016-03-09 Pedro Alves <palves@redhat.com>
5188
5189 * event-top.c: Include buffer.h.
5190 (gdb_readline_no_editing_callback): Use struct buffer instead
5191 of xrealloc.
5192
5193 2016-03-09 Pedro Alves <palves@redhat.com>
5194
5195 * common/buffer.h (buffer_grow_char): New function.
5196 * top.c: Include buffer.h.
5197 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
5198 'prompt'. Use struct buffer instead of xrealloc.
5199
5200 2016-03-09 Pedro Alves <palves@redhat.com>
5201
5202 * defs.h (gdb_readline): Delete declaration.
5203 * top.c (gdb_readline): Rename to ...
5204 (gdb_readline_no_editing): ... this, and make static.
5205
5206 2016-03-09 Pedro Alves <palves@redhat.com>
5207
5208 * utils.c (prompt_for_continue): Update comments.
5209
5210 2016-03-09 Pedro Alves <palves@redhat.com>
5211
5212 * event-top.c (async_annotation_suffix): Delete.
5213 (top_level_prompt, command_line_handler): Don't use
5214 'async_annotation_suffix' and simplify.
5215 * event-top.h (async_annotation_suffix): Delete declaration.
5216 (init_main): Remove reference to 'async_annotation_suffix'.
5217
5218 2016-03-09 Pedro Alves <palves@redhat.com>
5219
5220 * event-top.c (gdb_readline2): Rename to ...
5221 (gdb_readline_no_editing_callback): ... this.
5222 (change_line_handler, stdin_event_handler)
5223 (gdb_setup_readline): Adjust.
5224 * event-top.h (gdb_readline2): Rename to ...
5225 (gdb_readline_no_editing_callback): ... this, and move closer to
5226 other readline-related declarations.
5227 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
5228
5229 2016-03-09 Pedro Alves <palves@redhat.com>
5230
5231 * top.c (window_hook): Delete.
5232 (command_loop): Remove references to window_hook.
5233
5234 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5235
5236 * corefile.c (safe_read_memory_unsigned_integer): New function.
5237 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
5238 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
5239
5240 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5241
5242 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
5243 (rs6000_gen_return_address): New function.
5244 (rs6000_gdbarch_init): Wire in the above.
5245
5246 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5247
5248 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
5249 (rs6000_gdbarch_init): Wire in the above.
5250
5251 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252
5253 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
5254 instructions that do nothing or are conditional traps.
5255
5256 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5257
5258 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
5259 frame func's PC in info->func before any other failure can occur.
5260 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
5261 info->func has been filled out.
5262
5263 2016-03-09 Pedro Alves <palves@redhat.com>
5264
5265 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
5266
5267 2016-03-09 Pedro Alves <palves@redhat.com>
5268
5269 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
5270
5271 2016-03-09 Pedro Alves <palves@redhat.com>
5272
5273 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
5274 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
5275
5276 2016-03-09 Pedro Alves <palves@redhat.com>
5277
5278 * doublest.c: Extend comments.
5279 (floatformat_to_doublest, floatformat_from_doublest): Copy the
5280 floatformat's total size, not the host type's size.
5281
5282 2016-03-09 Pedro Alves <palves@redhat.com>
5283
5284 * doublest.c (floatformat_totalsize_bytes): New function.
5285 (floatformat_from_type): Assert that the type's length is at least
5286 as long as the floatformat's totalsize.
5287 * doublest.h (floatformat_totalsize_bytes): New declaration.
5288 * gdbtypes.c (arch_float_type): Assert that the type's length is
5289 at least as long as the floatformat's totalsize.
5290
5291 2016-03-09 Pedro Alves <palves@redhat.com>
5292
5293 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
5294 format to floatformats_ieee_double.
5295
5296 2016-03-07 Pedro Alves <palves@redhat.com>
5297
5298 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
5299 before calling bfd_get_flavour.
5300
5301 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5302
5303 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
5304 (avr_push_dummy_call): Correct last needed argument register.
5305 Write MSB of argument into register and subsequent bytes into
5306 other registers in decreasing order.
5307
5308 2016-03-04 Yao Qi <yao.qi@linaro.org>
5309
5310 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
5311 condition check. Record the right D register number.
5312
5313 2016-03-04 Yao Qi <yao.qi@linaro.org>
5314
5315 * arm-tdep.c (arm_record_extension_space): Remove code
5316 printing "Process record does not support".
5317 (arm_record_data_proc_misc_ld_str): Likewise.
5318 (decode_insn): Call arm_record_extension_space if condition
5319 is 0xf. Call arm_record_unsupported_insn if ret isn't
5320 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
5321 the value of thumb2_record_decode_insn_handler.
5322
5323 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
5324
5325 * features/feature_to_c.sh: Print the help when passing no
5326 argument.
5327
5328 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5329
5330 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
5331
5332 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5333
5334 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
5335
5336 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5337
5338 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
5339 exception when attempting to access the inferior's backchain.
5340
5341 2016-02-29 Yao Qi <yao.qi@linaro.org>
5342
5343 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
5344 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
5345 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
5346 for aarch64_sys_epoll_create1.
5347
5348 2016-02-29 Yao Qi <yao.qi@linaro.org>
5349
5350 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
5351 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
5352 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
5353 * linux-record.c (record_linux_system_call): Handle them.
5354
5355 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
5356
5357 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
5358 cyclic imports.
5359
5360 2016-02-26 Keith Seitz <keiths@redhat.com>
5361
5362 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
5363 to avoid invalid conversion from void *.
5364
5365 2016-02-26 Yao Qi <yao.qi@linaro.org>
5366
5367 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
5368 per bit 8. Check bit 20 instead of bit 4 for VMOV
5369 instruction. Record D registers for instructions changing
5370 S registers. Change of the order of length and address
5371 in record_buf_mem array.
5372
5373 2016-02-26 Yao Qi <yao.qi@linaro.org>
5374
5375 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
5376 number of Rd.
5377
5378 2016-02-25 Doug Evans <dje@google.com>
5379
5380 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
5381 compiler warning.
5382 (recv_long_data): Ditto.
5383
5384 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
5387 Initialize variables.
5388
5389 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
5390
5391 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
5392 (ax_reg_mask): Likewise.
5393
5394 2016-02-24 Pedro Alves <palves@redhat.com>
5395
5396 * linux-nat.c (save_sigtrap) Delete.
5397 (stop_wait_callback): Call save_stop_reason instead of
5398 save_sigtrap.
5399 (check_stopped_by_breakpoint): Rename to ...
5400 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
5401 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
5402 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
5403 common code between the USE_SIGTRAP_SIGINFO and
5404 !USE_SIGTRAP_SIGINFO blocks.
5405 (linux_nat_filter_event): Call save_stop_reason instead of
5406 save_sigtrap.
5407 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
5408 si_code for MIPS.
5409 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
5410 comments on MIPS behavior.
5411 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
5412
5413 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
5414
5415 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
5416 to avoid spurious warnings.
5417
5418 2016-02-24 Gary Benson <gbenson@redhat.com>
5419
5420 * exec.c (exec_file_locate_attach): Do not attempt to
5421 locate main executable locally if not found in sysroot.
5422
5423 2016-02-24 Joel Brobecker <brobecker@adacore.com>
5424
5425 GDB 7.11 released.
5426
5427 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
5428
5429 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
5430 unavailable PC/SP to build unavailable frame.
5431
5432 2016-02-23 Doug Evans <dje@google.com>
5433
5434 Extend "skip" command to support -file, -gfile, -function, -rfunction.
5435 * NEWS: Document new features.
5436 * skip.c: #include "fnmatch.h", "gdb_regex.h".
5437 (skiplist_entry) <file>: Renamed from filename.
5438 <function>: Renamed from function_name.
5439 <file_is_glob, function_is_regexp>: New members.
5440 <compiled_function_regexp, compiled_function_regexp_is_valid>:
5441 New members.
5442 (make_skip_entry): New function.
5443 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
5444 (make_free_skiplist_entry_cleanup): New function.
5445 (skip_file_command): Update.
5446 (skip_function, skip_function_command): Update.
5447 (compile_skip_regexp): New functions.
5448 (skip_command): Add support for new options.
5449 (skip_info): Update.
5450 (skip_file_p, skip_gfile_p): New functions.
5451 (skip_function_p, skip_rfunction_p): New functions.
5452 (function_name_is_marked_for_skip): Update and simplify.
5453 (_initialize_step_skip): Update.
5454 * symtab.c: #include "fnmatch.h".
5455 (compare_glob_filenames_for_search): New function.
5456 * symtab.h (compare_glob_filenames_for_search): Declare.
5457 * utils.c (count_path_elements): New function.
5458 (strip_leading_path_elements): New function.
5459 * utils.h (count_path_elements): Declare.
5460 (strip_leading_path_elements): Declare.
5461
5462 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
5463
5464 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
5465 (thumb_process_displaced_insn): Likewise.
5466 (arm_process_displaced_insn): Adjust calls.
5467
5468 2016-02-23 Yao Qi <yao.qi@linaro.org>
5469
5470 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
5471 Remove.
5472 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
5473 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
5474 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
5475 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
5476 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
5477 <aarch64_sys_faccessat>: New.
5478 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
5479 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
5480 <aarch64_sys_newfstatat>: New.
5481 (UNSUPPORTED_SYSCALL_MAP): New macro.
5482 (aarch64_canonicalize_syscall): Add missing syscalls.
5483
5484 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
5487
5488 2016-02-22 Yao Qi <yao.qi@linaro.org>
5489
5490 * arm-tdep.c: Fix code format issues.
5491
5492 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
5493
5494 * d-namespace.c (d_lookup_symbol_imports): Remove argument
5495 'search_parents'. All callers updated.
5496
5497 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5498
5499 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
5500 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
5501
5502 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
5503
5504 * NEWS: Add entry for bound violation.
5505 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
5506 Add handler for segmentation fault.
5507 * gdbarch.sh (handle_segmentation_fault): New.
5508 * gdbarch.c: Regenerate.
5509 * gdbarch.h: Regenerate.
5510 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
5511 (SIG_CODE_BONDARY_FAULT): New define.
5512 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
5513 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
5514 * i386-tdep.c (i386_mpx_enabled): Add as external.
5515 * i386-tdep.c (i386_mpx_enabled): Add as external.
5516 * infrun.c (handle_segmentation_fault): New function.
5517 (print_signal_received_reason): Use handle_segmentation_fault.
5518
5519 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5520
5521 * arch-utils.c (default_guess_tracepoint_registers): New function.
5522 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
5523 * gdbarch.c: Regenerate.
5524 * gdbarch.h: Regenerate.
5525 * gdbarch.sh: Add guess_tracepoint_registers hook.
5526 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
5527
5528 2016-02-17 Gary Benson <gbenson@redhat.com>
5529
5530 * exec.c (exec_file_locate_attach): Add missing cleanup.
5531
5532 2016-02-16 Don Breazeal <donb@codesourcery.com>
5533
5534 PR remote/19496
5535 * remote.c (remove_new_fork_children): Check for pending
5536 fork status in thread_info.suspend.
5537
5538 2016-02-16 Yao Qi <yao.qi@linaro.org>
5539
5540 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
5541 'old_chain' later.
5542
5543 2016-02-16 Yao Qi <yao.qi@linaro.org>
5544
5545 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
5546 <syscall_next_pc>: Remove argument PC. Callers updated.
5547 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5548 Remove argument PC. Get pc from regcache_read_pc.
5549 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
5550 argument PC.
5551
5552 2016-02-15 Yao Qi <yao.qi@linaro.org>
5553
5554 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
5555
5556 2016-02-12 Yao Qi <yao.qi@linaro.org>
5557
5558 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
5559 nextpc according to instruction.
5560
5561 2016-02-12 Yao Qi <yao.qi@linaro.org>
5562
5563 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
5564 self->ops->fixup if it isn't NULL.
5565 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
5566 (struct arm_get_next_pcs_ops) <fixup>: New field.
5567 * arch/arm-linux.c: Include common-regcache.h and
5568 arch/arm-get-next-pcs.h.
5569 (arm_linux_get_next_pcs_fixup): New function.
5570 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
5571 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
5572 it with arm_linux_get_next_pcs_fixup.
5573 (arm_linux_software_single_step): Move code to
5574 arm_linux_get_next_pcs_fixup.
5575 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
5576
5577 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5578
5579 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
5580 and return NULL.
5581
5582 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5583
5584 * frame.h (skip_tailcall_frames): Update comment.
5585 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
5586 if only artificial frames are found. Update comment.
5587 (frame_unwind_caller_id): Handle NULL return.
5588 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
5589 skip_artificial_frames does not return NULL.
5590 (frame_pop): Add an error if only tailcall frames are found.
5591 * infcmd.c (finish_command): Move skip_tailcall_frames call into
5592 forward-execution case. Add an error if only tailcall frames are
5593 found.
5594
5595 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5596
5597 * stack.c (frame_info): Check frame_unwind_caller_id.
5598
5599 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5600
5601 * frame.h (skip_tailcall_frames): New.
5602 * frame.c (skip_tailcall_frames): New.
5603 (frame_pop): Call skip_tailcall_frames.
5604 * infcmd.c (finish_command): Call skip_tailcall_frames.
5605
5606 2016-02-11 Pedro Alves <palves@redhat.com>
5607
5608 * Makefile.in (check-parallel): New rule.
5609
5610 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5611
5612 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
5613 (arm_analyze_prologue): Likewise.
5614 (arm_scan_prologue): Likewise.
5615 (arm_m_exception_prev_register): Likewise.
5616 (arm_copy_block_xfer): Likewise.
5617 (thumb2_copy_block_xfer): Likewise.
5618 (arm_decode_miscellaneous): Likewise.
5619 (arm_decode_ld_st_word_ubyte): Likewise.
5620 (arm_decode_svc_copro): Likewise.
5621 (thumb2_decode_svc_copro): Likewise.
5622 (thumb_copy_16bit_ldr_literal): Likewise.
5623 (thumb_copy_pop_pc_16bit): Likewise.
5624 (decode_thumb_32bit_ld_mem_hints): Likewise.
5625 (arm_show_force_mode): Likewise.
5626 (_initialize_arm_tdep): Likewise.
5627 (arm_record_strx): Likewise.
5628 (arm_record_extension_space): Likewise.
5629 (arm_record_data_proc_misc_ld_str): Likewise.
5630 (arm_record_exreg_ld_st_insn): Likewise.
5631 (arm_record_vfp_data_proc_insn): Likewise.
5632 (arm_record_coproc_data_proc): Likewise.
5633 (thumb_record_misc): Likewise.
5634 (thumb_record_ldm_stm_swi): Likewise.
5635 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
5636 (thumb2_record_ld_mem_hints): Likewise.
5637 (thumb2_record_lmul_lmla_div): Likewise.
5638 (thumb2_record_asimd_struct_ld_st): Likewise.
5639 (arm_process_record): Likewise.
5640
5641 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5642
5643 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
5644 (ARM displaced stepping support): Remove reference to
5645 arm_displaced_step_copy_insn in comment.
5646 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
5647 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
5648 reference to arm_displaced_step_copy_insn in comment.
5649
5650 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5651
5652 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
5653 (thumb_copy_b): Likewise.
5654 (arm_decode_b_bl_ldmstm): Likewise.
5655 (thumb_copy_16bit_ldr_literal): Likewise.
5656 (thumb_copy_pop_pc_16bit): Likewise.
5657
5658 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
5659
5660 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
5661 than loc->gdbarch.
5662
5663 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5664
5665 * tracefile-tfile.c (trace_tdesc): New static variable.
5666 (tfile_open): Clear trace_tdesc, call target_find_description.
5667 (tfile_interp_line): Recognize tdesc lines.
5668 (tfile_close): Clear trace_tdesc.
5669 (tfile_xfer_partial_features): New function.
5670 (tfile_xfer_partial): Call tfile_xfer_partial_features.
5671 (tfile_append_tdesc_line): New function.
5672
5673 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5674
5675 * ctf.c (ctf_write_tdesc): New function.
5676 (ctf_write_ops): Wire in ctf_write_tdesc.
5677 * tracefile-tfile.c (tfile_write_tdesc): New function.
5678 (tfile_write_ops): Wire in tfile_write_tdesc.
5679 * tracefile.c (trace_save): Call write_tdesc method.
5680 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
5681 * xml-tdesc.c (target_fetch_description_xml): New function.
5682 * xml-tdesc.h: Add target_fetch_description_xml prototype.
5683
5684 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
5685
5686 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
5687 (arm_decode_dp_misc): Likewise.
5688
5689 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5690
5691 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
5692 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
5693 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
5694 misleading comment.
5695 (i386_pseudo_register_write): Ditto.
5696 (i386_ax_pseudo_register_collect): New function.
5697 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
5698 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
5699
5700 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5701
5702 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
5703 instead of gdb order.
5704
5705 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5706
5707 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
5708 check.
5709
5710 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5711
5712 * NEWS: Create a new section for the next release branch.
5713 Rename the section of the current branch, now that it has
5714 been cut.
5715
5716 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5717
5718 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
5719 * version.in: Bump version to 7.11.50.DATE-git.
5720
5721 2016-02-09 Keith Seitz <keiths@redhat.com>
5722
5723 PR breakpoints/19546
5724 * breakpoint.c (breakpoint_event_location_empty_p): New function.
5725 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
5726 instead of event_location_empty_p.
5727
5728 2016-02-09 Keith Seitz <keiths@redhat.com>
5729
5730 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
5731 string_to_event_location_basic instead of string_to_event_location.
5732
5733 2016-02-09 Keith Seitz <keiths@redhat.com>
5734
5735 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
5736 leading whitespace and use string_to_event_location_basic instead
5737 of new_linespec_location.
5738
5739 2016-02-09 Keith Seitz <keiths@redhat.com>
5740
5741 PR python/19506
5742 * python/py-breakpoint.c (bppy_init): Use
5743 string_to_event_location_basic instead of new_linespec_location.
5744
5745 2016-02-09 Keith Seitz <keiths@redhat.com>
5746
5747 * location.c (string_to_explicit_location): Note that "-p" is
5748 reserved for probe locations and return NULL for any input
5749 that starts with that.
5750 (string_to_event_location): Move "legacy" linespec code to ...
5751 (string_to_event_location_basic): ... here.
5752 * location.h (string_to_event_location): Update comment.
5753 (string_to_event_location_basic): New function.
5754
5755 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5756
5757 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5758 to AC_OUTPUT. Remove "exit 0" at the end.
5759 * configure: Regenerate.
5760
5761 2016-02-09 Pedro Alves <palves@redhat.com>
5762
5763 PR breakpoints/19548
5764 * breakpoint.c (create_overlay_event_breakpoint): Don't update
5765 global location list here.
5766 (create_longjmp_master_breakpoint)
5767 (create_std_terminate_master_breakpoint)
5768 (create_exception_master_breakpoint, create_jit_event_breakpoint)
5769 (update_breakpoint_locations):
5770 (breakpoint_re_set): Update global location list after all
5771 breakpoints are re-set.
5772
5773 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
5774
5775 * remote.c (remote_register_number_and_offset): Remove unused
5776 variable(s).
5777 (remote_thread_always_alive): Likewise.
5778 (remote_update_thread_list): Likewise.
5779 (process_initial_stop_replies): Likewise.
5780 (remote_start_remote): Likewise.
5781 (remote_check_symbols): Likewise.
5782 (discard_pending_stop_replies): Likewise.
5783 (process_stop_reply): Likewise.
5784 (putpkt_binary): Likewise.
5785 (getpkt): Likewise.
5786 (remote_add_target_side_condition): Likewise.
5787 (remote_insert_breakpoint): Likewise.
5788 (remote_supports_stopped_by_sw_breakpoint): Likewise.
5789 (remote_supports_stopped_by_hw_breakpoint): Likewise.
5790 (remote_xfer_partial): Likewise.
5791 (remote_read_btrace): Likewise.
5792 (remote_async_serial_handler): Likewise.
5793 (remote_thread_events): Likewise.
5794 (_initialize_remote): Likewise.
5795
5796 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
5797
5798 * varobj.h (varobj_delete): Remove dellist parameter, update and
5799 move documentation here.
5800 * varobj.c (struct cpstack, cppush, cppop): Remove.
5801 (delete_variable): Remove resultp (first) parameter.
5802 (delete_variable_1): Likewise.
5803 (varobj_delete): Remove dellist parameter and unused code.
5804 (update_dynamic_varobj_children): Adjust varobj_delete call.
5805 (update_type_if_necessary): Likewise.
5806 (varobj_set_visualizer): Likewise.
5807 (varobj_update): Likewise.
5808 (value_of_root): Likewise.
5809 (varobj_invalidate_iter): Likewise.
5810 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
5811
5812 2016-02-04 Yao Qi <yao.qi@linaro.org>
5813
5814 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
5815 0 before handling 'F' and set it back afterwards.
5816
5817 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
5818
5819 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
5820
5821 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5822
5823 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
5824 New types.
5825 (compat_siginfo): New bound fields added.
5826 (compat_x32_siginfo): New field added.
5827 (cpt_si_addr_lsb): New define.
5828 (compat_siginfo_from_siginfo): Use nat_siginfo.
5829 (siginfo_from_compat_siginfo): Use nat_siginfo.
5830 (compat_x32_siginfo_from_siginfo): Likewise.
5831 (siginfo_from_compat_x32_siginfo): Likewise.
5832
5833 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5834
5835 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
5836 structure to the siginfo if extra_fields contains
5837 LINUX_SIGINFO_FIELD_ADDR_BND.
5838
5839 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5840
5841 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
5842 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
5843 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
5844 function.
5845 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
5846 x86_linux_get_siginfo_type for the amd64 abi.
5847 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
5848 function.
5849 (i386_linux_init_abi): Add new function at the i386 ABI
5850 initialization.
5851
5852 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5853
5854 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
5855 (linux_siginfo_extra_fields): New enum type.
5856 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
5857 (linux_get_siginfo_type): Use new function.
5858
5859 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5860
5861 * nat/amd64-linux-siginfo.c: New file.
5862 * nat/amd64-linux-siginfo.h: New file.
5863 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
5864 (amd64-linux-siginfo.o): New rule.
5865 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
5866 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
5867 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5868 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5869 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5870 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5871 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5872 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
5873
5874 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5875
5876 * value.c (max_value_size): New variable.
5877 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
5878 (set_max_value_size): New function.
5879 (show_max_value_size): New function.
5880 (check_type_length_before_alloc): New function.
5881 (allocate_value_contents): Call check_type_length_before_alloc.
5882 (set_value_enclosing_type): Likewise.
5883 (_initialize_values): Add set/show handler for max-value-size.
5884 * NEWS: Mention new set/show command.
5885
5886 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * varobj.h (struct varobj): Fix typos in comments.
5889 (struct lang_varobj_ops): Likewise.
5890 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
5891 (varobj_create): Move misplaced comment.
5892
5893 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
5894
5895 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
5896 to for include additional lines.
5897 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
5898
5899 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5900
5901 * gnulib/import/Makefile.am: Regenerate.
5902 * gnulib/import/Makefile.in: Regenerate.
5903 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5904 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
5905
5906 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5907
5908 * remote.c (skip_to_semicolon): Remove.
5909 (remote_parse_stop_reply): Use strchrnul instead of
5910 skip_to_semicolon.
5911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5912 strchrnul.
5913 * gnulib/aclocal.m4: Regenerate.
5914 * gnulib/config.in: Regenerate.
5915 * gnulib/configure: Regenerate.
5916 * gnulib/import/Makefile.am: Regenerate.
5917 * gnulib/import/Makefile.in: Regenerate.
5918 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5919 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5920 * gnulib/import/m4/rawmemchr.m4: New file.
5921 * gnulib/import/m4/strchrnul.m4: New file.
5922 * gnulib/import/rawmemchr.c: New file.
5923 * gnulib/import/rawmemchr.valgrind: New file.
5924 * gnulib/import/strchrnul.c: New file.
5925 * gnulib/import/strchrnul.valgrind: New file.
5926
5927 2016-01-28 Yao Qi <yao.qi@linaro.org>
5928
5929 * breakpoint.c (build_target_command_list): Don't call continue
5930 if aexpr is NULL.
5931 (build_target_condition_list): Likewise.
5932
5933 2016-01-27 Kevin Buettner <kevinb@redhat.com>
5934
5935 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
5936 bytes as aggregates.
5937
5938 2016-01-27 Joel Brobecker <brobecker@adacore.com>
5939
5940 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
5941 Linespec Maintainers.
5942
5943 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * common/common-utils.c (skip_spaces): Fix comment.
5946 (skip_to_space_const): Likewise.
5947
5948 2016-01-25 Yao Qi <yao.qi@linaro.org>
5949
5950 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5951 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
5952 (arm_deal_with_atomic_sequence_raw): Likewise.
5953 (thumb_get_next_pcs_raw): Likewise.
5954 (arm_get_next_pcs_raw): Likewise.
5955 (arm_get_next_pcs): Remove argument pc. Callers updated.
5956 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
5957
5958 2016-01-25 Mark Wielaard <mjw@redhat.com>
5959
5960 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
5961 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
5962 if statement.
5963 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
5964 statement block by introducing an else.
5965 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
5966 of return statements.
5967 (record_linux_msghdr): Likewise.
5968
5969 2016-01-25 Pedro Alves <palves@redhat.com>
5970
5971 PR threads/19461
5972 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
5973 parent/child running states.
5974
5975 2016-01-25 Pedro Alves <palves@redhat.com>
5976
5977 PR gdb/19494
5978 * linux-nat.c (kill_one_lwp): New, factored out from ...
5979 (kill_callback): ... this.
5980 (kill_wait_callback): New, factored out from ...
5981 (kill_wait_one_lwp): ... this.
5982 (kill_unfollowed_fork_children): New function.
5983 (linux_nat_kill): Use it.
5984
5985 2016-01-22 John Baldwin <jhb@FreeBSD.org>
5986
5987 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
5988
5989 2016-01-22 Yao Qi <yao.qi@linaro.org>
5990
5991 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
5992 instead of warning.
5993 (store_fpregs, fetch_regs, store_regs): Likewise.
5994 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5995 (fetch_vfp_regs, store_vfp_regs): Likewise.
5996
5997 2016-01-21 Doug Evans <dje@google.com>
5998
5999 * breakpoint.c (init_breakpoint_sal): Add comment.
6000
6001 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
6002
6003 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
6004
6005 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
6006
6007 * disasm.c (maybe_add_dis_line_entry): Rename to...
6008 (add_dis_line_entry): ...this, and update header comment.
6009 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
6010
6011 2016-01-21 Pedro Alves <palves@redhat.com>
6012
6013 * Makefile.in (COMPILER_CFLAGS): New.
6014 (CXXFLAGS): Get it from configure.
6015 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
6016 instead of CFLAGS.
6017 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
6018 COMPILER_CFLAGS.
6019 * configure: Regenerate.
6020
6021 2016-01-21 Joel Brobecker <brobecker@adacore.com>
6022
6023 * location.h (new_address_location): Add new parameters
6024 "addr_string" and "addr_string_len".
6025 (get_address_string_location): Add declaration.
6026 * location.c (new_address_location): Add new parameters
6027 "addr_string" and "addr_string_len". If not NULL, store
6028 a copy of the addr_string in the new location as well.
6029 (get_address_string_location): New function.
6030 (string_to_event_location): Update call to new_address_location.
6031 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
6032 Save the event location in the parser's state before
6033 passing it to convert_address_location_to_sals.
6034 * breakpoint.c (create_thread_event_breakpoint): Update call
6035 to new_address_location.
6036 (init_breakpoint_sal): Get the event location's string, if any,
6037 and use it to update call to new_address_location.
6038 * python/py-finishbreakpoint.c (bpfinishpy_init):
6039 Update call to new_address_location.
6040 * spu-tdep.c (spu_catch_start): Likewise.
6041
6042 * config/djgpp/fnchange.lst: Add entries for
6043 gdb/testsuite/gdb.base/break-fun-addr1.c and
6044 gdb/testsuite/gdb.base/break-fun-addr2.c.
6045
6046 2016-01-21 Yao Qi <yao.qi@linaro.org>
6047
6048 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
6049 is_thumb and set it according to CPSR saved on the stack.
6050 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
6051 arm_linux_sigreturn_next_pc.
6052
6053 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
6056 Fix enumerators sort key function.
6057
6058 2016-01-20 Joel Brobecker <brobecker@adacore.com>
6059
6060 * printcmd.c (print_scalar_formatted): Move binary operator from
6061 end of line to beginning of next line. Adjust formatting
6062 accordingly.
6063
6064 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6065
6066 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
6067 "len" with sysctl.
6068
6069 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6070
6071 * fbsd-tdep.c (find_stop_signal): Remove.
6072 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
6073 <stop_signal>: New field.
6074 <abort_iteration>: New field.
6075 (fbsd_collect_regset_section_cb): Use new fields.
6076 (fbsd_collect_thread_registers): New function.
6077 (struct fbsd_corefile_thread_data): New structure.
6078 (fbsd_corefile_thread): New function.
6079 (fbsd_make_corefile_notes): Use new function to dump notes for each
6080 non-exited thread in a process.
6081
6082 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6083
6084 * configure.ac: Check for support for LWP names on FreeBSD.
6085 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
6086 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
6087 (fbsd_fetch_kinfo_proc): Move function earlier.
6088 [PT_LWPINFO] (fbsd_thread_alive): New function.
6089 [PT_LWPINFO] (fbsd_pid_to_str): New function.
6090 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
6091 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
6092 [PT_LWPINFO] (fbsd_add_threads): New function.
6093 [PT_LWPINFO] (fbsd_update_thread_list): New function.
6094 [PT_LWPINFO] New variable super_resume.
6095 [PT_LWPINFO] (resume_one_thread_cb): New function.
6096 [PT_LWPINFO] (resume_all_threads_cb): New function.
6097 [PT_LWPINFO] (fbsd_resume): New function.
6098 (fbsd_remember_child): Save full ptid instead of plain pid.
6099 (fbsd_is_child_pending): Return ptid of saved child process.
6100 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
6101 first stop.
6102 [PT_LWP_EVENTS] Handle LWP events.
6103 [TDP_RFPPWAIT] Include LWP in child ptid.
6104 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
6105 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
6106 Add threads for existing processes.
6107 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
6108 "fbsd_thread_alive".
6109 Set "to_pid_to_str" to "fbsd_pid_to_str".
6110 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
6111 "fbsd_thread_name".
6112 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
6113 Set "to_has_thread_control" to "tc_schedlock".
6114 Set "to_resume" to "fbsd_resume".
6115 (_initialize_fbsd_nat): New function.
6116 * configure: Regenerate.
6117 * config.in: Regenerate.
6118
6119 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6120
6121 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6122 get_ptrace_pid.
6123 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
6124 (amd64bsd_dr_get): Use get_ptrace_pid.
6125 (amd64bsd_dr_set): Use get_ptrace_pid.
6126 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
6127 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
6128 (i386bsd_dr_get): Use get_ptrace_pid.
6129 (i386bsd_dr_set): Use get_ptrace_pid.
6130 * inf-ptrace.c (get_ptrace_pid): Export.
6131 * inf-ptrace.h (get_ptrace_pid): Declare.
6132 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
6133 (ppcfbsd_store_inferior_registers): Use lwp id.
6134
6135 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6136
6137 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
6138 (fbsd_core_thread_name): New function.
6139 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
6140 Add "core_thread_name" gdbarch method.
6141
6142 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6143
6144 * corelow.c (core_thread_name): New function.
6145 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
6146 target op.
6147 * gdbarch.sh (core_thread_name): New gdbarch callback.
6148 * gdbarch.h: Re-generate.
6149 * gdbarch.c: Re-generate.
6150
6151 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6152
6153 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
6154 convert gdb.Value to integer type using int().
6155
6156 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6157
6158 * configure.ac: Include <sys/types.h when checking for "r_fs" in
6159 "struct reg".
6160 * configure: Regenerate.
6161
6162 2016-01-19 Pedro Alves <palves@redhat.com>
6163
6164 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
6165 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
6166 current program space down to linespec decoding and breakpoint
6167 location updating.
6168 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
6169 decode_line_full.
6170 (until_break_command): Adjust calls to decode_line_1.
6171 (base_breakpoint_decode_location, bkpt_decode_location): Add
6172 'search_pspace' parameter. Pass it along.
6173 (bkpt_probe_create_sals_from_location): Adjust calls to
6174 parse_probes.
6175 (tracepoint_decode_location, tracepoint_probe_decode_location)
6176 (strace_marker_decode_location): Add 'search_pspace' parameter.
6177 Pass it along.
6178 (all_locations_are_pending): Rewrite to take a breakpoint and
6179 program space as arguments instead.
6180 (hoist_existing_locations): New function.
6181 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
6182 hoist_existing_locations instead of always removing all locations,
6183 and adjust to all_locations_are_pending change.
6184 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
6185 Don't disable the breakpoint if there are other locations in
6186 another program space.
6187 (breakpoint_re_set_default): Adjust to pass down the current
6188 program space as filter program space.
6189 (decode_location_default): Add 'search_pspace' parameter and pass
6190 it along.
6191 (prepare_re_set_context): Don't switch program space here.
6192 (breakpoint_re_set): Use save_current_space_and_thread instead of
6193 save_current_program_space.
6194 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
6195 'search_pspace' parameter.
6196 (update_breakpoint_locations): Add 'filter_pspace' parameter.
6197 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
6198 decode_line_1.
6199 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
6200 program space as filter program space.
6201 * linespec.c (struct linespec_state) <search_pspace>: New field.
6202 (create_sals_line_offset, convert_explicit_location_to_sals)
6203 (parse_linespec): Pass the search program space down.
6204 (linespec_state_constructor): Add 'search_pspace' parameter.
6205 Store it.
6206 (linespec_parser_new): Add 'search_pspace' parameter and pass it
6207 along.
6208 (linespec_lex_to_end): Adjust.
6209 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
6210 and pass it along.
6211 (decode_line_with_last_displayed): Adjust.
6212 (collect_symtabs_from_filename, symtabs_from_filename): New
6213 'search_pspace' parameter. Use it.
6214 (find_function_symbols): Pass the search program space down.
6215 * linespec.h (decode_line_1, decode_line_full): Add
6216 'search_pspace' parameter.
6217 * probe.c (parse_probes_in_pspace): New function, factored out
6218 from ...
6219 (parse_probes): ... this. Add 'search_pspace' parameter and use
6220 it.
6221 * probe.h (parse_probes): Add pspace' parameter.
6222 * python/python.c (gdbpy_decode_line): Adjust.
6223 * tracepoint.c (scope_info): Adjust.
6224
6225 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6226
6227 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
6228 instruction support.
6229 (micromips_next_pc): Likewise.
6230 (micromips_scan_prologue): Likewise.
6231 (micromips_deal_with_atomic_sequence): Likewise.
6232 (micromips_stack_frame_destroyed_p): Likewise.
6233 (mips_breakpoint_from_pc): Likewise.
6234
6235 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6236
6237 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
6238 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
6239
6240 2016-01-18 Pedro Alves <palves@redhat.com>
6241
6242 * NEWS: Mention that GDB now displays the ID and name of the
6243 thread that hit a breakpoint or received a signal.
6244 * break-catch-sig.c (signal_catchpoint_print_it): Use
6245 maybe_print_thread_hit_breakpoint.
6246 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6247 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
6248 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
6249 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
6250 (print_it_catch_exec, print_it_ranged_breakpoint)
6251 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
6252 Use maybe_print_thread_hit_breakpoint.
6253 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
6254 * gdbthread.h (show_thread_that_caused_stop): Declare.
6255 * infrun.c (print_signal_received_reason): Print which thread
6256 received signal.
6257 * thread.c (show_thread_that_caused_stop): New function.
6258
6259 2016-01-18 Gary Benson <gbenson@redhat.com>
6260
6261 * nat/linux-namespaces.c (do_fork): New function.
6262 (linux_mntns_get_helper): Use the above.
6263
6264 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
6265
6266 Pushed by Joel Brobecker <brobecker@adacore.com>.
6267 PR gdb/19208
6268 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6269 if the function has no name.
6270
6271 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
6272
6273 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
6274 Conditionalize for Windows host.
6275 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
6276 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
6277 (phony_iconv_open): Handle both UTF-32 endiannesses.
6278 (phony_iconv): Likewise. Check for output overflow and clean up
6279 out-of-input cases. Correct adjustment to input buffer pointer.
6280 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
6281 phony_iconv_open.
6282
6283 2016-01-15 Pedro Alves <palves@redhat.com>
6284
6285 * NEWS: Mention star wildcard ranges.
6286 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
6287 (number_range_setup_range): New function.
6288 * cli/cli-utils.h (number_range_setup_range): New declaration.
6289 * thread.c (thread_apply_command): Support star TID ranges.
6290 * tid-parse.c (tid_range_parser_finished)
6291 (tid_range_parser_string, tid_range_parser_skip)
6292 (get_tid_or_range, get_tid_or_range): Handle
6293 TID_RANGE_STATE_STAR_RANGE.
6294 (tid_range_parser_star_range): New function.
6295 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
6296 New value.
6297 (tid_range_parser_star_range): New declaration.
6298
6299 2016-01-15 Pedro Alves <palves@redhat.com>
6300
6301 * thread.c (thread_apply_command): Use the tid range parser to
6302 advance past the thread ID list.
6303 * tid-parse.c (get_positive_number_trailer): New function.
6304 (parse_thread_id): Use it.
6305 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
6306 thread ID error.
6307 (get_tid_or_range): Detect negative values. Return 0 instead of
6308 throwing invalid thread ID error.
6309
6310 2016-01-14 Yao Qi <yao.qi@linaro.org>
6311
6312 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6313 Declare.
6314 (arm_linux_get_next_pcs_ops): Install
6315 arm_linux_get_next_pcs_syscall_next_pc.
6316 (arm_linux_syscall_next_pc): Change to ...
6317 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
6318 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
6319 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
6320 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
6321 call tdep->syscall_next_pc.
6322 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
6323 (arm_get_next_pcs_syscall_next_pc): Remove.
6324
6325 2016-01-14 Yao Qi <yao.qi@linaro.org>
6326
6327 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
6328 * thread.c (do_captured_thread_select): Cast to const char *.
6329
6330 2016-01-14 Yao Qi <yao.qi@linaro.org>
6331
6332 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
6333 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
6334 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
6335 instead.
6336 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
6337 <arm_thumb2_breakpoint>: Remove.
6338 <has_thumb2_breakpoint>: New field.
6339 (arm_get_next_pcs_ctor): Update declaration.
6340 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
6341 1 to arm_get_next_pcs_ctor.
6342 * arm-tdep.c (arm_software_single_step): Pass 0 to
6343 arm_get_next_pcs_ctor.
6344
6345 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
6346
6347 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
6348
6349 2016-01-13 Yao Qi <yao.qi@linaro.org>
6350
6351 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
6352 byte_order_for_code to read instruction.
6353
6354 2016-01-13 Pedro Alves <palves@redhat.com>
6355
6356 * NEWS: Mention $_gthread.
6357 * gdbthread.h (struct thread_info) <global_num>: Mention
6358 $_gthread.
6359 * thread.c (thread_num_make_value_helper): New function.
6360 (thread_id_make_value): Delete.
6361 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
6362 New.
6363 (thread_funcs): Adjust.
6364 (gthread_funcs): New.
6365 (_initialize_thread): Register $_gthread variable.
6366
6367 2016-01-13 Pedro Alves <palves@redhat.com>
6368
6369 * NEWS: Mention "info threads -gid".
6370 * gdbthread.h (struct thread_info) <global_num>: Mention "info
6371 threads -gid".
6372 * thread.c (info_threads_command): Handle "-gid".
6373 (_initialize_thread): Adjust "info threads" help string to mention
6374 -gid.
6375
6376 2016-01-13 Pedro Alves <palves@redhat.com>
6377
6378 * NEWS: Mention InferiorThread.global_num.
6379 * python/py-infthread.c (thpy_get_global_num): New function.
6380 (thread_object_getset): Register "global_num".
6381
6382 2016-01-13 Pedro Alves <palves@redhat.com>
6383
6384 * NEWS: Mention that thread IDs are now per inferior and global
6385 thread IDs.
6386 * Makefile.in (SFILES): Add tid-parse.c.
6387 (COMMON_OBS): Add tid-parse.o.
6388 (HFILES_NO_SRCDIR): Add tid-parse.h.
6389 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
6390 * breakpoint.c (insert_breakpoint_locations)
6391 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
6392 (print_one_breakpoint_location, set_longjmp_breakpoint)
6393 (check_longjmp_breakpoint_for_call_dummy)
6394 (set_momentary_breakpoint): Adjust to use global IDs.
6395 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
6396 (until_break_command, longjmp_bkpt_dtor)
6397 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
6398 to use global IDs.
6399 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
6400 ptid_to_global_thread_id.
6401 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6402 * gdbthread.h (struct thread_info): Rename field 'num' to
6403 'global_num. Add new fields 'per_inf_num' and 'inf'.
6404 (thread_id_to_pid): Rename thread_id_to_pid to
6405 global_thread_id_to_ptid.
6406 (pid_to_thread_id): Rename to ...
6407 (ptid_to_global_thread_id): ... this.
6408 (valid_thread_id): Rename to ...
6409 (valid_global_thread_id): ... this.
6410 (find_thread_id): Rename to ...
6411 (find_thread_global_id): ... this.
6412 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
6413 (print_thread_info): Add comment.
6414 * tid-parse.h: New file.
6415 * tid-parse.c: New file.
6416 * infcmd.c (step_command_fsm_prepare)
6417 (step_command_fsm_should_stop): Adjust to use the global thread
6418 ID.
6419 (until_next_command, until_next_command)
6420 (finish_command_fsm_should_stop): Adjust to use the global thread
6421 ID.
6422 (attach_post_wait): Adjust to check the inferior number too.
6423 * inferior.h (struct inferior) <highest_thread_num>: New field.
6424 * infrun.c (handle_signal_stop)
6425 (insert_exception_resume_breakpoint)
6426 (insert_exception_resume_from_probe): Adjust to use the global
6427 thread ID.
6428 * record-btrace.c (record_btrace_open): Use global thread IDs.
6429 * remote.c (process_initial_stop_replies): Also consider the
6430 inferior number.
6431 * target.c (target_pre_inferior): Clear the inferior's highest
6432 thread num.
6433 * thread.c (clear_thread_inferior_resources): Adjust to use the
6434 global thread ID.
6435 (new_thread): New inferior parameter. Adjust to use it. Set both
6436 the thread's global ID and the thread's per-inferior ID.
6437 (add_thread_silent): Adjust.
6438 (find_thread_global_id): New.
6439 (find_thread_id): Make static. Adjust to rename.
6440 (valid_thread_id): Rename to ...
6441 (valid_global_thread_id): ... this.
6442 (pid_to_thread_id): Rename to ...
6443 (ptid_to_global_thread_id): ... this.
6444 (thread_id_to_pid): Rename to ...
6445 (global_thread_id_to_ptid): ... this. Adjust.
6446 (first_thread_of_process): Adjust.
6447 (do_captured_list_thread_ids): Adjust to use global thread IDs.
6448 (should_print_thread): New function.
6449 (print_thread_info): Rename to ...
6450 (print_thread_info_1): ... this, and add new show_global_ids
6451 parameter. Handle it. Iterate over inferiors.
6452 (print_thread_info): Reimplement as wrapper around
6453 print_thread_info_1.
6454 (show_inferior_qualified_tids): New function.
6455 (print_thread_id): Use it.
6456 (tp_array_compar): Compare inferior numbers too.
6457 (thread_apply_command): Use tid_range_parser.
6458 (do_captured_thread_select): Use parse_thread_id.
6459 (thread_id_make_value): Adjust.
6460 (_initialize_thread): Adjust "info threads" help string.
6461 * varobj.c (struct varobj_root): Update comment.
6462 (varobj_create): Adjust to use global thread IDs.
6463 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
6464 * windows-tdep.c (display_tib): No longer accept an argument.
6465 * cli/cli-utils.c (get_number_trailer): Make extern.
6466 * cli/cli-utils.h (get_number_trailer): Declare.
6467 (get_number_const): Adjust documentation.
6468 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
6469 thread IDs.
6470 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6471 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
6472 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
6473 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
6474 Likewise.
6475 * python/py-breakpoint.c (bppy_set_thread): Likewise.
6476 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
6477 * python/py-infthread.c (thpy_get_num): Add comment and return the
6478 per-inferior thread ID.
6479 (thread_object_getset): Update comment of "num".
6480
6481 2016-01-13 Pedro Alves <palves@redhat.com>
6482
6483 * breakpoint.c (remove_threaded_breakpoints)
6484 (print_one_breakpoint_location): Use print_thread_id.
6485 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6486 (btrace_fetch, btrace_clear): Use print_thread_id.
6487 * common/print-utils.c (CELLSIZE): Delete.
6488 (get_cell): Rename to ...
6489 (get_print_cell): ... this and made extern. Adjust call callers.
6490 Adjust to use PRINT_CELL_SIZE.
6491 * common/print-utils.h (get_print_cell): Declare.
6492 (PRINT_CELL_SIZE): New.
6493 * gdbthread.h (print_thread_id): Declare.
6494 * infcmd.c (signal_command): Use print_thread_id.
6495 * inferior.c (print_inferior): Use print_thread_id.
6496 * infrun.c (handle_signal_stop)
6497 (insert_exception_resume_breakpoint)
6498 (insert_exception_resume_from_probe)
6499 (print_signal_received_reason): Use print_thread_id.
6500 * record-btrace.c (record_btrace_info)
6501 (record_btrace_resume_thread, record_btrace_cancel_resume)
6502 (record_btrace_step_thread, record_btrace_wait): Use
6503 print_thread_id.
6504 * thread.c (thread_apply_all_command): Use print_thread_id.
6505 (print_thread_id): New function.
6506 (thread_apply_command): Use print_thread_id.
6507 (thread_command, thread_find_command, do_captured_thread_select):
6508 Use print_thread_id.
6509
6510 2016-01-13 Pedro Alves <palves@redhat.com>
6511
6512 * NEWS: Mention InferiorThread.inferior.
6513 * python/py-infthread.c (thpy_get_inferior): New.
6514 (thread_object_getset): Register "inferior".
6515
6516 2016-01-13 Pedro Alves <palves@redhat.com>
6517
6518 * NEWS: Mention $_inferior.
6519 * inferior.c (inferior_id_make_value): New.
6520 (inferior_funcs): New.
6521 (_initialize_inferior): Create $_inferior variable.
6522
6523 2016-01-13 Pedro Alves <palves@redhat.com>
6524
6525 PR breakpoints/19388
6526 * frame.c (get_current_frame): Use validate_registers_access.
6527 * gdbthread.h (validate_registers_access): Declare.
6528 * infrun.c (validate_siginfo_access): Delete.
6529 (siginfo_value_read, siginfo_value_write): Use
6530 validate_registers_access.
6531 * thread.c (validate_registers_access): New function.
6532
6533 2016-01-12 Josh Stone <jistone@redhat.com>
6534 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6535
6536 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
6537 syscall_entry and syscall_return stop reasons. Mention GDB
6538 support for remote catch syscall.
6539 * remote.c (PACKET_QCatchSyscalls): New enum.
6540 (remote_set_syscall_catchpoint): New function.
6541 (remote_protocol_features): New element for QCatchSyscalls.
6542 (remote_parse_stop_reply): Parse syscall_entry/return stops.
6543 (init_remote_ops): Install remote_set_syscall_catchpoint.
6544 (_initialize_remote): Config QCatchSyscalls.
6545 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
6546
6547 2016-01-12 Yao Qi <yao.qi@linaro.org>
6548
6549 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
6550 to gdb_byte * and pass to linux_fork_to_function.
6551
6552 2016-01-12 Yao Qi <yao.qi@linaro.org>
6553
6554 * nat/linux-ptrace.c (linux_fork_to_function): Change type
6555 of argument 'function'.
6556 (linux_grandchild_function): Change return type to 'int'.
6557 Change child_stack's type to 'void *'.
6558 (linux_child_function): Likewise.
6559
6560 2016-01-12 Pedro Alves <palves@redhat.com>
6561
6562 Remove use of the registered trademark symbol throughout.
6563
6564 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
6565
6566 * reply_mig_hack.awk: Rewrite one regular expression.
6567
6568 2016-01-11 Mike Frysinger <vapier@gentoo.org>
6569
6570 * acinclude.m4: Include new warning.m4 file.
6571 * configure: Regenerated.
6572 * configure.ac: Move all warning logic ...
6573 * warning.m4: ... here.
6574
6575 2016-01-08 Yao Qi <yao.qi@linaro.org>
6576
6577 * extension.c: Include target.h.
6578 (set_active_ext_lang): Only call install_gdb_sigint_handler,
6579 check_quit_flag, and set_quit_flag if target_terminal_is_ours
6580 returns false.
6581 (restore_active_ext_lang): Likewise.
6582 * target.c (target_terminal_is_ours): New function.
6583 * target.h (target_terminal_is_ours): Declare.
6584
6585 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
6586
6587 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
6588 to `err' in the little-endian leg.
6589
6590 2016-01-06 Yao Qi <yao.qi@linaro.org>
6591
6592 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
6593 lines below.
6594 (thumb_get_next_pcs_raw): Make it static.
6595 (arm_get_next_pcs_raw): Likewise.
6596 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
6597 declaration.
6598 (arm_get_next_pcs_raw): Likewise.
6599
6600 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6601
6602 * version.in: Change cvs to git.
6603
6604 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6605
6606 * configure.tgt (score-*-*): Delete gdb_sim assignment.
6607
6608 2016-01-05 Pedro Alves <palves@redhat.com>
6609
6610 PR sim/13418
6611 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
6612 the target is powerpc*.
6613 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
6614 of WITH_SIM.
6615 * configure: Regenerate.
6616 * config.in: Regenerate.
6617
6618 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
6619
6620 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
6621
6622 2016-01-02 Mike Frysinger <vapier@gentoo.org>
6623
6624 * configure.tgt (powerpc*-*-*): Delete test call and
6625 always assign gdb_sim.
6626
6627 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6628
6629 Update year range in copyright notice of all files.
6630
6631 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6632
6633 * top.c (print_gdb_version): Change copyright year in version
6634 message.
6635
6636 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6637
6638 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
6639
6640 For older changes see ChangeLog-2015.
6641 \f
6642 Local Variables:
6643 mode: change-log
6644 left-margin: 8
6645 fill-column: 74
6646 version-control: never
6647 coding: utf-8
6648 End:
This page took 0.198738 seconds and 4 git commands to generate.