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