Commit | Line | Data |
---|---|---|
f2983cc3 AW |
1 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
2 | ||
3 | * guile/scm-frame.c (gdbscm_frame_read_register): New function. | |
4 | (frame_functions): Bind gdbscm_frame_read_register to | |
5 | frame-read-register. | |
6 | * guile/lib/gdb.scm (frame-read-register): Export. | |
7 | ||
b88bb450 GB |
8 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
9 | ||
10 | * common/common-remote-fileio.h (remote_fileio_to_fio_error): | |
11 | New declaration. | |
12 | * common/common-remote-fileio.c (remote_fileio_to_fio_error): | |
13 | New function, factored out the named functions below. | |
14 | * inf-child.c (gdb/fileio.h): Remove include. | |
15 | (common-remote-fileio.h): New include. | |
16 | (inf_child_errno_to_fileio_error): Remove function. Update | |
17 | all callers to use remote_fileio_to_fio_error. | |
18 | * remote-fileio.c (remote_fileio_errno_to_target): Likewise. | |
19 | ||
2f2680f3 AW |
20 | 2015-04-09 Andy Wingo <wingo@igalia.com> |
21 | ||
22 | * MAINTAINERS (Write After Approval): Add Andy Wingo. | |
23 | ||
5a2d4533 L |
24 | 2015-04-09 H.J. Lu <hongjiu.lu@intel.com> |
25 | ||
26 | * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir. | |
27 | Replace $zlibdir with $ZLIBDIR in LDFLAGS. | |
28 | * configure: Regenerated. | |
29 | ||
421693b0 PA |
30 | 2015-04-09 Pedro Alves <palves@redhat.com> |
31 | ||
32 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r. | |
33 | * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4. | |
34 | * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate. | |
35 | * gnulib/import/Makefile.am: Update. | |
36 | * gnulib/import/Makefile.in: Update. | |
37 | * gnulib/import/m4/gnulib-cache.m4: Update. | |
38 | * gnulib/import/m4/gnulib-comp.m4: Update. | |
39 | * gnulib/import/m4/strtok_r.m4: New file. | |
40 | * gnulib/import/strtok_r.c: New file. | |
41 | ||
f543dc83 PA |
42 | 2015-04-09 Pedro Alves <palves@redhat.com> |
43 | ||
44 | * gnulib/update-gnulib.sh (aclocal version check): Filter out | |
45 | "called too early to check prototype". | |
46 | ||
6d62641c SDJ |
47 | 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com> |
48 | ||
49 | PR python/16699 | |
50 | * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not | |
51 | use a caching mechanism. Adjust comments and code to reflect | |
52 | that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'. | |
53 | (cmdpy_completer_handle_brkchars): Adjust call to | |
54 | cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'. | |
55 | (cmdpy_completer): Likewise. | |
56 | ||
85558555 YQ |
57 | 2015-04-08 Yao Qi <yao.qi@linaro.org> |
58 | ||
59 | * spu-tdep.c (spu_gdbarch_init): Don't call | |
60 | set_gdbarch_cannot_step_breakpoint. | |
61 | ||
d249a14a SDJ |
62 | 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com> |
63 | ||
64 | * linux-tdep.c (decode_vmflags): Initialize 'saveptr'. | |
65 | ||
8a06aea7 PA |
66 | 2015-04-07 Pedro Alves <palves@redhat.com> |
67 | ||
68 | * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ... | |
69 | (ALL_THREADS_SAFE): ... this, and don't skip exited threads. | |
70 | (delete_exited_threads): New declaration. | |
71 | * infrun.c (follow_exec): Use ALL_THREADS_SAFE. | |
72 | * linux-nat.c (linux_nat_update_thread_list): New function. | |
73 | (linux_nat_add_target): Install it. | |
74 | * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE. | |
75 | * thread.c (prune_threads): Use ALL_THREADS_SAFE. | |
76 | (delete_exited_threads): New function. | |
77 | ||
d9b67d9f PA |
78 | 2015-04-07 Pedro Alves <pedro@codesourcery.com> |
79 | ||
80 | * infrun.c (resume) <displaced stepping debug output>: Get the | |
81 | leader thread's regcache, not resume_ptid's. | |
82 | ||
2c26b84f DE |
83 | 2015-04-06 Doug Evans <xdje42@gmail.com> |
84 | ||
85 | * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as | |
86 | VAR_DOMAIN. | |
87 | (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters. | |
88 | Include symbol domain in debugging output. | |
89 | ||
7a85168d PA |
90 | 2015-04-06 Pedro Alves <palves@redhat.com> |
91 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
92 | ||
93 | * configure.ac: Remove the mingw32-specific stub-termcap.o | |
94 | fallback, and instead fallback to the stub termcap on all hosts. | |
95 | * configure: Regenerate. | |
96 | * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak | |
97 | symbols. | |
98 | ||
25755e2b PMR |
99 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
100 | ||
101 | * gdbtypes.c (is_dynamic_type_internal): Remove the unused | |
102 | "top_level" parameter. | |
103 | (resolve_dynamic_type_internal): Remove the unused "top_level" | |
104 | parameter. Update call to is_dynamic_type_internal. | |
105 | (is_dynamic_type): Update call to is_dynamic_type_internal. | |
106 | (resolve_dynamic_range): Update call to | |
107 | resolve_dynamic_type_internal. | |
108 | (resolve_dynamic_union): Likewise. | |
109 | (resolve_dynamic_struct): Likewise. | |
110 | (resolve_dynamic_type): Likewise. | |
111 | ||
961f4160 PMR |
112 | 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com> |
113 | ||
114 | * gdbtypes.c (is_dynamic_type_internal): Remove special handling of | |
115 | TYPE_CODE_REF types so that they are not considered as dynamic | |
116 | depending on the referenced type. | |
117 | (resolve_dynamic_type_internal): Likewise. | |
118 | ||
39f3de7c L |
119 | 2015-04-02 H.J. Lu <hongjiu.lu@intel.com> |
120 | ||
121 | * Makefile.in (top_srcdir): New. | |
122 | * configure: Regenerated. | |
123 | ||
599bd15c GB |
124 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
125 | ||
126 | * NEWS: Announce the new default sysroot of "target:". | |
127 | ||
fed040c6 GB |
128 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
129 | ||
130 | * main.c (captured_main): Set gdb_sysroot to "target:" | |
131 | if not otherwise set. | |
132 | ||
64c0b5de GB |
133 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
134 | ||
135 | * exec.c (exec_file_attach): Support "target:" filenames. | |
136 | ||
b57fbfba GB |
137 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
138 | ||
139 | * solib.c (solib_find): Strip "target:" prefix from sysroot | |
140 | if accessing local files. | |
141 | ||
97a41605 GB |
142 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
143 | ||
144 | * symfile.c (symfile_bfd_open): Reorder to remove duplicated | |
145 | checks and error messages. | |
146 | ||
2938e6cf GB |
147 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
148 | ||
149 | * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition. | |
150 | (remote_filename_p): Remove declaration. | |
151 | (remote_bfd_open): Likewise. | |
152 | * remote.c (remote_bfd_iovec_open): Remove function. | |
153 | (remote_bfd_iovec_close): Likewise. | |
154 | (remote_bfd_iovec_pread): Likewise. | |
155 | (remote_bfd_iovec_stat): Likewise. | |
156 | (remote_filename_p): Likewise. | |
157 | (remote_bfd_open): Likewise. | |
158 | * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration. | |
159 | * symfile.c (separate_debug_file_exists): Use gdb_bfd_open. | |
160 | (gdb_bfd_open_maybe_remote): Remove function. | |
161 | (symfile_bfd_open): Replace remote filename check with | |
162 | target filename check. | |
163 | (reread_symbols): Use gdb_bfd_open. | |
164 | * build-id.c (gdbcore.h): New include. | |
165 | (build_id_to_debug_bfd): Use gdb_bfd_open. | |
166 | * infcmd.c (attach_command_post_wait): Remove remote filename | |
167 | check. | |
168 | * solib.c (solib_find): Replace remote-specific handling with | |
169 | target-specific handling. Update comments where necessary. | |
170 | (solib_bfd_open): Replace remote-specific handling with | |
171 | target-specific handling. | |
172 | (gdb_sysroot_changed): New function. | |
173 | (_initialize_solib): Call the above when gdb_sysroot changes. | |
174 | * windows-tdep.c (gdbcore.h): New include. | |
175 | (windows_xfer_shared_library): Use gdb_bfd_open. | |
176 | ||
f08e97fe GB |
177 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
178 | ||
179 | * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition. | |
180 | (is_target_filename): New declaration. | |
181 | (gdb_bfd_has_target_filename): Likewise. | |
182 | (gdb_bfd_open): Update documentation comment. | |
183 | * gdb_bfd.c (target.h): New include. | |
184 | (gdb/fileio.h): Likewise. | |
185 | (is_target_filename): New function. | |
186 | (gdb_bfd_has_target_filename): Likewise. | |
187 | (fileio_errno_to_host): Likewise. | |
188 | (gdb_bfd_iovec_fileio_open): Likewise. | |
189 | (gdb_bfd_iovec_fileio_pread): Likewise. | |
190 | (gdb_bfd_iovec_fileio_close): Likewise. | |
191 | (gdb_bfd_iovec_fileio_fstat): Likewise. | |
192 | (gdb_bfd_open): Use target fileio to access paths prefixed | |
193 | with "target:" where necessary. | |
194 | ||
4bd7dc42 GB |
195 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
196 | ||
197 | * target.h (struct target_ops) <to_filesystem_is_local>: | |
198 | New field. | |
199 | (target_filesystem_is_local): New macro. | |
200 | * target-delegates.c: Regenerate. | |
201 | * remote.c (remote_filesystem_is_local): New function. | |
202 | (init_remote_ops): Initialize to_filesystem_is_local. | |
203 | ||
9b15c1f0 GB |
204 | 2015-04-02 Gary Benson <gbenson@redhat.com> |
205 | ||
206 | * target.h (struct target_ops) <to_fileio_fstat>: New field. | |
207 | (target_fileio_fstat): New declaration. | |
208 | * target.c (target_fileio_fstat): New function. | |
209 | * inf-child.c (inf_child_fileio_fstat): Likewise. | |
210 | (inf_child_target): Initialize to_fileio_fstat. | |
211 | * remote.c (init_remote_ops): Likewise. | |
212 | ||
d11916aa SS |
213 | 2015-04-01 Sasha Smundak <asmundak@google.com> |
214 | ||
215 | * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o. | |
216 | (SUBDIR_PYTHON_SRCS): Add py-unwind.c. | |
217 | (py-unwind.o): New recipe. | |
218 | * NEWS: mention Python frame unwinding. | |
219 | * data-directory/Makefile.in (PYTHON_FILE_LIST): Add | |
220 | gdb/unwinder.py and gdb/command/unwinder.py | |
221 | * python/lib/gdb/__init__.py (packages): Add frame_unwinders | |
222 | list. | |
223 | (execute_unwinders): New function. | |
224 | * python/lib/gdb/command/unwinders.py: New file. | |
225 | * python/lib/gdb/unwinder.py: New file. | |
226 | * python/py-objfile.c (objfile_object): Add frame_unwinders field. | |
227 | (objfpy_dealloc): Decrement frame_unwinders reference count. | |
228 | (objfpy_initialize): Create frame_unwinders list. | |
229 | (objfpy_get_frame_unwinders): New function. | |
230 | (objfpy_set_frame_unwinders): Ditto. | |
231 | (objfile_getset): Add frame_unwinders attribute to Objfile. | |
232 | * python/py-progspace.c (pspace_object): Add frame_unwinders field. | |
233 | (pspy_dealloc): Decrement frame_unwinders reference count. | |
234 | (pspy_initialize): Create frame_unwinders list. | |
235 | (pspy_get_frame_unwinders): New function. | |
236 | (pspy_set_frame_unwinders): Ditto. | |
237 | (pspy_getset): Add frame_unwinders attribute to gdb.Progspace. | |
238 | * python/py-unwind.c: New file. | |
239 | * python/python-internal.h (pspy_get_name_unwinders): New prototype. | |
240 | (objpy_get_frame_unwinders): New prototype. | |
241 | (gdbpy_initialize_unwind): New prototype. | |
242 | * python/python.c (gdbpy_apply_type_printers): Call | |
243 | gdbpy_initialize_unwind. | |
244 | ||
6b403daa PA |
245 | 2015-04-01 Pedro Alves <palves@redhat.com> |
246 | ||
247 | * infrun.c (resume): Check currently_stepping after clearing | |
248 | stepped_breakpoint, not before. | |
249 | ||
1176ecec PA |
250 | 2015-04-01 Pedro Alves <palves@redhat.com> |
251 | ||
252 | * infrun.c (print_target_wait_results): Print all the ptid | |
253 | elements. | |
254 | ||
de1fe8c8 PA |
255 | 2015-04-01 Pedro Alves <palves@redhat.com> |
256 | ||
257 | * infrun.c (keep_going): Also discard cleanups if inserting | |
258 | breakpoints fails. | |
259 | ||
e6f5c25b PA |
260 | 2015-04-01 Pedro Alves <palves@redhat.com> |
261 | ||
262 | * infrun.c (wait_for_inferior): Install the | |
263 | finish_thread_state_cleanup cleanup across the whole function, not | |
264 | just around handle_inferior_event. | |
265 | ||
1ac806b8 PA |
266 | 2015-04-01 Pedro Alves <palves@redhat.com> |
267 | ||
268 | * infrun.c (resume) <step past permanent breakpoint>: Use | |
269 | do_target_resume. | |
270 | ||
2ee52aa4 PA |
271 | 2015-04-01 Pedro Alves <palves@redhat.com> |
272 | ||
273 | * linux-nat.c (linux_handle_extended_wait): Always call set_running. | |
274 | ||
5445da1b PMR |
275 | 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com> |
276 | ||
277 | * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat". | |
278 | ||
4eec2deb PA |
279 | 2015-04-01 Pedro Alves <palves@redhat.com> |
280 | ||
281 | * linux-thread-db.c (record_thread): Readd the thread to gdb's | |
282 | list if it was marked exited. | |
283 | ||
afa59b79 L |
284 | 2015-04-01 H.J. Lu <hongjiu.lu@intel.com> |
285 | ||
286 | * configure: Regenerated. | |
287 | ||
df8411da SDJ |
288 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
289 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
290 | Oleg Nesterov <oleg@redhat.com> | |
291 | ||
292 | PR corefiles/16092 | |
293 | * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'. | |
294 | New enum identifying the various options of the coredump_filter | |
295 | file. | |
296 | (struct smaps_vmflags): New struct. | |
297 | (use_coredump_filter): New variable. | |
298 | (decode_vmflags): New function. | |
299 | (mapping_is_anonymous_p): Likewise. | |
300 | (dump_mapping_p): Likewise. | |
301 | (linux_find_memory_regions_full): New variables | |
302 | 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'. | |
303 | Removed variable 'modified'. Read /proc/<PID>/smaps file; improve | |
304 | parsing of its information. Implement memory mapping filtering | |
305 | based on its contents. | |
306 | (show_use_coredump_filter): New function. | |
307 | (_initialize_linux_tdep): New command 'set use-coredump-filter'. | |
308 | * NEWS: Mention the possibility of using the | |
309 | '/proc/PID/coredump_filter' file when generating a corefile. | |
310 | Mention new command 'set use-coredump-filter'. | |
311 | ||
416f679e SDJ |
312 | 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com> |
313 | ||
314 | * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by | |
315 | read_memory_unsigned_integer. | |
316 | ||
711a72d3 L |
317 | 2015-03-31 H.J. Lu <hongjiu.lu@intel.com> |
318 | ||
319 | * Makefile.in (ZLIB): New. | |
320 | (ZLIBINC): Likewise. | |
321 | (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC). | |
322 | (CLIBS): Add $(ZLIB). | |
323 | * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS. | |
324 | Add -lz to LIBS. | |
325 | * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>. | |
326 | * top.c (print_gdb_configuration): Remove --with-zlib and | |
327 | --without-zlib. | |
328 | * config.in: Regenerated. | |
329 | * configure: Likewise. | |
330 | ||
d33279b3 AT |
331 | 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
332 | ||
333 | * NEWS: Mention info os cpus support. | |
334 | * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function. | |
335 | (struct osdata_type): Add cpus entry, reorder the entries in | |
336 | alphabetical order. | |
337 | ||
71b30f27 MK |
338 | 2015-03-31 Matthias Klose <doko@ubuntu.com> |
339 | ||
340 | * compile/compile.c (compile_to_object): Allow triplets with or | |
341 | without vendor set. | |
342 | ||
13ce9222 DE |
343 | 2015-03-30 Doug Evans <dje@google.com> |
344 | ||
345 | PR c++/18141 | |
346 | * cp-namespace.c (cp_search_static_and_baseclasses): Always look for | |
347 | klass in VAR_DOMAIN. | |
348 | ||
20f796c9 GB |
349 | 2015-03-30 Gary Benson <gbenson@redhat.com> |
350 | ||
351 | * remote.c (remote_mourn_1): Remove function. Update all callers | |
352 | to use remote_mourn. | |
353 | (extended_remote_mourn_1): Remove function. Update all callers | |
354 | to use extended_remote_mourn. | |
355 | (extended_remote_attach_1): Remove function. Update all callers | |
356 | to use extended_remote_attach. | |
357 | ||
49d45b20 JB |
358 | 2015-03-28 James Bowman <james.bowman@ftdichip.com> |
359 | ||
360 | * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o. | |
361 | (HFILES_NO_SRCDIR): Add ft32-tdep.h. | |
362 | (ALLDEPFILES): Add ft32-tdep.c. | |
363 | * configure.tgt: Add FT32 entry. | |
364 | * ft32-tdep.c: New file, FT32 target-dependent code. | |
365 | * ft32-tdep.h: New file, FT32 target-dependent code. | |
366 | ||
1c4ff080 JK |
367 | 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
368 | ||
369 | Revert: | |
370 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> | |
371 | Code cleanup. | |
372 | * printcmd.c (print_command_1): Move expr variable scope. | |
373 | ||
79498702 JB |
374 | 2015-03-27 Joel Brobecker <brobecker@adacore.com> |
375 | ||
376 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL. | |
377 | ||
ce9c0ca1 AK |
378 | 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> |
379 | ||
380 | * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special | |
381 | sections. | |
382 | ||
429e1e81 JB |
383 | 2015-03-26 Joel Brobecker <brobecker@adacore.com> |
384 | ||
385 | * dtrace-probe.c (dtrace_process_dof_probe): Contain any | |
386 | exception raised while parsing the probe arguments. | |
387 | Force parsing to be done using the C language parser. | |
388 | * expression.h (parse_expression_with_language): Declare. | |
389 | * parse.c (parse_expression_with_language): New function. | |
390 | ||
4593441b JT |
391 | 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk> |
392 | ||
393 | * MAINTAINERS (Write After Approval): Add "Jon Turney". | |
394 | ||
ff908ebf AW |
395 | 2015-03-26 Andy Wingo <wingo@igalia.com> |
396 | ||
397 | PR symtab/18148 | |
398 | * dwarf2read.c (struct partial_die_info): Add has_const_value | |
399 | member. | |
400 | (add_partial_symbol): Don't punt on symbols that have const_value | |
401 | attributes. | |
402 | (read_partial_die): Detect DW_AT_const_value. | |
403 | ||
f30d5c78 JK |
404 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
405 | ||
406 | Code cleanup. | |
407 | * printcmd.c (print_command_1): Move expr variable scope. | |
408 | ||
8d89f51a JK |
409 | 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
410 | ||
411 | Code cleanup. | |
412 | * printcmd.c (validate_format): Make the parameter cmdname const. | |
413 | ||
0b736949 DB |
414 | 2015-03-26 Don Breazeal <donb@codesourcery.com> |
415 | ||
416 | * remote.c (_initialize_remote): Update comment. | |
417 | ||
20d35291 PA |
418 | 2015-03-26 Pedro Alves <palves@redhat.com> |
419 | Jon TURNEY <jon.turney@dronecode.org.uk> | |
420 | ||
421 | * coffread.c (coff_symfile_read): When constructing the name of an | |
422 | import stub symbol from import symbol for amd64, only skip the | |
423 | char after _imp_ if the target is underscored (like i386) and the | |
424 | char is indeed the target's leading char. | |
425 | ||
6a3753b3 PA |
426 | 2015-03-25 Pedro Alves <palves@redhat.com> |
427 | ||
428 | * target.h <to_async>: Replace 'callback' and 'context' parameters | |
429 | with boolean 'enable' parameter. | |
430 | (target_async): Replace CALLBACK and CONTEXT parameters with | |
431 | boolean ENABLE parameter. | |
432 | * inf-loop.c (inferior_event_handler): Adjust. | |
433 | * linux-nat.c (linux_nat_attach, linux_nat_resume) | |
434 | (linux_nat_resume): Adjust. | |
435 | (async_client_callback, async_client_context): Delete. | |
436 | (handle_target_event): Call inferior_event_handler directly. | |
437 | (linux_nat_async): Replace 'callback' and 'context' parameters | |
438 | with boolean 'enable' parameter. Adjust. Remove references to | |
439 | async_client_callback and async_client_context. | |
440 | (linux_nat_close): Adjust. | |
441 | * record-btrace.c (record_btrace_async): Replace 'callback' and | |
442 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
443 | (record_btrace_resume): Adjust. | |
444 | * record-full.c (record_full_async): Replace 'callback' and | |
445 | 'context' parameters with boolean 'enable' parameter. Adjust. | |
446 | (record_full_resume, record_full_core_resume): Adjust. | |
447 | * remote.c (struct remote_state) <async_client_callback, | |
448 | async_client_context>: Delete fields. | |
449 | (remote_start_remote, extended_remote_attach_1, remote_resume) | |
450 | (extended_remote_create_inferior): Adjust. | |
451 | (remote_async_serial_handler): Call inferior_event_handler | |
452 | directly. | |
453 | (remote_async): Replace 'callback' and 'context' parameters with | |
454 | boolean 'enable' parameter. Adjust. | |
455 | * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): | |
456 | Adjust. | |
457 | * target-delegates.c: Regenerate. | |
458 | ||
1c4b552b GB |
459 | 2015-03-25 Gary Benson <gbenson@redhat.com> |
460 | Pedro Alves <palves@redhat.com> | |
461 | ||
462 | * target.c (fileio_ft_t): New typedef, define object vector. | |
463 | (fileio_fhandles): New static variable. | |
464 | (is_closed_fileio_fh): New macro. | |
465 | (lowest_closed_fd): New static variable. | |
466 | (acquire_fileio_fd): New function. | |
467 | (release_fileio_fd): Likewise. | |
468 | (fileio_fd_to_fh): New macro. | |
469 | (target_fileio_open): Wrap the file descriptor on success. | |
470 | (target_fileio_pwrite): Updated to use wrapped file descriptor. | |
471 | (target_fileio_pread): Likewise. | |
472 | (target_fileio_close): Likewise. | |
473 | ||
a25d8bf9 PA |
474 | 2015-03-24 Pedro Alves <palves@redhat.com> |
475 | ||
476 | * thread.c (thread_apply_all_command): Take exited threads into | |
477 | account. | |
478 | ||
44a1ee51 PA |
479 | 2015-03-24 Pedro Alves <palves@redhat.com> |
480 | ||
481 | * infrun.c (resume, proceed): Mention | |
482 | switch_back_to_stepped_thread, not switch_back_to_stepping. | |
483 | ||
f3263aa4 PA |
484 | 2015-03-24 Pedro Alves <palves@redhat.com> |
485 | ||
486 | * infrun.c (user_visible_resume_ptid): Rewrite going from | |
487 | most-locked to unlocked instead of the opposite. Move comment ... | |
488 | * infrun.h (user_visible_resume_ptid): ... here. | |
489 | ||
2bf6fb9d PA |
490 | 2015-03-24 Pedro Alves <palves@redhat.com> |
491 | ||
492 | * linux-nat.c (linux_nat_resume): Output debug logs before trying | |
493 | to resume the event lwp. Use the lwp's ptid instead of the passed | |
494 | in (maybe wildcard) ptid. | |
495 | (stop_wait_callback): Tweak debug log output. | |
496 | (check_stopped_by_breakpoint): Tweak debug log output. Also dump | |
497 | TRAP_TRACE. | |
498 | (linux_nat_filter_event): In debug output, distinguish a | |
499 | resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs | |
500 | before trying to resume the lwp. | |
501 | ||
283a9958 JB |
502 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
503 | ||
504 | * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove | |
505 | pointer indirection. | |
506 | * gdbtypes.c (get_dyn_prop): Adjust, following change above. | |
507 | (add_dyn_prop, copy_dynamic_prop_list): Likewise. | |
508 | ||
93a8e227 JB |
509 | 2015-03-24 Joel Brobecker <brobecker@adacore.com> |
510 | ||
511 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>: | |
512 | Renames DYN_ATTR_DATA_LOCATION. | |
513 | (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of | |
514 | DYN_ATTR_DATA_LOCATION. | |
515 | * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION | |
516 | instead of DYN_ATTR_DATA_LOCATION. | |
517 | ||
64ce06e4 PA |
518 | 2015-03-24 Pedro Alves <palves@redhat.com> |
519 | ||
520 | * breakpoint.c (until_break_command): Adjust call to proceed. | |
521 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
522 | New field. | |
523 | * infcall.c (run_inferior_call): Adjust call to proceed. | |
524 | * infcmd.c (run_command_1, proceed_thread_callback, continue_1): | |
525 | Adjust calls to proceed. | |
526 | (set_step_frame): Set the current thread's step_start_function | |
527 | here. | |
528 | (step_once): Adjust calls to proceed. | |
529 | (jump_command, signal_command, until_next_command) | |
530 | (finish_backward, finish_forward, proceed_after_attach_callback) | |
531 | (attach_command_post_wait): Adjust calls to proceed. | |
532 | * infrun.c (proceed_after_vfork_done): Adjust call to proceed. | |
533 | (do_target_resume): New function, factored out from ... | |
534 | (resume): ... here. Remove 'step' parameter. Instead, check | |
535 | currently_stepping to determine whether the thread should be | |
536 | single-stepped. | |
537 | (proceed): Remove 'step' parameter and don't set the thread's | |
538 | step_start_function here. Adjust call to 'resume'. | |
539 | (handle_inferior_event): Adjust calls to 'resume'. | |
540 | (switch_back_to_stepped_thread): Use do_target_resume instead of | |
541 | 'resume'. | |
542 | (keep_going): Adjust calls to 'resume'. | |
543 | * infrun.h (proceed): Remove 'step' parameter. | |
544 | (resume): Likewise. | |
545 | * windows-nat.c (do_initial_windows_stuff): Adjust call to | |
546 | 'resume'. | |
547 | * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'. | |
548 | ||
856e7dd6 PA |
549 | 2015-03-24 Pedro Alves <palves@redhat.com> |
550 | ||
551 | * gdbthread.h (struct thread_control_state) <stepping_command>: | |
552 | New field. | |
553 | * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set | |
554 | the thread's stepping_command field. | |
555 | * infrun.c (resume): Check the thread's stepping_command flag to | |
556 | determine which threads should be resumed. Rename 'entry_step' | |
557 | local to user_step. | |
558 | (clear_proceed_status_thread): Clear 'stepping_command'. | |
559 | (schedlock_applies): Change parameter type to struct thread_info | |
560 | pointer. Adjust. | |
561 | (find_thread_needs_step_over): Remove 'step' parameter. Adjust. | |
562 | (switch_back_to_stepped_thread): Adjust calls to | |
563 | 'schedlock_applies'. | |
564 | (_initialize_infrun): Adjust "set scheduler-locking step" help. | |
565 | ||
885eeb5b PA |
566 | 2015-03-24 Pedro Alves <palves@redhat.com> |
567 | ||
568 | * infrun.c (step_start_function): Delete and ... | |
569 | * gdbthread.h (struct thread_control_state) <step_start_function>: | |
570 | ... now a field here. | |
571 | * infrun.c (clear_proceed_status_thread): Clear the thread's | |
572 | step_start_function. | |
573 | (proceed, process_event_stop_test, print_stop_event): Adjust. | |
574 | ||
3333f03a PA |
575 | 2015-03-24 Pedro Alves <palves@redhat.com> |
576 | ||
577 | * infrun.c (proceed): No longer handle negative step. | |
578 | ||
369f6daa GB |
579 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
580 | ||
581 | * nat/x86-linux.h (x86_linux_new_thread): New declaration. | |
582 | (x86_linux_prepare_to_resume): Likewise. | |
583 | * x86-linux-nat.c (x86_linux_new_thread): | |
584 | Moved to nat/x86-linux.c. | |
585 | (x86_linux_prepare_to_resume): Likewise. | |
586 | * nat/x86-linux.c (x86_linux_new_thread): New function. | |
587 | (x86_linux_prepare_to_resume): Likewise. | |
588 | ||
8e5d4070 GB |
589 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
590 | ||
591 | * nat/x86-linux-dregs.h: New file. | |
592 | * nat/x86-linux-dregs.c: Likewise. | |
593 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h. | |
594 | (x86-linux-dregs.o): New rule. | |
595 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o. | |
596 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
597 | * x86-linux-nat.c: Include nat/x86-linux-dregs.h. | |
598 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. | |
599 | (x86_linux_dr_get): Likewise. | |
600 | (x86_linux_dr_set): Likewise. | |
601 | (x86_linux_dr_get_addr): Likewise. | |
602 | (x86_linux_dr_get_control): Likewise. | |
603 | (x86_linux_dr_get_status): Likewise. | |
604 | (update_debug_registers_callback): Likewise. | |
605 | (x86_linux_dr_set_control): Likewise. | |
606 | (x86_linux_dr_set_addr): Likewise. | |
607 | (x86_linux_update_debug_registers): Likewise. | |
608 | ||
2b95d440 GB |
609 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
610 | ||
611 | * x86-linux-nat.c (x86_linux_update_debug_registers): | |
612 | New function, factored out from... | |
613 | (x86_linux_prepare_to_resume): ...this. | |
614 | ||
14b0bc68 GB |
615 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
616 | ||
617 | * x86-linux-nat.c (x86_linux_dr_get): Update comments. | |
618 | (x86_linux_dr_set): Likewise. | |
619 | (x86_linux_dr_get_addr): Likewise. | |
620 | (x86_linux_dr_get_control): Likewise. | |
621 | (x86_linux_dr_get_status): Likewise. | |
622 | (update_debug_registers_callback): Likewise. | |
623 | (x86_linux_dr_set_control): Likewise. | |
624 | (x86_linux_dr_set_addr): Likewise. | |
625 | (x86_linux_prepare_to_resume): Likewise. | |
626 | (x86_linux_new_thread): Likewise. | |
627 | ||
5dfe6ca8 GB |
628 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
629 | ||
630 | * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion. | |
631 | (x86_linux_new_thread): Rename argument. | |
632 | ||
4b134ca1 GB |
633 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
634 | ||
635 | * nat/x86-linux.h: New file. | |
636 | * nat/x86-linux.c: Likewise. | |
637 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h. | |
638 | (x86-linux.o): New rule. | |
639 | * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o. | |
640 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
641 | * nat/linux-nat.h (struct arch_lwp_info): New forward declaration. | |
642 | (lwp_set_arch_private_info): New declaration. | |
643 | (lwp_arch_private_info): Likewise. | |
644 | * linux-nat.c (lwp_set_arch_private_info): New function. | |
645 | (lwp_arch_private_info): Likewise. | |
646 | * x86-linux-nat.c: Include nat/x86-linux.h. | |
647 | (arch_lwp_info): Removed structure. | |
648 | (update_debug_registers_callback): | |
649 | Use lwp_set_debug_registers_changed. | |
650 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed | |
651 | and lwp_set_debug_registers_changed. | |
652 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. | |
653 | ||
cff068da GB |
654 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
655 | ||
656 | * nat/linux-nat.h (ptid_of_lwp): New declaration. | |
657 | (lwp_is_stopped): Likewise. | |
658 | (lwp_stop_reason): Likewise. | |
659 | * linux-nat.c (ptid_of_lwp): New function. | |
660 | (lwp_is_stopped): Likewise. | |
661 | (lwp_is_stopped_by_watchpoint): Likewise. | |
662 | * x86-linux-nat.c (update_debug_registers_callback): | |
663 | Use lwp_is_stopped. | |
664 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and | |
665 | lwp_stop_reason. | |
666 | ||
b2f7c7e8 GB |
667 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
668 | ||
669 | * linux-nat.h (linux_stop_lwp): Move declaration to... | |
670 | * nat/linux-nat.h (linux_stop_lwp): New declaration. | |
671 | ||
6d4ee8c6 GB |
672 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
673 | ||
674 | * linux-nat.h: Include nat/linux-nat.h. | |
675 | (iterate_over_lwps): Move declaration to nat/linux-nat.h. | |
676 | * nat/linux-nat.h (struct lwp_info): New forward declaration. | |
677 | (iterate_over_lwps_ftype): New typedef. | |
678 | (iterate_over_lwps): New declaration. | |
679 | * linux-nat.h (iterate_over_lwps): Update comment. Use | |
680 | iterate_over_lwps_ftype. Update callback return value check. | |
681 | ||
70a0bb6b GB |
682 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
683 | ||
684 | * x86-nat.h (x86_debug_reg_state): Move declaration to... | |
685 | * nat/x86-dregs.h (x86_debug_reg_state): New declaration. | |
686 | ||
7b669087 GB |
687 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
688 | ||
689 | * nat/linux-nat.h (current_lwp_ptid): New declaration. | |
690 | * linux-nat.c (current_lwp_ptid): New function. | |
691 | * x86-linux-nat.c: Include nat/linux-nat.h. | |
692 | (x86_linux_dr_get_addr): Use current_lwp_ptid. | |
693 | (x86_linux_dr_get_control): Likewise. | |
694 | (x86_linux_dr_get_status): Likewise. | |
695 | (x86_linux_dr_set_control): Likewise. | |
696 | (x86_linux_dr_set_addr): Likewise. | |
697 | ||
15630549 AT |
698 | 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com> |
699 | ||
700 | PR breakpoints/16466 | |
701 | * breakpoint.c (create_breakpoint): Set thread on breakpoint struct. | |
702 | ||
8a4506c0 JB |
703 | 2015-03-23 Joel Brobecker <brobecker@adacore.com> |
704 | ||
705 | * ser-mingw.c (ser_windows_setparity): Fix indentation. | |
706 | * ser-unix.c (hardwire_setparity): Likewise. | |
707 | ||
236af5e3 YG |
708 | 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
709 | ||
710 | * NEWS: Mention set/show serial parity command. | |
711 | * monitor.c (monitor_open): Call serial_setparity. | |
712 | * remote.c (remote_open_1): Likewise. | |
713 | * ser-base.c (ser_base_serparity): New function. | |
714 | * ser-base.h (ser_base_setparity): Add declaration. | |
715 | * ser-go32.c (dos_ops): Set "setparity" field. | |
716 | * ser-mingw.c (ser_windows_raw): Do not set state.fParity and | |
717 | state.Parity. | |
718 | (ser_windows_setparity): New function. | |
719 | (hardwire_ops): Add ser_windows_setparity. | |
720 | (tty_ops): Add NULL for setparity field. | |
721 | (pipe_ops): Add ser_base_setparity. | |
722 | (tcp_ops): Likewise. | |
723 | * ser-pipe.c (pipe_ops): Likewise. | |
724 | * ser-tcp.c (tcp_ops): Likewise. | |
725 | * ser-unix.c (hardwire_setparity): Add declaration. | |
726 | (hardwire_raw): Don't reset PARENB flag. | |
727 | (hardwire_setparity): New function. | |
728 | (hardwire_ops): Add hardwire_setparity. | |
729 | * serial.c (serial_setparity): New function. | |
730 | (serial_parity): New global. | |
731 | (parity_none, parity_odd, parity_even, parity_enums, parity): | |
732 | New static globals. | |
733 | (set_parity): New function. | |
734 | (_initialize_serial): Add set/show serial parity commands. | |
735 | * serial.h (GDBPARITY_NONE): Define. | |
736 | (GDBPARITY_ODD): Define. | |
737 | (GDBPARITY_EVEN): Define. | |
738 | (serial_setparity) Add declaration. | |
739 | (struct serial_ops): Add setparity field. | |
740 | * target.h (serial_parity): Add declaration. | |
741 | ||
32b40af9 KS |
742 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
743 | ||
744 | * linespec.c (linespec_lexer_lex_keyword): Update comment. | |
745 | ||
693dca06 KS |
746 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
747 | ||
748 | * breakpoint.c (parse_breakpoint_sals): Use | |
749 | linespec_lexer_lex_keyword to ascertain if the user specified | |
750 | a NULL location. | |
751 | * linespec.c [IF_KEYWORD_INDEX]: Define. | |
752 | (linespec_lexer_lex_keyword): Export. | |
753 | (struct ls_parser) <keyword_ok>: Remove. | |
754 | A keyword is only a keyword if not followed by another keyword. | |
755 | (linespec_lexer_lex_one): Remove keyword_ok handling. | |
756 | Add comment explaining why the parsing stream is not advanced | |
757 | when a keyword is seen. | |
758 | (parse_linespec): Remove parser->keyword_ok. | |
759 | * linespec.h (linespec_lexer_lex_keyword): Add declaration. | |
760 | ||
7e993ebf KS |
761 | 2015-03-23 Keith Seitz <keiths@redhat.com> |
762 | ||
763 | PR gdb/18021 | |
764 | * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint | |
765 | if we find a static method with DW_AT_vtable_elem_location. | |
766 | ||
b1a0f704 EZ |
767 | 2015-03-21 Eli Zaretskii <eliz@gnu.org> |
768 | ||
769 | * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter | |
770 | before the second loop, to avoid undefined behavior. Reported by | |
771 | Anton Blanchard <anton@samba.org>. | |
772 | ||
d9823cbb KB |
773 | 2015-03-20 Keven Boell <keven.boell@intel.com> |
774 | ||
775 | * gdbtypes.c (resolve_dynamic_type_internal): Adapt | |
776 | data_location usage to linked list. | |
777 | (resolve_dynamic_type_internal): Adapt data_location to | |
778 | linked list. | |
779 | (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function. | |
780 | (copy_type_recursive, copy_type): Add copy of linked list. | |
781 | * gdbtypes.h (enum dynamic_prop_node_kind): New enum. | |
782 | (struct dynamic_prop_list): New struct. | |
783 | * dwarf2read.c (set_die_type): Set data_location data. | |
784 | ||
2e7bf1d7 PA |
785 | 2015-03-20 Pedro Alves <palves@redhat.com> |
786 | ||
787 | * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to | |
788 | inner block and make it const. | |
789 | * machoread.c (get_archive_prefix_len): Make "lparen" const. | |
790 | ||
7a26bd4d PA |
791 | 2015-03-20 Pedro Alves <palves@redhat.com> |
792 | ||
793 | * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. | |
794 | * breakpoint.h (set_breakpoint_condition): Update declaration. | |
795 | ||
cd46431b PA |
796 | 2015-03-20 Pedro Alves <palves@redhat.com> |
797 | ||
798 | * tui/tui-io.c (tui_expand_tabs): Make "s1" const. | |
799 | ||
e28566f7 PA |
800 | 2015-03-20 Pedro Alves <palves@redhat.com> |
801 | ||
802 | * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const. | |
803 | ||
f6fc92f6 PA |
804 | 2015-03-20 Pedro Alves <palves@redhat.com> |
805 | ||
806 | * remote-m32r-sdi.c (m32r_open): Make "port_str" const. | |
807 | ||
c32ed3ef PA |
808 | 2015-03-20 Pedro Alves <palves@redhat.com> |
809 | ||
810 | * nto-tdep.c (nto_find_and_open_solib): Make "endian" const. | |
811 | (nto_init_solib_absolute_prefix): Likewise. | |
812 | ||
53e78085 PA |
813 | 2015-03-20 Pedro Alves <palves@redhat.com> |
814 | ||
815 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const. | |
816 | * spu-tdep.c (spu_gdbarch_init): Make "name" const. | |
817 | ||
bc23328c JK |
818 | 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
819 | ||
820 | * config/djgpp/README: Remove gdb.hp. | |
821 | ||
e8ffc436 YQ |
822 | 2015-03-20 Yao Qi <yao.qi@linaro.org> |
823 | ||
824 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
825 | set_gdbarch_cannot_step_breakpoint. | |
826 | ||
23f238d3 PA |
827 | 2015-03-19 Pedro Alves <palves@redhat.com> |
828 | ||
829 | * linux-nat.c (linux_resume_one_lwp): Rename to ... | |
830 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, | |
831 | instead call perror_with_name. | |
832 | (check_ptrace_stopped_lwp_gone): New function. | |
833 | (linux_resume_one_lwp): Reimplement as wrapper around | |
834 | linux_resume_one_lwp_throw that swallows errors if the LWP is | |
835 | gone. | |
836 | (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and | |
837 | swallows errors if the LWP is gone. Use | |
838 | linux_resume_one_lwp_throw instead of linux_resume_one_lwp. | |
839 | ||
eb54c8bf PA |
840 | 2015-03-19 Pedro Alves <palves@redhat.com> |
841 | ||
842 | * linux-nat.c (status_callback): Return early if the LWP has no | |
843 | status pending. | |
844 | ||
b90fc188 PA |
845 | 2015-03-19 Pedro Alves <palves@redhat.com> |
846 | ||
847 | * linux-nat.c (select_event_lwp_callback): Update comment to no | |
848 | longer mention SIGTRAP. | |
849 | ||
670f82d4 TG |
850 | 2015-03-18 Tristan Gingold <gingold@adacore.com> |
851 | ||
852 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move | |
853 | redirection code to ... | |
854 | (amd64_windows_frame_decode_insns): ... Here. Fix in prologue | |
855 | checks. Fix SAVE_NONVOL operations. Add debug code and comments. | |
856 | ||
464b0089 GB |
857 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
858 | ||
859 | (remote_protocol_features): Remove the "vFile:fstat" feature. | |
860 | (remote_hostio_fstat): Probe for "vFile:fstat" support. | |
861 | ||
f68f11b7 YQ |
862 | 2015-03-11 Yao Qi <yao.qi@linaro.org> |
863 | ||
864 | PR tdep/18107 | |
865 | * aarch64-linux-tdep.c: Include xml-syscall.h | |
866 | (aarch64_linux_get_syscall_number): New function. | |
867 | (aarch64_linux_init_abi): Call | |
868 | set_gdbarch_get_syscall_number. | |
869 | * syscalls/aarch64-linux.xml: New file. | |
870 | ||
393bd0c0 YG |
871 | 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com> |
872 | ||
873 | * ser-base.h (ser_base_setstopbits): Change second argument name | |
874 | from "rate" to "num". | |
875 | ||
7f3647e2 GB |
876 | 2015-03-17 Gary Benson <gbenson@redhat.com> |
877 | Luke Allardyce <lukeallardyce@gmail.com> | |
878 | ||
879 | PR gdb/18131 | |
880 | * common/common-remote-fileio.h (sys/stat.h): New include. | |
881 | (stuct stat): Remove forward declaration. | |
882 | ||
3ce5b6e2 JB |
883 | 2015-03-16 John Baldwin <jhb@FreeBSD.org> |
884 | ||
885 | * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers | |
886 | before writing core register notes. | |
887 | ||
d053f6be YZ |
888 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
889 | Pedro Alves <palves@redhat.com> | |
890 | ||
891 | * gdb_curses.h (tgetnum): Mark with EXTERN_C. | |
892 | * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs) | |
893 | (tgoto): Wrap with extern "C". | |
894 | ||
b1a921c8 PA |
895 | 2015-03-16 Pedro Alves <palves@redhat.com> |
896 | Yuanhui Zhang <asmwarrior@gmail.com> | |
897 | ||
898 | * stub-termcap.c (tputs): Change prototype. | |
899 | ||
876d1cd7 YZ |
900 | 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com> |
901 | Pedro Alves <palves@redhat.com> | |
902 | ||
903 | * windows-nat.c (struct thread_info_struct): Rename to ... | |
904 | (struct windows_thread_info_struct): ... this. | |
905 | (thread_info): Rename to ... | |
906 | (windows_thread_info): ... this. | |
907 | All users updated. | |
908 | ||
0800b440 JK |
909 | 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
910 | Pedro Alves <palves@redhat.com> | |
911 | ||
912 | * NEWS: New Removed targets and native configurations. | |
913 | ||
914 | 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> | |
61a12cfa JK |
915 | |
916 | Remove HPUX. | |
917 | * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o. | |
918 | (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o. | |
919 | (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and | |
920 | ia64-hpux-tdep.h, solib-ia64-hpux.h. | |
921 | (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c, | |
922 | ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c. | |
923 | * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and | |
924 | hppa-hpux-tdep.c. | |
925 | * config/ia64/hpux.mh: Remove file. | |
926 | * config/pa/hpux.mh: Remove file. | |
927 | * configure: Rebuilt. | |
928 | * configure.ac (dlgetmodinfo, somread.o): Remove. | |
929 | * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
930 | (ia64-*-hpux*): Remove its float format exception. | |
931 | * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. | |
932 | * hppa-hpux-nat.c: Remove file. | |
933 | * hppa-hpux-tdep.c: Remove file. | |
934 | * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private): | |
935 | Move them here from hppa-tdep.h | |
936 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static. | |
937 | (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception. | |
938 | * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private): | |
939 | Move them to hppa-tdep.c. | |
940 | (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove | |
941 | declarations. | |
942 | * ia64-hpux-nat.c: Remove file. | |
943 | * ia64-hpux-tdep.c: Remove file. | |
944 | * ia64-hpux-tdep.h: Remove file. | |
945 | * inf-ttrace.c: Remove file. | |
946 | * inf-ttrace.h: Remove file. | |
947 | * solib-ia64-hpux.c: Remove file. | |
948 | * solib-ia64-hpux.h: Remove file. | |
949 | * solib-pa64.c: Remove file. | |
950 | * solib-pa64.h: Remove file. | |
951 | * solib-som.c: Remove file. | |
952 | * solib-som.h: Remove file. | |
953 | * somread.c: Remove file. | |
954 | ||
25268153 JB |
955 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
956 | ||
957 | * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util). | |
958 | * config.in: Regenerate. | |
959 | * configure: Regenerate. | |
960 | * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't | |
961 | define. | |
962 | (fbsd_find_memory_regions): Use kinfo_getvmmap to | |
963 | enumerate memory regions if present. | |
964 | ||
773eacf5 JB |
965 | 2015-03-13 John Baldwin <jhb@FreeBSD.org> |
966 | ||
967 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes. | |
968 | * i386fbsd-tdep.c: Fix style in various gdb_static_assert | |
969 | expressions. | |
970 | (i386fbsd_sigtramp_p): Likewise. | |
971 | ||
01b6bdb0 JB |
972 | 2015-03-12 John Baldwin <jhb@FreeBSD.org> |
973 | ||
974 | * MAINTAINERS (Write After Approval): Add John Baldwin. | |
975 | ||
811a659a GB |
976 | 2015-03-12 Gary Benson <gbenson@redhat.com> |
977 | ||
978 | * solib.c (_initialize_solib): Make "set/show sysroot" use | |
979 | add_setshow_optional_filename_cmd so it can be restored to | |
980 | empty after being set. | |
981 | ||
10304ef3 SDJ |
982 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
983 | ||
984 | * Makefile.in (SFILES): New source break-catch-syscall.c. | |
985 | (COMMON_OBS): New object break-catch-syscall.o. | |
986 | * break-catch-syscall.c: New file. | |
987 | * breakpoint.c: Remove inclusion of "xml-syscall.h". | |
988 | (syscall_catchpoint_p): Move declaration to break-catch-syscall.c | |
989 | (struct syscall_catchpoint): Likewise. | |
990 | (dtor_catch_syscall): Likewise. | |
991 | (catch_syscall_inferior_data): Likewise. | |
992 | (struct catch_syscall_inferior_data): Likewise. | |
993 | (get_catch_syscall_inferior_data): Likewise. | |
994 | (catch_syscall_inferior_data_cleanup): Likewise. | |
995 | (insert_catch_syscall): Likewise. | |
996 | (remove_catch_syscall): Likewise. | |
997 | (breakpoint_hit_catch_syscall): Likewise. | |
998 | (print_it_catch_syscall): Likewise. | |
999 | (print_one_catch_syscall): Likewise. | |
1000 | (print_mention_catch_syscall): Likewise. | |
1001 | (print_recreate_catch_syscall): Likewise. | |
1002 | (catch_syscall_breakpoint_ops): Likewise. | |
1003 | (syscall_catchpoint_p): Likewise. | |
1004 | (create_syscall_event_catchpoint): Likewise. | |
1005 | (catch_syscall_split_args): Likewise. | |
1006 | (catch_syscall_command_1): Likewise. | |
1007 | (is_syscall_catchpoint_enabled): Likewise. | |
1008 | (catch_syscall_enabled): Likewise. | |
1009 | (catching_syscall_number): Likewise. | |
1010 | (catch_syscall_completer): Likewise. | |
1011 | (clear_syscall_counts): Likewise. | |
1012 | (initialize_breakpoint_ops): Move initialization of syscall | |
1013 | catchpoints to break-catch-syscall.c. | |
1014 | (_initialize_breakpoint): Move code related to syscall catchpoints | |
1015 | to break-catch-syscall.c. | |
1016 | ||
badd37ce SDJ |
1017 | 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com> |
1018 | ||
1019 | * breakpoint.c (breakpoint_find_if): New function. | |
1020 | * breakpoint.h (breakpoint_find_if): New prototype. | |
1021 | ||
0a93529c GB |
1022 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
1023 | ||
1024 | * remote-fileio.h (remote_fileio_to_host_stat): New declaration. | |
1025 | * remote-fileio.c (remote_fileio_to_host_uint): New function. | |
1026 | (remote_fileio_to_host_ulong): Likewise. | |
1027 | (remote_fileio_to_host_mode): Likewise. | |
1028 | (remote_fileio_to_host_time): Likewise. | |
1029 | (remote_fileio_to_host_stat): Likewise. | |
1030 | * remote.c (PACKET_vFile_fstat): New enum value. | |
1031 | (remote_protocol_features): Register the "vFile:fstat" feature. | |
1032 | (remote_hostio_fstat): New function. | |
1033 | (remote_bfd_iovec_stat): Use the above. | |
1034 | (_initialize_remote): Register new "set/show remote | |
1035 | hostio-fstat-packet" command. | |
1036 | * symfile.c (separate_debug_file_exists): Update comment. | |
1037 | * NEWS: Announce new vFile:fstat packet. | |
1038 | ||
791c0056 GB |
1039 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
1040 | ||
1041 | * common/common-remote-fileio.h: New file. | |
1042 | * common/common-remote-fileio.c: Likewise. | |
1043 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. | |
1044 | (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h. | |
1045 | (COMMON_OBS): Add common-remote-fileio.o. | |
1046 | (common-remote-fileio.o): New rule. | |
1047 | * remote-fileio.h (common-remote-fileio.h): New include. | |
1048 | * remote-fileio.c (gdb/fileio.h): Do not include. | |
1049 | (remote_fileio_to_be): Moved to common-remote-fileio.h. | |
1050 | (remote_fileio_to_fio_uint): Likewise. | |
1051 | (remote_fileio_to_fio_time): Likewise. | |
1052 | (remote_fileio_mode_to_target): Moved to common-remote-fileio.c. | |
1053 | (remote_fileio_to_fio_mode): Likewise. | |
1054 | (remote_fileio_to_fio_ulong): Likewise. | |
1055 | (remote_fileio_to_fio_stat): Likewise. | |
1056 | ||
1390d0ef AW |
1057 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
1058 | ||
1059 | * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which | |
1060 | we were checking the cached type, not the cached dynamic type. | |
1061 | ||
84a4591a AW |
1062 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
1063 | ||
1064 | * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and | |
1065 | other strings, as these are on the GC'd heap, and will be | |
1066 | collected along with the smob. | |
1067 | ||
85642ba0 AW |
1068 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
1069 | ||
1070 | * guile/scm-objfile.c (gdbscm_objfile_progspace): New function. | |
1071 | (objfile_functions): Bind gdbscm_objfile_progspace to | |
1072 | objfile-progspace. | |
1073 | * guile/lib/gdb.scm: Add objfile-progspace to exports. | |
1074 | ||
92fab5a6 AW |
1075 | 2015-03-11 Andy Wingo <wingo@igalia.com> |
1076 | ||
1077 | * guile/guile.c (_initialize_guile): Disable automatic | |
1078 | finalization, if Guile offers us that possibility. | |
1079 | * guile/guile.c (call_initialize_gdb_module): | |
1080 | * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run | |
1081 | finalizers in appropriate places. | |
1082 | * configure.ac (AC_TRY_LIBGUILE): Add a check for | |
1083 | scm_set_automatic_finalization_enabled. | |
1084 | * configure: Regenerated. | |
1085 | ||
f054145e AA |
1086 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1087 | ||
1088 | * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using | |
1089 | SAL, if possible. | |
1090 | ||
18396193 AA |
1091 | 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1092 | ||
1093 | * s390-linux-nat.c (struct arch_lwp_info): New. | |
1094 | (s390_fix_watch_points): Rename to... | |
1095 | (s390_prepare_to_resume): ...this. Skip the PER info update | |
1096 | unless the watch points have changed. | |
1097 | (s390_refresh_per_info, s390_new_thread): New functions. | |
1098 | (s390_insert_watchpoint): Call s390_refresh_per_info instead of | |
1099 | s390_fix_watch_points. | |
1100 | (s390_remove_watchpoint): Likewise. | |
1101 | (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points. | |
1102 | Register s390_prepare_to_resume. | |
1103 | ||
9eb1356e PA |
1104 | 2015-03-09 Pedro Alves <palves@redhat.com> |
1105 | ||
1106 | Revert: | |
1107 | 2015-03-07 Pedro Alves <palves@redhat.com> | |
1108 | * common/gdb_socket.h: New file. | |
1109 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
1110 | sys/socket.h. | |
1111 | (net_open): Use union gdb_sockaddr_u. | |
1112 | ||
aac331e4 PA |
1113 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1114 | ||
1115 | * configure.ac (build_warnings): Move -Wmissing-prototypes | |
1116 | -Wdeclaration-after-statement -Wmissing-parameter-type | |
1117 | -Wold-style-declaration -Wold-style-definition to the C-specific | |
1118 | set. | |
1119 | * configure: Regenerate. | |
1120 | ||
366c75fc PA |
1121 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1122 | ||
1123 | * common/gdb_socket.h: New file. | |
1124 | * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor | |
1125 | sys/socket.h. | |
1126 | (net_open): Use union gdb_sockaddr_u. | |
1127 | ||
72df25b2 PA |
1128 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1129 | ||
1130 | * common/common-exceptions.c [!__cplusplus] (enum catcher_state) | |
1131 | (exceptions_state_mc_action_iter) | |
1132 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
1133 | Don't define. | |
1134 | [__cplusplus] (try_scope_depth): New global. | |
1135 | [__cplusplus] (exception_try_scope_entry) | |
1136 | (exception_try_scope_exit, gdb_exception_sliced_copy) | |
1137 | (exception_rethrow): New functions. | |
1138 | (throw_exception): In C++ mode, throw | |
1139 | gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and | |
1140 | gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR. | |
1141 | (throw_it): In C++ mode, use try_scope_depth. | |
1142 | * common/common-exceptions.h [!__cplusplus] | |
1143 | (exceptions_state_mc_action_iter) | |
1144 | (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): | |
1145 | Don't declare. | |
1146 | [__cplusplus] (exception_try_scope_entry) | |
1147 | (exception_try_scope_exit, exception_rethrow): Declare. | |
1148 | [__cplusplus] (struct exception_try_scope): New struct. | |
1149 | [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real | |
1150 | C++ exceptions. | |
1151 | (struct gdb_exception_RETURN_MASK_ALL) | |
1152 | (struct gdb_exception_RETURN_MASK_ERROR) | |
1153 | (struct gdb_exception_RETURN_MASK_QUIT): New types. | |
1154 | ||
284e6217 PA |
1155 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1156 | ||
1157 | * main.c (handle_command_errors): Remove volatile qualifier from | |
1158 | parameter. | |
1159 | ||
6c63c96a PA |
1160 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1161 | ||
1162 | * breakpoint.c (save_breakpoints): Adjust to avoid code between | |
1163 | TRY and CATCH. | |
1164 | * gdbtypes.c (safe_parse_type): Remove empty line. | |
1165 | (types_deeply_equal): | |
1166 | * guile/scm-frame.c (gdbscm_frame_name): | |
1167 | * linux-thread-db.c (find_new_threads_once): | |
1168 | * python/py-breakpoint.c (bppy_get_commands): | |
1169 | * record-btrace.c (record_btrace_insert_breakpoint) | |
1170 | (record_btrace_remove_breakpoint, record_btrace_start_replaying) | |
1171 | (record_btrace_start_replaying): Adjust to avoid code between TRY | |
1172 | and CATCH. | |
1173 | ||
492d29ea PA |
1174 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1175 | ||
1176 | * common/common-exceptions.c (struct catcher) <exception>: No | |
1177 | longer a pointer to volatile exception. Now an exception value. | |
1178 | <mask>: Delete field. | |
1179 | (exceptions_state_mc_init): Remove all parameters. Adjust. | |
1180 | (exceptions_state_mc): No longer pop the catcher here. | |
1181 | (exceptions_state_mc_catch): New function. | |
1182 | (throw_exception): Adjust. | |
1183 | * common/common-exceptions.h (exceptions_state_mc_init): Remove | |
1184 | all parameters. | |
1185 | (exceptions_state_mc_catch): Declare. | |
1186 | (TRY_CATCH): Rename to ... | |
1187 | (TRY): ... this. Remove EXCEPTION and MASK parameters. | |
1188 | (CATCH, END_CATCH): New. | |
1189 | All callers adjusted. | |
1190 | ||
ece957c8 TT |
1191 | 2015-03-07 Tom Tromey <tromey@redhat.com> |
1192 | ||
1193 | * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX. | |
1194 | ||
7556d4a4 PA |
1195 | 2015-03-07 Pedro Alves <palves@redhat.com> |
1196 | ||
1197 | * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) | |
1198 | (amd64_epilogue_frame_cache): Normal exception handling code. | |
1199 | * break-catch-throw.c (check_status_exception_catchpoint) | |
1200 | (re_set_exception_catchpoint): Ditto. | |
1201 | * cli/cli-interp.c (safe_execute_command): | |
1202 | * cli/cli-script.c (script_from_file): Ditto. | |
1203 | * compile/compile-c-symbols.c (generate_c_for_for_one_variable): | |
1204 | Ditto. | |
1205 | * compile/compile-object-run.c (compile_object_run): Ditto. | |
1206 | * cp-abi.c (baseclass_offset): Ditto. | |
1207 | * cp-valprint.c (cp_print_value): Ditto. | |
1208 | * exceptions.c (catch_exceptions_with_msg): | |
1209 | * frame-unwind.c (frame_unwind_try_unwinder): Ditto. | |
1210 | * frame.c (get_frame_address_in_block_if_available): Ditto. | |
1211 | * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) | |
1212 | (i386_sigtramp_frame_cache): Ditto. | |
1213 | * infcmd.c (post_create_inferior): Ditto. | |
1214 | * linespec.c (parse_linespec, find_linespec_symbols): | |
1215 | * p-valprint.c (pascal_object_print_value): Ditto. | |
1216 | * parse.c (parse_expression_for_completion): Ditto. | |
1217 | * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto. | |
1218 | * remote.c (remote_get_noisy_reply): Ditto. | |
1219 | * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto. | |
1220 | * solib-svr4.c (solib_svr4_r_map): Ditto. | |
1221 | ||
f873665f | 1222 | 2015-03-06 Gary Benson <gbenson@redhat.com> |
61012eef GB |
1223 | |
1224 | * common/common-utils.h (startswith): New inline function. | |
1225 | All places where this logic was used updated to use the above. | |
1226 | ||
68901c4d PA |
1227 | 2015-03-05 Pedro Alves <palves@redhat.com> |
1228 | ||
1229 | PR gdb/18002 | |
1230 | * mem-break.c (default_memory_insert_breakpoint): Set shadow_len | |
1231 | after reading the breakpoint's shadow memory. | |
1232 | ||
2dcb2b1a MK |
1233 | 2015-03-05 Mark Kettenis <kettenis@gnu.org> |
1234 | ||
1235 | * hppabsd-nat.c: Remove file. | |
1236 | * hppaobsd-nat.c: New file. | |
1237 | * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add | |
1238 | hppaobsd-nat.c. | |
1239 | * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with | |
1240 | hppaobsd-nat.o. | |
1241 | ||
527a273a PA |
1242 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1243 | ||
1244 | * target.h (struct target_ops) <to_decr_pc_after_break>: Delete. | |
1245 | (target_decr_pc_after_break): Delete declaration. | |
1246 | * target.c (default_target_decr_pc_after_break) | |
1247 | (target_decr_pc_after_break): Delete. | |
1248 | * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use | |
1249 | gdbarch_decr_pc_after_break instead of target_decr_pc_after_break. | |
1250 | * linux-thread-db.c (check_event): Likewise. | |
1251 | * infrun.c (adjust_pc_after_break): Likewise. | |
1252 | * darwin-nat.c (cancel_breakpoint): Likewise. | |
1253 | * aix-thread.c (aix_thread_wait): Likewise. | |
1254 | * target-delegates.c: Regenerate. | |
1255 | ||
faf09f01 PA |
1256 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1257 | ||
1258 | * linux-nat.c (save_sigtrap): Check for breakpoints before | |
1259 | checking watchpoints. | |
1260 | (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a | |
1261 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. | |
1262 | (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether | |
1263 | a breakpoint triggered based on the SIGTRAP's siginfo.si_code. | |
1264 | (linux_nat_stopped_by_sw_breakpoint) | |
1265 | (linux_nat_supports_stopped_by_sw_breakpoint) | |
1266 | (linux_nat_stopped_by_hw_breakpoint) | |
1267 | (linux_nat_supports_stopped_by_hw_breakpoint): New functions. | |
1268 | (linux_nat_wait_1): Don't re-increment the PC if relying on | |
1269 | SIGTRAP's siginfo->si_code. | |
1270 | (linux_nat_add_target): Install new target methods. | |
1271 | * linux-thread-db.c (check_event): Don't account for breakpoint PC | |
1272 | offset if the target already adjusted the PC. | |
1273 | * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New. | |
1274 | (GDB_ARCH_TRAP_BRKPT): New. | |
1275 | (TRAP_HWBKPT): Define if not already defined. | |
1276 | ||
f7e6eed5 PA |
1277 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1278 | ||
1279 | * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons. | |
1280 | * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>: | |
1281 | Delete field. | |
1282 | <stop_reason>: New field. | |
1283 | (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values. | |
1284 | (packet_set_cmd_state): New function. | |
1285 | (remote_protocol_features): Register the "swbreak" and "hwbreak" | |
1286 | features. | |
1287 | (remote_query_supported): If not disabled with the corresponding | |
1288 | "set remote foo-packet" command, report support for the swbreak | |
1289 | and hwbreak features. | |
1290 | (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete | |
1291 | field. | |
1292 | <stop_reason>: New field. | |
1293 | (remote_parse_stop_reply): Handle "swbreak" and "hwbreak". | |
1294 | (remote_wait_as): Adjust. | |
1295 | (remote_stopped_by_sw_breakpoint) | |
1296 | (remote_supports_stopped_by_sw_breakpoint) | |
1297 | (remote_stopped_by_hw_breakpoint) | |
1298 | (remote_supports_stopped_by_hw_breakpoint): New functions. | |
1299 | (remote_stopped_by_watchpoint): New function. | |
1300 | (init_remote_ops): Install them. | |
1301 | (_initialize_remote): Register new "set/show remote | |
1302 | swbreak-feature-packet" and "set/show remote | |
1303 | swbreak-feature-packet" commands. | |
1304 | ||
9e8915c6 PA |
1305 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1306 | ||
1307 | * btrace.h: Include target/waitstatus.h. | |
1308 | (struct btrace_thread_info) <stop_reason>: New field. | |
1309 | * record-btrace.c (record_btrace_step_thread): Use | |
1310 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
1311 | (record_btrace_decr_pc_after_break): Delete. | |
1312 | (record_btrace_stopped_by_sw_breakpoint) | |
1313 | (record_btrace_supports_stopped_by_sw_breakpoint) | |
1314 | (record_btrace_stopped_by_hw_breakpoint) | |
1315 | (record_btrace_supports_stopped_by_hw_breakpoint): New functions. | |
1316 | (init_record_btrace_ops): Install them. | |
1317 | * record-full.c (record_full_hw_watchpoint): Delete and replace | |
1318 | with ... | |
1319 | (record_full_stop_reason): ... this throughout. | |
1320 | (record_full_exec_insn): Adjust. | |
1321 | (record_full_wait_1): Adjust. No longer re-increment the PC. | |
1322 | (record_full_wait_1): Adjust. Use | |
1323 | record_check_stopped_by_breakpoint instead of breakpoint_here_p. | |
1324 | (record_full_stopped_by_watchpoint): Adjust. | |
1325 | (record_full_stopped_by_sw_breakpoint) | |
1326 | (record_full_supports_stopped_by_sw_breakpoint) | |
1327 | (record_full_supports_stopped_by_sw_breakpoint) | |
1328 | (record_full_stopped_by_hw_breakpoint) | |
1329 | (record_full_supports_stopped_by_hw_breakpoint): New functions. | |
1330 | (init_record_full_ops, init_record_full_core_ops): Install them. | |
1331 | * record.c (record_check_stopped_by_breakpoint): New function. | |
1332 | * record.h: Include target/waitstatus.h. | |
1333 | (record_check_stopped_by_breakpoint): New declaration. | |
1334 | ||
15c66dd6 PA |
1335 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1336 | ||
1337 | enum lwp_stop_reason -> enum target_stop_reason | |
1338 | * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint) | |
1339 | (linux_nat_stopped_by_watchpoint, status_callback) | |
1340 | (linux_nat_wait_1): Adjust. | |
1341 | * linux-nat.h (enum lwp_stop_reason): Delete. | |
1342 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. | |
1343 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
1344 | * target/waitstatus.h (enum target_stop_reason): New. | |
1345 | ||
1cf4d951 PA |
1346 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1347 | ||
1348 | * breakpoint.c (need_moribund_for_location_type): New function. | |
1349 | (bpstat_stop_status): Don't skipping checking moribund locations | |
1350 | of breakpoint types which the target tell caused a stop. | |
1351 | (program_breakpoint_here_p): New function, factored out from ... | |
1352 | (bp_loc_is_permanent): ... this. | |
1353 | (update_global_location_list): Don't create a moribund location if | |
1354 | the target supports reporting stops of the type of the removed | |
1355 | breakpoint. | |
1356 | * breakpoint.h (program_breakpoint_here_p): New declaration. | |
1357 | * infrun.c (adjust_pc_after_break): Return early if the target has | |
1358 | already adjusted the PC. Add comments. | |
1359 | (handle_signal_stop): If nothing explains a signal, and the target | |
1360 | tells us the stop was caused by a software breakpoint, check if | |
1361 | there's a breakpoint instruction in the memory. If so, adjust the | |
1362 | PC before presenting the stop to the user. Otherwise, ignore the | |
1363 | trap. If nothing explains a signal, and the target tells us the | |
1364 | stop was caused by a hardware breakpoint, ignore the trap. | |
1365 | * target.h (struct target_ops) <to_stopped_by_sw_breakpoint, | |
1366 | to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint, | |
1367 | to_supports_stopped_by_hw_breakpoint>: New fields. | |
1368 | (target_stopped_by_sw_breakpoint) | |
1369 | (target_supports_stopped_by_sw_breakpoint) | |
1370 | (target_stopped_by_hw_breakpoint) | |
1371 | (target_supports_stopped_by_hw_breakpoint): Define. | |
1372 | * target-delegates.c: Regenerate. | |
1373 | ||
79639e11 PA |
1374 | 2015-03-04 Pedro Alves <palves@redhat.com> |
1375 | ||
1376 | * infrun.c (follow_fork_inferior): Use the whole of the | |
1377 | inferior_ptid and pending_follow.related_pid ptids instead of | |
1378 | building ptids from the process components. Adjust verbose output | |
1379 | to use target_pid_to_str. | |
1380 | * linux-nat.c (linux_child_follow_fork): Use the whole of the | |
1381 | inferior_ptid and pending_follow.related_pid ptids instead of | |
1382 | building ptids from the process components. | |
1383 | ||
e85e8e5e MK |
1384 | 2015-03-04 Mark Kettenis <kettenis@gnu.org> |
1385 | ||
1386 | * inf-ptrace.c [PT_GET_PROCESS_STATE] | |
1387 | (inf_ptrace_insert_fork_catchpoint): New function. | |
1388 | (inf_ptrace_remove_fork_catchpoint): New function. | |
1389 | (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them. | |
1390 | ||
87de11c0 AA |
1391 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1392 | ||
1393 | * s390-linux-tdep.c (s390_register_name): Return empty string | |
1394 | instead of NULL for registers that shouldn't be visible. | |
1395 | ||
d851a69a AA |
1396 | 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1397 | ||
1398 | * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall | |
1399 | XML file for 64-bit targets. | |
1400 | ||
b072f6c1 SM |
1401 | 2015-03-03 Simon Marchi <simon.marchi@ericsson.com> |
1402 | ||
1403 | * target.h (find_default_create_inferior): Remove declaration. | |
1404 | (find_default_attach): Likewise. | |
1405 | ||
c1593e4f PA |
1406 | 2015-03-03 Pedro Alves <palves@redhat.com> |
1407 | ||
1408 | * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace. | |
1409 | Use ptid_get_pid to get the overall process id when resuming all | |
1410 | threads. | |
1411 | ||
90ad5e1d PA |
1412 | 2015-03-03 Pedro Alves <palves@redhat.com> |
1413 | ||
1414 | * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of | |
1415 | the lwp field of ptid. Pass the full ptid to get_thread_regcache. | |
1416 | * inf-ptrace.c (get_ptrace_pid): New function. | |
1417 | (inf_ptrace_resume): Use it. | |
1418 | * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified | |
1419 | to the lower layer. | |
1420 | ||
d68e53f4 MM |
1421 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
1422 | ||
1423 | * nat/linux-btrace.c: Include sys/utsname.h. | |
1424 | (linux_determine_kernel_ptr_bits): New. | |
1425 | (linux_enable_bts): Call linux_determine_kernel_ptr_bits. | |
1426 | * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero | |
1427 | ptr_bits. | |
1428 | ||
986b6601 MM |
1429 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
1430 | ||
1431 | * btrace.c (ftrace_update_function): Treat return as tailcall for | |
1432 | "_dl_runtime_resolve". | |
1433 | ||
ce0dfbea MM |
1434 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
1435 | ||
1436 | * btrace.h (btrace_function) <lbegin, lend>: Remove. | |
1437 | * btrace.c (ftrace_debug): Do not print the line range. | |
1438 | (ftrace_skip_file, ftrace_update_lines): Remove. | |
1439 | (ftrace_new_function): Remove lbegin and lend initialization. | |
1440 | (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines. | |
1441 | * record-btrace.c (btrace_compute_src_line_range): New. | |
1442 | (btrace_call_history_src_line): Call btrace_compute_src_line_range. | |
1443 | ||
95e50b27 PA |
1444 | 2015-03-02 Pedro Alves <palves@redhat.com> |
1445 | ||
1446 | * infrun.c (follow_exec): Delete all threads of the process except | |
1447 | the event thread. Extended comments. | |
1448 | ||
00e474c2 JB |
1449 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
1450 | ||
1451 | * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false". | |
1452 | ||
cc7039d3 JB |
1453 | 2015-03-02 Joel Brobecker <brobecker@adacore.com> |
1454 | ||
1455 | * utils.h: Remove <stdbool.h> #include. | |
1456 | (producer_is_gcc): Change return type to "int". | |
1457 | * utils.c (producer_is_gcc): Change return type to int. | |
1458 | Return 1 instead of true, and 0 instead of false. | |
1459 | Adjust function documentation accordingly. | |
1460 | ||
550bdf96 AA |
1461 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1462 | ||
1463 | * s390-linux-nat.c (have_regset_vxrs): New static variable. | |
1464 | (s390_linux_fetch_inferior_registers): Handle vector registers, if | |
1465 | present. | |
1466 | (s390_linux_store_inferior_registers): Likewise. | |
1467 | (s390_get_hwcap): Remove function. Embed its logic... | |
1468 | (s390_read_description): ...here. Yield a target description with | |
1469 | vector registers if applicable. | |
1470 | * s390-linux-tdep.c: Include "features/s390-vx-linux64.c", | |
1471 | "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and | |
1472 | "features/s390x-tevx-linux64.c". | |
1473 | (struct gdbarch_tdep) <v0_full_regnum>: New field. | |
1474 | (s390_dwarf_regmap): Add vector registers. Remove bogus entries | |
1475 | for "GNU/Linux-specific registers". | |
1476 | (s390_dwarf_reg_r0l): New enum value. | |
1477 | (s390_dwarf_reg_to_regnum): Support vector registers. | |
1478 | (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers | |
1479 | of GPR lower halves. | |
1480 | (regnum_is_vxr_full): New function. | |
1481 | (s390_register_name): New function. | |
1482 | (s390_pseudo_register_name): Handle v0-v15, which are composed of | |
1483 | f0-f15 and v0l-v15l. | |
1484 | (s390_pseudo_register_type): Likewise. | |
1485 | (s390_pseudo_register_read): Likewise. | |
1486 | (s390_pseudo_register_write): Likewise. | |
1487 | (s390_value_from_register): Account for the fact that values are | |
1488 | placed left-justified in vector registers. | |
1489 | (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to | |
1490 | the vector reggroup and omit them from the general reggroup. | |
1491 | (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps. | |
1492 | (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets. | |
1493 | (s390_iterate_over_regset_sections): Add iterations for the two | |
1494 | new vector regsets. | |
1495 | (s390_core_read_description): Yield a target description with | |
1496 | vector registers if applicable. | |
1497 | (s390_gdbarch_init): Handle target descriptions with vector | |
1498 | registers. Add "register_name" gdbarch method. | |
1499 | (_initialize_s390_tdep): Call new tdesc initialization functions. | |
1500 | * s390-linux-tdep.h (HWCAP_S390_VX): New macro. | |
1501 | (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM) | |
1502 | (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM) | |
1503 | (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM) | |
1504 | (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM) | |
1505 | (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM) | |
1506 | (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM) | |
1507 | (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM) | |
1508 | (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM) | |
1509 | (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM) | |
1510 | (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM) | |
1511 | (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM) | |
1512 | (S390_V30_REGNUM, S390_V31_REGNUM): New macros. | |
1513 | (S390_NUM_REGS): Adjust value. | |
1514 | (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare. | |
1515 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) | |
1516 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise. | |
1517 | * NEWS: Announce S/390 vector register support. | |
1518 | ||
446899e4 AA |
1519 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1520 | ||
1521 | * features/s390-tevx-linux64.xml: New file. | |
1522 | * features/s390-vx-linux64.xml: New file. | |
1523 | * features/s390-vx.xml: New file. | |
1524 | * features/s390x-tevx-linux64.xml: New file. | |
1525 | * features/s390x-vx-linux64.xml: New file. | |
1526 | * features/Makefile (WHICH): Add s390-vx-linux64, | |
1527 | s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64. | |
1528 | (s390-vx-linux64-expedite, s390-tevx-linux64-expedite) | |
1529 | (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New | |
1530 | macros. | |
1531 | * features/s390-tevx-linux64.c: New generated file. | |
1532 | * features/s390-vx-linux64.c: Likewise. | |
1533 | * features/s390x-tevx-linux64.c: Likewise. | |
1534 | * features/s390x-vx-linux64.c: Likewise. | |
1535 | * regformats/s390-tevx-linux64.dat: Likewise. | |
1536 | * regformats/s390-vx-linux64.dat: Likewise. | |
1537 | * regformats/s390x-tevx-linux64.dat: Likewise. | |
1538 | * regformats/s390x-vx-linux64.dat: Likewise. | |
1539 | ||
b7236fbe DE |
1540 | 2015-02-28 Doug Evans <xdje42@gmail.com> |
1541 | ||
1542 | * symtab.h (struct symtab) <next>: Fix comment. | |
1543 | ||
02e62830 SM |
1544 | 2015-02-27 Simon Marchi <simon.marchi@ericsson.com> |
1545 | ||
1546 | * python/python.c (python_GdbModuleDef): Rename GdbMethods to | |
1547 | python_GdbMethods. | |
1548 | ||
bf36a1e7 PA |
1549 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1550 | ||
1551 | * dtrace-probe.c (dtrace_probe_ops): Make extern. | |
1552 | ||
ad6aff7d PA |
1553 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1554 | ||
1555 | * common/common-exceptions.h (exception_none): Declare. | |
1556 | * common/common-exceptions.c (exception_none): Moved from | |
1557 | exceptions.c. | |
1558 | (exceptions_state_mc_init): Use exception_none. | |
1559 | * exceptions.c (exception_none): Move to | |
1560 | common/common-exceptions.c. | |
1561 | * exceptions.h (exception_none): Move to | |
1562 | common/common-exceptions.h. | |
1563 | ||
97c18565 PA |
1564 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1565 | ||
1566 | * main.c (catch_command_errors, catch_command_errors_const): | |
1567 | Remove 'mask' argument. Adjust. | |
1568 | (captured_main): Adjust callers. | |
1569 | ||
e992c591 PA |
1570 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1571 | ||
1572 | * python/python-internal.h: Include "extension-priv.h". | |
1573 | ||
64166036 PA |
1574 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1575 | ||
1576 | * breakpoint.h (enum print_stop_action): Move further up in the | |
1577 | file. | |
1578 | ||
8a526fa6 PA |
1579 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1580 | ||
1581 | * gdbarch.sh: Include regcache.h. | |
1582 | * gdbarch.h: Regenerate. | |
1583 | ||
0fa9c223 PA |
1584 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1585 | ||
1586 | * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>: | |
1587 | Remove duplicate const. | |
1588 | * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove | |
1589 | duplicate const. | |
1590 | ||
7cf99fb1 PA |
1591 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1592 | ||
1593 | * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST. | |
1594 | * guile/guile.c (extension_language_guile): Use EXPORTED_CONST. | |
1595 | * features/feature_to_c.sh: Tag the generated xml_builtin array | |
1596 | with extern const in C++ mode. | |
1597 | ||
1424c16e TT |
1598 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
1599 | ||
1600 | * minidebug.c (struct lzma_stream): Rename to ... | |
1601 | (struct gdb_lzma_stream): ... this. | |
1602 | (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust. | |
1603 | ||
10367c7c PA |
1604 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1605 | ||
1606 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New | |
1607 | function. | |
1608 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
1609 | (mi_cmd_stack_list_variables): Use it. | |
1610 | ||
4180215b PA |
1611 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1612 | ||
1613 | * x86-linux-nat.c (u_debugreg_offset): New function. | |
1614 | (x86_linux_dr_get, x86_linux_dr_set): Use it. | |
1615 | ||
2f56f7c3 PA |
1616 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1617 | ||
1618 | * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward | |
1619 | declaration. | |
1620 | Include break-common.h. | |
1621 | ||
570dc176 TT |
1622 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
1623 | Pedro Alves <palves@redhat.com> | |
1624 | ||
1625 | * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for | |
1626 | local used to iterate over enums. | |
1627 | * completer.c (signal_completer): Likewise. | |
1628 | * i386-tdep.c (i386_stap_parse_special_token): Likewise. | |
1629 | * rs6000-tdep.c (powerpc_set_vector_abi): Likewise. | |
1630 | * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise. | |
1631 | * tui/tui-layout.c (next_layout, prev_layout): Likewise. | |
1632 | * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all) | |
1633 | (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise. | |
1634 | * tui-wingeneral.c (tui_refresh_all): Likewise. | |
1635 | ||
68c14faa PA |
1636 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1637 | ||
1638 | * target.h: Include "infrun.h". | |
1639 | ||
749bab01 PA |
1640 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1641 | ||
1642 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. | |
1643 | ||
3c14e5a3 PA |
1644 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1645 | ||
1646 | * common/agent.h (IPA_SYM_EXPORTED_NAME): New. | |
1647 | (IPA_SYM): Use it. | |
1648 | * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros. | |
1649 | ||
56000a98 PA |
1650 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1651 | ||
1652 | * cli-out.c (_rl_erase_entire_line): Move declaration out of | |
1653 | cli_mld_erase_entire_line, and make it extern "C". | |
1654 | * common/common-defs.h (EXTERN_C): New. | |
1655 | * completer.c (_rl_completion_prefix_display_length) | |
1656 | (_rl_print_completions_horizontally, QSFUNC): Move declarations | |
1657 | out of gdb_display_match_list_1. | |
1658 | (_rl_qsort_string_compare): Move declaration out of | |
1659 | gdb_display_match_list_1, and make it extern "C". | |
1660 | * defs.h (re_comp): Use EXTERN_C. | |
1661 | * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper, | |
1662 | and make it extern "C". | |
1663 | (monstartup): Move declaration out of maintenance_set_profile_cmd, | |
1664 | and make it extern "C". | |
1665 | (main): Move declaration out of maintenance_set_profile_cmd. | |
1666 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use | |
1667 | EXTERN_C. | |
1668 | ||
bcabf420 PA |
1669 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1670 | ||
1671 | * python/python.c (GdbMethods): Rename to ... | |
1672 | (python_GdbMethods): ... this and make extern. | |
1673 | (GdbModuleDef): Rename to ... | |
1674 | (python_GdbModuleDef): ... this and make extern. | |
1675 | ||
928dbe07 PA |
1676 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1677 | ||
1678 | * record-btrace.c (set_record_btrace_cmdlist) | |
1679 | (show_record_btrace_cmdlist): Remove redefinitions. | |
1680 | ||
52059ffd TT |
1681 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
1682 | Pedro Alves <palves@redhat.com> | |
1683 | ||
1684 | * dwarf2-frame.c (enum cfa_how_kind, struct | |
1685 | dwarf2_frame_state_reg_info): Move out of struct | |
1686 | dwarf2_frame_state. | |
1687 | * dwarf2read.c (struct tu_stats): Move out of struct | |
1688 | dwarf2_per_objfile. | |
1689 | (struct file_entry): Move out of struct line_header. | |
1690 | (struct nextfield, struct nextfnfield, struct fnfieldlist, struct | |
1691 | typedef_field_list): Move out of struct field_info. | |
1692 | * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data): | |
1693 | Move out of struct dynamic_prop. | |
1694 | (union type_owner, union field_location, struct field, struct | |
1695 | range_bounds, union type_specific): Move out of struct main_type. | |
1696 | (struct fn_fieldlist, struct fn_field, struct typedef_field) | |
1697 | (VOFFSET_STATIC): Move out of struct cplus_struct_type. | |
1698 | (struct call_site_target, union call_site_parameter_u, struct | |
1699 | call_site_parameter): Move out of struct call_site. | |
1700 | * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct | |
1701 | m32c_prologue. | |
1702 | (enum srcdest_kind): Move out of struct srcdest. | |
1703 | * main.c (enum cmdarg_kind): Move out of struct cmdarg. | |
1704 | * prologue-value.h (enum prologue_value_kind): Move out of struct | |
1705 | prologue_value. | |
1706 | * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct | |
1707 | gdbarch_tdep. | |
1708 | * stabsread.c (struct nextfield, struct next_fnfieldlist): Move | |
1709 | out of struct field_info. | |
1710 | * symfile.h (struct other_sections): Move out of struct | |
1711 | section_addr_info. | |
1712 | * symtab.c (struct symbol_cache_slot): Move out struct | |
1713 | block_symbol_cache. | |
1714 | * target-descriptions.c (enum tdesc_type_kind): Move out of | |
1715 | typedef struct tdesc_type. | |
1716 | * tui/tui-data.h (enum tui_line_or_address_kind): Move out of | |
1717 | struct tui_line_or_address. | |
1718 | * value.c (enum internalvar_kind, union internalvar_data): Move | |
1719 | out of struct internalvar. | |
1720 | * xtensa-tdep.h (struct ctype_cache): Move out of struct | |
1721 | gdbarch_tdep. | |
1722 | ||
fe978cb0 PA |
1723 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
1724 | Pedro Alves <palves@redhat.com> | |
1725 | ||
1726 | Rename symbols whose names are reserved C++ keywords throughout. | |
1727 | ||
3bc3d82a PA |
1728 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1729 | ||
1730 | * Makefile.in (COMPILER): New, get it from autoconf. | |
1731 | (COMPILE.pre, CC_LD): Use COMPILER. | |
1732 | (CXX): Get from autoconf instead. | |
1733 | (CXX_FOR_TARGET): Default to g++ instead of gcc. | |
1734 | * acinclude.m4: Include build-with-cxx.m4. | |
1735 | * build-with-cxx.m4: New file. | |
1736 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. | |
1737 | Disable -Werror by default if building in C++ mode. | |
1738 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and | |
1739 | -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode. | |
1740 | Run supported-warning-flags tests with the C++ compiler. | |
1741 | Save/restore CXXFLAGS too. | |
1742 | * configure: Regenerate. | |
1743 | ||
07697489 PA |
1744 | 2015-02-27 Pedro Alves <palves@redhat.com> |
1745 | ||
1746 | * libiberty.m4: New file. | |
1747 | * acinclude.m4: Include libiberty.m4. | |
1748 | * configure.ac: Call libiberty_INIT. | |
1749 | * config.in, configure: Regenerate. | |
1750 | ||
60abeae4 AA |
1751 | 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1752 | ||
1753 | * s390-linux-tdep.c (s390_gcc_target_options): Not just handle | |
1754 | 31-bit targets, but 64-bit targets as well. | |
1755 | (s390_gnu_triplet_regexp): New function. | |
1756 | (s390_gdbarch_init): Set the gcc_target_options gdbarch method for | |
1757 | 64-bit targets as well. Set the gnu_triplet_regexp gdbarch | |
1758 | method. | |
1759 | ||
f44466fb | 1760 | 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch) |
f0666312 JT |
1761 | |
1762 | * windows-nat.c (CONTEXT_DEBUGGER): Remove. | |
1763 | (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags | |
1764 | from CONTEXT_DEBUGGER. | |
1765 | ||
0def5aaa DE |
1766 | 2015-02-26 Doug Evans <dje@google.com> |
1767 | ||
1768 | * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to | |
1769 | CHECK_TYPEDEF. | |
1770 | (set_type_vptr_fieldno): Ditto. | |
1771 | (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto. | |
1772 | * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto. | |
1773 | ||
77b64a49 PA |
1774 | 2015-02-26 Pedro Alves <palves@redhat.com> |
1775 | ||
1776 | * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF. | |
1777 | * complaints.c (vcomplaint): Pass argument FMT directly to | |
1778 | printf-like functions instead of complaint->fmt. | |
1779 | * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF. | |
1780 | * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF. | |
1781 | * compile/compile-loc2c.c (pushf, unary, binary): Add | |
1782 | ATTRIBUTE_PRINTF. | |
1783 | (do_compile_dwarf_expr_to_c): Pass string literal as format string | |
1784 | to pushf. | |
1785 | (BINARY): Pass string literal as format string to 'binary'. | |
1786 | * compile/compile-object-load.c (link_callbacks_einfo): Add | |
1787 | ATTRIBUTE_PRINTF. | |
1788 | * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF. | |
1789 | ||
532f44ed PA |
1790 | 2015-02-26 Pedro Alves <palves@redhat.com> |
1791 | ||
1792 | * windows-termcap.c: Rename to ... | |
1793 | * stub-termcap.c: ... this. Adjust header line. | |
1794 | * Makefile.in (SFILES): Refer to stub-termcap.c instead of | |
1795 | windows-termcap.c. | |
1796 | * configure: Regenerate. | |
1797 | * configure.ac: Refer to stub-termcap.o instead of | |
1798 | windows-termcap.o. | |
1799 | * gdb_curses.h: Mention stub-termcap.c instead of | |
1800 | windows-termcap.c. | |
1801 | ||
081a1c2c JK |
1802 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1803 | ||
1804 | * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym) | |
1805 | (gcc_symbol_address): Call gnu_ifunc_resolve_addr. | |
1806 | ||
2f41223f AT |
1807 | 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1808 | ||
1809 | * gdb/infcmd.c (print_return_value): use type_to_string to print type. | |
1810 | ||
80c57053 JK |
1811 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1812 | ||
1813 | * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for | |
1814 | bfd_canonicalize_symtab. | |
1815 | ||
cf424aef JB |
1816 | 2015-02-25 John Baldwin <jhb@FreeBSD.org> |
1817 | ||
1818 | * amd64fbsd-nat.c: Include sys/user.h. | |
1819 | (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
1820 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
1821 | * i386fbsd-nat.c: Include sys/user.h. | |
1822 | (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl | |
1823 | instead of KERN_PS_STRINGS to locate the signal trampoline. | |
1824 | * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New. | |
1825 | (amd64fbsd_sigtramp_p): New. | |
1826 | (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No | |
1827 | longer set default values. | |
1828 | (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p". | |
1829 | * i386fbsd-tdep.c (i386fbsd_sigtramp_start) | |
1830 | (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end) | |
1831 | (i386fbsd_freebsd4_sigtramp_start) | |
1832 | (i386fbsd_freebsd4_sigtramp_middle) | |
1833 | (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start) | |
1834 | (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New. | |
1835 | (i386fbsd_sigtramp_p): New. | |
1836 | (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No | |
1837 | longer set default values. | |
1838 | (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p". | |
1839 | ||
c5cb74ee JB |
1840 | 2015-02-25 John Baldwin <jhb@freebsd.org> |
1841 | ||
1842 | * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use | |
1843 | get_frame_register instead of frame_unwind_register_unsigned. | |
1844 | ||
17487d85 JK |
1845 | 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
1846 | ||
1847 | PR build/18033 | |
1848 | * compile/compile-c-support.c (c_compute_program): Change // comment. | |
1849 | * compile/compile-object-load.c (setup_sections): Change // comment. | |
1850 | ||
9357a9e6 JB |
1851 | 2015-02-26 Joel Brobecker <brobecker@adacore.com> |
1852 | ||
1853 | PR build/18033: | |
1854 | * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment. | |
1855 | ||
1f10ba14 PA |
1856 | 2015-02-23 Pedro Alves <palves@redhat.com> |
1857 | ||
1858 | * remote.c (skip_to_semicolon): New function. | |
1859 | (remote_parse_stop_reply) <T stop reply>: Use it. Don't | |
1860 | special case the stop reasons that look like hex numbers | |
1861 | upfront. Instead handle real register numbers after matching | |
1862 | all the known stop reasons. | |
1863 | ||
96553a0c DE |
1864 | 2015-02-21 Doug Evans <dje@google.com> |
1865 | ||
1866 | PR c++/17976, symtab/17821 | |
1867 | * cp-namespace.c (cp_search_static_and_baseclasses): New parameter | |
1868 | is_in_anonymous. All callers updated. | |
1869 | (find_symbol_in_baseclass): Ditto. | |
1870 | (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks | |
1871 | for symbols in an anonymous namespace. | |
1872 | * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch | |
1873 | DW_AT_name directly. | |
1874 | (dwarf2_name): Convert missing namespace name to | |
1875 | CP_ANONYMOUS_NAMESPACE_STR. | |
1876 | ||
2db9a427 PA |
1877 | 2015-02-20 Pedro Alves <palves@redhat.com> |
1878 | ||
1879 | * linux-nat.c (linux_handle_extended_wait): Call | |
1880 | thread_db_notice_clone whenever a new clone LWP is detected. | |
1881 | (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New | |
1882 | functions. | |
1883 | * linux-nat.h (thread_db_attach_lwp): Delete declaration. | |
1884 | (thread_db_notice_clone, linux_stop_and_wait_all_lwps) | |
1885 | (linux_unstop_all_lwps): Declare. | |
1886 | * linux-thread-db.c (struct thread_get_info_inout): Delete. | |
1887 | (thread_get_info_callback): Delete. | |
1888 | (thread_from_lwp): Use td_thr_get_info and record_thread. | |
1889 | (thread_db_attach_lwp): Delete. | |
1890 | (thread_db_notice_clone): New function. | |
1891 | (try_thread_db_load_1): If /proc is mounted and shows the | |
1892 | process'es task list, walk over all LWPs and call thread_from_lwp | |
1893 | instead of relying on td_ta_thr_iter. | |
1894 | (attach_thread): Don't call check_thread_signals here. Split the | |
1895 | tail part of the function (which adds the thread to the core GDB | |
1896 | thread list) to ... | |
1897 | (record_thread): ... this function. Call check_thread_signals | |
1898 | here. | |
1899 | (thread_db_wait): Don't call thread_db_find_new_threads_1. Always | |
1900 | call thread_from_lwp. | |
1901 | (thread_db_update_thread_list): Rename to ... | |
1902 | (thread_db_update_thread_list_org): ... this. | |
1903 | (thread_db_update_thread_list): New function. | |
1904 | (thread_db_find_thread_from_tid): Delete. | |
1905 | (thread_db_get_ada_task_ptid): Simplify. | |
1906 | * nat/linux-procfs.c: Include <sys/stat.h>. | |
1907 | (linux_proc_task_list_dir_exists): New function. | |
1908 | * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare. | |
1909 | ||
3b27ef47 PA |
1910 | 2015-02-20 Pedro Alves <palves@redhat.com> |
1911 | ||
1912 | * linux-nat.c (lin_lwp_attach_lwp): No longer special case the | |
1913 | main LWP. Handle the case of waitpid returning 0 if we're already | |
1914 | attached to the LWP. Don't set the LWP's last_resume_kind to | |
1915 | resume_stop if we already knew about the LWP. | |
1916 | (linux_nat_filter_event): Add debug logs. | |
1917 | ||
1cc28231 PA |
1918 | 2015-02-20 Pedro Alves <palves@redhat.com> |
1919 | ||
1920 | * target.h (forward_target_decr_pc_after_break): Delete | |
1921 | declaration. | |
1922 | ||
5c5019c2 PA |
1923 | 2015-02-20 Pedro Alves <palves@redhat.com> |
1924 | ||
1925 | PR threads/18006 | |
1926 | * linux-thread-db.c (thread_get_info_callback): Return early if | |
1927 | the thread's lwp id is -1. | |
1928 | ||
f3978e91 JB |
1929 | 2015-02-20 Joel Brobecker <brobecker@adacore.com> |
1930 | ||
1931 | GDB 7.9 released. | |
1932 | ||
ffdf88ec SE |
1933 | 2015-02-19 Steve Ellcey <sellcey@imgtec.com> |
1934 | ||
1935 | * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr. | |
1936 | (dtrace_get_probes) Change type of variable 'dof'. | |
1937 | ||
c9587f88 AT |
1938 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
1939 | ||
1940 | PR breakpoints/16812 | |
1941 | * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV. | |
1942 | * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add. | |
1943 | * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint. | |
1944 | ||
53cf2ee0 DT |
1945 | 2015-02-19 David Taylor <dtaylor@emc.com> |
1946 | ||
1947 | * common/ax.def (setv): Fix consumed entry in setv DEFOP. | |
1948 | ||
acfe0940 PP |
1949 | 2015-02-18 Patrick Palka <patrick@parcs.ath.cx> |
1950 | ||
1951 | * tui/tui-io.c (tui_handle_resize_during_io): Remove this | |
1952 | function. | |
1953 | (tui_putc): Don't call tui_handle_resize_during_io. | |
1954 | (tui_getc): Likewise. | |
1955 | (tui_mld_getc): Likewise. | |
1956 | * tui/tui-win.c: Include event-loop.h and tui/tui-io.h. | |
1957 | (tui_sigwinch_token): New static variable. | |
1958 | (tui_initialize_win): Adjust documentation. Set | |
1959 | tui_sigwinch_token. | |
1960 | (tui_async_resize_screen): New asynchronous callback. | |
1961 | (tui_sigwinch_handler): Adjust documentation. Asynchronously | |
1962 | invoke tui_async_resize_screen. | |
1963 | ||
f6a88844 JM |
1964 | 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com> |
1965 | ||
1966 | * configure: Regenerated. | |
1967 | * configure.ac: Use GDB_AC_TRANSFORM. | |
1968 | * Makefile.in (aclocal_m4_deps): Added transform.m4. | |
1969 | * acinclude.m4: sinclude transform.m4. | |
1970 | * transform.m4: New file. | |
1971 | (GDB_AC_TRANSFORM): New macro. | |
1972 | ||
b05e3b0d JM |
1973 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
1974 | ||
1975 | * NEWS: Announce the support for DTrace SDT probes. | |
1976 | ||
c3e3045e JM |
1977 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
1978 | ||
1979 | * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h". | |
1980 | (amd64_dtrace_parse_probe_argument): New function. | |
1981 | (amd64_dtrace_probe_is_enabled): Likewise. | |
1982 | (amd64_dtrace_enable_probe): Likewise. | |
1983 | (amd64_dtrace_disable_probe): Likewise. | |
1984 | (amd64_linux_init_abi): Register the | |
1985 | `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe', | |
1986 | `gdbarch_dtrace_disable_probe' and | |
1987 | `gdbarch_dtrace_probe_is_enabled' hooks. | |
1988 | (amd64_dtrace_disabled_probe_sequence_1): New constant. | |
1989 | (amd64_dtrace_disabled_probe_sequence_2): Likewise. | |
1990 | (amd64_dtrace_enable_probe_sequence): Likewise. | |
1991 | (amd64_dtrace_disable_probe_sequence): Likewise. | |
1992 | ||
d4777acb JM |
1993 | 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
1994 | ||
1995 | * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention | |
1996 | the -probe-dtrace new vpossible value for PROBE_MODIFIER. | |
1997 | * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can | |
1998 | handle ELF files. | |
1999 | * Makefile.in (SFILES): dtrace-probe.c added. | |
2000 | * configure: Regenerate. | |
2001 | * dtrace-probe.c: New file. | |
2002 | (SHT_SUNW_dof): New constant. | |
2003 | (dtrace_probe_type): New enum. | |
2004 | (dtrace_probe_arg): New struct. | |
2005 | (dtrace_probe_arg_s): New typedef. | |
2006 | (struct dtrace_probe_enabler): New struct. | |
2007 | (dtrace_probe_enabler_s): New typedef. | |
2008 | (dtrace_probe): New struct. | |
2009 | (dtrace_probe_is_linespec): New function. | |
2010 | (dtrace_dof_sect_type): New enum. | |
2011 | (dtrace_dof_dofh_ident): Likewise. | |
2012 | (dtrace_dof_encoding): Likewise. | |
2013 | (DTRACE_DOF_ENCODE_LSB): Likewise. | |
2014 | (DTRACE_DOF_ENCODE_MSB): Likewise. | |
2015 | (dtrace_dof_hdr): New struct. | |
2016 | (dtrace_dof_sect): Likewise. | |
2017 | (dtrace_dof_provider): Likewise. | |
2018 | (dtrace_dof_probe): Likewise. | |
2019 | (DOF_UINT): New macro. | |
2020 | (DTRACE_DOF_PTR): Likewise. | |
2021 | (DTRACE_DOF_SECT): Likewise. | |
2022 | (dtrace_process_dof_probe): New function. | |
2023 | (dtrace_process_dof): Likewise. | |
2024 | (dtrace_build_arg_exprs): Likewise. | |
2025 | (dtrace_get_arg): Likewise. | |
2026 | (dtrace_get_probes): Likewise. | |
2027 | (dtrace_get_probe_argument_count): Likewise. | |
2028 | (dtrace_can_evaluate_probe_arguments): Likewise. | |
2029 | (dtrace_evaluate_probe_argument): Likewise. | |
2030 | (dtrace_compile_to_ax): Likewise. | |
2031 | (dtrace_probe_destroy): Likewise. | |
2032 | (dtrace_gen_info_probes_table_header): Likewise. | |
2033 | (dtrace_gen_info_probes_table_values): Likewise. | |
2034 | (dtrace_probe_is_enabled): Likewise. | |
2035 | (dtrace_probe_ops): New variable. | |
2036 | (info_probes_dtrace_command): New function. | |
2037 | (_initialize_dtrace_probe): Likewise. | |
2038 | (dtrace_type_name): Likewise. | |
2039 | ||
8b367e17 JM |
2040 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2041 | ||
2042 | * gdbarch.sh (dtrace_parse_probe_argument): New. | |
2043 | (dtrace_probe_is_enabled): Likewise. | |
2044 | (dtrace_enable_probe): Likewise. | |
2045 | (dtrace_disable_probe): Likewise. | |
2046 | * gdbarch.c: Regenerate. | |
2047 | * gdbarch.h: Regenerate. | |
2048 | ||
9aca2ff8 JM |
2049 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2050 | ||
2051 | * stap-probe.c (stap_probe_ops): Add NULLs in the static | |
2052 | stap_probe_ops for `enable_probe' and `disable_probe'. | |
2053 | * probe.c (enable_probes_command): New function. | |
2054 | (disable_probes_command): Likewise. | |
2055 | (_initialize_probe): Define the cli commands `enable probe' and | |
2056 | `disable probe'. | |
2057 | (parse_probe_linespec): New function. | |
2058 | (info_probes_for_ops): Use parse_probe_linespec. | |
2059 | * probe.h (probe_ops): New hooks `enable_probe' and | |
2060 | `disable_probe'. | |
2061 | ||
03e98035 JM |
2062 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2063 | ||
2064 | * probe.c (compute_probe_arg): Moved from stap-probe.c | |
2065 | (compile_probe_arg): Likewise. | |
2066 | (probe_funcs): Likewise. | |
2067 | * stap-probe.c (compute_probe_arg): Moved to probe.c. | |
2068 | (compile_probe_arg): Likewise. | |
2069 | (probe_funcs): Likewise. | |
2070 | ||
6f9b8491 JM |
2071 | 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com> |
2072 | ||
2073 | * probe.c (print_ui_out_not_applicables): New function. | |
2074 | (exists_probe_with_pops): Likewise. | |
2075 | (info_probes_for_ops): Do not include column headers for probe | |
2076 | types for which no probe has been actually found on any object. | |
2077 | Also invoke `print_ui_out_not_applicables' in order to match the | |
2078 | column rows with the header when probes of several types are | |
2079 | listed. | |
2080 | Print the "Type" column. | |
2081 | * probe.h (probe_ops): Added a new probe operation `type_name'. | |
2082 | * stap-probe.c (stap_probe_ops): Add `stap_type_name'. | |
2083 | (stap_type_name): New function. | |
2084 | ||
69efdff1 PP |
2085 | 2015-02-17 Patrick Palka <patrick@parcs.ath.cx> |
2086 | ||
2087 | * tui/tui-io.c (tui_getc): Don't call key_is_command_char. | |
2088 | (key_is_command_char): Delete. | |
2089 | ||
f8e5e23e PA |
2090 | 2015-02-17 Pedro Alves <palves@redhat.com> |
2091 | ||
2092 | * tui/tui.c (tui_enable): Resize windows before anything | |
2093 | might show a window. | |
2094 | ||
9f2e0721 MO |
2095 | 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com> |
2096 | ||
2097 | PR gdb/17984 | |
2098 | * aarch64-linux-nat.c: Don't include features/aarch64.c anymore. | |
2099 | (aarch64_linux_read_description): Remove initialize_tdesc_aarch64 | |
2100 | call. | |
2101 | * aarch64-tdep.h (tdesc_aarch64): Declare. | |
2102 | ||
171e6b1c MW |
2103 | 2015-02-12 Mark Wielaard <mjw@redhat.com> |
2104 | ||
2105 | * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false". | |
2106 | ||
d5ff0482 DE |
2107 | 2015-02-13 Doug Evans <dje@google.com> |
2108 | ||
2109 | * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter | |
2110 | anonymous_namespace to is_in_anonymous for consistency with the rest | |
2111 | of the file. | |
2112 | (cp_lookup_bare_symbol): Fix typo in comment. | |
2113 | (cp_search_static_and_baseclasses): Ditto. | |
2114 | (search_symbol_list): Use vertical space in comment better. | |
2115 | (reset_directive_searched): Ditto. Fix typo. | |
2116 | (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter. | |
2117 | ||
9f04ac5f YQ |
2118 | 2015-02-13 Yao Qi <yao.qi@arm.com> |
2119 | ||
2120 | * MAINTAINERS: Update my email address. | |
2121 | ||
013d0319 DE |
2122 | 2015-02-12 Doug Evans <dje@google.com> |
2123 | ||
b615dd20 | 2124 | * symtab.c (completion_list_add_name): Fix memory leak. |
013d0319 | 2125 | |
9a7e538e DE |
2126 | 2015-02-12 Doug Evans <dje@google.com> |
2127 | ||
2128 | * completer.c (complete_line): Remove incorrect comment. | |
2129 | ||
e1fcd575 JK |
2130 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2131 | ||
2132 | * python/py-framefilter.c (py_print_single_arg, enumerate_locals) | |
2133 | (py_print_frame): Use RETURN_MASK_ERROR. | |
2134 | ||
b99bf4e3 JK |
2135 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2136 | ||
2137 | * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in | |
2138 | function comment. Wrap all function that can throw in cleanups. | |
2139 | (gdbpy_apply_frame_filter): Wrap all function that can throw in | |
2140 | cleanups. | |
2141 | ||
800eb1ce JK |
2142 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2143 | ||
2144 | * python/py-framefilter.c (py_print_frame): Substitute goto error. | |
2145 | Remove the error label. | |
2146 | ||
34019068 JK |
2147 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2148 | ||
2149 | * python/py-framefilter.c (py_print_frame): Put conditional code paths | |
2150 | with goto first, indent the former else codepath left. Put variable | |
2151 | 'elided' to a new inner block. | |
2152 | ||
8d4a54e2 JK |
2153 | 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2154 | ||
2155 | * python/py-framefilter.c (py_print_frame): Whitespacing fixes. | |
2156 | ||
18ad82c1 PA |
2157 | 2015-02-11 Pedro Alves <palves@redhat.com> |
2158 | ||
2159 | * xcoffread.c (within_function): Delete. | |
2160 | ||
e36122e9 TT |
2161 | 2015-02-11 Tom Tromey <tromey@redhat.com> |
2162 | Pedro Alves <palves@redhat.com> | |
2163 | ||
2164 | * breakpoint.c (base_breakpoint_ops): Delete. | |
2165 | * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern. | |
2166 | * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern. | |
2167 | * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern. | |
2168 | * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern. | |
2169 | * python/py-arch.c (arch_object_type): Make extern. | |
2170 | * python/py-block.c (block_syms_iterator_object_type): Make extern. | |
2171 | * python/py-bpevent.c (breakpoint_event_object_type): Make extern. | |
2172 | * python/py-cmd.c (cmdpy_object_type): Make extern. | |
2173 | * python/py-continueevent.c (continue_event_object_type) | |
2174 | * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual' | |
2175 | parameter. Update all callers. | |
2176 | * python/py-evtregistry.c (eventregistry_object_type): Make extern. | |
2177 | * python/py-exitedevent.c (exited_event_object_type): Make extern. | |
2178 | * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern. | |
2179 | * python/py-function.c (fnpy_object_type): Make extern. | |
2180 | * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern. | |
2181 | * python/py-infevents.c (call_pre_event_object_type) | |
2182 | (inferior_call_post_event_object_type). | |
2183 | (memory_changed_event_object_type): Make extern. | |
2184 | * python/py-infthread.c (thread_object_type): Make extern. | |
2185 | * python/py-lazy-string.c (lazy_string_object_type): Make extern. | |
2186 | * python/py-linetable.c (linetable_entry_object_type) | |
2187 | (linetable_object_type, ltpy_iterator_object_type): Make extern. | |
2188 | * python/py-newobjfileevent.c (new_objfile_event_object_type) | |
2189 | (clear_objfiles_event_object_type): Make extern. | |
2190 | * python/py-objfile.c (objfile_object_type): Make extern. | |
2191 | * python/py-param.c (parmpy_object_type): Make extern. | |
2192 | * python/py-progspace.c (pspace_object_type): Make extern. | |
2193 | * python/py-signalevent.c (signal_event_object_type): Make extern. | |
2194 | * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern. | |
2195 | * python/py-type.c (type_object_type, field_object_type) | |
2196 | (type_iterator_object_type): Make extern. | |
2197 | * python/python.c (python_extension_script_ops) | |
2198 | (python_extension_ops): Make extern. | |
2199 | * stap-probe.c (stap_probe_ops): Make extern. | |
2200 | ||
0703599a PA |
2201 | 2015-02-11 Pedro Alves <pedro@codesourcery.com> |
2202 | ||
2203 | * infrun.c (adjust_pc_after_break): Don't adjust the PC just | |
2204 | because the event thread is not the current thread. | |
2205 | ||
eaaf76ab DE |
2206 | 2015-02-11 Doug Evans <xdje42@gmail.com> |
2207 | ||
2208 | * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't | |
2209 | been initialized yet, return NULL. | |
2210 | ||
e7d52ed3 DE |
2211 | 2015-02-11 Doug Evans <dje@google.com> |
2212 | ||
2213 | * symfile.h (new_symfile_objfile): Delete. | |
2214 | * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. | |
2215 | All callers updated. | |
2216 | ||
fc6b1256 PP |
2217 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
2218 | ||
2219 | * tui/tui-io.c (tui_handle_resize_during_io): Call | |
2220 | tui_update_gdb_sizes() after resizing the screen. | |
2221 | * tui/tui.c (tui_enable): Resize the terminal before | |
2222 | calling tui_update_gdb_sizes(). | |
2223 | ||
d9080678 PP |
2224 | 2015-02-11 Patrick Palka <patrick@parcs.ath.cx> |
2225 | ||
2226 | * tui/tui-io.c (tui_getc): Move cursor to the end of the command | |
2227 | line before printing a newline. | |
2228 | ||
9f615e3a MW |
2229 | 2015-02-11 Mark Wielaard <mjw@redhat.com> |
2230 | ||
2231 | * utils.c (producer_is_gcc): Return true or false. | |
2232 | ||
d9080678 | 2233 | 2015-02-10 Mark Wielaard <mjw@redhat.com> |
b1ffba5a MW |
2234 | |
2235 | * utils.h (producer_is_gcc): Change return type to bool. Add major | |
2236 | argument. | |
2237 | * utils.c (producer_is_gcc): Likewise. | |
2238 | (producer_is_gcc_ge_4): Adjust producer_is_gcc call. | |
2239 | * dwarf2read.c (check_producer): Likewise. | |
2240 | ||
b052c4fb PA |
2241 | 2015-02-10 Pedro Alves <palves@redhat.com> |
2242 | ||
2243 | * infrun.c (displaced_step_fixup): Switch to the event thread | |
2244 | before calling gdbarch_displaced_step_fixup. | |
2245 | ||
3ac240d4 AT |
2246 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
2247 | ||
2248 | * MAINTAINERS (Write After Approval): Add Antoine Tremblay. | |
2249 | ||
c1cc6152 SM |
2250 | 2015-02-10 Simon Marchi <simon.marchi@ericsson.com> |
2251 | ||
2252 | * ada-varobj.c (ada_name_of_child): Constify parent. | |
2253 | (ada_path_expr_of_child): Same. | |
2254 | (ada_value_of_child): Same. | |
2255 | (ada_type_of_child): Same. | |
2256 | * c-varobj.c (c_is_path_expr_parent): Same. | |
2257 | (c_describe_child): Same. | |
2258 | (c_name_of_child): Same. | |
2259 | (c_value_of_child): Same. | |
2260 | (c_type_of_child): Same. | |
2261 | (cplus_number_of_children): Same. | |
2262 | (cplus_describe_child): Constify var. | |
2263 | (cplus_name_of_child): Constify parent. | |
2264 | (cplus_value_of_child): Same. | |
2265 | (cplus_type_of_child): Same. | |
2266 | * jv-varobj.c (java_name_of_child): Same. | |
2267 | (java_value_of_child): Same. | |
2268 | (java_type_of_child): Same. | |
2269 | * varobj.c (value_of_child): Same. | |
2270 | (varobj_default_is_path_expr_parent): Constify var, parent and return | |
2271 | value. | |
2272 | (varobj_get_path_expr): Constify var, modify path_expr through | |
2273 | mutable_var. | |
2274 | (install_new_value): Constify parent. | |
2275 | (value_of_child): Constify parent. | |
2276 | * varobj.h (struct varobj): Constify parent. | |
2277 | (struct lang_varobj_ops): Constify name_of_child, value_of_child and | |
2278 | type_of_child. | |
2279 | (varobj_get_path_expr): Constify var. | |
2280 | (varobj_get_path_expr_parent): Constify var and return value. | |
2281 | ||
c1ee9414 LM |
2282 | 2015-02-10 Luis Machado <lgustavo@codesourcery.com> |
2283 | ||
2284 | * arm-tdep.c (arm_prologue_unwind_stop_reason): New function. | |
2285 | (arm_prologue_this_id): Move PC and SP limit checks to | |
2286 | arm_prologue_unwind_stop_reason. | |
2287 | (arm_prologue_unwind) <stop_reason> : Set to | |
2288 | arm_prologue_unwind_stop_reason. | |
2289 | ||
f7de9aab MW |
2290 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
2291 | ||
2292 | * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and | |
2293 | DW_LANG_Fortran08 as language_fortran. | |
2294 | ||
0b24eb2d SDJ |
2295 | 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com> |
2296 | ||
2297 | PR remote/17946 | |
2298 | * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison | |
2299 | of pointer against char. | |
2300 | ||
a2c2acaf MW |
2301 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
2302 | ||
2303 | * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'. | |
2304 | (c_type_print_modifier): Likewise. | |
2305 | * dwarf2read.c (read_tag_atomic_type): New function. | |
2306 | (read_type_die_1): Handle DW_TAG_atomic_type. | |
2307 | * gdbtypes.c (make_atomic_type): New function. | |
2308 | (recursive_dump_type): Handle TYPE_ATOMIC. | |
2309 | * gdbtypes.h (enum type_flag_values): Renumber. | |
2310 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC. | |
2311 | (TYPE_ATOMIC): New macro. | |
2312 | (make_atomic_type): Declare. | |
2313 | ||
31fd9caa MM |
2314 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2315 | ||
2316 | * btrace.c (ftrace_find_call): Skip gaps. | |
2317 | (ftrace_new_function): Initialize level. | |
2318 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return) | |
2319 | (ftrace_new_switch): Update | |
2320 | level computation. | |
2321 | (ftrace_new_gap): New. | |
2322 | (ftrace_update_function): Create new function after gap. | |
2323 | (btrace_compute_ftrace_bts): Create gap on error. | |
2324 | (btrace_stitch_bts): Update parameters. Clear trace if it | |
2325 | becomes empty. | |
2326 | (btrace_stitch_trace): Update parameters. Update callers. | |
2327 | (btrace_clear): Reset the number of gaps. | |
2328 | (btrace_insn_get): Return NULL if the iterator points to a gap. | |
2329 | (btrace_insn_number): Return zero if the iterator points to a gap. | |
2330 | (btrace_insn_end): Allow gaps at the end. | |
2331 | (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps. | |
2332 | (btrace_find_insn_by_number): Assert that the found iterator does | |
2333 | not point to a gap. | |
2334 | (btrace_call_next, btrace_call_prev): Assert that the last function | |
2335 | is not a gap. | |
2336 | * btrace.h (btrace_bts_error): New. | |
2337 | (btrace_function): Update comment. | |
2338 | (btrace_function) <insn, insn_offset, number>: Update comment. | |
2339 | (btrace_function) <errcode>: New. | |
2340 | (btrace_thread_info) <ngaps>: New. | |
2341 | (btrace_thread_info) <replay>: Update comment. | |
2342 | (btrace_insn_get): Update comment. | |
2343 | * record-btrace.c (btrace_ui_out_decode_error): New. | |
2344 | (record_btrace_info): Print number of gaps. | |
2345 | (btrace_insn_history, btrace_call_history): Call | |
2346 | btrace_ui_out_decode_error for gaps. | |
2347 | (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps. | |
2348 | ||
afb778a2 MM |
2349 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2350 | ||
2351 | * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New. | |
2352 | * nat/linux-btrace.c: (btrace_this_cpu): New. | |
2353 | (cpu_supports_bts): Call btrace_this_cpu. | |
2354 | (intel_supports_bts): Add cpu parameter. | |
2355 | ||
7d5c24b3 MM |
2356 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2357 | ||
2358 | * btrace.h (btrace_insn_class): New. | |
2359 | (btrace_insn) <size, iclass>: New. | |
2360 | * btrace.c (ftrace_find_call): Update parameters. Update users. | |
2361 | Use instruction classification. | |
2362 | (ftrace_new_return): Update parameters. Update users. | |
2363 | (ftrace_update_function): Update parameters. Update users. Use | |
2364 | instruction classification. | |
2365 | (ftrace_update_insns): Update parameters. Update users. | |
2366 | (ftrace_classify_insn): New. | |
2367 | (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add | |
2368 | TRY_CATCH around call to gdb_insn_length. | |
2369 | ||
76235df1 MM |
2370 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2371 | ||
2372 | * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace): | |
2373 | Update parameters. Update users. | |
2374 | ||
d33501a5 MM |
2375 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2376 | ||
2377 | * btrace.c (parse_xml_btrace_conf_bts): Add size. | |
2378 | (btrace_conf_bts_attributes): New. | |
2379 | (btrace_conf_children): Add attributes. | |
2380 | * common/btrace-common.h (btrace_config_bts): New. | |
2381 | (btrace_config)<bts>: New. | |
2382 | (btrace_config): Update comment. | |
2383 | * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): | |
2384 | Use config. | |
2385 | * features/btrace-conf.dtd: Increment version. Add size | |
2386 | attribute to bts element. | |
2387 | * record-btrace.c (set_record_btrace_bts_cmdlist, | |
2388 | show_record_btrace_bts_cmdlist): New. | |
2389 | (record_btrace_adjust_size, record_btrace_print_bts_conf, | |
2390 | record_btrace_print_conf, cmd_set_record_btrace_bts, | |
2391 | cmd_show_record_btrace_bts): New. | |
2392 | (record_btrace_info): Call record_btrace_print_conf. | |
2393 | (_initialize_record_btrace): Add commands. | |
2394 | * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. | |
2395 | (remote_protocol_features): Add Qbtrace-conf:bts:size packet. | |
2396 | (btrace_sync_conf): Synchronize bts size. | |
2397 | (_initialize_remote): Add Qbtrace-conf:bts:size packet. | |
2398 | * NEWS: Announce new commands and new packets. | |
2399 | ||
f4abbc16 MM |
2400 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2401 | ||
2402 | * Makefile.in (XMLFILES): Add btrace-conf.dtd. | |
2403 | * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. | |
2404 | (x86_linux_btrace_conf): New. | |
2405 | (x86_linux_create_target): Initialize to_btrace_conf. | |
2406 | * nat/linux-btrace.c (linux_enable_btrace): Update parameters. | |
2407 | Check format. Split into this and ... | |
2408 | (linux_enable_bts): ... this. | |
2409 | (linux_btrace_conf): New. | |
2410 | (perf_event_skip_record): Renamed into ... | |
2411 | (perf_event_skip_bts_record): ... this. Updated users. | |
2412 | (linux_disable_btrace): Split into this and ... | |
2413 | (linux_disable_bts): ... this. | |
2414 | (linux_read_btrace): Check format. | |
2415 | * nat/linux-btrace.h (linux_enable_btrace): Update parameters. | |
2416 | (linux_btrace_conf): New. | |
2417 | (btrace_target_info)<ptid>: Moved. | |
2418 | (btrace_target_info)<conf>: New. | |
2419 | (btrace_target_info): Split into this and ... | |
2420 | (btrace_tinfo_bts): ... this. Updated users. | |
2421 | * btrace.c (btrace_enable): Update parameters. | |
2422 | (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf) | |
2423 | (btrace_conf_children, btrace_conf_attributes) | |
2424 | (btrace_conf_elements): New. | |
2425 | * btrace.h (btrace_enable): Update parameters. | |
2426 | (btrace_conf, parse_xml_btrace_conf): New. | |
2427 | * common/btrace-common.h (btrace_config): New. | |
2428 | * feature/btrace-conf.dtd: New. | |
2429 | * record-btrace.c (record_btrace_conf): New. | |
2430 | (record_btrace_cmdlist): New. | |
2431 | (record_btrace_enable_warn, record_btrace_open): Pass | |
2432 | &record_btrace_conf. | |
2433 | (record_btrace_info): Print recording format. | |
2434 | (cmd_record_btrace_bts_start): New. | |
2435 | (cmd_record_btrace_start): Call cmd_record_btrace_bts_start. | |
2436 | (_initialize_record_btrace): Add "record btrace bts" subcommand. | |
2437 | Add "record bts" alias command. | |
2438 | * remote.c (remote_state)<btrace_config>: New. | |
2439 | (remote_btrace_reset, PACKET_qXfer_btrace_conf): New. | |
2440 | (remote_protocol_features): Add qXfer:btrace-conf:read. | |
2441 | (remote_open_1): Call remote_btrace_reset. | |
2442 | (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF. | |
2443 | (btrace_target_info)<conf>: New. | |
2444 | (btrace_sync_conf, btrace_read_config): New. | |
2445 | (remote_enable_btrace): Update parameters. Call btrace_sync_conf and | |
2446 | btrace_read_conf. | |
2447 | (remote_btrace_conf): New. | |
2448 | (init_remote_ops): Initialize to_btrace_conf. | |
2449 | (_initialize_remote): Add qXfer:btrace-conf packet. | |
2450 | * target.c (target_enable_btrace): Update parameters. | |
2451 | (target_btrace_conf): New. | |
2452 | * target.h (target_enable_btrace): Update parameters. | |
2453 | (target_btrace_conf): New. | |
2454 | (target_object)<TARGET_OBJECT_BTRACE_CONF>: New. | |
2455 | (target_ops)<to_enable_btrace>: Update parameters and comment. | |
2456 | (target_ops)<to_btrace_conf>: New. | |
2457 | * target-delegates: Regenerate. | |
2458 | * target-debug.h (target_debug_print_const_struct_btrace_config_p) | |
2459 | (target_debug_print_const_struct_btrace_target_info_p): New. | |
2460 | * NEWS: Announce new command and new packet. | |
2461 | ||
aadf7753 MM |
2462 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2463 | ||
2464 | * nat/linux-btrace.h (perf_event_buffer): New. | |
2465 | (btrace_target_info) <buffer, size, data_head>: Replace with ... | |
2466 | <bts>: ... this. | |
2467 | * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size) | |
2468 | (perf_event_buffer_size, perf_event_buffer_begin) | |
2469 | (perf_event_buffer_end, linux_btrace_has_changed): Removed. | |
2470 | Updated users. | |
2471 | (perf_event_new_data): New. | |
2472 | ||
043c3577 MM |
2473 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2474 | ||
2475 | * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS. | |
2476 | * record-btrace.c (record_btrace_open): Remove call to | |
2477 | target_supports_btrace. | |
2478 | * remote.c (remote_supports_btrace): Update parameters. | |
2479 | * target.c (target_supports_btrace): Update parameters. | |
2480 | * target.h (to_supports_btrace, target_supports_btrace): Update | |
2481 | parameters. | |
2482 | * target-delegates.c: Regenerate. | |
2483 | * target-debug.h (target_debug_print_enum_btrace_format): New. | |
2484 | * nat/linux-btrace.c | |
2485 | (kernel_supports_btrace): Rename into ... | |
2486 | (kernel_supports_bts): ... this. Update users. Update warning text. | |
2487 | (intel_supports_btrace): Rename into ... | |
2488 | (intel_supports_bts): ... this. Update users. | |
2489 | (cpu_supports_btrace): Rename into ... | |
2490 | (cpu_supports_bts): ... this. Update users. | |
2491 | (linux_supports_btrace): Update parameters. Split into this and ... | |
2492 | (linux_supports_bts): ... this. | |
2493 | * nat/linux-btrace.h (linux_supports_btrace): Update parameters. | |
2494 | ||
734b0e4b MM |
2495 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
2496 | ||
2497 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
2498 | (COMMON_OBS): Add common/btrace-common.o. | |
2499 | (btrace-common.o): Add build rules. | |
2500 | * btrace.c (parse_xml_btrace): Update parameters. | |
2501 | (parse_xml_btrace_block): Set format field. | |
2502 | (btrace_add_pc, btrace_fetch): Use struct btrace_data. | |
2503 | (do_btrace_data_cleanup, make_cleanup_btrace_data): New. | |
2504 | (btrace_compute_ftrace): Split into this and... | |
2505 | (btrace_compute_ftrace_bts): ...this. | |
2506 | (btrace_stitch_trace): Split into this and... | |
2507 | (btrace_stitch_bts): ...this. | |
2508 | * btrace.h (parse_xml_btrace): Update parameters. | |
2509 | (make_cleanup_btrace_data): New. | |
2510 | * common/btrace-common.c: New. | |
2511 | * common/btrace-common.h: Include common-defs.h. | |
2512 | (btrace_block_s): Update comment. | |
2513 | (btrace_format): New. | |
2514 | (btrace_format_string): New. | |
2515 | (btrace_data_bts): New. | |
2516 | (btrace_data): New. | |
2517 | (btrace_data_init, btrace_data_fini, btrace_data_empty): New. | |
2518 | * remote.c (remote_read_btrace): Update parameters. | |
2519 | * target.c (target_read_btrace): Update parameters. | |
2520 | * target.h (target_read_btrace): Update parameters. | |
2521 | (target_ops)<to_read_btrace>: Update parameters. | |
2522 | * x86-linux-nat.c (x86_linux_read_btrace): Update parameters. | |
2523 | * target-delegates.c: Regenerate. | |
2524 | * target-debug (target_debug_print_struct_btrace_data_p): New. | |
2525 | * nat/linux-btrace.c (linux_read_btrace): Split into this and... | |
2526 | (linux_read_bts): ...this. | |
2527 | * nat/linux-btrace.h (linux_read_btrace): Update parameters. | |
2528 | ||
bd2e0e9e DE |
2529 | 2015-02-06 Doug Evans <dje@google.com> |
2530 | ||
2531 | * remote-m32r-sdi.c: Include symfile.h. | |
2532 | ||
f176c4b5 DE |
2533 | 2015-02-06 Doug Evans <dje@google.com> |
2534 | ||
2535 | * symtab.h (clear_symtab_users, deduce_language_from_filename): Move | |
2536 | * symfile.h (clear_symtab_users, deduce_language_from_filename): ... | |
2537 | to here. | |
2538 | ||
d6c146e9 PA |
2539 | 2015-02-06 Pedro Alves <palves@redhat.com> |
2540 | ||
2541 | * linux-thread-db.c (find_new_threads_callback): Add debug output. | |
2542 | ||
b9d61307 SM |
2543 | 2015-02-06 Simon Marchi <simon.marchi@ericsson.com> |
2544 | ||
2545 | PR gdb/15678 | |
2546 | * breakpoint.c (map_breakpoint_numbers): Check for empty args string. | |
2547 | (enable_count_command): Check args for NULL value. | |
2548 | ||
e9fbd043 DE |
2549 | 2015-02-05 Doug Evans <xdje42@gmail.com> |
2550 | ||
2551 | * guile/scm-frame.c: Fix spelling errors in a comment. | |
2552 | ||
881d5d5d JK |
2553 | 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
2554 | ||
2555 | * python/python-internal.h (Py_hash_t): Define it for Python <3.2. | |
2556 | * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the | |
2557 | return type. | |
2558 | ||
20ba1ce6 PA |
2559 | 2015-02-04 Pedro Alves <palves@redhat.com> |
2560 | ||
2561 | * linux-nat.c (handle_extended_wait): Don't resume LWPs here. | |
2562 | (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait | |
2563 | returns true. | |
2564 | (resume_stopped_resumed_lwps): Don't check whether the thread is | |
2565 | marked as executing. | |
2566 | (linux_nat_wait_1): Use resume_stopped_resumed_lwps. | |
2567 | ||
f962539a AA |
2568 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2569 | ||
2570 | * regset.h (struct regset): Add flags field. | |
2571 | (REGSET_VARIABLE_SIZE): New value for a regset's flags field. | |
2572 | * corelow.c (get_core_register_section): Add warning if the size | |
2573 | exceeds the requested size and the regset does not have the | |
2574 | REGSET_VARIABLE_SIZE flag set. | |
2575 | * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE | |
2576 | flag. | |
2577 | * armbsd-tdep.c (armbsd_gregset): Likewise. | |
2578 | * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise. | |
2579 | * hppaobsd-tdep.c (hppaobsd_gregset): Likewise. | |
2580 | * m68kbsd-tdep.c (m68kbsd_gregset): Likewise. | |
2581 | * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise. | |
2582 | ||
dde9acd6 AA |
2583 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2584 | ||
2585 | * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections): | |
2586 | For ".reg-xstate", explicitly specify the requested section size | |
2587 | via X86_XSTATE_SIZE instead of just 0 on input and | |
2588 | X86_XSTATE_MAX_SIZE on output. | |
2589 | * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): | |
2590 | Likewise. | |
2591 | ||
1528345d AA |
2592 | 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2593 | ||
2594 | PR corefiles/17808: | |
2595 | * gdbarch.sh (iterate_over_regset_sections_cb): Document this | |
2596 | function type, particularly its SIZE parameter. | |
2597 | * gdbarch.h: Regenerate. | |
2598 | * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare | |
2599 | actual against required size using ">=" instead of "==". | |
2600 | (amd64_collect_fpregset): Likewise. | |
2601 | * i386-tdep.c (i386_supply_gregset): Likewise. | |
2602 | (i386_collect_gregset): Likewise. | |
2603 | (i386_supply_fpregset): Likewise. | |
2604 | (i386_collect_fpregset): Likewise. | |
2605 | * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise. | |
2606 | (mips_fill_gregset_wrapper): Likewise. | |
2607 | (mips_supply_fpregset_wrapper): Likewise. | |
2608 | (mips_fill_fpregset_wrapper): Likewise. | |
2609 | (mips64_supply_gregset_wrapper): Likewise. | |
2610 | (mips64_fill_gregset_wrapper): Likewise. | |
2611 | (mips64_supply_fpregset_wrapper): Likewise. | |
2612 | (mips64_fill_fpregset_wrapper): Likewise. | |
2613 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise. | |
2614 | (am33_supply_fpregset_method): Likewise. | |
2615 | (am33_collect_gregset_method): Likewise. | |
2616 | (am33_collect_fpregset_method): Likewise. | |
2617 | ||
518be979 DE |
2618 | 2015-02-04 Doug Evans <dje@google.com> |
2619 | Pedro Alves <palves@redhat.com> | |
2620 | Eli Zaretskii <eliz@gnu.org> | |
2621 | ||
2622 | PR tui/17810 | |
2623 | * tui/tui-command.c (tui_refresh_cmd_win): New function. | |
2624 | * tui/tui-command.c (tui_refresh_cmd_win): Declare. | |
2625 | * tui/tui-file.c: #include tui/tui-command.h. | |
2626 | (tui_file_fputs): Refresh command window if stream is not gdb_stdout. | |
2627 | (tui_file_flush): Refresh command window if stream is gdb_stdout. | |
2628 | * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush. | |
2629 | ||
80bd5fab PA |
2630 | 2015-02-04 Pedro Alves <palves@redhat.com> |
2631 | ||
2632 | Fix build breakage. | |
2633 | * event-loop.c (gdb_do_one_event): Add default switch case. | |
2634 | ||
a7606d80 JK |
2635 | 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
2636 | ||
2637 | Filter out inferior gcc option -fpreprocessed. | |
2638 | * compile/compile.c (filter_args): New function. | |
2639 | (get_args): Use it. | |
2640 | ||
70b66289 PA |
2641 | 2015-02-03 Pedro Alves <palves@redhat.com> |
2642 | ||
2643 | * event-loop.c: Don't declare nor define a queue type for | |
2644 | gdb_event_p. | |
2645 | (event_queue): Delete. | |
2646 | (create_event, create_file_event, gdb_event_xfree) | |
2647 | (initialize_event_loop, process_event): Delete. | |
2648 | (gdb_do_one_event): Return as soon as one event is handled. | |
2649 | (handle_file_event): Change prototype. Used the passed in | |
2650 | file_handler pointer and ready_mask instead of looping over all | |
2651 | file handlers. | |
2652 | (gdb_wait_for_event): Update the poll/select timeouts before | |
2653 | blocking. Run event handlers directly instead of queueing events. | |
2654 | Return as soon as one event is handled. | |
2655 | (struct async_event_handler_data): Delete. | |
2656 | (invoke_async_event_handler): Delete. | |
2657 | (check_async_event_handlers): Change return type to int. Run | |
2658 | event handlers directly instead of queueing events. Return as | |
2659 | soon as one event is handled. | |
2660 | (handle_timer_event): Delete. | |
2661 | (update_wait_timeout): New function, factored out from | |
2662 | poll_timers. | |
2663 | (poll_timers): Reimplement. | |
2664 | * event-loop.h (initialize_event_loop): Delete declaration. | |
2665 | * top.c (gdb_init): Don't call initialize_event_loop. | |
2666 | ||
b7d2e916 PA |
2667 | 2015-02-03 Pedro Alves <palves@redhat.com> |
2668 | ||
2669 | * event-loop.c (clear_async_event_handler): New function. | |
2670 | * event-loop.h (clear_async_event_handler): New declaration. | |
2671 | * record-btrace.c (record_btrace_async): New function. | |
2672 | (init_record_btrace_ops): Install record_btrace_async. | |
2673 | * record-full.c (record_full_async): New function. | |
2674 | (record_full_resume): Don't mark the async event source here. | |
2675 | (init_record_full_ops): Install record_full_async. | |
2676 | (record_full_core_resume): Don't mark the async event source here. | |
2677 | (init_record_full_core_ops): Install record_full_async. | |
2678 | * remote.c (remote_async): Mark and clear the async stop reply | |
2679 | queue event-loop token as appropriate. | |
2680 | ||
d9d41e78 PA |
2681 | 2015-02-03 Pedro Alves <palves@redhat.com> |
2682 | ||
2683 | * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use | |
2684 | target_is_async_p instead of target_can_async. | |
2685 | (linux_nat_wait): Use target_is_async_p instead of | |
2686 | target_can_async. Don't enable async here. | |
2687 | * remote.c (interrupt_query, remote_wait, putpkt_binary): Use | |
2688 | target_is_async_p instead of target_can_async. | |
2689 | ||
aa3de267 SM |
2690 | 2015-02-02 Simon Marchi <simon.marchi@ericsson.com> |
2691 | ||
2692 | * varobj.h (lang_varobj_ops): Mention which return values need | |
2693 | to be freed. | |
2694 | ||
2c811c0f JB |
2695 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
2696 | ||
2697 | * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker. | |
2698 | ||
b1eedac9 JB |
2699 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
2700 | ||
2701 | PR gdb/17856: | |
2702 | * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache | |
2703 | results found in the cache. | |
2704 | ||
66c168ae JB |
2705 | 2015-02-02 Joel Brobecker <brobecker@adacore.com> |
2706 | ||
2707 | PR gdb/17854: | |
2708 | * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache | |
2709 | when allocating a new one. | |
2710 | ||
4bdc02b2 TT |
2711 | 2015-02-01 Tom Tromey <tom@tromey.com> |
2712 | ||
2713 | * MAINTAINERS: Remove myself. | |
2714 | ||
ae6ae975 DE |
2715 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2716 | ||
2717 | * dwarf2read.c (process_structure_scope): Update setting of | |
2718 | TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. | |
2719 | * gdbtypes.c (internal_type_vptr_fieldno): New function. | |
2720 | (set_type_vptr_fieldno): New function. | |
2721 | (internal_type_vptr_basetype): New function. | |
2722 | (set_type_vptr_basetype): New function. | |
2723 | (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, | |
2724 | TYPE_VPTR_BASETYPE. | |
2725 | (allocate_cplus_struct_type): Initialize vptr_fieldno. | |
2726 | (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... | |
2727 | (print_cplus_stuff): ... moved here. | |
2728 | (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. | |
2729 | * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype | |
2730 | moved to ... | |
2731 | (struct cplus_struct_type): ... here. All uses updated. | |
2732 | (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. | |
2733 | (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. | |
2734 | (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. | |
2735 | * stabsread.c (read_tilde_fields): Update setting of | |
2736 | TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. | |
2737 | ||
09e2d7c7 DE |
2738 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2739 | ||
2740 | * cp-valprint.c (cp_find_class_member): Rename parameter domain_p | |
2741 | to self_p. | |
2742 | (cp_print_class_member): Rename local domain to self_type. | |
2743 | * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local | |
2744 | domain_type to self_type. | |
2745 | (set_die_type) <need_gnat_info>: Handle | |
2746 | TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD. | |
2747 | * gdb-gdb.py (StructMainTypePrettyPrinter): Handle | |
2748 | TYPE_SPECIFIC_SELF_TYPE. | |
2749 | * gdbtypes.c (internal_type_self_type): New function. | |
2750 | (set_type_self_type): New function. | |
2751 | (smash_to_memberptr_type): Rename parameter domain to self_type. | |
2752 | Update setting of TYPE_SELF_TYPE. | |
2753 | (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE. | |
2754 | (smash_to_method_type): Rename parameter domain to self_type. | |
2755 | Update setting of TYPE_SELF_TYPE. | |
2756 | (check_stub_method): Call smash_to_method_type. | |
2757 | (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE. | |
2758 | (copy_type_recursive): Ditto. | |
2759 | * gdbtypes.h (enum type_specific_kind): New value | |
2760 | TYPE_SPECIFIC_SELF_TYPE. | |
2761 | (struct main_type) <type_specific>: New member self_type. | |
2762 | (struct cplus_struct_type) <fn_field.type>: Update comment. | |
2763 | (TYPE_SELF_TYPE): Rewrite. | |
2764 | (internal_type_self_type, set_type_self_type): Declare. | |
2765 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to | |
2766 | self_type. | |
2767 | (gnuv3_method_ptr_to_value): Rename local domain_type to self_type. | |
2768 | * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with | |
2769 | TYPE_TARGET_TYPE. | |
2770 | * stabsread.c (read_member_functions): Mark methods with | |
2771 | TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of | |
2772 | TYPE_SELF_TYPE. | |
2773 | ||
4bfb94b8 DE |
2774 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2775 | ||
2776 | * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE. | |
2777 | All uses updated. | |
2778 | ||
5f4ce105 DE |
2779 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2780 | ||
2781 | * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs | |
2782 | or unions. Return zero if union. | |
2783 | (gnuv3_get_vtable): Call check_typedef. Assert only passed structs. | |
2784 | (gnuv3_rtti_type): Pass already-check_typedef'd value to | |
2785 | gnuv3_get_vtable. | |
2786 | (compute_vtable_size): Assert only passed structs. | |
2787 | (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs. | |
2788 | ||
f6b3afbf DE |
2789 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2790 | ||
2791 | * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD | |
2792 | kinds. | |
2793 | ||
cfb069a8 GB |
2794 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
2795 | Doug Evans <dje@google.com> | |
2796 | ||
2797 | PR cli/9007 | |
2798 | PR cli/11920 | |
2799 | PR cli/15548 | |
2800 | * cli/cli-cmds.c (complete_command): Notify user if max-completions | |
2801 | reached. | |
2802 | * common/common-exceptions.h (enum errors) | |
2803 | <MAX_COMPLETIONS_REACHED_ERROR>: New value. | |
2804 | * completer.h (get_max_completions_reached_message): New declaration. | |
2805 | (max_completions): Likewise. | |
2806 | (completion_tracker_t): New typedef. | |
2807 | (new_completion_tracker): New declaration. | |
2808 | (make_cleanup_free_completion_tracker): Likewise. | |
2809 | (maybe_add_completion_enum): New enum. | |
2810 | (maybe_add_completion): New declaration. | |
2811 | (throw_max_completions_reached_error): Likewise. | |
2812 | * completer.c (max_completions): New global variable. | |
2813 | (new_completion_tracker): New function. | |
2814 | (free_completion_tracker): Likewise. | |
2815 | (make_cleanup_free_completion_tracker): Likewise. | |
2816 | (maybe_add_completions): Likewise. | |
2817 | (throw_max_completions_reached_error): Likewise. | |
2818 | (complete_line): Remove duplicates and limit result to max_completions | |
2819 | entries. | |
2820 | (get_max_completions_reached_message): New function. | |
2821 | (gdb_display_match_list): Handle max_completions. | |
2822 | (_initialize_completer): New declaration and function. | |
2823 | * symtab.c: Include completer.h. | |
2824 | (completion_tracker): New static variable. | |
2825 | (completion_list_add_name): Call maybe_add_completion. | |
2826 | (default_make_symbol_completion_list_break_on_1): Renamed from | |
2827 | default_make_symbol_completion_list_break_on. Maintain | |
2828 | completion_tracker across calls to completion_list_add_name. | |
2829 | (default_make_symbol_completion_list_break_on): New function. | |
2830 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
2831 | * tui/tui-io.c: Include completer.h. | |
2832 | (tui_old_rl_display_matches_hook): New static global. | |
2833 | (tui_rl_display_match_list): Notify user if max-completions reached. | |
2834 | (tui_setup_io): Save/restore rl_completion_display_matches_hook. | |
2835 | * NEWS (New Options): Mention set/show max-completions. | |
2836 | ||
e11c72c7 GB |
2837 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
2838 | ||
2839 | * symtab.c (struct add_name_data) <code>: New field. | |
2840 | Updated comments. | |
2841 | (add_symtab_completions): New function. | |
2842 | (symtab_expansion_callback): Likewise. | |
2843 | (default_make_symbol_completion_list_break_on): Set datum.code. | |
2844 | Move minimal symbol scan before calling expand_symtabs_matching. | |
2845 | Scan known primary symtabs for externs and statics before calling | |
2846 | expand_symtabs_matching. Pass symtab_expansion_callback as | |
2847 | expansion_notify argument to expand_symtabs_matching. Do not scan | |
2848 | primary symtabs for externs and statics after calling | |
2849 | expand_symtabs_matching. | |
2850 | ||
276d885b GB |
2851 | 2015-01-31 Gary Benson <gbenson@redhat.com> |
2852 | ||
2853 | * symfile.h (expand_symtabs_exp_notify_ftype): New typedef. | |
2854 | (struct quick_symbol_functions) <expand_symtabs_matching>: | |
2855 | New argument expansion_notify. All uses updated. | |
2856 | (expand_symtabs_matching): New argument expansion_notify. | |
2857 | All uses updated. | |
2858 | * symfile-debug.c (debug_qf_expand_symtabs_matching): | |
2859 | Also print expansion notify. | |
2860 | * symtab.c (expand_symtabs_matching_via_partial): Call | |
2861 | expansion_notify whenever a partial symbol table is expanded. | |
2862 | * dwarf2read.c (dw2_expand_symtabs_matching): Call | |
2863 | expansion_notify whenever a symbol table is instantiated. | |
2864 | ||
82083d6d DE |
2865 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2866 | ||
2867 | * cli-out.c: #include completer.h, readline/readline.h. | |
2868 | (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions. | |
2869 | (cli_mld_flush, cld_mld_erase_entire_line): Ditto. | |
2870 | (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto. | |
2871 | * cli-out.h (cli_display_match_list): Declare. | |
2872 | * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros. | |
2873 | (ELLIPSIS_LEN): Ditto. | |
2874 | (gdb_get_y_or_n, gdb_display_match_list_pager): New functions. | |
2875 | (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto. | |
2876 | (gdb_fnprint, gdb_print_filename): Ditto. | |
2877 | (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto. | |
2878 | (gdb_display_match_list): Ditto. | |
2879 | * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs. | |
2880 | (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto. | |
2881 | (mld_beep_ftype, mld_read_key_ftype): Ditto. | |
2882 | (match_list_displayer): New struct. | |
2883 | (gdb_display_match_list): Declare. | |
2884 | * top.c (init_main): Set rl_completion_display_matches_hook. | |
2885 | * tui/tui-io.c: #include completer.h. | |
2886 | (printable_part, PUTX, print_filename, get_y_or_n): Delete. | |
2887 | (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions. | |
2888 | (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto. | |
2889 | (tui_mld_getc, tui_mld_read_key): Ditto. | |
2890 | (tui_rl_display_match_list): Rewrite. | |
2891 | (tui_handle_resize_during_io): New arg for_completion. All callers | |
2892 | updated. | |
2893 | ||
f57d2163 DE |
2894 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2895 | ||
2896 | Add symbol lookup cache. | |
2897 | * NEWS: Document new options and commands. | |
2898 | * symtab.c (symbol_cache_key): New static global. | |
2899 | (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros. | |
2900 | (SYMBOL_LOOKUP_FAILED): New macro. | |
2901 | (symbol_cache_slot_state): New enum. | |
2902 | (block_symbol_cache): New struct. | |
2903 | (symbol_cache): New struct. | |
2904 | (new_symbol_cache_size, symbol_cache_size): New static globals. | |
2905 | (hash_symbol_entry, eq_symbol_entry): New functions. | |
2906 | (symbol_cache_byte_size, resize_symbol_cache): New functions. | |
2907 | (make_symbol_cache, free_symbol_cache): New functions. | |
2908 | (get_symbol_cache, symbol_cache_cleanup): New function. | |
2909 | (set_symbol_cache_size, set_symbol_cache_size_handler): New functions. | |
2910 | (symbol_cache_lookup, symbol_cache_clear_slot): New function. | |
2911 | (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions. | |
2912 | (symbol_cache_flush, symbol_cache_dump): New functions. | |
2913 | (maintenance_print_symbol_cache): New function. | |
2914 | (maintenance_flush_symbol_cache): New function. | |
2915 | (symbol_cache_stats): New function. | |
2916 | (maintenance_print_symbol_cache_statistics): New function. | |
2917 | (symtab_new_objfile_observer): New function. | |
2918 | (symtab_free_objfile_observer): New function. | |
2919 | (lookup_static_symbol, lookup_global_symbol): Use symbol cache. | |
2920 | (_initialize_symtab): Init symbol_cache_key. New parameter | |
2921 | maint symbol-cache-size. New maint commands print symbol-cache, | |
2922 | print symbol-cache-statistics, flush-symbol-cache. | |
2923 | Install new_objfile, free_objfile observers. | |
2924 | ||
e700d1b2 JB |
2925 | 2015-01-31 Joel Brobecker <brobecker@adacore.com> |
2926 | ||
2927 | PR symtab/17855 | |
2928 | * symfile.c (clear_symtab_users): Move call to breakpoint_re_set | |
2929 | to end. | |
2930 | ||
9f050062 DE |
2931 | 2015-01-31 Doug Evans <xdje42@gmail.com> |
2932 | ||
2933 | * NEWS: Mention inlined scripts in .debug_gdb_scripts section. | |
2934 | * auto-load.c: #include ctype.h. | |
2935 | (struct auto_load_pspace_info): Replace member loaded_scripts with | |
2936 | new members loaded_script_files, loaded_script_texts. | |
2937 | (auto_load_pspace_data_cleanup): Update. | |
2938 | (init_loaded_scripts_info): Update. | |
2939 | (get_auto_load_pspace_data_for_loading): Update. | |
2940 | (maybe_add_script_file): Renamed from maybe_add_script. All callers | |
2941 | updated. | |
2942 | (maybe_add_script_text): New function. | |
2943 | (clear_section_scripts): Update. | |
2944 | (source_script_file, execute_script_contents): New functions. | |
2945 | (source_section_scripts): Add support for | |
2946 | SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT. | |
2947 | (print_scripts): New function. | |
2948 | (auto_load_info_scripts): Also print inlined scripts. | |
2949 | (maybe_print_unsupported_script_warning): Renamed from | |
2950 | unsupported_script_warning_print. All callers updated. | |
2951 | (maybe_print_script_not_found_warning): Renamed from | |
2952 | script_not_found_warning_print. All callers updated. | |
2953 | * extension-priv.h (struct extension_language_script_ops): New member | |
2954 | objfile_script_executor. | |
2955 | * extension.c (ext_lang_objfile_script_executor): New function. | |
2956 | * extension.h (objfile_script_executor_func): New typedef. | |
2957 | (ext_lang_objfile_script_executor): Declare. | |
2958 | * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare. | |
2959 | * guile/guile.c (guile_extension_script_ops): Update. | |
2960 | * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function. | |
2961 | * python/python.c (python_extension_script_ops): Update. | |
2962 | (gdbpy_execute_objfile_script): New function. | |
2963 | ||
312809f8 EZ |
2964 | 2015-01-31 Eli Zaretskii <eliz@gnu.org> |
2965 | ||
2966 | * tui/tui-io.c (tui_expand_tabs): New function. | |
2967 | (tui_puts, tui_redisplay_readline): Expand TABs into the | |
2968 | appropriate number of spaces. | |
2969 | * tui/tui-regs.c: Include tui-io.h. | |
2970 | (tui_register_format): Call tui_expand_tabs to expand TABs into | |
2971 | the appropriate number of spaces. | |
2972 | * tui/tui-io.h: Add prototype for tui_expand_tabs. | |
2973 | ||
b6577aab DE |
2974 | 2015-01-30 Doug Evans <dje@google.com> |
2975 | ||
2976 | * NEWS: "info source" command now display producer string if present. | |
2977 | * source.c (source_info): Print producer string if present. | |
2978 | ||
6da58d3e SM |
2979 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
2980 | ||
2981 | * varobj.c (varobj_delete): Fix comment. | |
2982 | ||
837ce252 SM |
2983 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
2984 | ||
2985 | * varobj.c (create_child): Modify comment. | |
2986 | ||
b09e2c59 SM |
2987 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
2988 | ||
2989 | * ada-varobj.c (ada_number_of_children): Constify struct varobj * | |
2990 | parameter. | |
2991 | (ada_name_of_variable): Same. | |
2992 | (ada_path_expr_of_child): Same. | |
2993 | (ada_value_of_variable): Same. | |
2994 | (ada_value_is_changeable_p): Same. | |
2995 | (ada_value_has_mutated): Same. | |
2996 | * c-varobj.c (varobj_is_anonymous_child): Same. | |
2997 | (c_is_path_expr_parent): Same. | |
2998 | (c_number_of_children): Same. | |
2999 | (c_name_of_variable): Same. | |
3000 | (c_path_expr_of_child): Same. | |
3001 | (get_type): Same. | |
3002 | (c_value_of_variable): Same. | |
3003 | (cplus_number_of_children): Same. | |
3004 | (cplus_name_of_variable): Same. | |
3005 | (cplus_path_expr_of_child): Same. | |
3006 | (cplus_value_of_variable): Same. | |
3007 | * jv-varobj.c (java_number_of_children): Same. | |
3008 | (java_name_of_variable): Same. | |
3009 | (java_path_expr_of_child): Same. | |
3010 | (java_value_of_variable): Same. | |
3011 | * varobj.c (number_of_children): Same. | |
3012 | (name_of_variable): Same. | |
3013 | (is_root_p): Same. | |
3014 | (varobj_ensure_python_env): Same. | |
3015 | (varobj_get_objname): Same. | |
3016 | (varobj_get_expression): Same. | |
3017 | (varobj_get_display_format): Same. | |
3018 | (varobj_get_display_hint): Same. | |
3019 | (varobj_has_more): Same. | |
3020 | (varobj_get_thread_id): Same. | |
3021 | (varobj_get_frozen): Same. | |
3022 | (dynamic_varobj_has_child_method): Same. | |
3023 | (varobj_get_gdb_type): Same. | |
3024 | (is_path_expr_parent): Same. | |
3025 | (varobj_default_is_path_expr_parent): Same. | |
3026 | (varobj_get_language): Same. | |
3027 | (varobj_get_attributes): Same. | |
3028 | (varobj_is_dynamic_p): Same. | |
3029 | (varobj_get_child_range): Same. | |
3030 | (varobj_value_has_mutated): Same. | |
3031 | (varobj_get_value_type): Same. | |
3032 | (number_of_children): Same. | |
3033 | (name_of_variable): Same. | |
3034 | (check_scope): Same. | |
3035 | (varobj_editable_p): Same. | |
3036 | (varobj_value_is_changeable_p): Same. | |
3037 | (varobj_floating_p): Same. | |
3038 | (varobj_default_value_is_changeable_p): Same. | |
3039 | ||
2568868e SM |
3040 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
3041 | ||
3042 | * varobj.c (varobj_get_path_expr): Set var->path_expr. | |
3043 | * c-varobj.c (c_path_expr_of_child): Set local var instead of | |
3044 | child->path_expr. | |
3045 | (cplus_path_expr_of_child): Same. | |
3046 | ||
ca83fa81 SM |
3047 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
3048 | ||
3049 | * mi-cmd-var.c (print_varobj): Free varobj_get_expression | |
3050 | result. | |
3051 | (mi_cmd_var_info_expression): Same. | |
3052 | * varobj.c (varobj_get_expression): Mention in the comment that | |
3053 | the result must by freed by the caller. | |
3054 | ||
afa269ae SM |
3055 | 2015-01-30 Simon Marchi <simon.marchi@ericsson.com> |
3056 | ||
3057 | * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of | |
3058 | varobj_get_type. | |
3059 | (varobj_update_one): Same. | |
3060 | * varobj.c (update_type_if_necessary): Free curr_type_str and | |
3061 | new_type_str. | |
3062 | (varobj_get_type): Specify in comment that the result needs to be | |
3063 | freed by the caller. | |
3064 | ||
cd366ee8 DE |
3065 | 2015-01-29 Doug Evans <dje@google.com> |
3066 | ||
3067 | PR symtab/17890 | |
3068 | * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4. | |
3069 | ||
38360086 MW |
3070 | 2015-01-25 Mark Wielaard <mjw@redhat.com> |
3071 | ||
3072 | * dwarf2read.c (checkproducer): Call producer_is_gcc. | |
3073 | * utils.c (producer_is_gcc_ge_4): Likewise. | |
3074 | (producer_is_gcc): New function. | |
3075 | * utils.h (producer_is_gcc): New declaration. | |
3076 | ||
df25ebbd JB |
3077 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
3078 | ||
3079 | * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum | |
3080 | kind. | |
3081 | * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr" | |
3082 | parameter by "addr_stack" parameter. | |
3083 | (resolve_dynamic_range): Replace "addr" parameter by | |
3084 | "stack_addr" parameter. Update function documentation. | |
3085 | Update code accordingly. | |
3086 | (resolve_dynamic_array, resolve_dynamic_union) | |
3087 | (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise. | |
3088 | (resolve_dynamic_type): Update code, following the changes made | |
3089 | to resolve_dynamic_type_internal's interface. | |
3090 | * dwarf2loc.h (struct property_addr_info): New. | |
3091 | (dwarf2_evaluate_property): Replace "address" parameter | |
3092 | by "addr_stack" parameter. Adjust function documentation. | |
3093 | (struct dwarf2_offset_baton): New. | |
3094 | (struct dwarf2_property_baton): Update documentation of | |
3095 | field "referenced_type" to be more general. New field | |
3096 | "offset_info" in union data field. | |
3097 | * dwarf2loc.c (dwarf2_evaluate_property): Replace "address" | |
3098 | parameter by "addr_stack" parameter. Adjust code accordingly. | |
3099 | Add support for PROP_ADDR_OFFSET properties. | |
3100 | * dwarf2read.c (attr_to_dynamic_prop): Add support for | |
3101 | DW_AT_data_member_location attributes as well. Use case | |
3102 | statements instead of if/else condition. | |
3103 | ||
4a0ca9ec JB |
3104 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
3105 | ||
3106 | * ada-varobj.c (ada_varobj_get_array_number_of_children): | |
3107 | Return zero if PARENT_VALUE is NULL and parent_type's | |
3108 | range type is dynamic. | |
3109 | ||
ddb87a81 JB |
3110 | 2015-01-29 Joel Brobecker <brobecker@adacore.com> |
3111 | ||
3112 | * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return | |
3113 | nonzero if the type's subtype is dynamic. | |
3114 | (resolve_dynamic_range): Also resolve the range's subtype. | |
3115 | ||
3d7ad9b4 | 3116 | 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch) |
7a270e0c | 3117 | |
3d7ad9b4 | 3118 | Pushed by Joel Brobecker <brobecker@adacore.com>. |
7a270e0c AK |
3119 | * symfile.c (unmap_overlay_command): Initialize sec to NULL. |
3120 | ||
3a8b707a DE |
3121 | 2015-01-27 Doug Evans <dje@google.com> |
3122 | ||
3123 | * NEWS: Mention gdb.Objfile.username. | |
3124 | * python/py-objfile.c (objfpy_get_username): New function. | |
3125 | (objfile_getset): Add "username". | |
3126 | ||
d35b90fb MW |
3127 | 2015-01-24 Mark Wielaard <mjw@redhat.com> |
3128 | ||
3129 | * stack.c (return_command): Markup warning message with _. | |
3130 | ||
734ae125 DE |
3131 | 2015-01-24 Doug Evans <xdje42@gmail.com> |
3132 | ||
3133 | * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete. | |
3134 | ||
527f3840 JK |
3135 | 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3136 | ||
3137 | Fix 100x slowdown regression on DWZ files. | |
3138 | * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash. | |
3139 | (struct line_header): Add offset and offset_in_dwz. | |
3140 | (dwarf_decode_lines): Add parameter decode_mapping to the declaration. | |
3141 | (free_line_header_voidp): New declaration. | |
3142 | (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New | |
3143 | functions. | |
3144 | (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller. | |
3145 | (handle_DW_AT_stmt_list): Use line_header_hash. | |
3146 | (free_line_header_voidp): New function. | |
3147 | (dwarf_decode_line_header): Initialize offset and offset_in_dwz. | |
3148 | (dwarf_decode_lines): New parameter decode_mapping, use it. | |
3149 | (dwarf2_free_objfile): Free line_header_hash. | |
3150 | ||
f7e5394d SM |
3151 | 2015-01-23 Simon Marchi <simon.marchi@ericsson.com> |
3152 | ||
3153 | PR gdb/17416 | |
3154 | * valops.c (value_rtti_indirect_type): Catch exception thrown by | |
3155 | value_ind. | |
3156 | ||
743649fd MW |
3157 | 2015-01-15 Mark Wielaard <mjw@redhat.com> |
3158 | ||
3159 | * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from | |
3160 | DW_AT_noreturn. | |
3161 | * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make | |
3162 | calling_convention an 8 bit bit field. | |
3163 | (TYPE_NO_RETURN): New macro. | |
3164 | * infcmd.c (finish_command): Query if function does not return | |
3165 | normally. | |
3166 | * stack.c (return_command): Likewise. | |
3167 | ||
198297aa PA |
3168 | 2015-01-23 Pedro Alves <palves@redhat.com> |
3169 | ||
3170 | * linux-nat.c (linux_is_async_p): New macro. | |
3171 | (linux_nat_is_async_p): | |
3172 | (linux_nat_terminal_inferior): Check whether the target can async | |
3173 | instead of whether it is already async. | |
3174 | (linux_nat_terminal_ours): Don't check whether the target is | |
3175 | async. | |
3176 | (linux_async_pipe): Use linux_is_async_p. | |
3177 | ||
253828f1 JK |
3178 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3179 | ||
3180 | * NEWS (Changes since GDB 7.9): Add 'thread apply all' option | |
3181 | '-ascending'. | |
3182 | * thread.c (tp_array_compar_ascending, tp_array_compar): New. | |
3183 | (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. | |
3184 | Sort tp_array using tp_array_compar. | |
3185 | (_initialize_thread): Extend thread_apply_all_command help. | |
3186 | ||
f0e8c4c5 JK |
3187 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3188 | ||
3189 | * corelow.c (core_open): Call also thread_command. | |
3190 | * gdbthread.h (thread_command): New prototype moved from ... | |
3191 | * thread.c (thread_command): ... here. | |
3192 | (thread_command): Make it global. | |
3193 | ||
03b79603 PA |
3194 | 2015-01-22 Pedro Alves <palves@redhat.com> |
3195 | ||
3196 | * configure.ac [*mingw32*]: Check $curses_found instead of | |
3197 | $prefer_curses. | |
3198 | * configure: Regenerate. | |
3199 | * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and | |
3200 | HAVE_NCURSES_NCURSES_H checks. | |
3201 | ||
6b8a872f EZ |
3202 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
3203 | ||
bbbbffbb | 3204 | * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' |
6b8a872f EZ |
3205 | fails with the 1st arg NULL, try again with "unknown". Don't test |
3206 | the "cup" capability: it isn't supported by the Windows port of | |
3207 | ncurses, but the Windows console driver is still capable of | |
3208 | supporting TUI. | |
3209 | ||
4b62a76e JK |
3210 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3211 | ||
3212 | * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. | |
3213 | ||
82a864f9 EZ |
3214 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
3215 | ||
3216 | * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. | |
3217 | (ALLDEPFILES): Remove irix5-nat.c. These two are part of the | |
3218 | reason that "make TAGS" is broken. | |
3219 | ||
b35018fd CG |
3220 | 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> |
3221 | ||
3222 | * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues | |
3223 | and check additional store instructions. | |
3224 | ||
ffbc4646 WW |
3225 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
3226 | ||
3227 | * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". | |
3228 | ||
ddeca1df WW |
3229 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
3230 | ||
3231 | * ppc-linux-tdep.c (ppc_skip_trampoline_code, | |
3232 | ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
3233 | ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. | |
3234 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
3235 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, | |
3236 | rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, | |
3237 | rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, | |
3238 | ppc_process_record_op19, ppc_process_record_op31, | |
3239 | ppc_process_record_op59, ppc_process_record_op60, | |
3240 | ppc_process_record_op63): Likewise. | |
3241 | ||
049bb5de JB |
3242 | 2015-01-20 Joel Brobecker <brobecker@adacore.com> |
3243 | ||
3244 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) | |
3245 | (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of | |
3246 | strerror. | |
3247 | ||
42b87c63 | 3248 | 2015-01-20 Wei-cheng Wang <cole945@gmail.com> |
810c1026 WW |
3249 | |
3250 | * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, | |
3251 | ppc_process_record_op31, ppc_process_record_op59, | |
3252 | ppc_process_record_op60, ppc_process_record_op63, | |
3253 | ppc_process_record): Fix -Wformat warning. | |
3254 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): | |
3255 | Remove unused variables. | |
3256 | ||
569340fc CG |
3257 | 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com> |
3258 | ||
3259 | * MAINTAINERS (Write After Approval): Add "Chen Gang". | |
3260 | ||
63413d85 EZ |
3261 | 2015-01-19 Eli Zaretskii <eliz@gnu.org> |
3262 | ||
3263 | * configure.ac [*mingw32*]: Only add windows-termcap.o to | |
3264 | CONFIG_OBS if not building with a curses library. | |
3265 | * configure: Regenerate. | |
3266 | ||
3267 | * windows-termcap.c: Include defs.h. Make the whole body empty if | |
3268 | either one of HAVE_CURSES_H or HAVE_NCURSES_H or | |
3269 | HAVE_NCURSES_NCURSES_H is defined. | |
3270 | ||
16d8013c JB |
3271 | 2015-01-19 Joel Brobecker <brobecker@adacore.com> |
3272 | ||
3273 | * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator | |
3274 | from end of line to start of next line. | |
3275 | ||
cf90fd9a WW |
3276 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
3277 | ||
3278 | * ppc-linux-tdep.c (ppc_skip_trampoline_code): | |
3279 | Scan PLT stub backward for reverse debugging. | |
3280 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
3281 | ||
b4cdae6f WW |
3282 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
3283 | Ulrich Weigand <uweigand@de.ibm.com> | |
3284 | ||
3285 | * configure.tgt (powerpc*-*-linux): Add linux-record.o to | |
3286 | gdb_target_obs. | |
3287 | (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall | |
3288 | record. | |
3289 | (ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
3290 | ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. | |
3291 | (ppc_linux_init_abi): Set process_record, process_record_signal. | |
3292 | * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and | |
3293 | ppc_linux_record_tdep to gdbarch_tdep. | |
3294 | (ppc_process_record): New declaration. | |
3295 | * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, | |
3296 | ppc_process_record_op19, ppc_process_record_op31, | |
3297 | ppc_process_record_op59, ppc_process_record_op60, | |
3298 | ppc_process_record_op63, ppc_process_record): New functions. | |
3299 | ||
2608dbf8 WW |
3300 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
3301 | ||
3302 | * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to | |
3303 | rs6000_in_function_epilogue_frame_p and add an argument | |
3304 | for frame_info. | |
3305 | (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, | |
3306 | rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): | |
3307 | New functions. | |
3308 | (rs6000_epilogue_frame_unwind): New. | |
3309 | (rs6000_gdbarch_init): Append epilogue unwinder. | |
3310 | ||
4c347be6 SDJ |
3311 | 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
3312 | ||
3313 | * nat/linux-personality.c: Replace "#ifndef | |
3314 | HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if | |
3315 | !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 | |
3316 | systems. | |
3317 | ||
9f2850ba EZ |
3318 | 2015-01-16 Eli Zaretskii <eliz@gnu.org> |
3319 | ||
6cdb25f4 EZ |
3320 | * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New |
3321 | functions. | |
3322 | (_initialize_tui_win) <border-kind, border-mode>: | |
3323 | <active-border-mode>: Use tui_set_var_cmd as the "set" function. | |
c54da50d EZ |
3324 | (tui_set_tab_width_command): Fix the commentary. |
3325 | ||
6cdb25f4 EZ |
3326 | * tui/tui-win.h: Add prototype for tui_rehighlight_all. |
3327 | ||
bf555842 EZ |
3328 | * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): |
3329 | Doc fix. | |
cb86fcc1 EZ |
3330 | (tui_set_tab_width_command): Delete and recreate the source and |
3331 | the disassembly windows, to show the effect of the changed tab | |
3332 | size immediately. | |
bf555842 | 3333 | |
9f2850ba EZ |
3334 | * tui/tui-data.h (LINE_PREFIX): Make shorter |
3335 | (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for | |
3336 | "Thread NNNNN.XXXX" thread ID notation on Windows. | |
3337 | ||
95761b2d JK |
3338 | 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
3339 | ||
3340 | Fix gcc-5 compilation. | |
3341 | * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. | |
3342 | ||
8cc73a39 SDJ |
3343 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
3344 | ||
3345 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. | |
3346 | (linux-personality.o): New rule. | |
3347 | * common/common-defs.h: Include <stdint.h>. | |
3348 | * config/aarch64/linux.mh (NATDEPFILES): Include | |
3349 | linux-personality.o. | |
3350 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
3351 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
3352 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
3353 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
3354 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
3355 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
3356 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
3357 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
3358 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
3359 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
3360 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
3361 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
3362 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
3363 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
3364 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
3365 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
3366 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
3367 | * defs.h: Remove #include <stdint.h> (moved to | |
3368 | common/common-defs.h). | |
3369 | * linux-nat.c: Include nat/linux-personality.h. Remove #include | |
3370 | <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to | |
3371 | nat/linux-personality.c). | |
3372 | (linux_nat_create_inferior): Remove code to disable address space | |
3373 | randomization (moved to nat/linux-personality.c). Create cleanup | |
3374 | to disable address space randomization. | |
3375 | * nat/linux-personality.c: New file. | |
3376 | * nat/linux-personality.h: Likewise. | |
3377 | ||
fb23d554 SDJ |
3378 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
3379 | ||
3380 | * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and | |
3381 | common/posix-strerror.c. | |
3382 | (posix-strerror.o): New rule. | |
3383 | (mingw-strerror.o): Likewise. | |
3384 | * common/common-utils.h (safe_strerror): Move prototype to here, | |
3385 | from utils.h. | |
3386 | * common/common.host: New file. | |
3387 | * common/mingw-strerror.c: Likewise. | |
3388 | * common/posix-strerror.c: Likewise. | |
3389 | * configure: Regenerated. | |
3390 | * configure.ac: Source common/common.host. Add variable | |
3391 | common_host_obs to gdb_host_obs. | |
3392 | * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and | |
3393 | gdb/common/posix-strerror.c when warning about the use of | |
3394 | strerror. | |
3395 | * mingw-hdep.c (safe_strerror): Remove definition; move it to | |
3396 | common/mingw-strerror.c. | |
3397 | * posix-hdep.c (safe_strerror): Remove definition; move it to | |
3398 | common/posix-hdep.c. | |
3399 | * utils.h (safe_strerror): Remove prototype; move to | |
3400 | common/common-utils.h. | |
3401 | ||
3af8af43 JB |
3402 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
3403 | ||
3404 | GDB 7.8.2 released. | |
3405 | ||
bafffb51 JB |
3406 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
3407 | ||
3408 | * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel | |
3409 | ___XA type if the array has already been fixed. | |
3410 | ||
cdf43629 YQ |
3411 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
3412 | ||
3413 | * Makefile.in (ppc-linux.o): New rule. | |
3414 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. | |
3415 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
3416 | * config.in: Re-generated. | |
3417 | * configure: Re-generated. | |
3418 | * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): | |
3419 | Declare. | |
3420 | * nat/ppc-linux.c: New file. | |
3421 | * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: | |
3422 | Call ppc64_64bit_inferior_p. | |
3423 | ||
514c5338 YQ |
3424 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
3425 | ||
3426 | * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to | |
3427 | nat/ppc-linux.h. | |
3428 | (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. | |
3429 | (PPC_FEATURE_HAS_DFP): Likewise. | |
3430 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
3431 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
3432 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
3433 | Include "nat/ppc-linux.h". | |
3434 | * nat/ppc-linux.h: New file. | |
3435 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. | |
3436 | ||
5589af0e PA |
3437 | 2015-01-14 Pedro Alves <palves@redhat.com> |
3438 | ||
3439 | PR gdb/17525 | |
3440 | * breakpoint.c: Include "interps.h". | |
3441 | (bpstat_do_actions_1): Also check whether the interpreter is | |
3442 | async. | |
3443 | ||
6c400b59 PA |
3444 | 2015-01-14 Pedro Alves <palves@redhat.com> |
3445 | ||
3446 | PR cli/17828 | |
3447 | * infrun.c (reinstall_readline_callback_handler_cleanup): Don't | |
3448 | reinstall if the interpreter is sync. | |
3449 | ||
e02c96a7 DE |
3450 | 2015-01-13 Doug Evans <dje@google.com> |
3451 | ||
3452 | * objfiles.c (objfile_filename): New function. | |
3453 | * objfiles.h (objfile_filename): Declare it. | |
3454 | (objfile_name): Add function comment. | |
3455 | * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the | |
3456 | bfd file name (which may be realpath'd), and the original name. | |
3457 | ||
3b2f13ff JB |
3458 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
3459 | ||
3460 | * NEWS: Create a new section for the next release branch. | |
3461 | Rename the section of the current branch, now that it has | |
3462 | been cut. | |
3463 | ||
b4cfe7f8 JB |
3464 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
3465 | ||
3466 | GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): | |
3467 | * version.in: Bump version to 7.9.50.DATE-cvs. | |
3468 | ||
92fc2e69 JB |
3469 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
3470 | ||
3471 | * nat/linux-procfs.c (linux_proc_attach_tgid_threads): | |
3472 | Remove trailing new-line in argument of call to warning. | |
3473 | ||
f71f0b0d JB |
3474 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
3475 | ||
3476 | * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing | |
3477 | new-line in argument of call to "warning". | |
3478 | ||
04dccad0 JB |
3479 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
3480 | ||
3481 | * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found | |
3482 | in static block, then try searching for primitive types. | |
3483 | ||
08b13bdd PP |
3484 | 2015-01-12 Patrick Palka <patrick@parcs.ath.cx> |
3485 | ||
3486 | * top.h (gdb_add_history): Declare. | |
3487 | * top.c (command_count): New variable. | |
3488 | (gdb_add_history): New function. | |
3489 | (gdb_safe_append_history): New static function. | |
3490 | (quit_force): Call it. | |
3491 | (command_line_input): Use gdb_add_history instead of | |
3492 | add_history. | |
3493 | * event-top.c (command_line_handler): Likewise. | |
3494 | ||
4ac15b59 JC |
3495 | 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch) |
3496 | ||
3497 | PR gdb/17046 | |
3498 | * darwin-nat.c: Replace <machine/setjmp.h> #include by | |
3499 | <setjmp.h> #include. | |
3500 | ||
005e54bb DE |
3501 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
3502 | ||
3503 | * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. | |
3504 | ||
439250fb DE |
3505 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
3506 | ||
3507 | PR gdb/15830 | |
3508 | * NEWS: The "maint demangle" command is renamed as "demangle". | |
3509 | * demangle.c: #include cli/cli-utils.h, language.h. | |
3510 | (demangle_command): New function. | |
3511 | (_initialize_demangle): Add new command "demangle". | |
3512 | * maint.c (maintenance_demangle): Stub out. | |
3513 | (_initialize_maint_cmds): Update help text for "maint demangle", | |
3514 | and mark as deprecated. | |
3515 | ||
ebf3aa72 MK |
3516 | 2015-01-11 Mark Kettenis <kettenis@gnu.org> |
3517 | ||
3518 | * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that | |
3519 | inferior_thread is a function. | |
3520 | ||
6bf045cd PP |
3521 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
3522 | ||
3523 | * Makefile.in (.y.c): Don't munge yacc's #line | |
3524 | directives. | |
3525 | ||
588dcc3e PP |
3526 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
3527 | ||
3528 | * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper | |
3529 | to prompt for input. | |
3530 | * tui/tui-hooks.c (tui_query_hook): Remove. | |
3531 | (tui_install_hooks): Don't set deprecated_query_hook. | |
3532 | * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in | |
3533 | height calculation. Always update the command window's cur_line. | |
3534 | ||
9c02b525 PA |
3535 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3536 | ||
3537 | * breakpoint.c (hardware_breakpoint_inserted_here_p): New | |
3538 | function. | |
3539 | * breakpoint.h (hardware_breakpoint_inserted_here_p): New | |
3540 | declaration. | |
3541 | * linux-nat.c (linux_nat_status_is_event): Move higher up in file. | |
3542 | (linux_resume_one_lwp): Store the thread's PC. Adjust to clear | |
3543 | stop_reason. | |
3544 | (check_stopped_by_watchpoint): New function. | |
3545 | (save_sigtrap): Reimplement. | |
3546 | (linux_nat_stopped_by_watchpoint): Adjust. | |
3547 | (linux_nat_lp_status_is_event): Delete. | |
3548 | (stop_wait_callback): Only call save_sigtrap after storing the | |
3549 | pending status. | |
3550 | (status_callback): If the thread had been stopped for a breakpoint | |
3551 | that has since been removed, discard the event and resume the LWP. | |
3552 | (count_events_callback, select_event_lwp_callback): Use | |
3553 | lwp_status_pending_p instead of linux_nat_lp_status_is_event. | |
3554 | (cancel_breakpoint): Rename to ... | |
3555 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
3556 | stopped for a software breakpoint or hardware breakpoint. | |
3557 | (select_event_lwp): Only give preference to the stepping LWP in | |
3558 | all-stop mode. Adjust comments. | |
3559 | (stop_and_resume_callback): Remove references to new_pending_p. | |
3560 | (linux_nat_filter_event): Likewise. Leave exit events of the | |
3561 | leader thread pending here. Handle signal short circuiting here. | |
3562 | Only call save_sigtrap after storing the pending waitstatus. | |
3563 | (linux_nat_wait_1): Remove 'retry' label. Remove references to | |
3564 | new_pending. Don't handle leaving events the caller is not | |
3565 | interested in pending here, nor handle signal short-circuiting | |
3566 | here. Also give equal priority to all LWPs that have had events | |
3567 | in non-stop mode. If reporting a software breakpoint event, | |
3568 | unadjust the LWP's PC. | |
3569 | * linux-nat.h (enum lwp_stop_reason): New. | |
3570 | (struct lwp_info) <stop_pc>: New field. | |
3571 | (struct lwp_info) <stopped_by_watchpoint>: Delete field. | |
3572 | (struct lwp_info) <stop_reason>: New field. | |
3573 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
3574 | ||
8af756ef PA |
3575 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3576 | ||
3577 | * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: | |
3578 | Set the LWP's 'resumed' flag. | |
3579 | ||
8a99810d PA |
3580 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3581 | ||
3582 | * linux-nat.c (linux_resume_one_lwp): New function. | |
3583 | (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. | |
3584 | (linux_nat_resume): Use lwp_status_pending_p and | |
3585 | linux_resume_one_lwp. | |
3586 | (linux_handle_syscall_trap): Use linux_resume_one_lwp. | |
3587 | (linux_handle_extended_wait): Use linux_resume_one_lwp. | |
3588 | (status_callback, running_callback): Use lwp_status_pending_p. | |
3589 | (lwp_status_pending_p): New function. | |
3590 | (stop_and_resume_callback): Use lwp_status_pending_p. | |
3591 | (linux_nat_filter_event): Use linux_resume_one_lwp. | |
3592 | (linux_nat_wait_1): Always use status_callback to look for an LWP | |
3593 | with a pending status. Use linux_resume_one_lwp. | |
3594 | (resume_stopped_resumed_lwps): Use lwp_status_pending_p and | |
3595 | linux_resume_one_lwp. | |
3596 | ||
f7ce857f PA |
3597 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3598 | ||
3599 | * breakpoint.c (bp_location_inserted_here_p): New function, | |
3600 | factored out from ... | |
3601 | (breakpoint_inserted_here_p): ... here. Use | |
3602 | ALL_BP_LOCATIONS_AT_ADDR. | |
3603 | (software_breakpoint_inserted_here_p): Use | |
3604 | bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR. | |
3605 | ||
c1a747c1 PA |
3606 | 2014-01-09 Pedro Alves <palves@redhat.com> |
3607 | ||
3608 | Skip enabling event reporting if the kernel supports | |
3609 | PTRACE_EVENT_CLONE. | |
3610 | * linux-thread-db.c: Include "nat/linux-ptrace.h". | |
3611 | (thread_db_use_events): New function. | |
3612 | (try_thread_db_load_1): Check thread_db_use_events before enabling | |
3613 | event reporting. | |
3614 | (update_thread_state): New function. | |
3615 | (attach_thread): Use it. Check thread_db_use_events before | |
3616 | enabling event reporting. | |
3617 | (thread_db_detach): Check thread_db_use_events before disabling | |
3618 | event reporting. | |
3619 | (find_new_threads_callback): Check thread_db_use_events before | |
3620 | enabling event reporting. Update the thread's state if not using | |
3621 | libthread_db events. | |
3622 | ||
a33e3959 PA |
3623 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3624 | ||
3625 | * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're | |
3626 | about to wait for is > 0. | |
3627 | * linux-thread-db.c (find_new_threads_callback): Ignore thread if | |
3628 | the kernel thread ID is -1. | |
3629 | ||
8784d563 PA |
3630 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3631 | ||
3632 | * linux-nat.c (attach_proc_task_lwp_callback): New function. | |
3633 | (linux_nat_attach): Use linux_proc_attach_tgid_threads. | |
3634 | (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's | |
3635 | ptrace option flags. | |
3636 | * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New | |
3637 | field. | |
3638 | * nat/linux-procfs.c: Include <dirent.h>. | |
3639 | (linux_proc_get_int): New parameter "warn". Handle it. | |
3640 | (linux_proc_get_tgid): Adjust. | |
3641 | (linux_proc_get_tracerpid): Rename to ... | |
3642 | (linux_proc_get_tracerpid_nowarn): ... this. | |
3643 | (linux_proc_pid_get_state): New function, factored out from | |
3644 | (linux_proc_pid_has_state): ... this. Add new parameter "warn" | |
3645 | and handle it. | |
3646 | (linux_proc_pid_is_gone): New function. | |
3647 | (linux_proc_pid_is_stopped): Adjust. | |
3648 | (linux_proc_pid_is_zombie_maybe_warn) | |
3649 | (linux_proc_pid_is_zombie_nowarn): New functions. | |
3650 | (linux_proc_pid_is_zombie): Use | |
3651 | linux_proc_pid_is_zombie_maybe_warn. | |
3652 | (linux_proc_attach_tgid_threads): New function. | |
3653 | * nat/linux-procfs.h (linux_proc_get_tgid): Update comment. | |
3654 | (linux_proc_get_tracerpid): Rename to ... | |
3655 | (linux_proc_get_tracerpid_nowarn): ... this, and update comment. | |
3656 | (linux_proc_pid_is_gone): New declaration. | |
3657 | (linux_proc_pid_is_zombie): Update comment. | |
3658 | (linux_proc_pid_is_zombie_nowarn): New declaration. | |
3659 | (linux_proc_attach_lwp_func): New typedef. | |
3660 | (linux_proc_attach_tgid_threads): New declaration. | |
3661 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to | |
3662 | use nowarn functions. | |
3663 | (linux_ptrace_attach_fail_reason_string): Move here from | |
3664 | gdbserver/linux-low.c and rename. | |
3665 | (ptrace_supports_feature): If the current ptrace options are not | |
3666 | known yet, check them now, instead of asserting. | |
3667 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string): | |
3668 | Declare. | |
3669 | ||
883ed13e PA |
3670 | 2015-01-09 Pedro Alves <palves@redhat.com> |
3671 | ||
3672 | * linux-thread-db.c (thread_db_find_new_threads_silently) | |
3673 | (try_thread_db_load_1, try_thread_db_load, thread_db_load_search) | |
3674 | (find_new_threads_once): Print debug output on gdb_stdlog. | |
3675 | ||
1710aab8 CG |
3676 | 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com> |
3677 | Pedro Alves <palves@redhat.com> | |
3678 | ||
3679 | * compile/compile.c: Include "gdb_wait.h". | |
3680 | (do_rmdir): Check return value, and free 'zap'. | |
3681 | ||
b597c318 YQ |
3682 | 2015-01-08 Pedro Alves <palves@redhat.com> |
3683 | Yao Qi <yao@codesourcery.com> | |
3684 | ||
3685 | * dwarf2loc.c (indirect_pieced_value): Don't call | |
3686 | gdb_sign_extend. Call extract_signed_integer instead. | |
3687 | * utils.c (gdb_sign_extend): Remove. | |
3688 | * utils.h (gdb_sign_extend): Remove declaration. | |
3689 | ||
025ac414 PM |
3690 | 2015-01-07 Pierre Muller <muller@sourceware.org> |
3691 | ||
3692 | PR symtab/17811 | |
3693 | * stabsread.c (define_symbol): Set language for C++ special symbols. | |
3694 | ||
fa5af12a PP |
3695 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
3696 | ||
3697 | * inflow.c (initial_gdb_ttystate): Tweak comment. | |
3698 | ||
ea42d6f8 JB |
3699 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
3700 | ||
3701 | * inflow.c (set_initial_gdb_ttystate): Add empty line after | |
3702 | comment documenting function. | |
3703 | ||
6a06d660 PP |
3704 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
3705 | ||
3706 | * terminal.h (set_initial_gdb_ttystate): Declare. | |
3707 | * inflow.c (initial_gdb_ttystate): New static variable. | |
3708 | (set_initial_gdb_ttystate): New setter. | |
3709 | (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate | |
3710 | instead of our current terminal state. | |
3711 | * top.c (gdb_init): Call set_initial_gdb_ttystate. | |
3712 | ||
e810d75b JB |
3713 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
3714 | ||
3715 | * guile/scm-type.c (tyscm_array_1): Add comment. | |
3716 | * python/py-type.c (typy_array_1): Add comment. | |
3717 | ||
fce10a84 JB |
3718 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
3719 | ||
3720 | * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range | |
3721 | error if N2 is equal to N1 - 1. | |
3722 | ||
8503d6e1 JB |
3723 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
3724 | ||
3725 | * python/py-type.c (typy_array_1): Do not raise negative-length | |
3726 | exception if N2 is equal to N1 - 1. | |
3727 | ||
4d29c0a8 DE |
3728 | 2015-01-03 Doug Evans <xdje42@gmail.com> |
3729 | ||
3730 | * c-exp.y: Whitespace cleanup. | |
3731 | (classify_inner_name): Remove extra ;. | |
3732 | ||
eaa6a9a4 MR |
3733 | 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com> |
3734 | ||
3735 | * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack | |
3736 | offset signed. | |
3737 | ||
02fe9972 DE |
3738 | 2015-01-02 Doug Evans <dje@google.com> |
3739 | ||
3740 | * dwarf2read.c (setup_type_unit_groups): Remove outdated comment. | |
3741 | ||
e2ada9cb DE |
3742 | 2015-01-02 Doug Evans <dje@google.com> |
3743 | ||
3744 | * symtab.h (struct symbol): Fix typo in comment. | |
3745 | ||
32d0add0 JB |
3746 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
3747 | ||
3748 | Update year range in copyright notice of all files. | |
3749 | ||
76f2b779 JB |
3750 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
3751 | ||
3752 | * top.c (print_gdb_version): Update copyright year to 2015. | |
3753 | ||
077309e2 | 3754 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6bf6fd09 | 3755 | |
077309e2 | 3756 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014. |
6bf6fd09 | 3757 | |
077309e2 | 3758 | For older changes see ChangeLog-2014. |
c906108c SS |
3759 | \f |
3760 | Local Variables: | |
3761 | mode: change-log | |
3762 | left-margin: 8 | |
3763 | fill-column: 74 | |
3764 | version-control: never | |
57da7796 | 3765 | coding: utf-8 |
c906108c | 3766 | End: |