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