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