Commit | Line | Data |
---|---|---|
9b30624b PA |
1 | 2016-04-18 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode. | |
4 | * configure: Regenerate. | |
5 | ||
a22df60a MG |
6 | 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com> |
7 | ||
8 | * valops.c (value_addr): For C++ references, set the copied value's | |
9 | enclosing_type as well. | |
10 | ||
5947319e YQ |
11 | 2016-04-18 Yao Qi <yao.qi@linaro.org> |
12 | ||
13 | Revert: | |
14 | 2016-04-15 Yao Qi <yao.qi@linaro.org> | |
15 | ||
16 | * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if | |
17 | PC is far from the end of function. | |
18 | ||
58484447 PA |
19 | 2016-04-16 Pedro Alves <palves@redhat.com> |
20 | ||
21 | * ada-exp.y (yydefred): Define as ada_yydefred. | |
22 | ||
2b2798cc PA |
23 | 2016-04-15 Pedro Alves <palves@redhat.com> |
24 | ||
25 | * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and | |
26 | 'name_str' locals. | |
27 | ||
d7abe101 PA |
28 | 2016-04-15 Pedro Alves <palves@redhat.com> |
29 | ||
30 | * btrace.c (pt_btrace_insn_flags): Change return type to | |
31 | btrace_insn_flags. Use btrace_insn_flags for local. | |
32 | ||
77770d83 PA |
33 | 2016-04-15 Pedro Alves <palves@redhat.com> |
34 | ||
35 | * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also | |
36 | accept TRAP_BRKPT. | |
37 | [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT. | |
38 | ||
415fa612 YQ |
39 | 2016-04-15 Yao Qi <yao.qi@linaro.org> |
40 | ||
41 | * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if | |
42 | PC is far from the end of function. | |
43 | ||
7f31862a PA |
44 | 2016-04-14 Pedro Alves <palves@redhat.com> |
45 | ||
46 | * cli/cli-cmds.c (alias_usage_error): New function. | |
47 | (alias_command): Use it. | |
48 | * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in | |
49 | ctf_save_write_metadata call. | |
50 | ||
aebf07fc PA |
51 | 2016-04-14 Pedro Alves <palves@redhat.com> |
52 | ||
53 | * ada-typeprint.c (print_fixed_point_type): Don't pass float as | |
54 | argument to function expecting LONGEST. | |
55 | * value.c (unpack_long): Add casts to LONGEST. | |
56 | ||
57d1de9c LM |
57 | 2016-04-13 Luis Machado <lgustavo@codesourcery.com> |
58 | ||
59 | * exec.c (exec_file_locate_attach): Guard a couple functions | |
60 | that can throw errors. | |
61 | (exception_print_same): New helper function. | |
62 | ||
3a00c802 PA |
63 | 2016-04-13 Pedro Alves <palves@redhat.com> |
64 | ||
65 | PR remote/19840 | |
66 | * remote.c (struct remote_state) <last_resume_exec_dir>: New | |
67 | field. | |
68 | (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD. | |
69 | (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD. | |
70 | (remote_resume): Store the last execution direction. | |
71 | (remote_execution_direction): New function. | |
72 | (init_remote_ops): Install it as to_execution_direction target_ops | |
73 | method. | |
74 | ||
0f41b320 PA |
75 | 2016-04-12 Pedro Alves <palves@redhat.com> |
76 | ||
77 | * common/common-exceptions.h (GDB_XCPT_TRY): Update comment. | |
78 | [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY. | |
79 | ||
173981bc PA |
80 | 2016-04-12 Pedro Alves <palves@redhat.com> |
81 | ||
82 | * common/common-exceptions.c (struct catcher) <buf>: Now a | |
83 | 'jmp_buf' instead of SIGJMP_BUF. | |
84 | (exceptions_state_mc_init): Change return type to 'jmp_buf'. | |
85 | (throw_exception): Use longjmp instead of SIGLONGJMP. | |
86 | * common/common-exceptions.h: Include <setjmp.h> instead of | |
87 | "gdb_setjmp.h". | |
88 | (exceptions_state_mc_init): Change return type to 'jmp_buf'. | |
89 | [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of | |
90 | SIGSETJMP. | |
91 | * cp-support.c: Include "gdb_setjmp.h". | |
92 | ||
2afc13ff PA |
93 | 2016-04-12 Pedro Alves <palves@redhat.com> |
94 | ||
95 | * common/common-exceptions.c (exception_rethrow): Remove | |
96 | prepare_to_throw_exception call. | |
97 | * common/common-exceptions.h (prepare_to_throw_exception): Delete | |
98 | declaration. | |
99 | * exceptions.c (prepare_to_throw_exception): Delete. | |
100 | ||
cfd0fbdd PA |
101 | 2016-04-12 Pedro Alves <palves@redhat.com> |
102 | ||
103 | * target.c (target_check_pending_interrupt): Delete. | |
104 | * target.h (struct target_ops) <to_check_pending_interrupt>: | |
105 | Remove method. | |
106 | (target_check_pending_interrupt): Remove declaration. | |
107 | * target-delegates.c: Regenerate. | |
108 | ||
585a46a2 PA |
109 | 2016-04-12 Pedro Alves <palves@redhat.com> |
110 | ||
111 | * defs.h: Update comments on SIGINT handling. | |
112 | (immediate_quit): Delete declaration. | |
113 | * event-loop.c (call_async_signal_handler): Delete. | |
114 | * event-loop.h (call_async_signal_handler): Delete declaration. | |
115 | (mark_async_signal_handler): Update comments. | |
116 | (gdb_call_async_signal_handler): Delete declaration. | |
117 | * event-top.c (handle_sigint): Call mark_async_signal_handler | |
118 | instead of gdb_call_async_signal_handler. | |
119 | * exceptions.c (prepare_to_throw_exception): Remove reference to | |
120 | immediate_quit. | |
121 | (exception_fprintf): Remove comments about immediate_quit. | |
122 | * mingw-hdep.c (sigint_event, sigint_handler): Delete. | |
123 | (gdb_select): Don't wait on sigint_event. | |
124 | (gdb_call_async_signal_handler): Delete. | |
125 | (_initialize_mingw_hdep): Delete. | |
126 | * posix-hdep.c (gdb_call_async_signal_handler): Delete. | |
127 | * utils.c (immediate_quit): Delete. | |
128 | ||
048094ac PA |
129 | 2016-04-12 Pedro Alves <palves@redhat.com> |
130 | ||
131 | * defs.h (quit_handler_ftype, quit_handler) | |
132 | (make_cleanup_override_quit_handler, default_quit_handler): New. | |
133 | (QUIT): Adjust comments. | |
134 | * event-top.c (default_quit_handler): New function. | |
135 | (quit_handler): New global. | |
136 | (struct quit_handler_cleanup_data): New. | |
137 | (restore_quit_handler, restore_quit_handler_dtor) | |
138 | (make_cleanup_override_quit_handler): New. | |
139 | (async_request_quit): Call QUIT. | |
140 | * remote.c (struct remote_state) <got_ctrlc_during_io>: New field. | |
141 | (async_sigint_remote_twice_token, async_sigint_remote_token): | |
142 | Delete. | |
143 | (remote_close): Update comments. | |
144 | (remote_start_remote): Don't set immediate_quit. Set starting_up | |
145 | earlier. | |
146 | (remote_serial_quit_handler, remote_unpush_and_throw): New | |
147 | functions. | |
148 | (remote_open_1): Clear got_ctrlc_during_io. Set | |
149 | remote_async_terminal_ours_p unconditionally. | |
150 | (async_initialize_sigint_signal_handler) | |
151 | (async_handle_remote_sigint, async_handle_remote_sigint_twice) | |
152 | (remote_check_pending_interrupt, async_remote_interrupt) | |
153 | (async_remote_interrupt_twice) | |
154 | (async_cleanup_sigint_signal_handler, ofunc) | |
155 | (sync_remote_interrupt, sync_remote_interrupt_twice): Delete. | |
156 | (remote_terminal_inferior, remote_terminal_ours): Remove async | |
157 | checks. | |
158 | (remote_wait_as): Don't install a SIGINT handler in sync mode. | |
159 | (readchar, remote_serial_write): Override the quit handler with | |
160 | remote_serial_quit_handler. | |
161 | (getpkt_or_notif_sane_1): Don't call QUIT. | |
162 | (initialize_remote_ops): Don't install | |
163 | remote_check_pending_interrupt. | |
164 | (_initialize_remote): Don't create async_sigint_remote_token and | |
165 | async_sigint_remote_twice_token. | |
166 | * ser-base.c (ser_base_wait_for): Call QUIT and use | |
167 | interruptible_select. | |
168 | (ser_base_write): Call QUIT. | |
169 | * ser-go32.c (dos_readchar, dos_write): Call QUIT. | |
170 | * ser-unix.c (wait_for): Don't use VTIME. Always take the | |
171 | gdb_select path, but call QUIT and interruptible_select. | |
172 | * utils.c (maybe_quit): Call the current quit handler. Don't call | |
173 | target_check_pending_interrupt. | |
174 | (defaulted_query, prompt_for_continue): Override the quit handler | |
175 | with the default quit handler. | |
176 | ||
a12ac513 PA |
177 | 2016-04-12 Pedro Alves <palves@redhat.com> |
178 | ||
179 | * tui/tui-hooks.c (tui_target_has_run): Delete. | |
180 | (tui_about_to_proceed): Delete. | |
181 | (tui_about_to_proceed_observer): Delete. | |
182 | (tui_install_hooks, tui_remove_hooks): Don't install/remove an | |
183 | about_to_proceed observer. | |
184 | ||
5fe96654 PA |
185 | 2016-04-12 Pedro Alves <palves@redhat.com> |
186 | ||
187 | * mi/mi-interp.c (mi_new_thread): Put | |
188 | target_terminal_ours_for_output in effect while outputting. | |
189 | (mi_thread_exit): Use target_terminal_ours_for_output instead of | |
190 | target_terminal_ours. | |
191 | (mi_record_changed, mi_inferior_added, mi_inferior_appeared) | |
192 | (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed) | |
193 | (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified) | |
194 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
195 | (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded) | |
196 | (mi_command_param_changed, mi_memory_changed) | |
197 | (report_initial_inferior): Use target_terminal_ours_for_output | |
198 | instead of target_terminal_ours. Restore terminal settings. | |
199 | * mi/mi-main.c (mi_execute_command): Use | |
200 | target_terminal_ours_for_output instead of target_terminal_ours. | |
201 | Restore terminal settings. | |
202 | ||
651ce16a PA |
203 | 2016-04-12 Pedro Alves <palves@redhat.com> |
204 | ||
205 | PR gdb/19828 | |
206 | * gnu-nat.c (inf_validate_task_sc): Don't call | |
207 | target_terminal_ours / target_terminal_inferior around query. | |
208 | * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't | |
209 | call target_terminal_ours / target_terminal_inferior around | |
210 | yquery. | |
211 | * linux-record.c (record_linux_system_call): Don't call | |
212 | target_terminal_ours / target_terminal_inferior around yquery. | |
213 | * nto-procfs.c (interrupt_query): Don't call target_terminal_ours | |
214 | / target_terminal_inferior around query. | |
215 | * record-full.c (record_full_check_insn_num): Remove | |
216 | 'set_terminal' parameter. Don't call target_terminal_ours / | |
217 | target_terminal_inferior around query. | |
218 | (record_full_message, record_full_registers_change) | |
219 | (record_full_xfer_partial): Adjust. | |
220 | * remote.c (interrupt_query): Don't call target_terminal_ours / | |
221 | target_terminal_inferior around query. | |
222 | * utils.c (defaulted_query): Install cleanup to restore target | |
223 | terminal. Put target_terminal_ours_for_output in effect while | |
224 | defaulted producing, and target_terminal_ours in in effect while | |
225 | handling input. | |
226 | (prompt_for_continue): Install cleanup to restore target terminal. | |
227 | Put target_terminal_ours in in effect while handling input. | |
228 | ||
80dbc9fd PA |
229 | 2016-04-12 Pedro Alves <palves@redhat.com> |
230 | ||
231 | * utils.c (defaulted_query, prompt_for_continue): Free temporary | |
232 | strings with cleanups, instead of xfree. | |
233 | ||
c5ac1540 PA |
234 | 2016-04-12 Pedro Alves <palves@redhat.com> |
235 | ||
236 | * utils.c (vwarning, internal_vproblem): Use | |
237 | make_cleanup_restore_target_terminal and | |
238 | target_terminal_ours_for_output. | |
239 | ||
f8e3ef9d PA |
240 | 2016-04-12 Pedro Alves <palves@redhat.com> |
241 | ||
242 | * infcmd.c (post_create_inferior, prepare_one_step): Use | |
243 | target_terminal_ours_for_output instead of target_terminal_ours. | |
244 | ||
481ac8c9 PA |
245 | 2016-04-12 Pedro Alves <palves@redhat.com> |
246 | ||
247 | * exceptions.c (print_flush): Use target_terminal_ours_for_output | |
248 | instead of target_terminal_ours, and restore target terminal with | |
249 | a cleanup. | |
250 | ||
c509f1e1 PA |
251 | 2016-04-12 Pedro Alves <palves@redhat.com> |
252 | ||
253 | * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output | |
254 | instead of target_terminal_ours, and restore target terminal with | |
255 | a cleanup. | |
256 | ||
99bbb428 PA |
257 | 2016-04-12 Pedro Alves <palves@redhat.com> |
258 | ||
259 | * ada-lang.c (type_as_string, type_as_string_and_cleanup): New | |
260 | functions. | |
261 | (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup. | |
262 | ||
75ee5925 PA |
263 | 2016-04-12 Pedro Alves <palves@redhat.com> |
264 | ||
265 | * ser-base.c (fd_event): Retry read_prim on EINTR. | |
266 | (do_ser_base_readchar): Retry read_prim on EINTR. | |
267 | (ser_base_write): Retry write_prim on EINTR. | |
268 | * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here. | |
269 | (ser_unix_write_prim): Remove comment. | |
270 | ||
93692b58 PA |
271 | 2016-04-12 Pedro Alves <palves@redhat.com> |
272 | ||
273 | * remote.c (remote_pass_ctrlc): New function. | |
274 | (init_remote_ops): Install it. | |
275 | * target.c (target_terminal_inferior): Pass pending Ctrl-C to the | |
276 | target. | |
277 | (target_pass_ctrlc, default_target_pass_ctrlc): New functions. | |
278 | * target.h (struct target_ops) <to_pass_ctrlc>: New method. | |
279 | (target_pass_ctrlc, default_target_pass_ctrlc): New declarations. | |
280 | * target-delegates.c: Regenerate. | |
281 | ||
e42de8c7 PA |
282 | 2016-04-12 Pedro Alves <palves@redhat.com> |
283 | ||
284 | * infcmd.c (interrupt_target_1): Call target_stop is in non-stop | |
285 | mode. | |
286 | * linux-nat.c (linux_nat_interrupt): Delete. | |
287 | (linux_nat_add_target): Don't install linux_nat_interrupt. | |
288 | * remote.c (remote_interrupt_ns): Change return type to void. | |
289 | Throw error if interrupting the target is not supported. | |
290 | (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as. | |
291 | ||
a149683b PA |
292 | 2016-04-12 Pedro Alves <palves@redhat.com> |
293 | ||
294 | * defs.h (clear_quit_flag): Remove declaration. | |
295 | * extension-priv.h (struct extension_language_ops) | |
296 | <clear_quit_flag>: Remove field and update comments. | |
297 | * extension.c (clear_quit_flag): Delete. | |
298 | * guile/guile.c (guile_extension_ops): Adjust. | |
299 | * python/python.c (python_extension_ops): Adjust. | |
300 | (gdbpy_clear_quit_flag): Delete. | |
301 | ||
da1e5f54 PA |
302 | 2016-04-12 Pedro Alves <palves@redhat.com> |
303 | ||
304 | * main.c (captured_main): Don't clear the quit flag. | |
305 | ||
0af679c6 PA |
306 | 2016-04-12 Pedro Alves <palves@redhat.com> |
307 | ||
308 | * exceptions.c (prepare_to_throw_exception): Don't clear the quit | |
309 | flag. | |
310 | ||
4a81fd47 PA |
311 | 2016-04-12 Pedro Alves <palves@redhat.com> |
312 | ||
313 | * event-top.c (command_handler): Don't call clear_quit_flag. | |
314 | ||
abf009ef PA |
315 | 2016-04-12 Pedro Alves <palves@redhat.com> |
316 | ||
317 | * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag. | |
318 | * remote.c (remote_wait_as): Don't call clear_quit_flag. | |
319 | ||
6eddd09a PA |
320 | 2016-04-12 Pedro Alves <palves@redhat.com> |
321 | ||
322 | * python/python.c: Include "ser-event.h". | |
323 | (gdbpy_event_fds): Delete. | |
324 | (gdbpy_serial_event): New. | |
325 | (gdbpy_run_events): Change prototype. Use serial_event_clear | |
326 | instead of serial_readchar. | |
327 | (gdbpy_post_event): Use serial_event_set instead of serial_write. | |
328 | (gdbpy_initialize_events): Use make_serial_event instead of | |
329 | serial_pipe. | |
330 | ||
f0881b37 PA |
331 | 2016-04-12 Pedro Alves <palves@redhat.com> |
332 | ||
333 | * defs.h: Extend QUIT-related comments to mention | |
334 | interruptible_select. | |
335 | (quit_serial_event_set, quit_serial_event_clear): Declare. | |
336 | * event-top.c: Include "ser-event.h" and "gdb_select.h". | |
337 | (quit_serial_event): New global. | |
338 | (async_init_signals): Make quit_serial_event. | |
339 | (quit_serial_event_set, quit_serial_event_clear) | |
340 | (quit_serial_event_fd, interruptible_select): New functions. | |
341 | * extension.c (set_quit_flag): Set the quit serial event. | |
342 | (check_quit_flag): Clear the quit serial event. | |
343 | * gdb_select.h (interruptible_select): New declaration. | |
344 | * guile/scm-ports.c (ioscm_input_waiting): Use | |
345 | interruptible_select instead of gdb_select. | |
346 | * top.c (gdb_readline_no_editing): Likewise. | |
347 | * ui-file.c (stdio_file_read): Likewise. | |
348 | ||
5cc3ce8b PA |
349 | 2016-04-12 Pedro Alves <palves@redhat.com> |
350 | ||
351 | * event-loop.c: Include "ser-event.h". | |
352 | (async_signal_handlers_serial_event): New global. | |
353 | (async_signals_handler, initialize_async_signal_handlers): New | |
354 | functions. | |
355 | (mark_async_signal_handler): Set | |
356 | async_signal_handlers_serial_event. | |
357 | (invoke_async_signal_handlers): Clear | |
358 | async_signal_handlers_serial_event. | |
359 | * event-top.c (async_init_signals): Call | |
360 | initialize_async_signal_handlers. | |
361 | ||
00340e1b PA |
362 | 2016-04-12 Pedro Alves <palves@redhat.com> |
363 | ||
364 | * Makefile.in (SFILES): Add ser-event.c. | |
365 | (HFILES_NO_SRCDIR): Add ser-event.h. | |
366 | (COMMON_OBS): Add ser-event.o. | |
367 | * ser-event.c, ser-event.h: New files. | |
368 | * serial.c (new_serial): New function, factored out from | |
369 | (serial_fdopen_ops): ... this. | |
370 | (serial_open_ops_1): New function, factored out from | |
371 | (serial_open): ... this. | |
372 | (serial_open_ops): New function. | |
373 | * serial.h (struct serial): Forware declare. | |
374 | (serial_open_ops): New declaration. | |
375 | ||
5f5219fc PA |
376 | 2016-04-12 Pedro Alves <palves@redhat.com> |
377 | ||
378 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
379 | Remove references to name. | |
380 | * serial.h (struct serial) <name>: Delete. | |
381 | ||
acd5494d PA |
382 | 2016-04-12 Pedro Alves <palves@redhat.com> |
383 | ||
384 | * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp): | |
385 | Delete. | |
386 | (async_remote_fileio_interrupt): Delete. | |
387 | (remote_fileio_ctrl_c_signal_handler): Don't call the async signal | |
388 | handler. Instead just always set the ctrl_c flag. | |
389 | (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before | |
390 | re-enabling the SIGINT handler. | |
391 | (remote_fileio_func_open, remote_fileio_func_close) | |
392 | (remote_fileio_func_read, remote_fileio_func_write) | |
393 | (remote_fileio_func_lseek, remote_fileio_func_rename) | |
394 | (remote_fileio_func_unlink, remote_fileio_func_stat) | |
395 | (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) | |
396 | (remote_fileio_func_isatty, remote_fileio_func_system) | |
397 | (remote_fileio_request): Remove references to | |
398 | remote_fio_no_longjmp. | |
399 | (initialize_remote_fileio): Don't create an async signal handler. | |
400 | ||
d2acc30b PA |
401 | 2016-04-12 Pedro Alves <palves@redhat.com> |
402 | ||
403 | * event-top.c (stdin_event_handler): Call QUIT; | |
404 | (prompt_for_continue): Don't run with immediate_quit set. | |
405 | ||
ab33ab13 PA |
406 | 2016-04-12 Pedro Alves <palves@redhat.com> |
407 | ||
408 | * tui/tui-io.c (tui_redisplay_readline): Check | |
409 | gdb_in_secondary_prompt_p instead of immediate_quit. | |
410 | * tui/tui.c: Include top.h. | |
411 | (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of | |
412 | immediate_quit. | |
413 | ||
faa4ebe1 PA |
414 | 2016-04-12 Pedro Alves <palves@redhat.com> |
415 | ||
416 | * top.c (read_command_file): Inline command_loop here. | |
417 | (command_loop): Delete. | |
418 | ||
3212b858 PA |
419 | 2016-04-12 Pedro Alves <palves@redhat.com> |
420 | ||
421 | * top.c: Include "gdb_select.h". | |
422 | (gdb_readline_no_editing): Wait for input with gdb_select instead | |
423 | of blocking in fgetc. | |
424 | (command_line_input): Don't set immediate_quit. | |
425 | ||
4bf7b526 MG |
426 | 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com> |
427 | ||
428 | * value.c (value_next): Make pass-by-reference parameters const-correct. | |
429 | (value_parent): Likewise. | |
430 | (value_enclosing_type): Likewise. | |
431 | (value_lazy): Likewise. | |
432 | (value_stack): Likewise. | |
433 | (value_embedded_offset): Likewise. | |
434 | (value_pointed_to_offset): Likewise. | |
435 | (value_raw_address): Likewise. | |
436 | (deprecated_value_modifiable): Likewise. | |
437 | (value_free_to_mark): Likewise. | |
438 | (value_release_to_mark): Likewise. | |
439 | (internalvar_name): Likewise. | |
440 | (readjust_indirect_value_type): Likewise. | |
441 | (value_initialized): Likewise. | |
442 | * value.h (value_next): Likewise. | |
443 | (value_parent): Likewise. | |
444 | (value_enclosing_type): Likewise. | |
445 | (value_lazy): Likewise. | |
446 | (value_stack): Likewise. | |
447 | (value_embedded_offset): Likewise. | |
448 | (value_pointed_to_offset): Likewise. | |
449 | (value_raw_address): Likewise. | |
450 | (deprecated_value_modifiable): Likewise. | |
451 | (value_free_to_mark): Likewise. | |
452 | (value_release_to_mark): Likewise. | |
453 | (internalvar_name): Likewise. | |
454 | (readjust_indirect_value_type): Likewise. | |
455 | (value_initialized): Likewise. | |
456 | ||
e390720b YQ |
457 | 2016-04-07 Yao Qi <yao.qi@linaro.org> |
458 | ||
459 | * record-full.c (record_full_insert_breakpoint): Return | |
460 | early if entry on the address is found in | |
461 | record_full_breakpoints. | |
462 | ||
1ccd06e4 YQ |
463 | 2016-04-07 Yao Qi <yao.qi@linaro.org> |
464 | ||
465 | * record-full.c (record_full_insert_breakpoint): Set | |
466 | bp_tgt->reqstd_address and bp_tgt->placed_size. | |
467 | ||
ecf2e90c DB |
468 | 2016-04-06 Don Breazeal <donb@codesourcery.com> |
469 | ||
470 | * value.c (value_actual_type): Don't try to get rtti type | |
471 | of the value if it has been optimized out. | |
472 | (value_optimized_out): If a memory access error occurs, | |
473 | just check vaue->optimized_out. | |
474 | ||
14731617 JK |
475 | 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
476 | ||
477 | Revert the previous commit adding unknown_v_replies_ok. | |
478 | ||
319cb5d0 JK |
479 | 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
480 | ||
481 | * remote.c (struct remote_state): New field unknown_v_replies_ok. | |
482 | (packet_config_support): Read it. | |
483 | (remote_start_remote): Set it. | |
484 | ||
052d2eb2 JK |
485 | 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
486 | ||
487 | * remote.c: Revert check-in by a mistake in the previous commit. | |
488 | ||
fef3cb9f JK |
489 | 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
490 | Pedro Alves <palves@redhat.com> | |
491 | ||
492 | * exec.c (exec_file_locate_attach): Print warning for unsupported | |
493 | target_pid_to_exec_file. | |
494 | * symfile-mem.c (add_vsyscall_page): Remove the "file" command | |
495 | message part. | |
496 | ||
2aa08bd1 SM |
497 | 2016-04-04 Simon Marchi <simon.marchi@ericsson.com> |
498 | ||
499 | * cli/cli-decode.c (help_cmd_list): Fix function doc and remove | |
500 | trailing spaces. | |
501 | ||
cc63428a AV |
502 | 2016-04-01 Artemiy Volkov <artemiyv@acm.org> |
503 | ||
504 | PR gdb/19820 | |
505 | * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be | |
506 | the type of BINOP_REPEAT's second operand. | |
507 | ||
9bb84c9f YY |
508 | 2016-03-31 Yichao Yu <yyc1992@gmail.com> |
509 | ||
510 | PR gdb/19858 | |
511 | * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already | |
512 | got the breakpoint at the right address. | |
513 | (jit_inferior_created): New function. | |
514 | (_initialize_jit): Install jit_inferior_created as | |
515 | inferior_created observer. | |
516 | ||
22084c42 MK |
517 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
518 | ||
519 | * NEWS: Mention support for tracepoints on powerpc*-linux. | |
520 | ||
e7ea3ec7 CU |
521 | 2016-03-31 Catalin Udma <catalin.udma@freescale.com> |
522 | ||
523 | PR python/19743 | |
524 | * python/python.c (execute_gdb_command): Use console uiout | |
525 | when executing gdb command. | |
526 | * utils.c (restore_ui_out_closure): New structure. | |
527 | (do_restore_ui_out): New function. | |
528 | (make_cleanup_restore_ui_out): Likewise. | |
529 | * utils.h (make_cleanup_restore_ui_out): Declare. | |
530 | ||
f7c38292 PA |
531 | 2016-03-31 Pedro Alves <palves@redhat.com> |
532 | ||
533 | * NEWS: Mention that support for "target m32rsdi", "target mips", | |
534 | "target pmon", "target ddb", "target rockhopper", and "target lsi" | |
535 | was removed. | |
536 | * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and | |
537 | remote-mips.o. | |
538 | (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c. | |
539 | * configure.tgt: Remove all references to remote-m32r-sdi.o and | |
540 | remote-mips.o. | |
541 | * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete | |
542 | function. | |
543 | * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete | |
544 | declaration. | |
545 | * remote-m32r-sdi.c, remote-mips.c: Delete files. | |
546 | * symfile.c (generic_load, generic_load): Remove comments. | |
547 | ||
fb3f3d25 YQ |
548 | 2016-03-30 Yao Qi <yao.qi@linaro.org> |
549 | ||
550 | * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against | |
551 | 0 rather than NULL. | |
552 | ||
779aa56f YQ |
553 | 2016-03-30 Yao Qi <yao.qi@linaro.org> |
554 | ||
555 | * arm-tdep.c: (arm_make_epilogue_frame_cache): New function. | |
556 | (arm_epilogue_frame_this_id): New function. | |
557 | (arm_epilogue_frame_prev_register): New function. | |
558 | (arm_epilogue_frame_sniffer): New function. | |
559 | (arm_epilogue_frame_unwind): New. | |
560 | (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind. | |
561 | ||
c58b006a YQ |
562 | 2016-03-30 Yao Qi <yao.qi@linaro.org> |
563 | ||
564 | * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ... | |
565 | (arm_stack_frame_destroyed_p_1): ... here. Don't call | |
566 | arm_pc_is_thumb. | |
567 | (arm_stack_frame_destroyed_p): Call | |
568 | thumb_stack_frame_destroyed_p and | |
569 | arm_stack_frame_destroyed_p_1. | |
570 | ||
4ae6cc19 DE |
571 | 2016-03-30 Doug Evans <dje@google.com> |
572 | ||
573 | * python/py-utils.c (host_string_to_python_string): New function. | |
574 | * python/python-internal.h (host_string_to_python_string): Declare it. | |
575 | * python/py-*.c (*): Update all calls to | |
576 | PyString_Decode (str, strlen (str), host_charset (), NULL); | |
577 | to use host_string_to_python_string instead. | |
578 | ||
28170b88 MK |
579 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
580 | ||
581 | * remote.c (remote_check_symbols): Allocate own buffer for reply. | |
582 | ||
a08b52b5 MF |
583 | 2016-03-29 Max Filippov <jcmvbkbc@gmail.com> |
584 | ||
585 | * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST. | |
586 | Use safe_read_memory_integer instead of read_memory_integer. | |
587 | ||
c37c0ba6 MK |
588 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
589 | ||
590 | * NEWS: Mention support for tracepoints on s390*-linux. | |
591 | ||
444bca65 DB |
592 | 2016-03-29 Don Breazeal <donb@codesourcery.com> |
593 | ||
594 | * gdb/value.c (value_actual_type): Fix formatting issue. | |
595 | ||
cc651c1c YQ |
596 | 2016-03-23 Yao Qi <yao.qi@linaro.org> |
597 | ||
598 | * gdbarch.sh (software_single_step): Remove comments. | |
599 | * gdbarch.h: Regenerated. | |
600 | ||
c55978a6 YQ |
601 | 2016-03-21 Yao Qi <yao.qi@linaro.org> |
602 | ||
603 | * arm-tdep.c (arm_record_media): New. | |
604 | (arm_record_ld_st_reg_offset): Call arm_record_media. | |
605 | ||
479fe002 YQ |
606 | 2016-03-21 Yao Qi <yao.qi@linaro.org> |
607 | ||
608 | * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize | |
609 | more syscalls. | |
610 | ||
9c3f2234 YQ |
611 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
612 | ||
613 | * sparc-tdep.c (sparc_software_single_step): Make it static. | |
614 | * sparc-tdep.h (sparc_software_single_step): Remove declaration. | |
615 | ||
941319d1 YQ |
616 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
617 | ||
618 | * spu-tdep.c (spu_software_single_step): Throw error when | |
619 | target_read_memory fails. | |
620 | ||
708bf0a1 JK |
621 | 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
622 | ||
623 | * linux-thread-db.c (check_pid_namespace_match): Extend the message. | |
624 | ||
0d5b594f PA |
625 | 2016-03-17 Pedro Alves <palves@redhat.com> |
626 | Don Breazeal <donb@codesourcery.com> | |
627 | ||
628 | PR remote/19496 | |
629 | * infcmd.c (notice_new_inferior): Use the 'leave_running' argument | |
630 | instead of checking the 'non_stop' global. | |
631 | * remote.c (remote_add_thread): New parameter 'executing'. Use it | |
632 | to set the new thread's executing state. | |
633 | (remote_notice_new_inferior): Rename parameter 'running' to | |
634 | 'executing'. Always set the thread state to THREAD_RUNNING in | |
635 | non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass | |
636 | EXECUTING to remote_add_thread and notice_new_inferior. | |
637 | (remote_update_thread_list): Update to pass executing state, not | |
638 | running state. | |
639 | ||
bba960fc AA |
640 | 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
641 | ||
642 | * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up | |
643 | to 374. | |
644 | * syscalls/s390x-linux.xml: Likewise. | |
645 | ||
5fd0888a AA |
646 | 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
647 | ||
648 | * linux-record.c (record_mem_at_reg): New helper function. | |
649 | (record_linux_system_call): Exploit new helper function where | |
650 | applicable. | |
651 | ||
0fc8f115 AA |
652 | 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
653 | ||
654 | * linux-record.c: Fix whitespace issues; tabify, remove trailing | |
655 | spaces. | |
656 | ||
afdab916 AA |
657 | 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com> |
658 | ||
659 | * linux-record.c (record_linux_system_call): Add missing return | |
660 | statements to handling of pipe and pipe2 syscalls. | |
661 | ||
bfeeb14b DE |
662 | 2016-03-16 Doug Evans <dje@google.com> |
663 | ||
664 | * xml-tdesc.c (tdesc_start_enum): Fix c++ build. | |
665 | ||
6b94a855 YQ |
666 | 2016-03-16 Yao Qi <yao.qi@linaro.org> |
667 | ||
668 | * arm-linux-tdep.c (arm_linux_init_abi): Fix | |
669 | arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and | |
670 | arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4, | |
671 | arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and | |
672 | arm_linux_record_tdep.arg7. | |
673 | ||
1cafadb4 DB |
674 | 2016-03-15 Keith Seitz <keiths@redhat.com> |
675 | ||
676 | PR breakpoints/18303 | |
677 | * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to | |
678 | look for "::" instead of simply ":". | |
679 | (cp_search_static_and_baseclasses): Return null_block_symbol for | |
680 | malformed input. | |
681 | Remove assertions. | |
682 | * cp-support.c (cp_find_first_component_aux): Do not return | |
683 | a prefix length for ':' unless the next character is also ':'. | |
684 | ||
89c200ed DE |
685 | 2016-03-15 Doug Evans <dje@google.com> |
686 | ||
687 | * features/aarch64-core.xml (cpsr_flags): New flags type. | |
688 | (cpsr): Use it. | |
689 | * features/aarch64.c: Regenerate. | |
690 | ||
49b7ae7b DE |
691 | 2016-03-15 Doug Evans <dje@google.com> |
692 | ||
693 | * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec. | |
694 | * features/i386/32bit-sse.xml (i386_eflags): Ditto. | |
695 | * features/i386/64bit-core.xml (i386_eflags): Ditto. | |
696 | * features/i386/64bit-sse.xml (i386_eflags): Ditto. | |
697 | * features/i386/x32-core.xml (i386_eflags): Ditto. | |
698 | ||
81516450 | 699 | 2016-03-15 Doug Evans <dje@google.com> |
79427bd2 | 700 | Wei-cheng Wang <cole945@gmail.com> |
81516450 DE |
701 | |
702 | Extend flags to support multibit and enum bitfields. | |
79427bd2 | 703 | * NEWS: Document new features. |
81516450 DE |
704 | * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS. |
705 | (c_type_print_varspec_suffix, c_type_print_base): Ditto. | |
706 | * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit. | |
707 | (append_flags_type_field): New function. | |
708 | (append_flags_type_flag): Call it. | |
709 | * gdbtypes.h (append_flags_type_field): Declare. | |
710 | * target-descriptions.c (struct tdesc_type_flag): Delete. | |
711 | (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value. | |
712 | (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto. | |
713 | (struct tdesc_type) <u.f>: Delete. | |
714 | (tdesc_predefined_types): Add "bool". | |
715 | (tdesc_predefined_type): New function. | |
716 | (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM. | |
717 | Update TDESC_TYPE_FLAGS support. | |
718 | (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS. | |
719 | (tdesc_create_flags): Update. | |
720 | (tdesc_create_enum): New function. | |
721 | (tdesc_add_field): Initialize start,end to -1. | |
722 | (tdesc_add_typed_bitfield): New function. | |
723 | (tdesc_add_bitfield): Call it. | |
724 | (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update. | |
725 | (tdesc_add_enum_value): New function. | |
726 | (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into | |
727 | TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM. | |
728 | * target-descriptions.h (tdesc_create_enum): Declare. | |
729 | (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare. | |
730 | * valprint.c (generic_val_print_enum_1): New function. | |
731 | (generic_val_print_enum): Call it. | |
732 | (val_print_type_code_flags): Make static. Handle multibit bitfields | |
733 | and enum bitfields. | |
734 | * valprint.h (val_print_type_code_flags): Delete. | |
735 | * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>: | |
736 | Delete. All uses removed. | |
737 | (tdesc_start_enum): New function. | |
738 | (tdesc_start_field): Handle multibit and enum bitfields. | |
739 | (tdesc_start_enum_value): New function. | |
740 | (enum_value_attributes, enum_children, enum_attributes): New static | |
741 | globals. | |
742 | (feature_children): Add "enum". | |
743 | * features/gdb-target.dtd (enum, evalue): New elements. | |
744 | ||
54157a25 DE |
745 | 2016-03-15 Doug Evans <dje@google.com> |
746 | ||
747 | * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type | |
748 | from LONGEST to int. | |
749 | (struct tdesc_type) <u.f.size>: Ditto. | |
750 | (tdesc_set_struct_size): Change type of "size" arg from LONGEST | |
751 | to int. Add assertion size > 0. | |
752 | (tdesc_create_flags): Ditto. | |
753 | * target-descriptions.h (tdesc_set_struct_size): Update. | |
754 | (tdesc_create_flags): Update. | |
755 | * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros. | |
756 | (MAX_VECTOR_SIZE): New macro. | |
757 | (tdesc_start_struct): Catch conversion errors from LONGEST to int. | |
758 | (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto. | |
759 | ||
73b4f516 DE |
760 | 2016-03-15 Doug Evans <dje@google.com> |
761 | ||
762 | * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for | |
763 | TYPE_CODE_FLAGS instead of "field_type", for consistency. | |
764 | * features/i386/amd64-avx-linux.c: Regenerate. | |
765 | * features/i386/amd64-avx.c: Regenerate. | |
766 | * features/i386/amd64-avx512-linux.c: Regenerate. | |
767 | * features/i386/amd64-avx512.c: Regenerate. | |
768 | * features/i386/amd64-linux.c: Regenerate. | |
769 | * features/i386/amd64-mpx-linux.c: Regenerate. | |
770 | * features/i386/amd64-mpx.c: Regenerate. | |
771 | * features/i386/amd64.c: Regenerate. | |
772 | * features/i386/i386-avx-linux.c: Regenerate. | |
773 | * features/i386/i386-avx.c: Regenerate. | |
774 | * features/i386/i386-avx512-linux.c: Regenerate. | |
775 | * features/i386/i386-avx512.c: Regenerate. | |
776 | * features/i386/i386-linux.c: Regenerate. | |
777 | * features/i386/i386-mmx-linux.c: Regenerate. | |
778 | * features/i386/i386-mmx.c: Regenerate. | |
779 | * features/i386/i386-mpx-linux.c: Regenerate. | |
780 | * features/i386/i386-mpx.c: Regenerate. | |
781 | * features/i386/i386.c: Regenerate. | |
782 | * features/i386/x32-avx-linux.c: Regenerate. | |
783 | * features/i386/x32-avx.c: Regenerate. | |
784 | * features/i386/x32-avx512-linux.c: Regenerate. | |
785 | * features/i386/x32-avx512.c: Regenerate. | |
786 | * features/i386/x32-linux.c: Regenerate. | |
787 | * features/i386/x32.c: Regenerate. | |
788 | ||
1eb2dbb8 PA |
789 | 2016-03-15 Pedro Alves <palves@redhat.com> |
790 | ||
791 | PR gdb/19676 | |
792 | * linux-thread-db.c (try_thread_db_load_1): Leave | |
793 | info->td_ta_thr_iter_p NULL iff debugging a live process and we | |
794 | have /proc access. | |
795 | (find_new_threads_once): Assert that we have a non-NULL | |
796 | info->td_ta_thr_iter_p instead of checking whether the target has | |
797 | execution. | |
798 | ||
16b41842 PA |
799 | 2016-03-15 Pedro Alves <palves@redhat.com> |
800 | ||
801 | PR gdb/19676 | |
802 | * infrun.c (displaced_step_prepare): Also disable displaced | |
803 | stepping on NOT_SUPPORTED_ERROR. | |
804 | * linux-tdep.c (linux_displaced_step_location): If reading auxv | |
805 | fails, throw NOT_SUPPORTED_ERROR instead of generic error. | |
806 | ||
70104a90 MK |
807 | 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net> |
808 | ||
809 | * s390-linux-tdep.c (s390_gen_return_address): New function. | |
810 | (s390_gdbarch_init): Fill gen_return_address hook. | |
811 | ||
f2403c39 AB |
812 | 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
813 | ||
814 | * symmisc.c (maintenance_info_line_tables): New function. | |
815 | (maintenance_print_one_line_table): New function. | |
816 | (_initialize_symmisc): Register 'maint info line-table' command. | |
817 | * NEWS: Mention new command. | |
818 | ||
c4b3e547 MK |
819 | 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net> |
820 | ||
821 | * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function. | |
822 | (s390_ax_pseudo_register_push_stack): New function. | |
823 | (s390_gdbarch_init): Fill ax_pseudo_register_collect and | |
824 | ax_pseudo_register_push_stack hooks. | |
825 | ||
f2f3ccb9 SM |
826 | 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca> |
827 | ||
828 | * data-directory/Makefile.in (PYTHON_FILE_LIST): Install | |
829 | gdb/function/as_string.py. | |
830 | * python/lib/gdb/function/as_string.py: New file. | |
831 | * NEWS: Mention the new $_as_string function. | |
832 | ||
2343b78a JM |
833 | 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com> |
834 | ||
835 | * target.h: Fix doc string of target_can_use_hardware_watchpoint. | |
836 | ||
b69d38af PA |
837 | 2016-03-09 Pedro Alves <palves@redhat.com> |
838 | ||
839 | * event-top.c (more_to_come): Delete. | |
840 | (struct readline_input_state): Delete. | |
841 | (readline_input_state): Delete. | |
842 | (get_command_line_buffer): New function. | |
843 | (command_handler): Update comments. Don't handle NULL commands | |
844 | here. Do not execute commented lines. | |
845 | (command_line_append_input_line): New function. | |
846 | (handle_line_of_input): New function, partly based on | |
847 | command_line_handler and command_line_input. | |
848 | (command_line_handler): Rewrite. | |
849 | * event-top.h (command_handler): New declaration. | |
850 | (command_loop): Defer command execution to command_handler. | |
851 | (command_line_input): Update comments. Simplify, using struct | |
852 | buffer and handle_line_of_input. | |
853 | * top.h (struct buffer): New forward declaration. | |
854 | (handle_line_of_input): New declaration. | |
855 | ||
2669cade PA |
856 | 2016-03-09 Pedro Alves <palves@redhat.com> |
857 | ||
858 | * event-top.c (command_line_handler): Use xfree + xstrdup instead | |
859 | of xrealloc + strcpy. | |
860 | * main.c (captured_main): Use xstrdup instead of xmalloc plus | |
861 | manual clear. | |
862 | * top.c (saved_command_line): Rewrite comment. | |
863 | (saved_command_line_size): Delete. | |
864 | (command_line_input): Use xfree + xstrdup instead of xrealloc + | |
865 | strcpy. | |
866 | * top.h (saved_command_line_size): Delete declaration. | |
867 | ||
187212b3 PA |
868 | 2016-03-09 Pedro Alves <palves@redhat.com> |
869 | ||
870 | * event-top.c: Include buffer.h. | |
871 | (gdb_readline_no_editing_callback): Use struct buffer instead | |
872 | of xrealloc. | |
873 | ||
7a3bde34 PA |
874 | 2016-03-09 Pedro Alves <palves@redhat.com> |
875 | ||
876 | * common/buffer.h (buffer_grow_char): New function. | |
877 | * top.c: Include buffer.h. | |
878 | (gdb_readline_no_editing): Rename 'prompt_arg' parameter to | |
879 | 'prompt'. Use struct buffer instead of xrealloc. | |
880 | ||
c5c136ea PA |
881 | 2016-03-09 Pedro Alves <palves@redhat.com> |
882 | ||
883 | * defs.h (gdb_readline): Delete declaration. | |
884 | * top.c (gdb_readline): Rename to ... | |
885 | (gdb_readline_no_editing): ... this, and make static. | |
886 | ||
720d2e96 PA |
887 | 2016-03-09 Pedro Alves <palves@redhat.com> |
888 | ||
889 | * utils.c (prompt_for_continue): Update comments. | |
890 | ||
608ff013 PA |
891 | 2016-03-09 Pedro Alves <palves@redhat.com> |
892 | ||
893 | * event-top.c (async_annotation_suffix): Delete. | |
894 | (top_level_prompt, command_line_handler): Don't use | |
895 | 'async_annotation_suffix' and simplify. | |
896 | * event-top.h (async_annotation_suffix): Delete declaration. | |
897 | (init_main): Remove reference to 'async_annotation_suffix'. | |
898 | ||
c70061cf PA |
899 | 2016-03-09 Pedro Alves <palves@redhat.com> |
900 | ||
901 | * event-top.c (gdb_readline2): Rename to ... | |
902 | (gdb_readline_no_editing_callback): ... this. | |
903 | (change_line_handler, stdin_event_handler) | |
904 | (gdb_setup_readline): Adjust. | |
905 | * event-top.h (gdb_readline2): Rename to ... | |
906 | (gdb_readline_no_editing_callback): ... this, and move closer to | |
907 | other readline-related declarations. | |
908 | * mi/mi-interp.c (mi_interpreter_resume): Adjust. | |
909 | ||
8a243832 PA |
910 | 2016-03-09 Pedro Alves <palves@redhat.com> |
911 | ||
912 | * top.c (window_hook): Delete. | |
913 | (command_loop): Remove references to window_hook. | |
914 | ||
cc2c4da8 MK |
915 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
916 | ||
917 | * corefile.c (safe_read_memory_unsigned_integer): New function. | |
918 | * gdbcore.h (safe_read_memory_unsigned_integer): New prototype. | |
919 | * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned. | |
920 | ||
a67914de MK |
921 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
922 | ||
923 | * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes. | |
924 | (rs6000_gen_return_address): New function. | |
925 | (rs6000_gdbarch_init): Wire in the above. | |
926 | ||
2a2fa07b MK |
927 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
928 | ||
929 | * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function. | |
930 | (rs6000_gdbarch_init): Wire in the above. | |
931 | ||
bc0e3f49 AA |
932 | 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
933 | ||
934 | * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL | |
935 | instructions that do nothing or are conditional traps. | |
936 | ||
6d53bec8 AA |
937 | 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
938 | ||
939 | * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store | |
940 | frame func's PC in info->func before any other failure can occur. | |
941 | (s390_frame_this_id): Use frame_id_build_unavailable_stack if | |
942 | info->func has been filled out. | |
943 | ||
f7990f16 PA |
944 | 2016-03-09 Pedro Alves <palves@redhat.com> |
945 | ||
946 | * osabi.c (gdb_osabi_names): Avoid spaces in osabi names. | |
947 | ||
087ccc6a PA |
948 | 2016-03-09 Pedro Alves <palves@redhat.com> |
949 | ||
950 | * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300. | |
951 | ||
114d7832 PA |
952 | 2016-03-09 Pedro Alves <palves@redhat.com> |
953 | ||
954 | * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte | |
955 | order is BFD_ENDIAN_BIG or if the cris version is unsupported. | |
956 | ||
d7a87b5e PA |
957 | 2016-03-09 Pedro Alves <palves@redhat.com> |
958 | ||
959 | * doublest.c: Extend comments. | |
960 | (floatformat_to_doublest, floatformat_from_doublest): Copy the | |
961 | floatformat's total size, not the host type's size. | |
962 | ||
b79497cb PA |
963 | 2016-03-09 Pedro Alves <palves@redhat.com> |
964 | ||
965 | * doublest.c (floatformat_totalsize_bytes): New function. | |
966 | (floatformat_from_type): Assert that the type's length is at least | |
967 | as long as the floatformat's totalsize. | |
968 | * doublest.h (floatformat_totalsize_bytes): New declaration. | |
969 | * gdbtypes.c (arch_float_type): Assert that the type's length is | |
970 | at least as long as the floatformat's totalsize. | |
971 | ||
aacca8a7 PA |
972 | 2016-03-09 Pedro Alves <palves@redhat.com> |
973 | ||
974 | * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double | |
975 | format to floatformats_ieee_double. | |
976 | ||
e6c2f47b PA |
977 | 2016-03-07 Pedro Alves <palves@redhat.com> |
978 | ||
979 | * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL | |
980 | before calling bfd_get_flavour. | |
981 | ||
cb86f388 DC |
982 | 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com> |
983 | ||
984 | * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define. | |
985 | (avr_push_dummy_call): Correct last needed argument register. | |
986 | Write MSB of argument into register and subsequent bytes into | |
987 | other registers in decreasing order. | |
988 | ||
f1771dce YQ |
989 | 2016-03-04 Yao Qi <yao.qi@linaro.org> |
990 | ||
991 | * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the | |
992 | condition check. Record the right D register number. | |
993 | ||
ca92db2d YQ |
994 | 2016-03-04 Yao Qi <yao.qi@linaro.org> |
995 | ||
996 | * arm-tdep.c (arm_record_extension_space): Remove code | |
997 | printing "Process record does not support". | |
998 | (arm_record_data_proc_misc_ld_str): Likewise. | |
999 | (decode_insn): Call arm_record_extension_space if condition | |
1000 | is 0xf. Call arm_record_unsupported_insn if ret isn't | |
1001 | ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold | |
1002 | the value of thumb2_record_decode_insn_handler. | |
1003 | ||
73519cce SM |
1004 | 2016-03-04 Simon Marchi <simon.marchi@ericsson.com> |
1005 | ||
1006 | * features/feature_to_c.sh: Print the help when passing no | |
1007 | argument. | |
1008 | ||
650beae3 BH |
1009 | 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com> |
1010 | ||
1011 | * MAINTAINERS (Write After Approval): Add Bernhard Heckel. | |
1012 | ||
28586665 BH |
1013 | 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com> |
1014 | ||
1015 | * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers. | |
1016 | ||
f2489477 AA |
1017 | 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1018 | ||
1019 | * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid | |
1020 | exception when attempting to access the inferior's backchain. | |
1021 | ||
d5219069 YQ |
1022 | 2016-02-29 Yao Qi <yao.qi@linaro.org> |
1023 | ||
1024 | * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support | |
1025 | eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2. | |
1026 | Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create | |
1027 | for aarch64_sys_epoll_create1. | |
1028 | ||
253b4d3a YQ |
1029 | 2016-02-29 Yao Qi <yao.qi@linaro.org> |
1030 | ||
1031 | * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New. | |
1032 | <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New. | |
1033 | <gdb_sys_pipe2, gdb_sys_inotify_init1>: New. | |
1034 | * linux-record.c (record_linux_system_call): Handle them. | |
1035 | ||
38899f16 IB |
1036 | 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org> |
1037 | ||
1038 | * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from | |
1039 | cyclic imports. | |
1040 | ||
1ed0c2a4 KS |
1041 | 2016-02-26 Keith Seitz <keiths@redhat.com> |
1042 | ||
1043 | * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result | |
1044 | to avoid invalid conversion from void *. | |
1045 | ||
9fde51ed YQ |
1046 | 2016-02-26 Yao Qi <yao.qi@linaro.org> |
1047 | ||
1048 | * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg' | |
1049 | per bit 8. Check bit 20 instead of bit 4 for VMOV | |
1050 | instruction. Record D registers for instructions changing | |
1051 | S registers. Change of the order of length and address | |
1052 | in record_buf_mem array. | |
1053 | ||
1f33efec YQ |
1054 | 2016-02-26 Yao Qi <yao.qi@linaro.org> |
1055 | ||
1056 | * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register | |
1057 | number of Rd. | |
1058 | ||
1547ef64 DE |
1059 | 2016-02-25 Doug Evans <dje@google.com> |
1060 | ||
1061 | * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid | |
1062 | compiler warning. | |
1063 | (recv_long_data): Ditto. | |
1064 | ||
166616ce SM |
1065 | 2016-02-25 Simon Marchi <simon.marchi@ericsson.com> |
1066 | ||
1067 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): | |
1068 | Initialize variables. | |
1069 | ||
1eb7c2d8 AT |
1070 | 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1071 | ||
1072 | * ax-general.c (ax_reg): Call gdbarch_remote_register_number. | |
1073 | (ax_reg_mask): Likewise. | |
1074 | ||
e7ad2f14 PA |
1075 | 2016-02-24 Pedro Alves <palves@redhat.com> |
1076 | ||
1077 | * linux-nat.c (save_sigtrap) Delete. | |
1078 | (stop_wait_callback): Call save_stop_reason instead of | |
1079 | save_sigtrap. | |
1080 | (check_stopped_by_breakpoint): Rename to ... | |
1081 | (save_stop_reason): ... this. Bits of save_sigtrap folded here. | |
1082 | Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous | |
1083 | GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out | |
1084 | common code between the USE_SIGTRAP_SIGINFO and | |
1085 | !USE_SIGTRAP_SIGINFO blocks. | |
1086 | (linux_nat_filter_event): Call save_stop_reason instead of | |
1087 | save_sigtrap. | |
1088 | * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT | |
1089 | si_code for MIPS. | |
1090 | * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add | |
1091 | comments on MIPS behavior. | |
1092 | (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs. | |
1093 | ||
338435ef MK |
1094 | 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net> |
1095 | ||
1096 | * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0 | |
1097 | to avoid spurious warnings. | |
1098 | ||
bf74e428 GB |
1099 | 2016-02-24 Gary Benson <gbenson@redhat.com> |
1100 | ||
1101 | * exec.c (exec_file_locate_attach): Do not attempt to | |
1102 | locate main executable locally if not found in sysroot. | |
1103 | ||
62fb310b JB |
1104 | 2016-02-24 Joel Brobecker <brobecker@adacore.com> |
1105 | ||
1106 | GDB 7.11 released. | |
1107 | ||
50ae56ec WW |
1108 | 2016-02-24 Wei-cheng Wang <cole945@gmail.com> |
1109 | ||
1110 | * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle | |
1111 | unavailable PC/SP to build unavailable frame. | |
1112 | ||
cce0e923 DE |
1113 | 2016-02-23 Doug Evans <dje@google.com> |
1114 | ||
1115 | Extend "skip" command to support -file, -gfile, -function, -rfunction. | |
1116 | * NEWS: Document new features. | |
1117 | * skip.c: #include "fnmatch.h", "gdb_regex.h". | |
1118 | (skiplist_entry) <file>: Renamed from filename. | |
1119 | <function>: Renamed from function_name. | |
1120 | <file_is_glob, function_is_regexp>: New members. | |
1121 | <compiled_function_regexp, compiled_function_regexp_is_valid>: | |
1122 | New members. | |
1123 | (make_skip_entry): New function. | |
1124 | (free_skiplist_entry, free_skiplist_entry_cleanup): New functions. | |
1125 | (make_free_skiplist_entry_cleanup): New function. | |
1126 | (skip_file_command): Update. | |
1127 | (skip_function, skip_function_command): Update. | |
1128 | (compile_skip_regexp): New functions. | |
1129 | (skip_command): Add support for new options. | |
1130 | (skip_info): Update. | |
1131 | (skip_file_p, skip_gfile_p): New functions. | |
1132 | (skip_function_p, skip_rfunction_p): New functions. | |
1133 | (function_name_is_marked_for_skip): Update and simplify. | |
1134 | (_initialize_step_skip): Update. | |
1135 | * symtab.c: #include "fnmatch.h". | |
1136 | (compare_glob_filenames_for_search): New function. | |
1137 | * symtab.h (compare_glob_filenames_for_search): Declare. | |
1138 | * utils.c (count_path_elements): New function. | |
1139 | (strip_leading_path_elements): New function. | |
1140 | * utils.h (count_path_elements): Declare. | |
1141 | (strip_leading_path_elements): Declare. | |
1142 | ||
12545665 SM |
1143 | 2016-02-23 Simon Marchi <simon.marchi@ericsson.com> |
1144 | ||
1145 | * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter. | |
1146 | (thumb_process_displaced_insn): Likewise. | |
1147 | (arm_process_displaced_insn): Adjust calls. | |
1148 | ||
c955ae73 YQ |
1149 | 2016-02-23 Yao Qi <yao.qi@linaro.org> |
1150 | ||
1151 | * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>: | |
1152 | Remove. | |
1153 | <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove. | |
1154 | <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove. | |
1155 | <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New. | |
1156 | <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New. | |
1157 | <aarch64_sys_linkat, aarch64_sys_renameat>: New. | |
1158 | <aarch64_sys_faccessat>: New. | |
1159 | <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove. | |
1160 | <aarch64_sys_openat, aarch64_sys_readlinkat>: New. | |
1161 | <aarch64_sys_newfstatat>: New. | |
1162 | (UNSUPPORTED_SYSCALL_MAP): New macro. | |
1163 | (aarch64_canonicalize_syscall): Add missing syscalls. | |
1164 | ||
ac46107c JK |
1165 | 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1166 | ||
1167 | * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print. | |
1168 | ||
01e57735 YQ |
1169 | 2016-02-22 Yao Qi <yao.qi@linaro.org> |
1170 | ||
1171 | * arm-tdep.c: Fix code format issues. | |
1172 | ||
30a6a7f0 IB |
1173 | 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org> |
1174 | ||
1175 | * d-namespace.c (d_lookup_symbol_imports): Remove argument | |
1176 | 'search_parents'. All callers updated. | |
1177 | ||
f79a3bae MK |
1178 | 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net> |
1179 | ||
1180 | * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function. | |
1181 | (s390_gdbarch_init): Fill guess_tracepoint_registers hook. | |
1182 | ||
012b3a21 WT |
1183 | 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1184 | ||
1185 | * NEWS: Add entry for bound violation. | |
1186 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): | |
1187 | Add handler for segmentation fault. | |
1188 | * gdbarch.sh (handle_segmentation_fault): New. | |
1189 | * gdbarch.c: Regenerate. | |
1190 | * gdbarch.h: Regenerate. | |
1191 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New. | |
1192 | (SIG_CODE_BONDARY_FAULT): New define. | |
1193 | (i386_linux_init_abi): Use i386_mpx_bound_violation_handler. | |
1194 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New. | |
1195 | * i386-tdep.c (i386_mpx_enabled): Add as external. | |
1196 | * i386-tdep.c (i386_mpx_enabled): Add as external. | |
1197 | * infrun.c (handle_segmentation_fault): New function. | |
1198 | (print_signal_received_reason): Use handle_segmentation_fault. | |
1199 | ||
5f034a78 MK |
1200 | 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net> |
1201 | ||
1202 | * arch-utils.c (default_guess_tracepoint_registers): New function. | |
1203 | * arch-utils.h (default_guess_tracepoint_registers): New prototype. | |
1204 | * gdbarch.c: Regenerate. | |
1205 | * gdbarch.h: Regenerate. | |
1206 | * gdbarch.sh: Add guess_tracepoint_registers hook. | |
1207 | * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook. | |
1208 | ||
88178e82 GB |
1209 | 2016-02-17 Gary Benson <gbenson@redhat.com> |
1210 | ||
1211 | * exec.c (exec_file_locate_attach): Add missing cleanup. | |
1212 | ||
4041ed77 DB |
1213 | 2016-02-16 Don Breazeal <donb@codesourcery.com> |
1214 | ||
1215 | PR remote/19496 | |
1216 | * remote.c (remove_new_fork_children): Check for pending | |
1217 | fork status in thread_info.suspend. | |
1218 | ||
b442c911 YQ |
1219 | 2016-02-16 Yao Qi <yao.qi@linaro.org> |
1220 | ||
1221 | * arm-linux-tdep.c (arm_linux_software_single_step): Assign | |
1222 | 'old_chain' later. | |
1223 | ||
553cb527 YQ |
1224 | 2016-02-16 Yao Qi <yao.qi@linaro.org> |
1225 | ||
1226 | * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops) | |
1227 | <syscall_next_pc>: Remove argument PC. Callers updated. | |
1228 | * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): | |
1229 | Remove argument PC. Get pc from regcache_read_pc. | |
1230 | * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove | |
1231 | argument PC. | |
1232 | ||
0a0da556 YQ |
1233 | 2016-02-15 Yao Qi <yao.qi@linaro.org> |
1234 | ||
1235 | * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x". | |
1236 | ||
01113bc1 YQ |
1237 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
1238 | ||
1239 | * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate | |
1240 | nextpc according to instruction. | |
1241 | ||
ed443b61 YQ |
1242 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
1243 | ||
1244 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call | |
1245 | self->ops->fixup if it isn't NULL. | |
1246 | * arch/arm-get-next-pcs.h: Include gdb_vecs.h. | |
1247 | (struct arm_get_next_pcs_ops) <fixup>: New field. | |
1248 | * arch/arm-linux.c: Include common-regcache.h and | |
1249 | arch/arm-get-next-pcs.h. | |
1250 | (arm_linux_get_next_pcs_fixup): New function. | |
1251 | * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare. | |
1252 | * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize | |
1253 | it with arm_linux_get_next_pcs_fixup. | |
1254 | (arm_linux_software_single_step): Move code to | |
1255 | arm_linux_get_next_pcs_fixup. | |
1256 | * arm-tdep.c (arm_get_next_pcs_ops): Initialize it. | |
1257 | ||
d21b5f15 MK |
1258 | 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net> |
1259 | ||
1260 | * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn | |
1261 | and return NULL. | |
1262 | ||
33b4777c MM |
1263 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
1264 | ||
1265 | * frame.h (skip_tailcall_frames): Update comment. | |
1266 | * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL | |
1267 | if only artificial frames are found. Update comment. | |
1268 | (frame_unwind_caller_id): Handle NULL return. | |
1269 | (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that | |
1270 | skip_artificial_frames does not return NULL. | |
1271 | (frame_pop): Add an error if only tailcall frames are found. | |
1272 | * infcmd.c (finish_command): Move skip_tailcall_frames call into | |
1273 | forward-execution case. Add an error if only tailcall frames are | |
1274 | found. | |
1275 | ||
a038fa3e MM |
1276 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
1277 | ||
1278 | * stack.c (frame_info): Check frame_unwind_caller_id. | |
1279 | ||
2f3ef606 MM |
1280 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
1281 | ||
1282 | * frame.h (skip_tailcall_frames): New. | |
1283 | * frame.c (skip_tailcall_frames): New. | |
1284 | (frame_pop): Call skip_tailcall_frames. | |
1285 | * infcmd.c (finish_command): Call skip_tailcall_frames. | |
1286 | ||
e352bf0a PA |
1287 | 2016-02-11 Pedro Alves <palves@redhat.com> |
1288 | ||
1289 | * Makefile.in (check-parallel): New rule. | |
1290 | ||
bec2ab5a SM |
1291 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
1292 | ||
1293 | * arm-tdep.c (arm_skip_prologue): Remove unused variables. | |
1294 | (arm_analyze_prologue): Likewise. | |
1295 | (arm_scan_prologue): Likewise. | |
1296 | (arm_m_exception_prev_register): Likewise. | |
1297 | (arm_copy_block_xfer): Likewise. | |
1298 | (thumb2_copy_block_xfer): Likewise. | |
1299 | (arm_decode_miscellaneous): Likewise. | |
1300 | (arm_decode_ld_st_word_ubyte): Likewise. | |
1301 | (arm_decode_svc_copro): Likewise. | |
1302 | (thumb2_decode_svc_copro): Likewise. | |
1303 | (thumb_copy_16bit_ldr_literal): Likewise. | |
1304 | (thumb_copy_pop_pc_16bit): Likewise. | |
1305 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
1306 | (arm_show_force_mode): Likewise. | |
1307 | (_initialize_arm_tdep): Likewise. | |
1308 | (arm_record_strx): Likewise. | |
1309 | (arm_record_extension_space): Likewise. | |
1310 | (arm_record_data_proc_misc_ld_str): Likewise. | |
1311 | (arm_record_exreg_ld_st_insn): Likewise. | |
1312 | (arm_record_vfp_data_proc_insn): Likewise. | |
1313 | (arm_record_coproc_data_proc): Likewise. | |
1314 | (thumb_record_misc): Likewise. | |
1315 | (thumb_record_ldm_stm_swi): Likewise. | |
1316 | (thumb2_record_ld_st_dual_ex_tbb): Likewise. | |
1317 | (thumb2_record_ld_mem_hints): Likewise. | |
1318 | (thumb2_record_lmul_lmla_div): Likewise. | |
1319 | (thumb2_record_asimd_struct_ld_st): Likewise. | |
1320 | (arm_process_record): Likewise. | |
1321 | ||
2ba163c8 SM |
1322 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
1323 | ||
1324 | * arm-tdep.c (arm_displaced_step_copy_insn): Remove. | |
1325 | (ARM displaced stepping support): Remove reference to | |
1326 | arm_displaced_step_copy_insn in comment. | |
1327 | * arm-tdep.h (arm_displaced_step_copy_insn): Remove. | |
1328 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove | |
1329 | reference to arm_displaced_step_copy_insn in comment. | |
1330 | ||
615234c1 SM |
1331 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
1332 | ||
1333 | * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn. | |
1334 | (thumb_copy_b): Likewise. | |
1335 | (arm_decode_b_bl_ldmstm): Likewise. | |
1336 | (thumb_copy_16bit_ldr_literal): Likewise. | |
1337 | (thumb_copy_pop_pc_16bit): Likewise. | |
1338 | ||
82e9becd AT |
1339 | 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1340 | ||
1341 | * tracepoint.c (encode_actions_1): Use target_gdbarch () rather | |
1342 | than loc->gdbarch. | |
1343 | ||
5ac87a99 MK |
1344 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
1345 | ||
1346 | * tracefile-tfile.c (trace_tdesc): New static variable. | |
1347 | (tfile_open): Clear trace_tdesc, call target_find_description. | |
1348 | (tfile_interp_line): Recognize tdesc lines. | |
1349 | (tfile_close): Clear trace_tdesc. | |
1350 | (tfile_xfer_partial_features): New function. | |
1351 | (tfile_xfer_partial): Call tfile_xfer_partial_features. | |
1352 | (tfile_append_tdesc_line): New function. | |
1353 | ||
18d3cec5 MK |
1354 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
1355 | ||
1356 | * ctf.c (ctf_write_tdesc): New function. | |
1357 | (ctf_write_ops): Wire in ctf_write_tdesc. | |
1358 | * tracefile-tfile.c (tfile_write_tdesc): New function. | |
1359 | (tfile_write_ops): Wire in tfile_write_tdesc. | |
1360 | * tracefile.c (trace_save): Call write_tdesc method. | |
1361 | * tracefile.h (struct trace_file_write_ops): Add write_tdesc method. | |
1362 | * xml-tdesc.c (target_fetch_description_xml): New function. | |
1363 | * xml-tdesc.h: Add target_fetch_description_xml prototype. | |
1364 | ||
550dc4e2 SM |
1365 | 2016-02-10 Simon Marchi <simon.marchi@ericsson.com> |
1366 | ||
1367 | * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo. | |
1368 | (arm_decode_dp_misc): Likewise. | |
1369 | ||
62e5fd57 MK |
1370 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
1371 | ||
1372 | * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function. | |
1373 | (amd64_init_abi): Fill ax_pseudo_register_collect hook. | |
1374 | * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove | |
1375 | misleading comment. | |
1376 | (i386_pseudo_register_write): Ditto. | |
1377 | (i386_ax_pseudo_register_collect): New function. | |
1378 | (i386_gdbarch_init): Fill ax_pseudo_register_collect hook. | |
1379 | * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype. | |
1380 | ||
e909d859 MK |
1381 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
1382 | ||
1383 | * tracefile-tfile.c (tfile_fetch_registers): Use g packet order | |
1384 | instead of gdb order. | |
1385 | ||
473b99e5 MK |
1386 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
1387 | ||
1388 | * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds | |
1389 | check. | |
1390 | ||
1233c0ba JB |
1391 | 2016-02-10 Joel Brobecker <brobecker@adacore.com> |
1392 | ||
1393 | * NEWS: Create a new section for the next release branch. | |
1394 | Rename the section of the current branch, now that it has | |
1395 | been cut. | |
1396 | ||
d1dc0942 JB |
1397 | 2016-02-10 Joel Brobecker <brobecker@adacore.com> |
1398 | ||
1399 | GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a): | |
1400 | * version.in: Bump version to 7.11.50.DATE-git. | |
1401 | ||
9ef9e6a6 KS |
1402 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
1403 | ||
1404 | PR breakpoints/19546 | |
1405 | * breakpoint.c (breakpoint_event_location_empty_p): New function. | |
1406 | (update_breakpoints_after_exec, bkpt_re_set): Use this new function | |
1407 | instead of event_location_empty_p. | |
1408 | ||
39a67dc4 KS |
1409 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
1410 | ||
1411 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use | |
1412 | string_to_event_location_basic instead of string_to_event_location. | |
1413 | ||
a96e36da KS |
1414 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
1415 | ||
1416 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip | |
1417 | leading whitespace and use string_to_event_location_basic instead | |
1418 | of new_linespec_location. | |
1419 | ||
9f61929f KS |
1420 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
1421 | ||
1422 | PR python/19506 | |
1423 | * python/py-breakpoint.c (bppy_init): Use | |
1424 | string_to_event_location_basic instead of new_linespec_location. | |
1425 | ||
eeb1af43 KS |
1426 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
1427 | ||
1428 | * location.c (string_to_explicit_location): Note that "-p" is | |
1429 | reserved for probe locations and return NULL for any input | |
1430 | that starts with that. | |
1431 | (string_to_event_location): Move "legacy" linespec code to ... | |
1432 | (string_to_event_location_basic): ... here. | |
1433 | * location.h (string_to_event_location): Update comment. | |
1434 | (string_to_event_location_basic): New function. | |
1435 | ||
1e94266c SM |
1436 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
1437 | ||
1438 | * configure.ac: Use AC_CONFIG_FILES instead of passing arguments | |
1439 | to AC_OUTPUT. Remove "exit 0" at the end. | |
1440 | * configure: Regenerate. | |
1441 | ||
2a7f3dff PA |
1442 | 2016-02-09 Pedro Alves <palves@redhat.com> |
1443 | ||
1444 | PR breakpoints/19548 | |
1445 | * breakpoint.c (create_overlay_event_breakpoint): Don't update | |
1446 | global location list here. | |
1447 | (create_longjmp_master_breakpoint) | |
1448 | (create_std_terminate_master_breakpoint) | |
1449 | (create_exception_master_breakpoint, create_jit_event_breakpoint) | |
1450 | (update_breakpoint_locations): | |
1451 | (breakpoint_re_set): Update global location list after all | |
1452 | breakpoints are re-set. | |
1453 | ||
54887903 SM |
1454 | 2016-02-08 Simon Marchi <simon.marchi@ericsson.com> |
1455 | ||
1456 | * remote.c (remote_register_number_and_offset): Remove unused | |
1457 | variable(s). | |
1458 | (remote_thread_always_alive): Likewise. | |
1459 | (remote_update_thread_list): Likewise. | |
1460 | (process_initial_stop_replies): Likewise. | |
1461 | (remote_start_remote): Likewise. | |
1462 | (remote_check_symbols): Likewise. | |
1463 | (discard_pending_stop_replies): Likewise. | |
1464 | (process_stop_reply): Likewise. | |
1465 | (putpkt_binary): Likewise. | |
1466 | (getpkt): Likewise. | |
1467 | (remote_add_target_side_condition): Likewise. | |
1468 | (remote_insert_breakpoint): Likewise. | |
1469 | (remote_supports_stopped_by_sw_breakpoint): Likewise. | |
1470 | (remote_supports_stopped_by_hw_breakpoint): Likewise. | |
1471 | (remote_xfer_partial): Likewise. | |
1472 | (remote_read_btrace): Likewise. | |
1473 | (remote_async_serial_handler): Likewise. | |
1474 | (remote_thread_events): Likewise. | |
1475 | (_initialize_remote): Likewise. | |
1476 | ||
30914ca8 SM |
1477 | 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca> |
1478 | ||
1479 | * varobj.h (varobj_delete): Remove dellist parameter, update and | |
1480 | move documentation here. | |
1481 | * varobj.c (struct cpstack, cppush, cppop): Remove. | |
1482 | (delete_variable): Remove resultp (first) parameter. | |
1483 | (delete_variable_1): Likewise. | |
1484 | (varobj_delete): Remove dellist parameter and unused code. | |
1485 | (update_dynamic_varobj_children): Adjust varobj_delete call. | |
1486 | (update_type_if_necessary): Likewise. | |
1487 | (varobj_set_visualizer): Likewise. | |
1488 | (varobj_update): Likewise. | |
1489 | (value_of_root): Likewise. | |
1490 | (varobj_invalidate_iter): Likewise. | |
1491 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise. | |
1492 | ||
e42e5352 YQ |
1493 | 2016-02-04 Yao Qi <yao.qi@linaro.org> |
1494 | ||
1495 | * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to | |
1496 | 0 before handling 'F' and set it back afterwards. | |
1497 | ||
6456a18b SM |
1498 | 2016-02-02 Simon Marchi <simon.marchi@ericsson.com> |
1499 | ||
1500 | * ui-out.c (MAX_UI_OUT_LEVELS): Remove. | |
1501 | ||
3f2f6cb5 WT |
1502 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1503 | ||
1504 | * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval): | |
1505 | New types. | |
1506 | (compat_siginfo): New bound fields added. | |
1507 | (compat_x32_siginfo): New field added. | |
1508 | (cpt_si_addr_lsb): New define. | |
1509 | (compat_siginfo_from_siginfo): Use nat_siginfo. | |
1510 | (siginfo_from_compat_siginfo): Use nat_siginfo. | |
1511 | (compat_x32_siginfo_from_siginfo): Likewise. | |
1512 | (siginfo_from_compat_x32_siginfo): Likewise. | |
1513 | ||
96b5c49f WT |
1514 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1515 | ||
1516 | * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd | |
1517 | structure to the siginfo if extra_fields contains | |
1518 | LINUX_SIGINFO_FIELD_ADDR_BND. | |
1519 | ||
190b495d WT |
1520 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1521 | ||
1522 | * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern. | |
1523 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern. | |
1524 | * i386-linux-tdep.h (x86_linux_get_siginfo_type): New | |
1525 | function. | |
1526 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add | |
1527 | x86_linux_get_siginfo_type for the amd64 abi. | |
1528 | * i386-linux-tdep.c (x86_linux_get_siginfo_type): New | |
1529 | function. | |
1530 | (i386_linux_init_abi): Add new function at the i386 ABI | |
1531 | initialization. | |
1532 | ||
43564574 WT |
1533 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1534 | ||
1535 | * linux-tdep.h (linux_siginfo_extra_field_values): New enum values. | |
1536 | (linux_siginfo_extra_fields): New enum type. | |
1537 | * linux-tdep.c (linux_get_siginfo_type_with_fields): New function. | |
1538 | (linux_get_siginfo_type): Use new function. | |
1539 | ||
93813b37 WT |
1540 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
1541 | ||
1542 | * nat/amd64-linux-siginfo.c: New file. | |
1543 | * nat/amd64-linux-siginfo.h: New file. | |
1544 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h. | |
1545 | (amd64-linux-siginfo.o): New rule. | |
1546 | * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o. | |
1547 | * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include. | |
1548 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
1549 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) | |
1550 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) | |
1551 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) | |
1552 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) | |
1553 | (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c. | |
1554 | ||
5fdf6324 AB |
1555 | 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
1556 | ||
1557 | * value.c (max_value_size): New variable. | |
1558 | (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define. | |
1559 | (set_max_value_size): New function. | |
1560 | (show_max_value_size): New function. | |
1561 | (check_type_length_before_alloc): New function. | |
1562 | (allocate_value_contents): Call check_type_length_before_alloc. | |
1563 | (set_value_enclosing_type): Likewise. | |
1564 | (_initialize_values): Add set/show handler for max-value-size. | |
1565 | * NEWS: Mention new set/show command. | |
1566 | ||
5fa13070 SM |
1567 | 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca> |
1568 | ||
1569 | * varobj.h (struct varobj): Fix typos in comments. | |
1570 | (struct lang_varobj_ops): Likewise. | |
1571 | * varobj.c (VAROBJ_TABLE_SIZE): Likewise. | |
1572 | (varobj_create): Move misplaced comment. | |
1573 | ||
a2e3e93f SM |
1574 | 2016-01-29 Simon Marchi <simon.marchi@ericsson.com> |
1575 | ||
1576 | * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces | |
1577 | to for include additional lines. | |
1578 | * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces. | |
1579 | ||
56e374a6 SM |
1580 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
1581 | ||
1582 | * gnulib/import/Makefile.am: Regenerate. | |
1583 | * gnulib/import/Makefile.in: Regenerate. | |
1584 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
1585 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr. | |
1586 | ||
8424cc97 SM |
1587 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
1588 | ||
1589 | * remote.c (skip_to_semicolon): Remove. | |
1590 | (remote_parse_stop_reply): Use strchrnul instead of | |
1591 | skip_to_semicolon. | |
1592 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
1593 | strchrnul. | |
1594 | * gnulib/aclocal.m4: Regenerate. | |
1595 | * gnulib/config.in: Regenerate. | |
1596 | * gnulib/configure: Regenerate. | |
1597 | * gnulib/import/Makefile.am: Regenerate. | |
1598 | * gnulib/import/Makefile.in: Regenerate. | |
1599 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
1600 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
1601 | * gnulib/import/m4/rawmemchr.m4: New file. | |
1602 | * gnulib/import/m4/strchrnul.m4: New file. | |
1603 | * gnulib/import/rawmemchr.c: New file. | |
1604 | * gnulib/import/rawmemchr.valgrind: New file. | |
1605 | * gnulib/import/strchrnul.c: New file. | |
1606 | * gnulib/import/strchrnul.valgrind: New file. | |
1607 | ||
4a6a1ed4 YQ |
1608 | 2016-01-28 Yao Qi <yao.qi@linaro.org> |
1609 | ||
1610 | * breakpoint.c (build_target_command_list): Don't call continue | |
1611 | if aexpr is NULL. | |
1612 | (build_target_condition_list): Likewise. | |
1613 | ||
94715c17 KB |
1614 | 2016-01-27 Kevin Buettner <kevinb@redhat.com> |
1615 | ||
1616 | * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8 | |
1617 | bytes as aggregates. | |
1618 | ||
c07af0ab JB |
1619 | 2016-01-27 Joel Brobecker <brobecker@adacore.com> |
1620 | ||
1621 | * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as | |
1622 | Linespec Maintainers. | |
1623 | ||
41548caa SM |
1624 | 2016-01-26 Simon Marchi <simon.marchi@ericsson.com> |
1625 | ||
1626 | * common/common-utils.c (skip_spaces): Fix comment. | |
1627 | (skip_to_space_const): Likewise. | |
1628 | ||
4d18591b YQ |
1629 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
1630 | ||
1631 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
1632 | Remove argument pc. Get pc by regcache_read_pc. Callers updated. | |
1633 | (arm_deal_with_atomic_sequence_raw): Likewise. | |
1634 | (thumb_get_next_pcs_raw): Likewise. | |
1635 | (arm_get_next_pcs_raw): Likewise. | |
1636 | (arm_get_next_pcs): Remove argument pc. Callers updated. | |
1637 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration. | |
1638 | ||
a579cd9a MW |
1639 | 2016-01-25 Mark Wielaard <mjw@redhat.com> |
1640 | ||
1641 | * ada-lang.c (ada_evaluate_subexp): Add proper else block. | |
1642 | * c-typeprint.c (c_type_print_base): Fix misleading indentation of | |
1643 | if statement. | |
1644 | * inflow.c (child_terminal_ours_1): Fix misleading indentation of | |
1645 | statement block by introducing an else. | |
1646 | * linux-record.c (record_linux_sockaddr): Fix misleading indentation | |
1647 | of return statements. | |
1648 | (record_linux_msghdr): Likewise. | |
1649 | ||
a2077e25 PA |
1650 | 2016-01-25 Pedro Alves <palves@redhat.com> |
1651 | ||
1652 | PR threads/19461 | |
1653 | * infrun.c (handle_inferior_event_1) <fork/vfork>: Update | |
1654 | parent/child running states. | |
1655 | ||
1d2736d4 PA |
1656 | 2016-01-25 Pedro Alves <palves@redhat.com> |
1657 | ||
1658 | PR gdb/19494 | |
1659 | * linux-nat.c (kill_one_lwp): New, factored out from ... | |
1660 | (kill_callback): ... this. | |
1661 | (kill_wait_callback): New, factored out from ... | |
1662 | (kill_wait_one_lwp): ... this. | |
1663 | (kill_unfollowed_fork_children): New function. | |
1664 | (linux_nat_kill): Use it. | |
1665 | ||
b2bae2f7 JB |
1666 | 2016-01-22 John Baldwin <jhb@FreeBSD.org> |
1667 | ||
1668 | * fbsd-nat.c (fbsd_pid_to_str): Adjust string format. | |
1669 | ||
d86feca3 YQ |
1670 | 2016-01-22 Yao Qi <yao.qi@linaro.org> |
1671 | ||
1672 | * arm-linux-nat.c (fetch_fpregs): Call perror_with_name | |
1673 | instead of warning. | |
1674 | (store_fpregs, fetch_regs, store_regs): Likewise. | |
1675 | (fetch_wmmx_regs, store_wmmx_regs): Likewise. | |
1676 | (fetch_vfp_regs, store_vfp_regs): Likewise. | |
1677 | ||
b35a8b2f DE |
1678 | 2016-01-21 Doug Evans <dje@google.com> |
1679 | ||
1680 | * breakpoint.c (init_breakpoint_sal): Add comment. | |
1681 | ||
f906b857 MK |
1682 | 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net> |
1683 | ||
1684 | * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection. | |
1685 | ||
4a099de2 AB |
1686 | 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1687 | ||
1688 | * disasm.c (maybe_add_dis_line_entry): Rename to... | |
1689 | (add_dis_line_entry): ...this, and update header comment. | |
1690 | (do_mixed_source_and_assembly): Now use add_dis_line_entry. | |
1691 | ||
a994041d PA |
1692 | 2016-01-21 Pedro Alves <palves@redhat.com> |
1693 | ||
1694 | * Makefile.in (COMPILER_CFLAGS): New. | |
1695 | (CXXFLAGS): Get it from configure. | |
1696 | (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS | |
1697 | instead of CFLAGS. | |
1698 | * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST | |
1699 | COMPILER_CFLAGS. | |
1700 | * configure: Regenerate. | |
1701 | ||
305e13e6 JB |
1702 | 2016-01-21 Joel Brobecker <brobecker@adacore.com> |
1703 | ||
1704 | * location.h (new_address_location): Add new parameters | |
1705 | "addr_string" and "addr_string_len". | |
1706 | (get_address_string_location): Add declaration. | |
1707 | * location.c (new_address_location): Add new parameters | |
1708 | "addr_string" and "addr_string_len". If not NULL, store | |
1709 | a copy of the addr_string in the new location as well. | |
1710 | (get_address_string_location): New function. | |
1711 | (string_to_event_location): Update call to new_address_location. | |
1712 | * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>: | |
1713 | Save the event location in the parser's state before | |
1714 | passing it to convert_address_location_to_sals. | |
1715 | * breakpoint.c (create_thread_event_breakpoint): Update call | |
1716 | to new_address_location. | |
1717 | (init_breakpoint_sal): Get the event location's string, if any, | |
1718 | and use it to update call to new_address_location. | |
1719 | * python/py-finishbreakpoint.c (bpfinishpy_init): | |
1720 | Update call to new_address_location. | |
1721 | * spu-tdep.c (spu_catch_start): Likewise. | |
1722 | ||
1723 | * config/djgpp/fnchange.lst: Add entries for | |
1724 | gdb/testsuite/gdb.base/break-fun-addr1.c and | |
1725 | gdb/testsuite/gdb.base/break-fun-addr2.c. | |
1726 | ||
f7a6a40d YQ |
1727 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
1728 | ||
1729 | * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter | |
1730 | is_thumb and set it according to CPSR saved on the stack. | |
1731 | (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to | |
1732 | arm_linux_sigreturn_next_pc. | |
1733 | ||
5f5dfff6 SM |
1734 | 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
1735 | ||
1736 | * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__): | |
1737 | Fix enumerators sort key function. | |
1738 | ||
be56871e JB |
1739 | 2016-01-20 Joel Brobecker <brobecker@adacore.com> |
1740 | ||
b12e5614 | 1741 | * printcmd.c (print_scalar_formatted): Move binary operator from |
be56871e JB |
1742 | end of line to beginning of next line. Adjust formatting |
1743 | accordingly. | |
1744 | ||
f2feec98 JB |
1745 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1746 | ||
1747 | * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of | |
1748 | "len" with sysctl. | |
1749 | ||
20a0aab3 JB |
1750 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1751 | ||
1752 | * fbsd-tdep.c (find_stop_signal): Remove. | |
1753 | (struct fbsd_collect_regset_section_cb) <lwp>: New field. | |
1754 | <stop_signal>: New field. | |
1755 | <abort_iteration>: New field. | |
1756 | (fbsd_collect_regset_section_cb): Use new fields. | |
1757 | (fbsd_collect_thread_registers): New function. | |
1758 | (struct fbsd_corefile_thread_data): New structure. | |
1759 | (fbsd_corefile_thread): New function. | |
1760 | (fbsd_make_corefile_notes): Use new function to dump notes for each | |
1761 | non-exited thread in a process. | |
1762 | ||
6e9567fe JB |
1763 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1764 | ||
1765 | * configure.ac: Check for support for LWP names on FreeBSD. | |
1766 | * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp. | |
1767 | [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] | |
1768 | (fbsd_fetch_kinfo_proc): Move function earlier. | |
1769 | [PT_LWPINFO] (fbsd_thread_alive): New function. | |
1770 | [PT_LWPINFO] (fbsd_pid_to_str): New function. | |
1771 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function. | |
1772 | [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function. | |
1773 | [PT_LWPINFO] (fbsd_add_threads): New function. | |
1774 | [PT_LWPINFO] (fbsd_update_thread_list): New function. | |
1775 | [PT_LWPINFO] New variable super_resume. | |
1776 | [PT_LWPINFO] (resume_one_thread_cb): New function. | |
1777 | [PT_LWPINFO] (resume_all_threads_cb): New function. | |
1778 | [PT_LWPINFO] (fbsd_resume): New function. | |
1779 | (fbsd_remember_child): Save full ptid instead of plain pid. | |
1780 | (fbsd_is_child_pending): Return ptid of saved child process. | |
1781 | (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on | |
1782 | first stop. | |
1783 | [PT_LWP_EVENTS] Handle LWP events. | |
1784 | [TDP_RFPPWAIT] Include LWP in child ptid. | |
1785 | (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events. | |
1786 | (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events. | |
1787 | Add threads for existing processes. | |
1788 | (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to | |
1789 | "fbsd_thread_alive". | |
1790 | Set "to_pid_to_str" to "fbsd_pid_to_str". | |
1791 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to | |
1792 | "fbsd_thread_name". | |
1793 | [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list". | |
1794 | Set "to_has_thread_control" to "tc_schedlock". | |
1795 | Set "to_resume" to "fbsd_resume". | |
1796 | (_initialize_fbsd_nat): New function. | |
1797 | * configure: Regenerate. | |
1798 | * config.in: Regenerate. | |
1799 | ||
94309df7 JB |
1800 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1801 | ||
1802 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
1803 | get_ptrace_pid. | |
1804 | (amd64bsd_store_inferior_registers): Use get_ptrace_pid. | |
1805 | (amd64bsd_dr_get): Use get_ptrace_pid. | |
1806 | (amd64bsd_dr_set): Use get_ptrace_pid. | |
1807 | * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid. | |
1808 | (i386bsd_store_inferior_registers): Use get_ptrace_pid. | |
1809 | (i386bsd_dr_get): Use get_ptrace_pid. | |
1810 | (i386bsd_dr_set): Use get_ptrace_pid. | |
1811 | * inf-ptrace.c (get_ptrace_pid): Export. | |
1812 | * inf-ptrace.h (get_ptrace_pid): Declare. | |
1813 | * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id. | |
1814 | (ppcfbsd_store_inferior_registers): Use lwp id. | |
1815 | ||
79117428 JB |
1816 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1817 | ||
1818 | * fbsd_tdep.c (fbsd_core_pid_to_str): New function. | |
1819 | (fbsd_core_thread_name): New function. | |
1820 | (fbsd_init_abi): Add "core_pid_to_str" gdbarch method. | |
1821 | Add "core_thread_name" gdbarch method. | |
1822 | ||
4dfc5dbc JB |
1823 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1824 | ||
1825 | * corelow.c (core_thread_name): New function. | |
1826 | (init_core_ops): Use "core_thread_name" for the "to_thread_name" | |
1827 | target op. | |
1828 | * gdbarch.sh (core_thread_name): New gdbarch callback. | |
1829 | * gdbarch.h: Re-generate. | |
1830 | * gdbarch.c: Re-generate. | |
1831 | ||
10e3ed90 SM |
1832 | 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
1833 | ||
1834 | * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly | |
1835 | convert gdb.Value to integer type using int(). | |
1836 | ||
a6e69c1f JB |
1837 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
1838 | ||
1839 | * configure.ac: Include <sys/types.h when checking for "r_fs" in | |
1840 | "struct reg". | |
1841 | * configure: Regenerate. | |
1842 | ||
37e42b4f PA |
1843 | 2016-01-19 Pedro Alves <palves@redhat.com> |
1844 | ||
1845 | * ax-gdb.c (agent_command_1): Adjust call to decode_line_full. | |
1846 | * break-catch-throw.c (re_set_exception_catchpoint): Pass the | |
1847 | current program space down to linespec decoding and breakpoint | |
1848 | location updating. | |
1849 | * breakpoint.c (parse_breakpoint_sals): Adjust calls to | |
1850 | decode_line_full. | |
1851 | (until_break_command): Adjust calls to decode_line_1. | |
1852 | (base_breakpoint_decode_location, bkpt_decode_location): Add | |
1853 | 'search_pspace' parameter. Pass it along. | |
1854 | (bkpt_probe_create_sals_from_location): Adjust calls to | |
1855 | parse_probes. | |
1856 | (tracepoint_decode_location, tracepoint_probe_decode_location) | |
1857 | (strace_marker_decode_location): Add 'search_pspace' parameter. | |
1858 | Pass it along. | |
1859 | (all_locations_are_pending): Rewrite to take a breakpoint and | |
1860 | program space as arguments instead. | |
1861 | (hoist_existing_locations): New function. | |
1862 | (update_breakpoint_locations): Add 'filter_pspace' parameter. Use | |
1863 | hoist_existing_locations instead of always removing all locations, | |
1864 | and adjust to all_locations_are_pending change. | |
1865 | (location_to_sals): Add 'search_pspace' parameter. Pass it along. | |
1866 | Don't disable the breakpoint if there are other locations in | |
1867 | another program space. | |
1868 | (breakpoint_re_set_default): Adjust to pass down the current | |
1869 | program space as filter program space. | |
1870 | (decode_location_default): Add 'search_pspace' parameter and pass | |
1871 | it along. | |
1872 | (prepare_re_set_context): Don't switch program space here. | |
1873 | (breakpoint_re_set): Use save_current_space_and_thread instead of | |
1874 | save_current_program_space. | |
1875 | * breakpoint.h (struct breakpoint_ops) <decode_location>: Add | |
1876 | 'search_pspace' parameter. | |
1877 | (update_breakpoint_locations): Add 'filter_pspace' parameter. | |
1878 | * cli/cli-cmds.c (edit_command, list_command): Adjust calls to | |
1879 | decode_line_1. | |
1880 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current | |
1881 | program space as filter program space. | |
1882 | * linespec.c (struct linespec_state) <search_pspace>: New field. | |
1883 | (create_sals_line_offset, convert_explicit_location_to_sals) | |
1884 | (parse_linespec): Pass the search program space down. | |
1885 | (linespec_state_constructor): Add 'search_pspace' parameter. | |
1886 | Store it. | |
1887 | (linespec_parser_new): Add 'search_pspace' parameter and pass it | |
1888 | along. | |
1889 | (linespec_lex_to_end): Adjust. | |
1890 | (decode_line_full, decode_line_1): Add 'search_pspace' parameter | |
1891 | and pass it along. | |
1892 | (decode_line_with_last_displayed): Adjust. | |
1893 | (collect_symtabs_from_filename, symtabs_from_filename): New | |
1894 | 'search_pspace' parameter. Use it. | |
1895 | (find_function_symbols): Pass the search program space down. | |
1896 | * linespec.h (decode_line_1, decode_line_full): Add | |
1897 | 'search_pspace' parameter. | |
1898 | * probe.c (parse_probes_in_pspace): New function, factored out | |
1899 | from ... | |
1900 | (parse_probes): ... this. Add 'search_pspace' parameter and use | |
1901 | it. | |
1902 | * probe.h (parse_probes): Add pspace' parameter. | |
1903 | * python/python.c (gdbpy_decode_line): Adjust. | |
1904 | * tracepoint.c (scope_info): Adjust. | |
1905 | ||
100b4f2e MR |
1906 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1907 | ||
1908 | * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS | |
1909 | instruction support. | |
1910 | (micromips_next_pc): Likewise. | |
1911 | (micromips_scan_prologue): Likewise. | |
1912 | (micromips_deal_with_atomic_sequence): Likewise. | |
1913 | (micromips_stack_frame_destroyed_p): Likewise. | |
1914 | (mips_breakpoint_from_pc): Likewise. | |
1915 | ||
3f7f3650 MR |
1916 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1917 | ||
1918 | * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass | |
1919 | unshifted 16-bit microMIPS instruction word to `mips_insn_size'. | |
1920 | ||
f303dbd6 PA |
1921 | 2016-01-18 Pedro Alves <palves@redhat.com> |
1922 | ||
1923 | * NEWS: Mention that GDB now displays the ID and name of the | |
1924 | thread that hit a breakpoint or received a signal. | |
1925 | * break-catch-sig.c (signal_catchpoint_print_it): Use | |
1926 | maybe_print_thread_hit_breakpoint. | |
1927 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
1928 | * break-catch-throw.c (print_it_exception_catchpoint): Likewise. | |
1929 | * breakpoint.c (maybe_print_thread_hit_breakpoint): New function. | |
1930 | (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib) | |
1931 | (print_it_catch_exec, print_it_ranged_breakpoint) | |
1932 | (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it): | |
1933 | Use maybe_print_thread_hit_breakpoint. | |
1934 | * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare. | |
1935 | * gdbthread.h (show_thread_that_caused_stop): Declare. | |
1936 | * infrun.c (print_signal_received_reason): Print which thread | |
1937 | received signal. | |
1938 | * thread.c (show_thread_that_caused_stop): New function. | |
1939 | ||
eb0edac8 GB |
1940 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
1941 | ||
1942 | * nat/linux-namespaces.c (do_fork): New function. | |
1943 | (linux_mntns_get_helper): Use the above. | |
1944 | ||
dc365182 JH |
1945 | 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change) |
1946 | ||
1947 | Pushed by Joel Brobecker <brobecker@adacore.com>. | |
1948 | PR gdb/19208 | |
1949 | * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name | |
1950 | if the function has no name. | |
1951 | ||
f74f61cb SL |
1952 | 2016-01-15 Sandra Loosemore <sandra@codesourcery.com> |
1953 | ||
1954 | * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET): | |
1955 | Conditionalize for Windows host. | |
1956 | (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET. | |
1957 | (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32. | |
1958 | (phony_iconv_open): Handle both UTF-32 endiannesses. | |
1959 | (phony_iconv): Likewise. Check for output overflow and clean up | |
1960 | out-of-input cases. Correct adjustment to input buffer pointer. | |
1961 | (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match | |
1962 | phony_iconv_open. | |
1963 | ||
71ef29a8 PA |
1964 | 2016-01-15 Pedro Alves <palves@redhat.com> |
1965 | ||
1966 | * NEWS: Mention star wildcard ranges. | |
1967 | * cli/cli-utils.c (get_number_or_range): Check state->in_range first. | |
1968 | (number_range_setup_range): New function. | |
1969 | * cli/cli-utils.h (number_range_setup_range): New declaration. | |
1970 | * thread.c (thread_apply_command): Support star TID ranges. | |
1971 | * tid-parse.c (tid_range_parser_finished) | |
1972 | (tid_range_parser_string, tid_range_parser_skip) | |
1973 | (get_tid_or_range, get_tid_or_range): Handle | |
1974 | TID_RANGE_STATE_STAR_RANGE. | |
1975 | (tid_range_parser_star_range): New function. | |
1976 | * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>: | |
1977 | New value. | |
1978 | (tid_range_parser_star_range): New declaration. | |
1979 | ||
3f5b7598 PA |
1980 | 2016-01-15 Pedro Alves <palves@redhat.com> |
1981 | ||
1982 | * thread.c (thread_apply_command): Use the tid range parser to | |
1983 | advance past the thread ID list. | |
1984 | * tid-parse.c (get_positive_number_trailer): New function. | |
1985 | (parse_thread_id): Use it. | |
1986 | (get_tid_or_range): Use it. Return 0 instead of throwing invalid | |
1987 | thread ID error. | |
1988 | (get_tid_or_range): Detect negative values. Return 0 instead of | |
1989 | throwing invalid thread ID error. | |
1990 | ||
e7cf25a8 YQ |
1991 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
1992 | ||
1993 | * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): | |
1994 | Declare. | |
1995 | (arm_linux_get_next_pcs_ops): Install | |
1996 | arm_linux_get_next_pcs_syscall_next_pc. | |
1997 | (arm_linux_syscall_next_pc): Change to ... | |
1998 | (arm_linux_get_next_pcs_syscall_next_pc): ... it. | |
1999 | (arm_linux_init_abi): Don't set tdep->syscall_next_pc. | |
2000 | * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare. | |
2001 | (arm_get_next_pcs_syscall_next_pc): Make it static. Don't | |
2002 | call tdep->syscall_next_pc. | |
2003 | * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove. | |
2004 | (arm_get_next_pcs_syscall_next_pc): Remove. | |
2005 | ||
c0518081 YQ |
2006 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
2007 | ||
2008 | * remote.c (remote_set_syscall_catchpoint): Cast to char *. | |
2009 | * thread.c (do_captured_thread_select): Cast to const char *. | |
2010 | ||
1b451dda YQ |
2011 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
2012 | ||
2013 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change | |
2014 | argument arm_thumb2_breakpoint to has_thumb2_breakpoint. | |
2015 | (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint | |
2016 | instead. | |
2017 | * arch/arm-get-next-pcs.h (struct arm_get_next_pcs) | |
2018 | <arm_thumb2_breakpoint>: Remove. | |
2019 | <has_thumb2_breakpoint>: New field. | |
2020 | (arm_get_next_pcs_ctor): Update declaration. | |
2021 | * arm-linux-tdep.c (arm_linux_software_single_step): Pass | |
2022 | 1 to arm_get_next_pcs_ctor. | |
2023 | * arm-tdep.c (arm_software_single_step): Pass 0 to | |
2024 | arm_get_next_pcs_ctor. | |
2025 | ||
bc06e0b1 UW |
2026 | 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
2027 | ||
2028 | * MAINTAINERS: Add Andreas Arnez as s390 target maintainer. | |
2029 | ||
4e7b8bea YQ |
2030 | 2016-01-13 Yao Qi <yao.qi@linaro.org> |
2031 | ||
2032 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use | |
2033 | byte_order_for_code to read instruction. | |
2034 | ||
663f6d42 PA |
2035 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2036 | ||
2037 | * NEWS: Mention $_gthread. | |
2038 | * gdbthread.h (struct thread_info) <global_num>: Mention | |
2039 | $_gthread. | |
2040 | * thread.c (thread_num_make_value_helper): New function. | |
2041 | (thread_id_make_value): Delete. | |
2042 | (thread_id_per_inf_num_make_value, global_thread_id_make_value): | |
2043 | New. | |
2044 | (thread_funcs): Adjust. | |
2045 | (gthread_funcs): New. | |
2046 | (_initialize_thread): Register $_gthread variable. | |
2047 | ||
c84f6bbf PA |
2048 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2049 | ||
2050 | * NEWS: Mention "info threads -gid". | |
2051 | * gdbthread.h (struct thread_info) <global_num>: Mention "info | |
2052 | threads -gid". | |
2053 | * thread.c (info_threads_command): Handle "-gid". | |
2054 | (_initialize_thread): Adjust "info threads" help string to mention | |
2055 | -gid. | |
2056 | ||
22a02324 PA |
2057 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2058 | ||
2059 | * NEWS: Mention InferiorThread.global_num. | |
2060 | * python/py-infthread.c (thpy_get_global_num): New function. | |
2061 | (thread_object_getset): Register "global_num". | |
2062 | ||
5d5658a1 PA |
2063 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2064 | ||
2065 | * NEWS: Mention that thread IDs are now per inferior and global | |
2066 | thread IDs. | |
2067 | * Makefile.in (SFILES): Add tid-parse.c. | |
2068 | (COMMON_OBS): Add tid-parse.o. | |
2069 | (HFILES_NO_SRCDIR): Add tid-parse.h. | |
2070 | * ada-tasks.c: Adjust to use ptid_to_global_thread_id. | |
2071 | * breakpoint.c (insert_breakpoint_locations) | |
2072 | (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions) | |
2073 | (print_one_breakpoint_location, set_longjmp_breakpoint) | |
2074 | (check_longjmp_breakpoint_for_call_dummy) | |
2075 | (set_momentary_breakpoint): Adjust to use global IDs. | |
2076 | (find_condition_and_thread, watch_command_1): Use parse_thread_id. | |
2077 | (until_break_command, longjmp_bkpt_dtor) | |
2078 | (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust | |
2079 | to use global IDs. | |
2080 | * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use | |
2081 | ptid_to_global_thread_id. | |
2082 | * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. | |
2083 | * gdbthread.h (struct thread_info): Rename field 'num' to | |
2084 | 'global_num. Add new fields 'per_inf_num' and 'inf'. | |
2085 | (thread_id_to_pid): Rename thread_id_to_pid to | |
2086 | global_thread_id_to_ptid. | |
2087 | (pid_to_thread_id): Rename to ... | |
2088 | (ptid_to_global_thread_id): ... this. | |
2089 | (valid_thread_id): Rename to ... | |
2090 | (valid_global_thread_id): ... this. | |
2091 | (find_thread_id): Rename to ... | |
2092 | (find_thread_global_id): ... this. | |
2093 | (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare. | |
2094 | (print_thread_info): Add comment. | |
2095 | * tid-parse.h: New file. | |
2096 | * tid-parse.c: New file. | |
2097 | * infcmd.c (step_command_fsm_prepare) | |
2098 | (step_command_fsm_should_stop): Adjust to use the global thread | |
2099 | ID. | |
2100 | (until_next_command, until_next_command) | |
2101 | (finish_command_fsm_should_stop): Adjust to use the global thread | |
2102 | ID. | |
2103 | (attach_post_wait): Adjust to check the inferior number too. | |
2104 | * inferior.h (struct inferior) <highest_thread_num>: New field. | |
2105 | * infrun.c (handle_signal_stop) | |
2106 | (insert_exception_resume_breakpoint) | |
2107 | (insert_exception_resume_from_probe): Adjust to use the global | |
2108 | thread ID. | |
2109 | * record-btrace.c (record_btrace_open): Use global thread IDs. | |
2110 | * remote.c (process_initial_stop_replies): Also consider the | |
2111 | inferior number. | |
2112 | * target.c (target_pre_inferior): Clear the inferior's highest | |
2113 | thread num. | |
2114 | * thread.c (clear_thread_inferior_resources): Adjust to use the | |
2115 | global thread ID. | |
2116 | (new_thread): New inferior parameter. Adjust to use it. Set both | |
2117 | the thread's global ID and the thread's per-inferior ID. | |
2118 | (add_thread_silent): Adjust. | |
2119 | (find_thread_global_id): New. | |
2120 | (find_thread_id): Make static. Adjust to rename. | |
2121 | (valid_thread_id): Rename to ... | |
2122 | (valid_global_thread_id): ... this. | |
2123 | (pid_to_thread_id): Rename to ... | |
2124 | (ptid_to_global_thread_id): ... this. | |
2125 | (thread_id_to_pid): Rename to ... | |
2126 | (global_thread_id_to_ptid): ... this. Adjust. | |
2127 | (first_thread_of_process): Adjust. | |
2128 | (do_captured_list_thread_ids): Adjust to use global thread IDs. | |
2129 | (should_print_thread): New function. | |
2130 | (print_thread_info): Rename to ... | |
2131 | (print_thread_info_1): ... this, and add new show_global_ids | |
2132 | parameter. Handle it. Iterate over inferiors. | |
2133 | (print_thread_info): Reimplement as wrapper around | |
2134 | print_thread_info_1. | |
2135 | (show_inferior_qualified_tids): New function. | |
2136 | (print_thread_id): Use it. | |
2137 | (tp_array_compar): Compare inferior numbers too. | |
2138 | (thread_apply_command): Use tid_range_parser. | |
2139 | (do_captured_thread_select): Use parse_thread_id. | |
2140 | (thread_id_make_value): Adjust. | |
2141 | (_initialize_thread): Adjust "info threads" help string. | |
2142 | * varobj.c (struct varobj_root): Update comment. | |
2143 | (varobj_create): Adjust to use global thread IDs. | |
2144 | (value_of_root_1): Adjust to use global_thread_id_to_ptid. | |
2145 | * windows-tdep.c (display_tib): No longer accept an argument. | |
2146 | * cli/cli-utils.c (get_number_trailer): Make extern. | |
2147 | * cli/cli-utils.h (get_number_trailer): Declare. | |
2148 | (get_number_const): Adjust documentation. | |
2149 | * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global | |
2150 | thread IDs. | |
2151 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
2152 | (mi_on_normal_stop, mi_output_running_pid, mi_on_resume): | |
2153 | * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise. | |
2154 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x): | |
2155 | Likewise. | |
2156 | * python/py-breakpoint.c (bppy_set_thread): Likewise. | |
2157 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
2158 | * python/py-infthread.c (thpy_get_num): Add comment and return the | |
2159 | per-inferior thread ID. | |
2160 | (thread_object_getset): Update comment of "num". | |
2161 | ||
43792cf0 PA |
2162 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2163 | ||
2164 | * breakpoint.c (remove_threaded_breakpoints) | |
2165 | (print_one_breakpoint_location): Use print_thread_id. | |
2166 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
2167 | (btrace_fetch, btrace_clear): Use print_thread_id. | |
2168 | * common/print-utils.c (CELLSIZE): Delete. | |
2169 | (get_cell): Rename to ... | |
2170 | (get_print_cell): ... this and made extern. Adjust call callers. | |
2171 | Adjust to use PRINT_CELL_SIZE. | |
2172 | * common/print-utils.h (get_print_cell): Declare. | |
2173 | (PRINT_CELL_SIZE): New. | |
2174 | * gdbthread.h (print_thread_id): Declare. | |
2175 | * infcmd.c (signal_command): Use print_thread_id. | |
2176 | * inferior.c (print_inferior): Use print_thread_id. | |
2177 | * infrun.c (handle_signal_stop) | |
2178 | (insert_exception_resume_breakpoint) | |
2179 | (insert_exception_resume_from_probe) | |
2180 | (print_signal_received_reason): Use print_thread_id. | |
2181 | * record-btrace.c (record_btrace_info) | |
2182 | (record_btrace_resume_thread, record_btrace_cancel_resume) | |
2183 | (record_btrace_step_thread, record_btrace_wait): Use | |
2184 | print_thread_id. | |
2185 | * thread.c (thread_apply_all_command): Use print_thread_id. | |
2186 | (print_thread_id): New function. | |
2187 | (thread_apply_command): Use print_thread_id. | |
2188 | (thread_command, thread_find_command, do_captured_thread_select): | |
2189 | Use print_thread_id. | |
2190 | ||
84654457 PA |
2191 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2192 | ||
2193 | * NEWS: Mention InferiorThread.inferior. | |
2194 | * python/py-infthread.c (thpy_get_inferior): New. | |
2195 | (thread_object_getset): Register "inferior". | |
2196 | ||
e3940304 PA |
2197 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2198 | ||
2199 | * NEWS: Mention $_inferior. | |
2200 | * inferior.c (inferior_id_make_value): New. | |
2201 | (inferior_funcs): New. | |
2202 | (_initialize_inferior): Create $_inferior variable. | |
2203 | ||
a911d87a PA |
2204 | 2016-01-13 Pedro Alves <palves@redhat.com> |
2205 | ||
2206 | PR breakpoints/19388 | |
2207 | * frame.c (get_current_frame): Use validate_registers_access. | |
2208 | * gdbthread.h (validate_registers_access): Declare. | |
2209 | * infrun.c (validate_siginfo_access): Delete. | |
2210 | (siginfo_value_read, siginfo_value_write): Use | |
2211 | validate_registers_access. | |
2212 | * thread.c (validate_registers_access): New function. | |
2213 | ||
82075af2 JS |
2214 | 2016-01-12 Josh Stone <jistone@redhat.com> |
2215 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
2216 | ||
2217 | * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the | |
2218 | syscall_entry and syscall_return stop reasons. Mention GDB | |
2219 | support for remote catch syscall. | |
2220 | * remote.c (PACKET_QCatchSyscalls): New enum. | |
2221 | (remote_set_syscall_catchpoint): New function. | |
2222 | (remote_protocol_features): New element for QCatchSyscalls. | |
2223 | (remote_parse_stop_reply): Parse syscall_entry/return stops. | |
2224 | (init_remote_ops): Install remote_set_syscall_catchpoint. | |
2225 | (_initialize_remote): Config QCatchSyscalls. | |
2226 | * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo. | |
2227 | ||
d18547d8 YQ |
2228 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
2229 | ||
2230 | * nat/linux-ptrace.c (linux_child_function): Cast child_stack | |
2231 | to gdb_byte * and pass to linux_fork_to_function. | |
2232 | ||
ba4dd7c4 YQ |
2233 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
2234 | ||
2235 | * nat/linux-ptrace.c (linux_fork_to_function): Change type | |
2236 | of argument 'function'. | |
2237 | (linux_grandchild_function): Change return type to 'int'. | |
2238 | Change child_stack's type to 'void *'. | |
2239 | (linux_child_function): Likewise. | |
2240 | ||
bc504a31 PA |
2241 | 2016-01-12 Pedro Alves <palves@redhat.com> |
2242 | ||
2243 | Remove use of the registered trademark symbol throughout. | |
2244 | ||
5eddd578 TS |
2245 | 2016-01-12 Thomas Schwinge <thomas@codesourcery.com> |
2246 | ||
2247 | * reply_mig_hack.awk: Rewrite one regular expression. | |
2248 | ||
b835bb52 MF |
2249 | 2016-01-11 Mike Frysinger <vapier@gentoo.org> |
2250 | ||
2251 | * acinclude.m4: Include new warning.m4 file. | |
2252 | * configure: Regenerated. | |
2253 | * configure.ac: Move all warning logic ... | |
2254 | * warning.m4: ... here. | |
2255 | ||
2f99e8fc YQ |
2256 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
2257 | ||
2258 | * extension.c: Include target.h. | |
2259 | (set_active_ext_lang): Only call install_gdb_sigint_handler, | |
2260 | check_quit_flag, and set_quit_flag if target_terminal_is_ours | |
2261 | returns false. | |
2262 | (restore_active_ext_lang): Likewise. | |
2263 | * target.c (target_terminal_is_ours): New function. | |
2264 | * target.h (target_terminal_is_ours): Declare. | |
2265 | ||
5dd05630 MR |
2266 | 2016-01-07 Maciej W. Rozycki <macro@imgtec.com> |
2267 | ||
2268 | * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status' | |
2269 | to `err' in the little-endian leg. | |
2270 | ||
f5aa3069 YQ |
2271 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
2272 | ||
2273 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some | |
2274 | lines below. | |
2275 | (thumb_get_next_pcs_raw): Make it static. | |
2276 | (arm_get_next_pcs_raw): Likewise. | |
2277 | * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the | |
2278 | declaration. | |
2279 | (arm_get_next_pcs_raw): Likewise. | |
2280 | ||
bf69ad5a MF |
2281 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
2282 | ||
2283 | * version.in: Change cvs to git. | |
2284 | ||
66750332 MF |
2285 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
2286 | ||
2287 | * configure.tgt (score-*-*): Delete gdb_sim assignment. | |
2288 | ||
976102cd PA |
2289 | 2016-01-05 Pedro Alves <palves@redhat.com> |
2290 | ||
2291 | PR sim/13418 | |
2292 | * configure.ac: Define WITH_PPC_SIM when linking in the sim and | |
2293 | the target is powerpc*. | |
fa89c126 PA |
2294 | * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead |
2295 | of WITH_SIM. | |
976102cd PA |
2296 | * configure: Regenerate. |
2297 | * config.in: Regenerate. | |
2298 | ||
43368e1d MM |
2299 | 2016-01-04 Markus Metzger <markus.t.metzger@intel.com> |
2300 | ||
2301 | * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH. | |
2302 | ||
32273fe6 MF |
2303 | 2016-01-02 Mike Frysinger <vapier@gentoo.org> |
2304 | ||
2305 | * configure.tgt (powerpc*-*-*): Delete test call and | |
2306 | always assign gdb_sim. | |
2307 | ||
618f726f JB |
2308 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
2309 | ||
2310 | Update year range in copyright notice of all files. | |
2311 | ||
edd88788 JB |
2312 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
2313 | ||
2314 | * top.c (print_gdb_version): Change copyright year in version | |
2315 | message. | |
2316 | ||
0f7b3ef4 | 2317 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
aec47d1d | 2318 | |
0f7b3ef4 | 2319 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015. |
aec47d1d | 2320 | |
0f7b3ef4 | 2321 | For older changes see ChangeLog-2015. |
c906108c SS |
2322 | \f |
2323 | Local Variables: | |
2324 | mode: change-log | |
2325 | left-margin: 8 | |
2326 | fill-column: 74 | |
2327 | version-control: never | |
57da7796 | 2328 | coding: utf-8 |
c906108c | 2329 | End: |