Commit | Line | Data |
---|---|---|
3f2f6cb5 WT |
1 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
2 | ||
3 | * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval): | |
4 | New types. | |
5 | (compat_siginfo): New bound fields added. | |
6 | (compat_x32_siginfo): New field added. | |
7 | (cpt_si_addr_lsb): New define. | |
8 | (compat_siginfo_from_siginfo): Use nat_siginfo. | |
9 | (siginfo_from_compat_siginfo): Use nat_siginfo. | |
10 | (compat_x32_siginfo_from_siginfo): Likewise. | |
11 | (siginfo_from_compat_x32_siginfo): Likewise. | |
12 | ||
96b5c49f WT |
13 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
14 | ||
15 | * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd | |
16 | structure to the siginfo if extra_fields contains | |
17 | LINUX_SIGINFO_FIELD_ADDR_BND. | |
18 | ||
190b495d WT |
19 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
20 | ||
21 | * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern. | |
22 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern. | |
23 | * i386-linux-tdep.h (x86_linux_get_siginfo_type): New | |
24 | function. | |
25 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add | |
26 | x86_linux_get_siginfo_type for the amd64 abi. | |
27 | * i386-linux-tdep.c (x86_linux_get_siginfo_type): New | |
28 | function. | |
29 | (i386_linux_init_abi): Add new function at the i386 ABI | |
30 | initialization. | |
31 | ||
43564574 WT |
32 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
33 | ||
34 | * linux-tdep.h (linux_siginfo_extra_field_values): New enum values. | |
35 | (linux_siginfo_extra_fields): New enum type. | |
36 | * linux-tdep.c (linux_get_siginfo_type_with_fields): New function. | |
37 | (linux_get_siginfo_type): Use new function. | |
38 | ||
93813b37 WT |
39 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
40 | ||
41 | * nat/amd64-linux-siginfo.c: New file. | |
42 | * nat/amd64-linux-siginfo.h: New file. | |
43 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h. | |
44 | (amd64-linux-siginfo.o): New rule. | |
45 | * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o. | |
46 | * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include. | |
47 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
48 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) | |
49 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) | |
50 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) | |
51 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) | |
52 | (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c. | |
53 | ||
5fdf6324 AB |
54 | 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
55 | ||
56 | * value.c (max_value_size): New variable. | |
57 | (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define. | |
58 | (set_max_value_size): New function. | |
59 | (show_max_value_size): New function. | |
60 | (check_type_length_before_alloc): New function. | |
61 | (allocate_value_contents): Call check_type_length_before_alloc. | |
62 | (set_value_enclosing_type): Likewise. | |
63 | (_initialize_values): Add set/show handler for max-value-size. | |
64 | * NEWS: Mention new set/show command. | |
65 | ||
5fa13070 SM |
66 | 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca> |
67 | ||
68 | * varobj.h (struct varobj): Fix typos in comments. | |
69 | (struct lang_varobj_ops): Likewise. | |
70 | * varobj.c (VAROBJ_TABLE_SIZE): Likewise. | |
71 | (varobj_create): Move misplaced comment. | |
72 | ||
a2e3e93f SM |
73 | 2016-01-29 Simon Marchi <simon.marchi@ericsson.com> |
74 | ||
75 | * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces | |
76 | to for include additional lines. | |
77 | * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces. | |
78 | ||
56e374a6 SM |
79 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
80 | ||
81 | * gnulib/import/Makefile.am: Regenerate. | |
82 | * gnulib/import/Makefile.in: Regenerate. | |
83 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
84 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr. | |
85 | ||
8424cc97 SM |
86 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
87 | ||
88 | * remote.c (skip_to_semicolon): Remove. | |
89 | (remote_parse_stop_reply): Use strchrnul instead of | |
90 | skip_to_semicolon. | |
91 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
92 | strchrnul. | |
93 | * gnulib/aclocal.m4: Regenerate. | |
94 | * gnulib/config.in: Regenerate. | |
95 | * gnulib/configure: Regenerate. | |
96 | * gnulib/import/Makefile.am: Regenerate. | |
97 | * gnulib/import/Makefile.in: Regenerate. | |
98 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
99 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
100 | * gnulib/import/m4/rawmemchr.m4: New file. | |
101 | * gnulib/import/m4/strchrnul.m4: New file. | |
102 | * gnulib/import/rawmemchr.c: New file. | |
103 | * gnulib/import/rawmemchr.valgrind: New file. | |
104 | * gnulib/import/strchrnul.c: New file. | |
105 | * gnulib/import/strchrnul.valgrind: New file. | |
106 | ||
4a6a1ed4 YQ |
107 | 2016-01-28 Yao Qi <yao.qi@linaro.org> |
108 | ||
109 | * breakpoint.c (build_target_command_list): Don't call continue | |
110 | if aexpr is NULL. | |
111 | (build_target_condition_list): Likewise. | |
112 | ||
94715c17 KB |
113 | 2016-01-27 Kevin Buettner <kevinb@redhat.com> |
114 | ||
115 | * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8 | |
116 | bytes as aggregates. | |
117 | ||
c07af0ab JB |
118 | 2016-01-27 Joel Brobecker <brobecker@adacore.com> |
119 | ||
120 | * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as | |
121 | Linespec Maintainers. | |
122 | ||
41548caa SM |
123 | 2016-01-26 Simon Marchi <simon.marchi@ericsson.com> |
124 | ||
125 | * common/common-utils.c (skip_spaces): Fix comment. | |
126 | (skip_to_space_const): Likewise. | |
127 | ||
4d18591b YQ |
128 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
129 | ||
130 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
131 | Remove argument pc. Get pc by regcache_read_pc. Callers updated. | |
132 | (arm_deal_with_atomic_sequence_raw): Likewise. | |
133 | (thumb_get_next_pcs_raw): Likewise. | |
134 | (arm_get_next_pcs_raw): Likewise. | |
135 | (arm_get_next_pcs): Remove argument pc. Callers updated. | |
136 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration. | |
137 | ||
a579cd9a MW |
138 | 2016-01-25 Mark Wielaard <mjw@redhat.com> |
139 | ||
140 | * ada-lang.c (ada_evaluate_subexp): Add proper else block. | |
141 | * c-typeprint.c (c_type_print_base): Fix misleading indentation of | |
142 | if statement. | |
143 | * inflow.c (child_terminal_ours_1): Fix misleading indentation of | |
144 | statement block by introducing an else. | |
145 | * linux-record.c (record_linux_sockaddr): Fix misleading indentation | |
146 | of return statements. | |
147 | (record_linux_msghdr): Likewise. | |
148 | ||
a2077e25 PA |
149 | 2016-01-25 Pedro Alves <palves@redhat.com> |
150 | ||
151 | PR threads/19461 | |
152 | * infrun.c (handle_inferior_event_1) <fork/vfork>: Update | |
153 | parent/child running states. | |
154 | ||
1d2736d4 PA |
155 | 2016-01-25 Pedro Alves <palves@redhat.com> |
156 | ||
157 | PR gdb/19494 | |
158 | * linux-nat.c (kill_one_lwp): New, factored out from ... | |
159 | (kill_callback): ... this. | |
160 | (kill_wait_callback): New, factored out from ... | |
161 | (kill_wait_one_lwp): ... this. | |
162 | (kill_unfollowed_fork_children): New function. | |
163 | (linux_nat_kill): Use it. | |
164 | ||
b2bae2f7 JB |
165 | 2016-01-22 John Baldwin <jhb@FreeBSD.org> |
166 | ||
167 | * fbsd-nat.c (fbsd_pid_to_str): Adjust string format. | |
168 | ||
d86feca3 YQ |
169 | 2016-01-22 Yao Qi <yao.qi@linaro.org> |
170 | ||
171 | * arm-linux-nat.c (fetch_fpregs): Call perror_with_name | |
172 | instead of warning. | |
173 | (store_fpregs, fetch_regs, store_regs): Likewise. | |
174 | (fetch_wmmx_regs, store_wmmx_regs): Likewise. | |
175 | (fetch_vfp_regs, store_vfp_regs): Likewise. | |
176 | ||
b35a8b2f DE |
177 | 2016-01-21 Doug Evans <dje@google.com> |
178 | ||
179 | * breakpoint.c (init_breakpoint_sal): Add comment. | |
180 | ||
f906b857 MK |
181 | 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net> |
182 | ||
183 | * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection. | |
184 | ||
4a099de2 AB |
185 | 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
186 | ||
187 | * disasm.c (maybe_add_dis_line_entry): Rename to... | |
188 | (add_dis_line_entry): ...this, and update header comment. | |
189 | (do_mixed_source_and_assembly): Now use add_dis_line_entry. | |
190 | ||
a994041d PA |
191 | 2016-01-21 Pedro Alves <palves@redhat.com> |
192 | ||
193 | * Makefile.in (COMPILER_CFLAGS): New. | |
194 | (CXXFLAGS): Get it from configure. | |
195 | (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS | |
196 | instead of CFLAGS. | |
197 | * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST | |
198 | COMPILER_CFLAGS. | |
199 | * configure: Regenerate. | |
200 | ||
305e13e6 JB |
201 | 2016-01-21 Joel Brobecker <brobecker@adacore.com> |
202 | ||
203 | * location.h (new_address_location): Add new parameters | |
204 | "addr_string" and "addr_string_len". | |
205 | (get_address_string_location): Add declaration. | |
206 | * location.c (new_address_location): Add new parameters | |
207 | "addr_string" and "addr_string_len". If not NULL, store | |
208 | a copy of the addr_string in the new location as well. | |
209 | (get_address_string_location): New function. | |
210 | (string_to_event_location): Update call to new_address_location. | |
211 | * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>: | |
212 | Save the event location in the parser's state before | |
213 | passing it to convert_address_location_to_sals. | |
214 | * breakpoint.c (create_thread_event_breakpoint): Update call | |
215 | to new_address_location. | |
216 | (init_breakpoint_sal): Get the event location's string, if any, | |
217 | and use it to update call to new_address_location. | |
218 | * python/py-finishbreakpoint.c (bpfinishpy_init): | |
219 | Update call to new_address_location. | |
220 | * spu-tdep.c (spu_catch_start): Likewise. | |
221 | ||
222 | * config/djgpp/fnchange.lst: Add entries for | |
223 | gdb/testsuite/gdb.base/break-fun-addr1.c and | |
224 | gdb/testsuite/gdb.base/break-fun-addr2.c. | |
225 | ||
f7a6a40d YQ |
226 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
227 | ||
228 | * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter | |
229 | is_thumb and set it according to CPSR saved on the stack. | |
230 | (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to | |
231 | arm_linux_sigreturn_next_pc. | |
232 | ||
5f5dfff6 SM |
233 | 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
234 | ||
235 | * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__): | |
236 | Fix enumerators sort key function. | |
237 | ||
be56871e JB |
238 | 2016-01-20 Joel Brobecker <brobecker@adacore.com> |
239 | ||
b12e5614 | 240 | * printcmd.c (print_scalar_formatted): Move binary operator from |
be56871e JB |
241 | end of line to beginning of next line. Adjust formatting |
242 | accordingly. | |
243 | ||
f2feec98 JB |
244 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
245 | ||
246 | * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of | |
247 | "len" with sysctl. | |
248 | ||
20a0aab3 JB |
249 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
250 | ||
251 | * fbsd-tdep.c (find_stop_signal): Remove. | |
252 | (struct fbsd_collect_regset_section_cb) <lwp>: New field. | |
253 | <stop_signal>: New field. | |
254 | <abort_iteration>: New field. | |
255 | (fbsd_collect_regset_section_cb): Use new fields. | |
256 | (fbsd_collect_thread_registers): New function. | |
257 | (struct fbsd_corefile_thread_data): New structure. | |
258 | (fbsd_corefile_thread): New function. | |
259 | (fbsd_make_corefile_notes): Use new function to dump notes for each | |
260 | non-exited thread in a process. | |
261 | ||
6e9567fe JB |
262 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
263 | ||
264 | * configure.ac: Check for support for LWP names on FreeBSD. | |
265 | * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp. | |
266 | [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] | |
267 | (fbsd_fetch_kinfo_proc): Move function earlier. | |
268 | [PT_LWPINFO] (fbsd_thread_alive): New function. | |
269 | [PT_LWPINFO] (fbsd_pid_to_str): New function. | |
270 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function. | |
271 | [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function. | |
272 | [PT_LWPINFO] (fbsd_add_threads): New function. | |
273 | [PT_LWPINFO] (fbsd_update_thread_list): New function. | |
274 | [PT_LWPINFO] New variable super_resume. | |
275 | [PT_LWPINFO] (resume_one_thread_cb): New function. | |
276 | [PT_LWPINFO] (resume_all_threads_cb): New function. | |
277 | [PT_LWPINFO] (fbsd_resume): New function. | |
278 | (fbsd_remember_child): Save full ptid instead of plain pid. | |
279 | (fbsd_is_child_pending): Return ptid of saved child process. | |
280 | (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on | |
281 | first stop. | |
282 | [PT_LWP_EVENTS] Handle LWP events. | |
283 | [TDP_RFPPWAIT] Include LWP in child ptid. | |
284 | (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events. | |
285 | (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events. | |
286 | Add threads for existing processes. | |
287 | (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to | |
288 | "fbsd_thread_alive". | |
289 | Set "to_pid_to_str" to "fbsd_pid_to_str". | |
290 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to | |
291 | "fbsd_thread_name". | |
292 | [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list". | |
293 | Set "to_has_thread_control" to "tc_schedlock". | |
294 | Set "to_resume" to "fbsd_resume". | |
295 | (_initialize_fbsd_nat): New function. | |
296 | * configure: Regenerate. | |
297 | * config.in: Regenerate. | |
298 | ||
94309df7 JB |
299 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
300 | ||
301 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
302 | get_ptrace_pid. | |
303 | (amd64bsd_store_inferior_registers): Use get_ptrace_pid. | |
304 | (amd64bsd_dr_get): Use get_ptrace_pid. | |
305 | (amd64bsd_dr_set): Use get_ptrace_pid. | |
306 | * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid. | |
307 | (i386bsd_store_inferior_registers): Use get_ptrace_pid. | |
308 | (i386bsd_dr_get): Use get_ptrace_pid. | |
309 | (i386bsd_dr_set): Use get_ptrace_pid. | |
310 | * inf-ptrace.c (get_ptrace_pid): Export. | |
311 | * inf-ptrace.h (get_ptrace_pid): Declare. | |
312 | * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id. | |
313 | (ppcfbsd_store_inferior_registers): Use lwp id. | |
314 | ||
79117428 JB |
315 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
316 | ||
317 | * fbsd_tdep.c (fbsd_core_pid_to_str): New function. | |
318 | (fbsd_core_thread_name): New function. | |
319 | (fbsd_init_abi): Add "core_pid_to_str" gdbarch method. | |
320 | Add "core_thread_name" gdbarch method. | |
321 | ||
4dfc5dbc JB |
322 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
323 | ||
324 | * corelow.c (core_thread_name): New function. | |
325 | (init_core_ops): Use "core_thread_name" for the "to_thread_name" | |
326 | target op. | |
327 | * gdbarch.sh (core_thread_name): New gdbarch callback. | |
328 | * gdbarch.h: Re-generate. | |
329 | * gdbarch.c: Re-generate. | |
330 | ||
10e3ed90 SM |
331 | 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
332 | ||
333 | * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly | |
334 | convert gdb.Value to integer type using int(). | |
335 | ||
a6e69c1f JB |
336 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
337 | ||
338 | * configure.ac: Include <sys/types.h when checking for "r_fs" in | |
339 | "struct reg". | |
340 | * configure: Regenerate. | |
341 | ||
37e42b4f PA |
342 | 2016-01-19 Pedro Alves <palves@redhat.com> |
343 | ||
344 | * ax-gdb.c (agent_command_1): Adjust call to decode_line_full. | |
345 | * break-catch-throw.c (re_set_exception_catchpoint): Pass the | |
346 | current program space down to linespec decoding and breakpoint | |
347 | location updating. | |
348 | * breakpoint.c (parse_breakpoint_sals): Adjust calls to | |
349 | decode_line_full. | |
350 | (until_break_command): Adjust calls to decode_line_1. | |
351 | (base_breakpoint_decode_location, bkpt_decode_location): Add | |
352 | 'search_pspace' parameter. Pass it along. | |
353 | (bkpt_probe_create_sals_from_location): Adjust calls to | |
354 | parse_probes. | |
355 | (tracepoint_decode_location, tracepoint_probe_decode_location) | |
356 | (strace_marker_decode_location): Add 'search_pspace' parameter. | |
357 | Pass it along. | |
358 | (all_locations_are_pending): Rewrite to take a breakpoint and | |
359 | program space as arguments instead. | |
360 | (hoist_existing_locations): New function. | |
361 | (update_breakpoint_locations): Add 'filter_pspace' parameter. Use | |
362 | hoist_existing_locations instead of always removing all locations, | |
363 | and adjust to all_locations_are_pending change. | |
364 | (location_to_sals): Add 'search_pspace' parameter. Pass it along. | |
365 | Don't disable the breakpoint if there are other locations in | |
366 | another program space. | |
367 | (breakpoint_re_set_default): Adjust to pass down the current | |
368 | program space as filter program space. | |
369 | (decode_location_default): Add 'search_pspace' parameter and pass | |
370 | it along. | |
371 | (prepare_re_set_context): Don't switch program space here. | |
372 | (breakpoint_re_set): Use save_current_space_and_thread instead of | |
373 | save_current_program_space. | |
374 | * breakpoint.h (struct breakpoint_ops) <decode_location>: Add | |
375 | 'search_pspace' parameter. | |
376 | (update_breakpoint_locations): Add 'filter_pspace' parameter. | |
377 | * cli/cli-cmds.c (edit_command, list_command): Adjust calls to | |
378 | decode_line_1. | |
379 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current | |
380 | program space as filter program space. | |
381 | * linespec.c (struct linespec_state) <search_pspace>: New field. | |
382 | (create_sals_line_offset, convert_explicit_location_to_sals) | |
383 | (parse_linespec): Pass the search program space down. | |
384 | (linespec_state_constructor): Add 'search_pspace' parameter. | |
385 | Store it. | |
386 | (linespec_parser_new): Add 'search_pspace' parameter and pass it | |
387 | along. | |
388 | (linespec_lex_to_end): Adjust. | |
389 | (decode_line_full, decode_line_1): Add 'search_pspace' parameter | |
390 | and pass it along. | |
391 | (decode_line_with_last_displayed): Adjust. | |
392 | (collect_symtabs_from_filename, symtabs_from_filename): New | |
393 | 'search_pspace' parameter. Use it. | |
394 | (find_function_symbols): Pass the search program space down. | |
395 | * linespec.h (decode_line_1, decode_line_full): Add | |
396 | 'search_pspace' parameter. | |
397 | * probe.c (parse_probes_in_pspace): New function, factored out | |
398 | from ... | |
399 | (parse_probes): ... this. Add 'search_pspace' parameter and use | |
400 | it. | |
401 | * probe.h (parse_probes): Add pspace' parameter. | |
402 | * python/python.c (gdbpy_decode_line): Adjust. | |
403 | * tracepoint.c (scope_info): Adjust. | |
404 | ||
100b4f2e MR |
405 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
406 | ||
407 | * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS | |
408 | instruction support. | |
409 | (micromips_next_pc): Likewise. | |
410 | (micromips_scan_prologue): Likewise. | |
411 | (micromips_deal_with_atomic_sequence): Likewise. | |
412 | (micromips_stack_frame_destroyed_p): Likewise. | |
413 | (mips_breakpoint_from_pc): Likewise. | |
414 | ||
3f7f3650 MR |
415 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
416 | ||
417 | * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass | |
418 | unshifted 16-bit microMIPS instruction word to `mips_insn_size'. | |
419 | ||
f303dbd6 PA |
420 | 2016-01-18 Pedro Alves <palves@redhat.com> |
421 | ||
422 | * NEWS: Mention that GDB now displays the ID and name of the | |
423 | thread that hit a breakpoint or received a signal. | |
424 | * break-catch-sig.c (signal_catchpoint_print_it): Use | |
425 | maybe_print_thread_hit_breakpoint. | |
426 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
427 | * break-catch-throw.c (print_it_exception_catchpoint): Likewise. | |
428 | * breakpoint.c (maybe_print_thread_hit_breakpoint): New function. | |
429 | (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib) | |
430 | (print_it_catch_exec, print_it_ranged_breakpoint) | |
431 | (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it): | |
432 | Use maybe_print_thread_hit_breakpoint. | |
433 | * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare. | |
434 | * gdbthread.h (show_thread_that_caused_stop): Declare. | |
435 | * infrun.c (print_signal_received_reason): Print which thread | |
436 | received signal. | |
437 | * thread.c (show_thread_that_caused_stop): New function. | |
438 | ||
eb0edac8 GB |
439 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
440 | ||
441 | * nat/linux-namespaces.c (do_fork): New function. | |
442 | (linux_mntns_get_helper): Use the above. | |
443 | ||
dc365182 JH |
444 | 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change) |
445 | ||
446 | Pushed by Joel Brobecker <brobecker@adacore.com>. | |
447 | PR gdb/19208 | |
448 | * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name | |
449 | if the function has no name. | |
450 | ||
f74f61cb SL |
451 | 2016-01-15 Sandra Loosemore <sandra@codesourcery.com> |
452 | ||
453 | * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET): | |
454 | Conditionalize for Windows host. | |
455 | (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET. | |
456 | (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32. | |
457 | (phony_iconv_open): Handle both UTF-32 endiannesses. | |
458 | (phony_iconv): Likewise. Check for output overflow and clean up | |
459 | out-of-input cases. Correct adjustment to input buffer pointer. | |
460 | (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match | |
461 | phony_iconv_open. | |
462 | ||
71ef29a8 PA |
463 | 2016-01-15 Pedro Alves <palves@redhat.com> |
464 | ||
465 | * NEWS: Mention star wildcard ranges. | |
466 | * cli/cli-utils.c (get_number_or_range): Check state->in_range first. | |
467 | (number_range_setup_range): New function. | |
468 | * cli/cli-utils.h (number_range_setup_range): New declaration. | |
469 | * thread.c (thread_apply_command): Support star TID ranges. | |
470 | * tid-parse.c (tid_range_parser_finished) | |
471 | (tid_range_parser_string, tid_range_parser_skip) | |
472 | (get_tid_or_range, get_tid_or_range): Handle | |
473 | TID_RANGE_STATE_STAR_RANGE. | |
474 | (tid_range_parser_star_range): New function. | |
475 | * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>: | |
476 | New value. | |
477 | (tid_range_parser_star_range): New declaration. | |
478 | ||
3f5b7598 PA |
479 | 2016-01-15 Pedro Alves <palves@redhat.com> |
480 | ||
481 | * thread.c (thread_apply_command): Use the tid range parser to | |
482 | advance past the thread ID list. | |
483 | * tid-parse.c (get_positive_number_trailer): New function. | |
484 | (parse_thread_id): Use it. | |
485 | (get_tid_or_range): Use it. Return 0 instead of throwing invalid | |
486 | thread ID error. | |
487 | (get_tid_or_range): Detect negative values. Return 0 instead of | |
488 | throwing invalid thread ID error. | |
489 | ||
e7cf25a8 YQ |
490 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
491 | ||
492 | * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): | |
493 | Declare. | |
494 | (arm_linux_get_next_pcs_ops): Install | |
495 | arm_linux_get_next_pcs_syscall_next_pc. | |
496 | (arm_linux_syscall_next_pc): Change to ... | |
497 | (arm_linux_get_next_pcs_syscall_next_pc): ... it. | |
498 | (arm_linux_init_abi): Don't set tdep->syscall_next_pc. | |
499 | * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare. | |
500 | (arm_get_next_pcs_syscall_next_pc): Make it static. Don't | |
501 | call tdep->syscall_next_pc. | |
502 | * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove. | |
503 | (arm_get_next_pcs_syscall_next_pc): Remove. | |
504 | ||
c0518081 YQ |
505 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
506 | ||
507 | * remote.c (remote_set_syscall_catchpoint): Cast to char *. | |
508 | * thread.c (do_captured_thread_select): Cast to const char *. | |
509 | ||
1b451dda YQ |
510 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
511 | ||
512 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change | |
513 | argument arm_thumb2_breakpoint to has_thumb2_breakpoint. | |
514 | (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint | |
515 | instead. | |
516 | * arch/arm-get-next-pcs.h (struct arm_get_next_pcs) | |
517 | <arm_thumb2_breakpoint>: Remove. | |
518 | <has_thumb2_breakpoint>: New field. | |
519 | (arm_get_next_pcs_ctor): Update declaration. | |
520 | * arm-linux-tdep.c (arm_linux_software_single_step): Pass | |
521 | 1 to arm_get_next_pcs_ctor. | |
522 | * arm-tdep.c (arm_software_single_step): Pass 0 to | |
523 | arm_get_next_pcs_ctor. | |
524 | ||
bc06e0b1 UW |
525 | 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
526 | ||
527 | * MAINTAINERS: Add Andreas Arnez as s390 target maintainer. | |
528 | ||
4e7b8bea YQ |
529 | 2016-01-13 Yao Qi <yao.qi@linaro.org> |
530 | ||
531 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use | |
532 | byte_order_for_code to read instruction. | |
533 | ||
663f6d42 PA |
534 | 2016-01-13 Pedro Alves <palves@redhat.com> |
535 | ||
536 | * NEWS: Mention $_gthread. | |
537 | * gdbthread.h (struct thread_info) <global_num>: Mention | |
538 | $_gthread. | |
539 | * thread.c (thread_num_make_value_helper): New function. | |
540 | (thread_id_make_value): Delete. | |
541 | (thread_id_per_inf_num_make_value, global_thread_id_make_value): | |
542 | New. | |
543 | (thread_funcs): Adjust. | |
544 | (gthread_funcs): New. | |
545 | (_initialize_thread): Register $_gthread variable. | |
546 | ||
c84f6bbf PA |
547 | 2016-01-13 Pedro Alves <palves@redhat.com> |
548 | ||
549 | * NEWS: Mention "info threads -gid". | |
550 | * gdbthread.h (struct thread_info) <global_num>: Mention "info | |
551 | threads -gid". | |
552 | * thread.c (info_threads_command): Handle "-gid". | |
553 | (_initialize_thread): Adjust "info threads" help string to mention | |
554 | -gid. | |
555 | ||
22a02324 PA |
556 | 2016-01-13 Pedro Alves <palves@redhat.com> |
557 | ||
558 | * NEWS: Mention InferiorThread.global_num. | |
559 | * python/py-infthread.c (thpy_get_global_num): New function. | |
560 | (thread_object_getset): Register "global_num". | |
561 | ||
5d5658a1 PA |
562 | 2016-01-13 Pedro Alves <palves@redhat.com> |
563 | ||
564 | * NEWS: Mention that thread IDs are now per inferior and global | |
565 | thread IDs. | |
566 | * Makefile.in (SFILES): Add tid-parse.c. | |
567 | (COMMON_OBS): Add tid-parse.o. | |
568 | (HFILES_NO_SRCDIR): Add tid-parse.h. | |
569 | * ada-tasks.c: Adjust to use ptid_to_global_thread_id. | |
570 | * breakpoint.c (insert_breakpoint_locations) | |
571 | (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions) | |
572 | (print_one_breakpoint_location, set_longjmp_breakpoint) | |
573 | (check_longjmp_breakpoint_for_call_dummy) | |
574 | (set_momentary_breakpoint): Adjust to use global IDs. | |
575 | (find_condition_and_thread, watch_command_1): Use parse_thread_id. | |
576 | (until_break_command, longjmp_bkpt_dtor) | |
577 | (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust | |
578 | to use global IDs. | |
579 | * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use | |
580 | ptid_to_global_thread_id. | |
581 | * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. | |
582 | * gdbthread.h (struct thread_info): Rename field 'num' to | |
583 | 'global_num. Add new fields 'per_inf_num' and 'inf'. | |
584 | (thread_id_to_pid): Rename thread_id_to_pid to | |
585 | global_thread_id_to_ptid. | |
586 | (pid_to_thread_id): Rename to ... | |
587 | (ptid_to_global_thread_id): ... this. | |
588 | (valid_thread_id): Rename to ... | |
589 | (valid_global_thread_id): ... this. | |
590 | (find_thread_id): Rename to ... | |
591 | (find_thread_global_id): ... this. | |
592 | (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare. | |
593 | (print_thread_info): Add comment. | |
594 | * tid-parse.h: New file. | |
595 | * tid-parse.c: New file. | |
596 | * infcmd.c (step_command_fsm_prepare) | |
597 | (step_command_fsm_should_stop): Adjust to use the global thread | |
598 | ID. | |
599 | (until_next_command, until_next_command) | |
600 | (finish_command_fsm_should_stop): Adjust to use the global thread | |
601 | ID. | |
602 | (attach_post_wait): Adjust to check the inferior number too. | |
603 | * inferior.h (struct inferior) <highest_thread_num>: New field. | |
604 | * infrun.c (handle_signal_stop) | |
605 | (insert_exception_resume_breakpoint) | |
606 | (insert_exception_resume_from_probe): Adjust to use the global | |
607 | thread ID. | |
608 | * record-btrace.c (record_btrace_open): Use global thread IDs. | |
609 | * remote.c (process_initial_stop_replies): Also consider the | |
610 | inferior number. | |
611 | * target.c (target_pre_inferior): Clear the inferior's highest | |
612 | thread num. | |
613 | * thread.c (clear_thread_inferior_resources): Adjust to use the | |
614 | global thread ID. | |
615 | (new_thread): New inferior parameter. Adjust to use it. Set both | |
616 | the thread's global ID and the thread's per-inferior ID. | |
617 | (add_thread_silent): Adjust. | |
618 | (find_thread_global_id): New. | |
619 | (find_thread_id): Make static. Adjust to rename. | |
620 | (valid_thread_id): Rename to ... | |
621 | (valid_global_thread_id): ... this. | |
622 | (pid_to_thread_id): Rename to ... | |
623 | (ptid_to_global_thread_id): ... this. | |
624 | (thread_id_to_pid): Rename to ... | |
625 | (global_thread_id_to_ptid): ... this. Adjust. | |
626 | (first_thread_of_process): Adjust. | |
627 | (do_captured_list_thread_ids): Adjust to use global thread IDs. | |
628 | (should_print_thread): New function. | |
629 | (print_thread_info): Rename to ... | |
630 | (print_thread_info_1): ... this, and add new show_global_ids | |
631 | parameter. Handle it. Iterate over inferiors. | |
632 | (print_thread_info): Reimplement as wrapper around | |
633 | print_thread_info_1. | |
634 | (show_inferior_qualified_tids): New function. | |
635 | (print_thread_id): Use it. | |
636 | (tp_array_compar): Compare inferior numbers too. | |
637 | (thread_apply_command): Use tid_range_parser. | |
638 | (do_captured_thread_select): Use parse_thread_id. | |
639 | (thread_id_make_value): Adjust. | |
640 | (_initialize_thread): Adjust "info threads" help string. | |
641 | * varobj.c (struct varobj_root): Update comment. | |
642 | (varobj_create): Adjust to use global thread IDs. | |
643 | (value_of_root_1): Adjust to use global_thread_id_to_ptid. | |
644 | * windows-tdep.c (display_tib): No longer accept an argument. | |
645 | * cli/cli-utils.c (get_number_trailer): Make extern. | |
646 | * cli/cli-utils.h (get_number_trailer): Declare. | |
647 | (get_number_const): Adjust documentation. | |
648 | * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global | |
649 | thread IDs. | |
650 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
651 | (mi_on_normal_stop, mi_output_running_pid, mi_on_resume): | |
652 | * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise. | |
653 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x): | |
654 | Likewise. | |
655 | * python/py-breakpoint.c (bppy_set_thread): Likewise. | |
656 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
657 | * python/py-infthread.c (thpy_get_num): Add comment and return the | |
658 | per-inferior thread ID. | |
659 | (thread_object_getset): Update comment of "num". | |
660 | ||
43792cf0 PA |
661 | 2016-01-13 Pedro Alves <palves@redhat.com> |
662 | ||
663 | * breakpoint.c (remove_threaded_breakpoints) | |
664 | (print_one_breakpoint_location): Use print_thread_id. | |
665 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
666 | (btrace_fetch, btrace_clear): Use print_thread_id. | |
667 | * common/print-utils.c (CELLSIZE): Delete. | |
668 | (get_cell): Rename to ... | |
669 | (get_print_cell): ... this and made extern. Adjust call callers. | |
670 | Adjust to use PRINT_CELL_SIZE. | |
671 | * common/print-utils.h (get_print_cell): Declare. | |
672 | (PRINT_CELL_SIZE): New. | |
673 | * gdbthread.h (print_thread_id): Declare. | |
674 | * infcmd.c (signal_command): Use print_thread_id. | |
675 | * inferior.c (print_inferior): Use print_thread_id. | |
676 | * infrun.c (handle_signal_stop) | |
677 | (insert_exception_resume_breakpoint) | |
678 | (insert_exception_resume_from_probe) | |
679 | (print_signal_received_reason): Use print_thread_id. | |
680 | * record-btrace.c (record_btrace_info) | |
681 | (record_btrace_resume_thread, record_btrace_cancel_resume) | |
682 | (record_btrace_step_thread, record_btrace_wait): Use | |
683 | print_thread_id. | |
684 | * thread.c (thread_apply_all_command): Use print_thread_id. | |
685 | (print_thread_id): New function. | |
686 | (thread_apply_command): Use print_thread_id. | |
687 | (thread_command, thread_find_command, do_captured_thread_select): | |
688 | Use print_thread_id. | |
689 | ||
84654457 PA |
690 | 2016-01-13 Pedro Alves <palves@redhat.com> |
691 | ||
692 | * NEWS: Mention InferiorThread.inferior. | |
693 | * python/py-infthread.c (thpy_get_inferior): New. | |
694 | (thread_object_getset): Register "inferior". | |
695 | ||
e3940304 PA |
696 | 2016-01-13 Pedro Alves <palves@redhat.com> |
697 | ||
698 | * NEWS: Mention $_inferior. | |
699 | * inferior.c (inferior_id_make_value): New. | |
700 | (inferior_funcs): New. | |
701 | (_initialize_inferior): Create $_inferior variable. | |
702 | ||
a911d87a PA |
703 | 2016-01-13 Pedro Alves <palves@redhat.com> |
704 | ||
705 | PR breakpoints/19388 | |
706 | * frame.c (get_current_frame): Use validate_registers_access. | |
707 | * gdbthread.h (validate_registers_access): Declare. | |
708 | * infrun.c (validate_siginfo_access): Delete. | |
709 | (siginfo_value_read, siginfo_value_write): Use | |
710 | validate_registers_access. | |
711 | * thread.c (validate_registers_access): New function. | |
712 | ||
82075af2 JS |
713 | 2016-01-12 Josh Stone <jistone@redhat.com> |
714 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
715 | ||
716 | * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the | |
717 | syscall_entry and syscall_return stop reasons. Mention GDB | |
718 | support for remote catch syscall. | |
719 | * remote.c (PACKET_QCatchSyscalls): New enum. | |
720 | (remote_set_syscall_catchpoint): New function. | |
721 | (remote_protocol_features): New element for QCatchSyscalls. | |
722 | (remote_parse_stop_reply): Parse syscall_entry/return stops. | |
723 | (init_remote_ops): Install remote_set_syscall_catchpoint. | |
724 | (_initialize_remote): Config QCatchSyscalls. | |
725 | * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo. | |
726 | ||
d18547d8 YQ |
727 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
728 | ||
729 | * nat/linux-ptrace.c (linux_child_function): Cast child_stack | |
730 | to gdb_byte * and pass to linux_fork_to_function. | |
731 | ||
ba4dd7c4 YQ |
732 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
733 | ||
734 | * nat/linux-ptrace.c (linux_fork_to_function): Change type | |
735 | of argument 'function'. | |
736 | (linux_grandchild_function): Change return type to 'int'. | |
737 | Change child_stack's type to 'void *'. | |
738 | (linux_child_function): Likewise. | |
739 | ||
bc504a31 PA |
740 | 2016-01-12 Pedro Alves <palves@redhat.com> |
741 | ||
742 | Remove use of the registered trademark symbol throughout. | |
743 | ||
5eddd578 TS |
744 | 2016-01-12 Thomas Schwinge <thomas@codesourcery.com> |
745 | ||
746 | * reply_mig_hack.awk: Rewrite one regular expression. | |
747 | ||
b835bb52 MF |
748 | 2016-01-11 Mike Frysinger <vapier@gentoo.org> |
749 | ||
750 | * acinclude.m4: Include new warning.m4 file. | |
751 | * configure: Regenerated. | |
752 | * configure.ac: Move all warning logic ... | |
753 | * warning.m4: ... here. | |
754 | ||
2f99e8fc YQ |
755 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
756 | ||
757 | * extension.c: Include target.h. | |
758 | (set_active_ext_lang): Only call install_gdb_sigint_handler, | |
759 | check_quit_flag, and set_quit_flag if target_terminal_is_ours | |
760 | returns false. | |
761 | (restore_active_ext_lang): Likewise. | |
762 | * target.c (target_terminal_is_ours): New function. | |
763 | * target.h (target_terminal_is_ours): Declare. | |
764 | ||
5dd05630 MR |
765 | 2016-01-07 Maciej W. Rozycki <macro@imgtec.com> |
766 | ||
767 | * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status' | |
768 | to `err' in the little-endian leg. | |
769 | ||
f5aa3069 YQ |
770 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
771 | ||
772 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some | |
773 | lines below. | |
774 | (thumb_get_next_pcs_raw): Make it static. | |
775 | (arm_get_next_pcs_raw): Likewise. | |
776 | * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the | |
777 | declaration. | |
778 | (arm_get_next_pcs_raw): Likewise. | |
779 | ||
bf69ad5a MF |
780 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
781 | ||
782 | * version.in: Change cvs to git. | |
783 | ||
66750332 MF |
784 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
785 | ||
786 | * configure.tgt (score-*-*): Delete gdb_sim assignment. | |
787 | ||
976102cd PA |
788 | 2016-01-05 Pedro Alves <palves@redhat.com> |
789 | ||
790 | PR sim/13418 | |
791 | * configure.ac: Define WITH_PPC_SIM when linking in the sim and | |
792 | the target is powerpc*. | |
fa89c126 PA |
793 | * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead |
794 | of WITH_SIM. | |
976102cd PA |
795 | * configure: Regenerate. |
796 | * config.in: Regenerate. | |
797 | ||
43368e1d MM |
798 | 2016-01-04 Markus Metzger <markus.t.metzger@intel.com> |
799 | ||
800 | * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH. | |
801 | ||
32273fe6 MF |
802 | 2016-01-02 Mike Frysinger <vapier@gentoo.org> |
803 | ||
804 | * configure.tgt (powerpc*-*-*): Delete test call and | |
805 | always assign gdb_sim. | |
806 | ||
618f726f JB |
807 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
808 | ||
809 | Update year range in copyright notice of all files. | |
810 | ||
edd88788 JB |
811 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
812 | ||
813 | * top.c (print_gdb_version): Change copyright year in version | |
814 | message. | |
815 | ||
0f7b3ef4 | 816 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
aec47d1d | 817 | |
0f7b3ef4 | 818 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015. |
aec47d1d | 819 | |
0f7b3ef4 | 820 | For older changes see ChangeLog-2015. |
c906108c SS |
821 | \f |
822 | Local Variables: | |
823 | mode: change-log | |
824 | left-margin: 8 | |
825 | fill-column: 74 | |
826 | version-control: never | |
57da7796 | 827 | coding: utf-8 |
c906108c | 828 | End: |