Commit | Line | Data |
---|---|---|
3f52fdbc KB |
1 | 2019-04-10 Kevin Buettner <kevinb@redhat.com> |
2 | ||
3 | * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value | |
4 | when using a 64-bit gdbserver. | |
5 | ||
b0319eaa TT |
6 | 2019-04-09 Tom Tromey <tromey@adacore.com> |
7 | ||
8 | * linux-low.c (select_event_lwp): Use find_thread_in_random. | |
9 | ||
eedc3f4f TT |
10 | 2019-04-08 Tom Tromey <tom@tromey.com> |
11 | ||
12 | * linux-low.c (linux_detach_one_lwp): Replace throw_exception with | |
13 | throw. | |
14 | (linux_resume_one_lwp): Likewise. | |
15 | ||
230d2906 TT |
16 | 2019-04-08 Tom Tromey <tom@tromey.com> |
17 | ||
18 | * gdbreplay.c: Update. | |
19 | * linux-low.c: Update. | |
20 | * server.c: Update. | |
21 | ||
a70b8144 TT |
22 | 2019-04-08 Tom Tromey <tom@tromey.com> |
23 | ||
24 | * server.c: Use C++ exception handling. | |
25 | * linux-low.c: Use C++ exception handling. | |
26 | * gdbreplay.c: Use C++ exception handling. | |
27 | ||
3d6e9d23 TT |
28 | 2019-04-08 Tom Tromey <tom@tromey.com> |
29 | ||
30 | * server.c (handle_btrace_general_set, handle_qxfer_btrace) | |
31 | (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup) | |
32 | (captured_main, main): Update. | |
33 | * gdbreplay.c (main): Update. | |
34 | ||
0570503d PFC |
35 | 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
36 | ||
37 | * linux-low.c (linux_get_auxv): Remove static. Return auxv entry | |
38 | value in argument pointer, return 1 if the entry is found and 0 | |
39 | otherwise. Move comment. | |
40 | (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv. | |
41 | * linux-low.h (linux_get_auxv): Declare. | |
42 | * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv. | |
43 | ||
227a9e65 TT |
44 | 2019-04-05 Tom Tromey <tromey@adacore.com> |
45 | ||
46 | * server.c (gdbserver_usage): Use upper-case for metasyntactic | |
47 | variables. | |
48 | ||
69f4c9cc AH |
49 | 2019-03-28 Alan Hayward <alan.hayward@arm.com> |
50 | ||
51 | * linux-low.c (AT_HWCAP2): Add define if not already included. | |
52 | ||
974c89e0 AH |
53 | 2019-03-26 Alan Hayward <alan.hayward@arm.com> |
54 | ||
55 | * linux-aarch64-low.c (aarch64_get_hwcap): Remove function. | |
56 | (aarch64_arch_setup): Call linux_get_hwcap. | |
57 | * linux-arm-low.c (arm_get_hwcap): Remove function. | |
58 | (arm_read_description): Call linux_get_hwcap. | |
59 | * linux-low.c (linux_get_auxv): New function. | |
60 | (linux_get_hwcap): Likewise. | |
61 | (linux_get_hwcap2): Likewise. | |
62 | * linux-low.h (linux_get_hwcap): New declaration. | |
63 | (linux_get_hwcap2): Likewise. | |
64 | * linux-ppc-low.c (ppc_get_auxv): Remove function. | |
65 | (ppc_arch_setup): Call linux_get_hwcap. | |
66 | * linux-s390-low.c (s390_get_hwcap): Remove function. | |
67 | (s390_arch_setup): Call linux_get_hwcap. | |
68 | ||
1ef53e6b AH |
69 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
70 | Jiong Wang <jiong.wang@arm.com> | |
71 | ||
72 | * linux-aarch64-low.c (aarch64_store_pauthregset): New function. | |
73 | * linux-low.c (regsets_store_inferior_registers): Allow optional reads | |
74 | to fail. | |
75 | * linux-low.h (enum regset_type): Add OPTIONAL_REGS. | |
76 | ||
ee4fbcfa AH |
77 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
78 | Jiong Wang <jiong.wang@arm.com> | |
79 | ||
80 | * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define. | |
81 | (aarch64_get_hwcap): New function. | |
82 | (aarch64_arch_setup): Read APIA hwcap. | |
83 | ||
6dc0ebde AH |
84 | 2019-03-22 Alan Hayward <alan.hayward@arm.com> |
85 | Jiong Wang <jiong.wang@arm.com> | |
86 | ||
87 | * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param. | |
88 | (initialize_low_tracepoint): Likewise. | |
89 | * linux-aarch64-low.c (aarch64_arch_setup): Likewise. | |
90 | * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise. | |
91 | * linux-aarch64-tdesc.c (struct target_desc): Likewise. | |
92 | (aarch64_linux_read_description): Likewise. | |
93 | * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise. | |
94 | ||
1163a4b7 JB |
95 | 2019-03-12 John Baldwin <jhb@FreeBSD.org> |
96 | ||
97 | * linux-x86-tdesc.c (i386_linux_read_description): Update call to | |
98 | i386_create_target_description for 'segments' parameter. | |
99 | * lynx-i386-low.c (lynx_i386_arch_setup): Likewise. | |
100 | * nto-x86-low.c (nto_x86_arch_setup): Likewise. | |
101 | * win32-i386-low.c (i386_arch_setup): Likewise. | |
102 | ||
d3a70e03 TT |
103 | 2019-03-12 Tom Tromey <tromey@adacore.com> |
104 | ||
105 | * linux-low.c (iterate_over_lwps): Update. | |
106 | ||
37991b4f TT |
107 | 2019-03-06 Tom Tromey <tom@tromey.com> |
108 | ||
109 | * server.c (detach_or_kill_for_exit_cleanup): Remove parameter. | |
110 | (captured_main): Use SCOPE_EXIT. | |
111 | ||
45950eb6 SDJ |
112 | 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com> |
113 | ||
114 | * configure.srv: Use '$enable_unittest' instead of '$development' | |
115 | when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*' | |
116 | case. | |
117 | ||
43ac54fc TT |
118 | 2019-02-27 Tom Tromey <tromey@adacore.com> |
119 | ||
120 | * gdbreplay.c (logchar): Handle \r\n. | |
121 | ||
df0da8a2 AH |
122 | 2019-02-07 Alan Hayward <alan.hayward@arm.com> |
123 | ||
124 | * linux-low.c (linux_attach): Add process before lwp. | |
125 | * server.c (attach_inferior): Check if already attached. | |
126 | ||
1a5c2598 TT |
127 | 2019-02-07 Tom Tromey <tom@tromey.com> |
128 | ||
129 | * x86-tdesc.h: Rename include guard. | |
130 | * x86-low.h: Add include guard. | |
131 | * wincecompat.h: Rename include guard. | |
132 | * win32-low.h: Add include guard. | |
133 | * utils.h: Rename include guard. | |
134 | * tracepoint.h: Rename include guard. | |
135 | * tdesc.h: Rename include guard. | |
136 | * target.h: Rename include guard. | |
137 | * server.h: Rename include guard. | |
138 | * remote-utils.h: Rename include guard. | |
139 | * regcache.h: Rename include guard. | |
140 | * nto-low.h: Rename include guard. | |
141 | * notif.h: Add include guard. | |
142 | * mem-break.h: Rename include guard. | |
143 | * lynx-low.h: Add include guard. | |
144 | * linux-x86-tdesc.h: Add include guard. | |
145 | * linux-s390-tdesc.h: Add include guard. | |
146 | * linux-ppc-tdesc-init.h: Add include guard. | |
147 | * linux-low.h: Add include guard. | |
148 | * linux-aarch64-tdesc.h: Add include guard. | |
149 | * linux-aarch32-low.h: Add include guard. | |
150 | * inferiors.h: Rename include guard. | |
151 | * i387-fp.h: Rename include guard. | |
152 | * hostio.h: Rename include guard. | |
153 | * gdbthread.h: Rename include guard. | |
154 | * gdb_proc_service.h: Rename include guard. | |
155 | * event-loop.h: Rename include guard. | |
156 | * dll.h: Rename include guard. | |
157 | * debug.h: Rename include guard. | |
158 | * ax.h: Rename include guard. | |
159 | ||
956cc47c SN |
160 | 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com> |
161 | ||
162 | PR gdb/23985 | |
163 | * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS. | |
164 | (UNDO_GNULIB_CFLAGS): Undo gnulib replacements. | |
165 | ||
a0707f3c TT |
166 | 2019-01-25 Tom Tromey <tom@tromey.com> |
167 | ||
168 | * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common. | |
169 | ||
0747795c TT |
170 | 2019-01-25 Tom Tromey <tom@tromey.com> |
171 | ||
172 | * win32-low.c: Fix common/ includes. | |
173 | * win32-i386-low.c: Fix common/ includes. | |
174 | * tracepoint.c: Fix common/ includes. | |
175 | * thread-db.c: Fix common/ includes. | |
176 | * target.h: Fix common/ includes. | |
177 | * symbol.c: Fix common/ includes. | |
178 | * spu-low.c: Fix common/ includes. | |
179 | * server.h: Fix common/ includes. | |
180 | * server.c: Fix common/ includes. | |
181 | * remote-utils.c: Fix common/ includes. | |
182 | * regcache.h: Fix common/ includes. | |
183 | * regcache.c: Fix common/ includes. | |
184 | * nto-x86-low.c: Fix common/ includes. | |
185 | * notif.h: Fix common/ includes. | |
186 | * mem-break.h: Fix common/ includes. | |
187 | * lynx-low.c: Fix common/ includes. | |
188 | * lynx-i386-low.c: Fix common/ includes. | |
189 | * linux-x86-tdesc-selftest.c: Fix common/ includes. | |
190 | * linux-x86-low.c: Fix common/ includes. | |
191 | * linux-low.c: Fix common/ includes. | |
192 | * inferiors.h: Fix common/ includes. | |
193 | * i387-fp.c: Fix common/ includes. | |
194 | * hostio.c: Fix common/ includes. | |
195 | * hostio-errno.c: Fix common/ includes. | |
196 | * gdbthread.h: Fix common/ includes. | |
197 | * gdbreplay.c: Fix common/ includes. | |
198 | * fork-child.c: Fix common/ includes. | |
199 | * event-loop.c: Fix common/ includes. | |
200 | * ax.c: | |
201 | (enum gdb_agent_op): Fix common/ includes. | |
202 | ||
be6d4f74 TT |
203 | 2019-01-21 Tom Tromey <tom@tromey.com> |
204 | ||
205 | * tracepoint.c: Fix includes. | |
206 | * remote-utils.c: Fix includes. | |
207 | * linux-x86-low.c: Fix includes. | |
208 | ||
66d91b39 JB |
209 | 2019-01-01 Joel Brobecker <brobecker@adacore.com> |
210 | ||
211 | * gdbreplay.c (gdbreplay_version): Update copyright year in | |
212 | version message. | |
213 | * server.c (gdbserver_version): Likewise. | |
214 | ||
754e3168 AH |
215 | 2018-12-05 Alan Hayward <alan.hayward@arm.com> |
216 | ||
217 | * linux-low.c (add_lwp): Switch ordering. | |
218 | ||
d105de22 TT |
219 | 2018-11-29 Tom Tromey <tom@tromey.com> |
220 | ||
221 | * win32-low.c (win32_join): Take pid, not process. | |
222 | * target.h (struct target_ops) <join>: Change argument type. | |
223 | (join_inferior): Change argument name. | |
224 | * spu-low.c (spu_join): Take pid, not process. | |
225 | * server.c (handle_detach): Preserve pid before destroying | |
226 | process. | |
227 | * lynx-low.c (lynx_join): Take pid, not process. | |
228 | * linux-low.c (linux_join): Take pid, not process. | |
229 | ||
50138245 AH |
230 | 2018-11-23 Alan Hayward <alan.hayward@arm.com> |
231 | ||
232 | * linux-aarch64-low.c (aarch64_cannot_store_register): Remove. | |
233 | (aarch64_cannot_fetch_register): Likewise. | |
234 | (struct linux_target_ops): Update references. | |
235 | ||
64f57f3d PFC |
236 | 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
237 | ||
238 | * linux-ppc-low.c: Include nat/linux-ptrace.h. | |
239 | ||
8d619c01 EBM |
240 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
241 | ||
242 | * configure.srv (ipa_ppc_linux_regobj): Add | |
243 | powerpc-isa207-htm-vsx32l-ipa.o and | |
244 | powerpc-isa207-htm-vsx64l-ipa.o. | |
245 | (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and | |
246 | powerpc-isa207-htm-vsx64l.o to srv_regobj. Add | |
247 | rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml, | |
248 | rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml, | |
249 | rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml, | |
250 | rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml, | |
251 | rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml, | |
252 | and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles. | |
253 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
254 | <PPC_TDESC_ISA207_HTM_VSX>: New enum value. | |
255 | (init_registers_powerpc_isa207_htm_vsx32l) | |
256 | (init_registers_powerpc_isa207_htm_vsx64l): Declare. | |
257 | * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset) | |
258 | (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset) | |
259 | (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset) | |
260 | (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset) | |
261 | (ppc_store_tm_ctarregset): New functions. | |
262 | (ppc_regsets): Add entries for HTM regsets. | |
263 | (ppc_arch_setup): Set htm in features struct when needed. Set | |
264 | sizes for the HTM regsets. | |
265 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX. | |
266 | (initialize_low_arch): Call | |
267 | init_registers_powerpc_isa207_htm_vsx32l and | |
268 | init_registers_powerpc_isa207_htm_vsx64l. | |
269 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle | |
270 | PPC_TDESC_ISA207_HTM_VSX. | |
271 | (initialize_low_tracepoint): Call | |
272 | init_registers_powerpc_isa207_htm_vsx32l and | |
273 | init_registers_powerpc_isa207_htm_vsx64l. | |
274 | ||
232bfb86 EBM |
275 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
276 | ||
277 | * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and | |
278 | rs6000/power-linux-pmu.xml to srv_xmlfiles. | |
279 | * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset) | |
280 | (ppc_store_pmuregset): New functions. | |
281 | (ppc_regsets): Add entries for ebb and pmu regsets. | |
282 | (ppc_arch_setup): Set isa207 in features struct if the ebb and | |
283 | pmu regsets are available. Set sizes for these regsets. | |
284 | ||
f2cf6173 EBM |
285 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
286 | ||
287 | * configure.srv (ipa_ppc_linux_regobj): Add | |
288 | powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o. | |
289 | (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and | |
290 | powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml, | |
291 | rs6000/powerpc-isa207-vsx32l.xml, and | |
292 | rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles. | |
293 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
294 | <PPC_TDESC_ISA207_VSX>: New enum value. | |
295 | (init_registers_powerpc_isa207_vsx32l): Declare. | |
296 | (init_registers_powerpc_isa207_vsx64l): Declare. | |
297 | * linux-ppc-low.c (ppc_fill_tarregset): New function. | |
298 | (ppc_store_tarregset): New function. | |
299 | (ppc_regsets): Add entry for the TAR regset. | |
300 | (ppc_arch_setup): Set isa207 in features struct when needed. Set | |
301 | size for the TAR regsets. | |
302 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX. | |
303 | (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l | |
304 | and init_registers_powerpc_isa207_vsx64l. | |
305 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX. | |
306 | (initialize_low_tracepoint): Call | |
307 | init_registers_powerpc_isa207_vsx32l and | |
308 | init_registers_powerpc_isa207_vsx64l. | |
309 | ||
7ca18ed6 EBM |
310 | 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
311 | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | |
312 | ||
313 | * configure.srv (ipa_ppc_linux_regobj): Add | |
314 | powerpc-isa205-ppr-dscr-vsx32l-ipa.o and | |
315 | powerpc-isa205-ppr-dscr-vsx64l-ipa.o. | |
316 | (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and | |
317 | powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add | |
318 | rs6000/power-dscr.xml, rs6000/power-ppr.xml, | |
319 | rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and | |
320 | rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles. | |
321 | * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc) | |
322 | <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value. | |
323 | (init_registers_powerpc_isa205_ppr_dscr_vsx32l) | |
324 | (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare. | |
325 | * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>. | |
326 | (ppc_hwcap): Add comment. | |
327 | (ppc_hwcap2): New global. | |
328 | (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset) | |
329 | (ppc_fill_dscrregset, ppc_store_dscrregset): New functions. | |
330 | (ppc_regsets): Add entries for the DSCR and PPR regsets. | |
331 | (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct | |
332 | when needed. Set sizes for the the DSCR and PPR regsets. | |
333 | (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX. | |
334 | (initialize_low_arch): Call | |
335 | init_registers_powerpc_isa205_ppr_dscr_vsx32l and | |
336 | init_registers_powerpc_isa205_ppr_dscr_vsx64l. | |
337 | * linux-ppc-ipa.c (get_ipa_tdesc): Handle | |
338 | PPC_TDESC_ISA205_PPR_DSCR_VSX. | |
339 | (initialize_low_tracepoint): Call | |
340 | init_registers_powerpc_isa205_ppr_dscr_vsx32l and | |
341 | init_registers_powerpc_isa205_ppr_dscr_vsx64l. | |
342 | ||
5c849b22 PFC |
343 | 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
344 | ||
345 | * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls. | |
346 | ||
8ecfd7bd SDJ |
347 | 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com> |
348 | Simon Marchi <simark@simark.ca> | |
349 | ||
350 | * acinclude.m4: Include "../selftest.m4". | |
351 | * configure: Regenerate. | |
352 | * configure.ac: Use "GDB_AC_SELFTEST". | |
353 | * configure.srv: Use "$enable_unittests" instead of | |
354 | "$development" when checking whether unit tests have been | |
355 | enabled. | |
356 | * server.c (captured_main): Update message informing that | |
357 | selftests have been disabled. | |
358 | ||
96643e35 TT |
359 | 2018-10-04 Tom Tromey <tom@tromey.com> |
360 | ||
361 | * configure: Rebuild. | |
362 | ||
da4ae14a TT |
363 | 2018-10-04 Tom Tromey <tom@tromey.com> |
364 | ||
365 | * server.c (handle_status): Rename inner "thread". | |
366 | (process_serial_event): Declare "res" in 'm' case. | |
367 | * linux-low.c (last_thread_of_process_p, find_lwp_pid) | |
368 | (iterate_over_lwps): Rename inner "thread". | |
369 | (linux_qxfer_libraries_svr4): Rename inner "len". | |
370 | * gdbthread.h (find_thread_in_random): Rename inner "thread". | |
371 | ||
7c619dbd GB |
372 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
373 | ||
374 | * gdb_proc_service.h: Moved common code to | |
375 | common/gdb_proc_service.h. | |
376 | ||
3795e814 GB |
377 | 2018-10-01 Gary Benson <gbenson@redhat.com> |
378 | ||
379 | * gdb_proc_service.h: Synchronize comments and whitespace with | |
380 | GDB's version of this file. | |
381 | ||
49b036f1 TT |
382 | 2018-09-25 Tom Tromey <tom@tromey.com> |
383 | ||
384 | * configure: Rebuild. | |
385 | * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes. | |
386 | ||
8ff03f0b SM |
387 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
388 | ||
389 | * Makefile.in (gdbserver$(EXEEXT)): Sort OBS. | |
390 | (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS. | |
391 | ($(IPA_LIB)): Sort IPA_OBJS. | |
392 | ||
a1cd91dc SM |
393 | 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> |
394 | ||
395 | * Makefile.in: Remove references to $(ADD_DEPS). | |
396 | ||
752312ba TT |
397 | 2018-09-16 Tom Tromey <tom@tromey.com> |
398 | ||
399 | * remote-utils.c (remote_open): Use GNU style for metasyntactic | |
400 | variables. | |
401 | * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic | |
402 | variables. | |
403 | ||
f1628857 TT |
404 | 2018-09-05 Tom Tromey <tom@tromey.com> |
405 | ||
406 | * configure: Rebuild. | |
407 | ||
ad202fcc SM |
408 | 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> |
409 | ||
410 | PR build/23399 | |
411 | * tracepoint.c (IPA_SYM_STRUCT_NAME): Define. | |
412 | ||
d3d8724a TT |
413 | 2018-08-27 Tom Tromey <tom@tromey.com> |
414 | ||
415 | PR build/23087: | |
416 | * configure: Rebuild. | |
417 | ||
b4f183d2 TT |
418 | 2018-08-27 Tom Tromey <tom@tromey.com> |
419 | ||
420 | * linux-s390-low.c (s390_emit_ext, s390_emit_litpool) | |
421 | (s390_emit_const, s390_emit_reg, s390_emit_zero_ext) | |
422 | (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext) | |
423 | (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext) | |
424 | (s390x_emit_stack_adjust): Add casts to unsigned char. | |
425 | ||
4e2aa472 SM |
426 | 2018-08-22 Simon Marchi <simon.marchi@ericsson.com> |
427 | ||
428 | PR gdb/23374 | |
429 | PR gdb/23375 | |
430 | * server.h (struct client_state) <disable_randomization>: | |
431 | Initialize to 1. | |
432 | ||
cf4088a9 SM |
433 | 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
434 | ||
435 | * linux-mips-low.c (mips_collect_ptrace_register): Remove unused | |
436 | variable. | |
437 | (mips_supply_ptrace_register): Likewise. | |
438 | ||
a0de763e TT |
439 | 2018-07-22 Tom Tromey <tom@tromey.com> |
440 | ||
441 | * configure: Rebuild. | |
442 | ||
b0a7723d TT |
443 | 2018-07-22 Tom Tromey <tom@tromey.com> |
444 | ||
445 | * win32-low.c (win32_create_inferior): Remove unused variables. | |
446 | * gdbreplay.c (remote_open): Remove unused variable. | |
447 | * remote-utils.c (remote_prepare): Remove unused variable. | |
448 | * x86-tdesc.h (X86_TDESC_H): Define. | |
449 | (amd64_expedite_regs): Define conditionally. | |
450 | (i386_expedite_regs): Mark ATTRIBUTE_UNUSED. | |
451 | * linux-x86-tdesc.c (i386_tdescs): Move inside #if. | |
452 | * remote-utils.c (readchar): Remove unused variable. | |
453 | ||
a780ef4f PA |
454 | 2018-07-13 Pedro Alves <palves@redhat.com> |
455 | ||
456 | * linux-low.c (linux_kill): Change parameter to process_info | |
457 | pointer instead of pid. Adjust. | |
458 | * lynx-low.c (lynx_kill): Likewise. | |
459 | * nto-low.c (nto_kill): Likewise. | |
460 | * spu-low.c (spu_kill): Likewise. | |
461 | * win32-low.c (win32_kill): Likewise. | |
462 | * server.c (handle_v_kill, kill_inferior_callback) | |
463 | (detach_or_kill_for_exit): Adjust. | |
464 | * target.c (kill_inferior): Change parameter to process_info | |
465 | pointer instead of pid. Adjust. | |
466 | * target.h (struct target_ops) <kill>: Change parameter to | |
467 | process_info pointer instead of pid. Adjust all implementations | |
468 | and callers. | |
469 | (kill_inferior): Likewise. | |
470 | ||
ef2ddb33 PA |
471 | 2018-07-13 Pedro Alves <palves@redhat.com> |
472 | ||
473 | * linux-low.c (linux_detach, linux_join): Change parameter to | |
474 | process_info pointer instead of pid. Adjust. | |
475 | * lynx-low.c (lynx_detach, lynx_join): Likewise. | |
476 | * nto-low.c (nto_detach): Likewise. | |
477 | * spu-low.c (spu_detach, spu_join): Likewise. | |
478 | * win32-low.c (win32_detach, win32_join): Likewise. | |
479 | * server.c (handle_detach, detach_or_kill_for_exit): Adjust. | |
480 | * target.h (struct target_ops) <detach, join>: Change parameter to | |
481 | process_info pointer instead of pid. Adjust all implementations | |
482 | and callers. | |
483 | (detach_inferior, join_inferior): Rename 'pid' parameter to | |
484 | 'proc'. | |
485 | ||
c7ab0aef SDJ |
486 | 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> |
487 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
488 | Paul Fertser <fercerpav@gmail.com> | |
489 | Tsutomu Seki <sekiriki@gmail.com> | |
490 | ||
491 | * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'. | |
492 | (OBS): Add 'common/netstuff.o'. | |
493 | (GDBREPLAY_OBS): Likewise. | |
494 | * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'. | |
495 | (remote_open): Implement support for IPv6 | |
496 | connections. | |
497 | * remote-utils.c: Include 'netstuff.h', 'filestuff.h' | |
498 | and 'wspiapi.h'. | |
499 | (handle_accept_event): Accept connections from IPv6 sources. | |
500 | (remote_prepare): Handle IPv6-style hostnames; implement | |
501 | support for IPv6 connections. | |
502 | (remote_open): Implement support for printing connections from | |
503 | IPv6 sources. | |
504 | ||
31445d10 PA |
505 | 2018-07-11 Pedro Alves <palves@redhat.com> |
506 | ||
507 | PR gdb/23377 | |
508 | * mem-break.c (any_persistent_commands): Add process_info | |
509 | parameter and use it instead of relying on the current process. | |
510 | Change return type to bool. | |
511 | * mem-break.h (any_persistent_commands): Add process_info | |
512 | parameter and change return type to bool. | |
513 | * server.c (handle_detach): Remove require_running_or_return call. | |
514 | Look up the process_info for the process we're about to detach. | |
515 | If not found, return back error to GDB. Adjust | |
516 | any_persistent_commands call to pass down a process pointer. | |
517 | ||
cb197132 PA |
518 | 2018-07-11 Pedro Alves <palves@redhat.com> |
519 | ||
520 | * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave) | |
521 | (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name | |
522 | instead of collect_register_by_name. | |
523 | * regcache.c (regcache_raw_get_unsigned_by_name): New. | |
524 | * regcache.h (regcache_raw_get_unsigned_by_name): New. | |
525 | ||
1b919490 VB |
526 | 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> |
527 | Pedro Alves <palves@redhat.com> | |
528 | ||
529 | * linux-low.c (initialize_low): Call linux_proc_init_warnings. | |
530 | ||
d7e15655 TT |
531 | 2018-07-03 Tom Tromey <tom@tromey.com> |
532 | ||
533 | * linux-low.c: Update. | |
534 | * lynx-low.c: Update. | |
535 | * mem-break.c: Update. | |
536 | * nto-low.c: Update. | |
537 | * remote-utils.c: Update. | |
538 | * server.c: Update. | |
539 | * spu-low.c: Update. | |
540 | * target.c: Update. | |
541 | * win32-low.c: Update. | |
542 | ||
26a57c92 TT |
543 | 2018-07-03 Tom Tromey <tom@tromey.com> |
544 | ||
545 | * server.c: Update. | |
546 | ||
0e998d96 TT |
547 | 2018-07-03 Tom Tromey <tom@tromey.com> |
548 | ||
549 | * linux-low.c: Update. | |
550 | ||
cc6bcb54 TT |
551 | 2018-07-03 Tom Tromey <tom@tromey.com> |
552 | ||
553 | * target.c: Update. | |
554 | ||
e38504b3 TT |
555 | 2018-07-03 Tom Tromey <tom@tromey.com> |
556 | ||
557 | * linux-low.c: Update. | |
558 | * linux-mips-low.c: Update. | |
559 | * lynx-low.c: Update. | |
560 | * nto-low.c: Update. | |
561 | * remote-utils.c: Update. | |
562 | * server.c: Update. | |
563 | * spu-low.c: Update. | |
564 | * target.c: Update. | |
565 | * thread-db.c: Update. | |
566 | ||
e99b03dc TT |
567 | 2018-07-03 Tom Tromey <tom@tromey.com> |
568 | ||
569 | * linux-low.c: Update. | |
570 | * linux-mips-low.c: Update. | |
571 | * lynx-low.c: Update. | |
572 | * mem-break.c: Update. | |
573 | * nto-low.c: Update. | |
574 | * remote-utils.c: Update. | |
575 | * server.c: Update. | |
576 | * spu-low.c: Update. | |
577 | * target.c: Update. | |
578 | * tracepoint.c: Update. | |
579 | ||
f2907e49 TT |
580 | 2018-07-03 Tom Tromey <tom@tromey.com> |
581 | ||
582 | * linux-low.c: Update. | |
583 | * linux-ppc-low.c: Update. | |
584 | * linux-x86-low.c: Update. | |
585 | * proc-service.c: Update. | |
586 | * server.c: Update. | |
587 | * spu-low.c: Update. | |
588 | * thread-db.c: Update. | |
589 | * win32-low.c: Update. | |
590 | ||
fd79271b TT |
591 | 2018-07-03 Tom Tromey <tom@tromey.com> |
592 | ||
593 | * linux-low.c: Update. | |
594 | * lynx-low.c: Update. | |
595 | * nto-low.c: Update. | |
596 | * remote-utils.c: Update. | |
597 | * spu-low.c: Update. | |
598 | * thread-db.c: Update. | |
599 | * win32-low.c: Update. | |
600 | ||
c0867626 SDJ |
601 | 2018-06-29 Joel Brobecker <brobecker@adacore.com> |
602 | ||
603 | * linux-x86-tdesc.c (amd64_linux_read_description): Add missing | |
604 | parameter in call to 'amd64_create_target_description'. | |
605 | ||
2512d7ef JK |
606 | 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
607 | ||
608 | * x86-tdesc.h: Remove executable permission flag. | |
609 | ||
d0ac1c44 SM |
610 | 2018-06-19 Simon Marchi <simon.marchi@ericsson.com> |
611 | ||
612 | * configure.ac: Remove AC_PREREQ, add missing quoting. | |
613 | * configure: Re-generate. | |
614 | * config.in: Re-generate. | |
615 | * aclocal.m4: Re-generate. | |
616 | ||
c4eb05ff SM |
617 | 2018-06-18 Simon Marchi <simon.marchi@ericsson.com> |
618 | ||
619 | * tracepoint.h (current_traceframe): Remove declaration. | |
620 | ||
02895270 AH |
621 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
622 | ||
623 | * linux-aarch64-low.c (is_sve_tdesc): New function. | |
624 | (aarch64_sve_regs_copy_to_regcache): Likewise. | |
625 | (aarch64_sve_regs_copy_from_regcache): Likewise. | |
626 | (aarch64_regs_info): Add SVE checks. | |
627 | (initialize_low_arch): Initialize SVE. | |
628 | ||
e9902bfc AH |
629 | 2018-06-18 Alan Hayward <alan.hayward@arm.com> |
630 | ||
631 | * Makefile.in: Add aarch64-sve-linux-ptrace.c. | |
632 | ||
fefa175e AH |
633 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
634 | ||
635 | * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param. | |
636 | (initialize_low_tracepoint): Likewise | |
637 | * linux-aarch64-low.c (aarch64_arch_setup): Get VQ. | |
638 | * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ | |
639 | param. | |
640 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ | |
641 | checks. | |
642 | * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ. | |
643 | ||
b91ad3ff AH |
644 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
645 | ||
646 | * server.h (PBUFSIZ): Increase size | |
647 | ||
f868386e AH |
648 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
649 | ||
650 | * regcache.c (regcache::raw_compare): New function. | |
651 | * regcache.h (regcache::raw_compare): New declaration. | |
652 | ||
9c861883 AH |
653 | 2018-06-11 Alan Hayward <alan.hayward@arm.com> |
654 | ||
655 | * regcache.c (new_register_cache): Use new. | |
656 | (free_register_cache): Use delete. | |
657 | (register_data): Use const. | |
658 | (supply_register): Move body inside regcache. | |
659 | (regcache::raw_supply): New override function. | |
660 | (collect_register): Move body inside regcache. | |
661 | (regcache::raw_collect): New override function. | |
662 | (regcache::get_register_status): New override function. | |
663 | * regcache.h (struct regcache): Inherit from reg_buffer_common. | |
664 | ||
40591844 TT |
665 | 2018-06-09 Tom Tromey <tom@tromey.com> |
666 | ||
667 | * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't | |
668 | declare queue. | |
669 | (event_queue): Use std::queue. | |
670 | (gdb_event_xfree): Remove. | |
671 | (initialize_event_loop, process_event, wait_for_event): Update. | |
672 | ||
6341380d SC |
673 | 2018-06-08 Stan Cox <scox@redhat.com> |
674 | ||
675 | * win32-low.c (win32_create_inferior): last_ptid and last_status | |
676 | moved to client_state. | |
677 | ||
03349c93 PA |
678 | 2018-06-08 Pedro Alves <palves@redhat.com> |
679 | ||
680 | * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o, | |
681 | common/common-exceptions.o, common/common-utils.o, | |
682 | common/errors.o, common/print-utils.o and utils.o. | |
683 | * gdbreplay.c: Include "common-defs.h" instead of the two | |
684 | 'config.h's here. Don't include stdio.h, errno.h, stdlib.h, | |
685 | string.h or alloca.h. | |
686 | (perror_with_name): Delete. | |
687 | (remote_open): Use xstrdup instead of strdup. | |
688 | (main): Rename to ... | |
689 | (captured_main): ... this. | |
690 | (main): New. | |
691 | ||
8dcc53b3 TT |
692 | 2018-06-08 Tom Tromey <tom@tromey.com> |
693 | ||
694 | * linux-low.c (linux_low_read_btrace): Update. | |
695 | ||
c12a5089 SC |
696 | 2018-06-04 Stan Cox <scox@redhat.com> |
697 | ||
698 | * server.h (struct client_state): New. | |
699 | * server.c (cont_thread, general_thread, multi_process) | |
700 | (report_fork_events, report_vfork_events, report_exec_events) | |
701 | (report_thread_events, swbreak_feature, hwbreak_feature) | |
702 | (vCont_supported, disable_randomization, pass_signals) | |
703 | (program_signals, program_signals_p, last_status, last_ptid, own_buf): | |
704 | Moved to client_state. | |
705 | * remote-utils.c (remote_debug, noack_mode) | |
706 | (transport_is_reliable): Moved to client_state. | |
707 | * tracepoint.c (current_traceframe): Moved to client_state. | |
708 | ||
709 | Update all callers. | |
710 | * server.c, remote-utils.c, tracepoint.c, fork-child.c, | |
711 | linux-low.c, remote-utils.h, target.c: Use client_state. | |
712 | ||
122394f1 AH |
713 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
714 | ||
715 | * configure.srv: Add new c/h file. | |
716 | ||
95228a0d AH |
717 | 2018-05-31 Alan Hayward <alan.hayward@arm.com> |
718 | ||
719 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add | |
720 | null VQ. | |
721 | ||
d8dab6c3 MR |
722 | 2018-05-25 Maciej W. Rozycki <macro@mips.com> |
723 | ||
724 | * gdb.arch/mips-fpregset-core.exp: New test. | |
725 | * gdb.arch/mips-fpregset-core.c: New test source. | |
726 | ||
81e25b7c EK |
727 | 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com> |
728 | ||
729 | PR server/23198 | |
730 | * hostio.c (require_int): Do not report overflow for integers | |
731 | between 0xfffffff and 0x7fffffff. | |
732 | ||
7e947ad3 MR |
733 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
734 | ||
735 | * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register) | |
736 | (mips_supply_register): Move outside HAVE_PTRACE_GETREGS. | |
737 | (mips_collect_ptrace_register, mips_supply_ptrace_register): New | |
738 | functions. | |
739 | (the_low_target): Wire them. | |
740 | ||
1d75a658 PFC |
741 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
742 | ||
743 | * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable. | |
744 | Set vscr_offset to 0 in little-endian mode and 12 in big-endian | |
745 | mode. Call collect_register_by_name with vscr using | |
746 | vscr_offset. Zero-pad vscr and vrsave fields in collector buffer. | |
747 | (ppc_store_vrregset): Add and set vscr_offset variable as in | |
748 | ppc_fill_vrregset. Call supply_register_by_name with vscr using | |
749 | vscr_offset. | |
750 | ||
d078308a PFC |
751 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
752 | ||
753 | * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. | |
754 | (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to | |
755 | PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET. | |
756 | ||
7273b5fc PFC |
757 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
758 | ||
759 | * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check. | |
760 | (ppc_store_vsxregset): Likewise. | |
761 | (ppc_fill_vrregset): Likewise. | |
762 | (ppc_store_vrregset): Likewise. | |
763 | (ppc_fill_evrregset): Likewise. | |
764 | (ppc_store_evrregset): Likewise. | |
765 | (ppc_regsets): Set VSX/VR/EVR regset sizes to 0. | |
766 | (ppc_arch_setup): Iterate through ppc_regsets and set sizes when | |
767 | needed. | |
768 | ||
2e077f5e PFC |
769 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
770 | ||
771 | * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the | |
772 | wordsize of the inferior. Call ppc_linux_target_wordsize. | |
773 | ||
bd64614e PFC |
774 | 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> |
775 | ||
776 | * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o. | |
777 | * Makefile.in (SFILES): Add arch/ppc-linux-common.c. | |
778 | * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h. | |
779 | * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l) | |
780 | (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) | |
781 | (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) | |
782 | (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) | |
783 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) | |
784 | (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) | |
785 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) | |
786 | (tdesc_powerpc_e500l): Remove. | |
787 | * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and | |
788 | linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h. | |
789 | * linux-ppc-low.c: Include arch/ppc-linux-common.h, | |
790 | arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include | |
791 | linux-ppc-tdesc.h. | |
792 | (ppc_arch_setup): Remove target description matching code. Fill a | |
793 | ppc_linux_features struct and call ppc_linux_match_description | |
794 | with it. | |
795 | ||
75d74cca MR |
796 | 2018-05-22 Maciej W. Rozycki <macro@mips.com> |
797 | ||
798 | * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the | |
799 | width of the requested register exceeds the width of the | |
800 | `ptrace' data type. | |
801 | (mips_cannot_store_register): Likewise. | |
802 | ||
e4439e43 MR |
803 | 2018-05-21 Maciej W. Rozycki <macro@mips.com> |
804 | ||
805 | * linux-mips-low.c (mips_fetch_register): New function. Update | |
806 | preceding comment. | |
807 | (mips_store_gregset): Supply 0 rather than $restart for $zero. | |
808 | (the_low_target): Wire `mips_fetch_register'. | |
809 | ||
55271bf9 JB |
810 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
811 | ||
812 | * lynx-i386-low.c (LYNXOS_178): New macro. | |
813 | [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches | |
814 | the layout on LynxOS-178. | |
815 | (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not | |
816 | handle floating point registers that are not supported by | |
817 | LynxOS-178. | |
818 | ||
1a34f210 TT |
819 | 2018-05-10 Tom Tromey <tom@tromey.com> |
820 | ||
821 | * configure: Rebuild. | |
822 | ||
190852c8 JB |
823 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
824 | ||
825 | PR server/23158: | |
826 | * tdesc.h (init_target_desc) <expedite_regs>: New parameter. | |
827 | * tdesc.c (init_target_desc) <expedite_regs>: New parameter. | |
828 | Use it to set the expedite_regs field in the given tdesc. | |
829 | * x86-tdesc.h: New file. | |
830 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): | |
831 | Adjust following the addition of the new expedite_regs parameter | |
832 | to init_target_desc. | |
833 | * linux-tic6x-low.c (tic6x_read_description): Likewise. | |
834 | * linux-x86-tdesc.c: #include "x86-tdesc.h". | |
835 | (i386_linux_read_description, amd64_linux_read_description): | |
836 | Adjust following the addition of the new expedite_regs parameter | |
837 | to init_target_desc. | |
838 | * lynx-i386-low.c: #include "x86-tdesc.h". | |
839 | (lynx_i386_arch_setup): Adjust following the addition of the new | |
840 | expedite_regs parameter to init_target_desc. | |
841 | * nto-x86-low.c: #include "x86-tdesc.h". | |
842 | (nto_x86_arch_setup): Adjust following the addition of the new | |
843 | expedite_regs parameter to init_target_desc. | |
844 | * win32-i386-low.c: #include "x86-tdesc.h". | |
845 | (i386_arch_setup): Adjust following the addition of the new | |
846 | expedite_regs parameter to init_target_desc. | |
847 | ||
7dbac825 JB |
848 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
849 | ||
850 | PR server/23158: | |
851 | * win32-low.c (win32_create_inferior): Add call to my_wait | |
852 | setting last_status global. | |
853 | ||
906994d9 JB |
854 | 2018-05-10 Joel Brobecker <brobecker@adacore.com> |
855 | ||
856 | PR server/23158: | |
857 | * win32-low.c (create_process): Only call gdb_tilde_expand if | |
858 | inferior_cwd is not NULL. | |
859 | ||
8ee22052 AB |
860 | 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> |
861 | ||
862 | * i387-fp.c (i387_cache_to_xsave): Only write x87 control | |
863 | registers to the cache if their values have changed. | |
864 | (i387_xsave_to_cache): Provide default values for x87 control | |
865 | registers when these features are available, but disabled. | |
866 | * regcache.c (supply_register_by_name_zeroed): New function. | |
867 | * regcache.h (supply_register_by_name_zeroed): Declare new | |
868 | function. | |
869 | ||
aff689d3 TT |
870 | 2018-05-07 Tom Tromey <tom@tromey.com> |
871 | ||
872 | * configure: Rebuild. | |
873 | ||
85e26832 TT |
874 | 2018-05-04 Tom Tromey <tom@tromey.com> |
875 | ||
876 | * configure: Rebuild. | |
877 | ||
a3b60e45 JK |
878 | 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
879 | Pedro Alves <palves@redhat.com> | |
880 | ||
881 | * linux-aarch64-low.c (aarch64_stopped_data_address): | |
882 | Likewise. | |
883 | ||
632e107b TT |
884 | 2018-04-27 Tom Tromey <tom@tromey.com> |
885 | ||
886 | * configure: Rebuild. | |
887 | ||
458412c3 TT |
888 | 2018-04-23 Tom Tromey <tom@tromey.com> |
889 | ||
890 | * configure: Rebuild. | |
891 | ||
f31c089e SM |
892 | 2018-04-19 Simon Marchi <simon.marchi@ericsson.com> |
893 | ||
894 | * Makefile.in (depcomp): Add "..". | |
895 | (all_deps_files): New and use it. | |
896 | ||
b319b098 AH |
897 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
898 | ||
899 | * configure.srv (aarch64*-*-linux*): Don't include xml. | |
900 | (i[34567]86-*-cygwin*): Likewise. | |
901 | (i[34567]86-*-linux*): Likewise. | |
902 | (i[34567]86-*-lynxos*): Likewise. | |
903 | (i[34567]86-*-mingw32ce*): Likewise. | |
904 | (i[34567]86-*-mingw*): Likewise. | |
905 | (i[34567]86-*-nto*): Likewise. | |
906 | (tic6x-*-uclinux): Likewise. | |
907 | (x86_64-*-linux*): Likewise. | |
908 | (x86_64-*-mingw*): Likewise. | |
909 | (x86_64-*-cygwin*): Likewise. | |
910 | ||
3b74854b AH |
911 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
912 | ||
913 | * tdesc.c: Remove xml parameter. | |
914 | ||
e98577a9 AH |
915 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
916 | ||
917 | * server.c (get_features_xml): Remove cast. | |
918 | * tdesc.c (void target_desc::accept): Fill in function. | |
919 | (tdesc_get_features_xml): Remove old xml creation. | |
920 | (print_xml_feature::visit_pre): Add xml vistor. | |
921 | * tdesc.h (struct target_desc): Make xmltarget mutable. | |
922 | (tdesc_get_features_xml): Remove declaration. | |
923 | ||
d278f585 AH |
924 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
925 | ||
926 | * tdesc.c (tdesc_architecture_name): Add new function. | |
927 | (tdesc_osabi_name): Likewise. | |
928 | (tdesc_get_features_xml): Use new functions. | |
929 | ||
eee8a18d AH |
930 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
931 | ||
932 | * tdesc.c (tdesc_create_flags): Remove. | |
933 | (tdesc_add_flag): Likewise. | |
934 | (tdesc_named_type): Likewise. | |
935 | (tdesc_create_union): Likewise. | |
936 | (tdesc_create_struct): Likewise. | |
937 | (tdesc_create_vector): Likewise. | |
938 | (tdesc_add_bitfield): Likewise. | |
939 | (tdesc_add_field): Likewise. | |
940 | (tdesc_set_struct_size): Likewise. | |
941 | ||
82ec9bc7 AH |
942 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
943 | ||
944 | * tdesc.c (~target_desc): Remove implictly deleted items. | |
945 | (init_target_desc): Iterate all features. | |
946 | (tdesc_get_features_xml): Use vector. | |
947 | (tdesc_create_feature): Create feature. | |
948 | * tdesc.h (tdesc_feature) Remove | |
949 | (target_desc): Add features. | |
950 | ||
ea3e7d71 AH |
951 | 2018-04-18 Alan Hayward <alan.hayward@arm.com> |
952 | ||
953 | * Makefile.in: Add common/tdesc.c | |
954 | * tdesc.c (init_target_desc): init all reg_defs from register | |
955 | vector. | |
956 | (tdesc_create_reg): Create tdesc_reg. | |
957 | * tdesc.h (tdesc_feature): Add register vector. | |
958 | ||
17d08cd4 SM |
959 | 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> |
960 | ||
961 | * tdesc.h (struct target_desc) <features>: Change type to | |
962 | std::vector<std::string>. | |
963 | * tdesc.c (target_desc::~target_desc): Adjust to std::vector | |
964 | changes. | |
965 | (tdesc_get_features_xml): Likewise. | |
966 | (tdesc_create_feature): Likewise. | |
967 | ||
5cd3e386 AH |
968 | 2018-03-26 Alan Hayward <alan.hayward@arm.com> |
969 | ||
970 | * regcache.c (find_register_by_number): Return a ref. | |
971 | (find_regno): Use references. | |
972 | (register_size): Likewise. | |
973 | (register_data): Likewise. | |
974 | * tdesc.c (target_desc::~target_desc): Remove free calls. | |
975 | (target_desc::operator==): Use std::vector compare. | |
976 | (init_target_desc): Use reference. | |
977 | (tdesc_create_reg): Use reg constructors. | |
978 | * tdesc.h (struct target_desc): Replace pointer with object. | |
979 | ||
dff7492c AH |
980 | 2018-03-23 Alan Hayward <alan.hayward@arm.com> |
981 | ||
982 | * regcache.c (find_register_by_number): Make static. | |
983 | (find_regno): Use find_register_by_number | |
984 | * regcache.h (struct reg): Remove declaration. | |
985 | ||
d80e5242 AH |
986 | 2018-03-23 Alan Hayward <alan.hayward@arm.com> |
987 | ||
988 | * tdesc.c (target_desc::~target_desc): Move to here. | |
989 | (target_desc::operator==): Likewise. | |
990 | * tdesc.h (target_desc::~target_desc): Move from here. | |
991 | (target_desc::operator==): Likewise. | |
992 | ||
f69c5afb AA |
993 | 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> |
994 | ||
995 | * linux-s390-low.c (s390_get_wordsize): Correct brace style. | |
996 | ||
ce29f843 AA |
997 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
998 | ||
999 | * linux-s390-ipa.c (get_ipa_tdesc): Add handling for | |
1000 | S390_TDESC_GS. | |
1001 | * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise. | |
1002 | (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64 | |
1003 | and init_registers_s390_gs_linux64. | |
1004 | ||
c49bd90b AA |
1005 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1006 | ||
1007 | * linux-s390-low.c (s390_fill_gs): Remove function. | |
1008 | (s390_fill_gsbc): Remove function. | |
1009 | (s390_regsets): Set fill functions for the guarded storage regsets | |
1010 | to NULL. | |
1011 | ||
7edb9bd3 AA |
1012 | 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1013 | ||
1014 | * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by | |
1015 | the word size. Add comment. | |
1016 | (s390_get_wordsize): New function. | |
1017 | (s390_arch_setup): No longer select a temporary tdesc to fetch the | |
1018 | pswm with it. Instead, use s390_get_wordsize to determine the | |
1019 | word size first and derive the correct tdesc from that directly. | |
1020 | ||
39be3c7e SM |
1021 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
1022 | ||
1023 | * Makefile.in: Include silent-rules.mk. | |
1024 | (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up. | |
1025 | (COMPILE): Add ECHO_CXX. | |
1026 | (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
1027 | (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
1028 | ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD. | |
1029 | (version-generated.c): Add ECHO_GEN. | |
1030 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED. | |
1031 | (IPAGENT_COMPILE): Add ECHO_CXX. | |
1032 | (%-generated.c): Add ECHO_REGDAT. | |
1033 | ||
3ae9ce5d TT |
1034 | 2018-03-14 Tom Tromey <tom@tromey.com> |
1035 | ||
1036 | PR cli/14977: | |
1037 | * ax.c (ax_printf): Special case for NULL. | |
1038 | ||
e6a58aa8 SM |
1039 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
1040 | ||
1041 | * linux-low.c (linux_qxfer_libraries_svr4): Use | |
1042 | xml_escape_text_append. | |
1043 | ||
f6e8a41e SM |
1044 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
1045 | ||
1046 | * linux-low.c (linux_qxfer_libraries_svr4): Use std::string. | |
1047 | ||
b9671caf SM |
1048 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
1049 | ||
1050 | * server.c (handle_general_set): Remove unnecessary xstrdup. | |
1051 | ||
e80aaf61 SM |
1052 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
1053 | ||
1054 | * server.c (parse_debug_format_options): Adjust to | |
1055 | delim_string_to_char_ptr_vec changes. | |
1056 | * thread-db.c (thread_db_load_search): Adjust to | |
1057 | dirnames_to_char_ptr_vec changes. | |
1058 | ||
b1223e78 MM |
1059 | 2018-03-01 Markus Metzger <markus.t.metzger@intel.com> |
1060 | ||
1061 | * target.h (target_enable_btrace, target_disable_btrace) | |
1062 | (target_read_btrace, target_read_btrace_conf): Turn macro into | |
1063 | inline function. Throw error if target method is not defined. | |
1064 | * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove | |
1065 | check for btrace target method. Be prepared to handle exceptions | |
1066 | from btrace target methods. | |
1067 | ||
81561546 SDJ |
1068 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
1069 | ||
1070 | * server.c (captured_main): Change order of error message printed | |
1071 | when the current working directory cannot be found. | |
1072 | ||
25e3c82c SDJ |
1073 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
1074 | ||
1075 | * server.c: Include "filenames.h" and "pathstuff.h". | |
1076 | (program_name): Delete variable. | |
1077 | (program_path): New anonymous class. | |
1078 | (get_exec_wrapper): Use "program_path" instead of | |
1079 | "program_name". | |
1080 | (handle_v_run): Likewise. | |
1081 | (captured_main): Likewise. | |
1082 | (process_serial_event): Likewise. | |
1083 | ||
b4987c95 SDJ |
1084 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
1085 | ||
1086 | * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c". | |
1087 | (OBJS): Add "pathstuff.o". | |
1088 | * server.c (current_directory): New global variable. | |
1089 | (captured_main): Initialize "current_directory". | |
1090 | ||
f46cd62a AH |
1091 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
1092 | ||
1093 | * tdesc.c: Use common/tdesc.h. | |
1094 | * tdesc.h: Likewise. | |
1095 | ||
a543c5ca AH |
1096 | 2018-02-20 Alan Hayward <alan.hayward@arm.com> |
1097 | Simon Marchi <simon.marchi@ericsson.com> | |
1098 | ||
1099 | * Makefile.in: Switch order of make rules. | |
1100 | ||
b5884fa7 AH |
1101 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
1102 | ||
1103 | * Makefile.in: Add common directory in build. | |
1104 | * configure.ac: Add common reference. | |
1105 | * configure: Regenerate. | |
1106 | ||
de6242d3 MM |
1107 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1108 | ||
1109 | * linux-low.c (linux_target_ops): Remove linux_supports_btrace. | |
1110 | * nto-low.c (nto_target_ops): Remove NULL for supports_btrace. | |
1111 | * spu-low.c (spu_target_ops): Likewise. | |
1112 | * win32-low.c (win32_target_ops): Likewise. | |
1113 | * server.c (supported_btrace_packets): Report packets unconditionally. | |
1114 | * target.h (target_ops) <supports_btrace>: Remove. | |
1115 | (target_supports_btrace): Remove. | |
1116 | ||
9ee23a85 MM |
1117 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1118 | ||
1119 | * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt) | |
1120 | (handle_btrace_disable): Change return type to void. Use exceptions | |
1121 | to report errors. | |
1122 | (handle_btrace_general_set): Catch exception and copy message to | |
1123 | return message. | |
1124 | ||
8ce47547 TT |
1125 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1126 | ||
1127 | * linux-low.c (install_software_single_step_breakpoints): Use | |
1128 | make_scoped_restore. | |
1129 | * inferiors.c (make_cleanup_restore_current_thread): Remove. | |
1130 | (do_restore_current_thread_cleanup): Remove. | |
1131 | * gdbthread.h (make_cleanup_restore_current_thread): Don't | |
1132 | declare. | |
1133 | ||
45dd3607 TT |
1134 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1135 | ||
1136 | * mem-break.c (set_raw_breakpoint_at): Use | |
1137 | gdb::unique_xmalloc_ptr. | |
1138 | ||
e671cd59 PA |
1139 | 2018-01-30 Pedro Alves <palves@redhat.com> |
1140 | ||
1141 | PR gdb/13211 | |
1142 | * target.c (target_terminal::terminal_state): Rename to ... | |
1143 | (target_terminal::m_terminal_state): ... this. | |
1144 | ||
a0aad537 JC |
1145 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
1146 | ||
1147 | * linux-low.c (handle_extended_wait): Surround call to | |
1148 | thread_db_notice_clone with #ifdef USE_THREAD_DB. | |
1149 | ||
4d9b86e1 SM |
1150 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
1151 | ||
1152 | * linux-low.c (attach_proc_task_lwp_callback): Adjust to | |
1153 | linux_ptrace_attach_fail_reason_string now returning an | |
1154 | std::string. | |
1155 | (linux_attach): Likewise. | |
1156 | * thread-db.c (attach_thread): Likewise. | |
1157 | ||
f517c180 EA |
1158 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
1159 | ||
1160 | PR gdb/21559 | |
1161 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
1162 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
1163 | * configure: Regenerate. | |
1164 | ||
9a70f35c YQ |
1165 | 2018-01-16 Yao Qi <yao.qi@linaro.org> |
1166 | ||
1167 | PR gdb/18749 | |
1168 | * linux-low.c (fetch_register): Call supply_register instead of | |
1169 | error. | |
1170 | ||
605fd3c6 YQ |
1171 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
1172 | Simon Marchi <simon.marchi@ericsson.com> | |
1173 | ||
1174 | * Makefile.in (OBS): Remove selftest.o. | |
1175 | * configure.ac: Set srv_selftest_objs if $development is true. | |
1176 | (GDBSERVER_DEPFILES): Append $srv_selftest_objs. | |
1177 | * configure: Re-generated. | |
1178 | * server.c (captured_main): Wrap variable selftest_filter with | |
1179 | GDB_SELF_TEST. | |
1180 | ||
2cc05030 SM |
1181 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
1182 | ||
1183 | * server.c (parse_debug_format_options): Return std::string. | |
1184 | (handle_monitor_command, captured_main): Adjust. | |
1185 | ||
e379cee6 PA |
1186 | 2018-01-05 Pedro Alves <palves@redhat.com> |
1187 | ||
1188 | PR gdb/18653 | |
1189 | * server.c (captured_main): Pass quiet=false to | |
1190 | save_original_signals_state. | |
1191 | ||
82e1e79a JB |
1192 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
1193 | ||
1194 | * gdbreplay.c (gdbreplay_version): Update copyright year in | |
1195 | version message. | |
1196 | * server.c (gdbserver_version): Likewise. | |
1197 | ||
8e481c3b TT |
1198 | 2017-12-08 Tom Tromey <tom@tromey.com> |
1199 | ||
1200 | * ax.c (ax_printf): Update. | |
1201 | ||
a8806230 YQ |
1202 | 2017-12-07 Yao Qi <yao.qi@linaro.org> |
1203 | ||
1204 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Call | |
1205 | aarch64_linux_read_description. | |
1206 | * linux-amd64-ipa.c (idx2mask): New array. | |
1207 | (get_ipa_tdesc): Move idx2mask out. | |
1208 | (initialize_low_tracepoint): Initialize target descriptions. | |
1209 | * linux-i386-ipa.c (idx2mask): New array. | |
1210 | (get_ipa_tdesc): Move idx2mask out. | |
1211 | (initialize_low_tracepoint): Initialize target descriptions. | |
1212 | ||
d4a0e8b5 SM |
1213 | 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca> |
1214 | ||
1215 | * tdesc.c (struct tdesc_type): Change return type. | |
1216 | (tdesc_add_flag): Change parameter type. | |
1217 | (tdesc_add_bitfield): Likewise. | |
1218 | (tdesc_add_field): Likewise. | |
1219 | (tdesc_set_struct_size): Likewise. | |
1220 | ||
798a7429 SM |
1221 | 2017-12-05 Simon Marchi <simon.marchi@ericsson.com> |
1222 | ||
1223 | * regcache.c (registers_to_string): Remove unused variable. | |
1224 | ||
c0e15c9b SM |
1225 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1226 | ||
1227 | * inferiors.c (for_each_inferior_with_data): Remove. | |
1228 | * inferiors.h (for_each_inferior_with_data): Remove. | |
1229 | * server.c (handle_qxfer_threads_worker): Change parameter type. | |
1230 | (handle_qxfer_threads_proper): Use for_each_thread. | |
1231 | ||
f0045347 SM |
1232 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1233 | ||
1234 | * inferiors.c (for_each_inferior): Remove. | |
1235 | (clear_inferiors): Use for_each_thread. | |
1236 | * inferiors.h (for_each_inferior): Remove. | |
1237 | * linux-low.c (linux_wait_for_event_filtered): Use | |
1238 | for_each_thread. | |
1239 | (linux_stabilize_threads): Likewise. | |
1240 | * regcache.c (regcache_release): Likewise. | |
1241 | * server.c (gdb_wants_all_threads_stopped): Likewise. | |
1242 | (clear_pending_status_callback): Remove. | |
1243 | (handle_status): Use for_each_thread. | |
1244 | (captured_main): Likewise. | |
1245 | * win32-low.c (child_init_thread_list): Likewise. | |
1246 | (win32_clear_inferiors): Likewise. | |
1247 | (fake_breakpoint_event): Likewise. | |
1248 | ||
9521758b SM |
1249 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1250 | ||
1251 | * inferiors.h (find_inferior): Remove. | |
1252 | * inferiors.c (find_inferior): Remove. | |
1253 | ||
8f86d7aa SM |
1254 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1255 | ||
1256 | * linux-low.c (resume_status_pending_p): Update comment. | |
1257 | (need_step_over_p): Update comment. | |
1258 | ||
e2b44075 SM |
1259 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1260 | ||
1261 | * linux-low.c (proceed_one_lwp): Return void, change parameter | |
1262 | type. | |
1263 | (unsuspend_and_proceed_one_lwp): Likewise. | |
1264 | (proceed_all_lwps): Use for_each_thread. | |
1265 | (unstop_all_lwps): Likewise. | |
1266 | ||
c80825ff SM |
1267 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1268 | ||
1269 | * linux-low.c (linux_resume_one_thread): Return void, take | |
1270 | parameter directly. | |
1271 | (linux_resume): Use for_each_thread. | |
1272 | ||
df3e4dbe SM |
1273 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1274 | ||
1275 | * linux-low.c (send_sigstop_callback): Return void, change | |
1276 | parameter type. Rename to... | |
1277 | (send_sigstop): ... this. | |
1278 | (suspend_and_send_sigstop_callback): Return void, change parameter | |
1279 | type. Rename to... | |
1280 | (suspend_and_send_sigstop): ... this. | |
1281 | (stop_all_lwps): Use for_each_thread. | |
1282 | ||
5a6b0a41 SM |
1283 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1284 | ||
1285 | * linux-low.c (lwp_running): Return bool, remove unused | |
1286 | argument. | |
1287 | (linux_stabilize_threads): Use find_thread. | |
1288 | ||
39a64da5 SM |
1289 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1290 | ||
1291 | * linux-low.c (select_singlestep_lwp_callback): Remove. | |
1292 | (count_events_callback): Remove. | |
1293 | (select_event_lwp_callback): Remove. | |
1294 | (select_event_lwp): Use find_thread/for_each_thread. | |
1295 | ||
a1385b7b SM |
1296 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1297 | ||
1298 | * linux-low.c (not_stopped_callback): Return bool, take filter | |
1299 | argument directly. | |
1300 | (linux_wait_for_event_filtered): Use find_thread. | |
1301 | (linux_wait_1): Likewise. | |
1302 | ||
454296a2 SM |
1303 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1304 | ||
1305 | * linux-low.c (same_lwp): Remove. | |
1306 | (find_lwp_pid): Use find_thread. | |
1307 | ||
6b2a85da SM |
1308 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1309 | ||
1310 | * linux-low.c (delete_lwp_callback): Remove. | |
1311 | (linux_mourn): Use for_each_thread. | |
1312 | ||
798a38e8 SM |
1313 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1314 | ||
1315 | * linux-low.c (linux_detach_lwp_callback): Return void, remove | |
1316 | args parameter, don't check for pid. | |
1317 | (linux_detach): Use for_each_thread. | |
1318 | ||
e4eb0dec SM |
1319 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1320 | ||
1321 | * linux-low.c (struct counter): Remove. | |
1322 | (second_thread_of_pid_p): Remove. | |
1323 | (last_thread_of_process_p): Use find_thread. | |
1324 | ||
83e1b6c1 SM |
1325 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1326 | ||
1327 | * inferiors.c (find_inferior_in_random): Remove. | |
1328 | * inferiors.h (find_inferior_in_random): Remove. | |
1329 | * linux-low.c (status_pending_p_callback): Return bool, accept | |
1330 | parameter ptid directly. | |
1331 | (linux_wait_for_event_filtered): Use find_thread_in_random. | |
1332 | (linux_wait_1): Likewise. | |
1333 | ||
8dc7b443 SM |
1334 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1335 | ||
1336 | * inferiors.c (find_inferior_id): Remove. | |
1337 | (find_thread_ptid): Move implemention from find_inferior_id to | |
1338 | here. | |
1339 | * inferiors.h (find_inferior_id): Remove. | |
1340 | * server.c (handle_status): Use find_thread_ptid. | |
1341 | (process_serial_event): Likewise. | |
1342 | * thread-db.c (find_one_thread): Likewise. | |
1343 | (thread_db_thread_handle): Likewise. | |
1344 | * win32-low.c (thread_rec): Likewise. | |
1345 | (child_delete_thread): Likewise. | |
1346 | (win32_thread_alive): Likewise. | |
1347 | (get_child_debug_event): Likewise. | |
1348 | ||
da25033c SM |
1349 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1350 | ||
1351 | * linux-mips-low.c (update_watch_registers_callback): Return | |
1352 | void, remove pid_p parameter, don't check for pid. | |
1353 | (mips_insert_point, mips_remove_point): Use for_each_thread. | |
1354 | ||
c91bb56b SM |
1355 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1356 | ||
1357 | * lynx.low (lynx_delete_thread_callback): Remove. | |
1358 | (lynx_mourn): Use for_each_thread. | |
1359 | ||
634a3254 SM |
1360 | 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca> |
1361 | ||
1362 | * regcache.c (regcache_invalidate_one): Remove. | |
1363 | (regcache_invalidate_pid): use for_each_thread. | |
1364 | ||
41272101 TT |
1365 | 2017-11-26 Tom Tromey <tom@tromey.com> |
1366 | ||
1367 | * linux-low.c (linux_create_inferior): Update. | |
1368 | ||
f5291a6f UW |
1369 | 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com> |
1370 | ||
1371 | * spu-low.c (spu_create_inferior): Fix typo in argument name. | |
1372 | ||
6654d750 AH |
1373 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1374 | ||
1375 | * configure.srv: Add linux-aarch64-tdesc-selftest.o. | |
1376 | * linux-aarch64-low.c (initialize_low_arch): Call init func. | |
1377 | * linux-aarch64-tdesc-selftest.c: New file. | |
1378 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. | |
1379 | ||
1380 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> | |
1381 | ||
1382 | * configure.srv: Add new file. | |
1383 | * linux-aarch64-low.c (initialize_low_arch): Call init func. | |
1384 | * linux-aarch64-tdesc-selftest.c: New file. | |
1385 | * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration. | |
1386 | ||
49bdb7ee AH |
1387 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1388 | ||
1389 | * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init. | |
1390 | * linux-aarch64-low.c (initialize_low_arch): Remove init. | |
1391 | * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init. | |
1392 | ||
d6d7ce56 AH |
1393 | 2017-11-24 Alan Hayward <alan.hayward@arm.com> |
1394 | ||
1395 | * configure.srv: Add new files. | |
1396 | * linux-aarch64-ipa.c (get_ipa_tdesc): Call | |
1397 | aarch64_linux_read_description. | |
1398 | * linux-aarch64-low.c (aarch64_linux_read_description): | |
1399 | Merge with aarch64_arch_setup. | |
1400 | (aarch64_arch_setup): Call aarch64_linux_read_description. | |
1401 | * linux-aarch64-tdesc.c: New file. | |
1402 | * linux-aarch64-tdesc.h: New file. | |
1403 | ||
506fe5f4 YQ |
1404 | 2017-11-24 Yao Qi <yao.qi@linaro.org> |
1405 | ||
1406 | * configure.srv: Set $srv_regobj for tic6x-linux. | |
1407 | * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h". | |
1408 | (tic6x_read_description): Move some code to tic6x_arch_setup. | |
1409 | (tic6x_tdesc_test): New function. | |
1410 | (initialize_low_arch): Call selftests::register_test. | |
1411 | ||
29f9a567 YQ |
1412 | 2017-11-22 Yao Qi <yao.qi@linaro.org> |
1413 | ||
1414 | * remote-utils.c (prepare_resume_reply): Use memcpy. | |
1415 | ||
578290ec SM |
1416 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1417 | ||
1418 | * linux-low.c (kill_one_lwp_callback): Return void, take | |
1419 | argument directly, don't filter on pid. | |
1420 | (linux_kill): Use for_each_thread. | |
1421 | ||
eca55aec SM |
1422 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1423 | ||
1424 | * linux-low.c (need_step_over_p): Return bool, remove dummy | |
1425 | argument. | |
1426 | (linux_resume, proceed_all_lwps): Use find_thread. | |
1427 | ||
25c28b4d SM |
1428 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1429 | ||
1430 | * linux-low.c (resume_status_pending_p): Return bool, remove | |
1431 | flag_p argument. | |
1432 | (linux_resume): Use find_thread. | |
1433 | ||
5fdda392 SM |
1434 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1435 | ||
1436 | * linux-low.c (struct thread_resume_array): Remove. | |
1437 | (linux_set_resume_request): Return void, take arguments | |
1438 | directly. | |
1439 | (linux_resume): Use for_each_thread. | |
1440 | ||
fcb056a5 SM |
1441 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1442 | ||
1443 | * linux-low.c (stuck_in_jump_pad_callback): Change prototype, | |
1444 | return bool, remove data argument. | |
1445 | (linux_stabilize_threads): Use find_thread. | |
1446 | ||
139720c5 SM |
1447 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1448 | ||
1449 | * linux-low.c (unsuspend_one_lwp): Remove. | |
1450 | (unsuspend_all_lwps): Use for_each_thread, inline code from | |
1451 | unsuspend_one_lwp. | |
1452 | ||
6d1e5673 SM |
1453 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1454 | ||
1455 | * gdbthread.h (find_thread): Add overload with ptid_t filter. | |
1456 | * linux-low.c (struct iterate_over_lwps_args): Remove. | |
1457 | (iterate_over_lwps_filter): Remove. | |
1458 | (iterate_over_lwps): Use find_thread. | |
1459 | ||
bbf550d5 SM |
1460 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1461 | ||
1462 | * linux-low.c (reset_lwp_ptrace_options_callback): Remove. | |
1463 | (linux_handle_new_gdb_connection): Use for_each_thread, inline | |
1464 | code from reset_lwp_ptrace_options_callback. | |
1465 | ||
00192f77 SM |
1466 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1467 | ||
1468 | * linux-arm-low.c (struct update_registers_data): Remove. | |
1469 | (update_registers_callback): Return void, take arguments | |
1470 | directly, don't check thread's pid. | |
1471 | (arm_insert_point, arm_remove_point): Use for_each_thread. | |
1472 | ||
2bee2b6c SM |
1473 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1474 | ||
1475 | * win32-low.c (continue_one_thread): Return void, take argument | |
1476 | directly. | |
1477 | (child_continue): Use for_each_thread. | |
1478 | ||
0b360f19 SM |
1479 | 2017-11-19 Simon Marchi <simon.marchi@ericsson.com> |
1480 | ||
1481 | * win32-i386-low.c (update_debug_registers_callback): Rename | |
1482 | to ... | |
1483 | (update_debug_registers): ... this, return void, remove pid_p arg. | |
1484 | (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread. | |
1485 | ||
f27866ba SM |
1486 | 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
1487 | ||
1488 | * inferiors.h (struct process_info): Add constructor, initialize | |
1489 | fields.. | |
1490 | <syscalls_to_catch>: Change type to std::vector<int>. | |
1491 | * inferiors.c (add_process): Allocate process_info with new. | |
1492 | (remove_process): Free process_info with delete. | |
1493 | * linux-low.c (handle_extended_wait): Adjust. | |
1494 | (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust. | |
1495 | * server.c (handle_general_set): Adjust. | |
1496 | ||
e849ea89 PA |
1497 | 2017-11-16 Pedro Alves <palves@redhat.com> |
1498 | ||
1499 | * remote-utils.c (remote_close): Block SIGIO signals instead of | |
1500 | uninstalling the SIGIO handler. | |
1501 | ||
1d0aa65c AH |
1502 | 2017-11-16 Alan Hayward <alan.hayward@arm.com> |
1503 | ||
1504 | * tdesc.c (tdesc_get_features_xml): Allow null osabi. | |
1505 | ||
3491a34c YQ |
1506 | 2017-11-16 Yao Qi <yao.qi@linaro.org> |
1507 | ||
1508 | * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf. | |
1509 | (tic6x_store_gregset): Likewise. | |
1510 | (tic6x_usrregs_info): Move it up. | |
1511 | ||
a602f924 AH |
1512 | 2017-11-15 Alan Hayward <alan.hayward@arm.com> |
1513 | ||
1514 | * Makefile.in: Update arch rules. | |
1515 | * configure.srv: Explicitly mark arch/ files. | |
1516 | ||
5616b6c3 AS |
1517 | 2017-11-13 Andreas Schwab <schwab@suse.de> |
1518 | ||
1519 | * linux-m68k-low.c (m68k_supports_hardware_single_step): New | |
1520 | function. | |
1521 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
1522 | ||
d1928160 PA |
1523 | 2017-11-06 Pedro Alves <palves@redhat.com> |
1524 | ||
1525 | * config.in, configure: Regenerate. | |
1526 | ||
bac608e7 SM |
1527 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
1528 | ||
1529 | * target.c (struct thread_search): Remove. | |
1530 | (thread_search_callback): Remove. | |
1531 | (prepare_to_access_memory): Use for_each_thread instead of | |
1532 | find_inferior. Inline code from thread_search_callback. | |
1533 | ||
eaddb425 SM |
1534 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
1535 | ||
1536 | * server.c (struct visit_actioned_threads_data): Remove. | |
1537 | (visit_actioned_threads): Change prototype to take arguments | |
1538 | directly. | |
1539 | (resume): Use find_thread instead of find_inferior. | |
1540 | ||
99078d34 SM |
1541 | 2017-10-27 Simon Marchi <simon.marchi@ericsson.com> |
1542 | ||
1543 | * server.c (queue_stop_reply_callback): Change prototype, return | |
1544 | void. | |
1545 | (find_status_pending_thread_callback): Remove. | |
1546 | (handle_status): Replace find_inferior with find_thread and | |
1547 | for_each_thread. | |
1548 | ||
cc628f3d AH |
1549 | 2017-10-25 Alan Hayward <alan.hayward@arm.com> |
1550 | ||
1551 | * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines | |
1552 | with REGNO. | |
1553 | (aarch64_store_gregset): Likewise. | |
1554 | (aarch64_fill_fpregset): Likewise. | |
1555 | (aarch64_store_fpregset): Likewise. | |
1556 | ||
4d3bb80e SM |
1557 | 2017-10-21 Simon Marchi <simon.marchi@ericsson.com> |
1558 | ||
1559 | * gdbthread.h (find_thread, for_each_thread): New functions. | |
1560 | * inferiors.c (thread_of_pid): Remove. | |
1561 | (find_any_thread_of_pid): Use find_thread. | |
1562 | * linux-low.c (num_lwps): Use for_each_thread. | |
1563 | ||
7a7cdfa0 YQ |
1564 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
1565 | ||
1566 | * Makefile.in: Remove one rule. | |
1567 | * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o. | |
1568 | ||
e675d170 YQ |
1569 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
1570 | ||
1571 | * configure.srv: Rename arm-linux.o with arch/arm-linux.o. | |
1572 | Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o. | |
1573 | ||
7eb4e0f9 YQ |
1574 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
1575 | ||
1576 | * configure.srv: Rename arm.o with arch/arm.o. | |
1577 | ||
60d6cfc9 YQ |
1578 | 2017-10-17 Yao Qi <yao.qi@linaro.org> |
1579 | ||
1580 | * Makefile.in (CONFIG_SRC_SUBDIR): New variable. | |
1581 | (clean): Remove .o files in CONFIG_SRC_SUBDIR. | |
1582 | (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR. | |
1583 | (arch-i386.o, arch-amd64.o): Remove rules. | |
1584 | (arch/%.o): New rule. | |
1585 | Update POSTCOMPILE and COMPILE.pre. | |
1586 | * configure.ac: Invoke AC_CONFIG_COMMANDS. | |
1587 | * configure: Re-generated. | |
1588 | * configure.srv: Replace arch-i386.o with arch/i386.o. | |
1589 | Replace arch-amd64.o with arch/amd64.o. | |
1590 | ||
5bfda255 YQ |
1591 | 2017-10-16 Yao Qi <yao.qi@linaro.org> |
1592 | ||
1593 | * configure: Regenerated. | |
1594 | ||
9c80ecd6 SM |
1595 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
1596 | ||
1597 | * inferiors.h: (struct inferior_list): Remove. | |
1598 | (struct inferior_list_entry); Remove. | |
1599 | (add_inferior_to_list, clear_inferior_list, one_inferior_p, | |
1600 | A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior, | |
1601 | get_first_inferior): Remove. | |
1602 | (for_each_inferior, for_each_inferior_with_data, find_inferior, | |
1603 | find_inferior_id, find_inferior_in_random): Change signature. | |
1604 | * inferiors.c (all_threads): Change type to | |
1605 | std::list<thread_info *>. | |
1606 | (get_thread): Remove macro. | |
1607 | (find_inferior, find_inferior_id): Change signature, implement | |
1608 | using find_thread. | |
1609 | (find_inferior_in_random): Change signature, implement using | |
1610 | find_thread_in_random. | |
1611 | (for_each_inferior, for_each_inferior_with_data): Change | |
1612 | signature, implement using for_each_thread. | |
1613 | (add_inferior_to_list, remove_inferior): Remove. | |
1614 | (add_thread, get_first_thread, thread_of_pid, | |
1615 | find_any_thread_of_pid, free_one_thread, remove_thread): Update. | |
1616 | (get_first_inferior, one_inferior_p, clear_inferior_list): | |
1617 | Remove. | |
1618 | (clear_inferiors, get_thread_process): Update. | |
1619 | * gdbthread.h: Include <list>. | |
1620 | (struct thread_info) <entry>: Remove field. | |
1621 | <id>: New field. | |
1622 | (all_threads): Change type to std::list<thread_info *>. | |
1623 | (get_first_inferior): Add doc. | |
1624 | (find_thread, for_each_thread, find_thread_in_random): New | |
1625 | functions. | |
1626 | (current_ptid, pid_of, ptid_of, lwpid_of): Update. | |
1627 | * linux-arm-low.c (update_registers_callback): Update. | |
1628 | * linux-low.c (second_thread_of_pid_p): Update. | |
1629 | (kill_one_lwp_callback, linux_detach_lwp_callback, | |
1630 | delete_lwp_callback, status_pending_p_callback, same_lwp, | |
1631 | find_lwp_pid, num_lwps, iterate_over_lwps_filter, | |
1632 | iterate_over_lwps, not_stopped_callback, | |
1633 | resume_stopped_resumed_lwps, count_events_callback, | |
1634 | select_singlestep_lwp_callback, select_event_lwp_callback, | |
1635 | unsuspend_one_lwp, linux_wait_1, send_sigstop_callback, | |
1636 | suspend_and_send_sigstop_callback, wait_for_sigstop, | |
1637 | stuck_in_jump_pad_callback, move_out_of_jump_pad_callback, | |
1638 | lwp_running, linux_set_resume_request, resume_status_pending_p, | |
1639 | need_step_over_p, start_step_over, linux_resume_one_thread, | |
1640 | proceed_one_lwp, unsuspend_and_proceed_one_lwp, | |
1641 | reset_lwp_ptrace_options_callback): Update. | |
1642 | * linux-mips-low.c (update_watch_registers_callback): Update. | |
1643 | * regcache.c (regcache_invalidate_one, regcache_invalidate): | |
1644 | Update. | |
1645 | (free_register_cache_thread_one): Remove. | |
1646 | (regcache_release): Update. | |
1647 | * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt, | |
1648 | handle_qxfer_threads_worker): Update. | |
1649 | (handle_query): Update, use list iterator. | |
1650 | (visit_actioned_threads, handle_pending_status, | |
1651 | queue_stop_reply_callback, gdb_wants_all_threads_stopped, | |
1652 | clear_pending_status_callback, set_pending_status_callback, | |
1653 | find_status_pending_thread_callback, handle_status, | |
1654 | process_serial_event): Update. | |
1655 | * target.c (thread_search_callback): Update. | |
1656 | * thread-db.c (thread_db_get_tls_address): Update. | |
1657 | * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit): | |
1658 | Update. | |
1659 | * win32-i386-low.c (update_debug_registers_callback): Update. | |
1660 | * win32-low.c (delete_thread_info, child_delete_thread, | |
1661 | continue_one_thread, suspend_one_thread, | |
1662 | get_child_debug_event): Adjust. | |
1663 | ||
9179355e SM |
1664 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
1665 | ||
1666 | * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions. | |
1667 | * inferiors.h: Include <list>. | |
1668 | (struct process_info) <entry>: Remove field. | |
1669 | <pid>: New field. | |
1670 | (pid_of): Change macro to function. | |
1671 | (ptid_of, lwpid_of): Remove macro. | |
1672 | (all_processes): Change type to std::list<process_info *>. | |
1673 | (ALL_PROCESSES): Remove macro. | |
1674 | (for_each_process, find_process): New function. | |
1675 | * inferiors.c (all_processes): Change type to | |
1676 | std::list<process_info *>. | |
1677 | (find_thread_process): Adjust. | |
1678 | (add_process): Likewise. | |
1679 | (remove_process): Likewise. | |
1680 | (find_process_pid): Likewise. | |
1681 | (get_first_process): Likewise. | |
1682 | (started_inferior_callback): Remove. | |
1683 | (have_started_inferiors_p): Adjust. | |
1684 | (attached_inferior_callback): Remove. | |
1685 | (have_attached_inferiors_p): Adjust. | |
1686 | * linux-low.c (check_zombie_leaders): Likewise. | |
1687 | * linux-x86-low.c (x86_arch_setup_process_callback): Remove. | |
1688 | (x86_linux_update_xmltarget): Adjust. | |
1689 | * server.c (handle_query): Likewise. | |
1690 | (gdb_reattached_process): Remove. | |
1691 | (handle_status): Adjust. | |
1692 | (kill_inferior_callback): Likewise. | |
1693 | (detach_or_kill_inferior): Remove. | |
1694 | (print_started_pid): Likewise. | |
1695 | (print_attached_pid): Likewise. | |
1696 | (detach_or_kill_for_exit): Update. | |
1697 | (process_serial_event): Likewise. | |
1698 | * linux-arm-low.c (arm_new_fork): Likewise. | |
1699 | ||
c9cb8905 SM |
1700 | 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca> |
1701 | ||
1702 | * dll.h: Include <list>. | |
1703 | (struct dll_info): Add constructor. | |
1704 | <entry>: Remove field. | |
1705 | (all_dlls): Change type to std::list<dll_info>. | |
1706 | * dll.c: Include <algorithm>. | |
1707 | (get_dll): Remove macro. | |
1708 | (all_dlls): Change type to std::list<dll_info *>. | |
1709 | (free_one_dll): Remove. | |
1710 | (match_dll): Likewise. | |
1711 | (loaded_dll): Adjust. | |
1712 | (unloaded_dll): Adjust to all_dlls type change, use | |
1713 | std::find_if. Inline code from match_dll. | |
1714 | (clear_dlls): Adjust to all_dlls type change. | |
1715 | * server.c (emit_dll_description): Remove. | |
1716 | (handle_qxfer_libraries): Adjust to all_dlls type change, | |
1717 | integrate emit_dll_description's functionality. | |
1718 | ||
04ec7890 SM |
1719 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
1720 | ||
1721 | * linux-low.h (struct linux_target_ops) <delete_process>: New | |
1722 | field. | |
1723 | * linux-low.c (linux_mourn): Call the_low_target.delete_process. | |
1724 | * linux-aarch64-low.c (aarch64_linux_delete_process): New. | |
1725 | (struct linux_target_ops): Add delete_process callback. | |
1726 | * linux-arm-low.c (arm_delete_process): New. | |
1727 | (struct linux_target_ops): Add delete_process callback. | |
1728 | * linux-bfin-low.c (struct linux_target_ops): Likewise. | |
1729 | * linux-crisv32-low.c (struct linux_target_ops): Likewise. | |
1730 | * linux-m32r-low.c (struct linux_target_ops): Likewise. | |
1731 | * linux-mips-low.c (mips_linux_delete_process): New. | |
1732 | (struct linux_target_ops): Add delete_process callback. | |
1733 | * linux-ppc-low.c (struct linux_target_ops): Likewise. | |
1734 | * linux-s390-low.c (struct linux_target_ops): Likewise. | |
1735 | * linux-sh-low.c (struct linux_target_ops): Likewise. | |
1736 | * linux-tic6x-low.c (struct linux_target_ops): Likewise. | |
1737 | * linux-tile-low.c (struct linux_target_ops): Likewise. | |
1738 | * linux-x86-low.c (x86_linux_delete_process): New. | |
1739 | (struct linux_target_ops): Add delete_process callback. | |
1740 | * linux-xtensa-low.c (struct linux_target_ops): Likewise. | |
1741 | ||
466eecee SM |
1742 | 2017-10-12 Simon Marchi <simon.marchi@ericsson.com> |
1743 | ||
1744 | * linux-aarch64-low.c (the_low_target): Add thread delete | |
1745 | callback. | |
1746 | * linux-arm-low.c (arm_delete_thread): New function. | |
1747 | (the_low_target): Add thread delete callback. | |
1748 | * linux-bfin-low.c (the_low_target): Likewise. | |
1749 | * linux-crisv32-low.c (the_low_target): Likewise. | |
1750 | * linux-low.c (delete_lwp): Invoke delete_thread callback if | |
1751 | set. | |
1752 | * linux-low.h (struct linux_target_ops) <delete_thread>: New | |
1753 | field. | |
1754 | * linux-m32r-low.c (the_low_target): Add thread delete callback. | |
1755 | * linux-mips-low.c (mips_linux_delete_thread): New function. | |
1756 | (the_low_target): Add thread delete callback. | |
1757 | * linux-ppc-low.c (the_low_target): Likewise. | |
1758 | * linux-s390-low.c (the_low_target): Likewise. | |
1759 | * linux-sh-low.c (the_low_target): Likewise. | |
1760 | * linux-tic6x-low.c (the_low_target): Likewise. | |
1761 | * linux-tile-low.c (the_low_target): Likewise. | |
1762 | * linux-x86-low.c (the_low_target): Likewise. | |
1763 | * linux-xtensa-low.c (the_low_target): Likewise. | |
1764 | ||
b79f7801 YZ |
1765 | 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com> |
1766 | ||
1767 | * win32-low.c: Include "common-inferior.h". | |
1768 | ||
bc3b087d SDJ |
1769 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
1770 | ||
1771 | * inferiors.c (set_inferior_cwd): New function. | |
1772 | * server.c (handle_general_set): Handle QSetWorkingDir packet. | |
1773 | (handle_query): Inform that QSetWorkingDir is supported. | |
1774 | * win32-low.c (create_process): Pass the inferior's cwd to | |
1775 | CreateProcess. | |
1776 | ||
d092c5a2 SDJ |
1777 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
1778 | ||
1779 | * inferiors.c (current_inferior_cwd): New global variable. | |
1780 | (get_inferior_cwd): New function. | |
1781 | * inferiors.h (struct process_info) <cwd>: New field. | |
1782 | ||
7da0a886 SDJ |
1783 | 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com> |
1784 | ||
1785 | * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c. | |
1786 | (OBS): Add gdb_tilde_expand.o. | |
1787 | ||
289a6840 SM |
1788 | 2017-10-02 Simon Marchi <simon.marchi@ericsson.com> |
1789 | ||
1790 | * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc. | |
1791 | * nto-x86-low.c (nto_x86_arch_setup): Likewise. | |
1792 | ||
256642e8 PA |
1793 | 2017-09-29 Pedro Alves <palves@redhat.com> |
1794 | ||
1795 | * ax.c (gdb_parse_agent_expr): Constify. | |
1796 | * ax.h (gdb_parse_agent_expr): Constify. | |
1797 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
1798 | Constify. | |
1799 | * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify. | |
1800 | * remote-utils.c (hex_or_minus_one, read_ptid): Constify. | |
1801 | * remote-utils.h (read_ptid): Constify. | |
1802 | * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont) | |
1803 | (process_point_options, process_serial_event): Constify. | |
1804 | * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc) | |
1805 | (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp) | |
1806 | (cmd_qtbuffer): Constify. | |
1807 | ||
5b9ca4d4 PA |
1808 | 2017-09-29 Pedro Alves <palves@redhat.com> |
1809 | ||
1810 | * proc-service.c (ps_pdread): Return PS_ERR if reading memory | |
1811 | fails. | |
1812 | ||
94c207e0 PA |
1813 | 2017-09-29 Pedro Alves <palves@redhat.com> |
1814 | ||
1815 | * linux-low.c (handle_extended_wait): Pass parent thread instead | |
1816 | of process to thread_db_notice_clone. | |
1817 | * linux-low.h (thread_db_notice_clone): Replace parent process | |
1818 | parameter with parent thread parameter. | |
1819 | * thread-db.c (find_one_thread): Add comment. | |
1820 | (thread_db_notice_clone): Replace parent process parameter with | |
1821 | parent thread parameter. Temporarily switch to the parent thread. | |
1822 | ||
75352e28 SDJ |
1823 | 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com> |
1824 | ||
1825 | * gdbthread.h: Include "common-gdbthread.h". | |
1826 | * inferiors.c (switch_to_thread): Use "gdb_assert" instead of | |
1827 | "if" when validating the ptid. | |
1828 | * remote-utils.c: Include "gdbthread.h". | |
1829 | (prepare_resume_reply): Use "switch_to_thread". | |
1830 | * target.c (done_accessing_memory): Likewise. | |
1831 | ||
ad339634 AA |
1832 | 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1833 | ||
1834 | * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and | |
1835 | s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml, | |
1836 | s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to | |
1837 | srv_xmlfiles. Add s390-gs-linux64-ipa.o and | |
1838 | s390x-gs-linux64-ipa.o to ipa_obj. | |
1839 | * linux-s390-low.c (HWCAP_S390_GS): New define. | |
1840 | (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc): | |
1841 | New functions. | |
1842 | (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC. | |
1843 | (s390_arch_setup): Check for guarded-storage support and choose | |
1844 | appropriate tdesc. | |
1845 | (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and | |
1846 | init_registers_s390x_gs_linux64. | |
1847 | * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New | |
1848 | enum value. | |
1849 | (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64) | |
1850 | (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare. | |
1851 | ||
cc4d742f SM |
1852 | 2017-09-22 Simon Marchi <simon.marchi@ericsson.com> |
1853 | ||
1854 | * win32-i386-low.c (i386_arch_setup): Call init_target_desc. | |
1855 | ||
f6327dcb KB |
1856 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
1857 | ||
1858 | * linux-low.h (struct lwp_info): Add new field, thread_handle. | |
1859 | (thread_db_thread_handle): Declare. | |
1860 | * linux-low.c (linux_target_ops): Initialize thread_handle. | |
1861 | * server.c (handle_qxfer_threads_worker): Add support for | |
1862 | "handle" attribute. | |
1863 | * target.h (struct target_ops): Add new function pointer, | |
1864 | thread_handle. | |
1865 | (target_thread_handle): Define. | |
1866 | * thread-db.c (find_one_thread, attach_thread): Set thread_handle | |
1867 | field in lwp. | |
1868 | (thread_db_thread_handle): New function. | |
1869 | ||
86299109 KB |
1870 | 2017-09-21 Kevin Buettner <kevinb@redhat.com> |
1871 | ||
1872 | * linux-low.c (handle_extended_wait): Call thread_db_notice_clone(). | |
1873 | * linux-low.h (thread_db_notice_clone): Declare. | |
1874 | * thread-db.c (thread_db_notice_clone): New function. | |
1875 | ||
f557a88a PA |
1876 | 2017-09-21 Pedro Alves <palves@redhat.com> |
1877 | ||
1878 | * server.c (gdb_read_memory, handle_status, process_serial_event) | |
1879 | (handle_serial_event, handle_target_event): Adjust to | |
1880 | set_desired_thread prototype change. | |
1881 | * target.c (set_desired_thread): Remove 'use_general' parameter | |
1882 | and adjust. | |
1883 | * target.h (set_desired_thread): Remove 'use_general' parameter. | |
1884 | ||
223ffa71 TT |
1885 | 2017-09-20 Tom Tromey <tom@tromey.com> |
1886 | ||
1887 | * target.c (target_terminal::terminal_state): Define. | |
1888 | (target_terminal::init): Rename from target_terminal_init. | |
1889 | (target_terminal::inferior): Rename from | |
1890 | target_terminal_inferior. | |
1891 | (target_terminal::ours): Rename from target_terminal_ours. | |
1892 | (target_terminal::ours_for_output, target_terminal::info): New. | |
1893 | ||
04fd3ba9 SM |
1894 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1895 | ||
1896 | * server.c (accumulate_file_name_length): Remove. | |
1897 | (emit_dll_description): Adjust to std::string change. | |
1898 | (handle_qxfer_libraries): Use std::string to hold document. | |
1899 | ||
5e187554 SM |
1900 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1901 | ||
1902 | * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of | |
1903 | return type of xml_escape_text. | |
1904 | * server.c (emit_dll_description): Likewise. | |
1905 | ||
1526853e SM |
1906 | 2017-09-16 Simon Marchi <simon.marchi@ericsson.com> |
1907 | ||
1908 | * server.c (captured_main): Accept argument for --selftest. | |
1909 | Update run_tests call. | |
1910 | * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names | |
1911 | when registering selftests. | |
1912 | ||
c4dfafab SDJ |
1913 | 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com> |
1914 | ||
1915 | * regcache.c (get_thread_regcache): Update code to use "std::vector" | |
1916 | instead of "VEC" for "target_desc.reg_defs". | |
1917 | (regcache_cpy): Likewise. | |
1918 | (registers_to_string): Likewise. | |
1919 | (registers_from_string): Likewise. | |
1920 | (find_regno): Likewise. | |
1921 | (supply_regblock): Likewise. | |
1922 | (regcache_raw_read_unsigned): Likewise. | |
1923 | * tdesc.c (init_target_desc): Likewise. | |
1924 | (tdesc_create_reg): Likewise. | |
1925 | * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>. | |
1926 | (struct target_desc) <reg_defs>: Convert to "std::vector". | |
1927 | (target_desc): Do not initialize "reg_defs". | |
1928 | (~target_desc): Update code to use "std::vector" instead of "VEC" | |
1929 | for "target_desc.reg_defs". | |
1930 | (operator==): Likewise. | |
1931 | ||
124aceb4 SM |
1932 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1933 | ||
1934 | * inferiors.h (thread_to_gdb_id): Remove. | |
1935 | * inferiors.c (thread_to_gdb_id): Remove. | |
1936 | * server.c (handle_qxfer_threads_worker, handle_query): Adjust. | |
1937 | * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers, | |
1938 | lynx_store_registers, lynx_read_memory, lynx_write_memory): | |
1939 | Likewise. | |
1940 | * nto-low.c (nto_fetch_registers, nto_store_registers, | |
1941 | nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise. | |
1942 | ||
96cde54f SM |
1943 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1944 | ||
1945 | * inferiors.h (gdb_id_to_thread_id): Remove. | |
1946 | * inferiors.c (gdb_id_to_thread_id): Remove. | |
1947 | * server.c (process_serial_event): Adjust to gdb_id_to_thread_id | |
1948 | removal. Move pid declaration closer to where it's used. | |
1949 | ||
e8ca139e SM |
1950 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1951 | ||
1952 | * server.c (handle_detach): New function. | |
1953 | (process_serial_event): Move code out, call handle_detach. | |
1954 | ||
f8a4e119 SM |
1955 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1956 | ||
1957 | * server.c (require_running): Rename to ... | |
1958 | (require_running_or_return): ... this ... | |
1959 | (require_running_or_break): ... and this. | |
1960 | (handle_query, process_serial_event): Adjust. | |
1961 | ||
0eb0a407 SM |
1962 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1963 | ||
1964 | * linux-low.c (linux_set_resume_request): Remove unused | |
1965 | variables. | |
1966 | ||
785922a5 SM |
1967 | 2017-09-15 Simon Marchi <simon.marchi@ericsson.com> |
1968 | ||
1969 | * server.c (first_thread_of): Remove. | |
1970 | (process_serial_event): Replace usage of first_thread_of with | |
1971 | find_any_thread_of_pid. | |
1972 | * tracepoint.c (same_process_p): Remove. | |
1973 | (gdb_agent_about_to_close): Replace usage of same_process_p with | |
1974 | find_any_thread_of_pid. | |
1975 | * linux-x86-low.c (same_process_callback): Remove. | |
1976 | (x86_arch_setup_process_callback): Replace usage of | |
1977 | same_process_callback with find_any_thread_of_pid. | |
1978 | * thread-db.c (any_thread_of): Remove. | |
1979 | (switch_to_process): Replace usage of any_thread_of with | |
1980 | find_any_thread_of_pid. | |
1981 | * inferiors.c (thread_pid_matches_callback): Remove. | |
1982 | (find_thread_process): Adjust to use find_any_thread_of_pid. | |
1983 | ||
a059f00c SDJ |
1984 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
1985 | ||
1986 | * regcache.c (get_thread_regcache): Guard calls to "memset" | |
1987 | with "!VEC_empty". | |
1988 | ||
cc397f3a SDJ |
1989 | 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com> |
1990 | ||
1991 | * linux-low.c (handle_extended_wait): Use | |
1992 | "allocate_target_description" instead of "XNEW". | |
1993 | * linux-x86-low.c (initialize_low_arch): Likewise. | |
1994 | ||
22916b07 YQ |
1995 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
1996 | ||
1997 | * configure.srv (srv_i386_regobj): Remove. | |
1998 | (srv_amd64_regobj): Remove. | |
1999 | (srv_regobj): Set it to "" for x86 non-linux targets. | |
2000 | * linux-x86-tdesc.c (i386_linux_read_description): | |
2001 | * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h. | |
2002 | (init_registers_i386): Remove the declaration. | |
2003 | (tdesc_i386): Remove the declaration. | |
2004 | (lynx_i386_arch_setup): Call i386_create_target_description. | |
2005 | * nto-x86-low.c: Likewise. | |
2006 | * win32-i386-low.c [__x86_64__]: include arch/amd64.h. | |
2007 | [!__x86_64__]: include arch/i386.h. | |
2008 | (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description. | |
2009 | ||
38602d55 YQ |
2010 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2011 | ||
2012 | * configure.srv (srv_amd64_linux_xmlfiles): Remove | |
2013 | i386/amd64-XXX-linux from it. | |
2014 | ||
44b886ff YQ |
2015 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2016 | ||
2017 | * configure.srv: Empty srv_amd64_linux_regobj if $development is | |
2018 | false. | |
2019 | (ipa_amd64_linux_regobj): Remove. | |
2020 | (ipa_x32_linux_regobj): Remove. | |
2021 | ||
b4570e4b YQ |
2022 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2023 | ||
2024 | * Makefile.in (arch-amd64.o): New rule. | |
2025 | * configure.srv: Append arch-amd64.o. | |
2026 | * linux-amd64-ipa.c: Include common/x86-xstate.h. | |
2027 | (get_ipa_tdesc): Call amd64_linux_read_description. | |
2028 | (initialize_low_tracepoint): Don't call init_registers_x32_XXX | |
2029 | and init_registers_amd64_XXX. | |
2030 | * linux-x86-low.c (x86_linux_read_description): Call | |
2031 | amd64_linux_read_description. | |
2032 | (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx. | |
2033 | (initialize_low_arch): Don't call init_registers_x32_XXX and | |
2034 | init_registers_amd64_XXX. | |
2035 | * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX | |
2036 | and tdesc_amd64_XXX. | |
2037 | [__x86_64__] (amd64_tdesc_test): New function. | |
2038 | (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX | |
2039 | and init_registers_amd64_XXX. | |
2040 | * linux-x86-tdesc.c: Include arch/amd64.h. | |
2041 | (xcr0_to_tdesc_idx): New function. | |
2042 | (i386_linux_read_description): New function. | |
2043 | (amd64_get_ipa_tdesc_idx): New function. | |
2044 | * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare. | |
2045 | (amd64_get_ipa_tdesc): Declare. | |
2046 | ||
d1f28ea2 YQ |
2047 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2048 | ||
2049 | * configure.srv (srv_i386_linux_xmlfiles): Remove | |
2050 | i386/i386-XXX-linux.xml from it. | |
2051 | ||
25a93583 YQ |
2052 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2053 | ||
2054 | * configure.srv: Set srv_i386_linux_regobj empty if $development | |
2055 | is false. | |
2056 | * linux-i386-ipa.c (initialize_low_tracepoint): Don't call | |
2057 | initialize_low_tdesc. | |
2058 | * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc | |
2059 | with #if initialize_low_tdesc. | |
2060 | * linux-x86-tdesc-selftest.c: New file. | |
2061 | * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c. | |
2062 | ||
5f035c07 YQ |
2063 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2064 | ||
2065 | * Makefile.in (arch-i386.o): New rule. | |
2066 | * configure.srv (i[34567]86-*-linux*): Add arch-i386.o. | |
2067 | (x86_64-*-linux*): Likewise. | |
2068 | * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c, | |
2069 | include arch/i386.h. | |
2070 | (i386_linux_read_description): Remove code and call | |
2071 | i386_create_target_description. | |
2072 | * tdesc.c (allocate_target_description): New function. | |
2073 | * tdesc.h (set_tdesc_architecture): Remove declaration. | |
2074 | (set_tdesc_osabi): Likewise. | |
2075 | ||
0abe8a89 YQ |
2076 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2077 | ||
2078 | * linux-x86-tdesc.c: Don't include <inttypes.h>. | |
2079 | (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call | |
2080 | set_tdesc_architecture and set_tdesc_osabi. Remove code setting | |
2081 | .xmltarget. | |
2082 | * server.c (get_features_xml): Call tdesc_get_features_xml. | |
2083 | * tdesc.c (set_tdesc_architecture): New function. | |
2084 | (set_tdesc_osabi): New function. | |
2085 | (tdesc_get_features_xml): New function. | |
2086 | (tdesc_create_feature): Add an argument. | |
2087 | * tdesc.h (struct target_desc) <features>: New field. | |
2088 | <arch, osabi>: New field. | |
2089 | (~target_desc): xfree features, arch, and osabi. | |
2090 | (target_desc::oerator==): Don't compare .xmltarget. | |
2091 | [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare. | |
2092 | (set_tdesc_osabi): Likewise. | |
2093 | (tdesc_get_features_xml): Likewise. | |
2094 | ||
0a188386 YQ |
2095 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2096 | ||
2097 | * linux-x86-tdesc.c: Include selftest.h. | |
2098 | (i386_tdesc_test): New function. | |
2099 | (initialize_low_tdesc): Call selftests::register_test. | |
2100 | * tdesc.h: Include regdef.h. | |
2101 | (target_desc): Override operator == and !=. | |
2102 | ||
f49ff000 YQ |
2103 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2104 | ||
2105 | * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o. | |
2106 | (ipa_obj): Likewise. | |
2107 | * linux-i386-ipa.c: Include common/x86-xstate.h | |
2108 | (get_ipa_tdesc): Call i386_linux_read_description. | |
2109 | (initialize_low_tracepoint): Don't call init_registers_XXX | |
2110 | functions, call initialize_low_tdesc instead. | |
2111 | * linux-x86-low.c (x86_linux_read_description): Call | |
2112 | i386_linux_read_description. | |
2113 | (initialize_low_arch): Don't call init_registers_i386_XXX | |
2114 | functions, call initialize_low_tdesc. | |
2115 | * linux-x86-tdesc.c: New file. | |
2116 | * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST. | |
2117 | (i386_get_ipa_tdesc_idx): Declare. | |
2118 | (i386_get_ipa_tdesc): Declare. | |
2119 | (initialize_low_tdesc): Declare. | |
2120 | ||
2b68ef2f YQ |
2121 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2122 | ||
2123 | * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX | |
2124 | instead of 0. | |
2125 | ||
f7000548 YQ |
2126 | 2017-09-05 Yao Qi <yao.qi@linaro.org> |
2127 | ||
2128 | * Makefile.in (IPA_OBJS): Add vec-ipa.o | |
2129 | * regcache.c (get_thread_regcache): Use VEC_length. | |
2130 | (init_register_cache): Likewise. | |
2131 | (regcache_cpy): Likewise. | |
2132 | (registers_to_string): Iterate reg_defs via VEC_iterate. | |
2133 | (find_regno): Likewise. | |
2134 | (find_register_by_number): Use VEC_index. | |
2135 | (register_size): Call find_register_by_number. | |
2136 | (register_data): Call find_register_by_number. | |
2137 | (supply_regblock): Use VEC_length. | |
2138 | (regcache_raw_read_unsigned): Likewise. | |
2139 | * tdesc.c (init_target_desc): Iterate reg_defs via | |
2140 | VEC_iterate. | |
2141 | (default_description): Update initializer. | |
2142 | (copy_target_description): Don't update field num_registers. | |
2143 | * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC. | |
2144 | <num_registers>: Remove. | |
2145 | ||
50a421ac SM |
2146 | 2017-09-04 Simon Marchi <simon.marchi@ericsson.com> |
2147 | ||
2148 | * Makefile.in (.SECONDARY): Define target. | |
2149 | ||
23fdd69e SM |
2150 | 2017-09-03 Simon Marchi <simon.marchi@ericsson.com> |
2151 | ||
2152 | * linux-low.c (linux_wait_1): Adjust. | |
2153 | * server.c (queue_stop_reply_callback): Adjust. | |
2154 | ||
0a2dde4a SDJ |
2155 | 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com> |
2156 | ||
2157 | * server.c (handle_general_set): Handle QEnvironmentHexEncoded, | |
2158 | QEnvironmentUnset and QEnvironmentReset packets. | |
2159 | (handle_query): Inform remote that QEnvironmentHexEncoded, | |
2160 | QEnvironmentUnset and QEnvironmentReset are supported. | |
2161 | ||
6afd337d SM |
2162 | 2017-08-25 Simon Marchi <simon.marchi@ericsson.com> |
2163 | ||
2164 | * inferiors.h (inferior_target_data): Rename to ... | |
2165 | (thread_target_data): ... this. | |
2166 | (inferior_regcache_data): Rename to ... | |
2167 | (thread_regcache_data): ... this. | |
2168 | (set_inferior_regcache_data): Rename to ... | |
2169 | (set_thread_regcache_data): ... this. | |
2170 | * inferiors.c (inferior_target_data): Rename to ... | |
2171 | (thread_target_data): ... this. | |
2172 | (inferior_regcache_data): Rename to ... | |
2173 | (thread_regcache_data): ... this. | |
2174 | (set_inferior_regcache_data): Rename to ... | |
2175 | (set_thread_regcache_data): ... this. | |
2176 | (free_one_thread): Update. | |
2177 | * linux-low.h (get_thread_lwp): Update. | |
2178 | * regcache.c (get_thread_regcache): Update. | |
2179 | (regcache_invalidate_thread): Update. | |
2180 | (free_register_cache_thread): Update. | |
2181 | * win32-i386-low.c (update_debug_registers_callback): Update. | |
2182 | (win32_get_current_dr): Update. | |
2183 | * win32-low.c (thread_rec): Update. | |
2184 | (delete_thread_info): Update. | |
2185 | (continue_one_thread): Update. | |
2186 | (suspend_one_thread): Update. | |
2187 | ||
a160cc46 SM |
2188 | 2017-08-24 Simon Marchi <simon.marchi@ericsson.com> |
2189 | ||
2190 | * inferiors.c (set_inferior_target_data): Remove. | |
2191 | * inferiors.h (set_inferior_target_data): Remove. | |
2192 | ||
6d580b63 YQ |
2193 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
2194 | ||
2195 | * Makefile.in (OBS): Add selftest.o. | |
2196 | * configure.ac: AC_DEFINE GDB_SELF_TEST if $development. | |
2197 | * configure, config.in: Re-generated. | |
2198 | * server.c: Include common/sefltest.h. | |
2199 | (captured_main): Handle option --selftest. | |
2200 | ||
f5a29eb0 YQ |
2201 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
2202 | ||
2203 | * configure.srv (srv_i386_regobj): Remove i386-avx.o, | |
2204 | i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o, | |
2205 | i386-avx-mpx.o and i386-mmx.o. | |
2206 | (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o, | |
2207 | amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o. | |
2208 | (srv_i386_xmlfiles): Remove i386/i386-avx.xml, | |
2209 | i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml, | |
2210 | i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml. | |
2211 | (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml, | |
2212 | i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml, | |
2213 | i386/amd64-avx-mpx.xml. | |
2214 | ||
57757c2f YQ |
2215 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
2216 | ||
2217 | * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o | |
2218 | and x32-avx-avx512.o. | |
2219 | (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml | |
2220 | i386/x32-avx-avx512.xml. | |
2221 | ||
229d26fc SM |
2222 | 2017-07-26 Simon Marchi <simon.marchi@ericsson.com> |
2223 | ||
2224 | * tracepoint.h (enum class fast_tpoint_collect_result): New | |
2225 | enumeration. | |
2226 | (fast_tracepoint_collecting): Change return type to | |
2227 | fast_tpoint_collect_result. | |
2228 | * tracepoint.c (fast_tracepoint_collecting): Likewise. | |
2229 | * linux-low.h: Include tracepoint.h. | |
2230 | (struct lwp_info) <collecting_fast_tracepoint>: Change type to | |
2231 | fast_tpoint_collect_result. | |
2232 | * linux-low.c (handle_tracepoints): Adjust. | |
2233 | (linux_fast_tracepoint_collecting): Change return type to | |
2234 | fast_tpoint_collect_result. | |
2235 | (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered, | |
2236 | linux_wait_1, stuck_in_jump_pad_callback, | |
2237 | lwp_signal_can_be_delivered, linux_resume_one_lwp_throw, | |
2238 | proceed_one_lwp): Adjust to type change. | |
2239 | ||
2e1e43e1 YQ |
2240 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
2241 | ||
2242 | * linux-x86-low.c (x86_linux_read_description): Re-indent the code. | |
2243 | ||
adc764e7 YQ |
2244 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
2245 | ||
2246 | * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>: | |
2247 | Remove. | |
2248 | [IN_PROCESS_AGENT] <xmltarget>: Likewise. | |
2249 | ||
a206891a SM |
2250 | 2017-06-20 Simon Marchi <simon.marchi@ericsson.com> |
2251 | ||
2252 | * Makefile.in (IPA_OBJS): Sort and format one item per line. | |
2253 | ||
9a6c7d9c SDJ |
2254 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2255 | ||
2256 | * linux-low.c (linux_create_inferior): Adjust code to access the | |
2257 | environment information via 'gdb_environ' class. | |
2258 | * lynx-low.c (lynx_create_inferior): Likewise. | |
2259 | * server.c (our_environ): Make it an instance of 'gdb_environ'. | |
2260 | (get_environ): Return a pointer to 'our_environ'. | |
2261 | (captured_main): Initialize 'our_environ'. | |
2262 | * server.h (get_environ): Adjust prototype. | |
2263 | * spu-low.c (spu_create_inferior): Adjust code to access the | |
2264 | environment information via 'gdb_environ' class. | |
2265 | ||
ae3e2ccf SM |
2266 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2267 | ||
2268 | * linux-low.c (linux_read_memory, linux_write_memory): Remove | |
2269 | usage of "register" keyword. | |
2270 | ||
3e019bdc SM |
2271 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2272 | ||
2273 | * configure: Re-generate. | |
2274 | ||
8465943a SM |
2275 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2276 | ||
2277 | * configure: Re-generate. | |
2278 | ||
cf0dd6f0 SM |
2279 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2280 | ||
2281 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
2282 | ||
9845682b SDJ |
2283 | 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com> |
2284 | ||
2285 | * fork-child.c: Conditionally include <signal.h>. | |
2286 | ||
aefd8b33 SDJ |
2287 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2288 | ||
2289 | * server.c (handle_general_set): Handle new packet | |
2290 | "QStartupWithShell". | |
2291 | (handle_query): Add "QStartupWithShell" to the list of supported | |
2292 | packets. | |
2293 | (gdbserver_usage): Add help text explaining the | |
2294 | new "--startup-with-shell" and "--no-startup-with-shell" CLI | |
2295 | options. | |
2296 | (captured_main): Recognize and act upon the presence of the new | |
2297 | CLI options. | |
2298 | ||
2090129c SDJ |
2299 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2300 | Pedro Alves <palves@redhat.com> | |
2301 | ||
2302 | * Makefile.in (SFILES): Add "nat/fork-inferior.o". | |
2303 | * configure: Regenerate. | |
2304 | * configure.srv (srv_linux_obj): Add "fork-child.o" and | |
2305 | "fork-inferior.o". | |
2306 | (i[34567]86-*-lynxos*): Likewise. | |
2307 | (spu*-*-*): Likewise. | |
2308 | * fork-child.c: New file. | |
2309 | * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h" | |
2310 | and "environ.h". | |
2311 | (linux_ptrace_fun): New function. | |
2312 | (linux_create_inferior): Adjust function prototype to reflect | |
2313 | change on "target.h". Adjust function code to use | |
2314 | "fork_inferior". | |
2315 | (linux_request_interrupt): Delete "signal_pid". | |
2316 | * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". | |
2317 | (lynx_ptrace_fun): New function. | |
2318 | (lynx_create_inferior): Adjust function prototype to reflect | |
2319 | change on "target.h". Adjust function code to use | |
2320 | "fork_inferior". | |
2321 | * nto-low.c (nto_create_inferior): Adjust function prototype and | |
2322 | code to reflect change on "target.h". Update comments. | |
2323 | * server.c: Include "common-inferior.h", "nat/fork-inferior.h", | |
2324 | "common-terminal.h" and "environ.h". | |
2325 | (terminal_fd): Moved to fork-child.c. | |
2326 | (old_foreground_pgrp): Likewise. | |
2327 | (restore_old_foreground_pgrp): Likewise. | |
2328 | (last_status): Make it global. | |
2329 | (last_ptid): Likewise. | |
2330 | (our_environ): New variable. | |
2331 | (startup_with_shell): Likewise. | |
2332 | (program_name): Likewise. | |
2333 | (program_argv): Rename to... | |
2334 | (program_args): ...this. | |
2335 | (wrapper_argv): New variable. | |
2336 | (start_inferior): Delete function. | |
2337 | (get_exec_wrapper): New function. | |
2338 | (get_exec_file): Likewise. | |
2339 | (get_environ): Likewise. | |
2340 | (prefork_hook): Likewise. | |
2341 | (post_fork_inferior): Likewise. | |
2342 | (postfork_hook): Likewise. | |
2343 | (postfork_child_hook): Likewise. | |
2344 | (handle_v_run): Update code to deal with arguments coming from the | |
2345 | remote host. Update calls from "start_inferior" to | |
2346 | "create_inferior". | |
2347 | (captured_main): Likewise. Initialize environment variable. Call | |
2348 | "have_job_control". | |
2349 | * server.h (post_fork_inferior): New prototype. | |
2350 | (get_environ): Likewise. | |
2351 | (last_status): Declare. | |
2352 | (last_ptid): Likewise. | |
2353 | (signal_pid): Likewise. | |
2354 | * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h". | |
2355 | (spu_ptrace_fun): New function. | |
2356 | (spu_create_inferior): Adjust function prototype to reflect change | |
2357 | on "target.h". Adjust function code to use "fork_inferior". | |
2358 | * target.c (target_terminal_init): New function. | |
2359 | (target_terminal_inferior): Likewise. | |
2360 | (target_terminal_ours): Likewise. | |
2361 | * target.h: Include <vector>. | |
2362 | (struct target_ops) <create_inferior>: Update prototype. | |
2363 | (create_inferior): Update macro. | |
2364 | * utils.c (gdb_flush_out_err): New function. | |
2365 | * win32-low.c (win32_create_inferior): Adjust function prototype | |
2366 | and code to reflect change on "target.h". | |
2367 | ||
043a4934 SDJ |
2368 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2369 | ||
2370 | * inferiors.c (switch_to_thread): New function. | |
2371 | ||
15652511 SDJ |
2372 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2373 | ||
2374 | * Makefile.in (SFILE): Add "common/job-control.c". | |
2375 | (OBS): Add "job-control.o". | |
2376 | ||
21ea5acd SDJ |
2377 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
2378 | ||
2379 | * Makefile: Remove "@host_makefile_frag@". | |
2380 | ||
e13cb306 PA |
2381 | 2017-05-05 Pedro Alves <palves@redhat.com> |
2382 | ||
2383 | * configure: Regenerate. | |
2384 | ||
c94fee56 SDJ |
2385 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
2386 | ||
2387 | * configure: Regenerate. | |
2388 | ||
a0ff9e1a SM |
2389 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
2390 | ||
2391 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to | |
2392 | software_single_step change of return type to | |
2393 | std::vector<CORE_ADDR>. | |
2394 | * linux-low.c (install_software_single_step_breakpoints): | |
2395 | Likewise. | |
2396 | * linux-low.h (install_software_single_step_breakpoints): | |
2397 | Likewise. | |
2398 | ||
be628ab8 SDJ |
2399 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
2400 | ||
2401 | * remote-utils.c: Include "gdb_termios.h" instead of | |
2402 | "terminal.h". | |
2403 | * terminal.h: Delete file. | |
2404 | ||
7c5ded6a SDJ |
2405 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
2406 | ||
2407 | * server.c: Include <vector>. | |
2408 | <program_argv, wrapper_argv>: Convert to std::vector. | |
2409 | (start_inferior): Rewrite function to use C++. | |
2410 | (handle_v_run): Likewise. Update code that calculates the argv | |
2411 | based on the vRun packet; use C++. | |
2412 | (captured_main): Likewise. | |
2413 | ||
436252de SM |
2414 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
2415 | ||
2416 | * server.c (handle_v_cont): Initialize thread_resume::thread | |
2417 | with null_ptid. | |
2418 | ||
9bf2a700 PA |
2419 | 2017-04-05 Pedro Alves <palves@redhat.com> |
2420 | ||
2421 | * configure: Regenerate. | |
2422 | ||
a121b7c1 PA |
2423 | 2017-04-05 Pedro Alves <palves@redhat.com> |
2424 | ||
2425 | * gdbreplay.c (sync_error): Constify. | |
2426 | * linux-x86-low.c (push_opcode): Constify. | |
2427 | ||
21c8a587 PA |
2428 | 2017-04-05 Pedro Alves <palves@redhat.com> |
2429 | ||
2430 | * win32-low.c (get_child_debug_event) | |
2431 | <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD. | |
2432 | Report TARGET_WAITKIND_SPURIOUS instead. | |
2433 | ||
fb32b4f7 PA |
2434 | 2017-04-05 Pedro Alves <palves@redhat.com> |
2435 | ||
2436 | * remote-utils.c (remote_prepare, remote_open): Constify. | |
2437 | * remote-utils.h (remote_prepare, remote_open): Constify. | |
2438 | * server.c (captured_main): Constify 'port' handling. | |
2439 | ||
65dd1e59 SM |
2440 | 2017-04-04 Simon Marchi <simon.marchi@ericsson.com> |
2441 | ||
2442 | * Makefile.in (clean): Clear .deps. | |
2443 | ||
8fa5b777 SM |
2444 | 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca> |
2445 | ||
2446 | * .gitignore: Remove generated files, replace with wildcard. | |
2447 | * (clean): Replace removal of generated files with wildcard. | |
2448 | (version.c): Replace with... | |
2449 | (version-generated.c): ...this. | |
2450 | (xml-builtin.c): Replace with... | |
2451 | (xml-builtin-generated.c): ...this. | |
2452 | (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules. | |
2453 | (%.c: *regformats*): Replace with... | |
2454 | (%-generated.c: *regformats*): ...this. | |
2455 | ||
a12e714b MF |
2456 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
2457 | ||
2458 | * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member. | |
2459 | (xtensa_fill_gregset): Call collect_register_by_name for | |
2460 | threadptr register. | |
2461 | (xtensa_store_gregset): Call supply_register_by_name for | |
2462 | threadptr register. | |
2463 | ||
1a09b50a MF |
2464 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
2465 | ||
2466 | * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register | |
2467 | for all registers in a0_regnum..a0_regnum + C0_NREGS range. | |
2468 | (xtensa_store_gregset): Call supply_register for all registers in | |
2469 | a0_regnum..a0_regnum + C0_NREGS range. | |
2470 | ||
1a01e7c6 SM |
2471 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2472 | ||
2473 | * Makefile.in (%-ipa.o: %-ipa.c): New rule. | |
2474 | (ax-ipa.o: ax.c): Remove. | |
2475 | (linux-i386-ipa.o: linux-i386-ipa.c): Remove. | |
2476 | (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove. | |
2477 | (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove. | |
2478 | (linux-s390-ipa.o: linux-s390-ipa.c): Remove. | |
2479 | (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove. | |
2480 | ||
36bc18a8 SM |
2481 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2482 | ||
2483 | * Makefile.in (%-ipa.o: ../common/%.c): New rule. | |
2484 | (print-utils-ipa.o: ../common/print-utils.c): Remove. | |
2485 | (rsp-low-ipa.o: ../common/rsp-low.c): Remove. | |
2486 | (errors-ipa.o: ../common/errors.c): Remove. | |
2487 | (format-ipa.o: ../common/format.c): Remove. | |
2488 | (common-utils-ipa.o: ../common/common-utils.c): Remove. | |
2489 | ||
a8ebe3d5 SM |
2490 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2491 | ||
2492 | * Makefile.in (%-ipa.o: %.c): New rule. | |
2493 | (tracepoint-ipa.o: tracepoint.c): Remove. | |
2494 | (utils-ipa.o: utils.c): Remove. | |
2495 | (remote-utils-ipa.o: remote-utils.c): Remove. | |
2496 | (regcache-ipa.o: regcache.c): Remove. | |
2497 | (i386-linux-ipa.o: i386-linux.c): Remove. | |
2498 | (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove. | |
2499 | (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove. | |
2500 | (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove. | |
2501 | (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove. | |
2502 | (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove. | |
2503 | (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove. | |
2504 | (amd64-linux-ipa.o: amd64-linux.c): Remove. | |
2505 | (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove. | |
2506 | (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove. | |
2507 | (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove. | |
2508 | (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove. | |
2509 | (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove. | |
2510 | (aarch64-ipa.o: aarch64.c): Remove. | |
2511 | (s390-linux32-ipa.o: s390-linux32.c): Remove. | |
2512 | (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove. | |
2513 | (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove. | |
2514 | (s390-linux64-ipa.o: s390-linux64.c): Remove. | |
2515 | (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove. | |
2516 | (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove. | |
2517 | (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove. | |
2518 | (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove. | |
2519 | (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove. | |
2520 | (s390x-linux64-ipa.o: s390x-linux64.c): Remove. | |
2521 | (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove. | |
2522 | (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove. | |
2523 | (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove. | |
2524 | (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove. | |
2525 | (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove. | |
2526 | (powerpc-32l-ipa.o: powerpc-32l.c): Remove. | |
2527 | (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove. | |
2528 | (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove. | |
2529 | (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove. | |
2530 | (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove. | |
2531 | (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove. | |
2532 | (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove. | |
2533 | (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove. | |
2534 | (powerpc-64l-ipa.o: powerpc-64l.c): Remove. | |
2535 | (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove. | |
2536 | (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove. | |
2537 | (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove. | |
2538 | (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove. | |
2539 | (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove. | |
2540 | (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove. | |
2541 | (tdesc-ipa.o: tdesc.c): Remove. | |
2542 | (x32-linux-ipa.o: x32-linux.c): Remove. | |
2543 | (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove. | |
2544 | (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove. | |
2545 | ||
50cfacb7 SM |
2546 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2547 | ||
2548 | * Makefile.in (%.o: ../arch/%.c): New rule. | |
2549 | (arm.o: ../arch/arm.c): Remove. | |
2550 | (arm-linux.o: ../arch/arm-linux.c): Remove. | |
2551 | (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove. | |
2552 | (aarch64-insn.o: ../arch/aarch64-insn.c): Remove. | |
2553 | ||
c5a22423 SM |
2554 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2555 | ||
2556 | * Makefile.in (%.o: ../nat/%.c): New rule. | |
2557 | (x86-dregs.o: ../nat/x86-dregs.c): Remove. | |
2558 | (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove. | |
2559 | (linux-btrace.o: ../nat/linux-btrace.c): Remove. | |
2560 | (linux-osdata.o: ../nat/linux-osdata.c): Remove. | |
2561 | (linux-procfs.o: ../nat/linux-procfs.c): Remove. | |
2562 | (linux-ptrace.o: ../nat/linux-ptrace.c): Remove. | |
2563 | (linux-waitpid.o: ../nat/linux-waitpid.c): Remove. | |
2564 | (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove. | |
2565 | (ppc-linux.o: ../nat/ppc-linux.c): Remove. | |
2566 | (linux-personality.o: ../nat/linux-personality.c): Remove. | |
2567 | (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove. | |
2568 | (aarch64-linux.o: ../nat/aarch64-linux.c): Remove. | |
2569 | (x86-linux.o: ../nat/x86-linux.c): Remove. | |
2570 | (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove. | |
2571 | (linux-namespaces.o: ../nat/linux-namespaces.c): Remove. | |
2572 | ||
6bda016b SM |
2573 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2574 | ||
2575 | * Makefile.in (%.o: ../common/%.c): New rule. | |
2576 | (signals.o: ../common/signals.c): Remove. | |
2577 | (print-utils.o: ../common/print-utils.c): Remove. | |
2578 | (rsp-low.o: ../common/rsp-low.c): Remove. | |
2579 | (common-utils.o: ../common/common-utils.c): Remove. | |
2580 | (posix-strerror.o: ../common/posix-strerror.c): Remove. | |
2581 | (mingw-strerror.o: ../common/mingw-strerror.c): Remove. | |
2582 | (vec.o: ../common/vec.c): Remove. | |
2583 | (gdb_vecs.o: ../common/gdb_vecs.c): Remove. | |
2584 | (xml-utils.o: ../common/xml-utils.c): Remove. | |
2585 | (ptid.o: ../common/ptid.c): Remove. | |
2586 | (buffer.o: ../common/buffer.c): Remove. | |
2587 | (format.o: ../common/format.c): Remove. | |
2588 | (filestuff.o: ../common/filestuff.c): Remove. | |
2589 | (agent.o: ../common/agent.c): Remove. | |
2590 | (errors.o: ../common/errors.c): Remove. | |
2591 | (environ.o: ../common/environ.c): Remove. | |
2592 | (common-debug.o: ../common/common-debug.c): Remove. | |
2593 | (cleanups.o: ../common/cleanups.c): Remove. | |
2594 | (common-exceptions.o: ../common/common-exceptions.c): Remove. | |
2595 | (fileio.o: ../common/fileio.c): Remove. | |
2596 | (common-regcache.o: ../common/common-regcache.c): Remove. | |
2597 | (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove. | |
2598 | (new-op.o: ../common/new-op.c): Remove. | |
2599 | (btrace-common.o: ../common/btrace-common.c): Remove. | |
2600 | ||
21122961 SM |
2601 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2602 | ||
2603 | * Makefile.in (%.o: ../target/%.c): New rule. | |
2604 | (waitstatus.o: ../target/waitstatus.c): Remove. | |
2605 | ||
c362e621 SM |
2606 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
2607 | ||
2608 | * Makefile.in | |
2609 | (%.c: ../regformats/%.dat, | |
2610 | (%.c: ../regformats/arm/%.dat, | |
2611 | (%.c: ../regformats/i386/%.dat, | |
2612 | (%.c: ../regformats/rs6000/%.dat): New rules. | |
2613 | (aarch64.c): Remove. | |
2614 | (reg-arm.c): Remove. | |
2615 | (arm-with-iwmmxt.c): Remove. | |
2616 | (arm-with-vfpv2.c): Remove. | |
2617 | (arm-with-vfpv3.c): Remove. | |
2618 | (arm-with-neon.c): Remove. | |
2619 | (reg-bfin.c): Remove. | |
2620 | (reg-cris.c): Remove. | |
2621 | (reg-crisv32.c): Remove. | |
2622 | (i386.c): Remove. | |
2623 | (i386-linux.c): Remove. | |
2624 | (i386-avx.c): Remove. | |
2625 | (i386-avx-linux.c): Remove. | |
2626 | (i386-avx-avx512.c): Remove. | |
2627 | (i386-avx-avx512-linux.c): Remove. | |
2628 | (i386-mpx.c): Remove. | |
2629 | (i386-mpx-linux.c): Remove. | |
2630 | (i386-avx-mpx-avx512-pku.c): Remove. | |
2631 | (i386-avx-mpx-avx512-pku-linux.c): Remove. | |
2632 | (i386-avx-mpx.c): Remove. | |
2633 | (i386-avx-mpx-linux.c): Remove. | |
2634 | (i386-mmx.c): Remove. | |
2635 | (i386-mmx-linux.c): Remove. | |
2636 | (reg-ia64.c): Remove. | |
2637 | (reg-m32r.c): Remove. | |
2638 | (reg-m68k.c): Remove. | |
2639 | (reg-cf.c): Remove. | |
2640 | (mips-linux.c): Remove. | |
2641 | (mips-dsp-linux.c): Remove. | |
2642 | (mips64-linux.c): Remove. | |
2643 | (mips64-dsp-linux.c): Remove. | |
2644 | (nios2-linux.c): Remove. | |
2645 | (powerpc-32.c): Remove. | |
2646 | (powerpc-32l.c): Remove. | |
2647 | (powerpc-altivec32l.c): Remove. | |
2648 | (powerpc-cell32l.c): Remove. | |
2649 | (powerpc-vsx32l.c): Remove. | |
2650 | (powerpc-isa205-32l.c): Remove. | |
2651 | (powerpc-isa205-altivec32l.c): Remove. | |
2652 | (powerpc-isa205-vsx32l.c): Remove. | |
2653 | (powerpc-e500l.c): Remove. | |
2654 | (powerpc-64l.c): Remove. | |
2655 | (powerpc-altivec64l.c): Remove. | |
2656 | (powerpc-cell64l.c): Remove. | |
2657 | (powerpc-vsx64l.c): Remove. | |
2658 | (powerpc-isa205-64l.c): Remove. | |
2659 | (powerpc-isa205-altivec64l.c): Remove. | |
2660 | (powerpc-isa205-vsx64l.c): Remove. | |
2661 | (s390-linux32.c): Remove. | |
2662 | (s390-linux32v1.c): Remove. | |
2663 | (s390-linux32v2.c): Remove. | |
2664 | (s390-linux64.c): Remove. | |
2665 | (s390-linux64v1.c): Remove. | |
2666 | (s390-linux64v2.c): Remove. | |
2667 | (s390-te-linux64.c): Remove. | |
2668 | (s390-vx-linux64.c): Remove. | |
2669 | (s390-tevx-linux64.c): Remove. | |
2670 | (s390x-linux64.c): Remove. | |
2671 | (s390x-linux64v1.c): Remove. | |
2672 | (s390x-linux64v2.c): Remove. | |
2673 | (s390x-te-linux64.c): Remove. | |
2674 | (s390x-vx-linux64.c): Remove. | |
2675 | (s390x-tevx-linux64.c): Remove. | |
2676 | (tic6x-c64xp-linux.c): Remove. | |
2677 | (tic6x-c64x-linux.c): Remove. | |
2678 | (tic6x-c62x-linux.c): Remove. | |
2679 | (reg-sh.c): Remove. | |
2680 | (reg-sparc64.c): Remove. | |
2681 | (reg-spu.c): Remove. | |
2682 | (amd64.c): Remove. | |
2683 | (amd64-linux.c): Remove. | |
2684 | (amd64-avx.c): Remove. | |
2685 | (amd64-avx-linux.c): Remove. | |
2686 | (amd64-avx-avx512.c): Remove. | |
2687 | (amd64-avx-avx512-linux.c): Remove. | |
2688 | (amd64-mpx.c): Remove. | |
2689 | (amd64-mpx-linux.c): Remove. | |
2690 | (amd64-avx-mpx-avx512-pku.c): Remove. | |
2691 | (amd64-avx-mpx-avx512-pku-linux.c): Remove. | |
2692 | (amd64-avx-mpx.c): Remove. | |
2693 | (amd64-avx-mpx-linux.c): Remove. | |
2694 | (x32.c): Remove. | |
2695 | (x32-linux.c): Remove. | |
2696 | (x32-avx.c): Remove. | |
2697 | (x32-avx-linux.c): Remove. | |
2698 | (x32-avx-avx512.c): Remove. | |
2699 | (x32-avx-avx512-linux.c): Remove. | |
2700 | (reg-xtensa.c): Remove. | |
2701 | (reg-tilegx.c): Remove. | |
2702 | (reg-tilegx32.c): Remove. | |
2703 | ||
1672e0d9 SDJ |
2704 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2705 | ||
2706 | * Makefile.in (SFILES): Add "common/environ.c". | |
2707 | (OBJS): Add "common/environ.h". | |
2708 | ||
239b6d10 WT |
2709 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
2710 | ||
2711 | * configure.ac: Check if the fs_base and gs_base members of | |
2712 | `struct user_regs_struct' exist. | |
2713 | * config.in: Regenerated. | |
2714 | * configure: Likewise. | |
2715 | ||
694b382c AT |
2716 | 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com> |
2717 | ||
2718 | * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use | |
2719 | target_read_memory. | |
2720 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise. | |
2721 | (get_next_pcs_syscall_next_pc): Likewise. | |
2722 | ||
7dc53023 LM |
2723 | 2016-12-23 Luis Machado <lgustavo@codesourcery.com> |
2724 | ||
2725 | * win32-i386-low.c: Fix incorrect reference to a couple source files. | |
2726 | * nto-x86-low.c: Likewise. | |
2727 | ||
ad02e4fe SM |
2728 | 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca> |
2729 | ||
2730 | * Makefile.in: Include disable-implicit-rules.mk. | |
2731 | ||
dcb07cfa PA |
2732 | 2016-11-23 Pedro Alves <palves@redhat.com> |
2733 | ||
2734 | * debug.c: Include <chrono> instead of "gdb_sys_time.h". | |
2735 | (debug_vprintf): Use std::chrono::steady_clock instead of | |
2736 | gettimeofday. Use '.' instead of ':'. | |
2737 | * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h". | |
2738 | (get_timestamp): Use std::chrono::steady_clock instead of | |
2739 | gettimeofday. | |
2740 | ||
8629c02c SM |
2741 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2742 | ||
2743 | * Makefile.in: Fix whitespace formatting. | |
2744 | ||
b593ecca SM |
2745 | 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca> |
2746 | ||
2747 | * Makefile.in (SFILES, OBS): Flatten list and order | |
2748 | alphabetically. | |
2749 | ||
9986ba08 PA |
2750 | 2016-11-23 Pedro Alves <palves@redhat.com> |
2751 | ||
2752 | * event-loop.c (handle_file_event): Use warning. | |
2753 | * linux-low.c (linux_resume_one_lwp_throw): Use warning. | |
2754 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
2755 | Use warning. | |
2756 | ||
4eefa7bc PA |
2757 | 2016-11-23 Pedro Alves <palves@redhat.com> |
2758 | ||
2759 | * linux-low.c (check_zombie_leaders): Use debug_printf for debug | |
2760 | output. | |
2761 | * notif.c (handle_notif_ack, notif_event_enque): Likewise. | |
2762 | * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use | |
2763 | debug_printf and debug_flush for debug output. | |
2764 | * server.c (handle_general_set): Likewise. | |
2765 | * thread-db.c (try_thread_db_load): Use debug_printf for debug | |
2766 | output. | |
2767 | ||
5443506e SM |
2768 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2769 | ||
2770 | * Makefile.in (.c.o): Replace rule with ... | |
2771 | (%.o: %.c): ... this one. | |
2772 | ||
3b165252 SM |
2773 | 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca> |
2774 | ||
2775 | * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines | |
2776 | prefixed with @GMAKE_FALSE@. Update comment related to non-GNU | |
2777 | make. | |
2778 | * configure.ac: Remove checks for the make program. | |
2779 | * configure: Re-generate. | |
2780 | ||
0bcda685 PA |
2781 | 2016-10-28 Pedro Alves <palves@redhat.com> |
2782 | ||
2783 | * Makefile.in (CXX_DIALECT): Get from configure. | |
2784 | (COMPILE.pre, CC_LD): Append $(CXX_DIALECT). | |
2785 | * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4. | |
2786 | * configure.ac: Call AX_CXX_COMPILE_STDCXX. | |
2787 | * config.in: Regenerate. | |
2788 | * configure: Regenerate. | |
2789 | ||
c3805894 YQ |
2790 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
2791 | ||
2792 | * linux-low.c (linux_supports_range_stepping): Return true if | |
2793 | can_software_single_step return true. | |
2794 | ||
89342618 YQ |
2795 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
2796 | ||
2797 | * inferiors.c (find_inferior_in_random): New function. | |
2798 | * inferiors.h (find_inferior_in_random): Declare. | |
2799 | * linux-low.c (linux_wait_for_event_filtered): Call | |
2800 | find_inferior_in_random instead of find_inferior. | |
2801 | ||
e3652c84 YQ |
2802 | 2016-10-27 Yao Qi <yao.qi@linaro.org> |
2803 | ||
2804 | * linux-low.c (linux_wait_1): If single-step breakpoints are | |
2805 | inserted, remove them. | |
2806 | ||
5a04c4cf PA |
2807 | 2016-10-26 Pedro Alves <palves@redhat.com> |
2808 | ||
2809 | * linux-low.c (handle_extended_wait): Link parent/child fork | |
2810 | threads. | |
2811 | (linux_wait_1): Unlink them. | |
2812 | (linux_set_resume_request): Ignore resume requests for | |
2813 | already-resumed and unhandled fork child threads. | |
2814 | * linux-low.h (struct lwp_info) <fork_relative>: New field. | |
2815 | * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies): | |
2816 | New functions. | |
2817 | (handle_v_requests) <vCont>: Don't call require_running. | |
2818 | * server.h (in_queued_stop_replies): New declaration. | |
2819 | ||
cb93dc7f YQ |
2820 | 2016-10-24 Yao Qi <yao.qi@linaro.org> |
2821 | ||
2822 | PR server/20733 | |
2823 | * linux-aarch64-low.c (append_insns): Cast the return value to | |
2824 | 'uint32_t *'. | |
2825 | ||
a1078bea YQ |
2826 | 2016-10-10 Yao Qi <yao.qi@linaro.org> |
2827 | ||
2828 | * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove. | |
2829 | ||
1fb77080 SDJ |
2830 | 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com> |
2831 | ||
2832 | * target.c (target_supports_multi_process): New function, moved | |
2833 | from... | |
2834 | * target.h (target_supports_multi_process): ... here. Remove | |
2835 | macro. | |
2836 | ||
39b5a3b9 TT |
2837 | 2016-10-05 Tom Tromey <tom@tromey.com> |
2838 | ||
2839 | PR remote/20655: | |
2840 | * tracepoint.c (handle_tracepoint_bkpts): Check | |
2841 | ipa_error_tracepoint, not ipa_stopping_tracepoint. | |
2842 | ||
c1d0b70a YQ |
2843 | 2016-10-05 Yao Qi <yao.qi@linaro.org> |
2844 | ||
2845 | * configure.srv: Update the path of arm-*.xml files. | |
2846 | ||
0a69eedb YQ |
2847 | 2016-10-05 Terry Guo <terry.guo@arm.com> |
2848 | Yao Qi <yao.qi@linaro.org> | |
2849 | ||
2850 | * Makefile.in: Adjust the path of rules. | |
2851 | * configure.srv: Update the path of xml files. | |
2852 | * regformats/arm-with-iwmmxt.dat: Regenerated. | |
2853 | * regformats/arm-with-neon.dat: Likewise. | |
2854 | * regformats/arm-with-vfpv2.dat: Likewise. | |
2855 | * regformats/arm-with-vfpv3.dat Likewise. | |
2856 | ||
17e16485 YQ |
2857 | 2016-09-30 Yao Qi <yao.qi@linaro.org> |
2858 | ||
2859 | PR gdbserver/20627 | |
2860 | * target.c (target_stop_and_wait): Don't call | |
2861 | target_continue_no_signal, use resume_stop instead. | |
2862 | ||
edeeb602 YQ |
2863 | 2016-09-26 Yao Qi <yao.qi@linaro.org> |
2864 | ||
2865 | * linux-low.c (linux_wait_1): Call debug_exit. | |
2866 | ||
503b1c39 PA |
2867 | 2016-09-23 Pedro Alves <palves@redhat.com> |
2868 | ||
2869 | * Makefile.in (SFILES): Add common/new-op.c. | |
2870 | (OBS): Add common/new-op.o. | |
2871 | (new-op.o): New rule. | |
2872 | ||
74172ecf SM |
2873 | 2016-09-21 Simon Marchi <simon.marchi@ericsson.com> |
2874 | ||
2875 | * .gitinore: Ignore more files. | |
2876 | ||
fc6cda2e YQ |
2877 | 2016-09-21 Yao Qi <yao.qi@linaro.org> |
2878 | ||
2879 | * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to | |
2880 | 23. | |
2881 | ||
bc1e6c81 SDJ |
2882 | 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com> |
2883 | ||
2884 | * server.c (start_inferior): Call target_mourn_inferior instead of | |
2885 | mourn_inferior; pass ptid_t argument to it. | |
2886 | (resume): Likewise. | |
2887 | (handle_target_event): Likewise. | |
2888 | * target.c (target_mourn_inferior): New function. | |
2889 | * target.h (mourn_inferior): Delete macro. | |
2890 | ||
0e00e962 AA |
2891 | 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2892 | ||
2893 | * linux-low.c (lwp_is_stepping): New function. | |
2894 | ||
1d8cb77d CL |
2895 | 2016-09-06 Carl Love <cel@us.ibm.com> |
2896 | ||
2897 | * server.c (start_inferior): Fixed comment, requested comment change | |
2898 | didn't get updated correctly. Removed reference to ptrace () call as | |
2899 | it is only true on Linux systems. | |
2900 | ||
7313bced CL |
2901 | 2016-09-06 Carl Love <cel@us.ibm.com> |
2902 | ||
2903 | * server.c (start_inferior): Do not call | |
2904 | function target_post_create_inferior () if the | |
2905 | inferior process has already exited. | |
2906 | ||
cf6de44d PA |
2907 | 2016-09-05 Pedro Alves <palves@redhat.com> |
2908 | ||
2909 | * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove. | |
2910 | (COMPILE.pre, CC_LD): Use CXX directly. | |
2911 | (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly. | |
2912 | * acinclude.m4: Don't include build-with-cxx.m4. | |
2913 | * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call. | |
2914 | * configure: Regenerate. | |
2915 | ||
c1da6748 AT |
2916 | 2016-09-02 Akash Trehan <akash.trehan123@gmail.com> |
2917 | ||
2918 | PR gdb/19495 | |
2919 | * remote-utils.c (relocate_instruction): Remove redundant strcpy() | |
2920 | call writing data to own_buf. | |
2921 | ||
f2b9e3df SDJ |
2922 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2923 | ||
2924 | * target.c (mywait): Call target_wait instead of | |
2925 | the_target->wait. | |
2926 | (target_wait): New function. | |
2927 | ||
049a8570 SDJ |
2928 | 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com> |
2929 | ||
2930 | * server.c (start_inferior): New variable 'ptid'. Replace calls | |
2931 | to the_target->resume by target_continue{,_no_signal}, depending | |
2932 | on the case. | |
2933 | * target.c (target_stop_and_wait): Call target_continue_no_signal | |
2934 | instead of the_target->resume. | |
2935 | (target_continue): New function. | |
2936 | ||
3aa5cfa0 AT |
2937 | 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com> |
2938 | ||
2939 | * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps. | |
2940 | ||
754653a7 AZ |
2941 | 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org> |
2942 | ||
2943 | PR server/20491 | |
2944 | * gdb_proc_service.h (ps_get_thread_area): Remove const from struct | |
2945 | ps_prochandle. | |
2946 | * linux-aarch64-low.c (ps_get_thread_area): Likewise. | |
2947 | * linux-arm-low.c (ps_get_thread_area): Likewise. | |
2948 | * linux-crisv32-low.c (ps_get_thread_area): Likewise. | |
2949 | * linux-m68k-low.c (ps_get_thread_area): Likewise. | |
2950 | * linux-mips-low.c (ps_get_thread_area): Likewise. | |
2951 | * linux-nios2-low.c (ps_get_thread_area): Likewise. | |
2952 | * linux-tic6x-low.c (ps_get_thread_area): Likewise. | |
2953 | * linux-x86-low.c (ps_get_thread_area): Likewise. | |
2954 | * linux-xtensa-low.c (ps_get_thread_area): Likewise. | |
2955 | ||
ed036b40 PA |
2956 | 2016-08-19 Pedro Alves <palves@redhat.com> |
2957 | ||
2958 | * linux-x86-low.c (amd64_emit_call): Emit missing call opcode. | |
2959 | ||
c8ef42ee PA |
2960 | 2016-08-19 Pedro Alves <palves@redhat.com> |
2961 | ||
2962 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix | |
2963 | comment. Use memcpy instead of casting through unsigned long. | |
2964 | ||
9c235a72 PA |
2965 | 2016-08-19 Pedro Alves <palves@redhat.com> |
2966 | ||
2967 | * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try | |
2968 | allocating around 0x80000000. | |
2969 | ||
201506da PA |
2970 | 2016-08-19 Pedro Alves <palves@redhat.com> |
2971 | ||
2972 | PR gdb/20415 | |
2973 | * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o) | |
2974 | (x32-avx512-linux-ipa.o): New rules. | |
2975 | * configure.ac (x86_64-*-linux*): New x32 check. | |
2976 | * configure.srv (ipa_x32_linux_regobj): New. | |
2977 | (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32. | |
2978 | * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32 | |
2979 | descriptions. | |
2980 | (initialize_low_tracepoint) [__ILP32__]: Initialize x32 | |
2981 | descriptions. | |
2982 | * configure: Regenerate. | |
2983 | ||
f348d89a PA |
2984 | 2016-08-09 Pedro Alves <palves@redhat.com> |
2985 | ||
2986 | PR gdb/18653 | |
2987 | * Makefile.in (OBS): Add signals-state-save-restore.o. | |
2988 | (signals-state-save-restore.o): New rule. | |
2989 | * config.in: Regenerate. | |
2990 | * configure: Regenerate. | |
2991 | * linux-low.c: Include "signals-state-save-restore.h". | |
2992 | (linux_create_inferior): Call | |
2993 | restore_original_signals_state. | |
2994 | * server.c: Include "dispositions-save-restore.h". | |
2995 | (captured_main): Call save_original_signals_state. | |
2996 | ||
1baf5149 PA |
2997 | 2016-08-05 Pedro Alves <palves@redhat.com> |
2998 | ||
2999 | * configure: Regenerate. | |
3000 | ||
fcd4a73d YQ |
3001 | 2016-08-04 Yao Qi <yao.qi@linaro.org> |
3002 | ||
3003 | * linux-low.c (regsets_fetch_inferior_registers): Check | |
3004 | errno is ESRCH or not. | |
3005 | ||
979659d0 YQ |
3006 | 2016-08-02 Yao Qi <yao.qi@linaro.org> |
3007 | ||
3008 | * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove. | |
3009 | <td_ta_set_event_p, td_ta_event_addr_p>: Remove. | |
3010 | (thread_db_load_search): Update. | |
3011 | (try_thread_db_load_1): Don't look for td_ta_event_addr, | |
3012 | td_ta_set_event and td_ta_event_getmsg. | |
3013 | ||
6598661d PA |
3014 | 2016-07-26 Pedro Alves <palves@redhat.com> |
3015 | ||
3016 | PR server/20414 | |
3017 | * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead | |
3018 | of unsigned long for 64-bit registers and use uint32_t instead of | |
3019 | unsigned int for 32-bit registers. | |
3020 | ||
9cf12d57 PA |
3021 | 2016-07-26 Pedro Alves <palves@redhat.com> |
3022 | ||
3023 | * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter | |
3024 | to 'ptrace'. | |
3025 | ||
305450ed TT |
3026 | 2016-07-21 Tom Tromey <tom@tromey.com> |
3027 | ||
3028 | * configure: Rebuild. | |
3029 | ||
2583da7c YQ |
3030 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3031 | ||
3032 | * mem-break.c (find_gdb_breakpoint): Cast bp to | |
3033 | 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'. | |
3034 | ||
21536b36 YQ |
3035 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3036 | ||
3037 | * server.c (handle_v_requests): Support s and S actions | |
3038 | if target_supports_software_single_step return true. | |
3039 | ||
8901d193 YQ |
3040 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3041 | ||
3042 | * linux-low.c (resume_stopped_resumed_lwps): If resume request | |
3043 | is resume_step, call maybe_hw_step. | |
3044 | (linux_wait_1): Stop all threads, remove reinsert breakpoints, | |
3045 | and unstop them. | |
3046 | (linux_resume_one_lwp_throw): Don't assert the thread has reinsert | |
3047 | breakpoints or not. | |
3048 | (proceed_one_lwp): If resume request is resume_step, install | |
3049 | reinsert breakpoints and call maybe_hw_step. | |
3050 | ||
0e9a339e YQ |
3051 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3052 | ||
3053 | * linux-low.c (proceed_one_lwp): Declare. | |
3054 | (linux_resume_one_thread): Remove local variable 'step'. | |
3055 | Lift code enqueue signal. Call proceed_one_lwp instead of | |
3056 | linux_resume_one_lwp. | |
3057 | ||
4281b351 YQ |
3058 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3059 | ||
3060 | * linux-low.c (linux_resume_one_thread): Call | |
3061 | enqueue_pending_signal. | |
3062 | ||
984a2c04 YQ |
3063 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3064 | ||
3065 | * gdbthread.h (make_cleanup_restore_current_thread): Declare. | |
3066 | * inferiors.c (do_restore_current_thread_cleanup): New function. | |
3067 | (make_cleanup_restore_current_thread): Likewise. | |
3068 | * linux-low.c (install_software_single_step_breakpoints): Call | |
3069 | make_cleanup_restore_current_thread. Switch current_thread to | |
3070 | thread. | |
3071 | ||
bec903c9 YQ |
3072 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3073 | ||
3074 | * mem-break.c (struct reinsert_breakpoint) <ptid>: New field. | |
3075 | (set_reinsert_breakpoint): New parameter ptid. Callers updated. | |
3076 | (clone_one_breakpoint): Likewise. | |
3077 | (delete_reinsert_breakpoints): Change parameter to thread. | |
3078 | Callers updated. | |
3079 | (has_reinsert_breakpoints): Likewise. | |
3080 | (uninsert_reinsert_breakpoints): Likewise. | |
3081 | (reinsert_reinsert_breakpoints): Likewise. | |
3082 | * mem-break.h (set_reinsert_breakpoint): Update declaration. | |
3083 | (delete_reinsert_breakpoints): Likewise. | |
3084 | (reinsert_reinsert_breakpoints): Likewise. | |
3085 | (uninsert_reinsert_breakpoints): Likewise. | |
3086 | (has_reinsert_breakpoints): Likewise. | |
3087 | ||
63c40ec7 YQ |
3088 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3089 | ||
3090 | * inferiors.c (get_thread_process): Make parameter const. | |
3091 | * inferiors.h (get_thread_process): Update declaration. | |
3092 | * mem-break.c (clone_all_breakpoints): Remove all parameters. | |
3093 | Add new parameters child_thread and parent_thread. Callers | |
3094 | updated. | |
3095 | * mem-break.h (clone_all_breakpoints): Update declaration. | |
3096 | ||
9aa76cd0 YQ |
3097 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3098 | ||
3099 | * mem-break.c (struct breakpoint) <cond_list>: Remove. | |
3100 | <command_list, handler>: Remove. | |
3101 | (struct gdb_breakpoint): New. | |
3102 | (struct other_breakpoint): New. | |
3103 | (struct reinsert_breakpoint): New. | |
3104 | (is_gdb_breakpoint): New function. | |
3105 | (any_persistent_commands): Update command_list if | |
3106 | is_gdb_breakpoint returns true. | |
3107 | (set_breakpoint): Create breakpoints according to their types. | |
3108 | (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'. | |
3109 | (set_gdb_breakpoint_1): Likewise. | |
3110 | (set_gdb_breakpoint): Likewise. | |
3111 | (clear_breakpoint_conditions): Change parameter type to | |
3112 | 'struct gdb_breakpoint *'. | |
3113 | (clear_breakpoint_commands): Likewise. | |
3114 | (clear_breakpoint_conditions_and_commands): Likewise. | |
3115 | (add_condition_to_breakpoint): Likewise. | |
3116 | (add_breakpoint_condition): Likewise. | |
3117 | (add_commands_to_breakpoint): Likewise. | |
3118 | (check_breakpoints): Check other_breakpoint. | |
3119 | (clone_one_breakpoint): Clone breakpopint according to its type. | |
3120 | * mem-break.h (struct gdb_breakpoint): Declare. | |
3121 | (set_gdb_breakpoint): Update declaration. | |
3122 | (clear_breakpoint_conditions_and_commands): Likewise. | |
3123 | (add_breakpoint_condition): Likewise. | |
3124 | (add_breakpoint_commands): Likewise. | |
3125 | * server.c (process_point_options): Change parameter type to | |
3126 | 'struct gdb_breakpoint *'. | |
3127 | ||
811f8301 YQ |
3128 | 2016-07-21 Yao Qi <yao.qi@linaro.org> |
3129 | ||
3130 | * mem-break.c (set_breakpoint_at): Rename it to ... | |
3131 | (set_breakpoint_type_at): ... it. | |
3132 | (set_breakpoint_at): Call set_breakpoint_type_at. | |
3133 | (set_reinsert_breakpoint): Call set_breakpoint_type_at. | |
3134 | * mem-break.h (set_breakpoint_at): Update comments. | |
3135 | ||
b1c51e36 CLT |
3136 | 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com> |
3137 | ||
3138 | * linux-nios2-low.c (nios2_fill_gregset): Add type cast | |
3139 | to buf parameter. | |
3140 | (nios2_store_gregset): Likewise. | |
3141 | ||
ced2dffb PA |
3142 | 2016-07-01 Pedro Alves <palves@redhat.com> |
3143 | Antoine Tremblay <antoine.tremblay@ericsson.com> | |
3144 | ||
3145 | * linux-low.c: Change interface to take the target lwp_info | |
3146 | pointer directly and return void. Handle detaching from a zombie | |
3147 | thread. | |
3148 | (linux_detach_lwp_callback): New function. | |
3149 | (linux_detach): Detach from the leader thread after detaching from | |
3150 | the clone threads. | |
3151 | ||
2ac09a5b YQ |
3152 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
3153 | ||
3154 | * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t | |
3155 | for variable new_offset. | |
3156 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. | |
3157 | (aarch64_ftrace_insn_reloc_cb): Likewise. | |
3158 | (aarch64_ftrace_insn_reloc_tb): Likewise. | |
3159 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use | |
3160 | PRIx64 instead of PRIx32. | |
3161 | ||
79e7fd4f YQ |
3162 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
3163 | ||
3164 | * linux-arm-low.c (arm_get_syscall_trapinfo): New function. | |
3165 | (the_low_target): Install arm_get_syscall_trapinfo. | |
3166 | ||
061fc021 YQ |
3167 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
3168 | ||
3169 | * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New | |
3170 | function. | |
3171 | (the_low_target): Install aarch64_get_syscall_trapinfo. | |
3172 | ||
4cc32bec YQ |
3173 | 2016-06-28 Yao Qi <yao.qi@linaro.org> |
3174 | ||
3175 | * linux-low.c (get_syscall_trapinfo): Remove parameter sysret. | |
3176 | Callers updated. | |
3177 | * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>: | |
3178 | Remove parameter sysno. | |
3179 | * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter | |
3180 | sysret. | |
3181 | ||
782c1122 AA |
3182 | 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3183 | ||
3184 | * linux-s390-low.c (s390_emit_eq_goto): Mark function static. | |
3185 | (s390_emit_ne_goto): Likewise. | |
3186 | (s390_emit_lt_goto): Likewise. | |
3187 | (s390_emit_le_goto): Likewise. | |
3188 | (s390_emit_gt_goto): Likewise. | |
3189 | (s390_emit_ge_goto): Likewise. | |
3190 | (s390x_emit_eq_goto): Likewise. | |
3191 | (s390x_emit_ne_goto): Likewise. | |
3192 | (s390x_emit_lt_goto): Likewise. | |
3193 | (s390x_emit_le_goto): Likewise. | |
3194 | (s390x_emit_gt_goto): Likewise. | |
3195 | (s390x_emit_ge_goto): Likewise. | |
3196 | (s390_emit_ops_impl): Mark variable static. | |
3197 | (s390x_emit_ops): Likewise. | |
3198 | ||
2e7b624b YQ |
3199 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
3200 | ||
3201 | * linux-low.c (handle_extended_wait): Call | |
3202 | uninsert_reinsert_breakpoints for the parent process. Remove | |
3203 | reinsert breakpoints from the child process. Reinsert them to | |
3204 | the parent process when vfork is done. | |
3205 | * mem-break.c (uninsert_reinsert_breakpoints): New function. | |
3206 | (reinsert_reinsert_breakpoints): New function. | |
3207 | * mem-break.h (uninsert_reinsert_breakpoints): Declare | |
3208 | (reinsert_reinsert_breakpoints): Declare. | |
3209 | ||
8a81c5d7 YQ |
3210 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
3211 | ||
3212 | * linux-low.c (handle_extended_wait): If the parent is doing | |
3213 | step-over, remove the reinsert breakpoints from the forked child. | |
3214 | ||
f50bf8e5 YQ |
3215 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
3216 | ||
3217 | * linux-low.c (unsuspend_all_lwps): Declare. | |
3218 | (linux_low_filter_event): If thread exited, call finish_step_over. | |
3219 | If step-over is finished, unsuspend other threads. | |
3220 | ||
8376a3cb YQ |
3221 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
3222 | ||
3223 | * linux-low.c (linux_resume_one_lwp_throw): Assert | |
3224 | has_reinsert_breakpoints returns false. | |
3225 | * mem-break.c (delete_disabled_breakpoints): Assert | |
3226 | bp type isn't reinsert_breakpoint. | |
3227 | ||
f79b145d YQ |
3228 | 2016-06-17 Yao Qi <yao.qi@linaro.org> |
3229 | ||
3230 | * linux-low.c (maybe_hw_step): New function. | |
3231 | (linux_resume_one_lwp_throw): Call maybe_hw_step. | |
3232 | (finish_step_over): Switch current_thread to lwp temporarily, | |
3233 | and assert has_reinsert_breakpoints returns true. | |
3234 | (proceed_one_lwp): Call maybe_hw_step. | |
3235 | * mem-break.c (has_reinsert_breakpoints): New function. | |
3236 | * mem-break.h (has_reinsert_breakpoints): Declare. | |
3237 | ||
0ae534d2 JT |
3238 | 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk> |
3239 | ||
3240 | * win32-low.c (win32_create_inferior): Add pointer casts for C++. | |
3241 | ||
fcdad592 YQ |
3242 | 2016-05-17 Yao Qi <yao.qi@linaro.org> |
3243 | ||
3244 | * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps | |
3245 | instead of find_inferior. | |
3246 | ||
9e784964 YQ |
3247 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
3248 | ||
3249 | * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): | |
3250 | Initialize res to zero. | |
3251 | ||
cf2ebb6e YQ |
3252 | 2016-05-05 Yao Qi <yao.qi@linaro.org> |
3253 | ||
3254 | * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr | |
3255 | to uint32_t. | |
3256 | ||
c1aebf87 UW |
3257 | 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
3258 | ||
3259 | * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value | |
3260 | used as first ptrace argument to PTRACE_TYPE_ARG1 for C++. | |
3261 | (fetch_ppc_memory_1, store_ppc_memory_1): Likewise. | |
3262 | ||
35fd2deb | 3263 | 2016-04-28 Par Olsson <par.olsson@windriver.com> |
cbe14bcf | 3264 | Simon Marchi <simon.marchi@ericsson.com> |
35fd2deb PO |
3265 | |
3266 | * tracepoint.c (write_inferior_int8): New function. | |
3267 | (cmd_qtenable_disable): Write enable flag using | |
3268 | write_inferior_int8. | |
3269 | ||
484b3c32 YQ |
3270 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
3271 | ||
3272 | * linux-low.c (lwp_signal_can_be_delivered): Adjust. | |
3273 | (need_step_over_p): Return zero if the LWP has pending signals | |
3274 | can be delivered on software single step target. | |
3275 | ||
85ba7d86 YQ |
3276 | 2016-04-25 Yao Qi <yao.qi@linaro.org> |
3277 | ||
3278 | * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true | |
3279 | return instead of error. | |
3280 | ||
3539aa13 YQ |
3281 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
3282 | ||
3283 | * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20 | |
3284 | to 23. | |
3285 | ||
5b061e98 YQ |
3286 | 2016-04-22 Yao Qi <yao.qi@linaro.org> |
3287 | ||
3288 | * linux-low.c (lwp_signal_can_be_delivered): Don't deliver | |
3289 | signal when stepping over breakpoint with software single | |
3290 | step. | |
3291 | ||
3451269c PA |
3292 | 2016-04-21 Pedro Alves <palves@redhat.com> |
3293 | ||
3294 | * linux-s390-low.c (s390_collect_ptrace_register) | |
3295 | (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and | |
3296 | add casts. | |
3297 | (s390_check_regset): Use void * instead of gdb_byte *. | |
3298 | ||
a2358508 PA |
3299 | 2016-04-20 Pedro Alves <palves@redhat.com> |
3300 | ||
3301 | * configure: Renegerate. | |
3302 | ||
6885166d YQ |
3303 | 2016-04-20 Yao Qi <yao.qi@linaro.org> |
3304 | ||
3305 | * linux-aarch32-low.c: Include "arch/arm-linux.h". | |
3306 | (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic | |
3307 | number 16. | |
3308 | (arm_store_gregset): Likewise. | |
3309 | ||
2b863f51 WT |
3310 | 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com> |
3311 | ||
3312 | * Makefile.in (clean): Add removal for i386-avx-mpx.c, | |
3313 | i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c. | |
3314 | (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c) | |
3315 | (amd64-avx-mpx-linux.c): New rules. | |
3316 | (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule. | |
3317 | * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o. | |
3318 | (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o. | |
3319 | (srv_amd64_regobj): Add amd64-avx-mpx.o. | |
3320 | (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o. | |
3321 | (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml. | |
3322 | (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml. | |
3323 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml. | |
3324 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml. | |
3325 | (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o. | |
3326 | (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o. | |
3327 | * linux-x86-low.c (x86_linux_read_description): Add case for | |
3328 | X86_XSTATE_AVX_MPX_MASK. | |
3329 | (x86_get_ipa_tdesc_idx): Add cases for avx_mpx. | |
3330 | (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and | |
3331 | init_registers_i386_avx_mpx_linux. | |
3332 | * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx. | |
3333 | (initialize_low_tracepoint): Call | |
3334 | init_registers_i386_avx_mpx_linux. | |
3335 | * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx. | |
3336 | (initialize_low_tracepoint): Call | |
3337 | init_registers_amd64_avx_mpx_linux. | |
3338 | * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value. | |
3339 | (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux) | |
3340 | (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New | |
3341 | declarations. | |
3342 | ||
9b30624b PA |
3343 | 2016-04-18 Pedro Alves <palves@redhat.com> |
3344 | ||
3345 | * configure: Regenerate. | |
3346 | ||
45e3745e AT |
3347 | 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com> |
3348 | ||
3349 | * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0. | |
3350 | (aarch64_emit_sub): Likewise. | |
3351 | ||
2afc13ff PA |
3352 | 2016-04-12 Pedro Alves <palves@redhat.com> |
3353 | ||
3354 | * utils.c (prepare_to_throw_exception): Delete. | |
3355 | ||
6e774b13 SM |
3356 | 2016-04-05 Simon Marchi <simon.marchi@ericsson.com> |
3357 | ||
3358 | * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib. | |
3359 | ||
4dca19f8 MK |
3360 | 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net> |
3361 | ||
3362 | * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT. | |
3363 | ||
d0a9981f MK |
3364 | 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net> |
3365 | ||
3366 | * linux-aarch64-ipa.c: Add <elf.h> include. | |
3367 | * linux-ppc-ipa.c: Add <elf.h> include. | |
3368 | * linux-s390-ipa.c: Add <elf.h> include. | |
3369 | ||
252db07e MK |
3370 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
3371 | ||
3372 | * tracepoint.c (gdb_collect_ptr): Remove const qualifier. | |
3373 | (get_raw_reg_ptr): Likewise. | |
3374 | (get_trace_state_variable_value_ptr): Likewise. | |
3375 | (set_trace_state_variable_value_ptr): Likewise. | |
3376 | (initialize_tracepoint): Cast alloc_jump_pad_buffer result to | |
3377 | char *. | |
3378 | ||
14e2b6d9 MK |
3379 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
3380 | Marcin Kościelnicki <koriakin@0x04.net> | |
3381 | ||
3382 | PR/17221 | |
3383 | * linux-ppc-low.c (emit_insns): New function. | |
3384 | (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros. | |
3385 | (ppc_emit_prologue): New function. | |
3386 | (ppc_emit_epilogue): New function. | |
3387 | (ppc_emit_add): New function. | |
3388 | (ppc_emit_sub): New function. | |
3389 | (ppc_emit_mul): New function. | |
3390 | (ppc_emit_lsh): New function. | |
3391 | (ppc_emit_rsh_signed): New function. | |
3392 | (ppc_emit_rsh_unsigned): New function. | |
3393 | (ppc_emit_ext): New function. | |
3394 | (ppc_emit_zero_ext): New function. | |
3395 | (ppc_emit_log_not): New function. | |
3396 | (ppc_emit_bit_and): New function. | |
3397 | (ppc_emit_bit_or): New function. | |
3398 | (ppc_emit_bit_xor): New function. | |
3399 | (ppc_emit_bit_not): New function. | |
3400 | (ppc_emit_equal): New function. | |
3401 | (ppc_emit_less_signed): New function. | |
3402 | (ppc_emit_less_unsigned): New function. | |
3403 | (ppc_emit_ref): New function. | |
3404 | (ppc_emit_const): New function. | |
3405 | (ppc_emit_reg): New function. | |
3406 | (ppc_emit_pop): New function. | |
3407 | (ppc_emit_stack_flush): New function. | |
3408 | (ppc_emit_swap): New function. | |
3409 | (ppc_emit_stack_adjust): New function. | |
3410 | (ppc_emit_call): New function. | |
3411 | (ppc_emit_int_call_1): New function. | |
3412 | (ppc_emit_void_call_2): New function. | |
3413 | (ppc_emit_if_goto): New function. | |
3414 | (ppc_emit_goto): New function. | |
3415 | (ppc_emit_eq_goto): New function. | |
3416 | (ppc_emit_ne_goto): New function. | |
3417 | (ppc_emit_lt_goto): New function. | |
3418 | (ppc_emit_le_goto): New function. | |
3419 | (ppc_emit_gt_goto): New function. | |
3420 | (ppc_emit_ge_goto): New function. | |
3421 | (ppc_write_goto_address): New function. | |
3422 | (ppc_emit_ops_impl): New static variable. | |
3423 | (ppc64v1_emit_prologue): New function. | |
3424 | (ppc64v2_emit_prologue): New function. | |
3425 | (ppc64_emit_epilogue): New function. | |
3426 | (ppc64_emit_add): New function. | |
3427 | (ppc64_emit_sub): New function. | |
3428 | (ppc64_emit_mul): New function. | |
3429 | (ppc64_emit_lsh): New function. | |
3430 | (ppc64_emit_rsh_signed): New function. | |
3431 | (ppc64_emit_rsh_unsigned): New function. | |
3432 | (ppc64_emit_ext): New function. | |
3433 | (ppc64_emit_zero_ext): New function. | |
3434 | (ppc64_emit_log_not): New function. | |
3435 | (ppc64_emit_bit_and): New function. | |
3436 | (ppc64_emit_bit_or): New function. | |
3437 | (ppc64_emit_bit_xor): New function. | |
3438 | (ppc64_emit_bit_not): New function. | |
3439 | (ppc64_emit_equal): New function. | |
3440 | (ppc64_emit_less_signed): New function. | |
3441 | (ppc64_emit_less_unsigned): New function. | |
3442 | (ppc64_emit_ref): New function. | |
3443 | (ppc64_emit_const): New function. | |
3444 | (ppc64v1_emit_reg): New function. | |
3445 | (ppc64v2_emit_reg): New function. | |
3446 | (ppc64_emit_pop): New function. | |
3447 | (ppc64_emit_stack_flush): New function. | |
3448 | (ppc64_emit_swap): New function. | |
3449 | (ppc64v1_emit_call): New function. | |
3450 | (ppc64v2_emit_call): New function. | |
3451 | (ppc64v1_emit_int_call_1): New function. | |
3452 | (ppc64v2_emit_int_call_1): New function. | |
3453 | (ppc64v1_emit_void_call_2): New function. | |
3454 | (ppc64v2_emit_void_call_2): New function. | |
3455 | (ppc64_emit_if_goto): New function. | |
3456 | (ppc64_emit_eq_goto): New function. | |
3457 | (ppc64_emit_ne_goto): New function. | |
3458 | (ppc64_emit_lt_goto): New function. | |
3459 | (ppc64_emit_le_goto): New function. | |
3460 | (ppc64_emit_gt_goto): New function. | |
3461 | (ppc64_emit_ge_goto): New function. | |
3462 | (ppc64v1_emit_ops_impl): New static variable. | |
3463 | (ppc64v2_emit_ops_impl): New static variable. | |
3464 | (ppc_emit_ops): New function. | |
3465 | (linux_low_target): Wire in ppc_emit_ops. | |
3466 | ||
a2174ba4 MK |
3467 | 2016-03-31 Wei-cheng Wang <cole945@gmail.com> |
3468 | Marcin Kościelnicki <koriakin@0x04.net> | |
3469 | ||
3470 | PR/17221 | |
3471 | * Makefile.in: Add powerpc-*-ipa.o | |
3472 | * configure.srv: Add ipa_obj for powerpc*-linux. | |
3473 | * linux-ppc-ipa.c: New file. | |
3474 | * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h | |
3475 | includes. | |
3476 | (PPC_FIELD): New macro. | |
3477 | (PPC_SEXT): New macro. | |
3478 | (PPC_OP6): New macro. | |
3479 | (PPC_BO): New macro. | |
3480 | (PPC_LI): New macro. | |
3481 | (PPC_BD): New macro. | |
3482 | (init_registers_*): Move prototype to linux-ppc-tdesc.h. | |
3483 | (tdesc_*): Move declaration to linux-ppc-tdesc.h. | |
3484 | (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter. | |
3485 | (ppc_get_thread_area): New function. | |
3486 | (is_elfv2_inferior): New function. | |
3487 | (gen_ds_form): New function. | |
3488 | (GEN_STD): New macro. | |
3489 | (GEN_STDU): New macro. | |
3490 | (GEN_LD): New macro. | |
3491 | (GEN_LDU): New macro. | |
3492 | (gen_d_form): New function. | |
3493 | (GEN_ADDI): New macro. | |
3494 | (GEN_ADDIS): New macro. | |
3495 | (GEN_LI): New macro. | |
3496 | (GEN_LIS): New macro. | |
3497 | (GEN_ORI): New macro. | |
3498 | (GEN_ORIS): New macro. | |
3499 | (GEN_LWZ): New macro. | |
3500 | (GEN_STW): New macro. | |
3501 | (GEN_STWU): New macro. | |
3502 | (gen_xfx_form): New function. | |
3503 | (GEN_MFSPR): New macro. | |
3504 | (GEN_MTSPR): New macro. | |
3505 | (GEN_MFCR): New macro. | |
3506 | (GEN_MTCR): New macro. | |
3507 | (GEN_SYNC): New macro. | |
3508 | (GEN_LWSYNC): New macro. | |
3509 | (gen_x_form): New function. | |
3510 | (GEN_OR): New macro. | |
3511 | (GEN_MR): New macro. | |
3512 | (GEN_LWARX): New macro. | |
3513 | (GEN_STWCX): New macro. | |
3514 | (GEN_CMPW): New macro. | |
3515 | (gen_md_form): New function. | |
3516 | (GEN_RLDICL): New macro. | |
3517 | (GEN_RLDICR): New macro. | |
3518 | (gen_i_form): New function. | |
3519 | (GEN_B): New macro. | |
3520 | (GEN_BL): New macro. | |
3521 | (gen_b_form): New function. | |
3522 | (GEN_BNE): New macro. | |
3523 | (GEN_LOAD): New macro. | |
3524 | (GEN_STORE): New macro. | |
3525 | (gen_limm): New function. | |
3526 | (gen_atomic_xchg): New function. | |
3527 | (gen_call): New function. | |
3528 | (ppc_relocate_instruction): New function. | |
3529 | (ppc_install_fast_tracepoint_jump_pad): New function. | |
3530 | (ppc_get_min_fast_tracepoint_insn_len): New function. | |
3531 | (ppc_get_ipa_tdesc_idx): New function. | |
3532 | (the_low_target): Wire in the new functions. | |
3533 | (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit | |
3534 | tdescs. | |
3535 | * linux-ppc-tdesc.h: New file. | |
3536 | ||
a13c4696 MK |
3537 | 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net> |
3538 | ||
3539 | * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. | |
3540 | (alloc_jump_pad_buffer): New function. | |
3541 | * linux-amd64-ipa.c: Add <sys/mman.h> include. | |
3542 | (alloc_jump_pad_buffer): New function. | |
3543 | * linux-i386-ipa.c (alloc_jump_pad_buffer): New function. | |
3544 | * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes. | |
3545 | (alloc_jump_pad_buffer): New function. | |
3546 | * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function. | |
3547 | (initialize_tracepoint): Delegate to alloc_jump_pad_buffer. | |
3548 | * tracepoint.h (alloc_jump_pad_buffer): New prototype. | |
3549 | (getauxval) [!HAVE_GETAUXVAL]: New prototype. | |
3550 | ||
1cda1512 MK |
3551 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
3552 | ||
3553 | * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg. | |
3554 | * linux-amd64-ipa.c: Likewise. | |
3555 | * linux-i386-ipa.c: Likewise. | |
3556 | * linux-s390-ipa.c: Likewise. | |
3557 | * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect, | |
3558 | ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr, | |
3559 | set_trace_state_variable_value_ptr. | |
3560 | (struct ipa_sym_addresses): Likewise. | |
3561 | (symbol_list): Likewise. | |
3562 | (install_fast_tracepoint): Dereference gdb_collect_ptr instead of | |
3563 | accessing gdb_collect directly. | |
3564 | (gdb_collect_ptr_type): New typedef. | |
3565 | (get_raw_reg_ptr_type): New typedef. | |
3566 | (get_trace_state_variable_value_ptr_type): New typedef. | |
3567 | (set_trace_state_variable_value_ptr_type): New typedef. | |
3568 | (gdb_collect_ptr): New global. | |
3569 | (get_raw_reg_ptr): New global. | |
3570 | (get_trace_state_variable_value_ptr): New global. | |
3571 | (set_trace_state_variable_value_ptr): New global. | |
3572 | (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of | |
3573 | accessing get_raw_reg directly. | |
3574 | (get_get_tsv_func_addr): Likewise for | |
3575 | get_trace_state_variable_value_ptr. | |
3576 | (get_set_tsv_func_addr): Likewise for | |
3577 | set_trace_state_variable_value_ptr. | |
3578 | * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg. | |
3579 | ||
72fb5488 SM |
3580 | 2016-03-30 Simon Marchi <simon.marchi@ericsson.com> |
3581 | ||
3582 | * tracepoint.c (cmd_qtenable_disable): Remove whitespace. | |
3583 | ||
28170b88 MK |
3584 | 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net> |
3585 | ||
3586 | * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v' | |
3587 | packets. | |
3588 | (relocate_instruction): Remove own_buf. | |
3589 | * server.c (own_buf): Make global. | |
3590 | (handle_v_requests): Make global. | |
3591 | * server.h (own_buf): New declaration. | |
3592 | (handle_v_requests): New prototype. | |
3593 | ||
f39e8743 MK |
3594 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
3595 | ||
3596 | PR 18377 | |
3597 | * linux-s390-low.c (add_insns): New function. | |
3598 | (s390_emit_prologue): New function. | |
3599 | (s390_emit_epilogue): New function. | |
3600 | (s390_emit_add): New function. | |
3601 | (s390_emit_sub): New function. | |
3602 | (s390_emit_mul): New function. | |
3603 | (s390_emit_lsh): New function. | |
3604 | (s390_emit_rsh_signed): New function. | |
3605 | (s390_emit_rsh_unsigned): New function. | |
3606 | (s390_emit_ext): New function. | |
3607 | (s390_emit_log_not): New function. | |
3608 | (s390_emit_bit_and): New function. | |
3609 | (s390_emit_bit_or): New function. | |
3610 | (s390_emit_bit_xor): New function. | |
3611 | (s390_emit_bit_not): New function. | |
3612 | (s390_emit_equal): New function. | |
3613 | (s390_emit_less_signed): New function. | |
3614 | (s390_emit_less_unsigned): New function. | |
3615 | (s390_emit_ref): New function. | |
3616 | (s390_emit_if_goto): New function. | |
3617 | (s390_emit_goto): New function. | |
3618 | (s390_write_goto_address): New function. | |
3619 | (s390_emit_litpool): New function. | |
3620 | (s390_emit_const): New function. | |
3621 | (s390_emit_call): New function. | |
3622 | (s390_emit_reg): New function. | |
3623 | (s390_emit_pop): New function. | |
3624 | (s390_emit_stack_flush): New function. | |
3625 | (s390_emit_zero_ext): New function. | |
3626 | (s390_emit_swap): New function. | |
3627 | (s390_emit_stack_adjust): New function. | |
3628 | (s390_emit_set_r2): New function. | |
3629 | (s390_emit_int_call_1): New function. | |
3630 | (s390_emit_void_call_2): New function. | |
3631 | (s390_emit_eq_goto): New function. | |
3632 | (s390_emit_ne_goto): New function. | |
3633 | (s390_emit_lt_goto): New function. | |
3634 | (s390_emit_le_goto): New function. | |
3635 | (s390_emit_gt_goto): New function. | |
3636 | (s390_emit_ge_goto): New function. | |
3637 | (s390x_emit_prologue): New function. | |
3638 | (s390x_emit_epilogue): New function. | |
3639 | (s390x_emit_add): New function. | |
3640 | (s390x_emit_sub): New function. | |
3641 | (s390x_emit_mul): New function. | |
3642 | (s390x_emit_lsh): New function. | |
3643 | (s390x_emit_rsh_signed): New function. | |
3644 | (s390x_emit_rsh_unsigned): New function. | |
3645 | (s390x_emit_ext): New function. | |
3646 | (s390x_emit_log_not): New function. | |
3647 | (s390x_emit_bit_and): New function. | |
3648 | (s390x_emit_bit_or): New function. | |
3649 | (s390x_emit_bit_xor): New function. | |
3650 | (s390x_emit_bit_not): New function. | |
3651 | (s390x_emit_equal): New function. | |
3652 | (s390x_emit_less_signed): New function. | |
3653 | (s390x_emit_less_unsigned): New function. | |
3654 | (s390x_emit_ref): New function. | |
3655 | (s390x_emit_if_goto): New function. | |
3656 | (s390x_emit_const): New function. | |
3657 | (s390x_emit_call): New function. | |
3658 | (s390x_emit_reg): New function. | |
3659 | (s390x_emit_pop): New function. | |
3660 | (s390x_emit_stack_flush): New function. | |
3661 | (s390x_emit_zero_ext): New function. | |
3662 | (s390x_emit_swap): New function. | |
3663 | (s390x_emit_stack_adjust): New function. | |
3664 | (s390x_emit_int_call_1): New function. | |
3665 | (s390x_emit_void_call_2): New function. | |
3666 | (s390x_emit_eq_goto): New function. | |
3667 | (s390x_emit_ne_goto): New function. | |
3668 | (s390x_emit_lt_goto): New function. | |
3669 | (s390x_emit_le_goto): New function. | |
3670 | (s390x_emit_gt_goto): New function. | |
3671 | (s390x_emit_ge_goto): New function. | |
3672 | (s390_emit_ops): New function. | |
3673 | (struct linux_target_ops): Fill in emit_ops hook. | |
3674 | ||
abd9baf9 MK |
3675 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
3676 | ||
3677 | PR 18377 | |
3678 | * Makefile.in: Add s390 IPA files. | |
3679 | * configure.srv: Build IPA for s390. | |
3680 | * linux-s390-ipa.c: New file. | |
3681 | * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h. | |
3682 | (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h. | |
3683 | (tdesc_s390_linux32): Likewise. | |
3684 | (init_registers_s390_linux32v1): Likewise. | |
3685 | (tdesc_s390_linux32v1): Likewise. | |
3686 | (init_registers_s390_linux32v2): Likewise. | |
3687 | (tdesc_s390_linux32v2): Likewise. | |
3688 | (init_registers_s390_linux64): Likewise. | |
3689 | (tdesc_s390_linux64): Likewise. | |
3690 | (init_registers_s390_linux64v1): Likewise. | |
3691 | (tdesc_s390_linux64v1): Likewise. | |
3692 | (init_registers_s390_linux64v2): Likewise. | |
3693 | (tdesc_s390_linux64v2): Likewise. | |
3694 | (init_registers_s390_te_linux64): Likewise. | |
3695 | (tdesc_s390_te_linux64): Likewise. | |
3696 | (init_registers_s390_vx_linux64): Likewise. | |
3697 | (tdesc_s390_vx_linux64): Likewise. | |
3698 | (init_registers_s390_tevx_linux64): Likewise. | |
3699 | (tdesc_s390_tevx_linux64): Likewise. | |
3700 | (init_registers_s390x_linux64): Likewise. | |
3701 | (tdesc_s390x_linux64): Likewise. | |
3702 | (init_registers_s390x_linux64v1): Likewise. | |
3703 | (tdesc_s390x_linux64v1): Likewise. | |
3704 | (init_registers_s390x_linux64v2): Likewise. | |
3705 | (tdesc_s390x_linux64v2): Likewise. | |
3706 | (init_registers_s390x_te_linux64): Likewise. | |
3707 | (tdesc_s390x_te_linux64): Likewise. | |
3708 | (init_registers_s390x_vx_linux64): Likewise. | |
3709 | (tdesc_s390x_vx_linux64): Likewise. | |
3710 | (init_registers_s390x_tevx_linux64): Likewise. | |
3711 | (tdesc_s390x_tevx_linux64): Likewise. | |
3712 | (have_hwcap_s390_vx): New static variable. | |
3713 | (s390_arch_setup): Fill have_hwcap_s390_vx. | |
3714 | (s390_get_thread_area): New function. | |
3715 | (s390_ft_entry_gpr_esa): New const. | |
3716 | (s390_ft_entry_gpr_zarch): New const. | |
3717 | (s390_ft_entry_misc): New const. | |
3718 | (s390_ft_entry_fr): New const. | |
3719 | (s390_ft_entry_vr): New const. | |
3720 | (s390_ft_main_31): New const. | |
3721 | (s390_ft_main_64): New const. | |
3722 | (s390_ft_exit_fr): New const. | |
3723 | (s390_ft_exit_vr): New const. | |
3724 | (s390_ft_exit_misc): New const. | |
3725 | (s390_ft_exit_gpr_esa): New const. | |
3726 | (s390_ft_exit_gpr_zarch): New const. | |
3727 | (append_insns): New function. | |
3728 | (s390_relocate_instruction): New function. | |
3729 | (s390_install_fast_tracepoint_jump_pad): New function. | |
3730 | (s390_get_min_fast_tracepoint_insn_len): New function. | |
3731 | (s390_get_ipa_tdesc_idx): New function. | |
3732 | (struct linux_target_ops): Wire in the above functions. | |
3733 | (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs. | |
3734 | * linux-s390-tdesc.h: New file. | |
3735 | ||
a4105d04 MK |
3736 | 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net> |
3737 | ||
3738 | * linux-s390-low.c (s390_supports_tracepoints): New function. | |
3739 | (struct linux_target_ops): Fill supports_tracepoints hook. | |
3740 | ||
35ac8b3e YQ |
3741 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
3742 | ||
3743 | * linux-low.c (lwp_signal_can_be_delivered): New function. | |
3744 | (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered. | |
3745 | ||
94610ec4 YQ |
3746 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
3747 | ||
3748 | * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to | |
3749 | 0 if signal is enqueued. Remove 'signal' from one debugging | |
3750 | message. Move one debugging message to some lines below. | |
3751 | Remove code setting 'signal' to 0. | |
3752 | ||
80aea927 YQ |
3753 | 2016-03-18 Yao Qi <yao.qi@linaro.org> |
3754 | ||
3755 | * linux-low.c (linux_low_filter_event): Remove redundant | |
3756 | WIFSTOPPED check together with linux_wstatus_maybe_breakpoint. | |
3757 | ||
b04fd3be MK |
3758 | 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net> |
3759 | ||
3760 | * linux-ppc-low.c (ppc_supports_tracepoints): New function. | |
3761 | (struct linux_target_ops): Wire in the above. | |
3762 | ||
c40c8d4b YQ |
3763 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
3764 | ||
3765 | * linux-low.c: Update comments to start_step_over. | |
3766 | ||
0f8288ae YQ |
3767 | 2016-03-03 Yao Qi <yao.qi@linaro.org> |
3768 | ||
3769 | PR server/19736 | |
3770 | * linux-low.c (handle_extended_wait): Set child suspended | |
3771 | if event_lwp->bp_reinsert isn't zero. | |
3772 | ||
fdbd04a8 YQ |
3773 | 2016-03-02 Yao Qi <yao.qi@linaro.org> |
3774 | ||
3775 | * linux-low.c (linux_resume_one_lwp_throw): Replace code with | |
3776 | enqueue_pending_signal. | |
3777 | ||
6896a8fa MK |
3778 | 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net> |
3779 | ||
3780 | * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent | |
3781 | is actually loaded. | |
3782 | ||
ab503087 MK |
3783 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
3784 | ||
3785 | * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too. | |
3786 | (s390_regmap_3264) [!__s390x__]: New global. | |
3787 | (s390_collect_ptrace_register): Skip map entries containing -1. | |
3788 | (s390_supply_ptrace_register): Ditto. | |
3789 | (s390_fill_gprs_high): New function. | |
3790 | (s390_store_gprs_high): New function. | |
3791 | (s390_regsets): Add NT_S390_HIGH_GPRS. | |
3792 | (s390_get_hwcap): Enable on 31-bit. | |
3793 | (have_hwcap_s390_high_gprs): Enable on 31-bit. | |
3794 | (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit. | |
3795 | Detect NT_S390_HIGH_GPRS. | |
3796 | (s390_usrregs_info_3264): Enable on 31-bit. | |
3797 | (s390_regs_info): Enable regs_info_3264 on 31-bit. | |
3798 | (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit. | |
3799 | ||
ae91f625 MK |
3800 | 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net> |
3801 | ||
3802 | PR gdb/13808 | |
3803 | * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o. | |
3804 | * configure.srv: Ditto. | |
3805 | * linux-aarch64-ipa.c (get_ipa_tdesc): New function. | |
3806 | (initialize_low_tracepoint): Remove ipa_tdesc assignment. | |
3807 | * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include. | |
3808 | (init_registers_amd64_linux): Remove prototype. | |
3809 | (tdesc_amd64_linux): Remove declaration. | |
3810 | (get_ipa_tdesc): New function. | |
3811 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, | |
3812 | initialize remaining tdescs. | |
3813 | * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include. | |
3814 | (init_registers_i386_linux): Remove prototype. | |
3815 | (tdesc_i386_linux): Remove declaration. | |
3816 | (get_ipa_tdesc): New function. | |
3817 | (initialize_low_tracepoint): Remove ipa_tdesc assignment, | |
3818 | initialize remaining tdescs. | |
3819 | * linux-low.c (linux_get_ipa_tdesc_idx): New function. | |
3820 | (linux_target_ops): wire in linux_get_ipa_tdesc_idx. | |
3821 | * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx. | |
3822 | * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h. | |
3823 | (x86_get_ipa_tdesc_idx): New function. | |
3824 | (the_low_target): Wire in x86_get_ipa_tdesc_idx. | |
3825 | * linux-x86-tdesc.h: New file. | |
3826 | * target.h (struct target_ops): Add get_ipa_tdesc_idx. | |
3827 | (target_get_ipa_tdesc_idx): New macro. | |
3828 | * tracepoint.c (ipa_tdesc_idx): New macro. | |
3829 | (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx. | |
3830 | (symbol_list): Add ipa_tdesc_idx. | |
3831 | (cmd_qtstart): Write ipa_tdesc_idx in the target. | |
3832 | (ipa_tdesc): Remove. | |
3833 | (ipa_tdesc_idx): New variable. | |
3834 | (get_context_regcache): Use get_ipa_tdesc. | |
3835 | (gdb_collect): Ditto. | |
3836 | (gdb_probe): Ditto. | |
3837 | * tracepoint.h (get_ipa_tdesc): New prototype. | |
3838 | (ipa_tdesc): Remove. | |
3839 | ||
e7ad2f14 PA |
3840 | 2016-02-24 Pedro Alves <palves@redhat.com> |
3841 | ||
3842 | * linux-low.c (check_stopped_by_breakpoint): Rename to ... | |
3843 | (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and | |
3844 | handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. | |
3845 | Factor out common code between the USE_SIGTRAP_SIGINFO and | |
3846 | !USE_SIGTRAP_SIGINFO blocks. | |
3847 | (linux_low_filter_event): Call save_stop_reason instead of | |
3848 | check_stopped_by_breakpoint and check_stopped_by_watchpoint. | |
3849 | Update comments. | |
3850 | (linux_wait_1): Update comments. | |
3851 | ||
657f9cde WW |
3852 | 2016-02-24 Wei-cheng Wang <cole945@gmail.com> |
3853 | ||
3854 | * linux-ppc-low.c (ppc_supports_z_point_type): New function: | |
3855 | (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints. | |
3856 | (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type, | |
3857 | ppc_insert_point, ppc_remove_point. | |
3858 | ||
b00b61e1 MK |
3859 | 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net> |
3860 | ||
3861 | * linux-s390-low.c (s390_supports_z_point_type): New function. | |
3862 | (struct linux_target_ops): Wire s390_supports_z_point_type in. | |
3863 | ||
553cb527 YQ |
3864 | 2016-02-16 Yao Qi <yao.qi@linaro.org> |
3865 | ||
3866 | * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument | |
3867 | PC. Get pc from regcache_read_pc. | |
3868 | ||
a5652c21 YQ |
3869 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
3870 | ||
3871 | * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit | |
3872 | or linux_get_pc_32bit. | |
3873 | (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit. | |
3874 | ||
ed443b61 YQ |
3875 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
3876 | ||
3877 | * linux-arm-low.c (get_next_pcs_ops): Initialize it with | |
3878 | arm_linux_get_next_pcs_fixup. | |
3879 | ||
020ecd38 MK |
3880 | 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net> |
3881 | ||
3882 | * tracepoint.c (x_tracepoint_action_download): Change | |
3883 | write_inferior_data_ptr to write_inferior_data_pointer. | |
3884 | (cmd_qtstart): Likewise. | |
3885 | (write_inferior_data_ptr): Remove. | |
3886 | (download_agent_expr): Change write_inferior_data_ptr to | |
3887 | write_inferior_data_pointer. | |
3888 | (download_tracepoint_1): Likewise. | |
3889 | (download_tracepoint): Likewise. | |
3890 | (download_trace_state_variables): Likewise. | |
3891 | ||
7cae9051 WW |
3892 | 2016-02-11 Wei-cheng Wang <cole945@gmail.com> |
3893 | Marcin Kościelnicki <koriakin@0x04.net> | |
3894 | ||
3895 | * tracepoint.c (struct tracepoint_action_ops): Remove. | |
3896 | (struct tracepoint_action): Remove ops. | |
3897 | (m_tracepoint_action_download, r_tracepoint_action_download) | |
3898 | (x_tracepoint_action_download, l_tracepoint_action_download): Adjust | |
3899 | size and offset accordingly. | |
3900 | (m_tracepoint_action_ops, r_tracepoint_action_ops) | |
3901 | (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove. | |
3902 | (tracepoint_action_send, tracepoint_action_download): New functions. | |
3903 | Helpers for trace action handlers. | |
3904 | (add_tracepoint_action): Remove setup actions ops. | |
3905 | (download_tracepoint_1, tracepoint_send_agent): Call helper functions. | |
3906 | ||
9f6a71b4 YQ |
3907 | 2016-02-10 Yao Qi <yao.qi@linaro.org> |
3908 | ||
3909 | * regcache.c (regcache_raw_read_unsigned): Clear *VAL. | |
3910 | ||
1e94266c SM |
3911 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
3912 | ||
3913 | * configure.ac: Use AC_CONFIG_FILES instead of passing arguments | |
3914 | to AC_OUTPUT. | |
3915 | * configure: Regenerate. | |
3916 | ||
8adce034 SM |
3917 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
3918 | ||
3919 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change | |
3920 | void * to gdb_byte *. | |
3921 | * linux-low.c (siginfo_fixup): Likewise. | |
3922 | (linux_xfer_siginfo): Likewise. | |
3923 | * linux-low.h (struct linux_target_ops) <siginfo_fixup>: | |
3924 | Likewise. | |
3925 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
3926 | ||
93813b37 WT |
3927 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
3928 | ||
3929 | * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o | |
3930 | to srv_tgtobj. | |
3931 | (i[34567]86-*-linux*): Add amd64-linux-siginfo.o | |
3932 | to srv_tgtobj. | |
3933 | * linux-x86-low.c [__x86_64__]: Include | |
3934 | "nat/amd64-linux-siginfo.h". | |
3935 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
3936 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) | |
3937 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) | |
3938 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) | |
3939 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) | |
3940 | (cpt_si_fd, si_timerid, si_overrun): Move from | |
3941 | nat/amd64-linux-siginfo.c. | |
3942 | * Makefile.in (amd64-linux-siginfo.o:): New rule. | |
3943 | ||
8424cc97 SM |
3944 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
3945 | ||
3946 | * server.c (skip_to_semicolon): Remove. | |
3947 | (process_point_options): Use strchrnul instead of | |
3948 | skip_to_semicolon. | |
3949 | ||
4d18591b YQ |
3950 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
3951 | ||
3952 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc. | |
3953 | * linux-low.c (install_software_single_step_breakpoints): Don't | |
3954 | call regcache_read_pc. | |
3955 | * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove | |
3956 | argument pc. | |
3957 | ||
d8020970 YQ |
3958 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
3959 | ||
3960 | * linux-low.c (install_software_single_step_breakpoints): Call | |
3961 | regcache_read_pc instead of get_pc. | |
3962 | ||
8b207339 YQ |
3963 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
3964 | ||
3965 | * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO. | |
3966 | (unblock_async_io): Rename to ... | |
3967 | (block_unblock_async_io): ... it. New function. | |
3968 | (enable_async_io): Don't install SIGIO handler. Unblock it | |
3969 | instead. | |
3970 | (disable_async_io): Don't ignore SIGIO. Block it instead. | |
3971 | (initialize_async_io): Install SIGIO handler. Don't call | |
3972 | unblock_async_io. | |
3973 | ||
18879fef YQ |
3974 | 2016-01-26 Yao Qi <yao.qi@linaro.org> |
3975 | ||
3976 | * remote-utils.c (getpkt): If the buffer isn't empty, and the | |
3977 | first character is '\003', call *the_target->request_interrupt. | |
3978 | ||
a0f8e08a YQ |
3979 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
3980 | ||
3981 | * remote-utils.c (new_thread_notify): Remove. | |
3982 | (dead_thread_notify): Likewise. | |
3983 | * remote-utils.h (new_thread_notify): Remove declaration. | |
3984 | (dead_thread_notify): Likewise. | |
3985 | ||
cc5fd9ab MK |
3986 | 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net> |
3987 | ||
3988 | * gdb.trace/pending.exp: Fix expected message on continue. | |
3989 | ||
99e8eb11 MK |
3990 | 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net> |
3991 | ||
3992 | * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that | |
3993 | it works properly on big-endian machines where sizeof (CORE_ADDR) | |
3994 | != sizeof (void *). | |
3995 | ||
a994041d PA |
3996 | 2016-01-21 Pedro Alves <palves@redhat.com> |
3997 | ||
3998 | * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New. | |
3999 | (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS. | |
4000 | * configure: Regenerate. | |
4001 | ||
f7a6a40d YQ |
4002 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
4003 | ||
4004 | * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter | |
4005 | is_thumb and set it according to CPSR saved on the stack. | |
4006 | (get_next_pcs_syscall_next_pc): Pass is_thumb to | |
4007 | arm_sigreturn_next_pc. | |
4008 | ||
6f69e520 YQ |
4009 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
4010 | ||
4011 | * linux-low.c (linux_set_pc_64bit): New function. | |
4012 | (linux_get_pc_64bit): New function. | |
4013 | * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit): | |
4014 | Declare. | |
4015 | * linux-sparc-low.c (debug_threads): Remove declaration. | |
4016 | (sparc_get_pc): Remove. | |
4017 | (the_low_target): Use linux_get_pc_64bit instead of | |
4018 | sparc_get_pc. | |
4019 | * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove. | |
4020 | (the_low_target): Use linux_get_pc_64bit and | |
4021 | linux_set_pc_64bit. | |
4022 | ||
276d4552 YQ |
4023 | 2016-01-18 Yao Qi <yao.qi@linaro.org> |
4024 | ||
4025 | * linux-arm-low.c (debug_threads): Remove declaration. | |
4026 | (arm_get_pc, arm_set_pc): Remove. | |
4027 | (the_low_target): Use linux_get_pc_32bit and | |
4028 | linux_set_pc_32bit. | |
4029 | * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove. | |
4030 | (the_low_target): Use linux_get_pc_32bit and | |
4031 | linux_set_pc_32bit. | |
4032 | * linux-cris-low.c (debug_threads): Remove declaration. | |
4033 | (cris_get_pc, cris_set_pc,): Remove. | |
4034 | (the_low_target): Use linux_get_pc_32bit and | |
4035 | linux_set_pc_32bit. | |
4036 | * linux-crisv32-low.c (debug_threads): Remove declaration. | |
4037 | (cris_get_pc, cris_set_pc): Remove. | |
4038 | (the_low_target): Use linux_get_pc_32bit and | |
4039 | linux_set_pc_32bit. | |
4040 | * linux-low.c: Include inttypes.h. | |
4041 | (linux_get_pc_32bit, linux_set_pc_32bit): New functions. | |
4042 | * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare. | |
4043 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove. | |
4044 | (the_low_target): Use linux_get_pc_32bit and | |
4045 | linux_set_pc_32bit. | |
4046 | * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove. | |
4047 | (the_low_target): Use linux_get_pc_32bit and | |
4048 | linux_set_pc_32bit. | |
4049 | * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove. | |
4050 | (the_low_target): Use linux_get_pc_32bit and | |
4051 | linux_set_pc_32bit. | |
4052 | * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove. | |
4053 | (the_low_target): Use linux_get_pc_32bit and | |
4054 | linux_set_pc_32bit. | |
4055 | * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove. | |
4056 | (the_low_target): Use linux_get_pc_32bit and | |
4057 | linux_set_pc_32bit. | |
4058 | ||
eb0edac8 GB |
4059 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
4060 | ||
4061 | * configure.ac (AC_FUNC_FORK): New check. | |
4062 | * config.in: Regenerate. | |
4063 | * configure: Likewise. | |
4064 | ||
1b451dda YQ |
4065 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
4066 | ||
4067 | * linux-aarch32-low.c (thumb2_breakpoint): Make it static. | |
4068 | * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration. | |
4069 | * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to | |
4070 | arm_get_next_pcs_ctor. | |
4071 | ||
82075af2 JS |
4072 | 2016-01-12 Josh Stone <jistone@redhat.com> |
4073 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
4074 | ||
4075 | * inferiors.h: Include "gdb_vecs.h". | |
4076 | (struct process_info): Add syscalls_to_catch. | |
4077 | * inferiors.c (remove_process): Free syscalls_to_catch. | |
4078 | * remote-utils.c (prepare_resume_reply): Report syscall_entry and | |
4079 | syscall_return stops. | |
4080 | * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define. | |
4081 | * server.c (handle_general_set): Handle QCatchSyscalls. | |
4082 | (handle_query): Report support for QCatchSyscalls. | |
4083 | * target.h (struct target_ops): Add supports_catch_syscall. | |
4084 | (target_supports_catch_syscall): New macro. | |
4085 | * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo. | |
4086 | (struct lwp_info): Add syscall_state. | |
4087 | * linux-low.c (handle_extended_wait): Mark syscall_state as an entry. | |
4088 | Maintain syscall_state and syscalls_to_catch across exec. | |
4089 | (get_syscall_trapinfo): New function, proxy to the_low_target. | |
4090 | (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD. | |
4091 | (linux_low_filter_event): Toggle syscall_state entry/return for | |
4092 | syscall traps, and set it ignored for all others. | |
4093 | (gdb_catching_syscalls_p): New function. | |
4094 | (gdb_catch_this_syscall_p): New function. | |
4095 | (linux_wait_1): Handle SYSCALL_SIGTRAP. | |
4096 | (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility. | |
4097 | (linux_supports_catch_syscall): New function. | |
4098 | (linux_target_ops): Install it. | |
4099 | * linux-x86-low.c (x86_get_syscall_trapinfo): New function. | |
4100 | (the_low_target): Install it. | |
4101 | ||
8f13a3ce MF |
4102 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
4103 | ||
4104 | * acinclude.m4: Include new ../warning.m4 file. | |
4105 | * configure: Regenerated. | |
4106 | * configure.ac: Replace all warning logic with AM_GDB_WARNINGS. | |
4107 | ||
5b3da067 MF |
4108 | 2016-01-12 Mike Frysinger <vapier@gentoo.org> |
4109 | ||
4110 | * ax.c (is_goto_target): Mark static. | |
4111 | * linux-low.c (register_addr): Likewise. | |
4112 | (linux_fetch_registers, linux_store_registers): Likewise. | |
4113 | * mem-break.c (any_persistent_commands): Fix old prototype. | |
4114 | (add_commands_to_breakpoint): Mark static. | |
4115 | * regcache.c (find_register_by_name): Delete unused func. | |
4116 | * remote-utils.c (hex_or_minus_one): Mark static. | |
4117 | * server.c (monitor_show_help): Mark static. | |
4118 | (handle_query, handle_v_cont, handle_v_attach, handle_v_kill, | |
4119 | handle_v_requests): Likewise. | |
4120 | ||
bc504a31 PA |
4121 | 2016-01-12 Pedro Alves <palves@redhat.com> |
4122 | ||
4123 | Remove use of the registered trademark symbol throughout. | |
4124 | ||
5a0dd67a YQ |
4125 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
4126 | ||
4127 | * remote-utils.c (getpkt): If c is '\003', call target hook | |
4128 | request_interrupt. | |
4129 | ||
b2ca446f YQ |
4130 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
4131 | ||
4132 | * linux-aarch32-low.h (arm_abi_breakpoint): Move to | |
4133 | linux-aarch32-low.c. | |
4134 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
4135 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. | |
4136 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
4137 | (thumb2_breakpoint): Declare. | |
4138 | * linux-aarch32-low.c (arm_abi_breakpoint): Moved from | |
4139 | linux-aarch32-low.h. | |
4140 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
4141 | (arm_breakpoint_len, thumb_breakpoint_len): Likewise. | |
4142 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
4143 | ||
edd88788 JB |
4144 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
4145 | ||
4146 | * gdbreplay.c (gdbreplay_version): Change copyright year in | |
4147 | version message. | |
4148 | * server.c (gdbserver_version): Likewise. | |
4149 | ||
65da7f14 PP |
4150 | 2015-12-28 Patrick Palka <patrick@parcs.ath.cx> |
4151 | ||
4152 | * server.c (crc32_table): Delete. | |
4153 | (crc32): Use libiberty's xcrc32 function. | |
4154 | ||
4abd5ed2 JB |
4155 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
4156 | ||
4157 | * lynx-low.c (lynx_delete_thread_callback): New function. | |
4158 | (lynx_mourn): Properly delete our process and all of its | |
4159 | threads. Remove call to clear_inferiors. | |
4160 | ||
0e50fe5c JB |
4161 | 2015-12-22 Joel Brobecker <brobecker@adacore.com> |
4162 | ||
4163 | * target.c (thread_search_callback): Add check that | |
4164 | the thread_stopped target callback is not NULL before | |
4165 | calling it. | |
4166 | ||
35adc03f YQ |
4167 | 2015-12-21 Yao Qi <yao.qi@linaro.org> |
4168 | ||
4169 | * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint | |
4170 | arm breakpoint. | |
4171 | ||
bd2b2909 AT |
4172 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4173 | ||
4174 | * server.c (handle_query): Call target_supports_software_single_step. | |
4175 | ||
7fe5e27e AT |
4176 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4177 | ||
4178 | * linux-low.c (single_step): New function. | |
4179 | (linux_resume_one_lwp_throw): Call single_step. | |
4180 | (start_step_over): Likewise. | |
4181 | ||
d9311bfa AT |
4182 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4183 | ||
4184 | * Makefile.in (SFILES): Append arch/arm-linux.c, | |
4185 | arch/arm-get-next-pcs.c. | |
4186 | (arm-linux.o): New rule. | |
4187 | (arm-get-next-pcs.o): New rule. | |
4188 | * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o, | |
4189 | arm-linux.o. | |
4190 | * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved | |
4191 | to linux-aarch32-low.c. | |
4192 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
4193 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
4194 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
4195 | (thumb2_breakpoint_len): Likewise. | |
4196 | (arm_is_thumb_mode): Make non-static. | |
4197 | * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved | |
4198 | from linux-aarch32-low.c. | |
4199 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
4200 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
4201 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
4202 | (thumb2_breakpoint_len): Likewise. | |
4203 | (arm_is_thumb_mode): New declaration. | |
4204 | * linux-arm-low.c: Include arch/arm-linux.h | |
4205 | aarch/arm-get-next-pcs.h, sys/syscall.h. | |
4206 | (get_next_pcs_ops): New struct. | |
4207 | (get_next_pcs_addr_bits_remove): New function. | |
4208 | (get_next_pcs_is_thumb): New function. | |
4209 | (get_next_pcs_read_memory_unsigned_integer): Likewise. | |
4210 | (arm_sigreturn_next_pc): Likewise. | |
4211 | (get_next_pcs_syscall_next_pc): Likewise. | |
4212 | (arm_gdbserver_get_next_pcs): Likewise. | |
4213 | (struct linux_target_ops) <arm_gdbserver_get_next_pcs>: | |
4214 | Initialize. | |
4215 | * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h. | |
4216 | * server.h: Include gdb_vecs.h. | |
4217 | ||
68ce2059 AT |
4218 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4219 | ||
4220 | * Makefile.in (SFILES): Append common/common-regcache.c. | |
4221 | (OBS): Append common-regcache.o. | |
4222 | (common-regcache.o): New rule. | |
4223 | * regcache.c (init_register_cache): Initialize cache to | |
4224 | REG_UNAVAILABLE. | |
4225 | (regcache_raw_read_unsigned): New function. | |
4226 | * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared | |
4227 | register_status enum. | |
4228 | ||
fa5308bd AT |
4229 | 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4230 | ||
4231 | * linux-aarch64-low.c (the_low_targets): Rename | |
4232 | breakpoint_reinsert_addr to get_next_pcs. | |
4233 | * linux-arm-low.c (the_low_targets): Likewise. | |
4234 | * linux-bfin-low.c (the_low_targets): Likewise. | |
4235 | * linux-cris-low.c (the_low_targets): Likewise. | |
4236 | * linux-crisv32-low.c (the_low_targets): Likewise. | |
4237 | * linux-low.c (can_software_single_step): Likewise. | |
4238 | (install_software_single_step_breakpoints): New function. | |
4239 | (start_step_over): Use install_software_single_step_breakpoints. | |
4240 | * linux-low.h: New CORE_ADDR vector. | |
4241 | (struct linux_target_ops) Rename breakpoint_reinsert_addr to | |
4242 | get_next_pcs. | |
4243 | * linux-mips-low.c (the_low_targets): Likewise. | |
4244 | * linux-nios2-low.c (the_low_targets): Likewise. | |
4245 | * linux-sparc-low.c (the_low_targets): Likewise. | |
4246 | ||
4a6ed09b PA |
4247 | 2015-12-17 Pedro Alves <palves@redhat.com> |
4248 | ||
4249 | * linux-low.c (linux_kill_one_lwp): Remove references to | |
4250 | LinuxThreads. | |
4251 | (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back | |
4252 | to 'kill'. | |
4253 | (linux_init_signals): Delete. | |
4254 | (initialize_low): Adjust. | |
4255 | * thread-db.c (thread_db_init): Remove LinuxThreads reference. | |
4256 | ||
7544db95 PA |
4257 | 2015-12-16 Pedro Alves <palves@redhat.com> |
4258 | ||
4259 | * configure.ac (compiler warning flags): When testing a | |
4260 | -Wno-foo option, check whether -Wfoo works instead. | |
4261 | * configure: Regenerate. | |
4262 | ||
8020350c DB |
4263 | 2015-12-11 Don Breazeal <donb@codesourcery.com> |
4264 | ||
4265 | * server.c (process_serial_event): Don't exit from gdbserver | |
4266 | in remote mode if there are still active inferiors. | |
4267 | ||
db91f502 YQ |
4268 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
4269 | ||
4270 | * linux-aarch64-low.c (aarch64_breakpoint_at): Call | |
4271 | arm_breakpoint_at if the process is 32-bit. | |
4272 | ||
b37a6290 YQ |
4273 | 2015-12-11 Yao Qi <yao.qi@linaro.org> |
4274 | ||
4275 | * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint | |
4276 | arm breakpoint. | |
4277 | ||
17b1509a YQ |
4278 | 2015-12-07 Yao Qi <yao.qi@linaro.org> |
4279 | ||
4280 | * configure.srv: Append arm.o to srv_tgtobj for | |
4281 | aarch64*-*-linux* target. | |
4282 | * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved | |
4283 | from linux-arm-low.c. | |
4284 | (arm_eabi_breakpoint, arm_breakpoint): Likewise. | |
4285 | (arm_breakpoint_len, thumb_breakpoint): Likewise. | |
4286 | (thumb_breakpoint_len, thumb2_breakpoint): Likewise. | |
4287 | (thumb2_breakpoint_len): Likewise. | |
4288 | (arm_is_thumb_mode, arm_breakpoint_at): Likewise. | |
4289 | (arm_breakpoint_kinds): Likewise. | |
4290 | (arm_breakpoint_kind_from_pc): Likewise. | |
4291 | (arm_sw_breakpoint_from_kind): Likewise. | |
4292 | (arm_breakpoint_kind_from_current_state): Likewise. | |
4293 | * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare. | |
4294 | (arm_sw_breakpoint_from_kind): Declare. | |
4295 | (arm_breakpoint_kind_from_current_state): Declare. | |
4296 | (arm_breakpoint_at): Declare. | |
4297 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call | |
4298 | arm_sw_breakpoint_from_kind if process is 32-bit. | |
4299 | (aarch64_breakpoint_kind_from_pc): New function. | |
4300 | (aarch64_breakpoint_kind_from_current_state): New function. | |
4301 | (the_low_target): Initialize fields breakpoint_kind_from_pc | |
4302 | and breakpoint_kind_from_current_state. | |
4303 | * linux-arm-low.c (arm_breakpoint_kinds): Move to | |
4304 | linux-aarch32-low.c. | |
4305 | (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise. | |
4306 | (arm_breakpoint, arm_breakpoint_len): Likewise. | |
4307 | (thumb_breakpoint, thumb_breakpoint_len): Likewise. | |
4308 | (thumb2_breakpoint, thumb2_breakpoint_len): Likewise. | |
4309 | (arm_is_thumb_mode): Likewise. | |
4310 | (arm_breakpoint_at): Likewise. | |
4311 | (arm_breakpoint_kind_from_pc): Likewise. | |
4312 | (arm_sw_breakpoint_from_kind): Likewise. | |
4313 | (arm_breakpoint_kind_from_current_state): Likewise. | |
4314 | ||
4315 | Revert: | |
4316 | 2015-08-04 Yao Qi <yao.qi@linaro.org> | |
4317 | ||
4318 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return | |
4319 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. | |
4320 | * server.c (extended_protocol): Remove "static". | |
4321 | * server.h (extended_protocol): Declare it. | |
4322 | ||
ece66d65 JS |
4323 | 2015-12-04 Josh Stone <jistone@redhat.com> |
4324 | ||
4325 | * target.h (struct target_ops) <arch_setup>: Rename to ... | |
4326 | (struct target_ops) <post_create_inferior>: ... this. | |
4327 | (target_arch_setup): Rename to ... | |
4328 | (target_post_create_inferior): ... this, calling post_create_inferior. | |
4329 | * server.c (start_inferior): Update target_arch_setup calls to | |
4330 | target_post_create_inferior. | |
4331 | * linux-low.c (linux_low_ptrace_options): Forward declare. | |
4332 | (linux_arch_setup): Update its comment for general use. | |
4333 | (linux_post_create_inferior): New, run arch_setup and setup ptrace. | |
4334 | (struct linux_target_ops): Use linux_post_create_inferior. | |
4335 | * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment | |
4336 | to post_create_inferior. | |
4337 | * nto-low.c (struct nto_target_ops): Likewise. | |
4338 | * spu-low.c (struct spu_target_ops): Likewise. | |
4339 | * win32-low.c (struct win32_target_ops): Likewise. | |
4340 | ||
e58c48b4 AT |
4341 | 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4342 | ||
4343 | * linux-arm-low.c: Remove duplicate arch/arm.h include. | |
4344 | ||
fbec8956 AT |
4345 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4346 | ||
4347 | * linux-arm-low.c (arm_reinsert_addr): Remove function. | |
4348 | (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL. | |
4349 | * linux-cris-low.c (cris_reinsert_addr> Remove function. | |
4350 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
4351 | * linux-crisv32-low.c (cris_reinsert_addr): Remove function. | |
4352 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
4353 | * linux-mips-low.c (mips_reinsert_addr): Remove function. | |
4354 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
4355 | * linux-nios2-low.c (nios2_reinsert_addr): Remove function. | |
4356 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
4357 | * linux-sparc-low.c (sparc_reinsert_addr): Remove function. | |
4358 | (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL. | |
4359 | ||
9b4c5f87 AT |
4360 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4361 | ||
4362 | * linux-low.c (linux_look_up_symbols): Don't call | |
4363 | linux_supports_traceclone. | |
4364 | * linux-low.h (thread_db_init): Remove use_events argument. | |
4365 | * thread-db.c (thread_db_use_event): Remove global variable. | |
4366 | (struct thread_db) <td_thr_event_enable_p>: Remove field. | |
4367 | (struct thread_db) <td_create_bp>: Remove field. | |
4368 | (thread_db_create_event): Remove function. | |
4369 | (thread_db_enable_reporting): Likewise. | |
4370 | (find_one_thread): Don't check for thread_db_use_events. | |
4371 | (attach_thread): Likewise. | |
4372 | (thread_db_load_search): Remove td_thr_event_enable_p initialization. | |
4373 | (try_thread_db_load_1): Don't check for thread_db_use_events. | |
4374 | (thread_db_init): Remove use_events argument and thread events | |
4375 | handling. | |
4376 | (remove_thread_event_breakpoints): Remove function. | |
4377 | (thread_db_detach): Remove call to remove_thred_event_breakpoints. | |
4378 | ||
7d00775e AT |
4379 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4380 | ||
4381 | * linux-aarch64-low.c (aarch64_supports_hardware_single_step): | |
4382 | New function. | |
4383 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4384 | * linux-arm-low.c (arm_supports_hardware_single_step): New function. | |
4385 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4386 | * linux-bfin-low.c (bfin_supports_hardware_single_step): New function. | |
4387 | (struct linux_target_ops) <bfin_supports_hardware_single_step>: | |
4388 | Initialize. | |
4389 | * linux-crisv32-low.c (cris_supports_hardware_single_step): | |
4390 | New function. | |
4391 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4392 | * linux-low.c (can_hardware_single_step): Use | |
4393 | supports_hardware_single_step. | |
4394 | (can_software_single_step): New function. | |
4395 | (start_step_over): Call can_software_single_step. | |
4396 | (linux_supports_hardware_single_step): New function. | |
4397 | (struct target_ops) <supports_software_single_step>: Initialize. | |
4398 | * linux-low.h (struct linux_target_ops) | |
4399 | <supports_hardware_single_step>: Initialize. | |
4400 | * linux-m32r-low.c (m32r_supports_hardware_single_step): New function. | |
4401 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4402 | * linux-ppc-low.c (ppc_supports_hardware_single_step): New function. | |
4403 | (struct linux_target_ops) <supports_hardware_single_step> Initialize. | |
4404 | * linux-s390-low.c (s390_supports_hardware_single_step): New function. | |
4405 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4406 | * linux-sh-low.c (sh_supports_hardware_single_step): New function. | |
4407 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4408 | * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function. | |
4409 | (struct linux_target_ops) <tic6x_supports_hardware_single_step>: | |
4410 | Initialize. | |
4411 | * linux-tile-low.c (tile_supports_hardware_single_step): New function. | |
4412 | (struct linux_target_ops) <tile_supports_hardware_single_step>: | |
4413 | Initialize. | |
4414 | * linux-x86-low.c (x86_supports_hardware_single_step) New function. | |
4415 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4416 | * linux-xtensa-low.c (xtensa_supports_hardware_single_step): | |
4417 | New function. | |
4418 | (struct linux_target_ops) <supports_hardware_single_step>: Initialize. | |
4419 | * target.h (struct target_ops): <supports_software_single_step>: | |
4420 | New field. | |
4421 | (target_supports_software_single_step): New macro. | |
4422 | ||
2d97cd35 AT |
4423 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4424 | ||
4425 | * linux-low.c (linux_wait_1): Fix pc advance condition. | |
4426 | * mem-break.c (reinsert_breakpoint_inserted_here): New function. | |
4427 | * mem-break.h (reinsert_breakpoint_inserted_here): New declaration. | |
4428 | ||
769ef81f AT |
4429 | 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4430 | ||
4431 | * linux-arm-low.c (arm_is_thumb_mode): New function. | |
4432 | (arm_breakpoint_at): Use arm_is_thumb_mode. | |
4433 | (arm_breakpoint_kind_from_current_state): New function. | |
4434 | (struct linux_target_ops) <breakpoint_kind_from_current_state>: | |
4435 | Initialize. | |
4436 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state. | |
4437 | (linux_breakpoint_kind_from_current_state): New function. | |
4438 | (struct target_ops <breakpoint_kind_from_current_state>: Initialize. | |
4439 | * linux-low.h (struct linux_target_ops) | |
4440 | <breakpoint_kind_from_current_state>: New field. | |
4441 | * target.h (struct target_ops): Likewise. | |
4442 | (target_breakpoint_kind_from_current_state): New macro. | |
4443 | ||
1bebeeca PA |
4444 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4445 | ||
4446 | * linux-low.c (linux_resume): Wake up the event loop before | |
4447 | returning. | |
4448 | ||
a67a9fae PA |
4449 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4450 | ||
4451 | * mem-break.c (check_gdb_bp_preconditions): Remove current_thread | |
4452 | check. | |
4453 | (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR | |
4454 | to -1. | |
4455 | * target.c (struct thread_search): New structure. | |
4456 | (thread_search_callback): New function. | |
4457 | (prev_general_thread): New global. | |
4458 | (prepare_to_access_memory, done_accessing_memory): New functions. | |
4459 | * target.h (prepare_to_access_memory, done_accessing_memory): | |
4460 | Replace macros with function declarations. | |
4461 | ||
f2faf941 PA |
4462 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4463 | ||
4464 | PR 14618 | |
4465 | * linux-low.c (linux_wait_1): If the last resumed thread is gone, | |
4466 | report TARGET_WAITKIND_NO_RESUMED. | |
4467 | * remote-utils.c (prepare_resume_reply): Handle | |
4468 | TARGET_WAITKIND_NO_RESUMED. | |
4469 | * server.c (report_no_resumed): New global. | |
4470 | (handle_query) <qSupported>: Handle "no-resumed+". Report | |
4471 | "no-resumed+" support. | |
4472 | (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only | |
4473 | return error if the client doesn't support no-resumed events. | |
4474 | (push_stop_notification): New function. | |
4475 | (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED | |
4476 | events if the client supports them. | |
4477 | ||
a681f9c9 PA |
4478 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4479 | ||
4480 | * linux-low.c (thread_still_has_status_pending_p): Don't check | |
4481 | vCont;t here. | |
4482 | (lwp_resumed): New function. | |
4483 | (status_pending_p_callback): Return early if the LWP is not | |
4484 | supposed to be resumed. | |
4485 | ||
65706a29 PA |
4486 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4487 | ||
4488 | * linux-low.c (handle_extended_wait): Assert that the LWP's | |
4489 | waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about | |
4490 | thread create events, leave the new child's status pending. | |
4491 | (linux_low_filter_event): If GDB wants to hear about thread exit | |
4492 | events, leave the LWP marked dead and don't delete it. | |
4493 | (linux_wait_for_event_filtered): Don't check for thread exit. | |
4494 | (filter_exit_event): New function. | |
4495 | (linux_wait_1): Use it, when returning an exit event. | |
4496 | (linux_resume_one_lwp_throw): Assert that the LWP's | |
4497 | waitstatus is TARGET_WAITKIND_IGNORE. | |
4498 | * remote-utils.c (prepare_resume_reply): Handle | |
4499 | TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED. | |
4500 | * server.c (report_thread_events): New global. | |
4501 | (handle_general_set): Handle QThreadEvents. | |
4502 | (handle_query) <qSupported>: Handle and report QThreadEvents+; | |
4503 | (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and | |
4504 | TARGET_WAITKIND_THREAD_EXITED. | |
4505 | * server.h (report_thread_events): Declare. | |
4506 | ||
56cf4bed PA |
4507 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4508 | ||
4509 | * linux-low.c (resume_stopped_resumed_lwps): Don't check whether | |
4510 | the thread's last_resume_kind was resume_stop. | |
4511 | ||
500c1d85 PA |
4512 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4513 | ||
4514 | * linux-low.c (linux_attach): In non-stop mode, wait for one stop | |
4515 | before returning. | |
4516 | ||
de979965 PA |
4517 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4518 | ||
4519 | * server.c (handle_v_requests): Handle vCtrlC. | |
4520 | ||
34c65914 PA |
4521 | 2015-11-30 Pedro Alves <palves@redhat.com> |
4522 | ||
4523 | * gdbthread.h (find_any_thread_of_pid): Declare. | |
4524 | * inferiors.c (thread_of_pid, find_any_thread_of_pid): New | |
4525 | functions. | |
4526 | * server.c (handle_query): If current_thread is NULL, look for | |
4527 | another thread of the selected process. | |
4528 | ||
79efa585 | 4529 | 2015-11-26 Daniel Colascione <dancol@dancol.org> |
01a49af8 | 4530 | Simon Marchi <simon.marchi@ericsson.com> |
79efa585 SM |
4531 | |
4532 | * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name. | |
4533 | * server.c (handle_qxfer_threads_worker): Refactor to include thread | |
4534 | name in reply. | |
4535 | * target.h (struct target_ops) <thread_name>: New field. | |
4536 | (target_thread_name): New macro. | |
4537 | ||
80d82c19 JB |
4538 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
4539 | ||
4540 | * regcache.h (regcache_invalidate_pid): Add declaration. | |
4541 | * regcache.c (regcache_invalidate_pid): New function, extracted | |
4542 | from regcache_invalidate. | |
4543 | (regcache_invalidate): Reimplement using regcache_invalidate_pid. | |
4544 | Add trivial documentation comment. | |
4545 | * lynx-low.c: Use regcache_invalidate_pid instead of | |
4546 | regcache_invalidate. | |
4547 | ||
64da5dd5 JB |
4548 | 2015-11-23 Joel Brobecker <brobecker@adacore.com> |
4549 | ||
4550 | * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t | |
4551 | and Elf64_auxv_t if the target is Android. | |
4552 | ||
37ce4055 DE |
4553 | 2015-11-22 Doug Evans <xdje42@gmail.com> |
4554 | ||
4555 | * target.h: #include <sys/types.h>. | |
4556 | ||
06e03fff PA |
4557 | 2015-11-19 Pedro Alves <palves@redhat.com> |
4558 | ||
4559 | * linux-low.c (linux_process_qsupported): Change prototype. | |
4560 | Adjust. | |
4561 | * linux-low.h (struct linux_target_ops) <process_qsupported>: | |
4562 | Change prototype. | |
4563 | * linux-x86-low.c (x86_linux_process_qsupported): Change prototype | |
4564 | and adjust to loop over all features. | |
4565 | * server.c (handle_query) <qSupported>: Adjust to call | |
4566 | target_process_qsupported once, passing it a vector of unprocessed | |
4567 | features. | |
4568 | * target.h (struct target_ops) <process_qsupported>: Change | |
4569 | prototype. | |
4570 | (target_process_qsupported): Adjust. | |
4571 | ||
9a084706 PA |
4572 | 2015-11-19 Pedro Alves <palves@redhat.com> |
4573 | ||
4574 | * configure.ac (ERROR_ON_WARNING): Don't check whether in C++ | |
4575 | mode. | |
4576 | * configure: Regenerate. | |
4577 | ||
dad44a1f PA |
4578 | 2015-11-19 Pedro Alves <palves@redhat.com> |
4579 | ||
4580 | * configure: Regenerate. | |
4581 | ||
231c0592 YQ |
4582 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
4583 | ||
4584 | * linux-aarch64-low.c (emit_data_processing_reg): Change opcode | |
4585 | type to uint32_t. | |
4586 | ||
6c1c9a8b YQ |
4587 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
4588 | ||
4589 | * linux-aarch64-low.c (enum aarch64_operand_type): New. | |
4590 | (struct aarch64_operand): Move enum out. | |
4591 | ||
9caa3311 YQ |
4592 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
4593 | ||
4594 | * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to | |
4595 | struct user_fpsimd_state *. | |
4596 | (aarch64_store_fpregset): Likewise. | |
4597 | ||
6a69a054 YQ |
4598 | 2015-11-19 Yao Qi <yao.qi@linaro.org> |
4599 | ||
4600 | * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to | |
4601 | struct user_pt_regs *. | |
4602 | (aarch64_store_gregset): Likewise. | |
4603 | ||
1798301e PA |
4604 | 2015-11-18 Pedro Alves <palves@redhat.com> |
4605 | ||
4606 | * Makefile.in (all_object_files): Add $IPA_OBJS. | |
4607 | ||
ce7715e2 PA |
4608 | 2015-11-17 Pedro Alves <palves@redhat.com> |
4609 | ||
4610 | * win32-low.c (win32_resume): Use gdb_signal_from_host, | |
4611 | GDB_SIGNAL_0 and gdb_signal_to_string. | |
4612 | ||
c0879059 PA |
4613 | 2015-11-17 Pedro Alves <palves@redhat.com> |
4614 | ||
4615 | * win32-low.c (handle_output_debug_string): Remove parameter. | |
4616 | (win32_kill): Remove our_status local and adjust call to | |
4617 | handle_output_debug_string. | |
4618 | (get_child_debug_event): Adjust call to | |
4619 | handle_output_debug_string. | |
4620 | ||
1996e237 SM |
4621 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4622 | ||
4623 | * linux-mips-low.c (mips_fill_gregset): Add cast. | |
4624 | (mips_store_gregset): Likewise. | |
4625 | (mips_fill_fpregset): Likewise. | |
4626 | (mips_store_fpregset): Likewise. | |
4627 | ||
cbec665b SM |
4628 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4629 | ||
4630 | * linux-mips-low.c (mips_add_watchpoint): Rename private to | |
4631 | priv. | |
4632 | ||
eb3e3c67 SM |
4633 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4634 | ||
4635 | * linux-mips-low.c (mips_linux_new_thread): Change type of | |
4636 | watch_type to enum target_hw_bp_type. | |
4637 | ||
171de4b8 SM |
4638 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4639 | ||
4640 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): | |
4641 | Change return type to arm_hwbp_type. | |
4642 | ||
04248ead SM |
4643 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4644 | ||
4645 | * linux-aarch32-low.c (arm_fill_gregset): Add cast. | |
4646 | (arm_store_gregset): Likewise. | |
4647 | * linux-arm-low.c (arm_get_hwcap): Likewise. | |
4648 | (arm_read_description): Likewise. | |
4649 | ||
04b3479c SM |
4650 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4651 | ||
4652 | * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET. | |
4653 | ||
2bc84e8a SM |
4654 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4655 | ||
4656 | * linux-ppc-low.c (ppc_get_hwcap): Add cast. | |
4657 | (ppc_fill_vsxregset): Likewise. | |
4658 | (ppc_store_vsxregset): Likewise. | |
4659 | (ppc_fill_vrregset): Likewise. | |
4660 | (ppc_store_vrregset): Likewise. | |
4661 | (ppc_fill_evrregset): Likewise. | |
4662 | (ppc_store_evrregset): Likewise. | |
4663 | ||
e6c5bb05 SM |
4664 | 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> |
4665 | ||
4666 | * linux-ppc-low.c (ppc_usrregs_info): Remove | |
4667 | forward-declaration. | |
4668 | (ppc_arch_setup): Move lower in file. | |
4669 | ||
7ea45d72 SM |
4670 | 2015-10-30 Simon Marchi <simon.marchi@ericsson.com> |
4671 | ||
4672 | * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t. | |
4673 | (ps_pdwrite): Likewise. | |
4674 | ||
69291610 HW |
4675 | 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com> |
4676 | ||
4677 | * linux-arm-low.c (arm_new_thread): Move pointer dereference | |
4678 | to after assert checks. | |
4679 | ||
b42945fd SM |
4680 | 2015-10-29 Simon Marchi <simon.marchi@ericsson.com> |
4681 | ||
4682 | * proc-service.c (ps_pdread): Add/adjust casts. | |
4683 | (ps_pdwrite): Add/adjust casts. | |
4684 | ||
d6f85c84 SM |
4685 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
4686 | ||
4687 | * server.c (handle_search_memory_1): Cast return value of | |
4688 | memmem. | |
4689 | ||
f98cd059 SM |
4690 | 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca> |
4691 | ||
4692 | * server.c (write_qxfer_response): Change type of data to | |
4693 | gdb_byte *. | |
4694 | ||
d2412fa5 PA |
4695 | 2015-10-29 Pedro Alves <palves@redhat.com> |
4696 | ||
4697 | * mem-break.c (Z_packet_to_bkpt_type): Add cast. | |
4698 | ||
c17414a2 PA |
4699 | 2015-10-29 Pedro Alves <palves@redhat.com> |
4700 | ||
4701 | * tracepoint.c (clear_installed_tracepoints): Add casts. | |
4702 | ||
e053fbc4 PA |
4703 | 2015-10-29 Pedro Alves <palves@redhat.com> |
4704 | ||
4705 | * server.c (handle_v_cont, process_serial_event): Add enum | |
4706 | gdb_signal casts to signal parsing code. | |
4707 | ||
add67df8 PA |
4708 | 2015-10-29 Pedro Alves <palves@redhat.com> |
4709 | ||
4710 | * linux-low.h (NULL_REGSET): Define. | |
4711 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. | |
4712 | * linux-arm-low.c (arm_regsets): Likewise. | |
4713 | * linux-crisv32-low.c (cris_regsets): Likewise. | |
4714 | * linux-m68k-low.c (m68k_regsets): Likewise. | |
4715 | * linux-mips-low.c (mips_regsets): Likewise. | |
4716 | * linux-nios2-low.c (nios2_regsets): Likewise. | |
4717 | * linux-ppc-low.c (ppc_regsets): Likewise. | |
4718 | * linux-s390-low.c (s390_regsets): Likewise. | |
4719 | * linux-sh-low.c (sh_regsets): Likewise. | |
4720 | * linux-sparc-low.c (sparc_regsets): Likewise. | |
4721 | * linux-tic6x-low.c (tic6x_regsets): Likewise. | |
4722 | * linux-tile-low.c (tile_regsets): Likewise. | |
4723 | * linux-x86-low.c (x86_regsets): Likewise. | |
4724 | * linux-xtensa-low.c (xtensa_regsets): Likewise. | |
4725 | ||
50bc912a PA |
4726 | 2015-10-29 Pedro Alves <palves@redhat.com> |
4727 | ||
4728 | * linux-low.h (NULL_REGSET): Define. | |
4729 | * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET. | |
4730 | * linux-arm-low.c (arm_regsets): Likewise. | |
4731 | * linux-crisv32-low.c (cris_regsets): Likewise. | |
4732 | * linux-m68k-low.c (m68k_regsets): Likewise. | |
4733 | * linux-mips-low.c (mips_regsets): Likewise. | |
4734 | * linux-nios2-low.c (nios2_regsets): Likewise. | |
4735 | * linux-ppc-low.c (ppc_regsets): Likewise. | |
4736 | * linux-s390-low.c (s390_regsets): Likewise. | |
4737 | * linux-sh-low.c (sh_regsets): Likewise. | |
4738 | * linux-sparc-low.c (sparc_regsets): Likewise. | |
4739 | * linux-tic6x-low.c (tic6x_regsets): Likewise. | |
4740 | * linux-tile-low.c (tile_regsets): Likewise. | |
4741 | * linux-x86-low.c (x86_regsets): Likewise. | |
4742 | * linux-xtensa-low.c (xtensa_regsets): Likewise. | |
4743 | ||
682b2546 DE |
4744 | 2015-10-26 Doug Evans <dje@google.com> |
4745 | ||
4746 | * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h. | |
4747 | ||
963843d4 DE |
4748 | 2015-10-26 Doug Evans <dje@google.com> |
4749 | ||
4750 | * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h. | |
4751 | ||
d41401ac DE |
4752 | 2015-10-26 Doug Evans <dje@google.com> |
4753 | ||
4754 | * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long | |
4755 | for debug_printf. | |
4756 | (attach_thread, find_new_threads_callback): Ditto. | |
4757 | ||
3db28855 AT |
4758 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4759 | ||
4760 | * mem-break.h (set_breakpoint_data): Remove. | |
4761 | ||
fb78e89c AT |
4762 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4763 | ||
4764 | * nto-low.c (nto_sw_breakpoint_from_kind): New function. | |
4765 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. | |
4766 | (initialize_low): Remove set_breakpoint_data call. | |
4767 | * spu-low.c (spu_sw_breakpoint_from_kind): New function. | |
4768 | (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize. | |
4769 | (initialize_low): Remove set_breakpoint_data call. | |
4770 | * win32-low.c (win32_sw_breakpoint_from_kind): New function. | |
4771 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize. | |
4772 | (initialize_low): Remove set_breakpoint_data call. | |
4773 | ||
2e6ee069 AT |
4774 | 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4775 | ||
4776 | * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c. | |
4777 | * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc. | |
4778 | * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c | |
4779 | * target.h (target_breakpoint_kind_from_pc): New macro. | |
4780 | ||
1652a986 AT |
4781 | 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4782 | ||
4783 | * linux-low.c (default_breakpoint_kind_from_pc): New function. | |
4784 | (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for | |
4785 | the default breakpoint kind. | |
4786 | ||
abeead09 AT |
4787 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4788 | ||
4789 | * linux-arm-low.c (arm_supports_z_point_type): Add software | |
4790 | breakpoint support. | |
4791 | ||
b0b4b501 AT |
4792 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4793 | ||
4794 | * linux-arm-low.c: Refactor breakpoint definitions. | |
4795 | (arm_breakpoint_at): Adjust for arm_abi_breakpoint. | |
4796 | (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint. | |
4797 | ||
8689682c AT |
4798 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4799 | ||
4800 | * Makefile.in: Add arm.c/o. | |
4801 | * configure.srv: Likewise. | |
4802 | * linux-arm-low.c (arm_breakpoint_kinds): New enum. | |
4803 | (arm_breakpoint_kind_from_pc): New function. | |
4804 | (arm_sw_breakpoint_from_kind): Return proper kind. | |
4805 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize. | |
4806 | ||
27165294 AT |
4807 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4808 | ||
4809 | * linux-low.c (initialize_low): Ajdust for breakpoint global variables | |
4810 | removal. | |
4811 | * mem-break.c : Remove breakpoint_data/breakpoint_len global variables. | |
4812 | (struct raw_breakpoint) <size>: Remove. | |
4813 | (struct raw_breakpoint) <kind>: Add. | |
4814 | (bp_size): New function. | |
4815 | (bp_opcode): Likewise. | |
4816 | (find_raw_breakpoint_at): Adjust for kind. | |
4817 | (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode. | |
4818 | (remove_memory_breakpoint): Adjust for kind call bp_size. | |
4819 | (set_raw_breakpoint_at): Adjust for kind. | |
4820 | (set_breakpoint): Likewise. | |
4821 | (set_breakpoint_at): Call breakpoint_kind_from_pc. | |
4822 | (delete_raw_breakpoint): Adjust for kind. | |
4823 | (delete_breakpoint): Likewise. | |
4824 | (find_gdb_breakpoint): Likewise. | |
4825 | (set_gdb_breakpoint_1): Likewise. | |
4826 | (set_gdb_breakpoint): Likewise. | |
4827 | (delete_gdb_breakpoint_1): Likewise. | |
4828 | (delete_gdb_breakpoint): Likewise. | |
4829 | (uninsert_raw_breakpoint): Likewise. | |
4830 | (reinsert_raw_breakpoint): Likewise. | |
4831 | (set_breakpoint_data): Remove. | |
4832 | (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode. | |
4833 | (check_mem_read): Adjust for kind call bp_size. | |
4834 | (check_mem_write): Adjust for kind call bp_size,bp_opcode. | |
4835 | (clone_one_breakpoint): Adjust for kind. | |
4836 | * mem-break.h (set_gdb_breakpoint): Likewise. | |
4837 | (delete_gdb_breakpoint): Likewise. | |
4838 | * server.c (process_serial_event): Likewise. | |
4839 | ||
dd373349 AT |
4840 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4841 | ||
4842 | * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function. | |
4843 | (struct linux_target_ops) <breakpoint>: Remove. | |
4844 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4845 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4846 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4847 | * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function. | |
4848 | (arm_sw_breakpoint_from_kind): New function. | |
4849 | * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function. | |
4850 | (struct linux_target_ops) <breakpoint>: Remove. | |
4851 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4852 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4853 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4854 | * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function. | |
4855 | (struct linux_target_ops) <breakpoint>: Remove. | |
4856 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4857 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4858 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4859 | * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function. | |
4860 | (struct linux_target_ops) <breakpoint>: Remove. | |
4861 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4862 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4863 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4864 | * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc | |
4865 | and sw_breakpoint_from_kind to increment the pc. | |
4866 | (linux_breakpoint_kind_from_pc): New function. | |
4867 | (linux_sw_breakpoint_from_kind): New function. | |
4868 | (struct target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4869 | (initialize_low): Call breakpoint_kind_from_pc and | |
4870 | sw_breakpoint_from_kind to replace breakpoint_data/len. | |
4871 | * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>: | |
4872 | New field. | |
4873 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise. | |
4874 | * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function. | |
4875 | (struct linux_target_ops) <breakpoint>: Remove. | |
4876 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4877 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4878 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4879 | * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function. | |
4880 | (struct linux_target_ops) <breakpoint>: Remove. | |
4881 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4882 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4883 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4884 | * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function. | |
4885 | (struct linux_target_ops) <breakpoint>: Remove. | |
4886 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4887 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4888 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4889 | * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function. | |
4890 | (struct linux_target_ops) <breakpoint>: Remove. | |
4891 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4892 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4893 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4894 | * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function. | |
4895 | (struct linux_target_ops) <breakpoint>: Remove. | |
4896 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4897 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4898 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4899 | * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function. | |
4900 | (struct linux_target_ops) <breakpoint>: Remove. | |
4901 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4902 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4903 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4904 | * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function. | |
4905 | (struct linux_target_ops) <breakpoint>: Remove. | |
4906 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4907 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4908 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4909 | * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function. | |
4910 | (struct linux_target_ops) <breakpoint>: Remove. | |
4911 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4912 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4913 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4914 | * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function. | |
4915 | (struct linux_target_ops) <breakpoint>: Remove. | |
4916 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4917 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4918 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4919 | * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function. | |
4920 | * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function. | |
4921 | (struct linux_target_ops) <breakpoint>: Remove. | |
4922 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4923 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4924 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4925 | * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function. | |
4926 | (struct linux_target_ops) <breakpoint>: Remove. | |
4927 | (struct linux_target_ops) <breakpoint_len>: Remove. | |
4928 | (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field. | |
4929 | (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field. | |
4930 | ||
4cd98a19 AT |
4931 | 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com> |
4932 | ||
4933 | * linux-cris-low.c (cris_get_pc): Remove void arg. | |
4934 | ||
774ee6d2 AR |
4935 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
4936 | ||
4937 | * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix | |
4938 | variable name. | |
4939 | ||
833dcd29 AR |
4940 | 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com> |
4941 | ||
4942 | * inferiors.c (thread_pid_matches_callback): New function. | |
4943 | (find_thread_process): New function. | |
4944 | (remove_thread): Reset current_thread. | |
4945 | (remove_process): Assert threads have been removed first. | |
4946 | ||
8d689ee5 YQ |
4947 | 2015-10-15 Yao Qi <yao.qi@linaro.org> |
4948 | ||
4949 | * linux-aarch64-low.c (aarch64_insert_point): Set len to 2 | |
4950 | if it is 3. | |
4951 | (aarch64_remove_point): Likewise. | |
4952 | * regcache.c (regcache_register_size): New function. | |
4953 | ||
1c2e1515 YQ |
4954 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
4955 | ||
4956 | * linux-aarch64-low.c: Update all callers as emit_load_store | |
4957 | is renamed to aarch64_emit_load_store. | |
4958 | ||
e1c587c3 YQ |
4959 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
4960 | ||
4961 | * linux-aarch64-low.c: Update all callers of function renaming | |
4962 | from emit_insn to aarch64_emit_insn. | |
4963 | ||
b6542f81 YQ |
4964 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
4965 | ||
4966 | * linux-aarch64-low.c (enum aarch64_opcodes): Move to | |
4967 | arch/aarch64-insn.h. | |
4968 | (struct aarch64_memory_operand): Likewise. | |
4969 | (ENCODE): Likewise. | |
4970 | (emit_insn): Move to arch/aarch64-insn.c. | |
4971 | (emit_b, emit_bcond, emit_cb, emit_tb): Remove. | |
4972 | (emit_load_store): Move to arch/aarch64-insn.c. | |
4973 | (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove. | |
4974 | (can_encode_int32): Remove. | |
4975 | ||
246994ce YQ |
4976 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
4977 | ||
4978 | * linux-aarch64-low.c (extract_signed_bitfield): Remove. | |
4979 | (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c. | |
4980 | (aarch64_relocate_instruction): Likewise. | |
4981 | (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h. | |
4982 | (struct aarch64_insn_visitor): Likewise. | |
4983 | ||
0badd99f YQ |
4984 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
4985 | ||
4986 | * linux-aarch64-low.c (struct aarch64_insn_data): New. | |
4987 | (struct aarch64_insn_visitor): New. | |
4988 | (struct aarch64_insn_relocation_data): New. | |
4989 | (aarch64_ftrace_insn_reloc_b): New function. | |
4990 | (aarch64_ftrace_insn_reloc_b_cond): Likewise. | |
4991 | (aarch64_ftrace_insn_reloc_cb): Likewise. | |
4992 | (aarch64_ftrace_insn_reloc_tb): Likewise. | |
4993 | (aarch64_ftrace_insn_reloc_adr): Likewise. | |
4994 | (aarch64_ftrace_insn_reloc_ldr_literal): Likewise. | |
4995 | (aarch64_ftrace_insn_reloc_others): Likewise. | |
4996 | (visitor): New. | |
4997 | (aarch64_relocate_instruction): Use visitor. | |
4998 | ||
dfaffe9d YQ |
4999 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
5000 | ||
5001 | * linux-aarch64-low.c (aarch64_relocate_instruction): Return | |
5002 | int. Add argument buf. | |
5003 | (aarch64_install_fast_tracepoint_jump_pad): Pass buf to | |
5004 | aarch64_relocate_instruction. | |
5005 | ||
70b439f0 YQ |
5006 | 2015-10-12 Yao Qi <yao.qi@linaro.org> |
5007 | ||
5008 | * linux-aarch64-low.c (aarch64_relocate_instruction): Add | |
5009 | argument insn. Remove local variable insn. Don't call | |
5010 | target_read_uint32. | |
5011 | (aarch64_install_fast_tracepoint_jump_pad): Call | |
5012 | target_read_uint32. | |
5013 | ||
7781c06f YQ |
5014 | 2015-09-30 Yao Qi <yao.qi@linaro.org> |
5015 | ||
5016 | * linux-aarch64-low.c (emit_movk): Shorten a long line. | |
5017 | (emit_load_store_pair): Likewise. | |
5018 | ||
9a3c8263 SM |
5019 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
5020 | ||
5021 | * dll.c (match_dll): Add cast(s). | |
5022 | (unloaded_dll): Likewise. | |
5023 | * linux-low.c (second_thread_of_pid_p): Likewise. | |
5024 | (delete_lwp_callback): Likewise. | |
5025 | (count_events_callback): Likewise. | |
5026 | (select_event_lwp_callback): Likewise. | |
5027 | (linux_set_resume_request): Likewise. | |
5028 | * server.c (accumulate_file_name_length): Likewise. | |
5029 | (emit_dll_description): Likewise. | |
5030 | (handle_qxfer_threads_worker): Likewise. | |
5031 | (visit_actioned_threads): Likewise. | |
5032 | * thread-db.c (any_thread_of): Likewise. | |
5033 | * tracepoint.c (same_process_p): Likewise. | |
5034 | (match_blocktype): Likewise. | |
5035 | (build_traceframe_info_xml): Likewise. | |
5036 | ||
224c3ddb SM |
5037 | 2015-09-25 Simon Marchi <simon.marchi@ericsson.com> |
5038 | ||
5039 | * ax.c (gdb_parse_agent_expr): Add cast to allocation result | |
5040 | assignment. | |
5041 | (gdb_unparse_agent_expr): Likewise. | |
5042 | * hostio.c (require_data): Likewise. | |
5043 | (handle_pread): Likewise. | |
5044 | * linux-low.c (disable_regset): Likewise. | |
5045 | (fetch_register): Likewise. | |
5046 | (store_register): Likewise. | |
5047 | (get_dynamic): Likewise. | |
5048 | (linux_qxfer_libraries_svr4): Likewise. | |
5049 | * mem-break.c (delete_fast_tracepoint_jump): Likewise. | |
5050 | (set_fast_tracepoint_jump): Likewise. | |
5051 | (uninsert_fast_tracepoint_jumps_at): Likewise. | |
5052 | (reinsert_fast_tracepoint_jumps_at): Likewise. | |
5053 | (validate_inserted_breakpoint): Likewise. | |
5054 | (clone_agent_expr): Likewise. | |
5055 | * regcache.c (init_register_cache): Likewise. | |
5056 | * remote-utils.c (putpkt_binary_1): Likewise. | |
5057 | (decode_M_packet): Likewise. | |
5058 | (decode_X_packet): Likewise. | |
5059 | (look_up_one_symbol): Likewise. | |
5060 | (relocate_instruction): Likewise. | |
5061 | (monitor_output): Likewise. | |
5062 | * server.c (handle_search_memory): Likewise. | |
5063 | (handle_qxfer_exec_file): Likewise. | |
5064 | (handle_qxfer_libraries): Likewise. | |
5065 | (handle_qxfer): Likewise. | |
5066 | (handle_query): Likewise. | |
5067 | (handle_v_cont): Likewise. | |
5068 | (handle_v_run): Likewise. | |
5069 | (captured_main): Likewise. | |
5070 | * target.c (write_inferior_memory): Likewise. | |
5071 | * thread-db.c (try_thread_db_load_from_dir): Likewise. | |
5072 | * tracepoint.c (init_trace_buffer): Likewise. | |
5073 | (add_tracepoint_action): Likewise. | |
5074 | (add_traceframe): Likewise. | |
5075 | (add_traceframe_block): Likewise. | |
5076 | (cmd_qtdpsrc): Likewise. | |
5077 | (cmd_qtdv): Likewise. | |
5078 | (cmd_qtstatus): Likewise. | |
5079 | (response_source): Likewise. | |
5080 | (response_tsv): Likewise. | |
5081 | (cmd_qtnotes): Likewise. | |
5082 | (gdb_collect): Likewise. | |
5083 | (initialize_tracepoint): Likewise. | |
5084 | ||
afbe19f8 PL |
5085 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
5086 | ||
5087 | * linux-aarch64-low-.c: Include ax.h and tracepoint.h. | |
5088 | (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>, | |
5089 | <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>, | |
5090 | <NOP>: New. | |
5091 | (enum aarch64_condition_codes): New enum. | |
5092 | (w0): New static global. | |
5093 | (fp): Likewise. | |
5094 | (lr): Likewise. | |
5095 | (struct aarch64_memory_operand) <type>: New | |
5096 | MEMORY_OPERAND_POSTINDEX type. | |
5097 | (postindex_memory_operand): New helper function. | |
5098 | (emit_ret): New function. | |
5099 | (emit_load_store_pair): New function, factored out of emit_stp | |
5100 | with support for MEMORY_OPERAND_POSTINDEX. | |
5101 | (emit_stp): Rewrite using emit_load_store_pair. | |
5102 | (emit_ldp): New function. | |
5103 | (emit_load_store): Likewise. | |
5104 | (emit_ldr): Mention post-index instruction in comment. | |
5105 | (emit_ldrh): New function. | |
5106 | (emit_ldrb): New function. | |
5107 | (emit_ldrsw): Mention post-index instruction in comment. | |
5108 | (emit_str): Likewise. | |
5109 | (emit_subs): New function. | |
5110 | (emit_cmp): Likewise. | |
5111 | (emit_and): Likewise. | |
5112 | (emit_orr): Likewise. | |
5113 | (emit_orn): Likewise. | |
5114 | (emit_eor): Likewise. | |
5115 | (emit_mvn): Likewise. | |
5116 | (emit_lslv): Likewise. | |
5117 | (emit_lsrv): Likewise. | |
5118 | (emit_asrv): Likewise. | |
5119 | (emit_mul): Likewise. | |
5120 | (emit_sbfm): Likewise. | |
5121 | (emit_sbfx): Likewise. | |
5122 | (emit_ubfm): Likewise. | |
5123 | (emit_ubfx): Likewise. | |
5124 | (emit_csinc): Likewise. | |
5125 | (emit_cset): Likewise. | |
5126 | (emit_nop): Likewise. | |
5127 | (emit_ops_insns): New helper function. | |
5128 | (emit_pop): Likewise. | |
5129 | (emit_push): Likewise. | |
5130 | (aarch64_emit_prologue): New function. | |
5131 | (aarch64_emit_epilogue): Likewise. | |
5132 | (aarch64_emit_add): Likewise. | |
5133 | (aarch64_emit_sub): Likewise. | |
5134 | (aarch64_emit_mul): Likewise. | |
5135 | (aarch64_emit_lsh): Likewise. | |
5136 | (aarch64_emit_rsh_signed): Likewise. | |
5137 | (aarch64_emit_rsh_unsigned): Likewise. | |
5138 | (aarch64_emit_ext): Likewise. | |
5139 | (aarch64_emit_log_not): Likewise. | |
5140 | (aarch64_emit_bit_and): Likewise. | |
5141 | (aarch64_emit_bit_or): Likewise. | |
5142 | (aarch64_emit_bit_xor): Likewise. | |
5143 | (aarch64_emit_bit_not): Likewise. | |
5144 | (aarch64_emit_equal): Likewise. | |
5145 | (aarch64_emit_less_signed): Likewise. | |
5146 | (aarch64_emit_less_unsigned): Likewise. | |
5147 | (aarch64_emit_ref): Likewise. | |
5148 | (aarch64_emit_if_goto): Likewise. | |
5149 | (aarch64_emit_goto): Likewise. | |
5150 | (aarch64_write_goto_address): Likewise. | |
5151 | (aarch64_emit_const): Likewise. | |
5152 | (aarch64_emit_call): Likewise. | |
5153 | (aarch64_emit_reg): Likewise. | |
5154 | (aarch64_emit_pop): Likewise. | |
5155 | (aarch64_emit_stack_flush): Likewise. | |
5156 | (aarch64_emit_zero_ext): Likewise. | |
5157 | (aarch64_emit_swap): Likewise. | |
5158 | (aarch64_emit_stack_adjust): Likewise. | |
5159 | (aarch64_emit_int_call_1): Likewise. | |
5160 | (aarch64_emit_void_call_2): Likewise. | |
5161 | (aarch64_emit_eq_goto): Likewise. | |
5162 | (aarch64_emit_ne_goto): Likewise. | |
5163 | (aarch64_emit_lt_goto): Likewise. | |
5164 | (aarch64_emit_le_goto): Likewise. | |
5165 | (aarch64_emit_gt_goto): Likewise. | |
5166 | (aarch64_emit_ge_got): Likewise. | |
5167 | (aarch64_emit_ops_impl): New static global variable. | |
5168 | (aarch64_emit_ops): New target function, return | |
5169 | &aarch64_emit_ops_impl. | |
5170 | (struct linux_target_ops): Install it. | |
5171 | ||
bb903df0 PL |
5172 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
5173 | ||
5174 | * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules. | |
5175 | * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and | |
5176 | aarch64-ipa.o. | |
5177 | * linux-aarch64-ipa.c: New file. | |
5178 | * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h | |
5179 | and endian.h. | |
5180 | (aarch64_get_thread_area): New target method. | |
5181 | (extract_signed_bitfield): New helper function. | |
5182 | (aarch64_decode_ldr_literal): New function. | |
5183 | (enum aarch64_opcodes): New enum. | |
5184 | (struct aarch64_register): New struct. | |
5185 | (struct aarch64_operand): New struct. | |
5186 | (x0): New static global. | |
5187 | (x1): Likewise. | |
5188 | (x2): Likewise. | |
5189 | (x3): Likewise. | |
5190 | (x4): Likewise. | |
5191 | (w2): Likewise. | |
5192 | (ip0): Likewise. | |
5193 | (sp): Likewise. | |
5194 | (xzr): Likewise. | |
5195 | (aarch64_register): New helper function. | |
5196 | (register_operand): Likewise. | |
5197 | (immediate_operand): Likewise. | |
5198 | (struct aarch64_memory_operand): New struct. | |
5199 | (offset_memory_operand): New helper function. | |
5200 | (preindex_memory_operand): Likewise. | |
5201 | (enum aarch64_system_control_registers): New enum. | |
5202 | (ENCODE): New macro. | |
5203 | (emit_insn): New helper function. | |
5204 | (emit_b): New function. | |
5205 | (emit_bcond): Likewise. | |
5206 | (emit_cb): Likewise. | |
5207 | (emit_tb): Likewise. | |
5208 | (emit_blr): Likewise. | |
5209 | (emit_stp): Likewise. | |
5210 | (emit_ldp_q_offset): Likewise. | |
5211 | (emit_stp_q_offset): Likewise. | |
5212 | (emit_load_store): Likewise. | |
5213 | (emit_ldr): Likewise. | |
5214 | (emit_ldrsw): Likewise. | |
5215 | (emit_str): Likewise. | |
5216 | (emit_ldaxr): Likewise. | |
5217 | (emit_stxr): Likewise. | |
5218 | (emit_stlr): Likewise. | |
5219 | (emit_data_processing_reg): Likewise. | |
5220 | (emit_data_processing): Likewise. | |
5221 | (emit_add): Likewise. | |
5222 | (emit_sub): Likewise. | |
5223 | (emit_mov): Likewise. | |
5224 | (emit_movk): Likewise. | |
5225 | (emit_mov_addr): Likewise. | |
5226 | (emit_mrs): Likewise. | |
5227 | (emit_msr): Likewise. | |
5228 | (emit_sevl): Likewise. | |
5229 | (emit_wfe): Likewise. | |
5230 | (append_insns): Likewise. | |
5231 | (can_encode_int32_in): New helper function. | |
5232 | (aarch64_relocate_instruction): New function. | |
5233 | (aarch64_install_fast_tracepoint_jump_pad): Likewise. | |
5234 | (aarch64_get_min_fast_tracepoint_insn_len): Likewise. | |
5235 | (struct linux_target_ops): Install aarch64_get_thread_area, | |
5236 | aarch64_install_fast_tracepoint_jump_pad and | |
5237 | aarch64_get_min_fast_tracepoint_insn_len. | |
5238 | ||
787749ea PL |
5239 | 2015-09-21 Pierre Langlois <pierre.langlois@arm.com> |
5240 | ||
5241 | * Makefile.in (aarch64-insn.o): New rule. | |
5242 | * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o. | |
5243 | ||
9812b2e6 YQ |
5244 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
5245 | ||
5246 | * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it. | |
5247 | ||
18fe412b YQ |
5248 | 2015-09-21 Yao Qi <yao.qi@linaro.org> |
5249 | ||
5250 | * tracepoint.c (max_jump_pad_size): Remove. | |
5251 | ||
a0cc84cd YQ |
5252 | 2015-09-18 Yao Qi <yao.qi@linaro.org> |
5253 | ||
5254 | * linux-aarch64-low.c: Don't include sys/uio.h. | |
5255 | (ps_get_thread_area): Call aarch64_ps_get_thread_area. | |
5256 | ||
d78908cf WW |
5257 | 2015-09-16 Wei-cheng Wang <cole945@gmail.com> |
5258 | ||
5259 | * tracepoint.c (eval_result_type): Change prototype. | |
5260 | (condition_true_at_tracepoint): Fix argument to compiled_cond. | |
5261 | ||
d57e0d50 PA |
5262 | 2015-09-15 Pedro Alves <palves@redhat.com> |
5263 | ||
5264 | * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>: | |
5265 | Check whether to report exec events instead of checking whether | |
5266 | multiprocess is enabled. | |
5267 | ||
5a676acc PA |
5268 | 2015-09-15 Pedro Alves <palves@redhat.com> |
5269 | ||
5270 | PR remote/18965 | |
5271 | * remote-utils.c (prepare_resume_reply): Merge | |
5272 | TARGET_WAITKIND_VFORK_DONE switch case with the | |
5273 | TARGET_WAITKIND_FORKED case. | |
5274 | ||
7c5d0fad YQ |
5275 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
5276 | ||
5277 | * server.c (handle_query): Check string comparison using | |
5278 | "else if" instead of "if". | |
5279 | ||
750ce8d1 YQ |
5280 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
5281 | ||
5282 | * server.c (vCont_supported): New global variable. | |
5283 | (handle_query): Set vCont_supported to 1 if "vContSupported+" | |
5284 | matches. Append ";vContSupported+" to own_buf. | |
5285 | (handle_v_requests): Append ";s;S" to own_buf if target supports | |
5286 | hardware single step or vCont_supported is false. | |
5287 | (capture_main): Set vCont_supported to zero. | |
5288 | ||
70b90b91 YQ |
5289 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
5290 | ||
5291 | * linux-low.c (linux_supports_conditional_breakpoints): Rename | |
5292 | it to ... | |
5293 | (linux_supports_hardware_single_step): ... New function. | |
5294 | (linux_target_ops): Update. | |
5295 | * lynx-low.c (lynx_target_ops): Set field | |
5296 | supports_hardware_single_step to target_can_do_hardware_single_step. | |
5297 | * nto-low.c (nto_target_ops): Likewise. | |
5298 | * spu-low.c (spu_target_ops): Likewise. | |
5299 | * win32-low.c (win32_target_ops): Likewise. | |
5300 | * target.c (target_can_do_hardware_single_step): New function. | |
5301 | * target.h (struct target_ops) <supports_conditional_breakpoints>: | |
5302 | Remove. <supports_hardware_single_step>: New field. | |
5303 | (target_supports_conditional_breakpoints): Remove. | |
5304 | (target_supports_hardware_single_step): New macro. | |
5305 | (target_can_do_hardware_single_step): Declare. | |
5306 | * server.c (handle_query): Use target_supports_hardware_single_step | |
5307 | instead of target_supports_conditional_breakpoints. | |
5308 | ||
ade90bde YQ |
5309 | 2015-09-15 Yao Qi <yao.qi@linaro.org> |
5310 | ||
5311 | * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New | |
5312 | function. | |
5313 | (struct linux_target_ops the_low_target): Install | |
5314 | aarch64_linux_siginfo_fixup. | |
5315 | ||
94585166 DB |
5316 | 2015-09-11 Don Breazeal <donb@codesourcery.com> |
5317 | Luis Machado <lgustavo@codesourcery.com> | |
5318 | ||
5319 | * linux-low.c (linux_mourn): Static declaration. | |
5320 | (linux_arch_setup): Move in front of | |
5321 | handle_extended_wait. | |
5322 | (linux_arch_setup_thread): New function. | |
5323 | (handle_extended_wait): Handle exec events. Call | |
5324 | linux_arch_setup_thread. Make event_lwp argument a | |
5325 | pointer-to-a-pointer. | |
5326 | (check_zombie_leaders): Do not check stopped threads. | |
5327 | (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC. | |
5328 | (linux_low_filter_event): Add lwp and thread for exec'ing | |
5329 | non-leader thread if leader thread has been deleted. | |
5330 | Refactor code into linux_arch_setup_thread and call it. | |
5331 | Pass child lwp pointer by reference to handle_extended_wait. | |
5332 | (linux_wait_for_event_filtered): Update comment. | |
5333 | (linux_wait_1): Prevent clobbering exec event status. | |
5334 | (linux_supports_exec_events): New function. | |
5335 | (linux_target_ops) <supports_exec_events>: Initialize new member. | |
5336 | * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize | |
5337 | new member. | |
5338 | * remote-utils.c (prepare_resume_reply): New stop reason 'exec'. | |
5339 | * server.c (report_exec_events): New global variable. | |
5340 | (handle_query): Handle qSupported query for exec-events feature. | |
5341 | (captured_main): Initialize report_exec_events. | |
5342 | * server.h (report_exec_events): Declare new global variable. | |
5343 | * target.h (struct target_ops) <supports_exec_events>: New | |
5344 | member. | |
5345 | (target_supports_exec_events): New macro. | |
5346 | * win32-low.c (win32_target_ops) <supports_exec_events>: | |
5347 | Initialize new member. | |
5348 | ||
0568462b MM |
5349 | 2015-09-09 Markus Metzger <markus.t.metzger@intel.com> |
5350 | ||
5351 | * linux-low.c (linux_low_enable_btrace): Remove. | |
5352 | (linux_target_ops): Replace linux_low_enable_btrace with | |
5353 | linux_enable_btrace. | |
5354 | ||
39edd165 YQ |
5355 | 2015-09-03 Yao Qi <yao.qi@linaro.org> |
5356 | ||
5357 | * linux-aarch64-low.c (aarch64_insert_point): Call | |
5358 | aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint | |
5359 | returns true. | |
5360 | ||
1db33b5a UW |
5361 | 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
5362 | ||
5363 | * linux-low.c (check_stopped_by_breakpoint): Use | |
5364 | GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT. | |
5365 | ||
ab290430 PA |
5366 | 2015-08-27 Pedro Alves <palves@redhat.com> |
5367 | ||
5368 | * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily. | |
5369 | ||
8d749320 SM |
5370 | 2015-08-26 Simon Marchi <simon.marchi@ericsson.com> |
5371 | ||
6711b7f8 SM |
5372 | * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with |
5373 | the XNEW-family equivalent. | |
8d749320 SM |
5374 | (compile_bytecodes): Likewise. |
5375 | * dll.c (loaded_dll): Likewise. | |
5376 | * event-loop.c (append_callback_event): Likewise. | |
5377 | (create_file_handler): Likewise. | |
5378 | (create_file_event): Likewise. | |
5379 | * hostio.c (handle_open): Likewise. | |
5380 | * inferiors.c (add_thread): Likewise. | |
5381 | (add_process): Likewise. | |
5382 | * linux-aarch64-low.c (aarch64_linux_new_process): Likewise. | |
5383 | * linux-arm-low.c (arm_new_process): Likewise. | |
5384 | (arm_new_thread): Likewise. | |
5385 | * linux-low.c (add_to_pid_list): Likewise. | |
5386 | (linux_add_process): Likewise. | |
5387 | (handle_extended_wait): Likewise. | |
5388 | (add_lwp): Likewise. | |
5389 | (enqueue_one_deferred_signal): Likewise. | |
5390 | (enqueue_pending_signal): Likewise. | |
5391 | (linux_resume_one_lwp_throw): Likewise. | |
5392 | (linux_resume_one_thread): Likewise. | |
5393 | (linux_read_memory): Likewise. | |
5394 | (linux_write_memory): Likewise. | |
5395 | * linux-mips-low.c (mips_linux_new_process): Likewise. | |
5396 | (mips_linux_new_thread): Likewise. | |
5397 | (mips_add_watchpoint): Likewise. | |
5398 | * linux-x86-low.c (initialize_low_arch): Likewise. | |
5399 | * lynx-low.c (lynx_add_process): Likewise. | |
5400 | * mem-break.c (set_raw_breakpoint_at): Likewise. | |
5401 | (set_breakpoint): Likewise. | |
5402 | (add_condition_to_breakpoint): Likewise. | |
5403 | (add_commands_to_breakpoint): Likewise. | |
5404 | (clone_agent_expr): Likewise. | |
5405 | (clone_one_breakpoint): Likewise. | |
5406 | * regcache.c (new_register_cache): Likewise. | |
5407 | * remote-utils.c (look_up_one_symbol): Likewise. | |
5408 | * server.c (queue_stop_reply): Likewise. | |
5409 | (start_inferior): Likewise. | |
5410 | (queue_stop_reply_callback): Likewise. | |
5411 | (handle_target_event): Likewise. | |
5412 | * spu-low.c (fetch_ppc_memory): Likewise. | |
5413 | (store_ppc_memory): Likewise. | |
5414 | * target.c (set_target_ops): Likewise. | |
5415 | * thread-db.c (thread_db_load_search): Likewise. | |
5416 | (try_thread_db_load_1): Likewise. | |
5417 | * tracepoint.c (add_tracepoint): Likewise. | |
5418 | (add_tracepoint_action): Likewise. | |
5419 | (create_trace_state_variable): Likewise. | |
5420 | (cmd_qtdpsrc): Likewise. | |
5421 | (cmd_qtro): Likewise. | |
5422 | (add_while_stepping_state): Likewise. | |
5423 | * win32-low.c (child_add_thread): Likewise. | |
5424 | (get_image_name): Likewise. | |
5425 | ||
ed8b7b42 YQ |
5426 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5427 | ||
5428 | * linux-aarch64-low.c (aarch64_linux_new_thread): Remove. | |
5429 | ||
db3cb7cb YQ |
5430 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5431 | ||
5432 | * Makefile.in (aarch64-linux.o): New rule. | |
5433 | * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to | |
5434 | srv_tgtobj. | |
5435 | * linux-aarch64-low.c: Include nat/aarch64-linux.h. | |
5436 | (aarch64_init_debug_reg_state): Make it extern. | |
5437 | (aarch64_linux_prepare_to_resume): Remove. | |
5438 | ||
f6011a1c YQ |
5439 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5440 | ||
5441 | * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use | |
5442 | lwp_arch_private_info and ptid_of_lwp. | |
5443 | ||
88e2cf7e YQ |
5444 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5445 | ||
5446 | * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid. | |
5447 | Find proc_info by find_process_pid. All callers updated. | |
5448 | ||
5e35436e YQ |
5449 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5450 | ||
5451 | * linux-aarch64-low.c (struct arch64_dr_update_callback_param): | |
5452 | Remove. | |
5453 | (debug_reg_change_callback): Remove. | |
5454 | (aarch64_notify_debug_reg_change): Remove. | |
5455 | ||
4a8a7965 YQ |
5456 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5457 | ||
5458 | * linux-aarch64-low.c (aarch64_notify_debug_reg_change): | |
5459 | Call current_lwp_ptid. | |
5460 | ||
32a271ee YQ |
5461 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5462 | ||
5463 | * linux-aarch64-low.c (debug_reg_change_callback): Use | |
5464 | debug_printf. | |
5465 | ||
0d51c8d7 YQ |
5466 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5467 | ||
5468 | * linux-aarch64-low.c (debug_reg_change_callback): Use phex. | |
5469 | ||
31a43dd5 YQ |
5470 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5471 | ||
5472 | * linux-aarch64-low.c (debug_reg_change_callback): Remove comments. | |
5473 | ||
8ee52567 YQ |
5474 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5475 | ||
5476 | * linux-aarch64-low.c (debug_reg_change_callback): Re-indent | |
5477 | the code. | |
5478 | ||
ff3f0f45 YQ |
5479 | 2015-08-25 Yao Qi <yao.qi@linaro.org> |
5480 | ||
5481 | * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>: | |
5482 | Remove. | |
5483 | (debug_reg_change_callback): Remove argument entry and add argument | |
5484 | lwp. Remove local variable thread. Don't print thread id in the | |
5485 | debugging output. Don't check whether pid of thread equals to pid. | |
5486 | (aarch64_notify_debug_reg_change): Don't set param.pid. Call | |
5487 | iterate_over_lwps instead find_inferior. | |
5488 | ||
3d40fbb5 PA |
5489 | 2015-08-24 Pedro Alves <palves@redhat.com> |
5490 | ||
5491 | * inferiors.c (get_first_process): New function. | |
5492 | * inferiors.h (get_first_process): New declaration. | |
5493 | * remote-utils.c (read_ptid): Default to the first process in the | |
5494 | list, instead of to the current thread's process. | |
5495 | ||
438e1e42 PA |
5496 | 2015-08-24 Pedro Alves <palves@redhat.com> |
5497 | ||
5498 | * debug.c: Include gdb_sys_time.h instead of sys/time.h. | |
5499 | * event-loop.c: Likewise. | |
5500 | * remote-utils.c: Likewise. | |
5501 | * tracepoint.c: Likewise. | |
5502 | ||
a8c6d4fc PA |
5503 | 2015-08-24 Pedro Alves <palves@redhat.com> |
5504 | ||
5505 | * spu-low.c (spu_request_interrupt): Use lwpid_of instead of | |
5506 | ptid_get_lwp. | |
5507 | ||
99b0bb12 PA |
5508 | 2015-08-21 Pedro Alves <palves@redhat.com> |
5509 | ||
5510 | * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode | |
5511 | instead of literal 1. | |
5512 | ||
f8904751 PA |
5513 | 2015-08-21 Pedro Alves <palves@redhat.com> |
5514 | ||
5515 | * tdesc.c (default_description): Explicitly zero-initialize. | |
5516 | ||
465a859e PA |
5517 | 2015-08-21 Pedro Alves <palves@redhat.com> |
5518 | ||
5519 | PR gdb/18749 | |
5520 | * inferiors.c (remove_thread): Discard any pending stop reply for | |
5521 | this thread. | |
5522 | * server.c (remove_all_on_match_pid): Rename to ... | |
5523 | (remove_all_on_match_ptid): ... this. Work with a filter ptid | |
5524 | instead of a pid. | |
5525 | (discard_queued_stop_replies): Change parameter to a ptid. Now | |
5526 | extern. | |
5527 | (handle_v_kill, kill_inferior_callback, captured_main) | |
5528 | (process_serial_event): Adjust. | |
5529 | * server.h (discard_queued_stop_replies): Declare. | |
5530 | ||
f0db101d PA |
5531 | 2015-08-21 Pedro Alves <palves@redhat.com> |
5532 | ||
5533 | * linux-low.c (wait_for_sigstop): Always switch to no thread | |
5534 | selected if the previously current thread dies. | |
5535 | * lynx-low.c (lynx_request_interrupt): Use the first thread's | |
5536 | process instead of the current thread's. | |
5537 | * remote-utils.c (input_interrupt): Don't check if there's no | |
5538 | current thread. | |
5539 | * server.c (gdb_read_memory, gdb_write_memory): If setting the | |
5540 | current thread to the general thread fails, error out. | |
5541 | (handle_qxfer_auxv, handle_qxfer_libraries) | |
5542 | (handle_qxfer_libraries_svr4, handle_qxfer_siginfo) | |
5543 | (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic) | |
5544 | (handle_query): Check if there's a thread selected instead of | |
5545 | checking whether there's any thread in the thread list. | |
5546 | (handle_qxfer_threads, handle_qxfer_btrace) | |
5547 | (handle_qxfer_btrace_conf): Don't error out early if there's no | |
5548 | thread in the thread list. | |
5549 | (handle_v_cont, myresume): Don't set the current thread to the | |
5550 | continue thread. | |
5551 | (process_serial_event) <Hg handling>: Also set thread_id if the | |
5552 | previous general thread is still alive. | |
5553 | (process_serial_event) <g/G handling>: If setting the current | |
5554 | thread to the general thread fails, error out. | |
5555 | * spu-low.c (spu_resume, spu_request_interrupt): Use the first | |
5556 | thread's lwp instead of the current thread's. | |
5557 | * target.c (set_desired_thread): If the desired thread was not | |
5558 | found, leave the current thread pointing to NULL. Return an int | |
5559 | (boolean) indicating success. | |
5560 | * target.h (set_desired_thread): Change return type to int. | |
5561 | ||
40045d91 MF |
5562 | 2015-08-20 Max Filippov <jcmvbkbc@gmail.com> |
5563 | ||
5564 | * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes. | |
5565 | * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New | |
5566 | #includes. | |
5567 | (ps_get_thread_area): New function. | |
5568 | ||
45face3b GB |
5569 | 2015-08-19 Gary Benson <gbenson@redhat.com> |
5570 | ||
5571 | * hostio.c (handle_pread): Do not attempt to read more data | |
5572 | than hostio_reply_with_data can fit in a packet. | |
5573 | ||
16d5f642 JB |
5574 | 2015-08-18 Joel Brobecker <brobecker@adacore.com> |
5575 | ||
5576 | * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined. | |
5577 | ||
a738da3a MF |
5578 | 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com> |
5579 | ||
5580 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL. | |
5581 | ||
33ebda9d PA |
5582 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5583 | ||
5584 | * tracepoint.c (expr_eval_result): Now an int. | |
5585 | ||
a44892be PA |
5586 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5587 | ||
5588 | * gdbthread.h (struct regcache): Forward declare. | |
5589 | (struct thread_info) <regcache_data>: Now a struct regcache | |
5590 | pointer. | |
5591 | * inferiors.c (inferior_regcache_data) | |
5592 | (set_inferior_regcache_data): Now work with struct regcache | |
5593 | pointers. | |
5594 | * inferiors.h (struct regcache): Forward declare. | |
5595 | (inferior_regcache_data, set_inferior_regcache_data): Now work | |
5596 | with struct regcache pointers. | |
5597 | * regcache.c (get_thread_regcache, regcache_invalidate_thread) | |
5598 | (free_register_cache_thread): Remove struct regcache pointer | |
5599 | casts. | |
5600 | ||
608a1e46 PA |
5601 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5602 | ||
5603 | * server.c (captured_main): On error, print the exception message | |
5604 | to stderr, and if run_once is set, throw a quit. | |
5605 | ||
f0ce0d3a PA |
5606 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5607 | ||
5608 | * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch | |
5609 | the current thread. | |
5610 | ||
bf47e248 PA |
5611 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5612 | ||
5613 | * linux-low.c (linux_write_memory): Rewrite debug output to avoid | |
5614 | reading beyond the passed in buffer length. | |
5615 | ||
b6b9ffcc PL |
5616 | 2015-08-06 Pierre Langlois <pierre.langlois@arm.com> |
5617 | ||
5618 | * tracepoint.c (symbol_list) <required>: Remove. | |
5619 | ||
863d01bd PA |
5620 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5621 | ||
5622 | * linux-low.c (handle_extended_wait): Set the fork child's suspend | |
5623 | count if stopping and suspending threads. | |
5624 | (check_stopped_by_breakpoint): If stopped by trace, set the LWP's | |
5625 | stop reason to TARGET_STOPPED_BY_SINGLE_STEP. | |
5626 | (linux_detach): Complete an ongoing step-over. | |
5627 | (lwp_suspended_inc, lwp_suspended_decr): New functions. Use | |
5628 | throughout. | |
5629 | (resume_stopped_resumed_lwps): Don't resume a suspended thread. | |
5630 | (linux_wait_1): If passing a signal to the inferior after | |
5631 | finishing a step-over, unsuspend and re-resume all lwps. If we | |
5632 | see a single-step event but the thread should be continuing, don't | |
5633 | pass the trap to gdb. | |
5634 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use | |
5635 | internal_error instead of gdb_assert. | |
5636 | (enqueue_pending_signal): New function. | |
5637 | (check_ptrace_stopped_lwp_gone): Add debug output. | |
5638 | (start_step_over): Use internal_error instead of gdb_assert. | |
5639 | (complete_ongoing_step_over): New function. | |
5640 | (linux_resume_one_thread): Don't resume a suspended thread. | |
5641 | (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset | |
5642 | it stepping. | |
5643 | ||
00db26fa PA |
5644 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5645 | ||
5646 | * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE. | |
5647 | (linux_thread_alive): Use lwp_is_marked_dead. | |
5648 | (extended_event_reported): Delete. | |
5649 | (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE | |
5650 | instead of extended_event_reported. | |
5651 | (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus | |
5652 | as well. | |
5653 | (lwp_is_marked_dead): New function. | |
5654 | (lwp_running): Use lwp_is_marked_dead. | |
5655 | * linux-low.h: Delete 'dead' field, and update 'waitstatus's | |
5656 | comment. | |
5657 | ||
ad071a30 PA |
5658 | 2015-08-06 Pedro Alves <palves@redhat.com> |
5659 | ||
5660 | * linux-low.c (linux_wait_1): Move fork event output out of the | |
5661 | !report_to_gdb check. Pass event_child->waitstatus to | |
5662 | target_waitstatus_to_string instead of ourstatus. | |
5663 | ||
524b57e6 YQ |
5664 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5665 | ||
5666 | * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0 | |
5667 | if current_thread is 32 bit. | |
5668 | ||
6085d6f6 YQ |
5669 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5670 | ||
5671 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Return | |
5672 | 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging. | |
5673 | * server.c (extended_protocol): Remove "static". | |
5674 | * server.h (extended_protocol): Declare it. | |
5675 | ||
8a7e4587 YQ |
5676 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5677 | ||
5678 | * linux-aarch64-low.c (aarch64_get_pc): Get PC register on | |
5679 | both aarch64 and aarch32. | |
5680 | (aarch64_set_pc): Likewise. | |
5681 | ||
3b53ae99 YQ |
5682 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5683 | ||
5684 | * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o | |
5685 | to srv_regobj and append arm-core.xml arm-vfpv3.xml and | |
5686 | arm-with-neon.xml to srv_xmlfiles. | |
5687 | * linux-aarch64-low.c: Include linux-aarch32-low.h. | |
5688 | (is_64bit_tdesc): New function. | |
5689 | (aarch64_linux_read_description): New function. | |
5690 | (aarch64_arch_setup): Call aarch64_linux_read_description. | |
5691 | (regs_info): Rename to regs_info_aarch64. | |
5692 | (aarch64_regs_info): Return right regs_info. | |
5693 | (initialize_low_arch): Call initialize_low_arch_aarch32. | |
5694 | ||
bd9e6534 YQ |
5695 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5696 | ||
5697 | * configure.srv (srv_tgtobj): Add linux-aarch32-low.o. | |
5698 | * linux-aarch32-low.c: New file. | |
5699 | * linux-aarch32-low.h: New file. | |
5700 | * linux-arm-low.c (arm_fill_gregset): Move it to | |
5701 | linux-aarch32-low.c. | |
5702 | (arm_store_gregset): Likewise. | |
5703 | (arm_fill_vfpregset): Call arm_fill_vfpregset_num | |
5704 | (arm_store_vfpregset): Call arm_store_vfpregset_num. | |
5705 | (arm_arch_setup): Check if PTRACE_GETREGSET works. | |
5706 | (regs_info): Rename to regs_info_arm. | |
5707 | (arm_regs_info): Return regs_info_aarch32 if | |
5708 | have_ptrace_getregset is 1 and target description is | |
5709 | arm_with_neon or arm_with_vfpv3. | |
5710 | (initialize_low_arch): Don't call init_registers_arm_with_neon. | |
5711 | Call initialize_low_arch_aarch32 instead. | |
5712 | ||
ded48a5e YQ |
5713 | 2015-08-04 Yao Qi <yao.qi@linaro.org> |
5714 | ||
5715 | * linux-x86-low.c (have_ptrace_getregset): Move it to ... | |
5716 | * linux-low.c: ... here. | |
5717 | * linux-low.h (have_ptrace_getregset): Declare it. | |
5718 | ||
96e9210f PA |
5719 | 2015-08-04 Pedro Alves <palves@redhat.com> |
5720 | ||
5721 | * thread-db.c (struct thread_db): Use new typedefs. | |
5722 | (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in | |
5723 | CHK calls. | |
5724 | (disable_thread_event_reporting): Cast result of dlsym to | |
5725 | destination function pointer type. | |
5726 | (thread_db_mourn): Use td_ta_delete_ftype. | |
5727 | ||
af60a1ef SL |
5728 | 2015-08-03 Sandra Loosemore <sandra@codesourcery.com> |
5729 | ||
5730 | * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for | |
5731 | arch variant. | |
5732 | (CDX_BREAKPOINT): Define for R2. | |
5733 | (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2. | |
5734 | (the_low_target): Add comments. | |
5735 | ||
e8b41681 YQ |
5736 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
5737 | ||
5738 | * linux-arm-low.c (arm_hwcap): Remove it. | |
5739 | (arm_read_description): New local variable arm_hwcap. Don't | |
5740 | set arm_hwcap to zero. | |
5741 | ||
89abb039 YQ |
5742 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
5743 | ||
5744 | * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap. | |
5745 | Use regcache->tdesc instead. | |
5746 | (arm_store_wmmxregset): Likewise. | |
5747 | (arm_fill_vfpregset): Likewise. | |
5748 | (arm_store_vfpregset): Likewise. | |
5749 | ||
deca266c YQ |
5750 | 2015-07-30 Yao Qi <yao.qi@linaro.org> |
5751 | ||
5752 | * linux-arm-low.c: Include arch/arm.h. | |
5753 | (arm_fill_gregset): Don't use arm_num_regs and arm_regmap. | |
5754 | (arm_store_gregset): Likewise. | |
5755 | ||
aa58a496 SM |
5756 | 2015-07-29 Simon Marchi <simon.marchi@ericsson.com> |
5757 | ||
5758 | * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as | |
5759 | ptrace's 4th parameter. | |
5760 | ||
50904b25 YQ |
5761 | 2015-07-27 Yao Qi <yao.qi@linaro.org> |
5762 | ||
5763 | * configure.srv (case aarch64*-*-linux*): Don't set | |
5764 | srv_linux_usrregs. | |
5765 | ||
5826e159 PA |
5766 | 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om> |
5767 | ||
5768 | * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of | |
5769 | sys/ptrace.h. | |
5770 | * linux-arm-low.c: Likewise. | |
5771 | * linux-cris-low.c: Likewise. | |
5772 | * linux-crisv32-low.c: Likewise. | |
5773 | * linux-low.c: Likewise. | |
5774 | * linux-m68k-low.c: Likewise. | |
5775 | * linux-mips-low.c: Likewise. | |
5776 | * linux-nios2-low.c: Likewise. | |
5777 | * linux-s390-low.c: Likewise. | |
5778 | * linux-sparc-low.c: Likewise. | |
5779 | * linux-tic6x-low.c: Likewise. | |
5780 | * linux-tile-low.c: Likewise. | |
5781 | * linux-x86-low.c: Likewise. | |
5782 | ||
54019719 PA |
5783 | 2015-07-24 Pedro Alves <palves@redhat.com> |
5784 | ||
5785 | * config.in: Regenerate. | |
5786 | * configure: Regenerate. | |
5787 | ||
eb7aa561 PA |
5788 | 2015-07-24 Pedro Alves <palves@redhat.com> |
5789 | ||
5790 | * acinclude.m4: Include ../ptrace.m4. | |
5791 | * configure.ac: Call GDB_AC_PTRACE. | |
5792 | * config.in, configure: Regenerate. | |
5793 | ||
55d7b841 YQ |
5794 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
5795 | ||
5796 | * linux-low.c (linux_create_inferior): Remove setting to | |
5797 | proc->priv->new_inferior. | |
5798 | (linux_attach): Likewise. | |
5799 | (linux_low_filter_event): Likewise. | |
5800 | * linux-low.h (struct process_info_private) <new_inferior>: Remove. | |
5801 | ||
c06cbd92 YQ |
5802 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
5803 | ||
5804 | * linux-low.c (linux_arch_setup): New function. | |
5805 | (linux_low_filter_event): If proc->tdesc is NULL and | |
5806 | proc->attached is true, call the_low_target.arch_setup. | |
5807 | Otherwise, keep status pending, and return. | |
5808 | (linux_resume_one_lwp_throw): Don't call get_pc if | |
5809 | thread->while_stepping isn't NULL. Don't call | |
5810 | get_thread_regcache if proc->tdesc is NULL. | |
5811 | (need_step_over_p): Return 0 if proc->tdesc is NULL. | |
5812 | (linux_target_ops): Install arch_setup. | |
5813 | * server.c (start_inferior): Call the_target->arch_setup. | |
5814 | * target.h (struct target_ops) <arch_setup>: New field. | |
5815 | (target_arch_setup): New marco. | |
5816 | * lynx-low.c (lynx_target_ops): Update. | |
5817 | * nto-low.c (nto_target_ops): Update. | |
5818 | * spu-low.c (spu_target_ops): Update. | |
5819 | * win32-low.c (win32_target_ops): Update. | |
5820 | ||
5ae3ebba YQ |
5821 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
5822 | ||
5823 | * linux-low.c (linux_add_process): Don't set | |
5824 | proc->priv->new_inferior. | |
5825 | (linux_create_inferior): Set proc->priv->new_inferior to 1. | |
5826 | (linux_attach): Likewise. | |
5827 | ||
eb97750b YQ |
5828 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
5829 | ||
5830 | * server.c (start_inferior): Code refactor. | |
5831 | ||
51aee833 YQ |
5832 | 2015-07-24 Yao Qi <yao.qi@linaro.org> |
5833 | ||
5834 | * server.c (process_serial_event): Set general_thread. | |
5835 | ||
af1b22f3 YQ |
5836 | 2015-07-21 Yao Qi <yao.qi@linaro.org> |
5837 | ||
5838 | * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call | |
5839 | aarch64_linux_get_debug_reg_capacity. | |
5840 | ||
554717a3 YQ |
5841 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
5842 | ||
5843 | * Makefile.in (aarch64-linux-hw-point.o): New rule. | |
5844 | * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o. | |
5845 | * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h. | |
5846 | (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h. | |
5847 | (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise. | |
5848 | (AARCH64_HWP_ALIGNMENT): Likewise. | |
5849 | (AARCH64_HWP_MAX_LEN_PER_REG): Likewise. | |
5850 | (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise. | |
5851 | (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise. | |
5852 | (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise. | |
5853 | (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise. | |
5854 | (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise. | |
5855 | (struct aarch64_debug_reg_state): Likewise. | |
5856 | (struct arch_lwp_info): Likewise. | |
5857 | (aarch64_align_watchpoint): Likewise. | |
5858 | (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise. | |
5859 | (aarch64_watchpoint_length): Likewise. | |
5860 | (aarch64_point_encode_ctrl_reg): Likewise | |
5861 | (aarch64_point_is_aligned): Likewise. | |
5862 | (aarch64_align_watchpoint): Likewise. | |
5863 | (aarch64_linux_set_debug_regs): | |
5864 | (aarch64_dr_state_insert_one_point): Likewise. | |
5865 | (aarch64_dr_state_remove_one_point): Likewise. | |
5866 | (aarch64_handle_breakpoint): Likewise. | |
5867 | (aarch64_handle_aligned_watchpoint): Likewise. | |
5868 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
5869 | (aarch64_handle_watchpoint): Likewise. | |
5870 | ||
c67ca4de YQ |
5871 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
5872 | ||
5873 | * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state | |
5874 | and don't aarch64_get_debug_reg_state. All callers update. | |
5875 | (aarch64_handle_aligned_watchpoint): Likewise. | |
5876 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
5877 | (aarch64_handle_watchpoint): Likewise. | |
5878 | (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier. | |
5879 | (aarch64_remove_point): Likewise. | |
5880 | ||
25abf979 YQ |
5881 | 2015-07-17 Yao Qi <yao.qi@linaro.org> |
5882 | ||
5883 | * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use | |
5884 | debug_printf. | |
5885 | (aarch64_handle_unaligned_watchpoint): Likewise. | |
5886 | ||
db1ff28b JK |
5887 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5888 | ||
5889 | Revert the previous 3 commits: | |
5890 | Move gdb_regex* to common/ | |
5891 | Move linux_find_memory_regions_full & co. | |
5892 | gdbserver build-id attribute generator | |
5893 | ||
700ca40f JK |
5894 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
5895 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5896 | ||
5897 | gdbserver build-id attribute generator. | |
5898 | * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include. | |
5899 | (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New. | |
5900 | (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New. | |
5901 | (find_phdr): New. | |
5902 | (get_dynamic): Use find_pdhr to traverse program headers. | |
5903 | (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec) | |
5904 | (compare_mapping_entry_range, struct find_memory_region_callback_data) | |
5905 | (read_build_id, find_memory_region_callback, lrfind_mapping_entry) | |
5906 | (get_hex_build_id): New. | |
5907 | (linux_qxfer_libraries_svr4): Add optional build-id attribute | |
5908 | to reply XML document. | |
5909 | ||
9904185c JK |
5910 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
5911 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5912 | ||
5913 | * target.c: Include target/target-utils.h and fcntl.h. | |
5914 | (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1) | |
5915 | (target_fileio_read_stralloc): New functions. | |
5916 | ||
6e5b4429 JK |
5917 | 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5918 | ||
5919 | * Makefile.in (OBS): Add gdb_regex.o. | |
5920 | (gdb_regex.o): New. | |
5921 | * config.in: Rebuilt. | |
5922 | * configure: Rebuilt. | |
5923 | ||
ddc98fbf JK |
5924 | 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com |
5925 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5926 | ||
5927 | Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. | |
5928 | * Makefile.in (OBS): Add target-utils.o. | |
5929 | (linux-maps.o, target-utils.o): New. | |
5930 | * configure.srv (srv_linux_obj): Add linux-maps.o. | |
5931 | ||
e57bb7a0 PL |
5932 | 2015-07-15 Pierre Langlois <pierre.langlois@arm.com> |
5933 | ||
5934 | * linux-aarch64-low.c (aarch64_supports_range_stepping): New | |
5935 | function, return 1. | |
5936 | (the_low_target): Install it. | |
5937 | ||
586b02a9 PA |
5938 | 2015-07-14 Pedro Alves <palves@redhat.com> |
5939 | ||
5940 | * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails. | |
5941 | Instead, ignore ECHILD, and throw an error for other errnos. | |
5942 | ||
58c1b36c PA |
5943 | 2015-07-10 Pedro Alves <palves@redhat.com> |
5944 | ||
5945 | * event-loop.c (struct callback_event) <data>: Change type to | |
5946 | gdb_client_data instance instead of gdb_client_data pointer. | |
5947 | (append_callback_event): Adjust. | |
5948 | ||
421530db PL |
5949 | 2015-07-10 Pierre Langlois <pierre.langlois@arm.com> |
5950 | ||
5951 | * linux-aarch64-low.c: Add comments for each linux_target_ops | |
5952 | method. Remove comments already covered in target_ops and | |
5953 | linux_target_ops definitions. | |
5954 | (the_low_target): Add comments for each unimplemented method. | |
5955 | ||
c2d65f38 YQ |
5956 | 2015-07-09 Yao Qi <yao.qi@linaro.org> |
5957 | ||
5958 | * linux-aarch64-low.c (aarch64_regmap): Remove. | |
5959 | (aarch64_usrregs_info): Remove. | |
5960 | (regs_info): Set field usrregs to NULL. | |
5961 | ||
b20a6524 MM |
5962 | 2015-07-02 Markus Metzger <markus.t.metzger@intel.com> |
5963 | ||
5964 | * linux-low.c: Include "rsp-low.h" | |
5965 | (linux_low_encode_pt_config, linux_low_encode_raw): New. | |
5966 | (linux_low_read_btrace): Support BTRACE_FORMAT_PT. | |
5967 | (linux_low_btrace_conf): Support BTRACE_FORMAT_PT. | |
5968 | (handle_btrace_enable_pt): New. | |
5969 | (handle_btrace_general_set): Support "pt". | |
5970 | (handle_btrace_conf_general_set): Support "pt:size". | |
5971 | ||
96c97461 PL |
5972 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
5973 | ||
5974 | * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for | |
5975 | Z_PACKET_SW_BP. | |
5976 | ||
37d66942 PL |
5977 | 2015-06-29 Pierre Langlois <pierre.langlois@arm.com> |
5978 | ||
5979 | * linux-aarch64-low.c: Remove comment about endianness. | |
5980 | (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0". | |
5981 | (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use | |
5982 | memcmp. | |
5983 | ||
dc06243f GB |
5984 | 2015-06-24 Gary Benson <gbenson@redhat.com> |
5985 | ||
5986 | * linux-i386-ipa.c (stdint.h): Do not include. | |
5987 | * lynx-i386-low.c (stdint.h): Likewise. | |
5988 | * lynx-ppc-low.c (stdint.h): Likewise. | |
5989 | * mem-break.c (stdint.h): Likewise. | |
5990 | * thread-db.c (stdint.h): Likewise. | |
5991 | * tracepoint.c (stdint.h): Likewise. | |
5992 | * win32-low.c (stdint.h): Likewise. | |
5993 | ||
124e13d9 SM |
5994 | 2015-06-18 Simon Marchi <simon.marchi@ericsson.com> |
5995 | ||
5996 | * server.c (write_qxfer_response): Update call to | |
5997 | remote_escape_output. | |
5998 | ||
909c2cda JK |
5999 | 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com |
6000 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
6001 | ||
6002 | Merge multiple hex conversions. | |
6003 | * gdbreplay.c (tohex): Rename to 'fromhex'. | |
6004 | (logchar): Use fromhex. | |
6005 | ||
24c05f46 JK |
6006 | 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
6007 | ||
6008 | * server.c (handle_qxfer_libraries): Set `version' attribute for | |
6009 | <library-list>. | |
6010 | ||
14d2069a GB |
6011 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
6012 | ||
6013 | * target.h (struct target_ops) <multifs_open>: New field. | |
6014 | <multifs_unlink>: Likewise. | |
6015 | <multifs_readlink>: Likewise. | |
6016 | * linux-low.c (nat/linux-namespaces.h): New include. | |
6017 | (linux_target_ops): Initialize the_target->multifs_open, | |
6018 | the_target->multifs_unlink and the_target->multifs_readlink. | |
6019 | * hostio.h (hostio_handle_new_gdb_connection): New declaration. | |
6020 | * hostio.c (hostio_fs_pid): New static variable. | |
6021 | (hostio_handle_new_gdb_connection): New function. | |
6022 | (handle_setfs): Likewise. | |
6023 | (handle_open): Use the_target->multifs_open as appropriate. | |
6024 | (handle_unlink): Use the_target->multifs_unlink as appropriate. | |
6025 | (handle_readlink): Use the_target->multifs_readlink as | |
6026 | appropriate. | |
6027 | (handle_vFile): Handle vFile:setfs packets. | |
6028 | * server.c (handle_query): Call hostio_handle_new_gdb_connection | |
6029 | after target_handle_new_gdb_connection. | |
6030 | ||
4b8b5e72 GB |
6031 | 2015-06-10 Gary Benson <gbenson@redhat.com> |
6032 | ||
6033 | * configure.ac (AC_CHECK_FUNCS): Add setns. | |
6034 | * config.in: Regenerate. | |
6035 | * configure: Likewise. | |
6036 | * Makefile.in (SFILES): Add nat/linux-namespaces.c. | |
6037 | (linux-namespaces.o): New rule. | |
6038 | * configure.srv (srv_linux_obj): Add linux-namespaces.o. | |
6039 | ||
3ac2e371 GB |
6040 | 2015-06-09 Gary Benson <gbenson@redhat.com> |
6041 | ||
6042 | * hostio.c (handle_open): Process mode argument with | |
6043 | fileio_to_host_mode. | |
6044 | ||
ca9b78ce YQ |
6045 | 2015-06-01 Yao Qi <yao.qi@linaro.org> |
6046 | ||
6047 | * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove. | |
6048 | * linux-x86-low.c: Likewise. | |
6049 | ||
bfacd19d DB |
6050 | 2015-05-28 Don Breazeal <donb@codesourcery.com> |
6051 | ||
6052 | * linux-low.c (handle_extended_wait): Initialize | |
6053 | thread_info.last_resume_kind for new fork children. | |
6054 | ||
452003ef PA |
6055 | 2015-05-15 Pedro Alves <palves@redhat.com> |
6056 | ||
6057 | * target.h (target_handle_new_gdb_connection): Rewrite using if | |
6058 | wrapped in do/while. | |
6059 | ||
1041a03c JB |
6060 | 2015-05-14 Joel Brobecker <brobecker@adacore.com> |
6061 | ||
6062 | * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check. | |
6063 | * configure, config.in: Regenerate. | |
6064 | * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t): | |
6065 | Declare typedef. | |
6066 | ||
c269dbdb DB |
6067 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
6068 | ||
6069 | * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and | |
6070 | PTRACE_EVENT_VFORK_DONE. | |
6071 | (linux_low_ptrace_options, extended_event_reported): Add vfork | |
6072 | events. | |
6073 | * remote-utils.c (prepare_resume_reply): New stop reasons "vfork" | |
6074 | and "vforkdone" for RSP 'T' Stop Reply Packet. | |
6075 | * server.h (report_vfork_events): Declare | |
6076 | global variable. | |
6077 | ||
3a8a0396 DB |
6078 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
6079 | ||
6080 | * linux-aarch64-low.c (aarch64_linux_new_fork): New function. | |
6081 | (the_low_target) <new_fork>: Initialize new member. | |
6082 | * linux-arm-low.c (arm_new_fork): New function. | |
6083 | (the_low_target) <new_fork>: Initialize new member. | |
6084 | * linux-low.c (handle_extended_wait): Call new target function | |
6085 | new_fork. | |
6086 | * linux-low.h (struct linux_target_ops) <new_fork>: New member. | |
6087 | * linux-mips-low.c (mips_add_watchpoint): New function | |
6088 | extracted from mips_insert_point. | |
6089 | (the_low_target) <new_fork>: Initialize new member. | |
6090 | (mips_linux_new_fork): New function. | |
6091 | (mips_insert_point): Call mips_add_watchpoint. | |
6092 | * linux-x86-low.c (x86_linux_new_fork): New function. | |
6093 | (the_low_target) <new_fork>: Initialize new member. | |
6094 | ||
de0d863e DB |
6095 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
6096 | ||
6097 | * linux-low.c (handle_extended_wait): Implement return value, | |
6098 | rename argument 'event_child' to 'event_lwp', handle | |
6099 | PTRACE_EVENT_FORK, call internal_error for unrecognized event. | |
6100 | (linux_low_ptrace_options): New function. | |
6101 | (linux_low_filter_event): Call linux_low_ptrace_options, | |
6102 | use different argument fo linux_enable_event_reporting, | |
6103 | use return value from handle_extended_wait. | |
6104 | (extended_event_reported): New function. | |
6105 | (linux_wait_1): Call extended_event_reported and set | |
6106 | status to report fork events. | |
6107 | (linux_write_memory): Add pid to debug message. | |
6108 | (reset_lwp_ptrace_options_callback): New function. | |
6109 | (linux_handle_new_gdb_connection): New function. | |
6110 | (linux_target_ops): Initialize new structure member. | |
6111 | * linux-low.h (struct lwp_info) <waitstatus>: New member. | |
6112 | * lynx-low.c: Initialize new structure member. | |
6113 | * remote-utils.c (prepare_resume_reply): Implement stop reason | |
6114 | "fork" for "T" stop message. | |
6115 | * server.c (handle_query): Call handle_new_gdb_connection. | |
6116 | * server.h (report_fork_events): Declare global flag. | |
6117 | * target.h (struct target_ops) <handle_new_gdb_connection>: | |
6118 | New member. | |
6119 | (target_handle_new_gdb_connection): New macro. | |
6120 | * win32-low.c: Initialize new structure member. | |
6121 | ||
ddcbc397 DB |
6122 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
6123 | ||
6124 | * mem-break.c (APPEND_TO_LIST): Define macro. | |
6125 | (clone_agent_expr): New function. | |
6126 | (clone_one_breakpoint): New function. | |
6127 | (clone_all_breakpoints): New function. | |
6128 | * mem-break.h: Declare new functions. | |
6129 | ||
89245bc0 DB |
6130 | 2015-05-12 Don Breazeal <donb@codesourcery.com> |
6131 | ||
6132 | * linux-low.c (linux_supports_fork_events): New function. | |
6133 | (linux_supports_vfork_events): New function. | |
6134 | (linux_target_ops): Initialize new structure members. | |
6135 | (initialize_low): Call linux_check_ptrace_features. | |
6136 | * lynx-low.c (lynx_target_ops): Initialize new structure | |
6137 | members. | |
6138 | * server.c (report_fork_events, report_vfork_events): | |
6139 | New global flags. | |
6140 | (handle_query): Add new features to qSupported packet and | |
6141 | response. | |
6142 | (captured_main): Initialize new global variables. | |
6143 | * target.h (struct target_ops) <supports_fork_events>: | |
6144 | New member. | |
6145 | <supports_vfork_events>: New member. | |
6146 | (target_supports_fork_events): New macro. | |
6147 | (target_supports_vfork_events): New macro. | |
6148 | * win32-low.c (win32_target_ops): Initialize new structure | |
6149 | members. | |
6150 | ||
835205d0 GB |
6151 | 2015-05-12 Gary Benson <gbenson@redhat.com> |
6152 | ||
6153 | * server.c (handle_qxfer_exec_file): Use current process | |
6154 | if annex is empty. | |
6155 | ||
21e94bd9 SL |
6156 | 2015-05-08 Sandra Loosemore <sandra@codesourcery.com> |
6157 | ||
6158 | * linux-nios2-low.c: Include elf/common.h. Adjust comments. | |
6159 | Remove HAVE_PTRACE_GETREGS conditionals. | |
6160 | (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET | |
6161 | instead of PTRACE_GETREGS and PTRACE_SETREGS. | |
6162 | ||
45614f15 YQ |
6163 | 2015-05-08 Yao Qi <yao.qi@linaro.org> |
6164 | ||
6165 | * linux-low.c (linux_supports_conditional_breakpoints): New | |
6166 | function. | |
6167 | (linux_target_ops): Install new target method. | |
6168 | * lynx-low.c (lynx_target_ops): Install NULL hook for | |
6169 | supports_conditional_breakpoints. | |
6170 | * nto-low.c (nto_target_ops): Likewise. | |
6171 | * spu-low.c (spu_target_ops): Likewise. | |
6172 | * win32-low.c (win32_target_ops): Likewise. | |
6173 | * server.c (handle_query): Check | |
6174 | target_supports_conditional_breakpoints. | |
6175 | * target.h (struct target_ops) <supports_conditional_breakpoints>: | |
6176 | New field. | |
6177 | (target_supports_conditional_breakpoints): New macro. | |
6178 | ||
80ad801e PA |
6179 | 2015-05-06 Pedro Alves <palves@redhat.com> |
6180 | ||
6181 | PR server/18081 | |
6182 | * server.c (start_inferior): If the process exits, mourn it. | |
6183 | ||
819843c7 GB |
6184 | 2015-04-21 Gary Benson <gbenson@redhat.com> |
6185 | ||
6186 | * hostio.c (fileio_open_flags_to_host): Factored out to | |
6187 | fileio_to_host_openflags in common/fileio.c. Single use | |
6188 | updated. | |
6189 | ||
a2d5a9d7 MF |
6190 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
6191 | ||
6192 | * linux-xtensa-low.c (xtensa_fill_gregset) | |
6193 | (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of | |
6194 | XCHAL_HAVE_LOOP. | |
6195 | ||
deb44829 MF |
6196 | 2015-04-17 Max Filippov <jcmvbkbc@gmail.com> |
6197 | ||
6198 | * linux-xtensa-low.c (xtensa_usrregs_info): Remove. | |
6199 | (regs_info): Replace usrregs pointer with NULL. | |
6200 | ||
e57f1de3 GB |
6201 | 2015-04-17 Gary Benson <gbenson@redhat.com> |
6202 | ||
6203 | * target.h (struct target_ops) <pid_to_exec_file>: New field. | |
6204 | * linux-low.c (linux_target_ops): Initialize pid_to_exec_file. | |
6205 | * server.c (handle_qxfer_exec_file): New function. | |
6206 | (qxfer_packets): Add exec-file entry. | |
6207 | (handle_query): Report qXfer:exec-file:read as supported packet. | |
6208 | ||
62828379 RN |
6209 | 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change) |
6210 | ||
6211 | * linux-low.c (linux_read_offsets): Remove get_thread_lwp. | |
6212 | ||
b88bb450 GB |
6213 | 2015-04-09 Gary Benson <gbenson@redhat.com> |
6214 | ||
6215 | * hostio-errno.c (errno_to_fileio_error): Remove function. | |
6216 | Update caller to use remote_fileio_to_fio_error. | |
6217 | ||
c8f4bfdd YQ |
6218 | 2015-04-09 Yao Qi <yao.qi@linaro.org> |
6219 | ||
6220 | * linux-low.c (linux_insert_point): Call | |
6221 | insert_memory_breakpoint if TYPE is raw_bkpt_type_sw. | |
6222 | (linux_remove_point): Call remove_memory_breakpoint if type is | |
6223 | raw_bkpt_type_sw. | |
6224 | * linux-x86-low.c (x86_insert_point): Don't call | |
6225 | insert_memory_breakpoint. | |
6226 | (x86_remove_point): Don't call remove_memory_breakpoint. | |
6227 | ||
41f98f02 PA |
6228 | 2015-04-01 Pedro Alves <palves@redhat.com> |
6229 | Cleber Rosa <crosa@redhat.com> | |
6230 | ||
6231 | * server.c (gdbserver_usage): Reorganize and extend the usage | |
6232 | message. | |
6233 | ||
2bf6fb9d PA |
6234 | 2015-03-24 Pedro Alves <palves@redhat.com> |
6235 | ||
6236 | * linux-low.c (check_stopped_by_breakpoint): Tweak debug log | |
6237 | output. Also dump TRAP_TRACE. | |
6238 | (linux_low_filter_event): In debug output, distinguish a | |
6239 | resume_stop SIGSTOP from a delayed SIGSTOP. | |
6240 | ||
369f6daa GB |
6241 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6242 | ||
6243 | * linux-x86-low.c (x86_linux_new_thread): Moved to | |
6244 | nat/x86-linux.c. | |
6245 | (x86_linux_prepare_to_resume): Likewise. | |
6246 | ||
8e5d4070 GB |
6247 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6248 | ||
6249 | * Makefile.in (x86-linux-dregs.o): New rule. | |
6250 | * configure.srv: Add x86-linux-dregs.o to relevant targets. | |
6251 | * linux-x86-low.c: Include nat/x86-linux-dregs.h. | |
6252 | (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. | |
6253 | (x86_linux_dr_get): Likewise. | |
6254 | (x86_linux_dr_set): Likewise. | |
6255 | (update_debug_registers_callback): Likewise. | |
6256 | (x86_linux_dr_set_addr): Likewise. | |
6257 | (x86_linux_dr_get_addr): Likewise. | |
6258 | (x86_linux_dr_set_control): Likewise. | |
6259 | (x86_linux_dr_get_control): Likewise. | |
6260 | (x86_linux_dr_get_status): Likewise. | |
6261 | (x86_linux_update_debug_registers): Likewise. | |
6262 | ||
2b95d440 GB |
6263 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6264 | ||
6265 | * linux-x86-low.c (x86_linux_update_debug_registers): | |
6266 | New function, factored out from... | |
6267 | (x86_linux_prepare_to_resume): ...this. | |
6268 | ||
14b0bc68 GB |
6269 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6270 | ||
6271 | * linux-x86-low.c (x86_linux_dr_get): Update comments. | |
6272 | (x86_linux_dr_set): Likewise. | |
6273 | (update_debug_registers_callback): Likewise. | |
6274 | (x86_linux_dr_set_addr): Likewise. | |
6275 | (x86_linux_dr_get_addr): Likewise. | |
6276 | (x86_linux_dr_set_control): Likewise. | |
6277 | (x86_linux_dr_get_control): Likewise. | |
6278 | (x86_linux_dr_get_status): Likewise. | |
6279 | (x86_linux_prepare_to_resume): Likewise. | |
6280 | ||
5dfe6ca8 GB |
6281 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6282 | ||
6283 | * linux-x86-low.c (x86_linux_dr_get): Add assertion. | |
6284 | Use perror_with_name. Pass string through gettext. | |
6285 | (x86_linux_dr_set): Likewise. | |
6286 | ||
d33472ad GB |
6287 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6288 | ||
6289 | * linux-x86-low.c (x86_dr_low_set_addr): Rename to... | |
6290 | (x86_linux_dr_set_addr): ...this. | |
6291 | (x86_dr_low_get_addr): Rename to... | |
6292 | (x86_linux_dr_get_addr): ...this. | |
6293 | (x86_dr_low_set_control): Rename to... | |
6294 | (x86_linux_dr_set_control): ...this. | |
6295 | (x86_dr_low_get_control): Rename to... | |
6296 | (x86_linux_dr_get_control): ...this. | |
6297 | (x86_dr_low_get_status): Rename to... | |
6298 | (x86_linux_dr_get_status): ...this. | |
6299 | (x86_dr_low): Update with new function names. | |
6300 | ||
4b134ca1 GB |
6301 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6302 | ||
6303 | * Makefile.in (x86-linux.o): New rule. | |
6304 | * configure.srv: Add x86-linux.o to relevant targets. | |
6305 | * linux-low.c (lwp_set_arch_private_info): New function. | |
6306 | (lwp_arch_private_info): Likewise. | |
6307 | * linux-x86-low.c: Include nat/x86-linux.h. | |
6308 | (arch_lwp_info): Removed structure. | |
6309 | (update_debug_registers_callback): | |
6310 | Use lwp_set_debug_registers_changed. | |
6311 | (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed | |
6312 | and lwp_set_debug_registers_changed. | |
6313 | (x86_linux_new_thread): Use lwp_set_debug_registers_changed. | |
6314 | ||
34c703da GB |
6315 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6316 | ||
6317 | * linux-low.h (linux_target_ops) <new_thread>: Changed signature. | |
6318 | * linux-arm-low.c (arm_new_thread): Likewise. | |
6319 | * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise. | |
6320 | * linux-mips-low.c (mips_linux_new_thread): Likewise. | |
6321 | * linux-x86-low.c (x86_linux_new_thread): Likewise. | |
6322 | * linux-low.c (add_lwp): Update the_low_target.new_thread call. | |
6323 | ||
cff068da GB |
6324 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6325 | ||
6326 | * linux-low.c (ptid_of_lwp): New function. | |
6327 | (lwp_is_stopped): Likewise. | |
6328 | (lwp_stop_reason): Likewise. | |
6329 | * linux-x86-low.c (update_debug_registers_callback): | |
6330 | Use lwp_is_stopped. | |
6331 | (x86_linux_prepare_to_resume): Use ptid_of_lwp and | |
6332 | lwp_stop_reason. | |
6333 | ||
b2f7c7e8 GB |
6334 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6335 | ||
6336 | * linux-low.h (linux_stop_lwp): Remove declaration. | |
6337 | ||
6d4ee8c6 GB |
6338 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6339 | ||
6340 | * linux-low.h: Include nat/linux-nat.h. | |
6341 | * linux-low.c (iterate_over_lwps_args): New structure. | |
6342 | (iterate_over_lwps_filter): New function. | |
6343 | (iterate_over_lwps): Likewise. | |
6344 | * linux-x86-low.c (update_debug_registers_callback): | |
6345 | Update signature to what iterate_over_lwps expects. | |
6346 | Remove PID check that iterate_over_lwps now performs. | |
6347 | (x86_dr_low_set_addr): Use iterate_over_lwps. | |
6348 | (x86_dr_low_set_control): Likewise. | |
6349 | ||
70a0bb6b GB |
6350 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6351 | ||
6352 | * linux-x86-low.c (x86_debug_reg_state): New function. | |
6353 | (x86_linux_prepare_to_resume): Use the above. | |
6354 | ||
7b669087 GB |
6355 | 2015-03-24 Gary Benson <gbenson@redhat.com> |
6356 | ||
6357 | * linux-low.c (current_lwp_ptid): New function. | |
6358 | * linux-x86-low.c: Include nat/linux-nat.h. | |
6359 | (x86_dr_low_get_addr): Use current_lwp_ptid. | |
6360 | (x86_dr_low_get_control): Likewise. | |
6361 | (x86_dr_low_get_status): Likewise. | |
6362 | ||
eef49a3d PA |
6363 | 2015-03-20 Pedro Alves <palves@redhat.com> |
6364 | ||
6365 | * tracepoint.c (cmd_qtstatus): Make "str" const. | |
6366 | ||
b2333d22 PA |
6367 | 2015-03-20 Pedro Alves <palves@redhat.com> |
6368 | ||
6369 | * server.c (handle_general_set): Make "req_str" const. | |
6370 | ||
23f238d3 PA |
6371 | 2015-03-19 Pedro Alves <palves@redhat.com> |
6372 | ||
6373 | * linux-low.c (linux_resume_one_lwp): Rename to ... | |
6374 | (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, | |
6375 | instead call perror_with_name. | |
6376 | (check_ptrace_stopped_lwp_gone): New function. | |
6377 | (linux_resume_one_lwp): Reimplement as wrapper around | |
6378 | linux_resume_one_lwp_throw that swallows errors if the LWP is | |
6379 | gone. | |
6380 | ||
91baf43f PA |
6381 | 2015-03-19 Pedro Alves <palves@redhat.com> |
6382 | ||
6383 | * linux-low.c (count_events_callback, select_event_lwp_callback): | |
6384 | No longer check whether the thread has resume_stop as last resume | |
6385 | kind. | |
6386 | ||
8bf3b159 PA |
6387 | 2015-03-19 Pedro Alves <palves@redhat.com> |
6388 | ||
6389 | * linux-low.c (count_events_callback, select_event_lwp_callback): | |
6390 | Use the lwp's status_pending_p field, not the thread's. | |
6391 | ||
b90fc188 PA |
6392 | 2015-03-19 Pedro Alves <palves@redhat.com> |
6393 | ||
6394 | * linux-low.c (select_event_lwp_callback): Update comments to | |
6395 | no longer mention SIGTRAP. | |
6396 | ||
464b0089 GB |
6397 | 2015-03-18 Gary Benson <gbenson@redhat.com> |
6398 | ||
6399 | * server.c (handle_query): Do not report vFile:fstat as supported. | |
6400 | ||
aa9e327f GB |
6401 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
6402 | ||
6403 | * hostio.c (sys/types.h): New include. | |
6404 | (sys/stat.h): Likewise. | |
6405 | (common-remote-fileio.h): Likewise. | |
6406 | (handle_fstat): New function. | |
6407 | (handle_vFile): Handle vFile:fstat packets. | |
aa9e327f | 6408 | |
791c0056 GB |
6409 | 2015-03-11 Gary Benson <gbenson@redhat.com> |
6410 | ||
6411 | * configure.ac (AC_CHECK_MEMBERS): Add checks for | |
6412 | struct stat.st_blocks and struct stat.st_blksize. | |
6413 | * configure: Regenerate. | |
6414 | * config.in: Likewise. | |
6415 | * Makefile.in (SFILES): Add common/common-remote-fileio.c. | |
6416 | (OBS): Add common-remote-fileio.o. | |
6417 | (common-remote-fileio.o): New rule. | |
6418 | ||
9a9df970 PA |
6419 | 2015-03-09 Pedro Alves <palves@redhat.com> |
6420 | ||
6421 | * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to | |
6422 | 'struct sockaddr' pointer in 'accept' call. | |
6423 | ||
9eb1356e PA |
6424 | 2015-03-09 Pedro Alves <palves@redhat.com> |
6425 | ||
6426 | Revert: | |
6427 | 2015-03-07 Pedro Alves <palves@redhat.com> | |
6428 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, | |
6429 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
6430 | (remote_open): Use union gdb_sockaddr_u. | |
6431 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> | |
6432 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
6433 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. | |
6434 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> | |
6435 | or <sys/un.h>. | |
6436 | (init_named_socket, gdb_agent_helper_thread): Use union | |
6437 | gdb_sockaddr_u. | |
6438 | ||
aac331e4 PA |
6439 | 2015-03-07 Pedro Alves <palves@redhat.com> |
6440 | ||
6441 | * configure.ac (build_warnings): Move | |
6442 | -Wdeclaration-after-statement to the C-specific set. | |
6443 | * configure: Regenerate. | |
6444 | ||
366c75fc PA |
6445 | 2015-03-07 Pedro Alves <palves@redhat.com> |
6446 | ||
6447 | * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>, | |
6448 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
6449 | (remote_open): Use union gdb_sockaddr_u. | |
6450 | * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h> | |
6451 | or <winsock2.h> here. Instead include "gdb_socket.h". | |
6452 | (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u. | |
6453 | * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h> | |
6454 | or <sys/un.h>. | |
6455 | (init_named_socket, gdb_agent_helper_thread): Use union | |
6456 | gdb_sockaddr_u. | |
6457 | ||
492d29ea PA |
6458 | 2015-03-07 Pedro Alves <palves@redhat.com> |
6459 | ||
6460 | Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH | |
6461 | instead. | |
6462 | ||
60a191ed YQ |
6463 | 2015-03-06 Yao Qi <yao.qi@linaro.org> |
6464 | ||
6465 | * linux-aarch64-low.c (aarch64_insert_point): Use | |
6466 | show_debug_regs as a boolean. | |
6467 | (aarch64_remove_point): Likewise. | |
6468 | ||
f5771b1d PA |
6469 | 2015-03-05 Pedro Alves <palves@redhat.com> |
6470 | ||
6471 | * lynx-low.c (lynx_target_ops): Install NULL hooks for | |
6472 | stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, | |
6473 | stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint. | |
6474 | * nto-low.c (nto_target_ops): Likewise. | |
6475 | * spu-low.c (spu_target_ops): Likewise. | |
6476 | * win32-low.c (win32_target_ops): Likewise. | |
6477 | ||
3e572f71 PA |
6478 | 2015-03-04 Pedro Alves <palves@redhat.com> |
6479 | ||
72f4393d | 6480 | * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: |
3e572f71 PA |
6481 | Decide whether a breakpoint triggered based on the SIGTRAP's |
6482 | siginfo.si_code. | |
72f4393d L |
6483 | (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a |
6484 | breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. | |
3e572f71 PA |
6485 | (linux_low_filter_event): Check for breakpoints before checking |
6486 | watchpoints. | |
6487 | (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's | |
6488 | siginfo.si_code. | |
72f4393d L |
6489 | (linux_stopped_by_sw_breakpoint) |
6490 | (linux_supports_stopped_by_sw_breakpoint) | |
6491 | (linux_stopped_by_hw_breakpoint) | |
6492 | (linux_supports_stopped_by_hw_breakpoint): New functions. | |
6493 | (linux_target_ops): Install new target methods. | |
3e572f71 | 6494 | |
1ec68e26 PA |
6495 | 2015-03-04 Pedro Alves <palves@redhat.com> |
6496 | ||
6497 | * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak. | |
6498 | * server.c (swbreak_feature, hwbreak_feature): New globals. | |
6499 | (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+". | |
6500 | (captured_main): Clear swbreak_feature and hwbreak_feature. | |
6501 | * server.h (swbreak_feature, hwbreak_feature): Declare. | |
6502 | * target.h (struct target_ops) <stopped_by_sw_breakpoint, | |
6503 | supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint, | |
6504 | supports_stopped_by_hw_breakpoint>: New fields. | |
6505 | (target_supports_stopped_by_sw_breakpoint) | |
6506 | (target_stopped_by_sw_breakpoint) | |
6507 | (target_supports_stopped_by_hw_breakpoint) | |
6508 | (target_stopped_by_hw_breakpoint): Declare. | |
6509 | ||
15c66dd6 PA |
6510 | 2015-03-04 Pedro Alves <palves@redhat.com> |
6511 | ||
6512 | enum lwp_stop_reason -> enum target_stop_reason | |
6513 | * linux-low.c (check_stopped_by_breakpoint): Adjust. | |
6514 | (thread_still_has_status_pending_p, check_stopped_by_watchpoint) | |
6515 | (linux_wait_1, stuck_in_jump_pad_callback) | |
6516 | (move_out_of_jump_pad_callback, linux_resume_one_lwp) | |
6517 | (linux_stopped_by_watchpoint): | |
6518 | * linux-low.h (enum lwp_stop_reason): Delete. | |
6519 | (struct lwp_info) <stop_reason>: Now an enum target_stop_reason. | |
6520 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. | |
6521 | ||
98fc70d6 YQ |
6522 | 2015-03-04 Yao Qi <yao.qi@linaro.org> |
6523 | ||
6524 | * Makefile.in (SFILES): Add linux-aarch64-low.c. | |
6525 | ||
dd2ac174 GB |
6526 | 2015-03-03 Gary Benson <gbenson@redhat.com> |
6527 | ||
6528 | * hostio.c (handle_vFile): Fix prefix lengths. | |
6529 | ||
d68e53f4 MM |
6530 | 2015-03-03 Markus Metzger <markus.t.metzger@intel.com> |
6531 | ||
6532 | * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero | |
6533 | ptr_bits. | |
6534 | ||
bf2d68ab AA |
6535 | 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6536 | ||
6537 | * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c) | |
6538 | (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules. | |
6539 | (clean): Add "rm -f" for above C files. | |
6540 | * configure.srv (srv_regobj): Add s390-vx-linux64.o, | |
6541 | s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o. | |
6542 | (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml, | |
6543 | s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml. | |
6544 | * linux-s390-low.c (HWCAP_S390_VX): New macro. | |
6545 | (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64) | |
6546 | (init_registers_s390x_vx_linux64) | |
6547 | (init_registers_s390x_tevx_linux64) | |
6548 | (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) | |
6549 | (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern | |
6550 | declarations. | |
6551 | (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high) | |
6552 | (s390_store_vxrs_high): New functions. | |
6553 | (s390_regsets): Add entries for NT_S390_VXRS_LOW and | |
6554 | NT_S390_VXRS_HIGH. | |
6555 | (s390_arch_setup): Add logic for selecting one of the new target | |
6556 | descriptions. Activate the new vector regsets if applicable. | |
6557 | (initialize_low_arch): Also invoke init_registers_s390_vx_linux64, | |
6558 | init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64, | |
6559 | and init_registers_s390x_tevx_linux64. | |
6560 | ||
c966a859 PA |
6561 | 2015-03-01 Pedro Alves <palves@redhat.com> |
6562 | ||
6563 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs' | |
6564 | parameter. | |
6565 | ||
4180215b PA |
6566 | 2015-02-27 Pedro Alves <palves@redhat.com> |
6567 | ||
6568 | * linux-x86-low.c (u_debugreg_offset): New function. | |
6569 | (x86_linux_dr_get, x86_linux_dr_set): Use it. | |
6570 | ||
749bab01 PA |
6571 | 2015-02-27 Pedro Alves <palves@redhat.com> |
6572 | ||
6573 | * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. | |
6574 | [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare. | |
6575 | [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread) | |
6576 | ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs) | |
6577 | (ps_lsetfpregs, ps_getpid) | |
6578 | (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue) | |
6579 | (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs) | |
6580 | (ps_lsetxregs, ps_plog): Declare. | |
6581 | ||
3c14e5a3 PA |
6582 | 2015-02-27 Pedro Alves <palves@redhat.com> |
6583 | ||
6584 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use | |
6585 | IP_AGENT_EXPORT_FUNC. | |
6586 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use | |
6587 | IP_AGENT_EXPORT_FUNC. | |
6588 | * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR) | |
6589 | (IP_AGENT_EXPORT): Delete. | |
6590 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
6591 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) | |
6592 | (gdb_trampoline_buffer_error, collecting, gdb_collect) | |
6593 | (stop_tracing, flush_trace_buffer, about_to_request_buffer_space) | |
6594 | (trace_buffer_is_full, stopping_tracepoint, expr_eval_result) | |
6595 | (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl) | |
6596 | (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi) | |
6597 | (traceframe_read_count, traceframe_write_count) | |
6598 | (traceframes_created, trace_state_variables, get_raw_reg) | |
6599 | (get_trace_state_variable_value, set_trace_state_variable_value) | |
6600 | (ust_loaded, helper_thread_id, cmd_buf): Use | |
6601 | IPA_SYM_EXPORTED_NAME. | |
6602 | (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC. | |
6603 | (tracepoints) Use IP_AGENT_EXPORT_VAR. | |
6604 | (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use | |
6605 | IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
6606 | (last_tracepoint): Move into !IN_PROCESS_AGENT block. | |
6607 | (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in | |
6608 | EXTERN_C_PUSH/EXTERN_C_POP. | |
6609 | (trace_state_variables): Use IP_AGENT_EXPORT_VAR. | |
6610 | (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and | |
6611 | wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
6612 | (trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
6613 | (traceframe_write_count, traceframe_read_count) | |
6614 | (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR. | |
6615 | (about_to_request_buffer_space, get_trace_state_variable_value) | |
6616 | (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC. | |
6617 | (collecting): Use IP_AGENT_EXPORT_VAR and wrap in | |
6618 | EXTERN_C_PUSH/EXTERN_C_POP. | |
6619 | (gdb_collect): Use IP_AGENT_EXPORT_FUNC. | |
6620 | (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR. | |
6621 | (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR | |
6622 | and wrap in EXTERN_C_PUSH/EXTERN_C_POP. | |
6623 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
6624 | (gdb_trampoline_buffer, gdb_trampoline_buffer_end) | |
6625 | (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR. | |
6626 | * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL): | |
6627 | Define. | |
6628 | (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR) | |
6629 | (IP_AGENT_EXPORT_VAR_DECL): Define. | |
6630 | (tracing): Declare. | |
6631 | (gdb_agent_get_raw_reg): Declare. | |
6632 | ||
fe978cb0 PA |
6633 | 2015-02-27 Tom Tromey <tromey@redhat.com> |
6634 | Pedro Alves <palves@redhat.com> | |
6635 | ||
6636 | Rename symbols whose names are reserved C++ keywords throughout. | |
6637 | ||
3bc3d82a PA |
6638 | 2015-02-27 Pedro Alves <palves@redhat.com> |
6639 | ||
6640 | * Makefile.in (COMPILER): New, get it from autoconf. | |
6641 | (CXX): Get from autoconf instead. | |
6642 | (COMPILE.pre): Use COMPILER. | |
6643 | (CC-LD): Rename to ... | |
6644 | (CC_LD): ... this. Use COMPILER. | |
6645 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust. | |
6646 | (CXX_FOR_TARGET): Default to g++ instead of gcc. | |
6647 | * acinclude.m4: Include build-with-cxx.m4. | |
6648 | * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. | |
6649 | Disable -Werror by default if building in C++ mode. | |
6650 | (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and | |
6651 | -Wno-narrowing in C++ mode. Run supported-warning-flags tests with | |
6652 | the C++ compiler. Save/restore CXXFLAGS too. | |
6653 | * configure: Regenerate. | |
6654 | ||
07697489 PA |
6655 | 2015-02-27 Pedro Alves <palves@redhat.com> |
6656 | ||
6657 | * acinclude.m4: Include libiberty.m4. | |
6658 | * configure.ac: Call libiberty_INIT. | |
6659 | * config.in, configure: Regenerate. | |
6660 | ||
9beb7c4e PA |
6661 | 2015-02-26 Pedro Alves <palves@redhat.com> |
6662 | ||
6663 | * linux-low.c (linux_wait_1): When incrementing the PC past a | |
6664 | program breakpoint always use the_low_target.breakpoint_len as | |
6665 | increment, rather than the maximum between that and | |
6666 | the_low_target.decr_pc_after_break. | |
6667 | ||
8090aef2 PA |
6668 | 2015-02-23 Pedro Alves <palves@redhat.com> |
6669 | ||
6670 | * linux-low.c (check_stopped_by_breakpoint): Don't check if the | |
6671 | thread was doing a step-over; always adjust the PC if | |
6672 | we stepped over a permanent breakpoint. | |
6673 | (linux_wait_1): If we stepped over breakpoint that was on top of a | |
6674 | permanent breakpoint, manually advance the PC past it. | |
6675 | ||
bc9540e8 PA |
6676 | 2015-02-23 Pedro Alves <palves@redhat.com> |
6677 | ||
6678 | * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit | |
6679 | modes. | |
6680 | (x86_fill_gregset, x86_store_gregset): Use it when handling | |
6681 | $orig_eax. | |
6682 | ||
2db9a427 PA |
6683 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6684 | ||
6685 | * thread-db.c: Include "nat/linux-procfs.h". | |
6686 | (thread_db_init): Skip listing new threads if the kernel supports | |
6687 | PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible. | |
6688 | ||
afa8d396 PA |
6689 | 2015-02-20 Pedro Alves <palves@redhat.com> |
6690 | ||
6691 | * linux-low.c (status_pending_p_callback): Use ptid_match. | |
6692 | ||
c9587f88 AT |
6693 | 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com> |
6694 | ||
6695 | PR breakpoints/16812 | |
6696 | * linux-low.c (wstatus_maybe_breakpoint): Remove. | |
6697 | (linux_low_filter_event): Update wstatus_maybe_breakpoint name. | |
6698 | (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV. | |
6699 | ||
b05ec7a5 AT |
6700 | 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com> |
6701 | ||
6702 | PR breakpoints/15956 | |
6703 | * tracepoint.c (cmd_qtinit): Add check for current_thread. | |
6704 | ||
d33501a5 MM |
6705 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6706 | ||
6707 | * linux-low.c (linux_low_btrace_conf): Print size. | |
6708 | * server.c (handle_btrace_conf_general_set): New. | |
6709 | (hanle_general_set): Call handle_btrace_conf_general_set. | |
6710 | (handle_query): Report Qbtrace-conf:bts:size as supported. | |
6711 | ||
f4abbc16 MM |
6712 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6713 | ||
6714 | * linux-low.c (linux_low_enable_btrace): Update parameters. | |
6715 | (linux_low_btrace_conf): New. | |
6716 | (linux_target_ops)<to_btrace_conf>: Initialize. | |
6717 | * server.c (current_btrace_conf): New. | |
6718 | (handle_btrace_enable): Rename to ... | |
6719 | (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf | |
6720 | to target_enable_btrace. Update comment. Update users. | |
6721 | (handle_qxfer_btrace_conf): New. | |
6722 | (qxfer_packets): Add btrace-conf entry. | |
6723 | (handle_query): Report qXfer:btrace-conf:read as supported packet. | |
6724 | * target.h (target_ops)<enable_btrace>: Update parameters and comment. | |
6725 | (target_ops)<read_btrace_conf>: New. | |
6726 | (target_enable_btrace): Update parameters. | |
6727 | (target_read_btrace_conf): New. | |
6728 | ||
043c3577 MM |
6729 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6730 | ||
6731 | * server.c (handle_btrace_general_set): Remove call to | |
6732 | target_supports_btrace. | |
6733 | (supported_btrace_packets): New. | |
6734 | (handle_query): Call supported_btrace_packets. | |
6735 | * target.h: include btrace-common.h. | |
6736 | (btrace_target_info): Removed. | |
6737 | (supports_btrace, target_supports_btrace): Update parameters. | |
6738 | ||
734b0e4b MM |
6739 | 2015-02-09 Markus Metzger <markus.t.metzger@intel.com> |
6740 | ||
6741 | * Makefile.in (SFILES): Add common/btrace-common.c. | |
6742 | (OBS): Add common/btrace-common.o. | |
6743 | (btrace-common.o): Add build rules. | |
6744 | * linux-low: Include btrace-common.h. | |
6745 | (linux_low_read_btrace): Use struct btrace_data. Call | |
6746 | btrace_data_init and btrace_data_fini. | |
6747 | ||
d6c146e9 PA |
6748 | 2015-02-06 Pedro Alves <palves@redhat.com> |
6749 | ||
6750 | * thread-db.c (find_new_threads_callback): Add debug output. | |
6751 | ||
20ba1ce6 PA |
6752 | 2015-02-04 Pedro Alves <palves@redhat.com> |
6753 | ||
6754 | * linux-low.c (handle_extended_wait): Don't resume LWPs here. | |
6755 | (resume_stopped_resumed_lwps): New function. | |
6756 | (linux_wait_for_event_filtered): Use it. | |
6757 | ||
8cc73a39 SDJ |
6758 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
6759 | ||
6760 | * Makefile.in (SFILES): Add linux-personality.c. | |
6761 | (linux-personality.o): New rule. | |
6762 | * configure.srv (srv_linux_obj): Add linux-personality.o to the | |
6763 | list of objects to be built. | |
6764 | * linux-low.c: Include nat/linux-personality.h. | |
6765 | (linux_create_inferior): Remove code to disable address space | |
6766 | randomization (moved to ../nat/linux-personality.c). Create | |
6767 | cleanup to disable address space randomization. | |
6768 | ||
fb23d554 SDJ |
6769 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
6770 | ||
6771 | * Makefile.in (posix-strerror.o): New rule. | |
6772 | (mingw-strerror.o): Likewise. | |
6773 | * configure: Regenerated. | |
6774 | * configure.ac: Source file ../common/common.host. Initialize new | |
6775 | variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES. | |
6776 | ||
cdf43629 YQ |
6777 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
6778 | ||
6779 | * Makefile.in (SFILES): Add nat/ppc-linux.c. | |
6780 | (ppc-linux.o): New rule. | |
6781 | * configure.srv (powerpc*-*-linux*): Add ppc-linux.o. | |
6782 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
6783 | * config.in: Re-generated. | |
6784 | * configure: Re-generated. | |
6785 | * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call | |
6786 | ppc64_64bit_inferior_p | |
6787 | ||
514c5338 YQ |
6788 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
6789 | ||
6790 | * linux-ppc-low.c: Include "nat/ppc-linux.h". | |
6791 | (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h. | |
6792 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise. | |
6793 | (PT_ORIG_R3, PT_TRAP): Likewise. | |
6794 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
6795 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
6796 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
6797 | ||
3368c1e5 JB |
6798 | 2015-01-10 Joel Brobecker <brobecker@adacore.com> |
6799 | ||
6800 | * i387-fp.c (i387_cache_to_xsave): In look over | |
6801 | num_avx512_zmmh_high_registers, replace use of struct i387_xsave | |
6802 | zmmh_low_space field by use of zmmh_high_space. | |
6803 | ||
582511be PA |
6804 | 2015-01-09 Pedro Alves <palves@redhat.com> |
6805 | ||
6806 | * linux-low.c (step_over_bkpt): Move higher up in the file. | |
6807 | (handle_extended_wait): Don't store the stop_pc here. | |
6808 | (get_stop_pc): Adjust comments and rename to ... | |
6809 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
6810 | stopped for a software breakpoint or hardware breakpoint. | |
6811 | (thread_still_has_status_pending_p): New function. | |
6812 | (status_pending_p_callback): Use | |
6813 | thread_still_has_status_pending_p. If the event is no longer | |
6814 | interesting, resume the LWP. | |
6815 | (handle_tracepoints): Add assert. | |
6816 | (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call. | |
6817 | (wstatus_maybe_breakpoint): New function. | |
6818 | (cancel_breakpoint): Delete function. | |
6819 | (check_stopped_by_watchpoint): New function, factored out from | |
6820 | linux_low_filter_event. | |
6821 | (lp_status_maybe_breakpoint): Delete function. | |
6822 | (linux_low_filter_event): Remove filter_ptid argument. | |
6823 | Leave thread group exits pending here. Store the LWP's stop PC. | |
6824 | Always leave events pending. | |
6825 | (linux_wait_for_event_filtered): Pull all events out of the | |
6826 | kernel, and leave them all pending. | |
6827 | (count_events_callback, select_event_lwp_callback): Consider all | |
6828 | events. | |
6829 | (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete. | |
6830 | (select_event_lwp): Only give preference to the stepping LWP in | |
6831 | all-stop mode. Adjust comments. | |
6832 | (ignore_event): New function. | |
6833 | (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove | |
6834 | references to cancel_breakpoints. Adjust to renames. Also give | |
6835 | equal priority to all LWPs that have had events in non-stop mode. | |
6836 | If reporting a software breakpoint event, unadjust the LWP's PC. | |
6837 | (linux_wait): If linux_wait_1 returned an ignored event, retry. | |
6838 | (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): | |
6839 | Adjust. | |
6840 | (linux_resume_one_lwp): Store the LWP's PC. Adjust. | |
6841 | (resume_status_pending_p): Use thread_still_has_status_pending_p. | |
6842 | (linux_stopped_by_watchpoint): Adjust. | |
6843 | (linux_target_ops): Remove reference to linux_cancel_breakpoints. | |
6844 | * linux-low.h (enum lwp_stop_reason): New. | |
6845 | (struct lwp_info) <stop_pc>: Adjust comment. | |
6846 | <stopped_by_watchpoint>: Delete field. | |
6847 | <stop_reason>: New field. | |
6848 | * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust. | |
6849 | * mem-break.c (software_breakpoint_inserted_here) | |
6850 | (hardware_breakpoint_inserted_here): New function. | |
6851 | * mem-break.h (software_breakpoint_inserted_here) | |
6852 | (hardware_breakpoint_inserted_here): Declare. | |
6853 | * target.h (struct target_ops) <cancel_breakpoints>: Remove field. | |
6854 | (cancel_breakpoints): Delete. | |
6855 | * tracepoint.c (clear_installed_tracepoints, stop_tracing) | |
6856 | (upload_fast_traceframes): Remove references to | |
6857 | cancel_breakpoints. | |
6858 | ||
a33e3959 PA |
6859 | 2015-01-09 Pedro Alves <palves@redhat.com> |
6860 | ||
6861 | * thread-db.c (find_new_threads_callback): Ignore thread if the | |
6862 | kernel thread ID is -1. | |
6863 | ||
8784d563 PA |
6864 | 2015-01-09 Pedro Alves <palves@redhat.com> |
6865 | ||
6866 | * linux-low.c (linux_attach_fail_reason_string): Move to | |
6867 | nat/linux-ptrace.c, and rename. | |
6868 | (linux_attach_lwp): Update comment. | |
6869 | (attach_proc_task_lwp_callback): New function. | |
6870 | (linux_attach): Adjust to rename and use | |
6871 | linux_proc_attach_tgid_threads. | |
6872 | (linux_attach_fail_reason_string): Delete declaration. | |
6873 | ||
76f2b779 JB |
6874 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6875 | ||
6876 | * gdbreplay.c (gdbreplay_version): Update copyright year to 2015. | |
6877 | * server.c (gdbserver_version): Likewise. | |
6878 | ||
fafcc06a SDJ |
6879 | 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com> |
6880 | ||
6881 | * remote-utils.c: Include ctype.h. | |
6882 | (input_interrupt): Explicitly handle the case when the char | |
6883 | received is the NUL byte. Improve the printing of non-ASCII | |
6884 | characters. | |
6885 | ||
beed38b8 JB |
6886 | 2014-12-16 Joel Brobecker <brobecker@adacore.com> |
6887 | ||
6888 | * linux-low.c (linux_low_filter_event): Update call to | |
6889 | linux_enable_event_reporting following the addition of | |
6890 | a new parameter to that function. | |
6891 | ||
bf330350 CU |
6892 | 2014-12-16 Catalin Udma <catalin.udma@freescale.com> |
6893 | ||
6894 | PR server/17457 | |
6895 | * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define. | |
6896 | (AARCH64_FPCR_REGNO): Likewise. | |
6897 | (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers. | |
6898 | (aarch64_fill_fpregset): Add missing fpsr/fpcr registers. | |
6899 | (aarch64_store_fpregset): Likewise. | |
6900 | ||
5227d625 JB |
6901 | 2014-12-15 Joel Brobecker <brobecker@adacore.com> |
6902 | ||
6903 | * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1. | |
6904 | Remove FIXME comment about assumption about N. | |
6905 | ||
f93b65a0 JB |
6906 | 2014-12-13 Joel Brobecker <brobecker@adacore.com> |
6907 | ||
6908 | * configure.ac: If large-file support is disabled in GDBserver, | |
6909 | pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib". | |
6910 | * configure: Regenerate. | |
6911 | ||
e5a9158d AA |
6912 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6913 | ||
6914 | * linux-low.c (regsets_fetch_inferior_registers): Suppress the | |
6915 | warning upon ENODATA from ptrace. | |
6916 | * linux-s390-low.c (s390_store_tdb): New. | |
6917 | (s390_regsets): Add regset for NT_S390_TDB. | |
6918 | ||
feea5f36 AA |
6919 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6920 | ||
6921 | * linux-low.c (regsets_store_inferior_registers): Skip regsets | |
6922 | without a fill_function. | |
6923 | * linux-s390-low.c (s390_fill_last_break): Remove. | |
6924 | (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK. | |
6925 | (s390_arch_setup): Use regset's size instead of fill_function for | |
6926 | loop end condition. | |
6927 | ||
098dbe61 AA |
6928 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6929 | ||
6930 | * linux-low.c (regsets_fetch_inferior_registers): Do not invoke | |
6931 | the regset's store function when ptrace returned an error. | |
6932 | * regcache.c (get_thread_regcache): Invalidate register cache | |
6933 | before fetching inferior's registers. | |
6934 | ||
28eef672 AA |
6935 | 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6936 | ||
6937 | * linux-low.c (regsets_fetch_inferior_registers): Rephrase | |
6938 | while-loop as for-loop. | |
6939 | (regsets_store_inferior_registers): Likewise. | |
6940 | ||
bdca27a2 YQ |
6941 | 2014-11-28 Yao Qi <yao@codesourcery.com> |
6942 | ||
6943 | * configure.ac(AC_CHECK_FUNCS): Remove readlink. | |
6944 | * config.in, configure: Re-generate. | |
6945 | * hostio.c (handle_unlink): Remove code checking HAVE_READLINK | |
6946 | is defined. | |
6947 | ||
9c232dda YQ |
6948 | 2014-11-21 Yao Qi <yao@codesourcery.com> |
6949 | ||
6950 | * configure.ac: Don't invoke AC_FUNC_ALLOCA. | |
6951 | (AC_CHECK_HEADERS): Remove malloc.h. | |
6952 | * configure: Re-generated. | |
6953 | * config.in: Re-generated. | |
6954 | * server.h: Don't include alloca.h and malloc.h. | |
6955 | * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined. | |
6956 | Don't include malloc.h. | |
6957 | ||
43968415 JB |
6958 | 2014-11-17 Joel Brobecker <brobecker@adacore.com> |
6959 | ||
6960 | * lynx-low.c (lynx_write_memory): Put lynx_read_memory and | |
6961 | corresponding ERRNO check in same block. | |
6962 | ||
40e91bc7 PA |
6963 | 2014-11-12 Pedro Alves <palves@redhat.com> |
6964 | ||
6965 | * server.c (cont_thread): Update comment. | |
6966 | (start_inferior, attach_inferior): No longer clear cont_thread. | |
6967 | (handle_v_cont): No longer set cont_thread. | |
6968 | (captured_main): Clear cont_thread each time a GDB connects. | |
6969 | ||
c2c118cf PA |
6970 | 2014-11-12 Pedro Alves <palves@redhat.com> |
6971 | ||
6972 | * linux-low.c (linux_wait_1): Don't force a wait for the Hc | |
6973 | thread, and don't resume all threads if the Hc thread has exited. | |
6974 | ||
78708b7c PA |
6975 | 2014-11-12 Pedro Alves <palves@redhat.com> |
6976 | ||
6977 | * linux-low.c (linux_request_interrupt): Always send a SIGINT to | |
6978 | the process group instead of to a specific LWP. | |
6979 | ||
a2abc7de PA |
6980 | 2014-10-15 Pedro Alves <palves@redhat.com> |
6981 | ||
6982 | PR server/17487 | |
6983 | * win32-arm-low.c (arm_set_thread_context): Remove current_event | |
6984 | parameter. | |
6985 | (arm_set_thread_context): Delete. | |
6986 | (the_low_target): Adjust. | |
6987 | * win32-i386-low.c (debug_registers_changed) | |
6988 | (debug_registers_used): Delete. | |
6989 | (update_debug_registers_callback): New function. | |
6990 | (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as | |
6991 | needing to update their debug registers. | |
6992 | (win32_get_current_dr): New function. | |
6993 | (x86_dr_low_get_addr, x86_dr_low_get_control) | |
6994 | (x86_dr_low_get_status): Fetch the debug register from the thread | |
6995 | record's context. | |
6996 | (i386_initial_stuff): Adjust. | |
6997 | (i386_get_thread_context): Remove current_event parameter. Don't | |
6998 | clear debug_registers_changed nor copy DR values to | |
6999 | debug_reg_state. | |
7000 | (i386_set_thread_context): Delete. | |
7001 | (i386_prepare_to_resume): New function. | |
7002 | (i386_thread_added): Mark the thread as needing to update irs | |
7003 | debug registers. | |
7004 | (the_low_target): Remove i386_set_thread_context and install | |
7005 | i386_prepare_to_resume. | |
7006 | * win32-low.c (win32_get_thread_context): Adjust. | |
7007 | (win32_set_thread_context): Use SetThreadContext | |
7008 | directly. | |
7009 | (win32_prepare_to_resume): New function. | |
7010 | (win32_require_context): New function, factored out from ... | |
7011 | (thread_rec): ... this. | |
7012 | (continue_one_thread): Call win32_prepare_to_resume on each thread | |
7013 | we're about to continue. | |
7014 | (win32_resume): Call win32_prepare_to_resume on the event thread. | |
7015 | * win32-low.h (struct win32_thread_info) | |
7016 | <debug_registers_changed>: New field. | |
7017 | (struct win32_target_ops): Change prototype of set_thread_context, | |
7018 | delete set_thread_context and add prepare_to_resume. | |
7019 | (win32_require_context): New declaration. | |
7020 | ||
a442d071 GB |
7021 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
7022 | ||
7023 | * server.h: Do not include common-exceptions.h. | |
7024 | ||
6f1947e8 GB |
7025 | 2014-10-08 Gary Benson <gbenson@redhat.com> |
7026 | ||
7027 | * server.h: Do not include cleanups.h. | |
7028 | ||
63b434a4 JH |
7029 | 2014-09-30 James Hogan <james.hogan@imgtec.com> |
7030 | ||
7031 | * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and | |
7032 | mips64-dsp-linux.c. | |
7033 | ||
c4d9ceb6 YQ |
7034 | 2014-09-23 Yao Qi <yao@codesourcery.com> |
7035 | ||
7036 | * linux-low.c (lp_status_maybe_breakpoint): New function. | |
7037 | (linux_low_filter_event): Call lp_status_maybe_breakpoint. | |
7038 | (count_events_callback): Likewise. | |
7039 | (select_event_lwp_callback): Likewise. | |
7040 | (cancel_breakpoints_callback): Likewise. | |
7041 | ||
89a5711c DB |
7042 | 2014-09-19 Don Breazeal <donb@codesourcery.com> |
7043 | ||
7044 | * linux-low.c (handle_extended_wait): Call | |
7045 | linux_ptrace_get_extended_event. | |
7046 | (get_stop_pc, get_detach_signal, linux_low_filter_event): Call | |
7047 | linux_is_extended_waitstatus. | |
7048 | ||
bffc0964 JB |
7049 | 2014-09-16 Joel Brobecker <brobecker@adacore.com> |
7050 | ||
7051 | * Makefile.in (CPPFLAGS): Define. | |
7052 | (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}. | |
7053 | (IPAGENT_CFLAGS): Remove ${CPPFLAGS}. | |
7054 | ||
0bfdf32f GB |
7055 | 2014-09-16 Gary Benson <gbenson@redhat.com> |
7056 | ||
7057 | * inferiors.h (current_inferior): Renamed as... | |
7058 | (current_thread): New variable. All uses updated. | |
7059 | * linux-low.c (get_pc): Renamed saved_inferior as saved_thread. | |
7060 | (maybe_move_out_of_jump_pad): Likewise. | |
7061 | (cancel_breakpoint): Likewise. | |
7062 | (linux_low_filter_event): Likewise. | |
7063 | (wait_for_sigstop): Likewise. | |
7064 | (linux_resume_one_lwp): Likewise. | |
7065 | (need_step_over_p): Likewise. | |
7066 | (start_step_over): Likewise. | |
7067 | (linux_stabilize_threads): Renamed save_inferior as saved_thread. | |
7068 | * linux-x86-low.c (x86_linux_update_xmltarget): Likewise. | |
7069 | * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread | |
7070 | and save_inferior as saved_thread. | |
7071 | * regcache.c (get_thread_regcache): Renamed saved_inferior as | |
7072 | saved_thread. | |
7073 | (regcache_invalidate_thread): Likewise. | |
7074 | * remote-utils.c (prepare_resume_reply): Likewise. | |
7075 | * thread-db.c (thread_db_get_tls_address): Likewise. | |
7076 | (disable_thread_event_reporting): Likewise. | |
7077 | (remove_thread_event_breakpoints): Likewise. | |
7078 | * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior | |
7079 | as saved_thread. | |
7080 | * target.h (set_desired_inferior): Renamed as... | |
7081 | (set_desired_thread): New declaration. All uses updated. | |
7082 | * server.c (myresume): Updated comment to reference thread instead | |
7083 | of inferior. | |
7084 | (handle_serial_event): Likewise. | |
7085 | (handle_target_event): Likewise. | |
7086 | ||
361c8ade GB |
7087 | 2014-09-12 Tom Tromey <tromey@redhat.com> |
7088 | Gary Benson <gbenson@redhat.com> | |
7089 | ||
7090 | * regcache.h: Include common-regcache.h. | |
7091 | (regcache_read_pc): Don't declare. | |
7092 | * regcache.c (get_thread_regcache_for_ptid): New function. | |
7093 | ||
bd9269f7 GB |
7094 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
7095 | Gary Benson <gbenson@redhat.com> | |
7096 | ||
7097 | * symbol.c: New file. | |
7098 | * Makefile.in (SFILES): Add symbol.c. | |
7099 | (OBS): Add symbol.o. | |
7100 | ||
f8c1d06b GB |
7101 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
7102 | ||
7103 | * target.c (target_stop_ptid, target_continue_ptid): New | |
7104 | functions. | |
7105 | ||
721ec300 GB |
7106 | 2014-09-11 Tom Tromey <tromey@redhat.com> |
7107 | Gary Benson <gbenson@redhat.com> | |
7108 | ||
7109 | * target.h: Include target/target.h. | |
7110 | * target.c (target_read_memory, target_read_uint32) | |
7111 | (target_write_memory): New functions. | |
7112 | ||
c5e92cca GB |
7113 | 2014-09-11 Gary Benson <gbenson@redhat.com> |
7114 | ||
7115 | * server.h (debug_hw_points): Don't declare. | |
7116 | * server.c (debug_hw_points): Don't define. Replace all uses | |
7117 | with show_debug_regs. | |
7118 | * linux-aarch64-low.c (debug_hw_points): Don't define. Replace | |
7119 | all uses with show_debug_regs. | |
7120 | ||
2e4bb98a EBM |
7121 | 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
7122 | ||
7123 | * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take | |
7124 | endianness into account. | |
7125 | (ppc_supply_ptrace_register): Likewise. | |
7126 | ||
ac740bc7 JH |
7127 | 2014-09-03 James Hogan <james.hogan@imgtec.com> |
7128 | ||
7129 | * linux-mips-low.c (mips_read_description): Reset errno to 0 prior | |
7130 | to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call. | |
7131 | ||
97ea6506 GB |
7132 | 2014-09-03 Gary Benson <gbenson@redhat.com> |
7133 | ||
7134 | * linux-x86-low.c (x86_linux_prepare_to_resume): Use | |
7135 | ALL_DEBUG_ADDRESS_REGISTERS. | |
7136 | ||
df7e5265 GB |
7137 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
7138 | ||
7139 | * i386-low.h: Renamed as... | |
7140 | * x86-low.h: New file. All type, function and variable name | |
7141 | prefixes changed from "i386_" to "x86_". All references updated. | |
7142 | * i386-low.c: Renamed as... | |
7143 | * x86-low.c: New file. All type, function and variable name | |
7144 | prefixes changed from "i386_" to "x86_". All references updated. | |
7145 | ||
ed859da7 GB |
7146 | 2014-09-02 Gary Benson <gbenson@redhat.com> |
7147 | ||
7148 | * linux-x86-low.c (x86_linux_new_process): Use XCNEW. | |
7149 | (x86_linux_new_thread): Likewise. | |
7150 | ||
860789c7 GB |
7151 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
7152 | ||
7153 | * server.h (setjmp.h): Do not include. | |
7154 | (toplevel): Do not declare. | |
7155 | (common-exceptions.h): Include. | |
7156 | (cleanups.h): Likewise. | |
7157 | * server.c (toplevel): Do not define. | |
7158 | (exit_code): New static global. | |
7159 | (detach_or_kill_for_exit_cleanup): New function. | |
7160 | (main): New function. Original main renamed to... | |
7161 | (captured_main): New function. | |
7162 | * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror. | |
7163 | ||
ff55e1b5 GB |
7164 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
7165 | ||
7166 | * Makefile.in (SFILES): Add common/common-exceptions.c. | |
7167 | (OBS): Add common-exceptions.o. | |
7168 | (common-exceptions.o): New rule. | |
7169 | * utils.c (prepare_to_throw_exception): New function. | |
7170 | ||
e9bcb658 GB |
7171 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
7172 | ||
7173 | * config.in: Regenerate. | |
7174 | * configure: Likewise. | |
7175 | ||
e3180625 GB |
7176 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
7177 | ||
7178 | * Makefile.in (SFILES): Add common/cleanups.c. | |
7179 | (OBS): cleanups.o. | |
7180 | (cleanups.o): New rule. | |
7181 | ||
e3d6ba5d GB |
7182 | 2014-08-29 Gary Benson <gbenson@redhat.com> |
7183 | ||
7184 | * utils.c (internal_vwarning): New function. | |
7185 | ||
7096e886 GB |
7186 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7187 | ||
7188 | * utils.h (fatal): Remove declaration. | |
7189 | * utils.c (fatal): Remove function. | |
7190 | ||
14ce3192 GB |
7191 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7192 | ||
7193 | * tracepoint.c (gdb_agent_init): Replace fatal with | |
7194 | perror_with_name. | |
7195 | (initialize_tracepoint): Likewise. | |
7196 | ||
50278d59 GB |
7197 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7198 | ||
7199 | * remote-utils.c (remote_prepare): Replace fatal with error. | |
7200 | ||
aa96c426 GB |
7201 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7202 | ||
7203 | * linux-low.c (linux_async): Replace fatal with warning. | |
7204 | Tidy up and return. | |
7205 | (linux_start_non_stop): Return -1 if linux_async failed. | |
7206 | ||
f7160e97 GB |
7207 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7208 | ||
7209 | * linux-x86-low.c (i386_dr_low_set_addr): Replace check with | |
7210 | gdb_assert. | |
7211 | (i386_dr_low_get_addr): Remove vague comment. | |
7212 | * win32-i386-low.c (i386_dr_low_set_addr): Replace check with | |
7213 | gdb_assert. | |
7214 | ||
38e08fca GB |
7215 | 2014-08-28 Gary Benson <gbenson@redhat.com> |
7216 | ||
7217 | * inferiors.c (get_thread_process): Replace check with gdb_assert. | |
7218 | * linux-low.c (linux_wait_for_event_filtered): Replace fatal with | |
7219 | internal_error. | |
7220 | (linux_resume_one_lwp): Likewise. | |
7221 | * linux-x86-low.c (x86_siginfo_fixup): Replace checks with | |
7222 | gdb_assert. | |
7223 | * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal | |
7224 | with internal_error. | |
7225 | * regcache.c (get_thread_regcache): Replace check with gdb_assert. | |
7226 | (init_register_cache): Replace fatal with gdb_assert_not_reached. | |
7227 | (find_register_by_name): Replace fatal with internal_error. | |
7228 | (find_regno): Likewise. | |
7229 | * tdesc.c (init_target_desc): Replace check with gdb_assert. | |
7230 | * thread-db.c (thread_db_create_event): Likewise. | |
7231 | (thread_db_load_search): Likewise. | |
7232 | (try_thread_db_load_1): Likewise. | |
7233 | * tracepoint.c (get_jump_space_head): Replace fatal with | |
7234 | internal_error. | |
7235 | (claim_trampoline_space): Likewise. | |
7236 | (have_fast_tracepoint_trampoline_buffer): Likewise. | |
7237 | (cmd_qtstart): Likewise. | |
7238 | (stop_tracing): Likewise. | |
7239 | (fast_tracepoint_collecting): Likewise. | |
7240 | (target_malloc): Likewise. | |
7241 | (download_tracepoint): Likewise. | |
7242 | (download_trace_state_variables): Replace check with gdb_assert. | |
7243 | (upload_fast_traceframes): Replace fatal with internal_error. | |
7244 | ||
34abf635 GB |
7245 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
7246 | Gary Benson <gbenson@redhat.com> | |
7247 | ||
7248 | * Makefile.in (SFILES): Add common/common-debug.c. | |
7249 | (OBS): Add common-debug.o. | |
7250 | (common-debug.o): New rule. | |
7251 | * debug.h (debug_printf): Don't declare. | |
7252 | * debug.c (debug_printf): Renamed and rewritten as... | |
7253 | (debug_vprintf): New function. | |
7254 | ||
f6e94d78 GB |
7255 | 2014-08-19 Gary Benson <gbenson@redhat.com> |
7256 | ||
7257 | * utils.h: Do not include print-utils.h. | |
7258 | ||
9239eeab GB |
7259 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
7260 | Gary Benson <gbenson@redhat.com> | |
7261 | ||
7262 | * server.h: Add static assertion. | |
7263 | (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove. | |
7264 | ||
ef87c8bb GB |
7265 | 2014-08-19 Tom Tromey <tromey@redhat.com> |
7266 | Gary Benson <gbenson@redhat.com> | |
7267 | ||
7268 | * Makefile.in (SFILES): Add common/errors.c. | |
7269 | (OBS): Add errors.o. | |
7270 | (IPA_OBS): Add errors-ipa.o. | |
7271 | (errors.o): New rule. | |
7272 | (errors-ipa.o): Likewise. | |
7273 | * utils.h (perror_with_name, error, warning): Don't declare. | |
7274 | * utils.c (warning): Renamed and rewritten as... | |
7275 | (vwarning): New function. | |
7276 | (error): Renamed and rewritten as... | |
7277 | (verror): New function. | |
7278 | (internal_error): Renamed and rewritten as... | |
7279 | (internal_verror): New function. | |
7280 | ||
bb974a24 GB |
7281 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7282 | ||
7283 | * configure.ac (AC_CHECK_HEADERS): Remove errno.h. | |
7284 | * configure: Regenerate. | |
7285 | * config.in: Likewise. | |
7286 | * server.h: Do not include errno.h. | |
7287 | * event-loop.c: Likewise. | |
7288 | * hostio-errno.c: Likewise. | |
7289 | * linux-low.c: Likewise. | |
7290 | * remote-utils.c: Likewise. | |
7291 | * spu-low.c: Likewise. | |
7292 | * utils.c: Likewise. | |
7293 | * gdbreplay.c: Unconditionally include errno.h. | |
7294 | ||
6d3d12eb GB |
7295 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7296 | ||
7297 | * server.h: Do not include string.h. | |
7298 | * event-loop.c: Likewise. | |
7299 | * linux-low.c: Likewise. | |
7300 | * regcache.c: Likewise. | |
7301 | * remote-utils.c: Likewise. | |
7302 | * spu-low.c: Likewise. | |
7303 | * utils.c: Likewise. | |
7304 | ||
dccbb609 GB |
7305 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7306 | ||
7307 | * server.h: Do not include gdb_assert.h. | |
7308 | ||
e76df0d0 GB |
7309 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7310 | ||
7311 | * server.h: Do not include common-utils.h. | |
7312 | ||
4cb9c816 GB |
7313 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7314 | ||
7315 | * server.h: Do not include ptid.h. | |
7316 | * notif.h: Likewise. | |
7317 | ||
3995eeee GB |
7318 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7319 | ||
7320 | * server.h: Do not include gdb_locale.h. | |
7321 | ||
cb9f1a9b GB |
7322 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7323 | ||
7324 | * server.h: Do not include gdb/signals.h. | |
7325 | * win32-low.c: Likewise. | |
7326 | ||
a5fceff8 GB |
7327 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7328 | ||
7329 | * server.h: Do not include pathmax.h. | |
7330 | ||
b9391142 GB |
7331 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7332 | ||
7333 | * server.h: Do not include libiberty.h. | |
7334 | * linux-bfin-low.c: Likewise. | |
7335 | ||
0e443c87 GB |
7336 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7337 | ||
7338 | * server.h: Do not include ansidecl.h. | |
7339 | ||
8ebb3f56 GB |
7340 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7341 | ||
7342 | * linux-x86-low.c: Do not include stddef.h. | |
7343 | * lynx-ppc-low.c: Likewise. | |
7344 | * tracepoint.c: Likewise. | |
7345 | ||
8980bdf6 GB |
7346 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7347 | ||
7348 | * server.h: Do not include stdarg.h. | |
7349 | * nto-low.c: Likewise. | |
7350 | ||
d7096f71 GB |
7351 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7352 | ||
7353 | * server.h: Do not include stdlib.h. | |
7354 | * inferiors.c: Likewise. | |
7355 | * linux-low.c: Likewise. | |
7356 | * regcache.c: Likewise. | |
7357 | * spu-low.c: Likewise. | |
7358 | * tracepoint.c: Likewise. | |
7359 | * utils.c: Likewise. | |
7360 | ||
d02f550d GB |
7361 | 2014-08-07 Gary Benson <gbenson@redhat.com> |
7362 | ||
7363 | * server.h: Do not include stdio.h. | |
7364 | * linux-low.c: Likewise. | |
7365 | * remote-utils.c: Likewise. | |
7366 | * spu-low.c: Likewise. | |
7367 | * utils.c: Likewise. | |
7368 | * wincecompat.c: Likewise. | |
7369 | ||
87f6c4e3 GB |
7370 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
7371 | ||
7372 | * regcache.c (init_register_cache): Move conditionals inside if. | |
7373 | ||
7089dca4 GB |
7374 | 2014-08-06 Gary Benson <gbenson@redhat.com> |
7375 | ||
7376 | * linux-low.c (linux_supports_non_stop): Use target_is_async_p. | |
7377 | ||
462f517e GB |
7378 | 2014-07-31 Gary Benson <gbenson@redhat.com> |
7379 | ||
7380 | * ax.h: Do not include server.h. | |
7381 | * gdbthread.h: Likewise. | |
7382 | * lynx-low.h: Likewise. | |
7383 | * notif.h: Likewise. | |
7384 | ||
976411d6 GB |
7385 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
7386 | ||
7387 | * server.h: Include common-defs.h. | |
7388 | Do not include config.h or build-gnulib-gdbserver/config.h. | |
7389 | ||
d41f6d8e GB |
7390 | 2014-07-30 Gary Benson <gbenson@redhat.com> |
7391 | ||
7392 | * hostio-errno.c: Move server.h to top of includes list. | |
7393 | * inferiors.c: Likewise. | |
7394 | * linux-x86-low.c: Likewise. | |
7395 | * notif.c: Include server.h. | |
7396 | ||
314c6a35 TT |
7397 | 2014-07-24 Tom Tromey <tromey@redhat.com> |
7398 | Gary Benson <gbenson@redhat.com> | |
7399 | ||
7400 | * server.h (CORE_ADDR): Now unsigned. | |
7401 | ||
69ff6be5 PA |
7402 | 2014-07-16 Pedro Alves <palves@redhat.com> |
7403 | ||
7404 | * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill. | |
7405 | ||
ce9e3fe7 PA |
7406 | 2014-07-15 Pedro Alves <palves@redhat.com> |
7407 | ||
7408 | * linux-low.c (linux_kill_one_lwp): Save errno and work with saved | |
7409 | copy. | |
7410 | ||
e76126e8 PA |
7411 | 2014-07-11 Pedro Alves <palves@redhat.com> |
7412 | ||
7413 | * linux-low.c (kill_wait_lwp): New function, based on | |
7414 | kill_one_lwp_callback, but use my_waitpid directly. | |
7415 | (kill_one_lwp_callback, linux_kill): Use it. | |
7416 | ||
8e9db26e PA |
7417 | 2014-06-23 Pedro Alves <palves@redhat.com> |
7418 | ||
7419 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL | |
7420 | before setting DR0..DR3. | |
7421 | ||
698b3e08 GB |
7422 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
7423 | ||
7424 | * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed. | |
7425 | * configure: Regenerated. | |
7426 | * config.in: Likewise. | |
7427 | ||
125f8a3d GB |
7428 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
7429 | ||
7430 | * Makefile.in (SFILES): Update locations for files moved | |
7431 | from common to nat. | |
7432 | (object file files): Reordered. | |
7433 | ||
42995dbd GB |
7434 | 2014-06-20 Gary Benson <gbenson@redhat.com> |
7435 | ||
7436 | * i386-low.h (i386_dr_low_can_set_addr): Removed. | |
7437 | (i386_dr_low_set_addr): Likewise. | |
7438 | (i386_dr_low_get_addr): Likewise. | |
7439 | (i386_dr_low_can_set_control): Likewise. | |
7440 | (i386_dr_low_set_control): Likewise. | |
7441 | (i386_dr_low_get_control): Likewise. | |
7442 | (i386_dr_low_get_status): Likewise. | |
7443 | (i386_get_debug_register_length): Likewise. | |
7444 | * linux-x86-low.c (i386_dr_low_set_addr): | |
7445 | Changed signature. Made static. | |
7446 | (i386_dr_low_get_addr): Likewise. | |
7447 | (i386_dr_low_set_control): Likewise. | |
7448 | (i386_dr_low_get_control): Likewise. | |
7449 | (i386_dr_low_get_status): Likewise. | |
7450 | (i386_dr_low): New global variable. | |
7451 | * win32-i386-low.c (i386_dr_low_set_addr): | |
7452 | Changed signature. Made static. | |
7453 | (i386_dr_low_get_addr): Likewise. | |
7454 | (i386_dr_low_set_control): Likewise. | |
7455 | (i386_dr_low_get_control): Likewise. | |
7456 | (i386_dr_low_get_status): Likewise. | |
7457 | (i386_dr_low): New global variable. | |
7458 | ||
e1d2394b MS |
7459 | 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com> |
7460 | ||
7461 | * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar). | |
7462 | * Makefile.in (AR, AR_FLAGS): Define. | |
7463 | * configure: Regenerate. | |
7464 | ||
3a8ee006 GB |
7465 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
7466 | ||
7467 | * Makefile.in (i386-dregs.o): New rule. | |
7468 | * configure.srv: Add i386-dregs.o to all targets using i386-low.o. | |
7469 | * i386-low.c (target.h): Remove include. | |
7470 | (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c. | |
7471 | (DR_CONTROL_SHIFT): Likewise. | |
7472 | (DR_CONTROL_SIZE): Likewise. | |
7473 | (DR_RW_EXECUTE): Likewise. | |
7474 | (DR_RW_WRITE): Likewise. | |
7475 | (DR_RW_READ): Likewise. | |
7476 | (DR_RW_IORW): Likewise. | |
7477 | (DR_LEN_1): Likewise. | |
7478 | (DR_LEN_2): Likewise. | |
7479 | (DR_LEN_4): Likewise. | |
7480 | (DR_LEN_8): Likewise. | |
7481 | (DR_LOCAL_ENABLE_SHIFT): Likewise. | |
7482 | (DR_GLOBAL_ENABLE_SHIFT): Likewise. | |
7483 | (DR_ENABLE_SIZE): Likewise. | |
7484 | (DR_LOCAL_SLOWDOWN): Likewise. | |
7485 | (DR_GLOBAL_SLOWDOWN): Likewise. | |
7486 | (DR_CONTROL_RESERVED): Likewise. | |
7487 | (I386_DR_CONTROL_MASK): Likewise. | |
7488 | (I386_DR_VACANT): Likewise. | |
7489 | (I386_DR_LOCAL_ENABLE): Likewise. | |
7490 | (I386_DR_GLOBAL_ENABLE): Likewise. | |
7491 | (I386_DR_DISABLE): Likewise. | |
7492 | (I386_DR_SET_RW_LEN): Likewise. | |
7493 | (I386_DR_GET_RW_LEN): Likewise. | |
7494 | (I386_DR_WATCH_HIT): Likewise. | |
7495 | (i386_wp_op_t): Likewise. | |
7496 | (i386_show_dr): Likewise. | |
7497 | (i386_length_and_rw_bits): Likewise. | |
7498 | (i386_insert_aligned_watchpoint): Likewise. | |
7499 | (i386_remove_aligned_watchpoint): Likewise. | |
7500 | (i386_handle_nonaligned_watchpoint): Likewise. | |
7501 | i386_update_inferior_debug_regs(): Likewise. | |
7502 | (i386_dr_insert_watchpoint): Likewise. | |
7503 | (i386_dr_remove_watchpoint): Likewise. | |
7504 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
7505 | (i386_dr_stopped_data_address): Likewise. | |
7506 | (i386_dr_stopped_by_watchpoint): Likewise. | |
7507 | ||
8f26655c GB |
7508 | 2014-06-19 Gary Benson <gbenson@redhat.com> |
7509 | ||
7510 | * i386-low.c (i386_dr_show): Renamed to | |
7511 | i386_show_dr and made static. All uses updated. | |
7512 | (i386_dr_length_and_rw_bits): Renamed to | |
7513 | i386_length_and_rw_bits and made static. | |
7514 | All uses updated. | |
7515 | (i386_dr_insert_aligned_watchpoint): Renamed to | |
7516 | i386_insert_aligned_watchpoint and made static. | |
7517 | All uses updated. | |
7518 | (i386_dr_remove_aligned_watchpoint): Renamed to | |
7519 | i386_remove_aligned_watchpoint and made static. | |
7520 | All uses updated. | |
7521 | (i386_dr_update_inferior_debug_regs): Renamed to | |
7522 | i386_update_inferior_debug_regs and made static. | |
7523 | All uses updated. | |
7524 | ||
b9228891 GB |
7525 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7526 | ||
5171def3 GB |
7527 | * i386-low.h (i386_dr_low_can_set_addr): New macro. |
7528 | (i386_dr_low_can_set_control): Likewise. | |
7529 | (i386_get_debug_register_length): Likewise. | |
7530 | * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h. | |
7531 | (i386_dr_low_can_set_control): Likewise. | |
7532 | (i386_get_debug_register_length): Likewise. | |
7533 | ||
7534 | 2014-06-17 Gary Benson <gbenson@redhat.com> | |
7535 | ||
b9228891 GB |
7536 | * i386-low.h (i386-dregs.h): New include. |
7537 | (DR_FIRSTADDR): Now in i386-dregs.h. | |
7538 | (DR_LASTADDR): Likewise. | |
7539 | (DR_NADDR): Likewise. | |
7540 | (DR_STATUS): Likewise. | |
7541 | (DR_CONTROL): Likewise. | |
7542 | (i386_debug_reg_state): Likewise. | |
7543 | (i386_dr_insert_watchpoint): Likewise. | |
7544 | (i386_dr_remove_watchpoint): Likewise. | |
7545 | (i386_dr_region_ok_for_watchpoint): Likewise. | |
7546 | (i386_dr_stopped_data_address): Likewise. | |
7547 | (i386_dr_stopped_by_watchpoint): Likewise. | |
7548 | * i386-low.c (ALL_DEBUG_REGISTERS): Likewise. | |
7549 | ||
4be83cc2 GB |
7550 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7551 | ||
7552 | * i386-low.h (i386_low_insert_watchpoint): Renamed to | |
7553 | i386_dr_insert_watchpoint. | |
7554 | (i386_low_remove_watchpoint): Renamed to | |
7555 | i386_dr_remove_watchpoint. | |
7556 | (i386_low_region_ok_for_watchpoint): Renamed to | |
7557 | i386_dr_region_ok_for_watchpoint. | |
7558 | (i386_low_stopped_data_address): Renamed to | |
7559 | i386_dr_stopped_data_address. | |
7560 | (i386_low_stopped_by_watchpoint): Renamed to | |
7561 | i386_dr_stopped_by_watchpoint. | |
7562 | * i386-low.c (i386_show_dr): Renamed to | |
7563 | i386_dr_show and made nonstatic. All uses updated. | |
7564 | (i386_length_and_rw_bits): Renamed to | |
7565 | i386_dr_length_and_rw_bits and made nonstatic. | |
7566 | All uses updated. | |
7567 | (i386_insert_aligned_watchpoint): Renamed to | |
7568 | i386_dr_insert_aligned_watchpoint and made nonstatic. | |
7569 | All uses updated. | |
7570 | (i386_remove_aligned_watchpoint): Renamed to | |
7571 | i386_dr_remove_aligned_watchpoint and made nonstatic. | |
7572 | All uses updated. | |
7573 | (i386_update_inferior_debug_regs): Renamed to | |
7574 | i386_dr_update_inferior_debug_regs and made nonstatic. | |
7575 | All uses updated. | |
7576 | (i386_low_insert_watchpoint): Renamed to | |
7577 | i386_dr_insert_watchpoint. All uses updated. | |
7578 | (i386_low_remove_watchpoint): Renamed to | |
7579 | i386_dr_remove_watchpoint. All uses updated. | |
7580 | (i386_low_region_ok_for_watchpoint): Renamed to | |
7581 | i386_dr_region_ok_for_watchpoint. All uses updated. | |
7582 | (i386_low_stopped_data_address): Renamed to | |
7583 | i386_dr_stopped_data_address. All uses updated. | |
7584 | (i386_low_stopped_by_watchpoint): Renamed to | |
7585 | i386_dr_stopped_by_watchpoint. All uses updated. | |
7586 | ||
131aa0d4 GB |
7587 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7588 | ||
7589 | * i386-low.c (i386_dr_low_can_set_addr): New macro. | |
7590 | (i386_dr_low_can_set_control): Likewise. | |
7591 | (i386_insert_aligned_watchpoint): New check. | |
7592 | ||
d9305f7f GB |
7593 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7594 | ||
7595 | * i386-low.c (i386_update_inferior_debug_regs) <inf_state>: | |
7596 | Renamed to state. | |
7597 | ||
e927c9fc GB |
7598 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7599 | ||
7600 | * i386-low.c (i386_length_and_rw_bits): Use internal_error | |
7601 | instead of fatal and error. | |
7602 | (i386_handle_nonaligned_watchpoint): Likewise. | |
7603 | ||
1b6d4134 GB |
7604 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7605 | ||
7606 | * i386-low.c (i386_get_debug_register_length): New macro. | |
7607 | (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro. | |
7608 | (i386_show_dr): Use debug_printf instead of fprintf. Use | |
7609 | phex to format values. | |
7610 | ||
6e62758f GB |
7611 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7612 | ||
7613 | * i386-low.h: Comment changes. | |
7614 | * i386-low.c: Likewise. | |
7615 | ||
fc6e2f03 GB |
7616 | 2014-06-18 Gary Benson <gbenson@redhat.com> |
7617 | ||
7618 | * i386-low.c: Whitespace changes. | |
7619 | ||
f9d1eeed TT |
7620 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
7621 | ||
7622 | * utils.c (freeargv): Remove. | |
7623 | ||
0b04e523 TT |
7624 | 2014-06-12 Tom Tromey <tromey@redhat.com> |
7625 | ||
7626 | * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks. | |
7627 | * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check. | |
7628 | (parse_debug_format_options): Likewise. | |
7629 | (gdbserver_usage): Likewise. | |
7630 | * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables. | |
7631 | (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty. | |
7632 | (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link | |
7633 | against libiberty. | |
7634 | ($(LIBGNU)): Depend on libiberty. | |
7635 | (all-lib): Recurse into all subdirs. | |
7636 | (install-only): Invoke "install" target in subdirs. | |
7637 | (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove | |
7638 | targets. | |
7639 | * configure: Rebuild. | |
7640 | * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check | |
7641 | for vasprintf, vsnprintf, or gettimeofday. | |
7642 | * configure.srv: Don't add safe-ctype.o or lbasename.o to | |
7643 | srv_tgtobj. | |
7644 | ||
270c9937 JB |
7645 | 2014-06-05 Joel Brobecker <brobecker@adacore.com> |
7646 | ||
7647 | * development.sh: Delete. | |
7648 | * Makefile.in (config.status): Adjust dependency on development.sh. | |
7649 | * configure.ac: Adjust development.sh source call. | |
7650 | * configure: Regenerate. | |
7651 | ||
0a261ed8 PA |
7652 | 2014-06-02 Pedro Alves <palves@redhat.com> |
7653 | ||
7654 | * ax.c (gdb_free_agent_expr): New function. | |
7655 | * ax.h (gdb_free_agent_expr): New declaration. | |
7656 | * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands | |
7657 | list. | |
7658 | (clear_breakpoint_conditions, clear_breakpoint_commands): Make | |
7659 | static. | |
7660 | (clear_breakpoint_conditions_and_commands): New function. | |
7661 | * mem-break.h (clear_breakpoint_conditions): Delete declaration. | |
7662 | (clear_breakpoint_conditions_and_commands): New declaration. | |
7663 | ||
e9dae05e RR |
7664 | 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
7665 | ||
7666 | * linux-aarch64-low.c (asm/ptrace.h): Include. | |
7667 | ||
5876f503 JK |
7668 | 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
7669 | ||
7670 | Fix TLS access for -static -pthread. | |
7671 | * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p. | |
7672 | (thread_db_get_tls_address): Call it if LOAD_MODULE is zero. | |
7673 | (thread_db_load_search, try_thread_db_load_1): Initialize it. | |
7674 | ||
802e8e6d PA |
7675 | 2014-05-20 Pedro Alves <palves@redhat.com> |
7676 | ||
7677 | * linux-aarch64-low.c (aarch64_insert_point) | |
7678 | (aarch64_remove_point): No longer check whether the type is | |
7679 | supported here. Adjust to new interface. | |
7680 | (the_low_target): Install aarch64_supports_z_point_type as | |
7681 | supports_z_point_type method. | |
7682 | * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function. | |
7683 | (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type | |
7684 | instead of a Z packet char. Adjust. | |
7685 | (arm_supports_z_point_type): New function. | |
7686 | (arm_insert_point, arm_remove_point): Adjust to new interface. | |
7687 | (the_low_target): Install arm_supports_z_point_type. | |
7688 | * linux-crisv32-low.c (cris_supports_z_point_type): New function. | |
7689 | (cris_insert_point, cris_remove_point): Adjust to new interface. | |
7690 | Don't check whether the type is supported here. | |
7691 | (the_low_target): Install cris_supports_z_point_type. | |
7692 | * linux-low.c (linux_supports_z_point_type): New function. | |
7693 | (linux_insert_point, linux_remove_point): Adjust to new interface. | |
7694 | * linux-low.h (struct linux_target_ops) <insert_point, | |
7695 | remove_point>: Take an enum raw_bkpt_type instead of a char. Add | |
7696 | raw_breakpoint pointer parameter. | |
7697 | <supports_z_point_type>: New method. | |
7698 | * linux-mips-low.c (mips_supports_z_point_type): New function. | |
7699 | (mips_insert_point, mips_remove_point): Adjust to new interface. | |
7700 | Use mips_supports_z_point_type. | |
7701 | (the_low_target): Install mips_supports_z_point_type. | |
7702 | * linux-ppc-low.c (the_low_target): Install NULL as | |
7703 | supports_z_point_type method. | |
7704 | * linux-s390-low.c (the_low_target): Install NULL as | |
7705 | supports_z_point_type method. | |
7706 | * linux-sparc-low.c (the_low_target): Install NULL as | |
7707 | supports_z_point_type method. | |
7708 | * linux-x86-low.c (x86_supports_z_point_type): New function. | |
7709 | (x86_insert_point): Adjust to new insert_point interface. Use | |
7710 | insert_memory_breakpoint. Adjust to new | |
7711 | i386_low_insert_watchpoint interface. | |
7712 | (x86_remove_point): Adjust to remove_point interface. Use | |
7713 | remove_memory_breakpoint. Adjust to new | |
7714 | i386_low_remove_watchpoint interface. | |
7715 | (the_low_target): Install x86_supports_z_point_type. | |
7716 | * lynx-low.c (lynx_target_ops): Install NULL as | |
7717 | supports_z_point_type callback. | |
7718 | * nto-low.c (nto_supports_z_point_type): New. | |
7719 | (nto_insert_point, nto_remove_point): Adjust to new interface. | |
7720 | (nto_target_ops): Install nto_supports_z_point_type. | |
7721 | * mem-break.c: Adjust intro comment. | |
7722 | (struct raw_breakpoint) <raw_type, size>: New fields. | |
7723 | <inserted>: Update comment. | |
7724 | <shlib_disabled>: Delete field. | |
7725 | (enum bkpt_type) <gdb_breakpoint>: Delete value. | |
7726 | <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, | |
7727 | gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values. | |
7728 | (raw_bkpt_type_to_target_hw_bp_type): New function. | |
7729 | (find_enabled_raw_code_breakpoint_at): New function. | |
7730 | (find_raw_breakpoint_at): New type and size parameters. Use them. | |
7731 | (insert_memory_breakpoint): New function, based off | |
7732 | set_raw_breakpoint_at. | |
7733 | (remove_memory_breakpoint): New function. | |
7734 | (set_raw_breakpoint_at): Reimplement. | |
7735 | (set_breakpoint): New, based on set_breakpoint_at. | |
7736 | (set_breakpoint_at): Reimplement. | |
7737 | (delete_raw_breakpoint): Go through the_target->remove_point | |
7738 | instead of assuming memory breakpoints. | |
7739 | (find_gdb_breakpoint_at): Delete. | |
7740 | (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions. | |
7741 | (find_gdb_breakpoint): New function. | |
7742 | (set_gdb_breakpoint_at): Delete. | |
7743 | (z_type_supported): New function. | |
7744 | (set_gdb_breakpoint_1): New function, loosely based off | |
7745 | set_gdb_breakpoint_at. | |
7746 | (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions. | |
7747 | (delete_gdb_breakpoint_at): Delete. | |
7748 | (delete_gdb_breakpoint_1): New function, loosely based off | |
7749 | delete_gdb_breakpoint_at. | |
7750 | (delete_gdb_breakpoint): New function. | |
7751 | (clear_gdb_breakpoint_conditions): Rename to ... | |
7752 | (clear_breakpoint_conditions): ... this. Don't handle a NULL | |
7753 | breakpoint. | |
7754 | (add_condition_to_breakpoint): Make static. | |
7755 | (add_breakpoint_condition): Take a struct breakpoint pointer | |
7756 | instead of an address. Adjust. | |
7757 | (gdb_condition_true_at_breakpoint): Rename to ... | |
7758 | (gdb_condition_true_at_breakpoint_z_type): ... this, and add | |
7759 | z_type parameter. | |
7760 | (gdb_condition_true_at_breakpoint): Reimplement. | |
7761 | (add_breakpoint_commands): Take a struct breakpoint pointer | |
7762 | instead of an address. Adjust. | |
7763 | (gdb_no_commands_at_breakpoint): Rename to ... | |
7764 | (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type | |
7765 | parameter. Return true if no breakpoint was found. Change debug | |
7766 | output. | |
7767 | (gdb_no_commands_at_breakpoint): Reimplement. | |
7768 | (run_breakpoint_commands): Rename to ... | |
7769 | (run_breakpoint_commands_z_type): ... this. Add z_type parameter, | |
7770 | and change return type to boolean. | |
7771 | (run_breakpoint_commands): New function. | |
7772 | (gdb_breakpoint_here): Also check for Z1 breakpoints. | |
7773 | (uninsert_raw_breakpoint): Don't try to reinsert a disabled | |
7774 | breakpoint. Go through the_target->remove_point instead of | |
7775 | assuming memory breakpoint. | |
7776 | (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert | |
7777 | software and hardware breakpoints. | |
7778 | (reinsert_raw_breakpoint): Go through the_target->insert_point | |
7779 | instead of assuming memory breakpoint. | |
7780 | (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert | |
7781 | software and hardware breakpoints. | |
7782 | (check_breakpoints, breakpoint_here, breakpoint_inserted_here): | |
7783 | Check both software and hardware breakpoints. | |
7784 | (validate_inserted_breakpoint): Assert the breakpoint is a | |
7785 | software breakpoint. Set the inserted flag to -1 instead of | |
7786 | setting shlib_disabled. | |
7787 | (delete_disabled_breakpoints): Adjust. | |
7788 | (validate_breakpoints): Only validate software breakpoints. | |
7789 | Adjust to inserted flag change. | |
7790 | (check_mem_read, check_mem_write): Skip breakpoint types other | |
7791 | than software breakpoints. Adjust to inserted flag change. | |
7792 | * mem-break.h (enum raw_bkpt_type): New enum. | |
7793 | (raw_breakpoint, struct process_info): Forward declare. | |
7794 | (Z_packet_to_target_hw_bp_type): Delete declaration. | |
7795 | (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type) | |
7796 | (set_gdb_breakpoint, delete_gdb_breakpoint) | |
7797 | (clear_breakpoint_conditions): New declarations. | |
7798 | (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete. | |
7799 | (breakpoint_inserted_here): Update comment. | |
7800 | (add_breakpoint_condition, add_breakpoint_commands): Replace | |
7801 | address parameter with a breakpoint pointer parameter. | |
7802 | (gdb_breakpoint_here): Update comment. | |
7803 | (delete_gdb_breakpoint_at): Delete. | |
7804 | (insert_memory_breakpoint, remove_memory_breakpoint): Declare. | |
7805 | * server.c (process_point_options): Take a struct breakpoint | |
7806 | pointer instead of an address. Adjust. | |
7807 | (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and | |
7808 | delete_gdb_breakpoint. | |
7809 | * spu-low.c (spu_target_ops): Install NULL as | |
7810 | supports_z_point_type method. | |
7811 | * target.h: Include mem-break.h. | |
7812 | (struct target_ops) <prepare_to_access_memory>: Update comment. | |
7813 | <supports_z_point_type>: New field. | |
7814 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
7815 | instead of a char. Also take a raw breakpoint pointer. | |
7816 | * win32-arm-low.c (the_low_target): Install NULL as | |
7817 | supports_z_point_type. | |
7818 | * win32-i386-low.c (i386_supports_z_point_type): New function. | |
7819 | (i386_insert_point, i386_remove_point): Adjust to new interface. | |
7820 | (the_low_target): Install i386_supports_z_point_type. | |
7821 | * win32-low.c (win32_supports_z_point_type): New function. | |
7822 | (win32_insert_point, win32_remove_point): Adjust to new interface. | |
7823 | (win32_target_ops): Install win32_supports_z_point_type. | |
7824 | * win32-low.h (struct win32_target_ops): | |
7825 | <supports_z_point_type>: New method. | |
7826 | <insert_point, remove_point>: Take an enum raw_bkpt_type argument | |
7827 | instead of a char. Also take a raw breakpoint pointer. | |
7828 | ||
932539e3 PA |
7829 | 2014-05-20 Pedro Alves <palves@redhat.com> |
7830 | ||
7831 | * mem-break.h: Include break-common.h. | |
7832 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
7833 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines. | |
7834 | (Z_packet_to_target_hw_bp_type): New declaration. | |
7835 | * mem-break.c (Z_packet_to_target_hw_bp_type): New function. | |
7836 | * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP) | |
7837 | (Z_PACKET_ACCESS_WP): Delete macros. | |
7838 | (Z_packet_to_hw_type): Delete function. | |
7839 | * i386-low.h: Don't include break-common.h here. | |
7840 | (Z_packet_to_hw_type): Delete declaration. | |
7841 | * linux-x86-low.c (x86_insert_point, x86_insert_point): Call | |
7842 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
7843 | * win32-i386-low.c (i386_insert_point, i386_remove_point): Call | |
7844 | Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type. | |
7845 | * linux-aarch64-low.c: Don't include break-common.h here. | |
7846 | (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP) | |
7847 | (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros. | |
7848 | (Z_packet_to_target_hw_bp_type): Delete function. | |
7849 | * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete | |
7850 | function. | |
7851 | (mips_insert_point, mips_remove_point): Use | |
7852 | Z_packet_to_target_hw_bp_type. | |
7853 | ||
4ff0d3d8 PA |
7854 | 2014-05-20 Pedro Alves <palves@redhat.com> |
7855 | ||
7856 | * linux-aarch64-low.c: Include break-common.h. | |
7857 | (enum target_point_type): Delete. | |
7858 | (Z_packet_to_point_type): Rename to ... | |
7859 | (Z_packet_to_target_hw_bp_type): ... this, and return a | |
7860 | target_hw_bp_type instead. | |
7861 | (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type | |
7862 | instead of an enum target_point_type. | |
7863 | (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from | |
7864 | breakpoint type. | |
7865 | (aarch64_dr_state_insert_one_point) | |
7866 | (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint) | |
7867 | (aarch64_handle_aligned_watchpoint) | |
7868 | (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint): | |
7869 | Take an enum target_hw_bp_type instead of an enum | |
7870 | target_point_type. | |
7871 | (aarch64_supports_z_point_type): New function. | |
7872 | (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to | |
7873 | use Z_packet_to_target_hw_bp_type. | |
7874 | ||
786dc519 JB |
7875 | 2014-05-20 Joel Brobecker <brobecker@adacore.com> |
7876 | ||
7877 | * configure.ac: Only use -Werror by default when DEVELOPMENT | |
7878 | is true. | |
7879 | * configure: Regenerate. | |
7880 | ||
9e0aa64f JK |
7881 | 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
7882 | ||
7883 | Fix gdbserver qGetTLSAddr for x86_64 -m32. | |
7884 | * linux-x86-low.c (X86_64_USER_REGS): New. | |
7885 | (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case. | |
7886 | ||
2b577b92 YQ |
7887 | 2014-04-28 Yao Qi <yao@codesourcery.com> |
7888 | ||
7889 | * Makefile.in (i386-avx512.c): Fix the typo of generated file | |
7890 | name. | |
7891 | ||
94611da2 PA |
7892 | 2014-04-25 Pedro Alves <palves@redhat.com> |
7893 | ||
7894 | PR server/16255 | |
7895 | * linux-low.c (linux_attach_fail_reason_string): New function. | |
7896 | (linux_attach_lwp): Delete. | |
7897 | (linux_attach_lwp_1): Rename to ... | |
7898 | (linux_attach_lwp): ... this. Take a ptid instead of a pid as | |
7899 | argument. Remove "initial" parameter. Return int instead of | |
7900 | void. Don't error or warn here. | |
7901 | (linux_attach): Adjust to call linux_attach_lwp. Call error on | |
7902 | failure to attach to the tgid. Call warning when failing to | |
7903 | attach to an lwp. | |
7904 | * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as | |
7905 | argument. Remove "initial" parameter. Return int instead of | |
7906 | void. Don't error or warn here. | |
7907 | (linux_attach_fail_reason_string): New declaration. | |
7908 | * thread-db.c (attach_thread): Adjust to linux_attach_lwp's | |
7909 | interface change. Use linux_attach_fail_reason_string. | |
7910 | ||
01f9f808 MS |
7911 | 2014-04-24 Michael Sturm <michael.sturm@mintel.com> |
7912 | Walfred Tedeschi <walfred.tedeschi@intel.com> | |
7913 | ||
7914 | * Makefile.in: Added rules to handle new files | |
7915 | i386-avx512.c i386-avx512-linux.c amd64-avx512.c | |
7916 | amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c. | |
7917 | * configure.srv (srv_i386_regobj): Add i386-avx512.o. | |
7918 | (srv_i386_linux_regobj): Add i386-avx512-linux.o. | |
7919 | (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o. | |
7920 | (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and | |
7921 | x32-avx512-linux.o. | |
7922 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml. | |
7923 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml. | |
7924 | (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and | |
7925 | i386/x32-avx512.xml. | |
7926 | (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml. | |
7927 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and | |
7928 | i386/x32-avx512-linux.xml. | |
7929 | * i387-fp.c (num_avx512_k_registers): New constant for number | |
7930 | of K registers. | |
7931 | (num_avx512_zmmh_low_registers): New constant for number of | |
7932 | lower ZMM registers (0-15). | |
7933 | (num_avx512_zmmh_high_registers): New constant for number of | |
7934 | higher ZMM registers (16-31). | |
7935 | (num_avx512_ymmh_registers): New contant for number of higher | |
7936 | YMM registers (ymm16-31 added by avx521 on x86_64). | |
7937 | (num_avx512_xmm_registers): New constant for number of higher | |
7938 | XMM registers (xmm16-31 added by AVX512 on x86_64). | |
7939 | (struct i387_xsave): Add space for AVX512 registers. | |
7940 | (i387_cache_to_xsave): Change raw buffer size to 64 characters. | |
7941 | Add code to handle AVX512 registers. | |
7942 | (i387_xsave_to_cache): Add code to handle AVX512 registers. | |
7943 | * linux-x86-low.c (init_registers_amd64_avx512_linux): New | |
7944 | prototypei from generated file. | |
7945 | (tdesc_amd64_avx512_linux): Likewise. | |
7946 | (init_registers_x32_avx512_linux): Likewise. | |
7947 | (tdesc_x32_avx512_linux): Likewise. | |
7948 | (init_registers_i386_avx512_linux): Likewise. | |
7949 | (tdesc_i386_avx512_linux): Likewise. | |
7950 | (x86_64_regmap): Add AVX512 registers. | |
7951 | (x86_linux_read_description): Add code to handle AVX512 XSTATE | |
7952 | mask. | |
7953 | (initialize_low_arch): Add code to initialize AVX512 registers. | |
7954 | ||
51aa91f9 PA |
7955 | 2014-04-23 Pedro Alves <palves@redhat.com> |
7956 | ||
7957 | * mem-break.c (find_gdb_breakpoint_at): Make static. | |
7958 | * mem-break.h (find_gdb_breakpoint_at): Delete declaration. | |
7959 | ||
a4165e94 PA |
7960 | 2014-04-23 Pedro Alves <palves@redhat.com> |
7961 | ||
7962 | * i386-low.c: Don't include break-common.h here. | |
7963 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
7964 | prototype to take target_hw_bp_type as argument instead of a Z | |
7965 | packet char. | |
7966 | * i386-low.h: Include break-common.h here. | |
7967 | (Z_packet_to_hw_type): Declare. | |
7968 | (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change | |
7969 | prototypes. | |
7970 | * linux-x86-low.c (x86_insert_point): Convert the packet number to | |
7971 | a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
7972 | (x86_remove_point): Convert the packet number to a | |
7973 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
7974 | * win32-i386-low.c (i386_insert_point): Convert the packet number | |
7975 | to a target_hw_bp_type before calling i386_low_insert_watchpoint. | |
7976 | (i386_remove_point): Convert the packet number to a | |
7977 | target_hw_bp_type before calling i386_low_remove_watchpoint. | |
7978 | ||
b8acf843 PA |
7979 | 2014-04-23 Pedro Alves <palves@redhat.com> |
7980 | ||
7981 | * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN. | |
7982 | ||
d708bcd1 PA |
7983 | 2014-04-10 Pedro Alves <palves@redhat.com> |
7984 | ||
7985 | * mem-break.c (add_breakpoint_condition, add_breakpoint_commands): | |
7986 | Check if the condition or command is NULL before checking if the | |
7987 | breakpoint is known. On success, return true. | |
7988 | * mem-break.h (add_breakpoint_condition): Document return. | |
7989 | (add_breakpoint_commands): Add describing comment. | |
7990 | * server.c (skip_to_semicolon): New function. | |
7991 | (process_point_options): Use it. | |
7992 | ||
2eec7d5b PA |
7993 | 2014-04-09 Pedro Alves <palves@redhat.com> |
7994 | ||
7995 | * linux-low.c (linux_read_loadmap): Pass current_inferior directly | |
7996 | to lwpid_of. | |
7997 | ||
fa96cb38 PA |
7998 | 2014-02-27 Pedro Alves <palves@redhat.com> |
7999 | ||
8000 | PR 12702 | |
8001 | * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New | |
8002 | macros. | |
8003 | * linux-low.c (delete_lwp, handle_extended_wait): Add debug | |
8004 | output. | |
8005 | (last_thread_of_process_p): Take a PID argument instead of a | |
8006 | thread pointer. | |
8007 | (linux_wait_for_lwp): Delete. | |
8008 | (num_lwps, check_zombie_leaders, not_stopped_callback): New | |
8009 | functions. | |
8010 | (linux_low_filter_event): New function, party factored out from | |
8011 | linux_wait_for_event. | |
8012 | (linux_wait_for_event): Rename to ... | |
8013 | (linux_wait_for_event_filtered): ... this. Add new filter ptid | |
8014 | argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and | |
8015 | sigsuspend. Check for zombie leaders. | |
8016 | (linux_wait_for_event): Reimplement as wrapper around | |
8017 | linux_wait_for_event_filtered. | |
8018 | (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if | |
8019 | a normal or signal exit is seen, it's the whole process exiting. | |
8020 | (wait_for_sigstop): No longer a for_each_inferior callback. | |
8021 | Rewrite on top of linux_wait_for_event_filtered. | |
8022 | (stop_all_lwps): Call wait_for_sigstop directly. | |
8023 | * server.c (resume, handle_target_event): Handle | |
8024 | TARGET_WAITKIND_NO_RESUMED. | |
8025 | ||
d763de10 JB |
8026 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
8027 | ||
8028 | * win32-low.c (psapi_get_dll_name, | |
8029 | * win32_CreateToolhelp32Snapshot): Delete. | |
8030 | (win32_CreateToolhelp32Snapshot, win32_Module32First) | |
8031 | (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name): | |
8032 | Delete. | |
8033 | (handle_load_dll): Add function description. | |
8034 | Remove code using psapi_get_dll_name and toolhelp_get_dll_name. | |
8035 | ||
850a0f76 JB |
8036 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
8037 | ||
8038 | * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr. | |
8039 | Add comment. | |
8040 | (win32_add_all_dlls): Remove 0x1000 offset applied to DLL | |
8041 | base address when calling win32_add_one_solib. | |
8042 | (handle_load_dll): Delete local variable load_addr. | |
8043 | Remove 0x1000 offset applied to DLL base address when calling | |
8044 | win32_add_one_solib. | |
8045 | (handle_unload_dll): Add comment. | |
8046 | ||
f25b3fc3 JB |
8047 | 2014-02-26 Joel Brobecker <brobecker@adacore.com> |
8048 | ||
8049 | * win32-low.c (win32_add_all_dlls): Renames | |
8050 | win32_ensure_ntdll_loaded. Rewrite function documentation. | |
8051 | Adjust implementation to always load all DLLs. | |
8052 | Add 0x1000 offset to DLL base address when calling | |
8053 | win32_add_one_solib. | |
8054 | (child_initialization_done): New static global. | |
8055 | (do_initial_child_stuff): Set child_initialization_done to | |
8056 | zero during child initialization, and 1 after. Replace call | |
8057 | to win32_ensure_ntdll_loaded by call to win32_add_all_dlls. | |
8058 | Add comment. | |
8059 | (match_dll_by_basename, dll_is_loaded_by_basename): Delete. | |
8060 | (handle_unload_dll): Add function documentation. | |
8061 | (get_child_debug_event): Ignore load and unload DLL events | |
8062 | during child initialization. | |
8063 | ||
d86d4aaf DE |
8064 | 2014-02-20 Doug Evans <dje@google.com> |
8065 | ||
3bc32da3 | 8066 | Remove global all_lwps. |
d86d4aaf DE |
8067 | * inferiors.h (ptid_of): Move here from linux-low.h. |
8068 | (pid_of, lwpid_of): Ditto. | |
8069 | * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry" | |
8070 | parameter is a struct thread_info * now. | |
8071 | (aarch64_notify_debug_reg_change): Fetch pid from current_inferior | |
8072 | directly. Pass &all_threads to find_inferior instead of &all_lwps. | |
8073 | (aarch64_stopped_data_address): Fetch lwpid from current_inferior | |
8074 | directly. | |
8075 | (aarch64_linux_prepare_to_resume): Fetch ptid from thread. | |
8076 | (aarch64_arch_setup): Fetch lwpid from current_inferior directly. | |
8077 | * linux-arm-low.c (update_registers_callback): Update, "entry" | |
8078 | parameter is a struct thread_info * now. | |
8079 | Fetch lwpid from current_inferior directly. | |
8080 | (arm_insert_point): Pass &all_threads to find_inferior instead of | |
8081 | &all_lwps. | |
8082 | (arm_remove_point): Ditto. | |
8083 | (arm_stopped_by_watchpoint): Fetch lwp from current_inferior. | |
8084 | (arm_prepare_to_resume): Fetch pid from thread. | |
8085 | (arm_read_description): Fetch lwpid from current_inferior directly. | |
8086 | * linux-low.c (all_lwps): Delete. | |
8087 | (delete_lwp): Delete call to remove_inferior. | |
8088 | (handle_extended_wait): Fetch lwpid from thread. | |
8089 | (add_lwp): Don't set lwp->entry.id. Remove call to | |
8090 | add_inferior_to_list. | |
8091 | (linux_attach_lwp_1): Fetch pid from current_inferior directly. | |
8092 | (linux_kill_one_lwp): Fetch ptid,lwpid from thread. | |
8093 | (kill_one_lwp_callback): Ditto. | |
8094 | (linux_kill): Don't dereference NULL pointer. | |
8095 | Fetch ptid,lwpid from thread. | |
8096 | (get_detach_signal): Fetch ptid from thread. | |
8097 | (linux_detach_one_lwp): Fetch ptid,lwpid from thread. | |
8098 | Simplify call to regcache_invalidate_thread. | |
8099 | (delete_lwp_callback): Update, "entry" parameter is a | |
8100 | struct thread_info * now. Fetch pid from thread. | |
8101 | (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps. | |
8102 | (status_pending_p_callback): Update, "entry" parameter is a | |
8103 | struct thread_info * now. Fetch ptid from thread. | |
8104 | (find_lwp_pid): Update, "entry" parameter is a | |
8105 | struct thread_info * now. | |
8106 | (linux_wait_for_lwp): Fetch pid from thread. | |
8107 | (linux_fast_tracepoint_collecting): Fetch lwpid from thread. | |
8108 | (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior. | |
8109 | (enqueue_one_deferred_signal): Fetch lwpid from thread. | |
8110 | (dequeue_one_deferred_signal): Ditto. | |
8111 | (cancel_breakpoint): Fetch ptid from current_inferior. | |
8112 | (linux_wait_for_event): Pass &all_threads to find_inferior, | |
8113 | not &all_lwps. Fetch ptid, lwpid from thread. | |
8114 | (count_events_callback): Update, "entry" parameter is a | |
8115 | struct thread_info * now. | |
8116 | (select_singlestep_lwp_callback): Ditto. | |
8117 | (select_event_lwp_callback): Ditto. | |
8118 | (cancel_breakpoints_callback): Ditto. | |
8119 | (linux_cancel_breakpoints): Pass &all_threads to find_inferior, | |
8120 | not &all_lwps. | |
8121 | (select_event_lwp): Ditto. Fetch ptid from event_thread. | |
8122 | (unsuspend_one_lwp): Update, "entry" parameter is a | |
8123 | struct thread_info * now. | |
8124 | (unsuspend_all_lwps): Pass &all_threads to find_inferior, | |
8125 | not &all_lwps. | |
8126 | (linux_stabilize_threads): Ditto. And for for_each_inferior. | |
8127 | Fetch lwpid from thread, not lwp. | |
8128 | (linux_wait_1): Fetch ptid, lwpid from current_inferior. | |
8129 | Pass &all_threads to find_inferior, not &all_lwps. | |
8130 | (send_sigstop): Fetch lwpid from thread, not lwp. | |
8131 | (send_sigstop_callback): Update, "entry" parameter is a | |
8132 | struct thread_info * now. | |
8133 | (suspend_and_send_sigstop_callback): Ditto. | |
8134 | (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp. | |
8135 | (stuck_in_jump_pad_callback): Update, "entry" parameter is a | |
8136 | struct thread_info * now. | |
8137 | (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid | |
8138 | from thread, lwp. | |
8139 | (lwp_running): Update, "entry" parameter is a | |
8140 | struct thread_info * now. | |
8141 | (stop_all_lwps): Fetch ptid from thread. | |
8142 | Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps. | |
8143 | (linux_resume_one_lwp): Fetch lwpid from thread. | |
8144 | (linux_set_resume_request): Update, "entry" parameter is a | |
8145 | struct thread_info * now. Fetch pid, lwpid from thread. | |
8146 | (resume_status_pending_p): Update, "entry" parameter is a | |
8147 | struct thread_info * now. | |
8148 | (need_step_over_p): Ditto. Fetch lwpid from thread. | |
8149 | (start_step_over): Fetch lwpid from thread. | |
8150 | (linux_resume_one_thread): Update, "entry" parameter is a | |
8151 | struct thread_info * now. Fetch lwpid from thread. | |
8152 | (linux_resume): Pass &all_threads to find_inferior, not &all_lwps. | |
8153 | (proceed_one_lwp): Update, "entry" parameter is a | |
8154 | struct thread_info * now. Fetch lwpid from thread. | |
8155 | (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a | |
8156 | struct thread_info * now. | |
8157 | (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps. | |
8158 | (unstop_all_lwps): Ditto. Fetch lwpid from thread. | |
8159 | (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior | |
8160 | directly. | |
8161 | (regsets_store_inferior_registers): Ditto. | |
8162 | (fetch_register, store_register): Ditto. | |
8163 | (linux_read_memory, linux_write_memory): Ditto. | |
8164 | (linux_request_interrupt): Ditto. | |
8165 | (linux_read_auxv): Ditto. | |
8166 | (linux_xfer_siginfo): Ditto. | |
8167 | (linux_qxfer_spu): Ditto. | |
8168 | (linux_qxfer_libraries_svr4): Ditto. | |
8169 | * linux-low.h (ptid_of, pid_of, lwpid_of): Delete, | |
8170 | moved to inferiors.h. | |
8171 | (get_lwp): Delete. | |
8172 | (get_thread_lwp): Update. | |
8173 | (struct lwp_info): Delete member "entry". Simplify comment for | |
8174 | member "thread". | |
8175 | (all_lwps): Delete. | |
8176 | * linux-mips-low.c (mips_read_description): Fetch lwpid from | |
8177 | current_inferior directly. | |
8178 | (update_watch_registers_callback): Update, "entry" parameter is a | |
8179 | struct thread_info * now. Fetch pid from thread. | |
8180 | (mips_linux_prepare_to_resume): Fetch ptid from thread. | |
8181 | (mips_insert_point): Fetch lwpid from current_inferior. | |
8182 | Pass &all_threads to find_inferior, not &all_lwps. | |
8183 | (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps. | |
8184 | (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior | |
8185 | directly. | |
8186 | (mips_stopped_data_address): Ditto. | |
8187 | * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior | |
8188 | directly. | |
8189 | * linux-tile-low.c (tile_arch_setup): Ditto. | |
8190 | * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread. | |
8191 | (update_debug_registers_callback): Update, "entry" parameter is a | |
8192 | struct thread_info * now. Fetch pid from thread. | |
8193 | (i386_dr_low_set_addr): Fetch pid from current_inferior directly. | |
8194 | Pass &all_threads to find_inferior, not &all_lwps. | |
8195 | (i386_dr_low_get_addr): Fetch ptid from current_inferior directly. | |
8196 | (i386_dr_low_set_control): Fetch pid from current_inferior directly. | |
8197 | Pass &all_threads to find_inferior, not &all_lwps. | |
8198 | (i386_dr_low_get_control): Fetch ptid from current_inferior directly. | |
8199 | (i386_dr_low_get_status): Ditto. | |
8200 | (x86_linux_prepare_to_resume): Fetch ptid from thread. | |
8201 | (x86_siginfo_fixup): Fetch lwpid from current_inferior directly. | |
8202 | (x86_linux_read_description): Ditto. | |
8203 | * proc-service.c (ps_getpid): Fetch pid from current_inferior directly. | |
8204 | ||
3b8361aa DE |
8205 | 2014-02-20 Doug Evans <dje@google.com> |
8206 | ||
8207 | * inferiors.c (get_first_inferior): Fix buglet. | |
8208 | ||
f7667f0d DE |
8209 | 2014-02-19 Doug Evans <dje@google.com> |
8210 | ||
8211 | * gdbthread.h (add_thread): Change result type to struct thread_info *. | |
8212 | * inferiors.c (add_thread): Change result type to struct thread_info *. | |
8213 | All callers updated. | |
8214 | (add_lwp): Call add_thread here instead of in callers. | |
8215 | All callers updated. | |
8216 | * linux-low.h (get_lwp_thread): Rewrite. | |
8217 | (struct lwp_info): New member "thread". | |
8218 | ||
b3312d80 DE |
8219 | 2014-02-19 Doug Evans <dje@google.com> |
8220 | ||
8221 | * linux-low.c (add_lwp): Change result to struct lwp_info *. | |
8222 | All callers updated. | |
8223 | ||
ecc6f45c DE |
8224 | 2014-02-19 Doug Evans <dje@google.com> |
8225 | ||
8226 | * inferiors.c (add_thread): Fix whitespace. | |
8227 | ||
649ebbca DE |
8228 | 2014-02-19 Doug Evans <dje@google.com> |
8229 | ||
8230 | * dll.c (clear_dlls): Replace accessing list implemention details | |
8231 | with API function. | |
8232 | * gdbthread.h (get_first_thread): Declare. | |
8233 | * inferiors.c (for_each_inferior_with_data): New function. | |
8234 | (get_first_thread): New function. | |
8235 | (find_thread_ptid): Simplify. | |
8236 | (get_first_inferior): New function. | |
8237 | (clear_list): Delete. | |
8238 | (one_inferior_p): New function. | |
8239 | (clear_inferior_list): New function. | |
8240 | (clear_inferiors): Update. | |
8241 | * inferiors.h (for_each_inferior_with_data): Declare. | |
8242 | (clear_inferior_list): Declare. | |
8243 | (one_inferior_p): Declare. | |
8244 | (get_first_inferior): Declare. | |
8245 | * linux-low.c (linux_wait_for_event): Replace accessing list | |
8246 | implemention details with API function. | |
8247 | * server.c (target_running): Ditto. | |
8248 | (accumulate_file_name_length): New function. | |
8249 | (emit_dll_description): New function. | |
8250 | (handle_qxfer_libraries): Replace accessing list implemention | |
8251 | details with API function. | |
8252 | (handle_qxfer_threads_worker): New function. | |
8253 | (handle_qxfer_threads_proper): Replace accessing list implemention | |
8254 | details with API function. | |
8255 | (handle_query): Ditto. | |
8256 | (visit_actioned_threads_callback_ftype): New typedef. | |
8257 | (visit_actioned_threads_data): New struct. | |
8258 | (visit_actioned_threads): Rewrite to be find_inferior callback. | |
8259 | (resume): Call find_inferior. | |
8260 | (handle_status): Replace accessing list implemention | |
8261 | details with API function. | |
8262 | (process_serial_event): Replace accessing list implemention details | |
8263 | with API function. | |
8264 | * target.c (set_desired_inferior): Replace accessing list implemention | |
8265 | details with API function. | |
8266 | * tracepoint.c (same_process_p): New function. | |
8267 | (gdb_agent_about_to_close): Replace accessing list implemention | |
8268 | details with API function. | |
8269 | * win32-low.c (child_delete_thread): Replace accessing list | |
8270 | implemention details with API function. | |
8271 | (match_dll_by_basename): New function. | |
8272 | (dll_is_loaded_by_basename): New function. | |
8273 | (win32_ensure_ntdll_loaded): Replace accessing list implemention | |
8274 | details call to dll_is_loaded_by_basename. | |
8275 | ||
80894984 DE |
8276 | 2014-02-19 Doug Evans <dje@google.com> |
8277 | ||
8278 | * dll.h (struct dll_info): Add comment. | |
8279 | * gdbthread.h (struct thread_info): Add comment. | |
8280 | (current_ptid): Simplify. | |
8281 | * inferiors.c (add_process): Update. | |
8282 | (remove_process): Update. | |
8283 | * inferiors.h (struct process_info): Rename member "head" to "entry". | |
8284 | * linux-low.c (delete_lwp): Update. | |
8285 | (add_lwp): Update. | |
8286 | (last_thread_of_process_p): Update. | |
8287 | (kill_one_lwp_callback, linux_kill): Update. | |
8288 | (status_pending_p_callback): Update. | |
8289 | (wait_for_sigstop): Update. Simplify read of ptid. | |
8290 | (start_step_over): Update. | |
8291 | * linux-low.h (ptid_of, pid_of, lwpid_of): Update. | |
8292 | (get_lwp_thread): Update. | |
8293 | (struct lwp_info): Rename member "head" to "entry". | |
8294 | * regcache.h (inferior_list_entry): Delete. | |
8295 | * server.c (kill_inferior_callback): Update. | |
8296 | (detach_or_kill_inferior_callback): Update. | |
8297 | (print_started_pid): Update. | |
8298 | (print_attached_pid): Update. | |
8299 | (process_serial_event): Simplify read of ptid. | |
8300 | * thread-db.c (thread_db_create_event): Update. | |
8301 | (thread_db_get_tls_address): Update. | |
8302 | * win32-low.c (current_inferior_ptid): Simplify. | |
8303 | ||
46917d26 TT |
8304 | 2014-02-19 Tom Tromey <tromey@redhat.com> |
8305 | ||
8306 | * target.h (struct target_ops) <supports_btrace>: Add target_ops | |
8307 | argument. | |
8308 | (target_supports_btrace): Update. | |
8309 | ||
0759a81e YQ |
8310 | 2014-02-14 Yao Qi <yao@codesourcery.com> |
8311 | ||
8312 | * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o. | |
8313 | (rsp-low-ipa.o): New target. | |
8314 | ||
a7191e8b TT |
8315 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8316 | ||
8317 | * ax.c (gdb_parse_agent_expr): Use hex2bin, not | |
8318 | convert_ascii_to_int. | |
8319 | * regcache.c (registers_to_string): Likewise. | |
8320 | * remote-utils.c (decode_M_packet): Likewise. | |
8321 | * server.c (process_serial_event): Likewise. | |
8322 | ||
ff0e980e TT |
8323 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8324 | ||
8325 | * server.c (handle_query, handle_v_run): Use hex2bin, not | |
8326 | unhexify. | |
8327 | * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise. | |
8328 | ||
e9371aff TT |
8329 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8330 | ||
8331 | * ax.c (gdb_unparse_agent_expr): Use bin2hex, not | |
8332 | convert_int_to_ascii. | |
8333 | * regcache.c (registers_to_string, collect_register_as_string): | |
8334 | Likewise. | |
8335 | * remote-utils.c (look_up_one_symbol, relocate_instruction): | |
8336 | Likewise. | |
8337 | * server.c (process_serial_event): Likewise. | |
8338 | * tracepoint.c (cmd_qtstatus, response_source, response_tsv) | |
8339 | (cmd_qtbuffer, cstr_to_hexstr): Likewise. | |
8340 | ||
971dc0b8 TT |
8341 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8342 | ||
8343 | * remote-utils.c (look_up_one_symbol, monitor_output): Use | |
8344 | bin2hex, not hexify. | |
8345 | * tracepoint.c (cmd_qtstatus): Likewise. | |
8346 | ||
0a822afb TT |
8347 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8348 | ||
8349 | * remote-utils.c (monitor_output): Pass explicit length to | |
8350 | hexify. | |
8351 | ||
9c3d6531 TT |
8352 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8353 | ||
8354 | * tracepoint.c: Include rsp-low.h. | |
8355 | * server.c: Include rsp-low.h. | |
8356 | * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii) | |
8357 | (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't | |
8358 | declare. | |
8359 | * remote-utils.c: Include rsp-low.h. | |
8360 | (fromhex, hexchars, ishex, unhexify, tohex, hexify) | |
8361 | (remote_escape_output, remote_unescape_input, unpack_varlen_hex) | |
8362 | (convert_int_to_ascii, convert_ascii_to_int): Move to | |
8363 | common/rsp-low.c. | |
8364 | * regcache.c: Include rsp-low.h. | |
8365 | * ax.c: Include rsp-low.h. | |
8366 | * Makefile.in (SFILES): Add common/rsp-low.c. | |
8367 | (OBS): Add rsp-low.o. | |
8368 | (rsp-low.o): New target. | |
8369 | ||
01fd3ea5 TT |
8370 | 2014-02-12 Tom Tromey <tromey@redhat.com> |
8371 | ||
8372 | * utils.h (pulongest, plongest, phex_nz): Don't declare. | |
8373 | Include print-utils.h. | |
8374 | * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest) | |
8375 | (plongest, thirty_two, phex_nz): Remove. | |
8376 | * Makefile.in (SFILES): Add common/print-utils.c. | |
8377 | (OBS): Add print-utils.o. | |
8378 | (print-utils-ipa.o): New target. | |
8379 | (print-utils.o): New target. | |
8380 | (IPA_OBJS): Add print-utils-ipa.o. | |
8381 | ||
e99dc820 TT |
8382 | 2014-02-06 Tom Tromey <tromey@redhat.com> |
8383 | ||
8384 | * Makefile.in (SFILES): Fix indentation. | |
8385 | ||
ee1e2d4f DE |
8386 | 2014-02-05 Doug Evans <dje@google.com> |
8387 | ||
8388 | * linux-low.c (linux_wait_for_event): Improve comment. | |
8389 | (linux_wait_1): Keep current_inferior in sync with event_child. | |
8390 | ||
f5a02773 DE |
8391 | 2014-01-22 Doug Evans <dje@google.com> |
8392 | ||
8393 | * gdbthread.h (gdb_id_to_thread): Delete, unused. | |
8394 | ||
87ce2a04 DE |
8395 | 2014-01-22 Doug Evans <dje@google.com> |
8396 | ||
8397 | * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday. | |
8398 | * configure: Regenerate. | |
8399 | * config.in: Regenerate. | |
8400 | * Makefile.in (SFILES): Add debug.c. | |
8401 | (OBS): Add debug.o. | |
8402 | * debug.c: New file. | |
8403 | * debug.h: New file. | |
8404 | * linux-aarch64-low.c (*): Update all debugging printfs to use | |
8405 | debug_printf instead of fprintf. | |
8406 | * linux-arm-low.c (*): Ditto. | |
8407 | * linux-cris-low.c (*): Ditto. | |
8408 | * linux-crisv32-low.c (*): Ditto. | |
8409 | * linux-m32r-low.c (*): Ditto. | |
8410 | * linux-sparc-low.c (*): Ditto. | |
8411 | * linux-x86.c (*): Ditto. | |
8412 | * linux-low.c (*): Ditto. | |
8413 | (linux_wait_1): Add calls to debug_enter, debug_exit. | |
8414 | (linux_wait): Remove redundant debugging printf. | |
8415 | (stop_all_lwps): Add calls to debug_enter, debug_exit. | |
8416 | (linux_resume, unstop_all_lwps): Ditto. | |
8417 | * mem-break.c (*): Update all debugging printfs to use | |
8418 | debug_printf instead of fprintf. | |
8419 | * remote-utils.c (*): Ditto. | |
8420 | * thread-db.c (*): Ditto. | |
8421 | * server.c #include <ctype.h>, "gdb_vecs.h". | |
8422 | (debug_threads): Moved to debug.c. | |
8423 | (*): Update all debugging printfs to use debug_printf instead of | |
8424 | fprintf. | |
8425 | (start_inferior): Replace call to fflush with call to debug_flush. | |
8426 | (monitor_show_help): Mention set debug-format. | |
8427 | (parse_debug_format_options): New function. | |
8428 | (handle_monitor_command): Handle "monitor set debug-format". | |
8429 | (gdbserver_usage): Mention --debug-format. | |
8430 | (main): Parse --debug-format. | |
8431 | * server.h (debug_threads): Declaration moved to debug.h. | |
8432 | #include "debug.h". | |
8433 | * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of | |
8434 | trace_debug_1 that uses debug_printf. | |
8435 | (tracepoint_look_up_symbols): Update all debugging printfs to use | |
8436 | debug_printf instead of fprintf. | |
8437 | ||
e671835b BS |
8438 | 2014-01-20 Baruch Siach <baruch@tkos.co.il> |
8439 | ||
8440 | * linux-xtensa-low.c: Include asm/ptrace.h instead of | |
8441 | sys/ptrace.h. | |
8442 | ||
b5737fa9 PA |
8443 | 2014-01-17 Pedro Alves <palves@redhat.com> |
8444 | ||
ea38d2a9 | 8445 | PR build/16445 |
c7faa97a PA |
8446 | * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is |
8447 | defined after including gdb_proc_service.h. | |
b5737fa9 | 8448 | |
40ed484e DE |
8449 | 2014-01-16 Doug Evans <dje@google.com> |
8450 | ||
8451 | * dll.c (UNSPECIFIED_CORE_ADDR): New macro. | |
8452 | (match_dll): Use it. | |
8453 | ||
969c39fb MM |
8454 | 2014-01-16 Markus Metzger <markus.t.metzger@intel.com> |
8455 | ||
8456 | * target.h (target_ops) <read_btrace>: Change parameters and | |
8457 | return type to allow error reporting. | |
8458 | * server.c (handle_qxfer_btrace): Support delta reads. Pass | |
8459 | trace reading errors on. | |
8460 | * linux-low.c (linux_low_read_btrace): Pass trace reading | |
8461 | errors on. | |
8462 | (linux_low_disable_btrace): New. | |
8463 | ||
ab7f45ba DE |
8464 | 2014-01-15 Doug Evans <dje@google.com> |
8465 | ||
8466 | * inferiors.c (thread_id_to_gdb_id): Delete. | |
8467 | * inferiors.h (thread_id_to_gdb_id): Delete. | |
8468 | ||
66af0f44 EZ |
8469 | 2014-01-13 Eli Zaretskii <eliz@gnu.org> |
8470 | ||
8471 | * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from | |
8472 | "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC | |
8473 | versions. | |
8474 | ||
9939e131 PA |
8475 | 2014-01-08 Pedro Alves <palves@redhat.com> |
8476 | ||
8477 | * server.c (handle_status): Don't discard previous queued stop | |
8478 | replies or thread's pending status here. | |
8479 | (main) <disconnection>: Do it here instead. | |
8480 | ||
b7ea362b PA |
8481 | 2014-01-08 Pedro Alves <palves@redhat.com> |
8482 | ||
8483 | * gdbthread.h (struct thread_info) <status_pending_p>: New field. | |
8484 | * server.c (visit_actioned_threads, handle_pending_status): New | |
8485 | function. | |
8486 | (handle_v_cont): Factor out parts to ... | |
8487 | (resume): ... this new function. If in all-stop, and a thread | |
8488 | being resumed has a pending status, report it without actually | |
8489 | resuming. | |
8490 | (myresume): Adjust to use the new 'resume' function. | |
8491 | (clear_pending_status_callback, set_pending_status_callback) | |
8492 | (find_status_pending_thread_callback): New functions. | |
8493 | (handle_status): Handle the case of multiple threads having | |
8494 | interesting statuses to report. Report threads' real last signal | |
8495 | instead of always reporting GDB_SIGNAL_TRAP. Look for a thread | |
8496 | with an interesting thread to report the status for, instead of | |
8497 | always reporting the status of the first thread. | |
8498 | ||
28498c42 JB |
8499 | 2014-01-01 Joel Brobecker <brobecker@adacore.com> |
8500 | ||
8501 | * gdbserver.c (gdbserver_version): Set copyright year to 2014. | |
8502 | * gdbreplay.c (gdbreplay_version): Likewise. | |
8503 | ||
f45c82da YZ |
8504 | 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com> |
8505 | ||
8506 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set | |
8507 | iov.iov_len with the real length in use. | |
8508 | ||
379a5e2d JB |
8509 | 2013-12-13 Joel Brobecker <brobecker@adacore.com> |
8510 | ||
8511 | * Makefile.in (safe-ctype.o, lbasename.o): New rules. | |
8512 | * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj | |
8513 | for all targets that use win32-low.c. | |
8514 | * win32-low.c (win32_ensure_ntdll_loaded): New function. | |
8515 | (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded. | |
8516 | ||
4210d83e PA |
8517 | 2013-12-13 Pedro Alves <palves@redhat.com> |
8518 | ||
8519 | * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED | |
8520 | if equal to TARGET_WAITKIND_LOADED. | |
8521 | * win32-low.c (cached_status): New static global. | |
8522 | (win32_wait): Add declaration. | |
8523 | (do_initial_child_stuff): Flush all initial pending debug events | |
8524 | up to the initial breakpoint. | |
8525 | (win32_wait): If CACHED_STATUS was set, return that instead | |
8526 | of doing a real wait. Remove the code resuming the execution | |
8527 | of the inferior after receiving a TARGET_WAITKIND_LOADED event | |
8528 | during the initial phase. Also remove the code changing | |
8529 | OURSTATUS->KIND from TARGET_WAITKIND_LOADED to | |
8530 | TARGET_WAITKIND_STOPPED. | |
8531 | ||
e7f0d979 YQ |
8532 | 2013-12-11 Yao Qi <yao@codesourcery.com> |
8533 | ||
8534 | * notif.c (handle_notif_ack): Return 0 if no notification | |
8535 | matches. | |
8536 | ||
ebcf782c DE |
8537 | 2013-11-20 Doug Evans <dje@google.com> |
8538 | ||
8539 | * linux-low.c (linux_set_resume_request): Fix comment. | |
8540 | ||
20ad9378 DE |
8541 | 2013-11-20 Doug Evans <dje@google.com> |
8542 | ||
8543 | * linux-low.c (resume_status_pending_p): Tweak comment. | |
8544 | ||
a196ebeb WT |
8545 | 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com> |
8546 | ||
8547 | * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c, | |
8548 | amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation. | |
8549 | * configure.srv (srv_i386_regobj): Add i386-mpx.o. | |
8550 | (srv_i386_linux_regobj): Add i386-mpx-linux.o. | |
8551 | (srv_amd64_regobj): Add amd64-mpx.o. | |
8552 | (srv_amd64_linux_regobj): Add amd64-mpx-linux.o. | |
8553 | (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml. | |
8554 | (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml. | |
8555 | * i387-fp.c (num_pl_bnd_register) Added constant. | |
8556 | (num_pl_bnd_cfg_registers) Added constant. | |
8557 | (struct i387_xsave) Added reserved area and MPX fields. | |
8558 | (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX. | |
8559 | * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new | |
8560 | function. | |
8561 | (tdesc_i386_mpx_linux): Add MPX amd64 target. | |
8562 | (init_registers_amd64_mpx_linux): Declare new function. | |
8563 | (tdesc_amd64_mpx_linux): Add MPX amd64 target. | |
8564 | (x86_64_regmap): Add MPX registers. | |
8565 | (x86_linux_read_description): Add MPX case. | |
8566 | (initialize_low_arch): Initialize MPX targets. | |
8567 | ||
0080a2f6 TT |
8568 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
8569 | ||
8570 | * configure: Rebuild. | |
8571 | * configure.ac: Don't check for stdlib.h. | |
8572 | * gdbreplay.c: Unconditionally include stdlib.h. | |
8573 | ||
2978b111 TT |
8574 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
8575 | ||
8576 | * config.in: Rebuild. | |
8577 | * configure: Rebuild. | |
8578 | * configure.ac: Don't use AC_HEADER_DIRENT. | |
8579 | ||
a3d08894 TT |
8580 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
8581 | ||
8582 | * server.h: Don't check HAVE_STRING_H. | |
8583 | * gdbreplay.c: Don't check HAVE_STRING_H. | |
8584 | * configure: Rebuild. | |
8585 | ||
0a5dd17d TT |
8586 | 2013-11-18 Tom Tromey <tromey@redhat.com> |
8587 | ||
8588 | * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against | |
8589 | LIBGNU. | |
8590 | ||
1bd2f0ba TT |
8591 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
8592 | ||
8593 | * configure, config.in: Rebuild. | |
8594 | * configure.ac: Remove unused configury. | |
8595 | ||
3266f10b TT |
8596 | 2013-11-08 Tom Tromey <tromey@redhat.com> |
8597 | ||
8598 | * acinclude.m4: Include common.m4, codeset.m4. | |
8599 | * configure, config.in: Rebuild. | |
8600 | * configure.ac: Use GDB_AC_COMMON. | |
8601 | ||
6682d959 AA |
8602 | 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com> |
8603 | ||
8604 | * linux-s390-low.c (HWCAP_S390_TE): New define. | |
8605 | (s390_arch_setup): Consider the TE field in the HWCAP for | |
8606 | determining 'have_regset_tdb'. | |
8607 | ||
fd0a4d76 SDJ |
8608 | 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com> |
8609 | ||
8610 | PR gdb/16014 | |
8611 | * tracepoint.c (download_tracepoint_1): Remove unnecessary double | |
8612 | call to sizeof. | |
8613 | ||
1a3d890b PA |
8614 | 2013-10-02 Pedro Alves <palves@redhat.com> |
8615 | ||
8616 | * server.c (process_serial_event): Don't output "GDBserver | |
8617 | exiting" if GDB is connected through stdio. | |
8618 | * target.c (mywait): Likewise, be silent if GDB is connected | |
8619 | through stdio. | |
8620 | ||
97ad4581 JB |
8621 | 2013-10-01 Joel Brobecker <brobecker@adacore.com> |
8622 | ||
8623 | * lynx-low.c (lynx_add_threads_after_attach): New function. | |
8624 | (lynx_attach): Remove call to add_thread. Add call to | |
8625 | lynx_add_threads_after_attach instead. | |
8626 | ||
5b4e221c MF |
8627 | 2013-09-28 Mike Frysinger <vapier@gentoo.org> |
8628 | ||
8629 | * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h | |
8630 | * config.in, configure: Regenerated. | |
8631 | ||
ee47b2f8 YQ |
8632 | 2013-09-18 Yao Qi <yao@codesourcery.com> |
8633 | ||
8634 | PR server/15959 | |
8635 | * server.c (start_inferior): Clear 'resume_info'. | |
8636 | ||
d6707650 | 8637 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 8638 | |
d6707650 JW |
8639 | * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit |
8640 | for each register. | |
8641 | ||
9243dd0e | 8642 | 2013-09-16 Jiong Wang <jiwang@tilera.com> |
0f63d4db | 8643 | |
9243dd0e JW |
8644 | * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add |
8645 | linux-tile-low.o to srv_tgtobj. | |
8646 | ||
c623a6ef WN |
8647 | 2013-09-16 Will Newton <will.newton@linaro.org> |
8648 | ||
8649 | * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero | |
8650 | out regs. | |
8651 | ||
fb71d39e PA |
8652 | 2013-09-06 Pedro Alves <palves@redhat.com> |
8653 | ||
8654 | * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) | |
8655 | (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h) | |
8656 | (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h) | |
8657 | (server_h, gdbthread_h, linux_low_h, linux_ptrace_h) | |
8658 | (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h) | |
8659 | (mips_linux_watch_h, i386_low_h, win32_low_h): Delete. | |
8660 | ||
8e7e9910 PA |
8661 | 2013-09-06 Pedro Alves <palves@redhat.com> |
8662 | ||
8663 | * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove | |
8664 | explicit header dependencies and use $COMPILE/$POSTCOMPILE. | |
8665 | ||
7c3a12ca PA |
8666 | 2013-09-06 Pedro Alves <palves@redhat.com> |
8667 | ||
8668 | * linux-amd64-ipa.c: Include tracepoint.h. | |
8669 | * linux-i386-ipa.c: Include tracepoint.h. | |
8670 | ||
8eb3d7b6 RW |
8671 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
8672 | ||
8673 | * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro. | |
8674 | (ps_get_thread_area): New function. | |
8675 | ||
eddddb9d RW |
8676 | 2013-09-06 Ricard Wanderlof <ricardw@axis.com> |
8677 | ||
8678 | * linux-crisv32-low.c (elf_gregset_t): Delete typedef. | |
8679 | (initialize_low_arch): Call init_registers_crisv32 rather than | |
8680 | init_register_crisv32. | |
8681 | ||
533b0600 PA |
8682 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8683 | ||
8684 | * server.h (handle_vFile, hostio_last_error_from_errno): Move | |
8685 | to ... | |
8686 | * hostio.h: ... this new file. | |
8687 | * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, | |
8688 | win32-low.c: Include hostio.h. | |
8689 | ||
0ce3d3b5 PA |
8690 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8691 | ||
8692 | * server.h (gdb_client_data, handler_func, callback_handler_func) | |
8693 | (delete_file_handler, add_file_handler, append_callback_event) | |
8694 | (delete_callback_event, start_event_loop, initialize_event_loop): | |
8695 | Move to event-loop.h and include it. | |
8696 | * event-loop.h: New file. | |
8697 | ||
799cdc37 PA |
8698 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8699 | ||
8700 | * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h". | |
8701 | * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls) | |
8702 | (loaded_dll, unloaded_dll): Move to ... | |
8703 | * dll.h: ... this new file. | |
8704 | * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h". | |
8705 | ||
6a6bbd9d PA |
8706 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8707 | ||
8708 | * server.h (current_process, get_thread_process, all_processes) | |
8709 | (add_inferior_to_list, for_each_inferior, current_inferior) | |
8710 | (remove_inferior, add_process, remove_process, find_process_pid) | |
8711 | (have_started_inferiors_p, have_attached_inferiors_p) | |
8712 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id) | |
8713 | (clear_inferiors, find_inferior, find_inferior_id) | |
8714 | (inferior_target_data, set_inferior_target_data) | |
8715 | (inferior_regcache_data, set_inferior_regcache_data): Move to | |
8716 | inferiors.h, and include it. | |
8717 | * inferiors.h: New file. | |
8718 | ||
f699aaba PA |
8719 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8720 | ||
8721 | * server.h (struct emit_ops, current_insn_ptr, emit_error): | |
8722 | Move ... | |
72f4393d | 8723 | * ax.h: ... here. |
f699aaba | 8724 | |
c144c7a0 PA |
8725 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8726 | ||
8727 | * ax.c, linux-low.c, linux-x86-low.c, server.c: Include | |
8728 | tracepoint.h. | |
8729 | * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing) | |
8730 | (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing | |
8731 | (handle_tracepoint_general_set, handle_tracepoint_query) | |
8732 | (tracepoint_finished_step, tracepoint_was_hit) | |
8733 | (release_while_stepping_state_list, current_traceframe) | |
8734 | (in_readonly_region, traceframe_read_mem) | |
8735 | (fetch_traceframe_registers, traceframe_read_sdata) | |
8736 | (traceframe_read_info, struct fast_tpoint_collect_status) | |
8737 | (fast_tracepoint_collecting, force_unlock_trace_buffer) | |
8738 | (handle_tracepoit_bkpts, initialize_low_tracepoint) | |
8739 | (supply_fast_tracepoint_registers) | |
8740 | (supply_static_tracepoint_registers, set_trampoline_buffer_space) | |
8741 | (ipa_tdesc, claim_trampoline_space) | |
8742 | (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close) | |
8743 | (agent_mem_read, agent_get_trace_state_variable_value) | |
8744 | (agent_set_trace_state_variable_value, agent_tsv_read) | |
8745 | (agent_mem_read_string, get_raw_reg_func_addr) | |
8746 | (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ... | |
8747 | * tracepoint.h: ... this new file. | |
8748 | ||
ff42e6ab PA |
8749 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8750 | ||
8751 | * server.h (perror_with_name, error, fatal, warning, paddress) | |
8752 | (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and | |
8753 | include it. | |
8754 | * utils.h: New file. | |
8755 | ||
541af0f4 PA |
8756 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8757 | ||
8758 | * server.h (remote_debug, noack_mode, transport_is_reliable) | |
8759 | (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) | |
8760 | (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) | |
8761 | (getpkt, remote_prepare, remote_open, remote_close, write_ok) | |
8762 | (write_enn, initialize_async_io, enable_async_io) | |
8763 | (disable_async_io, check_remote_input_interrupt_request) | |
8764 | (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify) | |
8765 | (dead_thread_notify, prepare_resume_reply) | |
8766 | (decode_address_to_semicolon, decode_address, decode_m_packet) | |
8767 | (decode_M_packet, decode_X_packet, decode_xfer_write) | |
8768 | (decode_search_memory_packet, unhexify, hexify) | |
8769 | (remote_escape_output, unpack_varlen_hex, clear_symbol_cache) | |
8770 | (look_up_one_symbol, relocate_instruction) | |
8771 | (monitor_output): Move to remote-utils.h, and include it. | |
8772 | * remote-utils.h: New file. | |
8773 | ||
eebdf26b PA |
8774 | 2013-09-05 Pedro Alves <palves@redhat.com> |
8775 | ||
8776 | * server.h (_): Delete. | |
8777 | ||
3aafd2ff PA |
8778 | 2013-09-02 Pedro Alves <palves@redhat.com> |
8779 | ||
8780 | * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro. | |
8781 | (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is | |
8782 | allocated. | |
8783 | (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE. | |
8784 | ||
cee83bcb PM |
8785 | 2013-09-02 Pierre Muller <muller@sourceware.org> |
8786 | ||
8787 | * win32-low.c (child_xfer_memory): Check if ReadProcessMemory | |
8788 | or WriteProcessMemory complete successfully and handle | |
8789 | ERROR_PARTIAL_COPY error. | |
8790 | ||
9a13b2fa PA |
8791 | 2013-09-02 Pedro Alves <palves@redhat.com> |
8792 | ||
8793 | * server.c (gdb_read_memory): Return -1 on traceframe memory read | |
8794 | error instead of EIO. | |
8795 | ||
602e3198 JK |
8796 | 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8797 | ||
8798 | PR server/15604 | |
8799 | * linux-low.c: Include filestuff.h. | |
8800 | (linux_create_inferior) <pid == 0>: Call close_most_fds. | |
8801 | * lynx-low.c: Include filestuff.h. | |
8802 | (lynx_create_inferior) <pid == 0>: Call close_most_fds. | |
8803 | * server.c: Include filestuff.h. | |
8804 | (main): Call notice_open_fds. | |
8805 | * spu-low.c: Include filestuff.h. | |
8806 | (spu_create_inferior) <pid == 0>: Call close_most_fds. | |
8807 | ||
96d7229d LM |
8808 | 2013-08-22 Luis Machado <lgustavo@codesourcery.com> |
8809 | ||
8810 | * Makefile.in: Explain why ../target and ../nat are not | |
8811 | listed as include file search paths. | |
8812 | (linux-waitpid.o): New object file rule. | |
8813 | * configure.srv (srv_native_linux_obj): New variable. | |
8814 | Replace all occurrences of linux native object files with | |
8815 | $srv_native_linux_obj. | |
8816 | * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h. | |
8817 | (HAS_NOMMU): Move defining logic to common/linux-ptrace.c. | |
8818 | (linux_enable_event_reporting): Remove declaration. | |
8819 | (my_waitpid): Moved to common/linux-waitpid.c. | |
8820 | (linux_wait_for_event): Pass ptid when calling | |
8821 | linux_enable_event_reporting. | |
8822 | (linux_supports_tracefork_flag): Remove. | |
8823 | (linux_enable_event_reporting): Likewise. | |
8824 | (linux_tracefork_grandchild): Remove. | |
8825 | (STACK_SIZE): Moved to common/linux-ptrace.c. | |
8826 | (linux_tracefork_child): Remove. | |
8827 | (linux_test_for_tracefork): Remove. | |
8828 | (linux_look_up_symbols): Call linux_supports_traceclone. | |
8829 | (initialize_low): Remove call to linux_test_for_tracefork. | |
8830 | * linux-low.h (PTRACE_TYPE_ARG3): Move to | |
8831 | common/linux-ptrace.h. | |
8832 | (PTRACE_TYPE_ARG4): Likewise. | |
8833 | Include linux-ptrace.h. | |
8834 | ||
32940073 PA |
8835 | 2013-08-21 Pedro Alves <palves@redhat.com> |
8836 | ||
8837 | * config.in: Renegerate. | |
8838 | ||
33b60d58 | 8839 | 2013-08-19 Luis Machado <lgustavo@codesourcery.com> |
a261b8f5 | 8840 | |
33b60d58 LM |
8841 | * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../. |
8842 | (SFILES): Remove $(srcdir)/common/target-common.c and | |
8843 | add $(srcdir)/target/waitstatus.c. | |
8844 | (OBS): Remove target-common.o and add waitstatus.o. | |
8845 | (server_h): Remove $(srcdir)/../common/target-common.h and | |
8846 | add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h | |
8847 | and $(srcdir)/../target/waitstatus.h. | |
8848 | (target-common.o): Remove. | |
8849 | (waitstatus.o): New target object file. | |
8850 | * target.h: Do not include target-common.h and | |
8851 | include target/resume.h, target/wait.h and | |
8852 | target/waitstatus.h. | |
8853 | ||
b8e1b30e LM |
8854 | 2013-08-13 Luis Machado <lgustavo@codesourcery.com> |
8855 | ||
8856 | * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
8857 | to PTRACE_TYPE_ARG3. | |
8858 | * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE | |
8859 | to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to | |
8860 | PTRACE_TYPE_ARG4. | |
8861 | * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. | |
8862 | (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4. | |
8863 | ||
7a60ad40 YQ |
8864 | 2013-07-27 Jie Zhang <jie@codesourcery.com> |
8865 | Daniel Jacobowitz <dan@codesourcery.com> | |
8866 | Yao Qi <yao@codesourcery.com> | |
8867 | ||
8868 | * Makefile.in (SFILES): Add common/mips-linux-watch.c. | |
8869 | (mips-linux-watch.o): New rule. | |
8870 | (mips_linux_watch_h): New variable. | |
8871 | * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to | |
8872 | srv_tgtobj. | |
8873 | * linux-mips-low.c: Include mips-linux-watch.h. | |
8874 | (struct arch_process_info, struct arch_lwp_info): New. | |
8875 | (update_watch_registers_callback): New function. | |
8876 | (mips_linux_new_process, mips_linux_new_thread) New functions. | |
8877 | (mips_linux_prepare_to_resume, mips_insert_point): New | |
8878 | functions. | |
8879 | (mips_remove_point, mips_stopped_by_watchpoint): New | |
8880 | functions. | |
8881 | (rsp_bp_type_to_target_hw_bp_type): New function. | |
8882 | (mips_stopped_data_address): New function. | |
8883 | (the_low_target): Add watchpoint support functions. | |
8884 | ||
de6f69ad YQ |
8885 | 2013-07-27 Yao Qi <yao@codesourcery.com> |
8886 | ||
8887 | * i386-low.c: Include break-common.h. | |
8888 | (enum target_hw_bp_type): Remove. | |
8889 | ||
3360c0bf LM |
8890 | 2013-07-24 Luis Machado <lgustavo@codesourcery.com> |
8891 | ||
8892 | * Makefile.in (SFILES): /common/target-common.c. | |
8893 | (OBS): Add target-common.o. | |
8894 | (server_h): Add $(srcdir)/../common/target-common.h. | |
8895 | (target-common.o): New target. | |
8896 | * server.c (queue_stop_reply_callback): Free | |
8897 | status string after use. | |
8898 | * target.c (target_waitstatus_to_string): Remove. | |
8899 | * target.h: Include target-common.h. | |
8900 | (resume_kind): Likewise. | |
8901 | (target_waitkind): Likewise. | |
8902 | (target_waitstatus): Likewise. | |
8903 | (TARGET_WNOHANG): Likewise. | |
8904 | ||
bd885420 YQ |
8905 | 2013-07-04 Yao Qi <yao@codesourcery.com> |
8906 | ||
8907 | * Makefile.in (host_alias): Use @host_noncanonical@. | |
8908 | (target_alias): Use @target_noncanonical@. | |
8909 | * configure.ac: Use ACX_NONCANONICAL_TARGET and | |
8910 | ACX_NONCANONICAL_HOST. | |
8911 | * configure: Regenerated. | |
8912 | ||
8913 | Revert: | |
8914 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> | |
8915 | ||
8916 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
8917 | * configure: Rebuild. | |
8918 | * Makefile.in (version_host, version_target): Get from configure. | |
8919 | (version.c): Use $(version_host) and $(version_target). | |
8920 | ||
17ef446e PA |
8921 | 2013-07-03 Pedro Alves <palves@redhat.com> |
8922 | ||
8923 | * Makefile.in (config.status): Depend on development.sh. | |
8924 | * acinclude.m4: Include libmcheck.m4. | |
8925 | * configure: Regenerate. | |
8926 | ||
7a9a7487 MG |
8927 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
8928 | ||
8929 | * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI | |
8930 | attribute inside the parentheses. | |
8931 | (winapi_DebugSetProcessKillOnExit): Ditto. | |
8932 | (winapi_DebugBreakProcess): Ditto. | |
8933 | (winapi_GenerateConsoleCtrlEvent): Ditto. | |
a261b8f5 | 8934 | |
49b64de6 MG |
8935 | 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com> |
8936 | ||
8937 | * notif.h (notif_event): Add a dummy member to avoid compiler | |
8938 | errors. | |
8939 | ||
d5749ee7 PA |
8940 | 2013-07-01 Pedro Alves <palves@redhat.com> |
8941 | ||
8942 | * hostio.c (HOSTIO_PATH_MAX): Define. | |
8943 | (require_filename, handle_open, handle_unlink, handle_readlink): | |
8944 | Use it. | |
8945 | ||
d8d2a3ee PA |
8946 | 2013-07-01 Pedro Alves <palves@redhat.com> |
8947 | ||
8948 | * server.h: Include "pathmax.h". | |
8949 | * linux-low.c: Don't include sys/param.h. | |
8950 | (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of | |
8951 | MAXPATHLEN. | |
8952 | * win32-low.c: Don't include sys/param.h. | |
8953 | (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN. | |
8954 | ||
bc7dea8d PA |
8955 | 2013-07-01 Pedro Alves <palves@redhat.com> |
8956 | ||
8957 | * event-loop.c: Don't check HAVE_UNISTD_H before including | |
8958 | <unistd.h>. | |
8959 | * gdbreplay.c: Likewise. | |
8960 | * remote-utils.c: Likewise. | |
8961 | * server.c: Likewise. | |
8962 | * configure.ac: Don't check for unistd.h. | |
8963 | * configure: Regenerate. | |
8964 | ||
d6c2da54 TT |
8965 | 2013-06-28 Tom Tromey <tromey@redhat.com> |
8966 | ||
8967 | * Makefile.in (version.c): Use version.in, not | |
8968 | common/version.in. | |
8969 | ||
257b6bec MG |
8970 | 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> |
8971 | ||
8972 | * configure.ac (version_host, version_target): Set and AC_SUBST them. | |
8973 | * configure: Rebuild. | |
8974 | * Makefile.in (version_host, version_target): Get from configure. | |
8975 | (version.c): Use $(version_host) and $(version_target). | |
8976 | ||
86ebe149 DK |
8977 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
8978 | ||
8979 | Fix trace-status to output user name without trailing colon. | |
8980 | * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name. | |
8981 | ||
f30aa5af DK |
8982 | 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com> |
8983 | ||
8984 | Fix trace-status to output proper start-time and stop-time. | |
8985 | * tracepoint.c (cmd_qtstatus): Modify trace-status output to | |
8986 | output start time and stop time in hex as gdb expects. | |
8987 | ||
28a93511 YQ |
8988 | 2013-06-26 Pedro Alves <pedro@codesourcery.com> |
8989 | ||
8990 | * tracepoint.c (build_traceframe_info_xml): Output trace state | |
8991 | variables present in the trace buffer. | |
8992 | ||
01208463 TT |
8993 | 2013-06-24 Tom Tromey <tromey@redhat.com> |
8994 | ||
8995 | * Makefile.in (version.c): Use bfd/version.h, common/version.in, | |
8996 | create-version.sh. | |
8997 | (version.o): Remove. | |
8998 | * gdbreplay.c: Include version.h. | |
8999 | (version, host_name): Don't declare. | |
9000 | * server.h: Include version.h. | |
9001 | (version, host_name): Don't declare. | |
9002 | ||
760256f9 PA |
9003 | 2013-06-12 Pedro Alves <palves@redhat.com> |
9004 | ||
9005 | * linux-x86-low.c (linux_is_elf64): Delete global. | |
9006 | (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global | |
9007 | with local linux_pid_exe_is_elf_64_file use. | |
9008 | ||
030031ee PA |
9009 | 2013-06-11 Pedro Alves <palves@redhat.com> |
9010 | ||
9011 | * linux-low.c (regset_disabled, disable_regset): New functions. | |
9012 | (regsets_fetch_inferior_registers) | |
9013 | (regsets_store_inferior_registers): Use them. | |
9014 | (initialize_regsets_info); Don't allocate the disabled_regsets | |
9015 | array here. | |
9016 | * linux-low.h (struct regsets_info) <disabled_regsets>: Extend | |
9017 | comment. | |
9018 | ||
5da6eb0a PA |
9019 | 2013-06-11 Pedro Alves <palves@redhat.com> |
9020 | ||
9021 | * linux-low.c (initialize_regsets_info): Use xcalloc instead of | |
9022 | xmalloc. | |
9023 | ||
7e5aaa09 PA |
9024 | 2013-06-11 Pedro Alves <palves@redhat.com> |
9025 | ||
9026 | * linux-x86-low.c (initialize_low_arch): Call | |
9027 | init_registers_x32_avx_linux. | |
9028 | ||
d878444c JK |
9029 | 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
9030 | ||
9031 | Fix compatibility with Android Bionic. | |
9032 | * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if | |
9033 | it is not empty. | |
9034 | ||
3aee8918 PA |
9035 | 2013-06-07 Pedro Alves <palves@redhat.com> |
9036 | ||
5f2b57b5 | 9037 | PR server/14823 |
3aee8918 PA |
9038 | * Makefile.in (OBS): Add tdesc.o. |
9039 | (IPA_OBJS): Add tdesc-ipa.o. | |
9040 | (tdesc-ipa.o): New rule. | |
9041 | * ax.c (gdb_eval_agent_expr): Adjust register_size call to new | |
9042 | interface. | |
9043 | * linux-low.c (new_inferior): Delete. | |
9044 | (disabled_regsets, num_regsets): Delete. | |
9045 | (linux_add_process): Adjust to set the new per-process | |
9046 | new_inferior flag. | |
9047 | (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread. | |
9048 | (linux_wait_for_lwp): Adjust. Only call arch_setup if the event | |
9049 | was a stop. When calling arch_setup, switch the current inferior | |
9050 | to the thread that got an event. | |
9051 | (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread. | |
9052 | (regsets_fetch_inferior_registers) | |
9053 | (regsets_store_inferior_registers): New regsets_info parameter. | |
9054 | Adjust to use it. | |
9055 | (linux_register_in_regsets): New regs_info parameter. Adjust to | |
9056 | use it. | |
9057 | (register_addr, fetch_register, store_register): New usrregs_info | |
9058 | parameter. Adjust to use it. | |
9059 | (usr_fetch_inferior_registers, usr_store_inferior_registers): New | |
9060 | parameter regs_info. Adjust to use it. | |
9061 | (linux_fetch_registers): Get the current inferior's regs_info, and | |
9062 | adjust to use it. | |
9063 | (linux_store_registers): Ditto. | |
9064 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): New. | |
9065 | (initialize_low): Don't initialize the target_regsets here. Call | |
9066 | initialize_low_arch. | |
9067 | * linux-low.h (target_regsets): Delete declaration. | |
9068 | (struct regsets_info): New. | |
9069 | (struct usrregs_info): New. | |
9070 | (struct regs_info): New. | |
9071 | (struct process_info_private) <new_inferior>: New field. | |
9072 | (struct linux_target_ops): Delete the num_regs, regmap, and | |
9073 | regset_bitmap fields. New field regs_info. | |
9074 | [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare. | |
9075 | * i387-fp.c (num_xmm_registers): Delete. | |
9076 | (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno | |
9077 | calls to new interface. | |
9078 | (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache) | |
9079 | (i387_xsave_to_cache): Adjust find_regno calls to new interface. | |
9080 | Infer the number of xmm registers from the regcache's target | |
9081 | description. | |
9082 | * i387-fp.h (num_xmm_registers): Delete. | |
9083 | * inferiors.c (add_thread): Don't install the thread's regcache | |
9084 | here. | |
9085 | * proc-service.c (gregset_info): Fetch the current inferior's | |
9086 | regs_info. Adjust to use it. | |
9087 | * regcache.c: Include tdesc.h. | |
9088 | (register_bytes, reg_defs, num_registers) | |
9089 | (gdbserver_expedite_regs): Delete. | |
9090 | (get_thread_regcache): If the thread doesn't have a regcache yet, | |
9091 | create one, instead of aborting gdbserver. | |
9092 | (regcache_invalidate_one): Rename to ... | |
9093 | (regcache_invalidate_thread): ... this. | |
9094 | (regcache_invalidate_one): New. | |
9095 | (regcache_invalidate): Only invalidate registers of the current | |
9096 | process. | |
9097 | (init_register_cache): Add target_desc parameter, and use it. | |
9098 | (new_register_cache): Ditto. Assert the target description has a | |
9099 | non zero registers_size. | |
9100 | (regcache_cpy): Add assertions. Adjust. | |
9101 | (realloc_register_cache, set_register_cache): Delete. | |
9102 | (registers_to_string, registers_from_string): Adjust. | |
9103 | (find_register_by_name, find_regno, find_register_by_number) | |
9104 | (register_cache_size): Add target_desc parameter, and use it. | |
9105 | (free_register_cache_thread, free_register_cache_thread_one) | |
9106 | (regcache_release, register_cache_size): New. | |
9107 | (register_size): Add target_desc parameter, and use it. | |
9108 | (register_data, supply_register, supply_register_zeroed) | |
9109 | (supply_regblock, supply_register_by_name, collect_register) | |
9110 | (collect_register_as_string, collect_register_by_name): Adjust. | |
9111 | * regcache.h (struct target_desc): Forward declare. | |
9112 | (struct regcache) <tdesc>: New field. | |
9113 | (init_register_cache, new_register_cache): Add target_desc | |
9114 | parameter. | |
9115 | (regcache_invalidate_thread): Declare. | |
9116 | (regcache_invalidate_one): Delete declaration. | |
9117 | (regcache_release): Declare. | |
9118 | (find_register_by_number, register_cache_size, register_size) | |
9119 | (find_regno): Add target_desc parameter. | |
9120 | (gdbserver_expedite_regs, gdbserver_xmltarget): Delete | |
9121 | declarations. | |
9122 | * remote-utils.c: Include tdesc.h. | |
9123 | (outreg, prepare_resume_reply): Adjust. | |
9124 | * server.c: Include tdesc.h. | |
9125 | (gdbserver_xmltarget): Delete declaration. | |
9126 | (get_features_xml, process_serial_event): Adjust. | |
9127 | * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward | |
9128 | declare. | |
9129 | (struct process_info) <tdesc>: New field. | |
9130 | (ipa_tdesc): Declare. | |
9131 | * tdesc.c: New file. | |
9132 | * tdesc.h: New file. | |
9133 | * tracepoint.c: Include tdesc.h. | |
9134 | [IN_PROCESS_AGENT] (ipa_tdesc): Define. | |
9135 | (get_context_regcache): Adjust to pass ipa_tdesc down. | |
9136 | (do_action_at_tracepoint): Adjust to get the register cache size | |
9137 | from the context regcache's description. | |
9138 | (traceframe_walk_blocks): Adjust to get the register cache size | |
9139 | from the current trace frame's description. | |
9140 | (traceframe_get_pc): Adjust to get current trace frame's | |
9141 | description and pass it down. | |
9142 | (gdb_collect): Adjust to get the register cache size from the | |
9143 | IPA's description. | |
9144 | * linux-amd64-ipa.c (tdesc_amd64_linux): Declare. | |
9145 | (gdbserver_xmltarget): Delete. | |
9146 | (initialize_low_tracepoint): Set the ipa's target description. | |
9147 | * linux-i386-ipa.c (tdesc_i386_linux): Declare. | |
9148 | (initialize_low_tracepoint): Set the ipa's target description. | |
9149 | * linux-x86-low.c: Include tdesc.h. | |
9150 | [__x86_64__] (is_64bit_tdesc): New. | |
9151 | (ps_get_thread_area, x86_get_thread_area): Use it. | |
9152 | (i386_cannot_store_register): Rename to ... | |
9153 | (x86_cannot_store_register): ... this. Use is_64bit_tdesc. | |
9154 | (i386_cannot_fetch_register): Rename to ... | |
9155 | (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc. | |
9156 | (x86_fill_gregset, x86_store_gregset): Adjust register_size calls | |
9157 | to new interface. | |
9158 | (target_regsets): Rename to ... | |
9159 | (x86_regsets): ... this. | |
9160 | (x86_get_pc, x86_set_pc): Adjust register_size calls to new | |
9161 | interface. | |
9162 | (x86_siginfo_fixup): Use is_64bit_tdesc. | |
9163 | [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux) | |
9164 | (tdesc_x32_avx_linux, tdesc_x32_linux) | |
9165 | (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux): | |
9166 | Declare. | |
9167 | (x86_linux_update_xmltarget): Delete. | |
9168 | (I386_LINUX_XSAVE_XCR0_OFFSET): Define. | |
9169 | (have_ptrace_getfpxregs, have_ptrace_getregset): New. | |
9170 | (AMD64_LINUX_USER64_CS): New. | |
9171 | (x86_linux_read_description): New, based on | |
9172 | x86_linux_update_xmltarget. | |
9173 | (same_process_callback): New. | |
9174 | (x86_arch_setup_process_callback): New. | |
9175 | (x86_linux_update_xmltarget): New. | |
9176 | (x86_regsets_info): New. | |
9177 | (amd64_linux_regs_info): New. | |
9178 | (i386_linux_usrregs_info): New. | |
9179 | (i386_linux_regs_info): New. | |
9180 | (x86_linux_regs_info): New. | |
9181 | (x86_arch_setup): Reimplement. | |
9182 | (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc. | |
9183 | (x86_emit_ops): Ditto. | |
9184 | (the_low_target): Adjust. Install x86_linux_regs_info, | |
9185 | x86_cannot_fetch_register, and x86_cannot_store_register. | |
9186 | (initialize_low_arch): New. | |
9187 | * linux-ia64-low.c (tdesc_ia64): Declare. | |
9188 | (ia64_fetch_register): Adjust. | |
9189 | (ia64_usrregs_info, regs_info): New globals. | |
9190 | (ia64_regs_info): New function. | |
9191 | (the_low_target): Adjust. | |
9192 | (initialize_low_arch): New function. | |
9193 | * linux-sparc-low.c (tdesc_sparc64): Declare. | |
9194 | (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack): | |
9195 | Adjust. | |
9196 | (sparc_arch_setup): New function. | |
9197 | (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals. | |
9198 | (the_low_target): Adjust. | |
9199 | (initialize_low_arch): New function. | |
9200 | * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l) | |
9201 | (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l) | |
9202 | (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l) | |
9203 | (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l) | |
9204 | (tdesc_powerpc_64l, tdesc_powerpc_altivec64l) | |
9205 | (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l) | |
9206 | (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l) | |
9207 | (tdesc_powerpc_isa205_vsx64l): Declare. | |
9208 | (ppc_cannot_store_register, ppc_collect_ptrace_register) | |
9209 | (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc) | |
9210 | (ppc_set_pc, ppc_get_hwcap): Adjust. | |
9211 | (ppc_usrregs_info): Forward declare. | |
9212 | (!__powerpc64__) ppc_regmap_adjusted: New global. | |
9213 | (ppc_arch_setup): Adjust to the current process'es target | |
9214 | description. | |
9215 | (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset) | |
9216 | (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse) | |
9217 | (ppc_store_evrregset): Adjust. | |
9218 | (target_regsets): Rename to ... | |
9219 | (ppc_regsets): ... this, and make static. | |
9220 | (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals. | |
9221 | (ppc_regs_info): New function. | |
9222 | (the_low_target): Adjust. | |
9223 | (initialize_low_arch): New function. | |
9224 | * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1) | |
9225 | (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1) | |
9226 | (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1) | |
9227 | (tdesc_s390x_linux64v2): Declare. | |
9228 | (s390_collect_ptrace_register, s390_supply_ptrace_register) | |
9229 | (s390_fill_gregset, s390_store_last_break): Adjust. | |
9230 | (target_regsets): Rename to ... | |
9231 | (s390_regsets): ... this, and make static. | |
9232 | (s390_get_pc, s390_set_pc): Adjust. | |
9233 | (s390_get_hwcap): New target_desc parameter, and use it. | |
9234 | [__s390x__] (have_hwcap_s390_high_gprs): New global. | |
9235 | (s390_arch_setup): Adjust to set the current process'es target | |
9236 | description. Don't adjust the regmap. | |
9237 | (s390_usrregs_info, s390_regsets_info, regs_info): New globals. | |
9238 | [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264) | |
9239 | (regs_info_3264): New globals. | |
9240 | (s390_regs_info): New function. | |
9241 | (the_low_target): Adjust. | |
9242 | (initialize_low_arch): New function. | |
9243 | * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux) | |
9244 | (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare. | |
9245 | [__mips64] (init_registers_mips_linux) | |
9246 | (init_registers_mips_dsp_linux): Delete defines. | |
9247 | [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines. | |
9248 | (have_dsp): New global. | |
9249 | (mips_read_description): New, based on mips_arch_setup. | |
9250 | (mips_arch_setup): Reimplement. | |
9251 | (get_usrregs_info): New function. | |
9252 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
9253 | (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset) | |
9254 | (mips_fill_fpregset, mips_store_fpregset): Adjust. | |
9255 | (target_regsets): Rename to ... | |
9256 | (mips_regsets): ... this, and make static. | |
9257 | (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info) | |
9258 | (dsp_regs_info, regs_info): New globals. | |
9259 | (mips_regs_info): New function. | |
9260 | (the_low_target): Adjust. | |
9261 | (initialize_low_arch): New function. | |
9262 | * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt) | |
9263 | (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon): | |
9264 | Declare. | |
9265 | (arm_fill_vfpregset, arm_store_vfpregset): Adjust. | |
9266 | (arm_read_description): New, with bits factored from | |
9267 | arm_arch_setup. | |
9268 | (arm_arch_setup): Reimplement. | |
9269 | (target_regsets): Rename to ... | |
9270 | (arm_regsets): ... this, and make static. | |
9271 | (arm_regsets_info, arm_usrregs_info, regs_info): New globals. | |
9272 | (arm_regs_info): New function. | |
9273 | (the_low_target): Adjust. | |
9274 | (initialize_low_arch): New function. | |
9275 | * linux-m68k-low.c (tdesc_m68k): Declare. | |
9276 | (target_regsets): Rename to ... | |
9277 | (m68k_regsets): ... this, and make static. | |
9278 | (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals. | |
9279 | (m68k_regs_info): New function. | |
9280 | (m68k_arch_setup): New function. | |
9281 | (the_low_target): Adjust. | |
9282 | (initialize_low_arch): New function. | |
9283 | * linux-sh-low.c (tdesc_sharch): Declare. | |
9284 | (target_regsets): Rename to ... | |
9285 | (sh_regsets): ... this, and make static. | |
9286 | (sh_regsets_info, sh_usrregs_info, regs_info): New globals. | |
9287 | (sh_regs_info, sh_arch_setup): New functions. | |
9288 | (the_low_target): Adjust. | |
9289 | (initialize_low_arch): New function. | |
9290 | * linux-bfin-low.c (tdesc_bfin): Declare. | |
9291 | (bfin_arch_setup): New function. | |
9292 | (bfin_usrregs_info, regs_info): New globals. | |
9293 | (bfin_regs_info): New function. | |
9294 | (the_low_target): Adjust. | |
9295 | (initialize_low_arch): New function. | |
9296 | * linux-cris-low.c (tdesc_cris): Declare. | |
9297 | (cris_arch_setup): New function. | |
9298 | (cris_usrregs_info, regs_info): New globals. | |
9299 | (cris_regs_info): New function. | |
9300 | (the_low_target): Adjust. | |
9301 | (initialize_low_arch): New function. | |
9302 | * linux-cris-low.c (tdesc_crisv32): Declare. | |
9303 | (cris_arch_setup): New function. | |
9304 | (cris_regsets_info, cris_usrregs_info, regs_info): New globals. | |
9305 | (cris_regs_info): New function. | |
9306 | (the_low_target): Adjust. | |
9307 | (initialize_low_arch): New function. | |
9308 | * linux-m32r-low.c (tdesc_m32r): Declare. | |
9309 | (m32r_arch_setup): New function. | |
9310 | (m32r_usrregs_info, regs_info): New globals. | |
9311 | (m32r_regs_info): Adjust. | |
9312 | (initialize_low_arch): New function. | |
9313 | * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux) | |
9314 | (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare. | |
9315 | (tic6x_usrregs_info): Forward declare. | |
9316 | (tic6x_read_description): New function, based on ... | |
9317 | (tic6x_arch_setup): ... this. Reimplement. | |
9318 | (target_regsets): Rename to ... | |
9319 | (tic6x_regsets): ... this, and make static. | |
9320 | (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals. | |
9321 | (tic6x_regs_info): New function. | |
9322 | (the_low_target): Adjust. | |
9323 | (initialize_low_arch): New function. | |
9324 | * linux-xtensa-low.c (tdesc_xtensa): Declare. | |
9325 | (xtensa_fill_gregset, xtensa_store_gregset): Adjust. | |
9326 | (target_regsets): Rename to ... | |
9327 | (xtensa_regsets): ... this, and make static. | |
9328 | (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New | |
9329 | globals. | |
9330 | (xtensa_arch_setup, xtensa_regs_info): New functions. | |
9331 | (the_low_target): Adjust. | |
9332 | (initialize_low_arch): New function. | |
9333 | * linux-nios2-low.c (tdesc_nios2_linux): Declare. | |
9334 | (nios2_arch_setup): Set the current process'es tdesc. | |
9335 | (target_regsets): Rename to ... | |
9336 | (nios2_regsets): ... this. | |
9337 | (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals. | |
9338 | (nios2_regs_info): New function. | |
9339 | (the_low_target): Adjust. | |
9340 | (initialize_low_arch): New function. | |
a261b8f5 PA |
9341 | * linux-aarch64-low.c (tdesc_aarch64): Declare. |
9342 | (aarch64_arch_setup): Set the current process'es tdesc. | |
9343 | (target_regsets): Rename to ... | |
9344 | (aarch64_regsets): ... this. | |
9345 | (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals. | |
9346 | (aarch64_regs_info): New function. | |
9347 | (the_low_target): Adjust. | |
9348 | (initialize_low_arch): New function. | |
3aee8918 PA |
9349 | * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare |
9350 | globals. | |
9351 | (target_regsets): Rename to ... | |
9352 | (tile_regsets): ... this. | |
9353 | (tile_regsets_info, tile_usrregs_info, regs_info): New globals. | |
9354 | (tile_regs_info): New function. | |
9355 | (tile_arch_setup): Set the current process'es tdesc. | |
9356 | (the_low_target): Adjust. | |
9357 | (initialize_low_arch): New function. | |
9358 | * spu-low.c (tdesc_spu): Declare. | |
9359 | (spu_create_inferior, spu_attach): Set the new process'es tdesc. | |
9360 | * win32-arm-low.c (tdesc_arm): Declare. | |
9361 | (arm_arch_setup): New function. | |
9362 | (the_low_target): Install arm_arch_setup instead of | |
9363 | init_registers_arm. | |
9364 | * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare. | |
9365 | (init_windows_x86): Rename to ... | |
9366 | (i386_arch_setup): ... this. Set `win32_tdesc'. | |
9367 | (the_low_target): Adjust. | |
9368 | * win32-low.c (win32_tdesc): New global. | |
9369 | (child_add_thread): Don't create the thread cache here. | |
9370 | (do_initial_child_stuff): Set the new process'es tdesc. | |
9371 | * win32-low.h (struct target_desc): Forward declare. | |
9372 | (win32_tdesc): Declare. | |
9373 | * lynx-i386-low.c (tdesc_i386): Declare global. | |
9374 | (lynx_i386_arch_setup): Set `lynx_tdesc'. | |
9375 | * lynx-low.c (lynx_tdesc): New global. | |
9376 | (lynx_add_process): Set the new process'es tdesc. | |
9377 | * lynx-low.h (struct target_desc): Forward declare. | |
9378 | (lynx_tdesc): Declare global. | |
9379 | * lynx-ppc-low.c (tdesc_powerpc_32): Declare global. | |
9380 | (lynx_ppc_arch_setup): Set `lynx_tdesc'. | |
9381 | * nto-low.c (nto_tdesc): New global. | |
9382 | (do_attach): Set the new process'es tdesc. | |
9383 | * nto-low.h (struct target_desc): Forward declare. | |
9384 | (nto_tdesc): Declare. | |
9385 | * nto-x86-low.c (tdesc_i386): Declare. | |
9386 | (nto_x86_arch_setup): Set `nto_tdesc'. | |
9387 | ||
b1fbec62 GB |
9388 | 2013-06-04 Gary Benson <gbenson@redhat.com> |
9389 | ||
9390 | * server.c (handle_query): Add "augmented-libraries-svr4-read+" | |
9391 | to qSupported response when appropriate. | |
9392 | (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read | |
9393 | with nonzero-length annex. | |
9394 | * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle | |
9395 | arguments supplied in annex. | |
9396 | ||
d1ec4ce7 DE |
9397 | 2013-05-31 Doug Evans <dje@google.com> |
9398 | ||
ac44adcb | 9399 | PR server/15594 |
d1ec4ce7 DE |
9400 | * linux-x86-low.c (ps_get_thread_area): Properly extend address to |
9401 | 64 bits in 64-cross-32 environment. | |
9402 | ||
9b25f2d3 PA |
9403 | 2013-05-28 Pedro Alves <palves@redhat.com> |
9404 | ||
9405 | * Makefile.in (clean): Remove reference to aarch64-without-fpu.c. | |
9406 | (aarch64-without-fpu.c): Delete rule. | |
9407 | * configure.srv (aarch64*-*-linux*): Remove references to | |
9408 | aarch64-without-fpu.o and aarch64-without-fpu.xml. | |
9409 | * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove | |
9410 | declaration. | |
9411 | ||
6740dc9c PA |
9412 | 2013-05-24 Pedro Alves <palves@redhat.com> |
9413 | ||
9414 | * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex | |
9415 | instead of strchr/decode_address. Error if the range isn't split | |
9416 | with a ','. Don't assume there's be a ':' in the action. | |
9417 | ||
c2d6af84 PA |
9418 | 2013-05-23 Yao Qi <yao@codesourcery.com> |
9419 | Pedro Alves <palves@redhat.com> | |
9420 | ||
9421 | * linux-low.c (lwp_in_step_range): New function. | |
9422 | (linux_wait_1): If the thread was range stepping and stopped | |
9423 | outside the stepping range, report the stop to GDB. Otherwise, | |
9424 | continue stepping. Add range stepping debug output. | |
9425 | (linux_set_resume_request): Copy the step range from the resume | |
9426 | request to the lwp. | |
9427 | (linux_supports_range_stepping): New. | |
9428 | (linux_target_ops) <supports_range_stepping>: Set to | |
9429 | linux_supports_range_stepping. | |
9430 | * linux-low.h (struct linux_target_ops) | |
9431 | <supports_range_stepping>: New field. | |
9432 | (struct lwp_info) <step_range_start, step_range_end>: New fields. | |
9433 | * linux-x86-low.c (x86_supports_range_stepping): New. | |
9434 | (the_low_target) <supports_range_stepping>: Set to | |
9435 | x86_supports_range_stepping. | |
9436 | * server.c (handle_v_cont): Handle 'r' action. | |
9437 | (handle_v_requests): Append ";r" if the target supports range | |
9438 | stepping. | |
9439 | * target.h (struct thread_resume) <step_range_start, | |
9440 | step_range_end>: New fields. | |
9441 | (struct target_ops) <supports_range_stepping>: | |
9442 | New field. | |
9443 | (target_supports_range_stepping): New macro. | |
9444 | ||
58794e1a JB |
9445 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
9446 | ||
9447 | * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid | |
9448 | confusion in comment. | |
9449 | ||
d631c5a7 JB |
9450 | 2013-05-17 Joel Brobecker <brobecker@adacore.com> |
9451 | ||
9452 | * lynx-low.c (struct process_info_private): New type. | |
9453 | (lynx_add_process): New function. | |
9454 | (lynx_create_inferior, lynx_attach): Replace calls to | |
9455 | add_process by calls to lynx_add_process. | |
9456 | (lynx_resume): If PTID is null, then try using | |
9457 | current_process()->private->last_wait_event_ptid. | |
9458 | Add comments. | |
9459 | (lynx_clear_inferiors): Delete. The contents of that function | |
9460 | has been inlined in lynx_mourn; | |
9461 | (lynx_wait_1): Save the ptid in the process's private data. | |
9462 | (lynx_mourn): Free the process' private data. Replace call | |
9463 | to lynx_clear_inferiors by call to clear_inferiors. | |
9464 | ||
96f7a20f YQ |
9465 | 2013-05-17 Yao Qi <yao@codesourcery.com> |
9466 | ||
9467 | * i386-low.c (i386_length_and_rw_bits): Move the comment to | |
9468 | the right place. | |
9469 | ||
db0dfaa0 LM |
9470 | 2013-05-16 Luis Machado <lgustavo@codesourcery.com> |
9471 | ||
9472 | * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR, | |
9473 | PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments. | |
9474 | (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and | |
9475 | PT_TEXT_END_ADDR guards. Update comments. | |
9476 | (linux_target_op) <read_offsets>: Conditionally define to | |
9477 | linux_read_offsets if the target is UCLIBC and if it defines | |
9478 | PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR. | |
9479 | ||
68f5f838 SL |
9480 | 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> |
9481 | Andrew Jenner <andrew@codesourcery.com> | |
9482 | ||
9483 | * Makefile.in (SFILES): Add linux-nios2-low.c. | |
9484 | (clean): Add action to delete nios2-linux.c. | |
9485 | (nios2-linux.c): New rule. | |
9486 | * configure.srv: Add nios2*-*-linux*. | |
9487 | * linux-nios2-low.c: New. | |
9488 | ||
1ebff1fd HAQ |
9489 | 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com> |
9490 | ||
9491 | * tracepoint.c (cmd_qtinit): Call 'stop_tracing'. | |
9492 | ||
f6150862 HZ |
9493 | 2013-04-25 Hui Zhu <hui@codesourcery.com> |
9494 | ||
9495 | PR gdb/15186 | |
f6150862 HZ |
9496 | * ax.c (ax_printf): Add fflush. |
9497 | ||
614c279d TT |
9498 | 2013-04-22 Tom Tromey <tromey@redhat.com> |
9499 | ||
9500 | * Makefile.in (SFILES): Add filestuff.c. | |
9501 | (OBS): Add filestuff.o. | |
9502 | (filestuff.o): New target. | |
9503 | * config.in, configure: Rebuild. | |
9504 | * configure.ac: Check for fdwalk, pipe2. | |
9505 | ||
7d4e5717 PA |
9506 | 2013-04-17 Pedro Alves <palves@redhat.com> |
9507 | ||
9508 | * configure.ac (USE_THREAD_DB): Delete variable. | |
9509 | (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB. | |
9510 | Don't AC_SUBST USE_THREAD_DB. | |
9511 | * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@. | |
9512 | * config.in, configure: Regenerate. | |
9513 | ||
d5c93e41 PA |
9514 | 2013-04-16 Pedro Alves <palves@redhat.com> |
9515 | ||
9516 | * linux-low.h (struct lwp_info) <thread_known>: Move under | |
9517 | the USE_THREAD_DB #ifdef. | |
9518 | ||
04f5fe89 PA |
9519 | 2013-04-16 Pedro Alves <palves@redhat.com> |
9520 | ||
9521 | * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@. | |
9522 | (linux-low.o): Delete rule. | |
9523 | * linux-low.h: Always include "gdb_thread_db.h" instead of | |
9524 | conditionally including thread_db.h. | |
9525 | (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of | |
9526 | HAVE_THREAD_DB_H. | |
9527 | ||
480b27bf JK |
9528 | 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
9529 | ||
9530 | * Makefile.in (install-only): Fix make install regression. | |
9531 | ||
43662968 JK |
9532 | 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
9533 | ||
9534 | Convert man pages to texinfo, new gdbinit.5 texinfo page. | |
9535 | * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1 | |
9536 | installation. | |
9537 | * gdbserver.1: Remove. | |
9538 | ||
3e74e146 PA |
9539 | 2013-03-22 Pedro Alves <palves@redhat.com> |
9540 | ||
9541 | * linux-low.c (handle_extended_wait): Don't call | |
9542 | linux_enable_event_reporting. | |
9543 | ||
a8347a2a TT |
9544 | 2013-03-15 Tony Theodore <tonyt@logyst.com> |
9545 | ||
9546 | PR build/9098: | |
9547 | * Makefile.in (SHELL): Use @SHELL@. | |
9548 | ||
eeb56fa7 SDJ |
9549 | 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com> |
9550 | ||
9551 | * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing | |
9552 | compiler warning. | |
9553 | ||
4fa7e2ff JB |
9554 | 2013-03-13 Joel Brobecker <brobecker@adacore.com> |
9555 | ||
9556 | * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]: | |
9557 | Remove extraneous NULL element. | |
9558 | ||
8ddb1965 YQ |
9559 | 2013-03-13 Yao Qi <yao@codesourcery.com> |
9560 | ||
9561 | * tracepoint.c (traceframe_read_tsv): Look for the last matched | |
9562 | 'V' block in trace frame. | |
9563 | ||
9accd112 MM |
9564 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
9565 | ||
9566 | * target.h (struct target_ops): Add btrace ops. | |
9567 | (target_supports_btrace): New macro. | |
9568 | (target_enable_btrace): New macro. | |
9569 | (target_disable_btrace): New macro. | |
9570 | (target_read_btrace): New macro. | |
9571 | * gdbthread.h (struct thread_info): Add btrace field. | |
9572 | * server.c: Include btrace-common.h. | |
9573 | (handle_btrace_general_set): New function. | |
9574 | (handle_btrace_enable): New function. | |
9575 | (handle_btrace_disable): New function. | |
9576 | (handle_general_set): Call handle_btrace_general_set. | |
9577 | (handle_qxfer_btrace): New function. | |
9578 | (struct qxfer qxfer_packets[]): Add btrace entry. | |
9579 | * inferiors.c (remove_thread): Disable btrace. | |
9580 | * linux-low: Include linux-btrace.h. | |
9581 | (linux_low_enable_btrace): New function. | |
9582 | (linux_low_read_btrace): New function. | |
9583 | (linux_target_ops): Add btrace ops. | |
9584 | * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o. | |
9585 | Add srv_linux_btrace=yes. | |
9586 | (x86_64-*-linux*): Add linux-btrace.o. | |
9587 | Add srv_linux_btrace=yes. | |
9588 | * configure.ac: Define HAVE_LINUX_BTRACE. | |
9589 | * config.in: Regenerated. | |
9590 | * configure: Regenerated. | |
9591 | ||
5cc22e4c MM |
9592 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
9593 | ||
9594 | * server.c (handle_qxfer): Preserve error message if -3 is | |
9595 | returned. | |
9596 | (qxfer): Document the -3 return value. | |
9597 | ||
7c97f91e MM |
9598 | 2013-03-11 Markus Metzger <markus.t.metzger@intel.com> |
9599 | ||
9600 | * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c. | |
9601 | (linux_btrace_h): New variable. | |
9602 | (linux-btrace.o): New rule. | |
9603 | ||
be9a119c | 9604 | 2013-03-08 Stan Shebs <stan@codesourcery.com> |
f6f899bf HAQ |
9605 | Hafiz Abid Qadeer <abidh@codesourcery.com> |
9606 | ||
9607 | * tracepoint.c (trace_buffer_size): New global. | |
9608 | (DEFAULT_TRACE_BUFFER_SIZE): New define. | |
9609 | (init_trace_buffer): Change to one-argument function. Allocate | |
9610 | trace buffer memory. | |
9611 | (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to | |
9612 | handle QTBuffer:size packet. | |
9613 | (cmd_bigqtbuffer_size): New function. | |
9614 | (initialize_tracepoint): Call init_trace_buffer with | |
9615 | DEFAULT_TRACE_BUFFER_SIZE. | |
9616 | * server.c (handle_query): Add QTBuffer:size in the | |
9617 | supported packets. | |
9618 | ||
e64f7499 YQ |
9619 | 2013-03-07 Yao Qi <yao@codesourcery.com> |
9620 | ||
9621 | * tracepoint.c (cur_action, cur_step_action): Make them unsigned. | |
9622 | (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead | |
9623 | of -1. | |
9624 | (cmd_qtsp): Adjust condition. Do post increment. | |
9625 | Set cur_action and cur_step_action back to 0. | |
9626 | ||
f0ae6fc3 PA |
9627 | 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com> |
9628 | ||
9629 | PR server/15236 | |
9630 | * linux-low.c (linux_write_memory): Return early success if LEN is | |
9631 | zero. | |
9632 | ||
b5b0b0af CV |
9633 | 2013-03-05 Corinna Vinschen <vinschen@redhat.de> |
9634 | ||
334ad4a8 | 9635 | * configure.srv: Add x86_64-*-cygwin* as target. |
b5b0b0af | 9636 | |
589bc927 TT |
9637 | 2013-02-28 Tom Tromey <tromey@redhat.com> |
9638 | ||
9639 | * configure.ac: Invoke AC_SYS_LARGEFILE. | |
9640 | * configure, config.in: Rebuild. | |
9641 | ||
dfe07582 CV |
9642 | 2013-02-28 Corinna Vinschen <vinschen@redhat.com> |
9643 | ||
9644 | * win32-low.c: Throughout, fix format strings and casts of | |
9645 | printf-like functions to avoid type related warnings on all | |
9646 | platforms. | |
9647 | (get_child_debug_event): Print dwDebugEventCode as hex since | |
9648 | that's how it's usually documented. | |
9649 | ||
736cd585 YQ |
9650 | 2013-02-28 Yao Qi <yao@codesourcery.com> |
9651 | ||
9652 | * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of | |
9653 | pulongest. | |
9654 | ||
e1f58301 JW |
9655 | 2013-02-27 Jiong Wang <jiwang@tilera.com> |
9656 | ||
9657 | * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c. | |
9658 | (reg-tilegx32.c): New rule. | |
9659 | * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj. | |
9660 | * linux-tile-low.c (tile_arch_setup): New function. Invoke | |
9661 | different register info initializer according to elf class. | |
9662 | (init_registers_tilgx32): New function. The tilegx32 register info | |
9663 | initializer. | |
9664 | (tile_fill_gregset): Use "uint_reg_t" to represent register size. | |
9665 | (tile_store_gregset): Likewise. | |
9666 | ||
d171ca78 YQ |
9667 | 2013-02-27 Yao Qi <yao@codesourcery.com> |
9668 | ||
9669 | * server.c (process_point_options): Print debug message when | |
9670 | debug_threads is true. | |
9671 | ||
282bbdf3 YQ |
9672 | 2013-02-26 Yao Qi <yao@codesourcery.com> |
9673 | ||
9674 | * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF. | |
9675 | ||
aca22551 PA |
9676 | 2013-02-19 Pedro Alves <palves@redhat.com> |
9677 | Kai Tietz <ktietz@redhat.com> | |
9678 | ||
9679 | PR gdb/15161 | |
9680 | ||
9681 | * server.c (handle_query) <CRC check>: Use unpack_varlen_hex | |
9682 | instead of strtoul to extract address from packet. | |
9683 | (process_serial_event) <'z'>: Likewise. | |
9684 | ||
4f3cee1c YQ |
9685 | 2013-02-18 Yao Qi <yao@codesourcery.com> |
9686 | ||
9687 | * linux-bfin-low.c (the_low_target): Use NULL instead of 0. | |
9688 | ||
8e1d55a3 PA |
9689 | 2013-02-14 Pedro Alves <palves@redhat.com> |
9690 | ||
9691 | Plug memory leak. | |
9692 | ||
9693 | * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME, | |
9694 | TRACING_NOTES and TRACING_STOP_NOTE before clobbering. | |
9695 | ||
458820da PA |
9696 | 2013-02-14 Pedro Alves <palves@redhat.com> |
9697 | ||
9698 | * tracepoint.c (cmd_qtdpsrc): Use savestring. | |
9699 | ||
baea0dae PA |
9700 | 2013-02-14 Pedro Alves <palves@redhat.com> |
9701 | ||
9702 | * tracepoint.c (save_string): Delete. | |
9703 | (add_tracepoint_action): Use savestring instead of save_string. | |
9704 | ||
0b1afbb3 PA |
9705 | 2013-02-12 Pedro Alves <palves@redhat.com> |
9706 | ||
9707 | * linux-xtensa-low.c: Ditto. | |
9708 | * xtensa-xtregs.c: Ditto. | |
9709 | ||
8a4ac37e PA |
9710 | 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com> |
9711 | ||
9712 | * thread-db.c (thread_db_get_tls_address): NULL pointer check | |
9713 | thread_db. | |
9714 | ||
148de6bb MS |
9715 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
9716 | ||
9717 | * linux-aarch64-low.c (aarch64_arch_setup): Clamp | |
9718 | aarch64_num_wp_regs and aarch64_num_bp_regs to | |
9719 | AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively. | |
9720 | ||
55fac6e0 MS |
9721 | 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com> |
9722 | ||
9723 | * linux-aarch64-low.c (ps_get_thread_area): Replace | |
9724 | PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET. | |
9725 | ||
176eb98c MS |
9726 | 2013-02-04 Jim MacArthur <jim.macarthur@arm.com> |
9727 | Marcus Shawcroft <marcus.shawcroft@arm.com> | |
9728 | Nigel Stephens <nigel.stephens@arm.com> | |
9729 | Yufeng Zhang <yufeng.zhang@arm.com> | |
9730 | ||
9731 | * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c. | |
9732 | (aarch64.c, aarch64-without-fpu.c): New targets. | |
9733 | * configure.srv (aarch64*-*-linux*): New. | |
9734 | * linux-aarch64-low.c: New file. | |
9735 | ||
56f7af9c MS |
9736 | 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com> |
9737 | ||
43aaf8b6 | 9738 | * linux-low.c (handle_extended_wait, linux_create_inferior) |
56f7af9c MS |
9739 | (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp) |
9740 | (dequeue_one_deferred_signal, linux_resume_one_thread) | |
9741 | (fetch_register, linux_write_memory, linux_enable_event_reporting) | |
9742 | (linux_tracefork_grandchild, linux_test_for_tracefork) | |
9743 | (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add | |
9744 | PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments | |
9745 | where the argument is 0. | |
9746 | ||
60f662b0 YQ |
9747 | 2013-01-25 Yao Qi <yao@codesourcery.com> |
9748 | ||
9749 | * event-loop.c: Include "queue.h". | |
9750 | (gdb_event_p): New typedef. | |
9751 | (struct gdb_event) <next_event>: Remove. | |
9752 | (event_queue): Change to QUEUE(gdb_event_p). | |
9753 | (async_queue_event): Remove. | |
9754 | (gdb_event_xfree): New. | |
9755 | (initialize_event_loop): New. | |
9756 | (process_event): Use API from QUEUE. | |
9757 | (wait_for_event): Likewise. | |
9758 | * server.c (main): Call initialize_event_loop. | |
9759 | * server.h (initialize_event_loop): Declare. | |
9760 | ||
5ae4861a YQ |
9761 | 2013-01-18 Yao Qi <yao@codesourcery.com> |
9762 | ||
9763 | * ax.h (struct eval_agent_expr_context): New. | |
9764 | (gdb_eval_agent_expr): Update declaration. | |
9765 | * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and | |
9766 | TFRAME. Add new argument CTX. | |
9767 | * server.h (struct eval_agent_expr_context): Declare. | |
9768 | (agent_mem_read, agent_tsv_read): Update declaration. | |
9769 | (agent_mem_read_string): Likewise. | |
9770 | * tracepoint.c (eval_tracepoint_agent_expr): Remove. | |
9771 | (add_traceframe_block): Add new argument TPOINT. | |
9772 | Increase TPOINT->traceframe_usage. | |
9773 | (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of | |
9774 | eval_tracepoint_agent_expr. | |
9775 | (condition_true_at_tracepoint): Likewise. | |
9776 | (agent_mem_read): Remove argument TFRAME. Add argument CTX. | |
9777 | (agent_mem_read_string, agent_tsv_read): Likewise. | |
9778 | ||
85e00e85 YQ |
9779 | 2013-01-16 Yao Qi <yao@codesourcery.com> |
9780 | ||
9781 | * linux-low.c (linux_resume_one_lwp): Don't check | |
9782 | 'lwp->bp_reinsert != 0'. | |
9783 | ||
4039cf45 JB |
9784 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9785 | Pedro Alves <palves@redhat.com> | |
9786 | ||
9787 | * lynx-low.c (ptrace_request_to_str): Define a temporary | |
9788 | macro and use it to simplify this function's implementation. | |
9789 | ||
9044dee2 JB |
9790 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9791 | ||
9792 | * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace | |
9793 | sets errno. | |
9794 | ||
e6352c8f JB |
9795 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9796 | ||
9797 | * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles. | |
9798 | ||
50681a27 JB |
9799 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9800 | ||
9801 | * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles. | |
9802 | ||
3f6e77ef JB |
9803 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9804 | ||
9805 | * lynx-low.c (lynx_resume): Use the resume_info parameter | |
9806 | to determine the ptid for the lynx_ptrace call, unless | |
9807 | it is equal to minus_one_ptid, in which case we use the | |
9808 | ptid of the current_inferior. | |
9809 | (lynx_wait_1): After having received a thread create/exit | |
9810 | event, resume the inferior's execution using the signaling | |
9811 | thread's ptid, rather than the old ptid. | |
9812 | ||
7fda33ae JB |
9813 | 2013-01-07 Joel Brobecker <brobecker@adacore.com> |
9814 | ||
9815 | * lynx-low.c (lynx_resume): Delete variable ret. | |
9816 | ||
b9786c74 JB |
9817 | 2013-01-01 Joel Brobecker <brobecker@adacore.com> |
9818 | ||
9819 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
9820 | * server.c (gdbserver_version): Likewise. | |
9821 | ||
8b93d60f JB |
9822 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
9823 | ||
9824 | * lynx-low.c (lynx_wait_1): Add debug trace before adding | |
9825 | new thread. | |
9826 | ||
037335a7 JB |
9827 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
9828 | ||
9829 | * lynx-low.c (ptrace_request_to_str): Add handling for | |
9830 | PTRACE_GETTRACESIG. | |
9831 | ||
52d4cbd8 JB |
9832 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
9833 | ||
9834 | * lynx-low.c (lynx_attach): Delete variable new_process. | |
9835 | ||
ab8f6ca9 JB |
9836 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
9837 | ||
9838 | * lynx-low.c (lynx_create_inferior): Delete variable | |
9839 | new_process. | |
9840 | ||
78cbc024 JB |
9841 | 2012-12-17 Joel Brobecker <brobecker@adacore.com> |
9842 | ||
9843 | * lynx-low.c (ptrace_request_to_str): Do not handle | |
9844 | PTRACE_GETTHREADLIST if this macro does not exist. | |
9845 | ||
14a00470 YQ |
9846 | 2012-12-15 Yao Qi <yao@codesourcery.com> |
9847 | ||
9848 | * Makefile.in (OBS): Add notif.o. | |
9849 | * notif.c, notif.h: New. | |
9850 | * server.c: Include "notif.h". | |
9851 | (struct vstop_notif) <next>: Remove. | |
9852 | <base>: New field. | |
9853 | (queue_stop_reply): Update. | |
9854 | (push_event, send_next_stop_reply): Remove. | |
9855 | (discard_queued_stop_replies): Update. | |
9856 | (notif_stop): New variable. | |
9857 | (handle_v_stopped): Remove. | |
9858 | (handle_v_requests): Don't call handle_v_stopped. Call | |
9859 | handle_ack_notif instead. | |
9860 | (queue_stop_reply_callback): Call notif_event_enque instead | |
9861 | of queue_stop_reply. | |
9862 | (handle_status): Don't call send_next_stop_reply, call | |
9863 | notif_write_event instead. | |
9864 | (kill_inferior_callback): Likewise. | |
9865 | (detach_or_kill_inferior_callback): Likewise. | |
9866 | (main): Call initialize_notif. | |
9867 | (process_serial_event): Call QUEUE_is_empty. | |
9868 | (handle_target_event): Call notif_push instead of push event. | |
9869 | * server.h (push_event): Remove declaration. | |
9870 | ||
61c125b9 TT |
9871 | 2012-12-10 Tom Tromey <tromey@redhat.com> |
9872 | ||
9873 | * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre) | |
9874 | (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New | |
9875 | macros. | |
9876 | (.c.o): Rewrite. | |
9877 | (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o) | |
9878 | (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o) | |
9879 | (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o) | |
9880 | (amd64-linux-ipa.o, ax.o): Rewrite. | |
9881 | (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o) | |
9882 | (proc-service.o, regcache.o, remote-utils.o, server.o, target.o) | |
9883 | (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove. | |
9884 | (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o) | |
9885 | (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o) | |
9886 | (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite. | |
9887 | (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o) | |
9888 | (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o) | |
9889 | (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o) | |
9890 | (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o) | |
9891 | (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o) | |
9892 | (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o) | |
9893 | (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o) | |
9894 | (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o) | |
9895 | (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o) | |
9896 | (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o) | |
9897 | (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o) | |
9898 | (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o) | |
9899 | (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o) | |
9900 | (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o) | |
9901 | (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o) | |
9902 | (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o) | |
9903 | (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o) | |
9904 | (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o) | |
9905 | (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o) | |
9906 | (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o) | |
9907 | (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o) | |
9908 | (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o) | |
9909 | (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o) | |
9910 | (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o) | |
9911 | (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o) | |
9912 | (reg-tilegx.o): Remove. | |
9913 | (all_object_files): New macro. | |
9914 | Include .deps files. | |
9915 | * aclocal.m4, configure: Rebuild. | |
9916 | * acinclude.m4: Include depstand.m4, lead-dot.m4. | |
9917 | * configure.ac: Invoke ZW_CREATE_DEPDIR, | |
9918 | ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition. | |
9919 | ||
e90e9ad9 TT |
9920 | 2012-12-05 Tom Tromey <tromey@redhat.com> |
9921 | ||
9922 | PR gdb/14917: | |
9923 | * server.h (current_insn_ptr, emit_error): Declare 'extern'. | |
9924 | ||
02d403bf | 9925 | 2012-11-28 Markus Metzger <markus.t.metzger@intel.com> |
945bf713 MM |
9926 | |
9927 | * configure.ac: Check for linux/perf_event.h. | |
9928 | * config.in: Regenerated. | |
9929 | * configure: Regenerated. | |
9930 | ||
0270a750 PA |
9931 | 2012-11-26 Maxime Villard <rustyBSD@gmx.fr> |
9932 | ||
9933 | * hostio.c (handle_readlink): Decrease buffer size | |
9934 | parameter passed to readlink by one byte. | |
9935 | ||
8c29b58e YQ |
9936 | 2012-11-26 Yao Qi <yao@codesourcery.com> |
9937 | ||
9938 | * configure.ac (build_warnings): Append '-Wempty-body'. | |
9939 | * configure: Regenerated. | |
9940 | * linux-low.c (linux_create_inferior): Use braces for empty 'if' | |
9941 | body. | |
9942 | ||
8bdce1ff PM |
9943 | 2012-11-15 Pierre Muller <muller@sourceware.org> |
9944 | ||
9945 | * configure.ac (AC_CHECK_HEADERS): Add wait.h header. | |
9946 | * config.in: Regenerate. | |
9947 | * configure: Regenerate. | |
9948 | * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header. | |
9949 | Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
9950 | * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
9951 | * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h> | |
9952 | header. | |
9953 | * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header | |
9954 | instead of <sys/wait.h> header. | |
9955 | * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header. | |
9956 | ||
02d403bf | 9957 | 2012-11-13 Markus Metzger <markus.t.metzger@intel.com> |
3ba6ad0f MM |
9958 | |
9959 | * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER | |
9960 | (various make rules): Remove -DGDBSERVER | |
9961 | ||
fbd5db48 YQ |
9962 | 2012-11-09 Yao Qi <yao@codesourcery.com> |
9963 | ||
9964 | * spu-low.c (current_ptid): Move it to .. | |
9965 | * gdbthread.h: ... here. New. | |
9966 | * remote-utils.c (read_ptid): Use macro 'current_ptid'. | |
9967 | * server.c (myresume, process_serial_event): Likewise. | |
9968 | * thread-db.c (thread_db_find_new_threads): Likewise. | |
9969 | * tracepoint.c (run_inferior_command): Likewise. | |
9970 | ||
b3dc46ff AB |
9971 | 2012-10-01 Andrew Burgess <aburgess@broadcom.com> |
9972 | ||
9973 | * server.c (handle_search_memory_1): Include access length in | |
9974 | warning message. | |
9975 | ||
07c04788 HPN |
9976 | 2012-09-05 Michael Brandt <michael.brandt@axis.com> |
9977 | ||
9978 | * linux-crisv32-low.c: Fix compile errors. | |
9979 | ||
918d227b YQ |
9980 | 2012-09-04 Yao Qi <yao@codesourcery.com> |
9981 | ||
9982 | * tracepoint.c (cmd_qtsv): Adjust debug message. | |
9983 | Don't check CUR_TPOINT. | |
9984 | ||
18c1b81a YQ |
9985 | 2012-08-28 Yao Qi <yao@codesourcery.com> |
9986 | ||
9987 | * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF. | |
9988 | * server.h: Include 'libiberty.h' and 'ansidecl.h'. | |
9989 | (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove. | |
9990 | Remove declarations of xmalloc, xreallloc, xstrdup and | |
9991 | freeargv. | |
9992 | * Makefile.in (libiberty_h): New. | |
9993 | (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'. | |
9994 | (linux-bfin-low.o): Append dependency 'libiberty.h'. | |
9995 | ||
dc82f37b YQ |
9996 | 2012-08-23 Yao Qi <yao@codesourcery.com> |
9997 | ||
9998 | * server.h: Remove declaration of 'xsnprintf'. | |
9999 | ||
406b1477 KS |
10000 | 2012-08-22 Keith Seitz <keiths@redhat.com> |
10001 | ||
10002 | * server.h: Include build-gnulib-gbserver/config.h. | |
10003 | * gdbreplay.c: Likewise. | |
10004 | ||
e6712ff1 DE |
10005 | 2012-08-08 Doug Evans <dje@google.com> |
10006 | ||
10007 | * Makefile.in (SFILES): Add gdb_vecs.c. | |
10008 | (OBS): Add gdb_vecs.o. | |
10009 | (gdb_vecs_h, host_defs_h): New variables. | |
10010 | (thread-db.o): Add $(gdb_vecs_h) dependency. | |
10011 | (gdb_vecs.o): New rule. | |
10012 | * thread-db.c: #include "gdb_vecs.h". | |
10013 | (thread_db_load_search): Use a vector to iterate over path elements. | |
10014 | Handle text appearing after "$pdir". | |
10015 | ||
10016 | * configure.ac: Add check for strstr. | |
10017 | * config.in: Regenerate. | |
10018 | * configure: Regenerate. | |
10019 | ||
7c3270ae UW |
10020 | 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
10021 | ||
10022 | * hostio.c (handle_pread): If pread fails, fall back to attempting | |
10023 | lseek/read. | |
10024 | (handle_pwrite): Likewise for pwrite. | |
10025 | ||
b62e2b27 UW |
10026 | 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
10027 | ||
10028 | * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish | |
10029 | between unsupported TYPE and unimplementable ADDR/LEN combination. | |
10030 | (arm_insert_point): Act on new return value. | |
10031 | ||
78a99e91 PA |
10032 | 2012-07-31 Pedro Alves <palves@redhat.com> |
10033 | ||
10034 | * server.c (process_point_options): Only skip tokens if we find | |
10035 | one that is unrecognized. Don't treat 'X' specially while | |
10036 | skipping unrecognized tokens. | |
10037 | ||
fcf303ab UW |
10038 | 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org> |
10039 | ||
10040 | * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt | |
10041 | to 4-byte-align HW breakpoint addresses for Thumb. | |
10042 | ||
7255706c YQ |
10043 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
10044 | ||
10045 | PR remote/14161. | |
10046 | ||
10047 | * server.h: Declare gdb_agent_about_to_close. | |
10048 | * target.c (kill_inferior): Include "agent.h". | |
10049 | New. Send command 'kill'. | |
10050 | * target.h (kill_inferior): Removed macro. | |
10051 | * tracepoint.c (gdb_agent_about_to_close): New. | |
10052 | (gdb_agent_helper_thread): Handle command 'close'. | |
10053 | Wait endlessly until the inferior stops. | |
10054 | Install gdb_agent_remove_socket to atexit hook. | |
10055 | (agent_socket_name): New static variable. | |
10056 | (gdb_agent_socket_init): Replace local variable 'name' with | |
10057 | 'agent_socket_name'. | |
10058 | (gdb_agent_remove_socket): New. | |
10059 | ||
5a3f286f YQ |
10060 | 2012-07-27 Yao Qi <yao@codesourcery.com> |
10061 | ||
10062 | * server.c (process_point_options): Stop at 'X' when parsing. | |
10063 | ||
961bd387 ME |
10064 | 2012-07-19 Michael Eager <eager@eagercon.com> |
10065 | ||
a261b8f5 | 10066 | * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate |
961bd387 ME |
10067 | to hw_execute. |
10068 | * linux-x86-low.c (x86_insert_point, x86_remove_point): | |
10069 | Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del | |
10070 | hardware breakpoint. | |
10071 | ||
aa7c7447 JK |
10072 | 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
10073 | ||
10074 | * gdbserver/linux-low.c (initialize_low): Call | |
10075 | linux_ptrace_init_warnings. | |
10076 | ||
7f216e7c DE |
10077 | 2012-07-02 Doug Evans <dje@google.com> |
10078 | ||
10079 | * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from | |
10080 | pointer to int. | |
10081 | ||
d3ce09f5 SS |
10082 | 2012-07-02 Stan Shebs <stan@codesourcery.com> |
10083 | ||
10084 | * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define. | |
10085 | (ax.o): Add it to build rule. | |
10086 | (ax-ipa.o): Ditto. | |
10087 | (OBS): Add format.o. | |
10088 | (IPA_OBS): Add format.o. | |
10089 | * server.c (handle_query): Claim support for breakpoint commands. | |
10090 | (process_point_options): Add command case. | |
10091 | (process_serial_event): Leave running if there are printfs in | |
10092 | effect. | |
10093 | * mem-break.h (any_persistent_commands): Declare. | |
10094 | (add_breakpoint_commands): Declare. | |
10095 | (gdb_no_commands_at_breakpoint): Declare. | |
10096 | (run_breakpoint_commands): Declare. | |
10097 | * mem-break.c (struct point_command_list): New struct. | |
10098 | (struct breakpoint): New field command_list. | |
10099 | (any_persistent_commands): New function. | |
10100 | (add_commands_to_breakpoint): New function. | |
10101 | (add_breakpoint_commands): New function. | |
10102 | (gdb_no_commands_at_breakpoint): New function. | |
10103 | (run_breakpoint_commands): New function. | |
10104 | * linux-low.c (linux_wait_1): Test for and run breakpoint commands | |
10105 | locally. | |
10106 | * ax.c: Include format.h. | |
10107 | (ax_printf): New function. | |
10108 | (gdb_eval_agent_expr): Add printf opcode. | |
10109 | ||
2f8f6aed YQ |
10110 | 2012-06-13 Yao Qi <yao@codesourcery.com> |
10111 | ||
10112 | * server.c (start_inferior): Remove duplicated writes to fields | |
10113 | 'last_resume_kind' and 'last_status' of 'current_inferior'. | |
10114 | ||
0c9070b3 YQ |
10115 | 2012-06-12 Yao Qi <yao@codesourcery.com> |
10116 | Pedro Alves <palves@redhat.com> | |
10117 | ||
10118 | * linux-low.c (linux_set_resume_request): Simplify predicate. Add | |
10119 | comment. | |
10120 | * server.c (handle_v_cont): Extend comment. | |
10121 | ||
c52daf70 YQ |
10122 | 2012-06-11 Yao Qi <yao@codesourcery.com> |
10123 | ||
10124 | * linux-low.c (linux_attach): Add 'static'. | |
10125 | ||
d38bbb0a YQ |
10126 | 2012-06-06 Yao Qi <yao@codesourcery.com> |
10127 | ||
10128 | * ax.c (gdb_eval_agent_expr): Print `top' in hex. | |
10129 | ||
89dc0afd JK |
10130 | 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10131 | ||
10132 | Fix gcc -flto compilation warning. | |
10133 | * server.c (main): Make variable multi_mode and attach volatile. | |
10134 | ||
75f62ce7 TJB |
10135 | 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
10136 | ||
10137 | * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP | |
10138 | if the platform doesn't know about it. | |
10139 | ||
65f479b6 PA |
10140 | 2012-05-30 Jeff Kenton <jkenton@tilera.com> |
10141 | ||
10142 | * Makefile.in (SFILES): Add linux-tile-low.c. | |
10143 | (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules. | |
10144 | * configure.srv: Handle tilegx-*-linux*. | |
10145 | * linux-tile-low.c: New file. | |
10146 | ||
0c5bf5a9 JK |
10147 | 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
10148 | ||
10149 | * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1. | |
10150 | ||
a493e3e2 PA |
10151 | 2012-05-24 Pedro Alves <palves@redhat.com> |
10152 | ||
10153 | PR gdb/7205 | |
10154 | ||
43aaf8b6 | 10155 | Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. |
a493e3e2 | 10156 | |
2ea28649 PA |
10157 | 2012-05-24 Pedro Alves <palves@redhat.com> |
10158 | ||
10159 | PR gdb/7205 | |
10160 | ||
10161 | Replace target_signal with gdb_signal throughout. | |
10162 | ||
8d409d16 MR |
10163 | 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com> |
10164 | ||
10165 | * linux-low.c (linux_store_registers): Avoid the copying sequence | |
10166 | when no data has been retrieved by ptrace. | |
10167 | ||
23512c01 MGD |
10168 | 2012-05-22 Will Deacon <will.deacon@arm.com> |
10169 | ||
10170 | * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)): | |
10171 | Include asm/ptrace.h. | |
10172 | (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not | |
10173 | already defined. | |
10174 | ||
4934b29e MR |
10175 | 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com> |
10176 | ||
10177 | * linux-low.c (linux_store_registers): Don't re-retrieve data | |
10178 | with ptrace that has already been obtained from /proc. Always | |
10179 | copy any data retrieved with ptrace to the buffer supplied. | |
10180 | ||
bde24c0a PA |
10181 | 2012-05-11 Yao Qi <yao@codesourcery.com> |
10182 | Pedro Alves <palves@redhat.com> | |
10183 | ||
10184 | * linux-low.c (enum stopping_threads_kind): New. | |
10185 | (stopping_threads): Change type to `enum stopping_threads_kind'. | |
10186 | (handle_extended_wait): If stopping and suspending threads, leave | |
10187 | the new_lwp suspended too. | |
10188 | (linux_wait_for_event): Adjust. | |
10189 | (stop_all_lwps): Set `stopping_threads' to | |
10190 | STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on | |
10191 | whether we're suspending threads or just stopping them. Assert no | |
10192 | recursion happens. | |
10193 | ||
623b6bdf YQ |
10194 | 2012-04-29 Yao Qi <yao@codesourcery.com> |
10195 | ||
10196 | * server.h: Move some code to ... | |
10197 | * gdbthread.h: ... here. New. | |
10198 | * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h | |
10199 | (remote-utils.o, server.o, target.o tracepoint.o): Likewise. | |
10200 | (nto-low.o, win32-low.o): Likewise. | |
10201 | * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h. | |
10202 | * regcache.c, remote-utils.c, server.c: Likewise. | |
10203 | * target.c, tracepoint.c, win32-low.c: Likewise. | |
10204 | ||
f15f9948 TJB |
10205 | 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
10206 | ||
10207 | * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c. | |
10208 | (PTRACE_ARG4_TYPE): Likewise. | |
10209 | (PTRACE_XFER_TYPE): Likewise. | |
10210 | * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of | |
10211 | ptrace to PTRACE_ARG3_TYPE. | |
10212 | * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. | |
10213 | (PTRACE_ARG4_TYPE): Likewise. | |
10214 | (PTRACE_XFER_TYPE): Likewise. | |
10215 | (linux_detach_one_lwp): Cast fourth argument of | |
10216 | ptrace to long then PTRACE_ARG4_TYPE. | |
10217 | (regsets_fetch_inferior_registers): Cast third argument of | |
10218 | ptrace to long then PTRACE_ARG3_TYPE. | |
10219 | (regsets_store_inferior_registers): Likewise. | |
10220 | ||
38ea300a PA |
10221 | 2012-04-20 Pedro Alves <palves@redhat.com> |
10222 | ||
10223 | * configure: Regenerate. | |
10224 | ||
c971b7fa PA |
10225 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10226 | ||
43aaf8b6 | 10227 | * Makefile.in (GNULIB_BUILDDIR): New. |
c971b7fa | 10228 | (LIBGNU, INCGNU, GNULIB_H): Adjust. |
43aaf8b6 PA |
10229 | (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New. |
10230 | (all, install-only, uninstall, clean-info, all-lib, clean): No | |
10231 | longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do. | |
10232 | (maintainer-clean realclean distclean): Use subdir_do. | |
10233 | (subdir_do): New. | |
10234 | (gnulib/import/Makefile): Adjust. Replace gnulib/import with | |
c971b7fa | 10235 | $(GNULIB_BUILDDIR). Don't pass argument to config.status. |
43aaf8b6 PA |
10236 | * acinclude.m4: Include acx_configure_dir.m4. |
10237 | * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE | |
10238 | calls. Call AC_PROG_RANLIB. Configure gnulib using | |
10239 | ACX_CONFIGURE_DIR. | |
10240 | (GNULIB): New. | |
10241 | (GNULIB_STDINT_H): Adjust. | |
10242 | (AC_OUTPUT): Don't output gnulib/Makefile anymore. | |
10243 | * gdbreplay.c: Include build-gnulib/config.h. | |
10244 | * server.h: Likewise. | |
10245 | * aclocal.m4: Regenerate. | |
10246 | * config.in: Regenerate. | |
10247 | * configure: Regenerate. | |
c971b7fa | 10248 | |
809277f8 PA |
10249 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10250 | ||
10251 | * Makefile.in (LIBGNU, INCGNU): Adjust. | |
10252 | (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust. | |
10253 | (all, install-only, uninstall, clean-info, all-lib, clean) | |
10254 | (maintainer-clean, Makefile, gnulib/Makefile): Adjust. | |
10255 | * configure.ac: Adjust AC_OUTPUT output. | |
10256 | * aclocal.m4: Regenerate. | |
10257 | * configure: Regenerate. | |
10258 | ||
fd9bb8b8 PA |
10259 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10260 | ||
10261 | * Makefile.in (generated_files): New. | |
10262 | (server_h): Remove the explicit dependency on config.h, and depend | |
10263 | on $generated_files. | |
10264 | ||
1c298c66 PA |
10265 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10266 | ||
10267 | * Makefile.in (INCGNU): Add -Ignulib. | |
10268 | ||
57c4b50b PA |
10269 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10270 | ||
10271 | * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ... | |
10272 | (INCGNU): ... this, and spell out -I here. | |
10273 | (GNULIB_LIB): Rename to ... | |
10274 | (LIBGNU): ... this. | |
10275 | (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust. | |
10276 | ||
1030e047 PA |
10277 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10278 | ||
10279 | * config.in: Regenerate. | |
10280 | ||
447d4319 PA |
10281 | 2012-04-19 Pedro Alves <palves@redhat.com> |
10282 | ||
10283 | * configure.ac: Remove AC_CHECK_DECLS check for memmem. | |
10284 | * server.h (memmem): Remove declaration. | |
10285 | * config.in: Regenerate. | |
10286 | * configure: Regenerate. | |
10287 | ||
aad9eab9 YQ |
10288 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
10289 | ||
10290 | * Makefile.in (SFILES): Add common/vec.c. | |
10291 | (OBS): Add vec.o. | |
10292 | (vec.o): New rule. | |
10293 | ||
3e10640f YQ |
10294 | 2012-04-19 Yao Qi <yao@codesourcery.com> |
10295 | ||
10296 | * remote-utils.c (prepare_resume_reply): Replace with macro | |
10297 | target_core_of_thread. | |
10298 | * server.c (handle_qxfer_threads_proper): Likewise. | |
10299 | * target.h (traget_core_of_thread): New macro. | |
10300 | ||
71622373 PA |
10301 | 2012-04-18 Pedro Alves <palves@redhat.com> |
10302 | ||
10303 | * aclocal.m4: Regenerate. | |
10304 | * configure: Regenerate. | |
10305 | ||
80d26939 YQ |
10306 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
10307 | ||
10308 | * tracepoint.c (cmd_qtstart): Download tracepoints even when they are | |
10309 | duplicated on address. | |
10310 | ||
42476b70 YQ |
10311 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
10312 | ||
10313 | * tracepoint.c (COPY_FIELD_TO_BUF): New macro. | |
10314 | (struct tracepoint_action_ops) <send>: New field. | |
10315 | (m_tracepoint_action_send, r_tracepoint_action_send): New. | |
10316 | (agent_expr_send, x_tracepoint_action_send): New. | |
10317 | (l_tracepoint_action_send): New. | |
10318 | (cmd_qtdp): Download and install tracepoint | |
10319 | according to `use_agent'. | |
10320 | (run_inferior_command): Add one more parameter `len'. | |
10321 | Update callers. | |
10322 | (tracepoint_send_agent): New. | |
10323 | (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent. | |
10324 | ||
7bc83639 YQ |
10325 | 2012-04-16 Yao Qi <yao@codesourcery.com> |
10326 | ||
10327 | * tracepoint.c (download_tracepoints): Moved to ... | |
10328 | (cmd_qtstart): ... here. | |
10329 | ||
5f18041e YQ |
10330 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
10331 | ||
10332 | * tracepoint.c: Include inttypes.h. | |
10333 | (struct collect_memory_action): Use sized types. | |
10334 | (struct tracepoint): Likewise. | |
10335 | (cmd_qtdp, stop_tracing): Update print specifiers. | |
10336 | (cmd_qtp, response_tracepoint): Likewise. | |
10337 | (collect_data_at_tracepoint): Likewise. | |
10338 | (collect_data_at_step): Likewise. | |
10339 | ||
55a8c076 YQ |
10340 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
10341 | ||
10342 | Import gnulib module inttypes. | |
10343 | * aclocal.m4, config.in, configure: Regenerated. | |
10344 | ||
dc750257 YQ |
10345 | 2012-04-14 Yao Qi <yao@codesourcery.com> |
10346 | ||
10347 | * Makefile.in (maintainer-clean, realclean, distclean): Remove | |
10348 | Makefile and config.status at last. | |
10349 | ||
0ab5faf9 YQ |
10350 | 2012-04-13 Yao Qi <yao@codesourcery.com> |
10351 | ||
10352 | * tracepoint.c: Include stdint.h unconditionally. | |
10353 | ||
18f5fd81 TJB |
10354 | 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
10355 | ||
10356 | * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based | |
10357 | on BFD_HAVE_SYS_PROCFS_TYPE. | |
10358 | * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h. | |
10359 | * configure: Regenerate. | |
10360 | * config.in: Likewise. | |
10361 | ||
4d47af5c L |
10362 | 2012-04-13 H.J. Lu <hongjiu.lu@intel.com> |
10363 | ||
10364 | * Makefile.in (clean): Also remove x32.c x32-linux.c | |
10365 | x32-avx.c x32-avx-linux.c. | |
10366 | (x32.o): New target. | |
10367 | (x32.c): Likewise. | |
10368 | (x32-linux.o): Likewise. | |
10369 | (x32-linux.c): Likewise. | |
10370 | (x32-avx.o): Likewise. | |
10371 | (x32-avx.c): Likewise. | |
10372 | (x32-avx-linux.o): Likewise. | |
10373 | (x32-avx-linux.c): Likewise. | |
10374 | ||
10375 | * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o. | |
10376 | (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o. | |
10377 | (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml. | |
10378 | (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml. | |
10379 | (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml | |
10380 | i386/x32-avx-linux.xml. | |
10381 | ||
10382 | * linux-x86-low.c (init_registers_x32_linux): New prototype. | |
10383 | (init_registers_x32_avx_linux): Likwise. | |
10384 | (x86_linux_update_xmltarget): Call init_registers_x32_linux | |
10385 | or init_registers_x32_avx_linux if linux_is_elf64 is false. | |
10386 | ||
ecedbe58 PA |
10387 | 2012-04-13 Pedro Alves <palves@redhat.com> |
10388 | ||
10389 | * Makefile.in (GNULIB_FLAGS_TO_PASS): New. | |
10390 | (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH. | |
10391 | (all, uninstall, clean-info, all-lib, clean, maintainer-clean) | |
10392 | (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to | |
10393 | the sub-make. | |
10394 | ||
c92b5177 L |
10395 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
10396 | ||
10397 | * linux-x86-low.c (compat_x32_clock_t): New. | |
10398 | (compat_x32_siginfo_t): Likewise. | |
10399 | (compat_x32_siginfo_from_siginfo): Likewise. | |
10400 | (siginfo_from_compat_x32_siginfo): Likewise. | |
10401 | (linux_is_elf64): Likewise. | |
10402 | (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo | |
10403 | and siginfo_from_compat_x32_siginfo for x32. | |
10404 | (x86_arch_setup): Set linux_is_elf64. | |
10405 | ||
214d508e L |
10406 | 2012-04-12 H.J. Lu <hongjiu.lu@intel.com> |
10407 | ||
10408 | PR gdb/13969 | |
10409 | * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the | |
10410 | e_machine field. | |
10411 | (linux_qxfer_libraries_svr4): Update call to elf_64_file_p. | |
10412 | * linux-low.h (linux_pid_exe_is_elf_64_file): Updated. | |
10413 | * linux-x86-low.c (x86_arch_setup): Check if GDBserver is | |
10414 | compatible with process. | |
10415 | ||
c9a1864a YQ |
10416 | 2012-04-12 Yao Qi <yao@codesourcery.com> |
10417 | ||
10418 | * Makefile.in: Define abs_top_srcdir and abs_srcdir. | |
10419 | (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. | |
10420 | (install-only, install-info, clean): Handle sub dir gnulib. | |
10421 | (all-lib, am--refresh): New targets. | |
10422 | (memmem.o): Remove target. | |
10423 | * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. | |
10424 | Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. | |
10425 | (AC_REPLACE_FUNCS): Remove memmem. | |
10426 | Invoke gl_INIT and AM_INIT_AUTOMAKE. | |
10427 | (AC_OUTPUT): Generate Makefile in gnulib/. | |
10428 | * aclocal.m4, config.in, configure: Regenerated. | |
10429 | ||
367ba2c2 MR |
10430 | 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com> |
10431 | ||
10432 | * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP. | |
10433 | ||
9d236627 PA |
10434 | 2012-04-05 Pedro Alves <palves@redhat.com> |
10435 | ||
10436 | -Werror=strict-aliasing | |
10437 | ||
10438 | * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned | |
10439 | pointer. | |
10440 | ||
111217b3 PA |
10441 | 2012-04-04 Pedro Alves <palves@redhat.com> |
10442 | ||
10443 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
10444 | (sparc_store_gregset_from_stack, sparc_store_gregset) | |
10445 | (sparc_breakpoint_at): Fix formatting. | |
10446 | ||
8365dcf5 TJB |
10447 | 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org> |
10448 | ||
10449 | * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t | |
10450 | are available. | |
10451 | * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. | |
10452 | [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. | |
10453 | * config.in: Regenerate. | |
10454 | * configure: Likewise. | |
10455 | ||
689cc2ae PA |
10456 | 2012-03-29 Pedro Alves <palves@redhat.com> |
10457 | ||
10458 | * linux-low.c (regsets_store_inferior_registers) [__sparc__]: | |
10459 | Correct ptrace arguments. | |
10460 | ||
c14dfd32 PA |
10461 | 2012-03-28 Pedro Alves <palves@redhat.com> |
10462 | ||
10463 | * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. | |
10464 | (IA64_GR0_REGNUM, IA64_FR0_REGNUM) | |
10465 | (IA64_FR1_REGNUM): New defines. | |
10466 | (ia64_fetch_register): New. | |
10467 | (the_low_target): Install it. | |
10468 | * linux-low.h (struct linux_target_ops) <fetch_register>: New | |
10469 | field. | |
10470 | * linux-low.c (linux_fetch_registers): Try the | |
10471 | the_low_target.fetch_register hook first. | |
10472 | ||
10473 | * linux-arm-low.c (the_low_target): Adjust. | |
10474 | * linux-bfin-low.c (the_low_target): Adjust. | |
10475 | * linux-cris-low.c (the_low_target): Adjust. | |
10476 | * linux-crisv32-low.c (the_low_target): Adjust. | |
10477 | * linux-m32r-low.c (the_low_target): Adjust. | |
10478 | * linux-m68k-low.c (the_low_target): Adjust. | |
10479 | * linux-mips-low.c (the_low_target): Adjust. | |
10480 | * linux-ppc-low.c (the_low_target): Adjust. | |
10481 | * linux-s390-low.c (the_low_target): Adjust. | |
10482 | * linux-sh-low.c (the_low_target): Adjust. | |
10483 | * linux-sparc-low.c (the_low_target): Adjust. | |
10484 | * linux-tic6x-low.c (the_low_target): Adjust. | |
10485 | * linux-x86-low.c (the_low_target): Adjust. | |
10486 | * linux-xtensa-low.c (the_low_target): Adjust. | |
10487 | ||
63c88e13 PA |
10488 | 2012-03-26 Pedro Alves <palves@redhat.com> |
10489 | ||
10490 | * server.c (handle_qxfer_libraries): Don't bail early if | |
10491 | the_target->qxfer_libraries_svr4 is not NULL. | |
10492 | ||
fb723180 PA |
10493 | 2012-03-26 Pedro Alves <palves@redhat.com> |
10494 | ||
10495 | * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment. | |
10496 | ||
0afae3cf PA |
10497 | 2012-03-23 Pedro Alves <palves@redhat.com> |
10498 | ||
10499 | * linux-low.c (linux_qxfer_libraries_svr4): Terminate the | |
10500 | "library-list-svr4" element's start tag when the the DSO list is | |
10501 | empty. | |
10502 | ||
485f1ee4 PA |
10503 | 2012-03-23 Pedro Alves <palves@redhat.com> |
10504 | ||
10505 | * linux-low.c (read_one_ptr): Read the inferior's pointer through | |
10506 | a variable whose type size is the same as the inferior's pointer | |
10507 | size. | |
10508 | ||
a5362b9a TS |
10509 | 2012-03-21 Thomas Schwinge <thomas@codesourcery.com> |
10510 | ||
10511 | * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of | |
10512 | struct siginfo. | |
10513 | * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise. | |
10514 | * linux-x86-low.c (x86_siginfo_fixup): Likewise. | |
10515 | * linux-low.h: Include <signal.h>. | |
10516 | (struct siginfo): Remove forward declaration. | |
10517 | (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of | |
10518 | struct siginfo. | |
10519 | ||
d226c142 MF |
10520 | 2012-03-21 Mike Frysinger <vapier@gentoo.org> |
10521 | ||
10522 | * .gitignore: Ignore more files. | |
10523 | ||
122f36ef PA |
10524 | 2012-03-19 Pedro Alves <palves@redhat.com> |
10525 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10526 | ||
10527 | * server.c (cont_thread, general_thread): Add describing comments. | |
10528 | (start_inferior): Clear `cont_thread'. | |
10529 | (handle_v_cont): Don't set `cont_thread' if resuming all threads | |
10530 | of a process. | |
10531 | ||
fc3e5175 YQ |
10532 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
10533 | ||
10534 | * tracepoint.c (install_tracepoint): Move duplicated tracepoint | |
10535 | handling to ... | |
10536 | (cmd_qtdp): ... here. | |
10537 | ||
8d0d92cd YQ |
10538 | 2012-03-15 Yao Qi <yao@codesourcery.com> |
10539 | ||
10540 | * tracepoint.c (struct tracepoint_action_ops): New. | |
10541 | (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field. | |
10542 | (m_tracepoint_action_download): New. | |
10543 | (r_tracepoint_action_download): New. | |
10544 | (x_tracepoint_action_download): New. | |
10545 | (l_tracepoint_action_download): New. | |
10546 | (add_tracepoint_action): Install `action->ops' according type. | |
10547 | (download_tracepoint_1): Move code `download' function pointer | |
10548 | of various tracepoint_action_ops. | |
10549 | ||
87b0bb13 JK |
10550 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
10551 | ||
10552 | * linux-low.c (linux_attach_lwp_1): New variable buffer. Call | |
10553 | linux_ptrace_attach_warnings. | |
10554 | ||
5f572dec JK |
10555 | 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
10556 | ||
10557 | * Makefile.in (linux-ptrace.o): New. | |
10558 | * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*) | |
10559 | (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*) | |
10560 | (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*) | |
10561 | (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux) | |
10562 | (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ | |
10563 | of these targets. | |
10564 | * linux-low.c (linux_attach_lwp_1): Remove redundent else clause. | |
10565 | ||
f4647387 YQ |
10566 | 2012-03-08 Yao Qi <yao@codesourcery.com> |
10567 | Pedro Alves <palves@redhat.com> | |
10568 | ||
10569 | Fix PR server/13392. | |
10570 | * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check | |
10571 | offset of JMP insn. | |
10572 | * tracepoint.c (remove_tracepoint): New. | |
10573 | (cmd_qtdp): Call remove_tracepoint when failed to install. | |
10574 | ||
9b224c5e PA |
10575 | 2012-03-07 Pedro Alves <palves@redhat.com> |
10576 | ||
10577 | * linux-low.c (get_detach_signal): New. | |
10578 | (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT. | |
10579 | Pass on pending signals to PTRACE_DETACH. Check the result of the | |
10580 | ptrace call. | |
10581 | * server.c (program_signals, program_signals_p): New. | |
10582 | (handle_general_set): Handle QProgramSignals. | |
10583 | * server.h (program_signals, program_signals_p): Declare. | |
10584 | ||
e237a7e2 JK |
10585 | 2012-03-05 Pedro Alves <palves@redhat.com> |
10586 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
10587 | ||
10588 | * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found. | |
10589 | New comment why. | |
10590 | ||
5808517f YQ |
10591 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
10592 | ||
10593 | * tracepoint.c (tracepoint_look_up_symbols): Update call to | |
10594 | agent_look_up_symbols. | |
10595 | ||
58b4daa5 YQ |
10596 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
10597 | ||
10598 | * Makefile.in (linux-low.o): Keep dependence on agent.h. | |
10599 | (linux-x86-low.o): Likewise. | |
10600 | * server.h: Remove in_process_agent_loaded. | |
10601 | * tracepoint.c (in_process_agent_loaded): Removed. Moved it | |
10602 | common/agent.c. | |
10603 | Update callers. | |
10604 | ||
8ffcbaaf YQ |
10605 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
10606 | ||
10607 | * tracepoint.c (gdb_agent_capability): New global. | |
10608 | (in_process_agent_loaded_ust): Renamed to | |
10609 | `in_process_agent_supports_ust'. | |
10610 | Update callers. | |
10611 | (in_process_agent_supports_ust): Call agent_capability_check. | |
10612 | (clear_installed_tracepoints): Assert that agent supports | |
10613 | agent. | |
10614 | ||
d1feda86 YQ |
10615 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
10616 | ||
10617 | * linux-low.c (linux_supports_agent): New. | |
10618 | (linux_target_ops): Initialize field `supports_agent' with | |
10619 | linux_supports_agent. | |
10620 | * target.h (struct target_ops) <supports_agent>: New. | |
10621 | (target_supports_agent): New macro. | |
10622 | * server.c (handle_general_set): Handle packet 'QAgent'. | |
10623 | (handle_query): Send `QAgent+'. | |
10624 | * Makefile.in (server.o): Depends on agent.h. | |
10625 | ||
2fa291ac YQ |
10626 | 2012-03-03 Yao Qi <yao@codesourcery.com> |
10627 | ||
10628 | * Makefile.in (OBS): Add agent.o. | |
10629 | Add new rule for agent.o. | |
10630 | Track dependence of tracepoint.c on agent.h. | |
10631 | * tracepoint.c (run_inferior_command_1): | |
10632 | (run_inferior_command): Call agent_run_command. | |
10633 | (gdb_ust_connect_sync_socket): Deleted. Move it to | |
10634 | common/agent.c. | |
10635 | (resume_thread, stop_thread): Likewise. | |
10636 | (gdb_ust_socket_init): Renamed to ... | |
10637 | (gdb_agent_socket_init): ... New. | |
10638 | (gdb_ust_thread): Renamed to ... | |
10639 | (gdb_agent_helper_thread): ... New. | |
10640 | (gdb_ust_init): Move some code to ... | |
10641 | (gdb_agent_init): ... here. New. | |
10642 | [HAVE_UST]: Call gdb_ust_init. | |
10643 | (initialize_tracepoint_ftlib): Call gdb_agent_init. | |
10644 | * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS. | |
10645 | * config.in, configure: Regenerated. | |
10646 | ||
05044653 PA |
10647 | 2012-03-02 Pedro Alves <palves@redhat.com> |
10648 | ||
10649 | * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. | |
10650 | * linux-low.c (struct simple_pid_list): New. | |
10651 | (stopped_pids): New a struct simple_pid_list pointer. | |
10652 | (add_to_pid_list, pull_pid_from_list): New. | |
10653 | (handle_extended_wait): Don't assume the first signal new children | |
10654 | report is SIGSTOP. Adjust call to pull_pid_from_list. | |
10655 | (linux_wait_for_lwp): Adjust. | |
10656 | ||
8d00225b YQ |
10657 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
10658 | ||
10659 | * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in | |
10660 | debug log. | |
10661 | ||
19560ba5 YQ |
10662 | 2012-03-02 Yao Qi <yao@codesourcery.com> |
10663 | ||
10664 | * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters | |
10665 | `stop_pc' and `tpoint'. Update caller. | |
10666 | ||
1faeff08 MR |
10667 | 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com> |
10668 | ||
10669 | * linux-low.h (linux_target_ops): Add regset_bitmap member. | |
10670 | * linux-low.c (use_linux_regsets): New macro. | |
10671 | [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise. | |
10672 | [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise. | |
10673 | (linux_register_in_regsets): New function. | |
10674 | (usr_fetch_inferior_registers): Skip registers covered by | |
10675 | regsets. | |
10676 | (usr_store_inferior_registers): Likewise. | |
10677 | (usr_fetch_inferior_registers): New macro. | |
10678 | (usr_store_inferior_registers): Likewise. | |
10679 | (linux_fetch_registers): Handle mixed regset/non-regset targets. | |
10680 | (linux_store_registers): Likewise. | |
10681 | * linux-mips-low.c (init_registers_mips_dsp_linux): New | |
10682 | prototype. | |
10683 | (init_registers_mips64_dsp_linux): Likewise. | |
10684 | (init_registers_mips_linux): New macro. | |
10685 | (init_registers_mips_dsp_linux): Likewise. | |
10686 | (mips_dsp_num_regs): Likewise. | |
10687 | (DSP_BASE, DSP_CONTROL): New fallback macros. | |
10688 | (mips_base_regs): New macro. | |
10689 | (mips_regmap): Use it. Fix the size. | |
10690 | (mips_dsp_regmap): New variable. | |
10691 | (mips_dsp_regset_bitmap): Likewise. | |
10692 | (mips_arch_setup): New function. | |
10693 | (mips_cannot_fetch_register): Use the_low_target.regmap rather | |
10694 | than mips_regmap. | |
10695 | (mips_cannot_store_register): Likewise. | |
10696 | (the_low_target): Update .arch_setup, .num_regs and .regmap | |
10697 | initializers. Add .regset_bitmap initializer. | |
10698 | * linux-arm-low.c (the_low_target): Add .regset_bitmap | |
10699 | initializer. | |
10700 | * linux-bfin-low.c (the_low_target): Likewise. | |
10701 | * linux-cris-low.c (the_low_target): Likewise. | |
10702 | * linux-crisv32-low.c (the_low_target): Likewise. | |
10703 | * linux-ia64-low.c (the_low_target): Likewise. | |
10704 | * linux-m32r-low.c (the_low_target): Likewise. | |
10705 | * linux-m68k-low.c (the_low_target): Likewise. | |
10706 | * linux-ppc-low.c (the_low_target): Likewise. | |
10707 | * linux-s390-low.c (the_low_target): Likewise. | |
10708 | * linux-sh-low.c (the_low_target): Likewise. | |
10709 | * linux-sparc-low.c (the_low_target): Likewise. | |
10710 | * linux-tic6x-low.c (the_low_target): Likewise. | |
10711 | * linux-x86-low.c (the_low_target): Likewise. | |
10712 | * linux-xtensa-low.c (the_low_target): Likewise. | |
10713 | * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and | |
10714 | mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml, | |
10715 | mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to | |
10716 | srv_xmlfiles. | |
10717 | * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets. | |
10718 | (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise. | |
10719 | ||
c03e6ccc YQ |
10720 | 2012-02-29 Yao Qi <yao@codesourcery.com> |
10721 | Pedro Alves <palves@redhat.com> | |
10722 | ||
10723 | * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when | |
10724 | `step_over_finished' is true. | |
10725 | ||
644cebc9 PA |
10726 | 2012-02-27 Pedro Alves <palves@redhat.com> |
10727 | ||
10728 | * linux-low.c (pid_is_stopped): Delete, moved to common/. | |
10729 | (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped. | |
10730 | ||
c14d7ab2 PA |
10731 | 2012-02-27 Pedro Alves <palves@redhat.com> |
10732 | ||
10733 | PR server/9684 | |
10734 | * linux-low.c (pid_is_stopped): New. | |
10735 | (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes. | |
10736 | ||
412c89dd LM |
10737 | 2012-02-25 Luis Machado <lgustavo@codesourcery.com> |
10738 | ||
10739 | * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation | |
10740 | of conditions. | |
10741 | ||
b745defe MR |
10742 | 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com> |
10743 | ||
10744 | * linux-mips-low.c (mips_regmap): Correct the index of $f9. | |
10745 | ||
9f3a5c85 LM |
10746 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
10747 | ||
10748 | * server.c (handle_query): Advertise support for target-side | |
10749 | breakpoint condition evaluation. | |
10750 | (process_point_options): New function. | |
10751 | (process_serial_event): When inserting a breakpoint, check for | |
10752 | a target-side condition that should be evaluated. | |
10753 | ||
10754 | * mem-break.c: Include regcache.h and ax.h. | |
10755 | (point_cond_list_t): New data structure. | |
10756 | (breakpoint) <cond_list>: New field. | |
10757 | (find_gdb_breakpoint_at): Make non-static. | |
10758 | (delete_gdb_breakpoint_at): Clear any target-side | |
10759 | conditions. | |
10760 | (clear_gdb_breakpoint_conditions): New function. | |
10761 | (add_condition_to_breakpoint): Likewise. | |
10762 | (add_breakpoint_condition): Likewise. | |
10763 | (gdb_condition_true_at_breakpoint): Likewise. | |
10764 | (gdb_breakpoint_here): Return result directly instead | |
10765 | of going through a local variable. | |
10766 | ||
10767 | * mem-break.h (find_gdb_breakpoint_at): New prototype. | |
10768 | (clear_gdb_breakpoint_conditions): Likewise. | |
10769 | (add_breakpoint_condition): Likewise. | |
10770 | (gdb_condition_true_at_breakpoint): Likewise. | |
10771 | ||
10772 | * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition. | |
10773 | (need_step_over_p): Take target-side breakpoint condition into | |
10774 | consideration. | |
10775 | ||
5e1dc496 LM |
10776 | 2012-02-24 Luis Machado <lgustavo@codesourcery> |
10777 | ||
10778 | * server.h: Include tracepoint.h. | |
10779 | (agent_mem_read, agent_get_trace_state_variable_value, | |
10780 | agent_set_trace_state_variable_value, | |
10781 | agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr, | |
10782 | get_set_tsv_func_addr): New prototypes. | |
10783 | ||
10784 | * ax.h: New include file. | |
10785 | * ax.c: New source file. | |
10786 | ||
10787 | * tracepoint.c: Include ax.h. | |
10788 | (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes, | |
10789 | agent_expr, eval_result_type): Move to ax.h. | |
10790 | (parse_agent_expr): Rename to ... | |
10791 | (gdb_parse_agent_expr): ... this, make it non-static and move | |
10792 | to ax.h. | |
10793 | (unparse_agent_expr) Rename to ... | |
10794 | (gdb_unparse_agent_expr): ... this, make it non-static and move | |
10795 | to ax.h. | |
10796 | (eval_agent_expr): Rename to ... | |
10797 | (eval_tracepoint_agent_expr): ... this. | |
10798 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove | |
10799 | forward declarations. | |
10800 | (add_tracepoint_action): Call gdb_parse_agent_expr (...). | |
10801 | (agent_get_trace_state_variable_value): New function. | |
10802 | (agent_set_trace_state_variable_value): New function. | |
10803 | (cmd_qtdp): Call gdb_parse_agent_expr (...). | |
10804 | (response_tracepoint): Call gdb_unparse_agent_expr (...). | |
10805 | (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...). | |
10806 | (condition_true_at_tracepoint): Likewise. | |
10807 | (parse_agent_expr): Rename to ... | |
10808 | (gdb_parse_agent_expr): ... this and move to ax.c. | |
10809 | (unparse_agent_expr): Rename to ... | |
10810 | (gdb_unparse_agent_expr): ... this and move to ax.c. | |
10811 | (gdb_agent_op_name): Move to ax.c. | |
10812 | (eval_agent_expr): Rename to ... | |
10813 | (gdb_eval_agent_expr): ... this, use regcache passed as parameter | |
10814 | and move to ax.c. | |
10815 | (eval_tracepoint_agent_expr): New function. | |
10816 | (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make | |
43aaf8b6 | 10817 | non-static. |
5e1dc496 LM |
10818 | (current_insn_ptr, emit_error, struct bytecode_address): Move to |
10819 | ax.c. | |
10820 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh, | |
10821 | emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not, | |
10822 | emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal, | |
10823 | emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto, | |
10824 | emit_goto, write_goto_address, emit_const, emit_reg, emit_pop, | |
10825 | emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust, | |
10826 | emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto, | |
10827 | emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c. | |
10828 | (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions. | |
10829 | (compile_bytecodes): Remove forward declaration. | |
10830 | (is_goto_target): Move to ax.c. | |
10831 | (compile_bytecodes): Move to ax.c and call | |
10832 | agent_get_trace_state_variable_value (...) and | |
10833 | agent_set_trace_state_variable_value (...). | |
10834 | ||
10835 | * Makefile.in: Update ax.c and IPA dependencies. | |
10836 | ||
277e4e52 PA |
10837 | 2012-02-24 Pedro Alves <palves@redhat.com> |
10838 | ||
10839 | * tracepoint.c (cmd_bigqtbuffer): Rename as ... | |
10840 | (cmd_bigqtbuffer_circular): ... this. Only handle | |
10841 | 'QTBuffer:circular:'. | |
10842 | (handle_tracepoint_general_set): Adjust. | |
10843 | ||
bf4c19f7 YQ |
10844 | 2012-02-16 Yao Qi <yao@codesourcery.com> |
10845 | ||
10846 | * inferiors.c: Move code to ... | |
10847 | * dll.c: .... here. New. | |
10848 | * server.h: Declare clear_dlls. | |
10849 | * Makefile.in (SFILES): Add dll.c. | |
10850 | (OBS): Add dll.o | |
10851 | (dll.o): New rule. | |
10852 | ||
d73f2619 YQ |
10853 | 2012-02-11 Yao Qi <yao@codesourcery.com> |
10854 | ||
10855 | * server.c: (handle_monitor_command): Add a new parameter | |
10856 | `own_buf'. | |
10857 | (handle_query): Update caller. | |
10858 | ||
f8255c2a JB |
10859 | 2012-02-09 Joel Brobecker <brobecker@adacore.com> |
10860 | ||
10861 | * configure.ac: Add readlink to AC_CHECK_FUNCS list. | |
10862 | * configure, config.in: Regenerate. | |
10863 | * hostio.c: Provide an alternate implementation if HAVE_READLINK | |
10864 | is not defined. | |
10865 | ||
da84f473 PA |
10866 | 2012-02-02 Pedro Alves <palves@redhat.com> |
10867 | ||
10868 | Try SIGKILL first, then PTRACE_KILL. | |
10869 | * linux-low.c (linux_kill_one_lwp): New. | |
10870 | (linux_kill_one_lwp): Rename to ... | |
10871 | (kill_one_lwp_callback): ... this. Use the new | |
10872 | linux_kill_one_lwp. | |
10873 | ||
e886a173 PA |
10874 | 2012-02-02 Pedro Alves <palves@redhat.com> |
10875 | ||
10876 | * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current | |
10877 | inferior. | |
10878 | ||
be07f1a2 PA |
10879 | 2012-01-27 Pedro Alves <palves@redhat.com> |
10880 | ||
10881 | * linux-low.c (linux_child_pid_to_exec_file): Delete. | |
10882 | (elf_64_file_p): Make static. | |
10883 | (linux_pid_exe_is_elf_64_file): New. | |
10884 | * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): | |
10885 | Delete declarations. | |
10886 | (linux_pid_exe_is_elf_64_file): Declare. | |
10887 | * linux-x86-low.c (x86_arch_setup): Use | |
10888 | linux_pid_exe_is_elf_64_file. | |
10889 | ||
d8301ad1 JK |
10890 | 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
10891 | ||
10892 | * linux-low.c (linux_wait_for_event_1): Rename to ... | |
10893 | (linux_wait_for_event): ... here and merge it with former | |
10894 | linux_wait_for_event - new variable wait_ptid, use it. | |
10895 | (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1. | |
10896 | ||
01b17894 PA |
10897 | 2012-01-23 Pedro Alves <palves@redhat.com> |
10898 | ||
10899 | * server.c (main): Avoid yet another case of infinite loop while | |
10900 | detaching/killing after a longjmp. | |
10901 | ||
e825046f JK |
10902 | 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
10903 | ||
10904 | Code cleanup. | |
10905 | * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid. | |
10906 | ||
b9e7b9c3 UW |
10907 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
10908 | ||
10909 | * hostio.c (handle_readlink): New function. | |
10910 | (handle_vFile): Call it to handle "vFile:readlink" packets. | |
10911 | ||
901f9912 UW |
10912 | 2012-01-20 Pedro Alves <palves@redhat.com> |
10913 | Ulrich Weigand <ulrich.weigand@linaro.org> | |
10914 | ||
10915 | * server.c (handle_v_requests): Only support vAttach and vRun to | |
10916 | start multiple processes when in extended protocol mode. | |
10917 | ||
fc1ab1a0 PA |
10918 | 2012-01-17 Pedro Alves <palves@redhat.com> |
10919 | ||
10920 | * tracepoint.c (initialize_tracepoint): Use mmap instead of | |
10921 | memalign plus mprotect to allocate the scratch buffer. | |
10922 | ||
7d5d4e98 PA |
10923 | 2012-01-13 Pedro Alves <palves@redhat.com> |
10924 | ||
10925 | * server.c (attach_inferior): Clear `cont_thread'. | |
10926 | ||
f128d5e9 PA |
10927 | 2012-01-13 Pedro Alves <palves@redhat.com> |
10928 | ||
10929 | * server.c (main): Avoid infinite loop while detaching/killing | |
10930 | after a longjmp. | |
10931 | ||
06db92f0 DE |
10932 | 2012-01-09 Doug Evans <dje@google.com> |
10933 | ||
10934 | * server.c (start_inferior): Set last_ptid in --wrapper case. | |
10935 | ||
32d92999 YQ |
10936 | 2012-01-06 Yao Qi <yao@codesourcery.com> |
10937 | ||
10938 | * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro | |
10939 | defined. | |
10940 | [IN_PROCESS_AGENT] (debug_agent): New global variable. | |
10941 | ||
5e0a92a9 YQ |
10942 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
10943 | ||
10944 | * tracepoint.c (cmd_qtdp): Print debug message | |
10945 | for static tracepoint. | |
10946 | ||
ae639e8c YQ |
10947 | 2012-01-04 Yao Qi <yao@codesourcery.com> |
10948 | ||
10949 | * tracepoint.c (trace_vdebug): Differentiate debug message | |
10950 | between gdbserver and IPA. | |
10951 | ||
f72429c5 YQ |
10952 | 2012-01-03 Yao Qi <yao@codesourcery.com> |
10953 | ||
10954 | * tracepoint.c (tracepoint_was_hit): Don't collect for | |
10955 | static tracepoint. | |
10956 | ||
12c3e59c JB |
10957 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
10958 | ||
10959 | * terminal.h: Reformat copyright header. | |
10960 | ||
67827812 JB |
10961 | 2012-01-02 Joel Brobecker <brobecker@adacore.com> |
10962 | ||
10963 | * server.c (gdbserver_version): Update copyright year. | |
10964 | * gdbreplay.c (gdbreplay_version): Likewise. | |
10965 | ||
3e52c33d JK |
10966 | 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
10967 | ||
10968 | * linux-low.c (linux_create_inferior): Put empty if clause for write. | |
10969 | ||
10970 | Revert: | |
10971 | 2011-12-18 Hui Zhu <teawater@gmail.com> | |
10972 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
10973 | ||
66f1260e HZ |
10974 | 2011-12-18 Hui Zhu <teawater@gmail.com> |
10975 | ||
10976 | * linux-low.c (linux_create_inferior): Save return value to ret. | |
10977 | ||
e77616d7 DE |
10978 | 2011-12-16 Doug Evans <dje@google.com> |
10979 | ||
e7b06c57 DE |
10980 | * linux-low.c (linux_create_inferior): If stdio connection, |
10981 | redirect stdin from /dev/null, stdout to stderr. | |
10982 | * remote-utils.c (remote_is_stdio): New static global. | |
10983 | (remote_connection_is_stdio): New function. | |
10984 | (remote_prepare): Handle stdio connection. | |
10985 | (remote_open): Ditto. | |
10986 | (remote_close): Don't close stdin for stdio connections. | |
10987 | (read_prim,write_prim): New functions. Replace all calls to | |
10988 | read/write to these. | |
10989 | * server.c (main): Watch for "-" argument. Move call to | |
10990 | remote_prepare before start_inferior. | |
10991 | * server.h (STDIO_CONNECTION_NAME): New macro. | |
10992 | (remote_connection_is_stdio): Declare. | |
10993 | ||
e77616d7 DE |
10994 | * remote-utils.c (prepare_resume_reply): Remove extraneous \n |
10995 | in debugging output. | |
10996 | ||
82067193 YQ |
10997 | 2011-12-15 Yao Qi <yao@codesourcery.com> |
10998 | ||
10999 | * tracepoint.c: Include sys/syscall.h. | |
11000 | (gdb_ust_thread): Remove preprocessor conditional. | |
11001 | ||
82bfbe7e PA |
11002 | 2011-12-14 Pedro Alves <pedro@codesourcery.com> |
11003 | ||
11004 | * linux-low.c (linux_detach_one_lwp): Call | |
11005 | the_low_target.prepare_to_resume before detaching. | |
11006 | ||
712c6575 YQ |
11007 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
11008 | ||
11009 | * tracepoint.c (gdb_ust_thread): Don't ignore return value | |
11010 | of write. | |
11011 | ||
d54d1edf YQ |
11012 | 2011-12-14 Yao Qi <yao@codesourcery.com> |
11013 | ||
11014 | * i386-low.c (i386_low_stopped_data_address): Initialize local | |
11015 | variable `control'. | |
11016 | ||
6210a125 PA |
11017 | 2011-12-13 Pedro Alves <pedro@codesourcery.com> |
11018 | ||
11019 | PR remote/13492 | |
11020 | ||
11021 | * i386-low.c (i386_low_stopped_data_address): Avoid fetching | |
11022 | DR_CONTROL unless necessary. Extend comments. | |
11023 | * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to | |
11024 | DR0-3 if not used. If any watchpoint was set, clear DR_STATUS. | |
11025 | ||
2ece8244 YQ |
11026 | 2011-12-13 Yao Qi <yao@codesourcery.com> |
11027 | ||
11028 | * tracepoint.c (trace_buffer_alloc): Replace magic numbers with | |
11029 | macros. | |
11030 | (upload_fast_traceframes, upload_fast_traceframes): Likewise. | |
11031 | ||
784867a5 JK |
11032 | 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
11033 | ||
11034 | * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist. | |
11035 | Print new debug message for such case. | |
11036 | ||
6bf36717 JK |
11037 | 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
11038 | ||
11039 | Fix overlapping memcpy. | |
11040 | * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for | |
11041 | the read_inferior_memory transfer. | |
11042 | (delete_fast_tracepoint_jump): New variable buf. Use it for the | |
11043 | write_inferior_memory transfer. | |
11044 | (set_fast_tracepoint_jump): New variable buf. Use it for the | |
11045 | read_inferior_memory and write_inferior_memory transfers. | |
11046 | (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at) | |
11047 | (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf. | |
11048 | Use it for the write_inferior_memory transfer. | |
11049 | (check_mem_read, check_mem_write): New gdb_asserts for overlapping | |
11050 | buffers. | |
11051 | ||
50275556 MR |
11052 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
11053 | ||
11054 | * linux-low.c (fetch_register, store_register): Make code | |
11055 | consistent, fix formatting. | |
11056 | ||
7325beb4 MR |
11057 | 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com> |
11058 | ||
11059 | * linux-low.c (usr_store_inferior_registers): Factor out code | |
11060 | to handle individual registers into... | |
11061 | (store_register): ... this new function. | |
11062 | ||
c642a434 UW |
11063 | 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com> |
11064 | ||
11065 | * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules. | |
11066 | (s390-linux32v2.o, s390-linux32v2.c): Likewise. | |
11067 | (s390-linux64v1.o, s390-linux64v1.c): Likewise. | |
11068 | (s390-linux64v2.o, s390-linux64v2.c): Likewise. | |
11069 | (s390x-linux64v1.o, s390x-linux64v1.c): Likewise. | |
11070 | (s390x-linux64v2.o, s390x-linux64v2.c): Likewise. | |
11071 | * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects. | |
11072 | (srv_xmlfiles): Add new XML files. | |
11073 | ||
11074 | * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>, | |
11075 | and <sys/uio.h>. | |
11076 | (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined. | |
11077 | (init_registers_s390_linux32v1): Add prototype. | |
11078 | (init_registers_s390_linux32v2): Likewise. | |
11079 | (init_registers_s390_linux64v1): Likewise. | |
11080 | (init_registers_s390_linux64v2): Likewise. | |
11081 | (init_registers_s390x_linux64v1): Likewise. | |
11082 | (init_registers_s390x_linux64v2): Likewise. | |
11083 | (s390_num_regs): Increment to 52. | |
11084 | (s390_regmap): Add orig_r2 register. | |
11085 | (s390_num_regs_3264): Increment to 68. | |
11086 | (s390_regmap_3264): Add orig_r2 register. | |
11087 | (s390_collect_ptrace_register): Handle orig_r2 register. | |
11088 | (s390_supply_ptrace_register): Likewise. | |
11089 | (s390_fill_last_break): New function. | |
11090 | (s390_store_last_break): Likewise. | |
11091 | (s390_fill_system_call): New function. | |
11092 | (s390_store_system_call): Likewise. | |
11093 | (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL | |
11094 | register sets. | |
11095 | (s390_check_regset): New function. | |
11096 | (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and | |
11097 | NT_S390_SYSTEM_CALL regsets and use appropriate description. | |
11098 | Update target_regsets for available register sets. | |
11099 | ||
2268b414 JK |
11100 | 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com> |
11101 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
11102 | ||
11103 | * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug) | |
11104 | (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4): | |
11105 | New. | |
11106 | (struct linux_target_ops): Install linux_qxfer_libraries_svr4. | |
11107 | * linux-low.h (struct process_info_private): New member r_debug. | |
11108 | * server.c (handle_qxfer_libraries): Call | |
11109 | the_target->qxfer_libraries_svr4. | |
11110 | (handle_qxfer_libraries_svr4): New function. | |
11111 | (qxfer_packets): New entry "libraries-svr4". | |
11112 | (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4. | |
11113 | * target.h (struct target_ops): New member qxfer_libraries_svr4. | |
11114 | * remote.c (remote_xfer_partial): Call add_packet_config_cmd for | |
11115 | PACKET_qXfer_libraries_svr4. | |
11116 | ||
d6db1fab UW |
11117 | 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com> |
11118 | ||
11119 | * linux-s390-low.c (s390_collect_ptrace_register): Fully convert | |
11120 | PSW address/mask between 8-byte and 16-byte formats. | |
11121 | (s390_supply_ptrace_register): Likewise. | |
11122 | (s390_get_pc, s390_set_pc): 4-byte PSW address always includes | |
11123 | basic addressing mode bit. | |
11124 | ||
242f5f1c SS |
11125 | 2011-11-24 Stan Shebs <stan@codesourcery.com> |
11126 | ||
11127 | * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx. | |
11128 | ||
f196051f SS |
11129 | 2011-11-17 Stan Shebs <stan@codesourcery.com> |
11130 | ||
11131 | * tracepoint.c (struct tracepoint): New field traceframe_usage. | |
11132 | (tracing_start_time): New global. | |
11133 | (tracing_stop_time): New global. | |
11134 | (tracing_user_name): New global. | |
11135 | (tracing_notes): New global. | |
11136 | (tracing_stop_note): New global. | |
11137 | (cmd_qtstart): Set traceframe_usage, start_time. | |
11138 | (stop_tracing): Set stop_time. | |
11139 | (cmd_qtstatus): Report additional status. | |
11140 | (cmd_qtp): New function. | |
11141 | (handle_tracepoint_query): Call it. | |
11142 | (cmd_qtnotes): New function. | |
11143 | (handle_tracepoint_general_set): Call it. | |
11144 | (get_timestamp): Rename from tsv_get_timestamp. | |
11145 | ||
405f8e94 SS |
11146 | 2011-11-14 Stan Shebs <stan@codesourcery.com> |
11147 | Kwok Cheung Yeung <kcy@codesourcery.com> | |
11148 | ||
11149 | * linux-x86-low.c (small_jump_insn): New. | |
11150 | (i386_install_fast_tracepoint_jump_pad): Add arguments for | |
11151 | trampoline and error message, build a trampoline and issue a small | |
11152 | jump instruction to it. | |
11153 | (x86_install_fast_tracepoint_jump_pad): Add arguments for | |
11154 | trampoline and error message. | |
11155 | (x86_get_min_fast_tracepoint_insn_len): New. | |
11156 | (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len. | |
11157 | * linux-low.h (struct linux_target_ops): Add arguments to | |
11158 | install_fast_tracepoint_jump_pad operation, add new operation. | |
11159 | * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add | |
11160 | arguments. | |
11161 | (linux_get_min_fast_tracepoint_insn_len): New function. | |
11162 | (linux_target_op): Add new operation. | |
11163 | * tracepoint.c (gdb_trampoline_buffer): New IPA variable. | |
11164 | (gdb_trampoline_buffer_end): Ditto. | |
11165 | (gdb_trampoline_buffer_error): Ditto. | |
11166 | (struct ipa_sym_addresses): Add fields for new IPA variables. | |
11167 | (symbol_list): Add entries for new IPA variables. | |
11168 | (struct tracepoint): Add fields to hold the address range of the | |
11169 | trampoline used by the tracepoint. | |
11170 | (trampoline_buffer_head): New static variable. | |
11171 | (trampoline_buffer_tail): Ditto. | |
11172 | (claim_trampoline_space): New function. | |
11173 | (have_fast_tracepoint_trampoline_buffer): New function. | |
11174 | (clone_fast_tracepoint): Fill in trampoline fields of tracepoint | |
11175 | structure. | |
11176 | (install_fast_tracepoint): Ditto, also add error buffer argument. | |
11177 | (cmd_qtminftpilen): New function. | |
11178 | (handle_tracepoint_query): Add response to qTMinFTPILen packet. | |
11179 | (fast_tracepoint_from_trampoline_address): New function. | |
11180 | (fast_tracepoint_collecting): Handle trampoline as part of jump | |
11181 | pad space. | |
11182 | (set_trampoline_buffer_space): New function. | |
11183 | (initialize_tracepoint): Initialize new IPA variables. | |
11184 | * target.h (struct target_ops): Add arguments to | |
11185 | install_fast_tracepoint_jump_pad operation, add new | |
11186 | get_min_fast_tracepoint_insn_len operation. | |
11187 | (target_get_min_fast_tracepoint_insn_len): New. | |
11188 | (install_fast_tracepoint_jump_pad): Add arguments. | |
11189 | * server.h (IPA_BUFSIZ): Define. | |
11190 | * linux-i386-ipa.c: Include extra header files. | |
11191 | (initialize_fast_tracepoint_trampoline_buffer): New function. | |
11192 | (initialize_low_tracepoint): Call it. | |
11193 | * server.h (set_trampoline_buffer_space): Declare. | |
11194 | (claim_trampoline_space): Ditto. | |
11195 | (have_fast_tracepoint_trampoline_buffer): Ditto. | |
11196 | ||
1e4d1764 YQ |
11197 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
11198 | ||
11199 | * server.c (handle_query): Handle InstallInTrace for qSupported. | |
11200 | * tracepoint.c (add_tracepoint): Sort list. | |
11201 | (install_tracepoint, download_tracepoint): New. | |
11202 | (cmd_qtdp): Call them to install and download tracepoints. | |
11203 | (sort_tracepoints): Removed. | |
11204 | (cmd_qtstart): Update. | |
11205 | ||
5c73ff4e YQ |
11206 | 2011-11-14 Yao Qi <yao@codesourcery.com> |
11207 | ||
11208 | * mem-break.c (inc_ref_fast_tracepoint_jump): New. | |
11209 | * mem-break.h: Declare. | |
11210 | * tracepoint.c (cmd_qtstart): Move some code to ... | |
11211 | (clone_fast_tracepoint, install_fast_tracepoint): ... here. | |
11212 | New. | |
11213 | (download_tracepoints): Move some code to ... | |
11214 | (download_tracepoint_1): ... here. New. | |
11215 | ||
86a30030 YQ |
11216 | 2011-11-08 Yao Qi <yao@codesourcery.com> |
11217 | ||
11218 | * remote-utils.c (relocate_instruction): A comment fix. | |
11219 | ||
8d26e50c JB |
11220 | 2011-11-07 Joel Brobecker <brobecker@adacore.com> |
11221 | ||
11222 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete. | |
11223 | (i386_dr_low_get_control, i386_dr_low_get_status): Use | |
11224 | dr_status_mirror and dr_control_mirror from debug_reg_state. | |
11225 | (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror | |
11226 | (i386_initial_stuff): Remove use of deleted globals. | |
11227 | (i386_get_thread_context, i386_set_thread_context, | |
11228 | i386_thread_added): Use dr_status_mirror and dr_control_mirror | |
11229 | from debug_reg_state. | |
11230 | ||
a59306a3 YQ |
11231 | 2011-11-05 Yao Qi <yao@codesourcery.com> |
11232 | ||
11233 | * tracepoint.c (gdb_collect): Loop over tracepoints of same | |
11234 | address as TPOINT's. | |
11235 | ||
3065dfb6 SS |
11236 | 2011-11-02 Stan Shebs <stan@codesourcery.com> |
11237 | ||
11238 | * tracepoint.c (agent_mem_read_string): New function. | |
11239 | (eval_agent_expr): Call it for tracenz. | |
11240 | * server.c (handle_query): Report support for tracenz. | |
11241 | ||
fd0d8c7c YQ |
11242 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
11243 | ||
11244 | * tracepoint.c (cmd_qtstart): Remove unused local variables. | |
11245 | ||
609086b1 YQ |
11246 | 2011-11-02 Yao Qi <yao@codesourcery.com> |
11247 | ||
11248 | * target.h: Fix a typo in comment. | |
11249 | ||
b9fd1791 PA |
11250 | 2011-10-31 Pedro Alves <pedro@codesourcery.com> |
11251 | ||
11252 | * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't | |
11253 | clobber the breakpoints' shadows with fast tracepoint jumps. | |
11254 | * mem-break.h (check_mem_write): Add `myaddr' parameter. | |
11255 | * target.c (write_inferior_memory): Also pass MYADDR down to | |
11256 | check_mem_write. | |
11257 | ||
03583c20 UW |
11258 | 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org> |
11259 | ||
11260 | * configure.ac: Check support for personality routine. | |
11261 | * configure: Regenerate. | |
11262 | * config.in: Likewise. | |
11263 | * linux-low.c: Include <sys/personality.h>. | |
11264 | Define ADDR_NO_RANDOMIZE if necessary. | |
11265 | (linux_create_inferior): Disable address space randomization when | |
11266 | forking inferior, if requested. | |
11267 | (linux_supports_disable_randomization): New function. | |
11268 | (linux_target_ops): Install it. | |
11269 | * server.h (disable_randomization): Declare. | |
11270 | * server.c (disable_randomization): New global variable. | |
11271 | (handle_general_set): Handle QDisableRandomization. | |
11272 | (handle_query): Likewise for qSupported. | |
11273 | (main): Support --disable-randomization and --no-disable-randomization | |
11274 | command line arguments. | |
11275 | * target.h (struct target_ops): Add supports_disable_randomization. | |
11276 | (target_supports_disable_randomization): New macro. | |
11277 | ||
723b724b MF |
11278 | 2011-09-29 Mike Frysinger <vapier@gentoo.org> |
11279 | ||
11280 | * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the | |
11281 | ifdef check. | |
11282 | [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check. | |
11283 | [!PT_GETDSBT] (target_loadmap): New definition. | |
11284 | (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define. | |
11285 | (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to | |
11286 | LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP, | |
11287 | and PT_GETDSBT to LINUX_LOADMAP. | |
11288 | [!PT_GETDSBT] (linux_read_loadmap): Define to NULL. | |
11289 | (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check. | |
11290 | ||
55329a5c | 11291 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
71487fd7 UW |
11292 | |
11293 | * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove. | |
11294 | (arm_linux_hwbp_cap): New static variable. | |
11295 | (arm_linux_get_hwbp_cap): Replace by ... | |
11296 | (arm_linux_init_hwbp_cap): ... this new function. | |
11297 | (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap. | |
11298 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
11299 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
11300 | (arm_arch_setup): Call arm_linux_init_hwbp_cap. | |
11301 | (arm_prepare_to_resume): Use perror_with_name instead of error. | |
11302 | ||
55329a5c | 11303 | 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
09b4ad9f UW |
11304 | |
11305 | * linux-arm-low.c: Include <signal.h>. | |
11306 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary. | |
11307 | (struct arm_linux_hwbp_cap): New data type. | |
11308 | (arm_hwbp_type, arm_hwbp_control_t): New typedefs. | |
11309 | (struct arm_linux_hw_breakpoint): New data type. | |
11310 | (MAX_BPTS, MAX_WPTS): Define. | |
11311 | (struct arch_process_info, struct arch_lwp_info): New data types. | |
11312 | (arm_linux_get_hwbp_cap): New function. | |
11313 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
11314 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
11315 | (arm_linux_get_hw_watchpoint_max_length): Likewise. | |
11316 | (arm_hwbp_control_initialize): Likewise. | |
11317 | (arm_hwbp_control_is_enabled): Likewise. | |
11318 | (arm_hwbp_control_is_initialized): Likewise. | |
11319 | (arm_hwbp_control_disable): Likewise. | |
11320 | (arm_linux_hw_breakpoint_equal): Likewise. | |
11321 | (arm_linux_hw_point_initialize): Likewise. | |
11322 | (struct update_registers_data): New data structure. | |
11323 | (update_registers_callback: New function. | |
11324 | (arm_insert_point): Likewise. | |
11325 | (arm_remove_point): Likewise. | |
11326 | (arm_stopped_by_watchpoint): Likewise. | |
11327 | (arm_stopped_data_address): Likewise. | |
11328 | (arm_new_process): Likewise. | |
11329 | (arm_new_thread): Likewise. | |
11330 | (arm_prepare_to_resume): Likewise. | |
11331 | (the_low_target): Register arm_insert_point, arm_remove_point, | |
11332 | arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process, | |
11333 | arm_new_thread, and arm_prepare_to_resume. | |
11334 | ||
6b9801d4 SS |
11335 | 2011-09-15 Stan Shebs <stan@codesourcery.com> |
11336 | ||
11337 | * server.h (struct emit_ops): Add compare-goto fields. | |
11338 | * tracepoint.c (gdb_agent_op_sizes): New table. | |
11339 | (emit_eq_goto): New function. | |
11340 | (emit_ne_goto): New function. | |
11341 | (emit_lt_goto): New function. | |
11342 | (emit_le_goto): New function. | |
11343 | (emit_gt_goto): New function. | |
11344 | (emit_ge_goto): New function. | |
11345 | (is_goto_target): New function. | |
11346 | (compile_bytecodes): Recognize special cases of compare-goto | |
11347 | combinations and call specialized emitters for them. | |
11348 | * linux-x86-low.c (amd64_emit_eq_goto): New function. | |
11349 | (amd64_emit_ne_goto): New function. | |
11350 | (amd64_emit_lt_goto): New function. | |
11351 | (amd64_emit_le_goto): New function. | |
11352 | (amd64_emit_gt_goto): New function. | |
11353 | (amd64_emit_ge_goto): New function. | |
11354 | (amd64_emit_ops): Add the new functions. | |
11355 | (i386_emit_eq_goto): New function. | |
11356 | (i386_emit_ne_goto): New function. | |
11357 | (i386_emit_lt_goto): New function. | |
11358 | (i386_emit_le_goto): New function. | |
11359 | (i386_emit_gt_goto): New function. | |
11360 | (i386_emit_ge_goto): New function. | |
11361 | (i386_emit_ops): Add the new functions. | |
11362 | ||
bf15cbda SS |
11363 | 2011-09-08 Stan Shebs <stan@codesourcery.com> |
11364 | ||
11365 | * linux-x86-low.c (i386_emit_prologue): Save %ebx. | |
11366 | (i386_emit_epilogue): Restore %ebx. | |
11367 | ||
943ca1dd JZ |
11368 | 2011-08-31 Jie Zhang <jzhang918@gmail.com> |
11369 | ||
11370 | * server.c (step_thread): Remove definition. | |
11371 | (process_serial_event): Don't handle Hs. | |
11372 | * server.h (step_thread): Remove declaration. | |
11373 | * target.c (set_desired_inferior): Remove use of step_thread. | |
11374 | ||
e3deef73 LM |
11375 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
11376 | ||
11377 | * linux-low.c: Include linux-procfs.h. | |
11378 | (linux_attach_lwp_1): Update comments. | |
11379 | (linux_attach): Scan for existing threads when attaching to a | |
11380 | process that is the tgid. | |
11381 | * Makefile.in: Update dependencies. | |
11382 | ||
13da1c97 LM |
11383 | 2011-08-24 Luis Machado <lgustavo@codesourcery.com> |
11384 | ||
11385 | * configure.srv: Add linux-procfs.o dependencies. | |
11386 | ||
881127c9 YQ |
11387 | 2011-08-14 Yao Qi <yao@codesourcery.com> |
11388 | ||
11389 | * target.h (struct target_ops): Fix indent. | |
11390 | * win32-low.c (win32_target_ops): Fix comment. | |
11391 | ||
58dbd541 YQ |
11392 | 2011-08-14 Andrew Jenner <andrew@codesourcery.com> |
11393 | Yao Qi <yao@codesourcery.com> | |
11394 | ||
11395 | * Makefile.in (clean): Remove tic6x-*.c files. | |
11396 | (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. | |
11397 | (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. | |
11398 | (tic6x-c64xp-linux.c): Likewise. | |
11399 | * configure.srv: Add support for tic6x-*-uclinux. | |
11400 | * linux-tic6x-low.c: New. | |
11401 | * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define. | |
11402 | ||
78d85199 YQ |
11403 | 2011-08-14 Andrew Stubbs <ams@codesourcery.com> |
11404 | Yao Qi <yao@codesourcery.com> | |
11405 | ||
11406 | * target.h (struct target_ops): Add read_loadmap. | |
11407 | * linux-low.c (struct target_loadseg): New type. | |
11408 | (struct target_loadmap): New type. | |
11409 | (linux_read_loadmap): New function. | |
11410 | (linux_target_ops): Add linux_read_loadmap. | |
11411 | * server.c (handle_query): Support qXfer:fdpic:read packet. | |
43aaf8b6 PA |
11412 | * win32-low.c (win32_target_ops): Initialize field `read_loadmap' |
11413 | to NULL. | |
78d85199 | 11414 | |
a959a88d EZ |
11415 | 2011-08-05 Eli Zaretskii <eliz@gnu.org> |
11416 | ||
11417 | * win32-low.c: Include <stdint.h>. | |
11418 | ||
1ced966e PA |
11419 | 2011-07-22 Pedro Alves <pedro@codesourcery.com> |
11420 | ||
11421 | * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info | |
11422 | to the inferior here. | |
11423 | (i386_remove_aligned_watchpoint): Ditto. | |
11424 | (i386_handle_nonaligned_watchpoint): Return immediate on fail to | |
11425 | fit part of the watchpoint in the debug registers. | |
11426 | (i386_update_inferior_debug_regs): New. | |
11427 | (i386_low_insert_watchpoint): Work on a local mirror of the debug | |
11428 | registers, and only update the inferior on success. | |
11429 | (i386_low_remove_watchpoint): Ditto. | |
11430 | ||
d26e3629 KY |
11431 | 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com> |
11432 | ||
11433 | * linux-low.c (compare_ints, unique, list_threads, show_process, | |
11434 | linux_core_of_thread): Delete. | |
11435 | (linux_target_ops): Change linux_core_of_thread to | |
11436 | linux_common_core_of_thread. | |
11437 | (linux_qxfer_osdata): Defer to linux_common_xfer_osdata. | |
11438 | * utils.c (malloc_failure): Change type of argument. | |
11439 | (xmalloc, xrealloc, xcalloc, xsnprintf): Delete. | |
11440 | * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c, | |
11441 | common/linux-osdata.c, common/ptid.c and common/buffer.c. | |
11442 | (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o. | |
11443 | (IPA_OBJS): Add common-utils-ipa.o. | |
11444 | (ptid_h, linux_osdata_h): New macros. | |
11445 | (server_h): Add common/common-utils.h, common/xml-utils.h, | |
11446 | common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and | |
11447 | common/ptid.h. | |
11448 | (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o, | |
11449 | ptid.o, buffer.o): New rules. | |
11450 | (linux-low.o): Add common/linux-osdata.h as a dependency. | |
11451 | * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets. | |
11452 | * configure.ac: Add AC_HEADER_DIRENT check. | |
11453 | * config.in: Regenerate. | |
11454 | * configure: Regenerate. | |
11455 | * remote-utils.c (xml_escape_text): Delete. | |
11456 | (buffer_grow, buffer_free, buffer_init, buffer_finish, | |
11457 | buffer_xml_printf): Move to common/buffer.c. | |
11458 | * server.c (main): Remove call to initialize_inferiors. | |
11459 | * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid, | |
11460 | ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid, | |
11461 | ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text, | |
11462 | internal_error, gdb_assert, gdb_assert_fail): Delete. | |
11463 | (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish, | |
11464 | buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to | |
11465 | common/buffer.h. | |
11466 | * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid, | |
11467 | ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid, | |
11468 | initialize_inferiors): Delete. | |
11469 | ||
2275a1a7 PA |
11470 | 2011-07-20 Pedro Alves <pedro@codesourcery.com> |
11471 | ||
11472 | * tracepoint.c (tracepoint_look_up_symbols): Return upon the first | |
11473 | symbol error. | |
11474 | ||
0a5b1e09 PA |
11475 | 2011-05-31 Pedro Alves <pedro@codesourcery.com> |
11476 | ||
11477 | * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in | |
11478 | assertion. | |
11479 | * win32-i386-low.c (i386_dr_low_get_addr): Ditto. | |
11480 | ||
6938fd34 YQ |
11481 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
11482 | ||
11483 | * Makefile.in (thread-db.o): Track dependence to | |
11484 | common/gdb_thread_db.h. | |
11485 | * thread-db.c: include gdb_thread_db.h from right place. | |
11486 | ||
b481f9e0 TT |
11487 | 2011-05-16 Adrian Cornish <gnu@bluedreamer.com> |
11488 | ||
11489 | * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass | |
11490 | __FILE__ and __LINE__ to internal_error. | |
11491 | ||
98a5dd13 DE |
11492 | 2011-05-13 Doug Evans <dje@google.com> |
11493 | ||
11494 | * thread-db.c (try_thread_db_load_from_sdir): New function. | |
11495 | (try_thread_db_load_from_dir): New function. | |
11496 | (thread_db_load_search): Handle $sdir, ignore $pdir. | |
11497 | Remove trying of system directories if search of | |
11498 | libthread-db-search-path fails, that is now done via $sdir. | |
11499 | ||
d248b706 KY |
11500 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
11501 | ||
11502 | * server.c (handle_query): Add EnableDisableTracepoints to the list | |
11503 | of supported features. | |
43aaf8b6 | 11504 | * tracepoint.c (clear_installed_tracepoints): Uninstall disabled |
d248b706 | 11505 | tracepoints. |
43aaf8b6 PA |
11506 | (cmd_qtenable_disable): New. |
11507 | (cmd_qtstart): Install tracepoints even if disabled. | |
11508 | (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on | |
11509 | receiving a QTEnable or QTDisable packet. | |
11510 | (gdb_collect): Skip data collection if fast tracepoint is disabled. | |
11511 | (ust_marker_to_static_tracepoint): Do not ignore disabled static | |
11512 | tracepoints. | |
11513 | (gdb_probe): Skip data collection if static tracepoint is disabled. | |
d248b706 | 11514 | |
84e578fb DE |
11515 | 2011-05-10 Doug Evans <dje@google.com> |
11516 | ||
11517 | * thread-db.c (thread_db_handle_monitor_command): Handle elided path. | |
11518 | ||
71f55dd8 DE |
11519 | 2011-05-04 Doug Evans <dje@google.com> |
11520 | ||
11521 | * linux-low.c (linux_join): Skip process lookup. | |
11522 | * spu-low.c (spu_join): Ditto. | |
11523 | * server.c (join_inferiors_callback): Delete. | |
11524 | (process_serial_event): For 'D' packet (detach) call join_inferior | |
11525 | directly. | |
11526 | ||
4d393d60 JM |
11527 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
11528 | ||
11529 | * README: Don't mention xscale*-*-linux*. | |
11530 | * configure.srv (xscale*-*-linux*): Don't handle target. | |
11531 | ||
b00ad6ff NF |
11532 | 2011-04-27 Nathan Froyd <froydnj@codesourcery.com> |
11533 | ||
11534 | * linux-x86-low.c (amd64_emit_const): Call memcpy instead of | |
11535 | casting pointers. | |
11536 | (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2): | |
11537 | (i386_emit_const, i386_emit_reg, i386_emit_int_call_1): | |
11538 | (i386_emit_void_call_2): Likewise. | |
11539 | ||
af96c192 YQ |
11540 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
11541 | ||
43aaf8b6 PA |
11542 | * linux-low.c: Move common macros to linux-ptrace.h. |
11543 | Include linux-ptrace.h. | |
af96c192 YQ |
11544 | * Makefile.in (linux_ptrace_h): New. |
11545 | (linux-low.o): Depends on linux-ptrace.h. | |
11546 | ||
03f2bd59 JK |
11547 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
11548 | ||
11549 | * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if | |
11550 | RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call. | |
11551 | (remote_prepare): New function with most of the TCP code from ... | |
11552 | (remote_open): ... here. Detect PORT here unconditionally. Move also | |
11553 | setting transport_is_reliable. | |
11554 | * server.c (run_once): New variable. | |
11555 | (gdbserver_usage): Document it. | |
11556 | (main): Set run_once for `--once'. Call remote_prepare. Exit after | |
11557 | the first run if RUN_ONCE. | |
11558 | * server.h (run_once, remote_prepare): New declarations. | |
11559 | ||
7a9dd1b2 TT |
11560 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
11561 | ||
11562 | * win32-low.c (handle_load_dll): Remove duplicate "the". | |
11563 | ||
81239425 PM |
11564 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
11565 | ||
11566 | Remove support for old Cygwin 1.5 versions. | |
11567 | * win32-low.c (win32_create_inferior): Use new cygwin_path_list | |
11568 | function to avoid warning. | |
11569 | (win32_add_one_solib): Use cygwin_conv_path function to avoid | |
11570 | warning. | |
11571 | ||
9e0627f1 PM |
11572 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
11573 | ||
11574 | * gdbserver/server.h (Macro _): Define it if not available. | |
11575 | ||
588eebee MS |
11576 | 2011-03-14 Michael Snyder <msnyder@vmware.com> |
11577 | ||
348af9f7 | 11578 | * hostio.c (handle_close): Remove unnecessary null test. |
588eebee | 11579 | |
43f70d4c JB |
11580 | 2011-03-10 Joel Brobecker <brobecker@adacore.com> |
11581 | ||
11582 | * Makefile.in (maintainer-clean realclean distclean): Remove | |
11583 | "make ... subdir_do" command. | |
11584 | ||
348af9f7 MS |
11585 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
11586 | ||
11587 | * tracepoint.c (tracepoint_finish_step): Fix loop variable. | |
11588 | ||
11589 | * server.c (handle_v_run): Free alloced buffer on early return. | |
11590 | ||
e637a4f5 YQ |
11591 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
11592 | ||
11593 | Revert: | |
11594 | 2011-03-04 Yao Qi <yao@codesourcery.com> | |
11595 | ||
11596 | * Makefile.in: Remove GNU make feature --directory. | |
11597 | ||
11598 | 2011-03-05 Yao Qi <yao@codesourcery.com> | |
11599 | ||
11600 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
11601 | (subdir_do): New make target. Copied from gdb/Makefile. | |
11602 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
11603 | make targets in common/Makefile. | |
11604 | ||
11605 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
11606 | ||
11607 | * configure.ac: Call AC_PROG_RANLIB. | |
11608 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
11609 | * configure: Regenerate. | |
11610 | ||
e6edda56 JK |
11611 | 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
11612 | ||
11613 | * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. | |
11614 | ||
e5141119 JB |
11615 | 2011-03-06 Yao Qi <yao@codesourcery.com> |
11616 | ||
11617 | * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR). | |
11618 | ||
64794aa4 JB |
11619 | 2011-03-05 Yao Qi <yao@codesourcery.com> |
11620 | ||
11621 | * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable. | |
11622 | (subdir_do): New make target. Copied from gdb/Makefile. | |
11623 | (maintainer-clean, realclean, distclean, clean): Call corresponding | |
11624 | make targets in common/Makefile. | |
11625 | ||
7a762829 YQ |
11626 | 2011-03-04 Yao Qi <yao@codesourcery.com> |
11627 | ||
11628 | * Makefile.in: Remove GNU make feature --directory. | |
11629 | ||
348af9f7 MS |
11630 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
11631 | ||
11632 | * server.c (queue_stop_reply): Call xmalloc not malloc. | |
11633 | ||
11634 | 2011-03-02 Michael Snyder <msnyder@vmware.com> | |
11635 | ||
11636 | * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. | |
11637 | ||
9f72fee2 MS |
11638 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
11639 | ||
588eebee MS |
11640 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
11641 | (cmd_qtframe): Ditto. | |
11642 | (cmd_qtbuffer): Ditto. | |
11643 | (cmd_bigqtbuffer): Ditto. | |
11644 | ||
9f72fee2 MS |
11645 | * utils.c (decimal2str): Initialize 'width' to nine, then |
11646 | don't mess with it. | |
11647 | ||
8040bd49 UW |
11648 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
11649 | ||
11650 | * hostio.c (require_data): Free *data, not data. | |
11651 | ||
7e52cbd0 JK |
11652 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
11653 | ||
11654 | * hostio.c (require_data): Use free, not xfree. | |
11655 | ||
9130f83e MS |
11656 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
11657 | ||
4b812f4e MS |
11658 | * server.c (handle_query): Discard unused value. |
11659 | ||
9130f83e MS |
11660 | * hostio.c (require_data): Free malloc memory before returning |
11661 | error. | |
11662 | ||
69d37113 MS |
11663 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
11664 | ||
11665 | * linux-low.c (list_threads): Call closedir for dirent. | |
11666 | ||
35f5825a MS |
11667 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
11668 | ||
2a589cef MS |
11669 | * i386-low.c (i386-length_and_rw_bits): Comment the fact that |
11670 | a case statement falls through. | |
11671 | ||
0adea5f7 MS |
11672 | * linux-low.c (linux_xfer_siginfo): Fix fencepost error. |
11673 | ||
35f5825a MS |
11674 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error |
11675 | in comparison. | |
11676 | ||
238f1c74 MS |
11677 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
11678 | ||
11679 | * utils.c (decimal2str): Eliminate dead code and dead param. | |
11680 | (pulongest): Drop dead param from call to decimal2str. | |
11681 | (plongest): Ditto. | |
11682 | ||
633ff500 JB |
11683 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
11684 | ||
11685 | Revert the following patch (not approved yet): | |
11686 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
11687 | * tracepoint.c (tp_printf): New function. | |
11688 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
11689 | ||
f9c6ff72 HZ |
11690 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
11691 | ||
11692 | * tracepoint.c (tp_printf): New function. | |
11693 | (eval_agent_expr): Handle gdb_agent_op_printf. | |
11694 | ||
94d5e490 TT |
11695 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
11696 | ||
11697 | * Makefile.in (tracepoint-ipa.o): Depend on ax.def. | |
11698 | (tracepoint.o): Likewise. | |
11699 | * tracepoint.c (enum gdb_agent_op): Use ax.def. | |
11700 | (gdb_agent_op_names): Likewise. | |
11701 | ||
c7f96d2b TT |
11702 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
11703 | ||
11704 | * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, | |
11705 | gdb_agent_op_rot>: New constants. | |
11706 | (gdb_agent_op_names): Add pick and roll. | |
11707 | (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New | |
11708 | cases. | |
11709 | ||
0feedb2c JK |
11710 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
11711 | ||
11712 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
11713 | ||
b3b9301e PA |
11714 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
11715 | ||
11716 | * server.c (handle_qxfer_traceframe_info): New. | |
11717 | (qxfer_packets): Register "traceframe-info". | |
11718 | (handle_query): Report support for qXfer:traceframe-info:read+. | |
11719 | * tracepoint.c (match_blocktype): New. | |
11720 | (traceframe_find_block_type): Rename to ... | |
11721 | (traceframe_walk_blocks): ... this. Add callback filter argument, | |
11722 | and use it. | |
11723 | (traceframe_find_block_type): New, reimplemented on top of | |
11724 | traceframe_walk_blocks. | |
11725 | (build_traceframe_info_xml): New. | |
11726 | (traceframe_read_info): New. | |
11727 | * server.h (traceframe_read_info): Declare. | |
11728 | ||
4f3e6fb7 YQ |
11729 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
11730 | ||
11731 | * configure.ac: Call AC_PROG_RANLIB. | |
11732 | * Makefile.in: Remove signals.o from OBS. Link libcommon.a. | |
11733 | * configure: Regenerate. | |
11734 | ||
764880b7 PA |
11735 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
11736 | ||
11737 | * server.c (gdb_read_memory): Change return semantics to allow | |
11738 | partial transfers. | |
11739 | (handle_search_memory_1): Adjust. | |
11740 | (process_serial_event) <'m' packet>: Handle partial transfers. | |
11741 | * tracepoint.c (traceframe_read_mem): Handle partial transfers. | |
11742 | ||
1c79eb8a PA |
11743 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
11744 | ||
11745 | * regcache.c (init_register_cache): Initialize | |
11746 | regcache->register_status. | |
11747 | (free_register_cache): Release regcache->register_status. | |
11748 | (regcache_cpy): Copy register_status. | |
11749 | (registers_to_string): Print 'x's for unavailable registers. | |
11750 | (supply_register): Mark the register's status valid or | |
11751 | unavailable, depending on whether a buffer was passed in or not. | |
11752 | (supply_register_zeroed): New. | |
11753 | (supply_regblock): Mark the registers' status valid or | |
11754 | unavailable, depending on whether a buffer was passed in or not. | |
11755 | * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines. | |
11756 | (struct regcache): New `register_status' field. | |
11757 | (supply_register_zeroed): Declare. | |
11758 | * i387-fp.c (i387_xsave_to_cache): Zero out registers using | |
11759 | supply_register_zeroed, rather than passing a NULL buffer to | |
11760 | supply_register. | |
11761 | * tracepoint.c (fetch_traceframe_registers): Update comment. | |
11762 | ||
85724a0e PA |
11763 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
11764 | ||
11765 | * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register | |
11766 | buffer explicit. | |
11767 | ||
d08aafef PA |
11768 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
11769 | ||
11770 | * server.h (decode_xfer_write): Change prototype. | |
11771 | * remote-utils.c (decode_xfer_write): Remove `annex' parameter, | |
11772 | and don't extract the annex here. | |
11773 | * server.c (decode_xfer_read): Remove `annex' parameter, | |
11774 | and don't extract the annex here. | |
11775 | (decode_xfer): New. | |
11776 | (struct qxfer): New. | |
11777 | (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries) | |
11778 | (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu) | |
11779 | (handle_qxfer_statictrace): New functions, abstracted out from | |
11780 | handle_query, and made to use the struct qxfer interface. | |
11781 | (handle_threads_qxfer_proper): Rename to ... | |
11782 | (handle_qxfer_threads_proper): ... this. | |
11783 | (handle_threads_qxfer): Rename to ... | |
11784 | (handle_qxfer_threads): ... this. Adjust. | |
11785 | (qxfer_packets): New array. | |
11786 | (handle_qxfer): New function. | |
11787 | (handle_query): Use handle_qxfer. | |
11788 | ||
493e2a69 MS |
11789 | 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
11790 | ||
11791 | * gdbreplay.c: Shorten lines of >= 80 columns. | |
11792 | * linux-low.c: Ditto. | |
11793 | * linux-ppc-low.c: Ditto. | |
11794 | * linux-s390-low.c: Ditto. | |
11795 | * linux-sparc-low.c: Ditto. | |
11796 | * linux-x86-low.c: Ditto. | |
11797 | * linux-xtensa-low.c: Ditto. | |
11798 | * mem-break.c: Ditto. | |
11799 | * nto-low.c: Ditto. | |
11800 | * regcache.h: Ditto. | |
11801 | * remote-utils.c: Ditto. | |
11802 | * server.c: Ditto. | |
11803 | * server.h: Ditto. | |
11804 | * thread-db.c: Ditto. | |
11805 | * tracepoint.c: Ditto. | |
11806 | * utils.c: Ditto. | |
11807 | * win32-low.h: Ditto. | |
11808 | ||
44944448 JB |
11809 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
11810 | ||
11811 | * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year | |
11812 | update. | |
11813 | ||
71ce852c JB |
11814 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
11815 | ||
11816 | * server.c (gdbserver_version): Update copyright year in version | |
11817 | output. | |
11818 | * gdbreplay.c (gdbreplay_version): Ditto. | |
11819 | ||
eb826dc6 MF |
11820 | 2010-12-29 Jie Zhang <jie.zhang@analog.com> |
11821 | ||
11822 | * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets. | |
11823 | * linux-bfin-low.c: New file. | |
11824 | * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and | |
11825 | PT_DATA_ADDR for BFIN targets. | |
11826 | * Makefile.in (SFILES): Add linux-bfin-low.c. | |
11827 | (clean): Remove reg-bfin.c. | |
11828 | (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets. | |
11829 | * README: Mention supported Blackfin targets. | |
11830 | ||
39ab222a MF |
11831 | 2010-12-23 Mike Frysinger <vapier@gentoo.org> |
11832 | ||
11833 | * .gitignore: New file. | |
11834 | ||
a1f2ce7d MF |
11835 | 2010-11-16 Mike Frysinger <vapier@gentoo.org> |
11836 | ||
11837 | * linux-low.c (linux_tracefork_child): Add char* cast to arg. | |
11838 | ||
f474844c JZ |
11839 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
11840 | ||
11841 | * Makefile.in: Add FLAGS_TO_PASS variable. | |
11842 | (install): Remove dependency of install-only and recursively | |
11843 | invoke make for install-only. | |
11844 | ||
f1048712 DE |
11845 | 2010-10-04 Doug Evans <dje@google.com> |
11846 | ||
11847 | * Makefile.in (uninstall): Use $(DESTDIR). | |
11848 | ||
b53a1623 PA |
11849 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
11850 | ||
e6ee044d PA |
11851 | PR gdb/11842 |
11852 | ||
b53a1623 PA |
11853 | * linux-x86-low.c (compat_siginfo_from_siginfo) |
11854 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
11855 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
11856 | si_code < 0. | |
11857 | ||
fa1bd1e4 JB |
11858 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
11859 | ||
11860 | * lynx-i386-low.c: New file. | |
11861 | * configure.srv: Add handling of i[34567]86-*-lynxos* targets. | |
11862 | ||
47fac8f8 JB |
11863 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
11864 | ||
11865 | * lynx-low.c (ptrace_request_to_str): Remove handling for | |
11866 | request values that have been removed in LynxOS 5.x. | |
11867 | ||
1adfc54d JB |
11868 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
11869 | ||
11870 | * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of | |
11871 | <ptrace.h> | |
11872 | ||
c2a66c29 NS |
11873 | 2010-09-09 Nathan Sidwell <nathan@codesourcery.com> |
11874 | ||
11875 | * configure.ac: Add --enable-inprocess-agent option. | |
11876 | * configure: Rebuilt. | |
11877 | ||
32fcada3 YQ |
11878 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
11879 | ||
11880 | * linux-low.c (linux_kill): Remove unused variable. | |
11881 | (linux_stabilize_threads): Likewise. | |
11882 | * server.c (start_inferior): Likewise. | |
11883 | (queue_stop_reply_callback): Likewise. | |
11884 | * tracepoint.c (do_action_at_tracepoint): Likewise. | |
11885 | ||
0cccb683 YQ |
11886 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
11887 | ||
11888 | * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior | |
11889 | on return. | |
11890 | ||
423ec54c JK |
11891 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
11892 | ||
11893 | * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. | |
11894 | ||
12ac6819 PA |
11895 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
11896 | ||
11897 | * Makefile.in (install-only): Replace $IPA_DEPFILES with | |
11898 | "$(IPA_DEPFILES)". | |
11899 | ||
8ed54b31 JB |
11900 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
11901 | ||
11902 | * gdbserver/lynx-low.c, gdbserver/lynx-low.h, | |
11903 | gdbserver/lynx-ppc-low.c: New files. | |
11904 | * Makefile.in (lynx_low_h): New variable. | |
11905 | (lynx-low.o, lynx-ppc-low.o): New rules. | |
11906 | * configure.ac: On LynxOS, link with -lnetinet. | |
11907 | * configure.srv: Add handling of powerpc-*-lynxos* targets. | |
11908 | * configure: regenerate. | |
11909 | ||
bb0116a4 JB |
11910 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
11911 | ||
11912 | * Makefile.in (vasprintf.o, vsnprintf.o): New rules. | |
11913 | * configure.ac: Add check for vasprintf and vsnprintf. | |
11914 | * configure, config.in: Regenerate. | |
11915 | * server.h (vasprintf, vsnprintf): Add conditional declarations. | |
11916 | ||
a778ab81 | 11917 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
11918 | ||
11919 | * gdbreplay.c: Move include of alloca.h up, next to include of | |
11920 | malloc.h. | |
11921 | * server.h: Add include of malloc.h. | |
11922 | * mem-break.c: Remove include of malloc.h. | |
11923 | * server.c, tracepoint.c, utils.c, win32-low.c: Likewise. | |
11924 | ||
8b034a19 | 11925 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
11926 | ||
11927 | * Makefile.in (memmem.o): Build with -Wno-error. | |
11928 | ||
11929 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
11930 | ||
11931 | * utils.c (xsnprintf): Make non-static. | |
11932 | * server.h: Add xsnprintf declaration. | |
11933 | * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c: | |
11934 | replace calls to snprintf by calls to xsnprintf throughout. | |
11935 | ||
11936 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> | |
11937 | ||
11938 | * configure.ac: Add configure check for alloca. | |
11939 | * configure, config.in: Regenerate. | |
11940 | * server.h: Include alloca.h if it exists. | |
11941 | * gdbreplay.c: Include alloca.h if it exists. | |
11942 | ||
1a981360 PA |
11943 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
11944 | ||
11945 | * linux-low.c (__SIGRTMIN): Define if not already defined. | |
11946 | (linux_create_inferior): Check for __ANDROID__ rather than | |
11947 | __SIGRTMIN. | |
11948 | (enqueue_one_deferred_signal): Don't requeue non-RT signals that | |
11949 | are already deferred. | |
11950 | (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN. | |
11951 | (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is | |
11952 | stopped and already has a pending signal to report. | |
11953 | (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has | |
11954 | a pending signal to report or is moving out of a jump pad. | |
11955 | (linux_init_signals): Check for __ANDROID__ rather than | |
11956 | __SIGRTMIN. | |
11957 | ||
b4d51a55 PA |
11958 | 2010-08-28 Pedro Alves <pedro@codesourcery.com> |
11959 | ||
11960 | * linux-low.c (linux_stabilize_threads): Wrap debug output in a | |
11961 | debug_threads check. Avoid a linear search when not doing debug | |
11962 | output. | |
11963 | ||
ec48365d PA |
11964 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
11965 | ||
11966 | * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t. | |
11967 | (struct gdb_event) <fd>: Change type to gdb_fildes_t. | |
11968 | (struct file_handler) <fd>: Change type to gdb_fildes_t. | |
11969 | (process_event): Change local fd's type to gdb_fildes_t. | |
11970 | (create_file_handler): Adjust prototype. | |
11971 | (delete_file_handler): Adjust prototype. | |
11972 | (handle_file_event): Adjust prototype. Use pfildes. | |
11973 | (create_file_event): Adjsut prototype. | |
11974 | * remote-utils.c (remote_desc, listen_desc): Change type to | |
11975 | gdb_fildes_t. | |
11976 | * server.h: New gdb_fildes_t typedef. | |
11977 | [USE_WIN32API]: Include winsock2.h. | |
11978 | (delete_file_handler, add_file_handler): Adjust prototypes. | |
11979 | (pfildes): Declare. | |
11980 | * utils.c (pfildes): New. | |
11981 | ||
854d88f0 PA |
11982 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
11983 | ||
11984 | * configure.ac (build_warnings): Add -Wno-char-subscripts. | |
11985 | * configure: Regenerate. | |
11986 | ||
0146f85b PA |
11987 | 2010-08-27 Pedro Alves <pedro@codesourcery.com> |
11988 | ||
11989 | * linux-low.c (linux_unprepare_to_access_memory): Rename to ... | |
11990 | (linux_done_accessing_memory): ... this. | |
11991 | (linux_target_ops): Adjust. | |
11992 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust. | |
11993 | * nto-low.c (nto_target_ops): Adjust comment. | |
11994 | * server.c (gdb_read_memory, gdb_write_memory): Adjust. | |
11995 | * spu-low.c (spu_target_ops): Adjust comment. | |
11996 | * target.h (target_ops): Rename unprepare_to_access_memory field | |
11997 | to done_accessing_memory. | |
11998 | (unprepare_to_access_memory): Rename to ... | |
11999 | (done_accessing_memory): ... this. | |
12000 | ||
90d74c30 PA |
12001 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
12002 | ||
12003 | * linux-low.c (linux_prepare_to_access_memory): New. | |
12004 | (linux_unprepare_to_access_memory): New. | |
12005 | (linux_target_ops): Install them. | |
12006 | * server.c (read_memory): Rename to ... | |
12007 | (gdb_read_memory): ... this. Use | |
12008 | prepare_to_access_memory/prepare_to_access_memory. | |
12009 | (write_memory): Rename to ... | |
12010 | (gdb_write_memory): ... this. Use | |
12011 | prepare_to_access_memory/prepare_to_access_memory. | |
12012 | (handle_search_memory_1): Adjust. | |
12013 | (process_serial_event): Adjust. | |
12014 | * target.h (struct target_ops): New fields | |
12015 | prepare_to_access_memory and unprepare_to_access_memory. | |
12016 | (prepare_to_access_memory, unprepare_to_access_memory): New. | |
12017 | * linux-x86-low.c (x86_insert_point, x86_remove_point): Use | |
12018 | prepare_to_access_memory/prepare_to_access_memory. | |
12019 | * nto-low.c (nto_target_ops): Adjust. | |
12020 | * spu-low.c (spu_target_ops): Adjust. | |
12021 | * win32-low.c (win32_target_ops): Adjust. | |
12022 | ||
fd467969 PA |
12023 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
12024 | ||
12025 | * Makefile.in (WARN_CFLAGS): Get it from configure. | |
12026 | (WERROR_CFLAGS): New. | |
12027 | (INTERNAL_CFLAGS): Add WERROR_CFLAGS. | |
12028 | * configure.ac: Introduce --enable-werror, which adds -Werror to | |
12029 | the compiler command line. Enabled by default. Disable with | |
12030 | --disable-werror. Add -Wdeclaration-after-statement | |
12031 | Wpointer-arith and -Wformat-nonliteral to warning flags. | |
12032 | * configure: Regenerate. | |
12033 | ||
331e2f5f PA |
12034 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
12035 | ||
12036 | * mem-break.c [HAVE_MALLOC_H]: Include malloc.h. | |
12037 | ||
e581f2b4 PA |
12038 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
12039 | ||
12040 | * gdbreplay.c (remote_error): New. | |
12041 | (gdbchar): New. | |
12042 | (expect): Use gdbchar. Check for error reading from GDB. | |
12043 | Clarify sync error output. | |
12044 | (play): Check for errors writing to GDB. | |
12045 | * linux-low.c (sigchld_handler): Really ignore `write' errors. | |
12046 | * remote-utils.c (getpkt): Check for errors writing to the remote | |
12047 | descriptor. | |
12048 | ||
3c11dd79 PA |
12049 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
12050 | ||
12051 | * linux-low.c (linux_wait_1): Move non-debugging code out of | |
12052 | `debug_threads' control. | |
12053 | ||
d20a8ad9 PA |
12054 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
12055 | ||
12056 | * linux-low.c (linux_wait_1): Don't set last_status here. | |
12057 | * server.c (push_event, queue_stop_reply_callback): Assert we're | |
12058 | not pushing a TARGET_WAITKIND_IGNORE event. | |
12059 | (start_inferior, start_inferior, attach_inferior, handle_v_cont) | |
12060 | (myresume, handle_target_event): Set the thread's last_resume_kind | |
12061 | and last_status from the target returned status. | |
12062 | ||
964e4306 PA |
12063 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
12064 | ||
12065 | PR threads/10729 | |
12066 | ||
12067 | * linux-x86-low.c (update_debug_registers_callback): New. | |
12068 | (i386_dr_low_set_addr): Use it. | |
12069 | (i386_dr_low_get_addr): New. | |
12070 | (i386_dr_low_set_control): Use update_debug_registers_callback. | |
12071 | (i386_dr_low_get_control): New. | |
12072 | (i386_dr_low_get_status): Adjust. | |
12073 | * linux-low.c (linux_stop_lwp): New. | |
12074 | * linux-low.h (linux_stop_lwp): Declare. | |
12075 | ||
12076 | * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as | |
12077 | argument instead of a i386_debug_reg_state. | |
12078 | (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of | |
12079 | a i386_debug_reg_state. | |
12080 | (i386_insert_aligned_watchpoint): Adjust. | |
12081 | (i386_remove_aligned_watchpoint): Adjust. | |
12082 | (i386_low_stopped_data_address): Read the debug registers from the | |
12083 | inferior instead of from the mirrors. | |
12084 | * i386-low.h (struct i386_debug_reg_state): Extend comment. | |
12085 | (i386_dr_low_get_addr): Declare. | |
12086 | (i386_dr_low_get_control): Declare. | |
12087 | (i386_dr_low_get_status): Change prototype. | |
12088 | ||
12089 | * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals. | |
12090 | (i386_dr_low_get_addr): New. | |
12091 | (i386_dr_low_get_control): New. | |
12092 | (i386_dr_low_get_status): Adjust prototype. Return | |
12093 | dr_status_mirror. | |
12094 | (i386_initial_stuff): Clear dr_status_mirror and | |
12095 | dr_control_mirror. | |
12096 | (i386_get_thread_context): Adjust. | |
12097 | (i386_set_thread_context): Adjust. | |
12098 | (i386_thread_added): Adjust. | |
12099 | ||
5f21a75b PA |
12100 | 2010-08-24 Pedro Alves <pedro@codesourcery.com> |
12101 | ||
12102 | * linux-low.h (linux_thread_area): Delete declaration. | |
12103 | ||
3e4c1235 TS |
12104 | 2010-08-11 Thomas Schwinge <thomas@codesourcery.com> |
12105 | ||
12106 | * linux-low.c (linux_wait_1): Correctly return the ptid of the child | |
12107 | after its termination. | |
12108 | ||
1971b033 PA |
12109 | 2010-08-09 Pedro Alves <pedro@codesourcery.com> |
12110 | ||
12111 | * linux-low.c (gdb_wants_lwp_stopped): Delete. | |
12112 | (gdb_wants_all_stopped): Delete. | |
12113 | (linux_wait_1): Don't call them. | |
12114 | * server.c (handle_v_cont): Tag all threads as want-stopped. | |
12115 | (gdb_wants_thread_stopped): Fix comments. Tag the thread that | |
12116 | stopped as "client-wants-stopped". | |
12117 | ||
310444ac PA |
12118 | 2010-07-31 Pedro Alves <pedro@codesourcery.com> |
12119 | ||
12120 | * Makefile.in (signals_h): New. | |
12121 | (server_h): Depend on it. | |
12122 | (server.o): Don't depend on $(signals_def). | |
12123 | (signals.o): Depend on $(signals_def). | |
12124 | ||
a19cae16 JK |
12125 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
12126 | ||
12127 | * Makefile.in (signals_def): New. | |
12128 | (server_h): Append include/gdb/signals.h and signals_def. | |
12129 | (server.o): Append signals_def. | |
12130 | ||
30d50328 JK |
12131 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
12132 | ||
12133 | * server.c (handle_target_event): Use target_signal_to_host for | |
12134 | resume_info.sig initialization. | |
12135 | * target.h (struct thread_resume) <sig>: New comment. | |
12136 | ||
5c3216e2 OS |
12137 | 2010-07-20 Ozkan Sezer <sezeroz@gmail.com> |
12138 | ||
c6f46ca0 OS |
12139 | * server.c (handle_query): strcpy() the returned string from paddress() |
12140 | instead of sprintf(). | |
5c3216e2 OS |
12141 | * utils.c (paddress): Return phex_nz(). |
12142 | ||
6bd31874 JB |
12143 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
12144 | ||
12145 | * server.c (handle_v_cont): Call mourn_inferior if process | |
12146 | just exited. | |
12147 | (myresume): Likewise. | |
12148 | ||
0fb4aa4b PA |
12149 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
12150 | ||
12151 | Static tracepoints, and integration with UST. | |
12152 | ||
12153 | * configure.ac: Handle --with-ust. substitute ustlibs and ustinc. | |
12154 | * mem-break.c (uninsert_all_breakpoints) | |
12155 | (reinsert_all_breakpoints): New. | |
12156 | * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints): | |
12157 | * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New. | |
12158 | (gdb_agent_ust_loaded, helper_thread_id) | |
12159 | (gdb_agent_helper_thread_id): New macros. | |
12160 | (struct ipa_sym_addresses): Add addr_ust_loaded, | |
12161 | addr_helper_thread_id, addr_cmd_buf. | |
12162 | (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf. | |
12163 | (in_process_agent_loaded_ust): New. | |
12164 | (write_e_ust_not_loaded): New. | |
12165 | (maybe_write_ipa_ust_not_loaded): New. | |
12166 | (struct collect_static_trace_data_action): New. | |
12167 | (enum tracepoint_type) <static_tracepoint>: New. | |
12168 | (struct tracepoint) <handle>: Mention static tracepoints. | |
12169 | (struct static_tracepoint_ctx): New. | |
12170 | (CMD_BUF_SIZE): New. | |
12171 | (add_tracepoint_action): Handle static tracepoint actions. | |
12172 | (unprobe_marker_at): New. | |
12173 | (clear_installed_tracepoints): Handle static tracepoints. | |
12174 | (cmd_qtdp): Handle static tracepoints. | |
12175 | (probe_marker_at): New. | |
12176 | (cmd_qtstart): Handle static tracepoints. | |
12177 | (response_tracepoint): Handle static tracepoints. | |
12178 | (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New. | |
12179 | (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat. | |
12180 | (get_context_regcache): Handle static tracepoints. | |
12181 | (do_action_at_tracepoint): Handle static tracepoint actions. | |
12182 | (traceframe_find_block_type): Handle static trace data blocks. | |
12183 | (traceframe_read_sdata): New. | |
12184 | (download_tracepoints): Download static tracepoint actions. | |
12185 | [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h. | |
12186 | (GDB_PROBE_NAME): New. | |
12187 | (ust_ops): New. | |
12188 | (GET_UST_SYM): New. | |
12189 | (USTF): New. | |
12190 | (dlsym_ust): New. | |
12191 | (ust_marker_to_static_tracepoint): New. | |
12192 | (gdb_probe): New. | |
12193 | (collect_ust_data_at_tracepoint): New. | |
12194 | (gdb_ust_probe): New. | |
12195 | (UNIX_PATH_MAX, SOCK_DIR): New. | |
12196 | (gdb_ust_connect_sync_socket): New. | |
12197 | (resume_thread, stop_thread): New. | |
12198 | (run_inferior_command): New. | |
12199 | (init_named_socket): New. | |
12200 | (gdb_ust_socket_init): New. | |
12201 | (cstr_to_hexstr): New. | |
12202 | (next_st): New. | |
12203 | (first_marker, next_marker): New. | |
12204 | (response_ust_marker): New. | |
12205 | (cmd_qtfstm, cmd_qtsstm): New. | |
12206 | (unprobe_marker_at, probe_marker_at): New. | |
12207 | (cmd_qtstmat, gdb_ust_thread): New. | |
12208 | (gdb_ust_init): New. | |
12209 | (initialize_tracepoint_ftlib): Call gdb_ust_init. | |
12210 | * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h | |
12211 | (ST_REGENTRY): New. | |
12212 | (x86_64_st_collect_regmap): New. | |
12213 | (X86_64_NUM_ST_COLLECT_GREGS): New. | |
12214 | (AMD64_RIP_REGNUM): New. | |
12215 | (supply_static_tracepoint_registers): New. | |
12216 | * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h | |
12217 | (ST_REGENTRY): New. | |
12218 | (i386_st_collect_regmap): New. | |
12219 | (i386_NUM_ST_COLLECT_GREGS): New. | |
12220 | (supply_static_tracepoint_registers): New. | |
12221 | * server.c (handle_query): Handle qXfer:statictrace:read. | |
12222 | <qSupported>: Report support for StaticTracepoints, and | |
12223 | qXfer:statictrace:read features. | |
12224 | * server.h (traceframe_read_sdata) | |
12225 | (supply_static_tracepoint_registers): Declare. | |
12226 | * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex) | |
12227 | (unpack_varlen_hex): Include in IPA build. | |
12228 | * Makefile.in (ustlibs, ustinc): New. | |
12229 | (IPA_OBJS): Add remote-utils-ipa.o. | |
12230 | ($(IPA_LIB)): Link -ldl and -lpthread. | |
12231 | (UST_CFLAGS): New. | |
12232 | (IPAGENT_CFLAGS): Add UST_CFLAGS. | |
12233 | * config.in, configure: Regenerate. | |
12234 | ||
9e4344e5 PA |
12235 | 2010-06-20 Ian Lance Taylor <iant@google.com> |
12236 | Pedro Alves <pedro@codesourcery.com> | |
12237 | ||
12238 | * linux-x86-low.c (always_true): Delete. | |
12239 | (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of | |
12240 | trying to fool the compiler with always_true. | |
12241 | ||
c6beb2cb PA |
12242 | 2010-06-20 Pedro Alves <pedro@codesourcery.com> |
12243 | ||
12244 | * tracepoint.c (condition_true_at_tracepoint): Don't run compiled | |
12245 | conditions in gdbserver. | |
12246 | ||
d2ed6730 UW |
12247 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
12248 | ||
12249 | * spu-low.c (spu_read_memory): Wrap around local store limit. | |
12250 | (spu_write_memory): Likewise. | |
12251 | ||
4e29fb54 PA |
12252 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
12253 | ||
12254 | * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2) | |
12255 | (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with | |
12256 | LONGEST uses. | |
12257 | * server.h (struct emit_ops): Replace int64_t uses with LONGEST | |
12258 | uses. | |
12259 | * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t | |
12260 | uses with LONGEST uses. | |
12261 | ||
6a271cae PA |
12262 | 2010-06-14 Stan Shebs <stan@codesourcery.com> |
12263 | Pedro Alves <pedro@codesourcery.com> | |
12264 | ||
12265 | Bytecode compiler. | |
12266 | ||
12267 | * linux-x86-low.c: Include limits.h. | |
12268 | (add_insns): New. | |
12269 | (always_true): New. | |
12270 | (EMIT_ASM): New. | |
12271 | (EMIT_ASM32): New. | |
12272 | (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add) | |
12273 | (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh) | |
12274 | (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext, | |
12275 | (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or) | |
12276 | (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal, | |
12277 | (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref, | |
12278 | (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address) | |
12279 | (amd64_emit_const, amd64_emit_call, amd64_emit_reg) | |
12280 | (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext) | |
12281 | (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1) | |
12282 | (amd64_emit_void_call_2): New. | |
12283 | (amd64_emit_ops): New. | |
12284 | (i386_emit_prologue, i386_emit_epilogue, i386_emit_add) | |
12285 | (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed) | |
12286 | (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not) | |
12287 | (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor) | |
12288 | (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed) | |
12289 | (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto) | |
12290 | (i386_emit_goto, i386_write_goto_address, i386_emit_const) | |
12291 | (i386_emit_call, i386_emit_reg, i386_emit_pop) | |
12292 | (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap) | |
12293 | (i386_emit_stack_adjust, i386_emit_int_call_1) | |
12294 | (i386_emit_void_call_2): New. | |
12295 | (i386_emit_ops): New. | |
12296 | (x86_emit_ops): New. | |
12297 | (the_low_target): Install x86_emit_ops. | |
12298 | * server.h (struct emit_ops): New. | |
12299 | (get_raw_reg_func_addr): Declare. | |
12300 | (current_insn_ptr, emit_error): Declare. | |
12301 | * tracepoint.c (get_raw_reg, get_trace_state_variable_value) | |
12302 | (set_trace_state_variable_value): New defines. | |
12303 | (struct ipa_sym_addresses): New fields addr_get_raw_reg, | |
12304 | addr_get_trace_state_variable_value and | |
12305 | addr_set_trace_state_variable_value. | |
12306 | (symbol_list): New fields for get_raw_reg, | |
12307 | get_trace_state_variable_value and set_trace_state_variable_value. | |
12308 | (condfn): New typedef. | |
12309 | (struct tracepoint): New field `compiled_cond'. | |
12310 | (do_action_at_tracepoint): Clear compiled_cond. | |
12311 | (get_trace_state_variable_value, set_trace_state_variable_value): | |
12312 | Export in the IPA. | |
12313 | (condition_true_at_tracepoint): If there's a compiled condition, | |
12314 | run that. | |
12315 | (current_insn_ptr, emit_error): New globals. | |
12316 | (struct bytecode_address): New. | |
12317 | (get_raw_reg_func_addr): New. | |
12318 | (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul) | |
12319 | (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext) | |
12320 | (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor) | |
12321 | (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned) | |
12322 | (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const) | |
12323 | (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap) | |
12324 | (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New. | |
12325 | (compile_tracepoint_condition, compile_bytecodes): New. | |
12326 | * target.h (emit_ops): Forward declare. | |
12327 | (struct target_ops): New field emit_ops. | |
12328 | (target_emit_ops): New. | |
12329 | * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New. | |
12330 | * linux-i386-ipa.c (gdb_agent_get_raw_reg): New. | |
12331 | * linux-low.c (linux_emit_ops): New. | |
12332 | (linux_target_ops): Install it. | |
12333 | * linux-low.h (struct linux_target_ops): New field emit_ops. | |
12334 | ||
92b72907 UW |
12335 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
12336 | ||
12337 | * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR. | |
12338 | * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW. | |
12339 | ||
fa593d66 PA |
12340 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
12341 | Stan Shebs <stan@codesourcery.com> | |
12342 | ||
12343 | * Makefile.in (IPA_DEPFILES, extra_libraries): New. | |
12344 | (all): Depend on $(extra_libraries). | |
12345 | (install-only): Install the IPA. | |
12346 | (IPA_OBJS, IPA_LIB): New. | |
12347 | (clean): Remove the IPA lib. | |
12348 | (IPAGENT_CFLAGS): New. | |
12349 | (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o) | |
12350 | (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o) | |
12351 | (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules. | |
12352 | * linux-amd64-ipa.c, linux-i386-ipa.c: New files. | |
12353 | * configure.ac: Check for atomic builtins support in the compiler. | |
12354 | (IPA_DEPFILES, extra_libraries): Define. | |
12355 | * configure.srv (ipa_obj): Add description. | |
12356 | (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define. | |
12357 | (i[34567]86-*-linux*): Set ipa_obj. | |
12358 | (x86_64-*-linux*): Set ipa_obj. | |
12359 | * linux-low.c (stabilizing_threads): New. | |
12360 | (supports_fast_tracepoints): New. | |
12361 | (linux_detach): Stabilize threads before detaching. | |
12362 | (handle_tracepoints): Handle internal tracing breakpoints. Assert | |
12363 | the lwp is either not stabilizing, or is moving out of a jump pad. | |
12364 | (linux_fast_tracepoint_collecting): New. | |
12365 | (maybe_move_out_of_jump_pad): New. | |
12366 | (enqueue_one_deferred_signal): New. | |
12367 | (dequeue_one_deferred_signal): New. | |
12368 | (linux_wait_for_event_1): If moving out of a jump pad, defer | |
12369 | pending signals to later. | |
12370 | (linux_stabilize_threads): New. | |
12371 | (linux_wait_1): Check if threads need moving out of jump pads, and | |
12372 | do it if so. | |
12373 | (stuck_in_jump_pad_callback): New. | |
12374 | (move_out_of_jump_pad_callback): New. | |
12375 | (lwp_running): New. | |
12376 | (linux_resume_one_lwp): Handle moving out of jump pads. | |
12377 | (linux_set_resume_request): Dequeue deferred signals. | |
12378 | (need_step_over_p): Also step over fast tracepoint jumps. | |
12379 | (start_step_over): Also uninsert fast tracepoint jumps. | |
12380 | (finish_step_over): Also reinsert fast tracepoint jumps. | |
12381 | (linux_install_fast_tracepoint_jump): New. | |
12382 | (linux_target_ops): Install linux_stabilize_threads and | |
12383 | linux_install_fast_tracepoint_jump_pad. | |
12384 | * linux-low.h (linux_target_ops) <get_thread_area, | |
12385 | install_fast_tracepoint_jump_pad>: New fields. | |
12386 | (struct lwp_info) <collecting_fast_tracepoint, | |
12387 | pending_signals_to_report, exit_jump_pad_bkpt>: New fields. | |
12388 | (linux_get_thread_area): Declare. | |
12389 | * linux-x86-low.c (jump_insn): New. | |
12390 | (x86_get_thread_area): New. | |
12391 | (append_insns): New. | |
12392 | (push_opcode): New. | |
12393 | (amd64_install_fast_tracepoint_jump_pad): New. | |
12394 | (i386_install_fast_tracepoint_jump_pad): New. | |
12395 | (x86_install_fast_tracepoint_jump_pad): New. | |
12396 | (the_low_target): Install x86_get_thread_area and | |
12397 | x86_install_fast_tracepoint_jump_pad. | |
12398 | * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory. | |
12399 | (struct fast_tracepoint_jump): New. | |
12400 | (fast_tracepoint_jump_insn): New. | |
12401 | (fast_tracepoint_jump_shadow): New. | |
12402 | (find_fast_tracepoint_jump_at): New. | |
12403 | (fast_tracepoint_jump_here): New. | |
12404 | (delete_fast_tracepoint_jump): New. | |
12405 | (set_fast_tracepoint_jump): New. | |
12406 | (uninsert_fast_tracepoint_jumps_at): New. | |
12407 | (reinsert_fast_tracepoint_jumps_at): New. | |
12408 | (set_breakpoint_at): Use write_inferior_memory. | |
12409 | (uninsert_raw_breakpoint): Use write_inferior_memory. | |
12410 | (check_mem_read): Mask out fast tracepoint jumps. | |
12411 | (check_mem_write): Mask out fast tracepoint jumps. | |
12412 | * mem-break.h (struct fast_tracepoint_jump): Forward declare. | |
12413 | (set_fast_tracepoint_jump): Declare. | |
12414 | (delete_fast_tracepoint_jump) | |
12415 | (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at) | |
12416 | (reinsert_fast_tracepoint_jumps_at): Declare. | |
12417 | * regcache.c: Don't compile many functions when building the | |
12418 | in-process agent library. | |
12419 | (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating | |
12420 | the register buffer in the heap. | |
12421 | (free_register_cache): If the register buffer isn't owned by the | |
12422 | regcache, don't free it. | |
12423 | (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate | |
12424 | pre-existing register caches. | |
12425 | * remote-utils.c (convert_int_to_ascii): Constify `from' parameter | |
12426 | type. | |
12427 | (convert_ascii_to_int): : Constify `from' parameter type. | |
12428 | (decode_M_packet, decode_X_packet): Replace the `to' parameter by | |
12429 | a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc | |
12430 | the needed buffer in-place. | |
12431 | (relocate_instruction): New. | |
12432 | * server.c (handle_query) <qSymbols>: If the target supports | |
12433 | tracepoints, give it a chance of looking up symbols. Report | |
12434 | support for fast tracepoints. | |
12435 | (handle_status): Stabilize threads. | |
12436 | (process_serial_event): Adjust. | |
12437 | * server.h (struct fast_tracepoint_jump): Forward declare. | |
12438 | (struct process_info) <fast_tracepoint_jumps>: New field. | |
12439 | (convert_ascii_to_int, convert_int_to_ascii): Adjust. | |
12440 | (decode_X_packet, decode_M_packet): Adjust. | |
12441 | (relocate_instruction): Declare. | |
12442 | (in_process_agent_loaded): Declare. | |
12443 | (tracepoint_look_up_symbols): Declare. | |
12444 | (struct fast_tpoint_collect_status): Declare. | |
12445 | (fast_tracepoint_collecting): Declare. | |
12446 | (force_unlock_trace_buffer): Declare. | |
12447 | (handle_tracepoint_bkpts): Declare. | |
12448 | (initialize_low_tracepoint) | |
12449 | (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare. | |
12450 | * target.h (struct target_ops) <stabilize_threads, | |
12451 | install_fast_tracepoint_jump_pad>: New fields. | |
12452 | (stabilize_threads, install_fast_tracepoint_jump_pad): New. | |
12453 | * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h. | |
12454 | [HAVE_STDINT_H]: Include stdint.h. | |
12455 | (trace_debug_1): Rename to ... | |
12456 | (trace_vdebug): ... this. | |
12457 | (trace_debug): Rename to ... | |
12458 | (trace_debug_1): ... this. Add `level' parameter. | |
12459 | (trace_debug): New. | |
12460 | (ATTR_USED, ATTR_NOINLINE): New. | |
12461 | (IP_AGENT_EXPORT): New. | |
12462 | (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end) | |
12463 | (collecting, gdb_collect, stop_tracing, flush_trace_buffer) | |
12464 | (about_to_request_buffer_space, trace_buffer_is_full) | |
12465 | (stopping_tracepoint, expr_eval_result, error_tracepoint) | |
12466 | (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr) | |
12467 | (trace_buffer_lo, trace_buffer_hi, traceframe_read_count) | |
12468 | (traceframe_write_count, traceframes_created) | |
12469 | (trace_state_variables) | |
12470 | New renaming defines. | |
12471 | (struct ipa_sym_addresses): New. | |
12472 | (STRINGIZE_1, STRINGIZE, IPA_SYM): New. | |
12473 | (symbol_list): New. | |
12474 | (ipa_sym_addrs): New. | |
12475 | (all_tracepoint_symbols_looked_up): New. | |
12476 | (in_process_agent_loaded): New. | |
12477 | (write_e_ipa_not_loaded): New. | |
12478 | (maybe_write_ipa_not_loaded): New. | |
12479 | (tracepoint_look_up_symbols): New. | |
12480 | (debug_threads) [IN_PROCESS_AGENT]: New. | |
12481 | (read_inferior_memory) [IN_PROCESS_AGENT]: New. | |
12482 | (UNKNOWN_SIDE_EFFECTS): New. | |
12483 | (stop_tracing): New. | |
12484 | (flush_trace_buffer): New. | |
12485 | (stop_tracing_bkpt): New. | |
12486 | (flush_trace_buffer_bkpt): New. | |
12487 | (read_inferior_integer): New. | |
12488 | (read_inferior_uinteger): New. | |
12489 | (read_inferior_data_pointer): New. | |
12490 | (write_inferior_data_pointer): New. | |
12491 | (write_inferior_integer): New. | |
12492 | (write_inferior_uinteger): New. | |
12493 | (struct collect_static_trace_data_action): Delete. | |
12494 | (enum tracepoint_type): New. | |
12495 | (struct tracepoint) <type>: New field `type'. | |
43aaf8b6 PA |
12496 | <actions_str, step_actions, step_actions_str>: Only include in |
12497 | GDBserver. | |
fa593d66 PA |
12498 | <orig_size, obj_addr_on_target, adjusted_insn_addr> |
12499 | <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields. | |
12500 | (tracepoints): Use IP_AGENT_EXPORT. | |
12501 | (last_tracepoint): Don't include in the IPA. | |
12502 | (stopping_tracepoint): Use IP_AGENT_EXPORT. | |
12503 | (trace_buffer_is_full): Use IP_AGENT_EXPORT. | |
12504 | (alloced_trace_state_variables): New. | |
12505 | (trace_state_variables): Use IP_AGENT_EXPORT. | |
12506 | (traceframe_t): Delete unused variable. | |
12507 | (circular_trace_buffer): Don't include in the IPA. | |
12508 | (trace_buffer_start): Delete. | |
12509 | (struct trace_buffer_control): New. | |
12510 | (trace_buffer_free): Delete. | |
12511 | (struct ipa_trace_buffer_control): New. | |
12512 | (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV) | |
12513 | (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT): | |
12514 | New. | |
12515 | (trace_buffer_ctrl): New. | |
12516 | (TRACE_BUFFER_CTRL_CURR): New. | |
12517 | (trace_buffer_start, trace_buffer_free, trace_buffer_end_free): | |
12518 | Reimplement as macros. | |
12519 | (trace_buffer_wrap): Delete. | |
12520 | (traceframe_write_count, traceframe_read_count) | |
12521 | (traceframes_created, tracing): Use IP_AGENT_EXPORT. | |
12522 | (struct tracepoint_hit_ctx) <type>: New field. | |
12523 | (struct fast_tracepoint_ctx): New. | |
12524 | (memory_barrier): New. | |
12525 | (cmpxchg): New. | |
12526 | (record_tracepoint_error): Update atomically in the IPA. | |
12527 | (clear_inferior_trace_buffer): New. | |
12528 | (about_to_request_buffer_space): New. | |
12529 | (trace_buffer_alloc): Handle GDBserver and inferior simulatenous | |
12530 | updating the same buffer. | |
12531 | (add_tracepoint): Default the tracepoint's type to trap | |
12532 | tracepoint, and orig_size to -1. | |
12533 | (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated | |
12534 | internal variables. | |
12535 | (create_trace_state_variable): New parameter `gdb'. Handle it. | |
12536 | (clear_installed_tracepoints): Clear fast tracepoint jumps. | |
12537 | (cmd_qtdp): Handle fast tracepoints. | |
12538 | (cmd_qtdv): Adjust. | |
12539 | (max_jump_pad_size): New. | |
12540 | (gdb_jump_pad_head): New. | |
12541 | (get_jump_space_head): New. | |
12542 | (claim_jump_space): New. | |
12543 | (sort_tracepoints): New. | |
12544 | (MAX_JUMP_SIZE): New. | |
12545 | (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the | |
12546 | IPA. | |
12547 | (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected | |
12548 | support. Upload fast traceframes, and delete internal IPA | |
12549 | breakpoints. | |
12550 | (stop_tracing_handler): New. | |
12551 | (flush_trace_buffer_handler): New. | |
12552 | (cmd_qtstop): Upload fast tracepoints. | |
12553 | (response_tracepoint): Handle fast tracepoints. | |
12554 | (tracepoint_finished_step): Upload fast traceframes. Set the | |
12555 | tracepoint hit context's tracepoint type. | |
12556 | (handle_tracepoint_bkpts): New. | |
12557 | (tracepoint_was_hit): Set the tracepoint hit context's tracepoint | |
12558 | type. Add comment about fast tracepoints. | |
12559 | (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the | |
12560 | non-existing action_str field. | |
12561 | (get_context_regcache): Handle fast tracepoints. | |
12562 | (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC | |
12563 | to the regcache. | |
12564 | (fast_tracepoint_from_jump_pad_address): New. | |
12565 | (fast_tracepoint_from_ipa_tpoint_address): New. | |
12566 | (collecting_t): New. | |
12567 | (force_unlock_trace_buffer): New. | |
12568 | (fast_tracepoint_collecting): New. | |
12569 | (collecting): New. | |
12570 | (gdb_collect): New. | |
12571 | (write_inferior_data_ptr): New. | |
12572 | (target_tp_heap): New. | |
12573 | (target_malloc): New. | |
12574 | (download_agent_expr): New. | |
12575 | (UALIGN): New. | |
12576 | (download_tracepoints): New. | |
12577 | (download_trace_state_variables): New. | |
12578 | (upload_fast_traceframes): New. | |
12579 | (IPA_FIRST_TRACEFRAME): New. | |
12580 | (IPA_NEXT_TRACEFRAME_1): New. | |
12581 | (IPA_NEXT_TRACEFRAME): New. | |
12582 | [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h. | |
12583 | [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer) | |
12584 | (gdb_jump_pad_buffer_end): New. | |
12585 | [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New. | |
12586 | (initialize_tracepoint): Adjust. | |
12587 | [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch | |
12588 | buffer. Initialize the low module. | |
12589 | * utils.c (PREFIX, TOOLNAME): New. | |
12590 | (malloc_failure): Use PREFIX. | |
12591 | (error): In the IPA, an error causes an exit. | |
12592 | (fatal, warning): Use PREFIX. | |
12593 | (internal_error): Use TOOLNAME. | |
12594 | (NUMCELLS): Increase to 10. | |
12595 | * configure, config.in: Regenerate. | |
12596 | ||
d149dd1d PA |
12597 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
12598 | ||
12599 | * server.c (handle_query) <qSupported>: Do two passes over the | |
12600 | qSupported string to avoid nesting strtok. | |
12601 | ||
f6528abd JK |
12602 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
12603 | ||
12604 | * Makefile.in (SFILES): Add $(srcdir)/proc-service.list. | |
12605 | (CDEPS): New. | |
12606 | * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also | |
12607 | -Wl,--dynamic-list. | |
12608 | * configure: Regenerate. | |
12609 | * proc-service.list: New. | |
12610 | ||
ca2a87a0 JK |
12611 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
12612 | ||
12613 | * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT. | |
12614 | New comment. | |
12615 | ||
363a6e9f OS |
12616 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
12617 | ||
12618 | * gdbreplay.c (remote_open): Check error return from socket() call by | |
12619 | its equality to -1 not by it being negative. | |
12620 | * remote-utils.c (remote_open): Likewise. | |
12621 | ||
d23b6cb1 PA |
12622 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
12623 | ||
12624 | * config.h: Regenerate. | |
12625 | ||
28d3cf85 MK |
12626 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
12627 | ||
12628 | * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel | |
12629 | doesn't provide PTRACE_GET_THREAD_AREA. | |
12630 | ||
fea36a59 MK |
12631 | 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com> |
12632 | ||
12633 | * linux-m68k-low.c: Include <asm/ptrace.h> | |
12634 | (ps_get_thread_area): Implement. | |
12635 | ||
24b066ba DE |
12636 | 2010-05-03 Doug Evans <dje@google.com> |
12637 | ||
12638 | * event-loop.c (struct callback_event): New struct. | |
12639 | (callback_list): New global. | |
12640 | (append_callback_event, delete_callback_event): New functions. | |
12641 | (process_callback): New function. | |
12642 | (start_event_loop): Call it. | |
12643 | * remote-utils.c (NOT_SCHEDULED): Define. | |
12644 | (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals, | |
12645 | moved out of readchar. | |
12646 | (readchar): Rewrite. Call reschedule before returning. | |
12647 | (reset_readchar): New function. | |
12648 | (remote_close): Call it. | |
12649 | (process_remaining, reschedule): New functions. | |
12650 | * server.h (callback_handler_func): New typedef. | |
12651 | (append_callback_event, delete_callback_event): Declare. | |
12652 | ||
9836d6ea PA |
12653 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
12654 | ||
12655 | * proc-service.c (ps_pglobal_lookup): Use | |
12656 | thread_db_look_up_one_symbol. | |
12657 | * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb' | |
12658 | parameter. Use it instead of all_symbols_looked_up. | |
12659 | * server.h (struct process_info) <all_symbols_looked_up>: Delete | |
12660 | field. | |
12661 | (all_symbols_looked_up): Don't declare. | |
12662 | (look_up_one_symbol): Add new `may_ask_gdb' parameter. | |
12663 | * thread-db.c (struct thread_db) <all_symbols_looked_up>: New | |
12664 | field. | |
12665 | (thread_db_look_up_symbols): Adjust call to look_up_one_symbol. | |
12666 | Set all_symbols_looked_up here. | |
12667 | (thread_db_look_up_one_symbol): New. | |
12668 | (thread_db_get_tls_address): Adjust. | |
12669 | (thread_db_load_search, try_thread_db_load_1): Always allocate the | |
12670 | thread_db object on the heap, and tentatively set it in the | |
12671 | process structure. | |
12672 | (thread_db_init): Don't set all_symbols_looked_up here. | |
12673 | * linux-low.h (thread_db_look_up_one_symbol): Declare. | |
12674 | ||
7984d532 PA |
12675 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
12676 | ||
12677 | * linux-low.c (linux_kill, linux_detach): Adjust. | |
12678 | (status_pending_p_callback): Remove redundant statement. Check | |
12679 | for !TARGET_WAITIKIND_IGNORE, instead of | |
12680 | TARGET_WAITKIND_STOPPED. | |
12681 | (handle_tracepoints): Make sure LWP is locked. Adjust. | |
12682 | (linux_wait_for_event_1): Adjust. | |
12683 | (linux_cancel_breakpoints): New. | |
12684 | (unsuspend_one_lwp): New. | |
12685 | (unsuspend_all_lwps): New. | |
12686 | (linux_wait_1): If finishing a step-over, unsuspend all lwps. | |
12687 | (send_sigstop_callback): Change return type to int, add new | |
12688 | `except' parameter and handle it. | |
12689 | (suspend_and_send_sigstop_callback): New. | |
12690 | (stop_all_lwps): Add new `suspend' and `expect' parameters, and | |
12691 | pass them down. If SUSPEND, also increment the lwp's suspend | |
12692 | count. | |
12693 | (linux_resume_one_lwp): Add notice about resuming a suspended LWP. | |
12694 | (need_step_over_p): Don't consider suspended LWPs. | |
12695 | (start_step_over): Adjust. | |
12696 | (proceed_one_lwp): Change return type to int, add new `except' | |
12697 | parameter and handle it. | |
12698 | (unsuspend_and_proceed_one_lwp): New. | |
12699 | (proceed_all_lwps): Use find_inferior instead of | |
12700 | for_each_inferior. | |
12701 | (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them | |
12702 | also decrement the suspend count of LWPs. Pass `except' down, | |
12703 | instead of hacking its suspend count. | |
12704 | (linux_pause_all): Add `freeze' parameter. Adjust. | |
12705 | (linux_unpause_all): New. | |
12706 | (linux_target_ops): Install linux_unpause_all. | |
12707 | * server.c (handle_status): Adjust. | |
12708 | * target.h (struct target_ops): New fields `unpause_all' and | |
12709 | `cancel_breakpoints'. Add new parameter to `pause_all'. | |
12710 | (pause_all): Add new `freeze' parameter. | |
12711 | (unpause_all): New. | |
12712 | (cancel_breakpoints): New. | |
12713 | * tracepoint.c (clear_installed_tracepoints): Pause threads, and | |
12714 | cancel breakpoints. | |
12715 | (cmd_qtstart): Pause threads. | |
12716 | (stop_tracing): Pause threads, and cancel breakpoints. | |
12717 | * win32-low.c (win32_target_ops): Adjust. | |
12718 | ||
e471f25b PA |
12719 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
12720 | ||
12721 | * linux-low.c (linux_wait_for_event_1): Move passing the signal to | |
12722 | the inferior right away from here... | |
12723 | (linux_wait_1): ... to here, and adjust to check the thread's | |
12724 | last_resume_kind instead of the lwp's step or stop_expected flags. | |
12725 | ||
1915ef4f PA |
12726 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
12727 | ||
12728 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
12729 | ||
f9e39928 PA |
12730 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
12731 | ||
12732 | * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped. | |
12733 | (linux_kill): Stop all lwps here. Don't delete the main lwp here. | |
12734 | (linux_detach_one_lwp): Assume the lwp is stopped. | |
12735 | (any_thread_of): Delete. | |
12736 | (linux_detach): Stop all lwps here. Don't blindly delete all | |
12737 | breakpoints. | |
12738 | (delete_lwp_callback): New. | |
12739 | (linux_mourn): Delete all lwps of the process that is gone. | |
12740 | (linux_wait_1): Don't delete the last lwp of the process here. | |
12741 | * mem-break.h (mark_breakpoints_out): Declare. | |
12742 | * mem-break.c (mark_breakpoints_out): New. | |
12743 | (free_all_breakpoints): Use it. | |
12744 | * server.c (handle_target_event): If the process is gone, mark | |
12745 | breakpoints out. | |
12746 | * thread-db.c (struct thread_db) <create_bp>: New field. | |
12747 | (thread_db_enable_reporting): Fix prototype. Store a thread event | |
12748 | breakpoint reference in the thread_db struct. | |
12749 | (thread_db_load_search): Clear the thread_db object. | |
12750 | (try_thread_db_load_1): Ditto. | |
12751 | (switch_to_process): New. | |
12752 | (disable_thread_event_reporting): Use it. | |
12753 | (remove_thread_event_breakpoints): New. | |
12754 | (thread_db_detach, thread_db_mourn): Use it. | |
12755 | ||
1e7fc18c PA |
12756 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
12757 | ||
12758 | * linux-low.c (linux_enable_event_reporting): New. | |
12759 | (linux_wait_for_event_1, handle_extended_wait): Use it. | |
12760 | ||
02fc4de7 PA |
12761 | 2010-04-30 Pedro Alves <pedro@codesourcery.com> |
12762 | ||
12763 | * linux-low.c (linux_kill_one_lwp, linux_kill) | |
12764 | (linux_detach_one_lwp): Adjust to send_sigstop interface change. | |
12765 | (send_sigstop): Take an lwp_info as parameter instead. Queue a | |
12766 | SIGSTOP even if the LWP is stopped. | |
12767 | (send_sigstop_callback): New. | |
12768 | (stop_all_lwps): Use send_sigstop_callback instead. | |
12769 | (linux_resume_one_thread): Adjust. | |
12770 | (proceed_one_lwp): Still proceed an LWP that the client has | |
12771 | requested to stop, if we haven't reported it as stopped yet. Make | |
12772 | sure that LWPs the client want stopped, have a pending SIGSTOP. | |
12773 | ||
bc3b5632 DE |
12774 | 2010-04-26 Doug Evans <dje@google.com> |
12775 | ||
ae1ada35 DE |
12776 | * server.c (handle_general_set): Make static. |
12777 | ||
bc3b5632 DE |
12778 | * remote-utils.c (putpkt_binary_1): Call readchar instead of read. |
12779 | Print received char after testing for error/eof instead of before. | |
12780 | (input_interrupt): Tweak comment. | |
12781 | ||
65730243 DE |
12782 | 2010-04-23 Doug Evans <dje@google.com> |
12783 | ||
12784 | * server.c (start_inferior): Print inferior argv if --debug. | |
12785 | ||
a8ae7dc0 AR |
12786 | 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com> |
12787 | ||
12788 | * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. | |
12789 | * nto-x86-low.c: Include server.h | |
12790 | ||
1c07cc19 PM |
12791 | 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr> |
12792 | ||
12793 | * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to | |
12794 | be consistent with other sources of this directory. | |
12795 | (init_registers_amd64): Correct name of source file of this function | |
12796 | in the comment. | |
12797 | ||
e0a61e09 PM |
12798 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
12799 | ||
12800 | * configure.srv (x86_64-*-mingw*): New configuration for Windows | |
12801 | 64-bit executables. | |
12802 | ||
54709339 PM |
12803 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
12804 | ||
12805 | * win32-i386-low.c: Add 64-bit support. | |
12806 | (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. | |
12807 | (init_registers_amd64): Declare. | |
12808 | (mappings): Add 64-bit version of array. | |
12809 | (init_windows_x86): New function. | |
12810 | (the_low_target): Change init_arch field to init_windows_x86. | |
12811 | ||
e8f0053d PM |
12812 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
12813 | ||
12814 | * win32-low.c: Adapt to support also 64-bit architecture. | |
12815 | (child_xfer_memory): Use uintptr_t type for local variable `addr'. | |
12816 | (get_image_name): Use SIZE_T type for local variable `done'. | |
12817 | (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. | |
12818 | (toolhelp_get_dll_name): Idem. | |
12819 | (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. | |
12820 | Use uintptr_t typecast to avoid warning. | |
12821 | (handle_unload_dll): Use uintptr_t typecast to avoid warning. | |
12822 | (handle_exception): Use phex_nz to avoid warning. | |
12823 | (win32_wait): Remove unused local variable `process'. | |
12824 | ||
c481e77e PM |
12825 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
12826 | ||
12827 | * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by | |
12828 | `amd64-avx.o'. | |
12829 | ||
12ea4b69 PM |
12830 | 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr> |
12831 | ||
12832 | * configure.ac: Use `ws2_32' library for srv_mingw. | |
12833 | * configure: Regenerate. | |
12834 | * gdbreplay.c: Include winsock2.h instead of winsock.h. | |
12835 | * remote-utils.c: Likewise. | |
12836 | ||
f6d1620c L |
12837 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
12838 | ||
12839 | * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only | |
12840 | if __x86_64__ is defined. | |
12841 | ||
8e642873 PM |
12842 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
12843 | ||
12844 | * configure: Regenerate. | |
12845 | ||
711e434b PM |
12846 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
12847 | ||
12848 | * server.c (handle_query): Handle 'qGetTIBAddr' query. | |
12849 | * target.h (target_ops): New get_tib_address field. | |
12850 | * win32-low.h (win32_thread_info): Add thread_local_base field. | |
12851 | * win32-low.c (child_add_thread): Add tlb argument. | |
12852 | Set thread_local_base field to TLB. | |
12853 | (get_child_debug_event): Adapt to child_add_thread change. | |
12854 | (win32_get_tib_address): New function. | |
12855 | (win32_target_ops): Set get_tib_address field to | |
12856 | win32_get_tib_address. | |
12857 | * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. | |
12858 | ||
505106cd PA |
12859 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
12860 | ||
505106cd PA |
12861 | * linux-low.c (linux_mourn): Also remove the process. |
12862 | * server.c (handle_target_event): Don't remove the process here. | |
12863 | * nto-low.c (nto_mourn): New. | |
12864 | (nto_target_ops): Install it. | |
12865 | * spu-low.c (spu_mourn): New. | |
12866 | (spu_target_ops): Install it. | |
12867 | * win32-low.c (win32_mourn): New. | |
12868 | (win32_target_ops): Install it. | |
12869 | ||
e8470a06 PA |
12870 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
12871 | ||
12872 | * server.h (buffer_xml_printf): Remove redundant `;'. | |
12873 | ||
45ba0d02 PA |
12874 | 2010-04-12 Pedro Alves <pedro@codesourcery.com> |
12875 | ||
12876 | * regcache.c (set_register_cache): Invalidate regcaches before | |
12877 | changing the register cache layout. | |
12878 | (regcache_invalidate_one): Allow a NULL regcache. | |
12879 | * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate | |
12880 | regcaches before changing the register cache layout or the target | |
12881 | regsets. | |
12882 | ||
59e04013 L |
12883 | 2010-04-12 H.J. Lu <hongjiu.lu@intel.com> |
12884 | ||
12885 | * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused | |
12886 | variable warning on Linux/x86-64. | |
12887 | ||
8336d594 PA |
12888 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
12889 | ||
12890 | GDBserver disconnected tracing support. | |
12891 | ||
12892 | * linux-low.c (linux_remove_process): Delete. | |
12893 | (add_lwp): Don't set last_resume_kind here. | |
12894 | (linux_kill): Use `mourn'. | |
12895 | (linux_detach): Use `thread_db_detach', and `mourn'. | |
12896 | (linux_mourn): New. | |
12897 | (linux_attach_lwp_1): Adjust comment. | |
12898 | (linux_attach): last_resume_kind moved the thread_info; adjust. | |
12899 | (status_pending_p_callback): Adjust. | |
12900 | (linux_wait_for_event_1): Adjust. | |
12901 | (count_events_callback, select_singlestep_lwp_callback) | |
12902 | (select_event_lwp_callback, cancel_breakpoints_callback) | |
12903 | (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) | |
12904 | (proceed_one_lwp): Adjust. | |
12905 | (linux_async): Add debug output. | |
12906 | (linux_thread_stopped): New. | |
12907 | (linux_pause_all): New. | |
12908 | (linux_target_ops): Install linux_mourn, linux_thread_stopped and | |
12909 | linux_pause_all. | |
12910 | * linux-low.h (struct lwp_info): Delete last_resume_kind field. | |
12911 | (thread_db_free): Delete declaration. | |
12912 | (thread_db_detach, thread_db_mourn): Declare. | |
12913 | * thread-db.c (thread_db_init): Use thread_db_mourn. | |
12914 | (thread_db_free): Delete, split in two. | |
12915 | (disable_thread_event_reporting): New. | |
12916 | (thread_db_detach): New. | |
12917 | (thread_db_mourn): New. | |
12918 | ||
12919 | * server.h (struct thread_info) <last_resume_kind>: New field. | |
12920 | <attached>: Add comment. | |
12921 | <gdb_detached>: New field. | |
12922 | (handler_func): Change return type to int. | |
12923 | (handle_serial_event, handle_target_event): Ditto. | |
12924 | (gdb_connected): Declare. | |
12925 | (tracing): Delete. | |
12926 | (disconnected_tracing): Declare. | |
12927 | (stop_tracing): Declare. | |
12928 | ||
12929 | * server.c (handle_query) <qSupported>: Report support for | |
12930 | disconnected tracing. | |
12931 | (queue_stop_reply_callback): Account for running threads. | |
12932 | (gdb_wants_thread_stopped): New. | |
12933 | (gdb_wants_all_threads_stopped): New. | |
12934 | (gdb_reattached_process): New. | |
12935 | (handle_status): Clear the `gdb_detached' flag of all processes. | |
12936 | In all-stop, stop all threads. | |
12937 | (main): Be sure to leave tfind mode. Handle disconnected tracing. | |
12938 | (process_serial_event): If the remote connection breaks, or if an | |
12939 | exit was forced with "monitor exit", force an event loop exit. | |
12940 | Handle disconnected tracing on detach. | |
12941 | (handle_serial_event): Adjust. | |
12942 | (handle_target_event): If GDB isn't connected, forward events back | |
12943 | to the inferior, unless the last process exited, in which case, | |
12944 | exit gdbserver. Adjust interface. | |
12945 | ||
12946 | * remote-utils.c (remote_open): Don't block in accept. Instead | |
12947 | register an event loop source on the listen socket file | |
12948 | descriptor. Refactor bits into ... | |
12949 | (listen_desc): ... this new global. | |
12950 | (gdb_connected): ... this new function. | |
12951 | (enable_async_notification): ... this new function. | |
12952 | (handle_accept_event): ... this new function. | |
12953 | (remote_close): Clear remote_desc. | |
12954 | ||
12955 | * inferiors.c (add_thread): Set the new thread's last_resume_kind. | |
12956 | ||
12957 | * target.h (struct target_ops) <mourn, thread_stopped, pause_all>: | |
12958 | New fields. | |
12959 | (mourn_inferior): Define. | |
12960 | (target_process_qsupported): Avoid the dangling else problem. | |
12961 | (thread_stopped): Define. | |
12962 | (pause_all): Define. | |
12963 | (target_waitstatus_to_string): Declare. | |
12964 | * target.c (target_waitstatus_to_string): New. | |
12965 | ||
12966 | * tracepoint.c (tracing): Make extern. | |
12967 | (disconnected_tracing): New. | |
12968 | (stop_tracing): Make extern. Handle tracing stops due to GDB | |
12969 | disconnecting. | |
12970 | (cmd_qtdisconnected): New. | |
12971 | (cmd_qtstatus): Report disconnected tracing status in trace reply. | |
12972 | (handle_tracepoint_general_set): Handle QTDisconnected. | |
12973 | ||
12974 | * event-loop.c (event_handler_func): Change return type to int. | |
12975 | (process_event): Bail out if the event handler wants the event | |
12976 | loop to stop. | |
12977 | (handle_file_event): Ditto. | |
12978 | (start_event_loop): Bail out if the event handler wants the event | |
12979 | loop to stop. | |
12980 | ||
12981 | * nto-low.c (nto_target_ops): Adjust. | |
12982 | * spu-low.c (spu_wait): Don't remove the process here. | |
12983 | (spu_target_ops): Adjust. | |
12984 | * win32-low.c (win32_wait): Don't remove the process here. | |
12985 | (win32_target_ops): Adjust. | |
12986 | ||
5d267c4c PA |
12987 | 2010-04-11 Pedro Alves <pedro@codesourcery.com> |
12988 | ||
12989 | * regcache.c (realloc_register_cache): Invalidate inferior's | |
12990 | regcache before recreating it. | |
12991 | ||
623ccd72 PA |
12992 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
12993 | ||
12994 | * tracepoint.c (cmd_qtstatus): Report trace buffer circularity. | |
12995 | ||
219f2f23 PA |
12996 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
12997 | Pedro Alves <pedro@codesourcery.com> | |
12998 | ||
12999 | * server.h (LONGEST): New. | |
13000 | (struct thread_info) <while_stepping>: New field. | |
13001 | (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz): | |
13002 | Declare. | |
13003 | (initialize_tracepoint, handle_tracepoint_general_set) | |
13004 | (handle_tracepoint_query, tracepoint_finished_step) | |
13005 | (tracepoint_was_hit, release_while_stepping_state_list): | |
13006 | (current_traceframe): Declare. | |
13007 | * server.c (handle_general_set): Handle tracepoint packets. | |
13008 | (read_memory): New. | |
13009 | (write_memory): New. | |
13010 | (handle_search_memory_1): Use read_memory. | |
13011 | (handle_query): Report support for conditional tracepoints, trace | |
13012 | state variables, and tracepoint sources. Handle tracepoint | |
13013 | queries. | |
13014 | (main): Initialize the tracepoints module. | |
13015 | (process_serial_event): Handle traceframe reads/writes. | |
13016 | ||
13017 | * linux-low.c (handle_tracepoints): New. | |
13018 | (linux_wait_1): Call it. | |
13019 | (linux_resume_one_lwp): Handle while-stepping. | |
13020 | (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New. | |
13021 | (linux_target_ops): Install them. | |
13022 | * linux-low.h (struct linux_target_ops) <supports_tracepoints>: | |
13023 | New field. | |
13024 | * linux-x86-low.c (x86_supports_tracepoints): New. | |
13025 | (the_low_target). Install it. | |
13026 | ||
13027 | * mem-break.h (delete_breakpoint): Declare. | |
13028 | * mem-break.c (delete_breakpoint): Make external. | |
13029 | ||
13030 | * target.h (struct target_ops): Add `supports_tracepoints', | |
13031 | `read_pc', and `write_pc' fields. | |
13032 | (target_supports_tracepoints): Define. | |
13033 | * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two) | |
13034 | (phex_nz): New. | |
13035 | ||
13036 | * regcache.h (struct regcache) <registers_owned>: New field. | |
13037 | (init_register_cache, regcache_cpy): Declare. | |
13038 | (regcache_read_pc, regcache_write_pc): Declare. | |
13039 | (register_cache_size): Declare. | |
13040 | (supply_regblock): Declare. | |
13041 | * regcache.c (init_register_cache): New. | |
13042 | (new_register_cache): Use it. | |
13043 | (regcache_cpy): New. | |
13044 | (register_cache_size): New. | |
13045 | (supply_regblock): New. | |
13046 | (regcache_read_pc, regcache_write_pc): New. | |
889bf7c5 | 13047 | |
219f2f23 PA |
13048 | * tracepoint.c: New. |
13049 | ||
13050 | * Makefile.in (OBS): Add tracepoint.o. | |
13051 | (tracepoint.o): New rule. | |
13052 | ||
3a13a53b L |
13053 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
13054 | ||
13055 | * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c. | |
13056 | (i386-mmx.o): New. | |
13057 | (i386-mmx.c): Likewise. | |
13058 | (i386-mmx-linux.o): Likewise. | |
13059 | (i386-mmx-linux.c): Likewise. | |
13060 | ||
13061 | * configure.srv (srv_i386_regobj): Add i386-mmx.o. | |
13062 | (srv_i386_linux_regobj): Add i386-mmx-linux.o. | |
13063 | (srv_i386_xmlfiles): Add i386/i386-mmx.xml. | |
13064 | (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml. | |
13065 | ||
13066 | * linux-x86-low.c (init_registers_i386_mmx_linux): New. | |
13067 | (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux | |
13068 | and return if ptrace PTRACE_GETFPXREGS failed in 32bit. | |
13069 | ||
1570b33e L |
13070 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
13071 | ||
13072 | * Makefile.in (clean): Updated. | |
13073 | (i386-avx.o): New. | |
13074 | (i386-avx.c): Likewise. | |
13075 | (i386-avx-linux.o): Likewise. | |
13076 | (i386-avx-linux.c): Likewise. | |
13077 | (amd64-avx.o): Likewise. | |
13078 | (amd64-avx.c): Likewise. | |
13079 | (amd64-avx-linux.o): Likewise. | |
13080 | (amd64-avx-linux.c): Likewise. | |
13081 | ||
13082 | * configure.srv (srv_i386_regobj): Add i386-avx.o. | |
13083 | (srv_i386_linux_regobj): Add i386-avx-linux.o. | |
13084 | (srv_amd64_regobj): Add amd64-avx.o. | |
13085 | (srv_amd64_linux_regobj): Add amd64-avx-linux.o. | |
13086 | (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml. | |
13087 | (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml. | |
13088 | (srv_i386_xmlfiles): Add i386/i386-avx.xml. | |
13089 | (srv_amd64_xmlfiles): Add i386/amd64-avx.xml. | |
13090 | (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml. | |
13091 | (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml. | |
13092 | ||
13093 | * i387-fp.c: Include "i386-xstate.h". | |
13094 | (i387_xsave): New. | |
13095 | (i387_cache_to_xsave): Likewise. | |
13096 | (i387_xsave_to_cache): Likewise. | |
13097 | (x86_xcr0): Likewise. | |
13098 | ||
13099 | * i387-fp.h (i387_cache_to_xsave): Likewise. | |
13100 | (i387_xsave_to_cache): Likewise. | |
13101 | (x86_xcr0): Likewise. | |
13102 | ||
13103 | * linux-arm-low.c (target_regsets): Initialize nt_type to 0. | |
13104 | * linux-crisv32-low.c (target_regsets): Likewise. | |
13105 | * linux-m68k-low.c (target_regsets): Likewise. | |
13106 | * linux-mips-low.c (target_regsets): Likewise. | |
13107 | * linux-ppc-low.c (target_regsets): Likewise. | |
13108 | * linux-s390-low.c (target_regsets): Likewise. | |
13109 | * linux-sh-low.c (target_regsets): Likewise. | |
13110 | * linux-sparc-low.c (target_regsets): Likewise. | |
13111 | * linux-xtensa-low.c (target_regsets): Likewise. | |
13112 | ||
13113 | * linux-low.c: Include <sys/uio.h>. | |
13114 | (regsets_fetch_inferior_registers): Support nt_type. | |
13115 | (regsets_store_inferior_registers): Likewise. | |
13116 | (linux_process_qsupported): New. | |
13117 | (linux_target_ops): Add linux_process_qsupported. | |
13118 | ||
13119 | * linux-low.h (regset_info): Add nt_type. | |
13120 | (linux_target_ops): Add process_qsupported. | |
13121 | ||
13122 | * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h" | |
13123 | and <sys/uio.h>. | |
13124 | (init_registers_i386_avx_linux): New. | |
13125 | (init_registers_amd64_avx_linux): Likewise. | |
13126 | (xmltarget_i386_linux_no_xml): Likewise. | |
13127 | (xmltarget_amd64_linux_no_xml): Likewise. | |
13128 | (PTRACE_GETREGSET): Likewise. | |
13129 | (PTRACE_SETREGSET): Likewise. | |
13130 | (x86_fill_xstateregset): Likewise. | |
13131 | (x86_store_xstateregset): Likewise. | |
13132 | (use_xml): Likewise. | |
13133 | (x86_linux_update_xmltarget): Likewise. | |
13134 | (x86_linux_process_qsupported): Likewise. | |
13135 | (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type. | |
13136 | (x86_arch_setup): Don't call init_registers_amd64_linux nor | |
13137 | init_registers_i386_linux here. Call | |
13138 | x86_linux_update_xmltarget. | |
13139 | (the_low_target): Add x86_linux_process_qsupported. | |
13140 | ||
13141 | * server.c (handle_query): Call target_process_qsupported. | |
13142 | ||
13143 | * target.h (target_ops): Add process_qsupported. | |
13144 | (target_process_qsupported): New. | |
13145 | ||
fc7238bb PA |
13146 | 2010-04-03 Pedro Alves <pedro@codesourcery.com> |
13147 | ||
13148 | * inferiors.c (add_thread): Set last_status kind to | |
13149 | TARGET_WAITKIND_IGNORE. | |
13150 | * linux-low.c (cancel_breakpoint): Remove unnecessary regcache | |
13151 | fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls. | |
13152 | (linux_wait_1): Move `thread' local definition to block that uses | |
13153 | it. Don't NULL initialize `event_child'. | |
13154 | (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls. | |
13155 | Alway set the thread's last_status to TARGET_WAITKIND_IGNORE. | |
13156 | * linux-x86-low.c (x86_breakpoint_at): Read raw memory. | |
13157 | ||
bdabb078 PA |
13158 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
13159 | ||
13160 | * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with | |
13161 | an extended waitstatus, or by a watchpoint. | |
13162 | (cancel_breakpoints_callback): Don't cancel a breakpoint if the | |
13163 | thread was stepping or has been stopped by a watchpoint. | |
13164 | ||
d3bbe7a0 PA |
13165 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
13166 | ||
13167 | * mem-break.c (struct raw_breakpoint): New field shlib_disabled. | |
13168 | (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top | |
13169 | of another, then delete the previous, and validate all | |
13170 | breakpoints. | |
13171 | (validate_inserted_breakpoint): New. | |
13172 | (delete_disabled_breakpoints): New. | |
13173 | (validate_breakpoints): New. | |
13174 | (check_mem_read): Validate breakpoints before trusting their | |
13175 | shadow. Delete disabled breakpoints. | |
13176 | (check_mem_write): Validate breakpoints before trusting they | |
13177 | should be inserted. Delete disabled breakpoints. | |
13178 | * mem-break.h (validate_breakpoints): | |
13179 | * server.c (handle_query): Validate breakpoints when we see a | |
13180 | qSymbol query. | |
13181 | ||
8b07ae33 PA |
13182 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
13183 | ||
13184 | * linux-low.c (linux_wait_1): Avoid setting need_step_over is | |
13185 | there's a GDB breakpoint at stop_pc. Always report a trap to GDB | |
13186 | if we could tell there's a GDB breakpoint at stop_pc. | |
13187 | (need_step_over_p): Don't do a step over if we find a GDB | |
13188 | breakpoint at the resume PC. | |
13189 | ||
13190 | * mem-break.c (struct raw_breakpoint): New. | |
13191 | (enum bkpt_type): New type `gdb_breakpoint'. | |
13192 | (struct breakpoint): Delete the `PC', `old_data' and `inserted' | |
13193 | fields. New field `raw'. | |
13194 | (find_raw_breakpoint_at): New. | |
13195 | (set_raw_breakpoint_at): Handle refcounting. Create a raw | |
13196 | breakpoint instead. | |
13197 | (set_breakpoint_at): Adjust. | |
13198 | (delete_raw_breakpoint): New. | |
13199 | (release_breakpoint): New. | |
13200 | (delete_breakpoint): Rename to... | |
13201 | (delete_breakpoint_1): ... this. Add proc parameter. Use | |
13202 | release_breakpoint. Return ENOENT. | |
13203 | (delete_breakpoint): Reimplement. | |
13204 | (find_breakpoint_at): Delete. | |
13205 | (find_gdb_breakpoint_at): New. | |
13206 | (delete_breakpoint_at): Delete. | |
13207 | (set_gdb_breakpoint_at): New. | |
13208 | (delete_gdb_breakpoint_at): New. | |
13209 | (gdb_breakpoint_here): New. | |
13210 | (set_reinsert_breakpoint): Use release_breakpoint. | |
13211 | (uninsert_breakpoint): Rename to ... | |
13212 | (uninsert_raw_breakpoint): ... this. | |
13213 | (uninsert_breakpoints_at): Adjust to handle raw breakpoints. | |
13214 | (reinsert_raw_breakpoint): Change parameter type to | |
13215 | raw_breakpoint. | |
13216 | (reinsert_breakpoints_at): Adjust to handle raw breakpoints | |
13217 | instead. | |
13218 | (check_breakpoints): Adjust. Use release_breakpoint. | |
13219 | (breakpoint_here): Rewrite using find_raw_breakpoint_at. | |
13220 | (breakpoint_inserted_here): Ditto. | |
13221 | (check_mem_read): Adjust to iterate over raw breakpoints instead. | |
13222 | Don't trust the breakpoint's shadow if it is not inserted. | |
13223 | (check_mem_write): Adjust to iterate over raw breakpoints instead. | |
13224 | (delete_all_breakpoints): Adjust. | |
13225 | (free_all_breakpoints): Mark all breakpoints as uninserted, and | |
13226 | use delete_breakpoint_1. | |
13227 | ||
13228 | * mem-break.h (breakpoints_supported): Delete declaration. | |
13229 | (set_gdb_breakpoint_at): Declare. | |
13230 | (gdb_breakpoint_here): Declare. | |
13231 | (delete_breakpoint_at): Delete. | |
13232 | (delete_gdb_breakpoint_at): Declare. | |
13233 | ||
13234 | * server.h (struct raw_breakpoint): Forward declare. | |
13235 | (struct process_info): New field `raw_breakpoints'. | |
13236 | ||
13237 | * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0 | |
13238 | breakpoints. | |
13239 | ||
6bf5e0ba PA |
13240 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
13241 | ||
13242 | * linux-low.c (status_pending_p_callback): Fix comment. | |
13243 | (linux_wait_for_event_1): Move most of the internal breakpoint | |
13244 | handling from here... | |
13245 | (linux_wait_1): ... to here. | |
13246 | (count_events_callback): New. | |
13247 | (select_singlestep_lwp_callback): New. | |
13248 | (select_event_lwp_callback): New. | |
13249 | (cancel_breakpoints_callback): New. | |
13250 | (select_event_lwp): New. | |
13251 | (linux_wait_1): Simplify internal breakpoint handling. Give equal | |
13252 | priority to all LWPs that have had events that should be reported | |
13253 | to the client. Cancel breakpoints when about to reporting the | |
13254 | event to the client, not while stopping lwps. No longer cancel | |
13255 | finished single-steps here. | |
13256 | (cancel_finished_single_step): Delete. | |
13257 | (cancel_finished_single_steps): Delete. | |
13258 | ||
414a389f PA |
13259 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
13260 | ||
13261 | * mem-break.c (enum bkpt_type): New. | |
13262 | (struct breakpoint): New field `type'. | |
13263 | (set_breakpoint_at): Change return type to struct breakpoint | |
13264 | pointer. Set type to `other_breakpoint' by default. | |
13265 | (delete_breakpoint): Rewrite, supporting more than one breakpoint | |
13266 | in the breakpoint list. | |
13267 | (delete_reinsert_breakpoints): Only delete reinsert breakpoints. | |
13268 | (reinsert_breakpoint): Rename to ... | |
13269 | (reinsert_raw_breakpoint): ... this. | |
13270 | (reinsert_breakpoints_at): Adjust. | |
13271 | * mem-break.h (struct breakpoint): Declare. | |
13272 | (set_breakpoint_at): Change return type to struct breakpoint | |
13273 | pointer. | |
13274 | ||
2280c721 PA |
13275 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
13276 | ||
13277 | * server.c (handle_query): Assign, not compare. | |
13278 | ||
d50171e4 PA |
13279 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
13280 | ||
13281 | Teach linux gdbserver to step-over-breakpoints. | |
13282 | ||
13283 | * linux-low.c (can_hardware_single_step): New. | |
13284 | (supports_breakpoints): New. | |
13285 | (handle_extended_wait): If stopping threads, read the stop pc of | |
13286 | the new cloned LWP. | |
13287 | (get_pc): New. | |
13288 | (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the | |
13289 | low target doesn't support retrieving the PC. | |
13290 | (add_lwp): Set last_resume_kind to resume_continue. | |
13291 | (linux_attach_lwp_1): Adjust comments. Always set stop_expected. | |
13292 | (linux_attach): Don't clear stop_expected. Set the lwp's | |
13293 | last_resume_kind to resume_stop. | |
13294 | (linux_detach_one_lwp): Don't check for removed breakpoints. | |
13295 | (check_removed_breakpoint): Delete. | |
13296 | (status_pending_p): Rename to ... | |
13297 | (status_pending_p_callback): ... this. Don't check for removed | |
13298 | breakpoints. Don't consider threads that are stopped from GDB's | |
13299 | perspective. | |
13300 | (linux_wait_for_lwp): Always read the stop_pc here. | |
13301 | (cancel_breakpoint): New. | |
13302 | (step_over_bkpt): New global. | |
13303 | (linux_wait_for_event_1): Implement stepping over breakpoints. | |
13304 | (gdb_wants_lwp_stopped): New. | |
13305 | (gdb_wants_all_stopped): New. | |
13306 | (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished | |
13307 | single-step traps here. Store the thread's last reported target | |
13308 | wait status. | |
13309 | (send_sigstop): Don't clear stop_expected. Always set it, | |
13310 | instead. | |
13311 | (mark_lwp_dead): Remove reference to pending_is_breakpoint. | |
13312 | (cancel_finished_single_step): New. | |
13313 | (cancel_finished_single_steps): New. | |
13314 | (wait_for_sigstop): Don't cancel finished single-step traps here. | |
13315 | (linux_resume_one_lwp): Don't check for removed breakpoints. | |
13316 | Don't set `step' on non-hardware step archs. | |
13317 | (linux_set_resume_request): Ignore resume_stop requests if already | |
13318 | stopping or stopped. Set the lwp's last_resume_kind. | |
13319 | (resume_status_pending_p): Don't check for removed breakpoints. | |
13320 | (need_step_over_p): New. | |
13321 | (start_step_over): New. | |
13322 | (finish_step_over): New. | |
13323 | (linux_resume_one_thread): Always queue a sigstop for resume_stop | |
13324 | requests. Clear the thread's last reported target waitstatus. | |
13325 | Don't use the `suspended' flag. Don't consider pending breakpoints. | |
13326 | (linux_resume): Start a step-over if necessary. | |
13327 | (proceed_one_lwp): New. | |
13328 | (proceed_all_lwps): New. | |
13329 | (unstop_all_lwps): New. | |
13330 | * linux-low.h (struct lwp_info): Rewrite comment for the | |
13331 | `suspended' flag. Add the `stop_pc' field. Delete the | |
13332 | `pending_stop_pc' field. Tweak the `stepping' flag's comment. | |
13333 | Add `'last_resume_kind' and `need_step_over' fields. | |
13334 | * inferiors.c (struct thread_info): Delete, moved elsewhere. | |
13335 | * mem-break.c (struct breakpoint): Delete `reinserting' flag. | |
13336 | Delete `breakpoint_to_reinsert' field. New flag `inserted'. | |
13337 | (set_raw_breakpoint_at): New. | |
13338 | (set_breakpoint_at): Rewrite to use it. | |
13339 | (reinsert_breakpoint_handler): Delete. | |
13340 | (set_reinsert_breakpoint): New. | |
13341 | (reinsert_breakpoint_by_bp): Delete. | |
13342 | (delete_reinsert_breakpoints): New. | |
13343 | (uninsert_breakpoint): Rewrite. | |
13344 | (uninsert_breakpoints_at): New. | |
13345 | (reinsert_breakpoint): Rewrite. | |
13346 | (reinsert_breakpoints_at): New. | |
13347 | (check_breakpoints): Rewrite. | |
13348 | (breakpoint_here): New. | |
13349 | (breakpoint_inserted_here): New. | |
13350 | (check_mem_read): Adjust. | |
13351 | * mem-break.h (breakpoints_supported, breakpoint_here) | |
13352 | (breakpoint_inserted_here, set_reinsert_breakpoint): Declare. | |
13353 | (reinsert_breakpoint_by_bp): Delete declaration. | |
13354 | (delete_reinsert_breakpoints): Declare. | |
13355 | (reinsert_breakpoint): Delete declaration. | |
13356 | (reinsert_breakpoints_at): Declare. | |
13357 | (uninsert_breakpoint): Delete declaration. | |
13358 | (uninsert_breakpoints_at): Declare. | |
13359 | (check_breakpoints): Adjust prototype. | |
13360 | * server.h: Adjust include order. | |
13361 | (struct thread_info): Declare here. Add a `last_status' field. | |
13362 | ||
30ba68cb MS |
13363 | 2010-03-23 Michael Snyder <msnyder@vmware.com> |
13364 | ||
13365 | * server.c (crc32): New function. | |
13366 | (handle_query): Add handling for 'qCRC:' request. | |
13367 | ||
b9a881c2 PA |
13368 | 2010-03-23 Pedro Alves <pedro@codesourcery.com> |
13369 | ||
13370 | * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the | |
13371 | lwp had been stopped by a watchpoint. | |
13372 | ||
e92d13d5 PA |
13373 | 2010-03-16 Pedro Alves <pedro@codesourcery.com> |
13374 | ||
13375 | * server.h (internal_error): Declare. | |
13376 | (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define. | |
13377 | * utils.c (internal_error): New function. | |
13378 | ||
64daa791 AS |
13379 | 2010-03-15 Andreas Schwab <schwab@redhat.com> |
13380 | ||
13381 | * configure.srv: Fix typo setting srv_regobj. | |
13382 | ||
f52cd8cd PA |
13383 | 2010-03-15 Pedro Alves <pedro@codesourcery.com> |
13384 | ||
13385 | * linux-low.c (fetch_register): Avoid passing a non string literal | |
13386 | format to `error'. | |
13387 | (usr_store_inferior_registers): Ditto. | |
13388 | ||
93ae6fdc PA |
13389 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
13390 | ||
13391 | * linux-low.c (linux_write_memory): Bail out early if peeking | |
13392 | memory failed. | |
13393 | ||
c3adc08c PA |
13394 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
13395 | ||
13396 | * linux-low.h (struct lwp_info): New fields | |
13397 | `stopped_by_watchpoint' and `stopped_data_address'. | |
13398 | * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers | |
13399 | here, and cache them in the lwp object. | |
13400 | (wait_for_sigstop): Check stopped_by_watchpoint lwp field | |
13401 | directly. | |
13402 | (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint | |
13403 | field. | |
13404 | (linux_stopped_by_watchpoint): Rewrite. | |
13405 | (linux_stopped_data_address): Rewrite. | |
13406 | ||
bce522a2 PA |
13407 | 2010-03-06 Simo Melenius <simo.melenius@iki.fi> |
13408 | ||
13409 | * linux-low.c (linux_wait_for_lwp): Fetch the regcache after | |
13410 | switching the current inferior, not before. | |
13411 | ||
90884b2b L |
13412 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
13413 | ||
13414 | * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c, | |
13415 | reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c, | |
13416 | i386-linux.c and amd64-linux.c. | |
13417 | (reg-i386.o): Removed. | |
13418 | (reg-i386.c): Likewise. | |
13419 | (reg-i386-linux.o): Likewise. | |
13420 | (reg-i386-linux.c): Likewise. | |
13421 | (reg-x86-64.o): Likewise. | |
13422 | (reg-x86-64.c): Likewise. | |
13423 | (reg-x86-64-linux.o): Likewise. | |
13424 | (reg-x86-64-linux.c): Likewise. | |
13425 | (i386.o): New. | |
13426 | (i386.c): Likewise. | |
13427 | (i386-linux.o): Likewise. | |
13428 | (i386-linux.c): Likewise. | |
13429 | (amd64.o): Likewise. | |
13430 | (amd64.c): Likewise. | |
13431 | (amd64-linux.o): Likewise. | |
13432 | (amd64-linux.c): Likewise. | |
13433 | ||
13434 | * configure.srv (srv_i386_regobj): New. | |
13435 | (srv_i386_linux_regobj): Likewise. | |
13436 | (srv_amd64_regobj): Likewise. | |
13437 | (srv_amd64_linux_regobj): Likewise. | |
13438 | (srv_i386_32bit_xmlfiles): Likewise. | |
13439 | (srv_i386_64bit_xmlfiles): Likewise. | |
13440 | (srv_i386_xmlfiles): Likewise. | |
13441 | (srv_amd64_xmlfiles): Likewise. | |
13442 | (srv_i386_linux_xmlfiles): Likewise. | |
13443 | (srv_amd64_linux_xmlfiles): Likewise. | |
13444 | (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set | |
13445 | srv_xmlfiles to $srv_i386_xmlfiles. | |
13446 | (i[34567]86-*-mingw32ce*): Likewise. | |
13447 | (i[34567]86-*-mingw*): Likewise. | |
13448 | (i[34567]86-*-nto*): Likewise. | |
13449 | (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj | |
13450 | and $srv_amd64_linux_regobj. Set srv_xmlfiles to | |
13451 | $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles. | |
13452 | (x86_64-*-linux*): Likewise. | |
13453 | ||
13454 | * linux-x86-low.c (init_registers_x86_64_linux): Removed. | |
13455 | (init_registers_amd64_linux): New. | |
13456 | (x86_arch_setup): Replace init_registers_x86_64_linux with | |
13457 | init_registers_amd64_linux. | |
13458 | ||
193f13e6 MK |
13459 | 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com> |
13460 | ||
13461 | * configure.ac: Check for libdl. If it is not available link against | |
13462 | static libthread_db. | |
13463 | * configure: Regenerate. | |
13464 | ||
85d721b8 PA |
13465 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
13466 | ||
13467 | PR9605 | |
13468 | ||
13469 | * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if | |
13470 | handing a read watchpoint. | |
13471 | (i386_low_insert_watchpoint): Read watchpoints aren't supported. | |
13472 | ||
6076632b DE |
13473 | 2010-02-12 Doug Evans <dje@google.com> |
13474 | ||
13475 | * linux-low.c (linux_supports_tracefork_flag): Document. | |
13476 | (linux_look_up_symbols): Add comment. | |
13477 | ||
3327ccf7 L |
13478 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
13479 | ||
13480 | * regcache.c (supply_register): Clear regcache if buf is NULL. | |
13481 | ||
0718675c | 13482 | 2010-02-02 Nicolas Roche <roche@sourceware.org> |
3327ccf7 | 13483 | Joel Brobecker <brobecker@adacore.com> |
0718675c JB |
13484 | |
13485 | * inferiors.c (find_inferior): Add function documentation. | |
13486 | (unloaded_dll): Handle the case where the unloaded dll has not | |
13487 | been previously registered in the dll list. | |
13488 | ||
177321bd DJ |
13489 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
13490 | ||
13491 | * linux-arm-low.c (thumb_breakpoint_len): Delete. | |
13492 | (thumb2_breakpoint): New. | |
13493 | (arm_breakpoint_at): Check for Thumb-2 breakpoints. | |
13494 | ||
2b009048 DJ |
13495 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
13496 | ||
13497 | * linux-low.c (get_stop_pc): Check for SIGTRAP. | |
13498 | (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible | |
13499 | breakpoints. | |
13500 | ||
3be029c7 PA |
13501 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
13502 | ||
13503 | * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. | |
13504 | ||
18f5de3b JK |
13505 | 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
13506 | ||
13507 | * linux-s390-low.c (s390_collect_ptrace_register) | |
13508 | (s390_supply_ptrace_register): Adjust it for the new regcache parameter. | |
13509 | ||
3743bb4f DE |
13510 | 2010-01-21 Doug Evans <dje@google.com> |
13511 | ||
14ce3065 DE |
13512 | * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*. |
13513 | (PTRACE_ARG4_TYPE): New macro. | |
13514 | (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. | |
13515 | (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. | |
13516 | (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. | |
13517 | (usr_store_inferior_registers): Ditto. | |
13518 | (linux_read_memory, linux_write_memory): Ditto. | |
13519 | (linux_test_for_tracefork): Ditto. | |
13520 | ||
3743bb4f DE |
13521 | * linux-arm-low.c: Remove redundant include of gdb_proc_service.h. |
13522 | Only include elf.h if gdb_proc_service.h didn't include linux/elf.h. | |
13523 | ||
8b315be5 PA |
13524 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
13525 | ||
13526 | * proc-service.c (ps_lgetregs): Don't refetch registers from the | |
13527 | target. | |
13528 | ||
85492558 PA |
13529 | 2010-01-21 Pedro Alves <pedro@codesourcery.com> |
13530 | ||
13531 | * spu-low.c (spu_fetch_registers, spu_store_registers): Change | |
13532 | prototype to take a regcache. Adjust. | |
13533 | ||
442ea881 PA |
13534 | 2010-01-20 Pedro Alves <pedro@codesourcery.com> |
13535 | ||
13536 | * regcache.h (struct thread_info): Forward declare. | |
13537 | (struct regcache): New. | |
13538 | (new_register_cache): Adjust prototype. | |
13539 | (get_thread_regcache): Declare. | |
13540 | (free_register_cache): Adjust prototype. | |
13541 | (registers_to_string, registers_from_string): Ditto. | |
13542 | (supply_register, supply_register_by_name, collect_register) | |
13543 | (collect_register_as_string, collect_register_by_name): Ditto. | |
13544 | * regcache.c (struct inferior_regcache_data): Delete. | |
13545 | (get_regcache): Rename to ... | |
13546 | (get_thread_regcache): ... this. Adjust. Switch inferior before | |
13547 | fetching registers. | |
13548 | (regcache_invalidate_one): Adjust. | |
13549 | (regcache_invalidate): Fix prototype. | |
13550 | (new_register_cache): Return the new register cache. | |
13551 | (free_register_cache): Change prototype. | |
13552 | (realloc_register_cache): Adjust. | |
13553 | (registers_to_string): Change prototype to take a regcache. Adjust. | |
13554 | (registers_from_string): Ditto. | |
13555 | (register_data): Ditto. | |
13556 | (supply_register): Ditto. | |
13557 | (supply_register_by_name): Ditto. | |
13558 | (collect_register): Ditto. | |
13559 | (collect_register_as_string): Ditto. | |
13560 | (collect_register_by_name): Ditto. | |
13561 | * server.c (process_serial_event): Adjust. | |
13562 | * linux-low.h (regset_fill_func, regset_store_func): Change | |
13563 | prototype. | |
13564 | (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): | |
13565 | Change prototype. | |
13566 | * linux-low.c (get_stop_pc): Adjust. | |
13567 | (check_removed_breakpoint): Adjust. | |
13568 | (linux_wait_for_event): Adjust. | |
13569 | (linux_resume_one_lwp): Adjust. | |
13570 | (fetch_register): Add regcache parameter. Adjust. | |
13571 | (usr_store_inferior_registers): Ditto. | |
13572 | (regsets_fetch_inferior_registers): Ditto. | |
13573 | (regsets_store_inferior_registers): Ditto. | |
13574 | (linux_fetch_registers, linux_store_registers): Ditto. | |
13575 | * i387-fp.c (i387_cache_to_fsave): Change prototype to take a | |
13576 | regcache. Adjust. | |
43aaf8b6 PA |
13577 | (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): |
13578 | Ditto. | |
442ea881 PA |
13579 | * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change |
13580 | prototype to take a regcache. | |
13581 | (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. | |
13582 | * remote-utils.c (convert_ascii_to_int, outreg) | |
13583 | (prepare_resume_reply): Change prototype to take a regcache. | |
13584 | Adjust. | |
13585 | * target.h (struct target_ops) <fetch_registers, store_registers>: | |
13586 | Change prototype to take a regcache. | |
13587 | (fetch_inferior_registers, store_inferior_registers): Change | |
13588 | prototype to take a regcache. Adjust. | |
13589 | * proc-service.c (ps_lgetregs): Adjust. | |
13590 | * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) | |
13591 | (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) | |
13592 | (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to | |
13593 | take a regcache. Adjust. | |
13594 | * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) | |
13595 | (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) | |
13596 | (arm_store_vfpregset, arm_get_pc, arm_set_pc): | |
13597 | (arm_breakpoint_at): Change prototype to take a regcache. Adjust. | |
13598 | * linux-cris-low.c (cris_get_pc, cris_set_pc) | |
13599 | (cris_cannot_fetch_register): | |
13600 | (cris_breakpoint_at): Change prototype to take a regcache. | |
13601 | Adjust. | |
13602 | * linux-crisv32-low.c (cris_get_pc, cris_set_pc, | |
13603 | cris_reinsert_addr, cris_write_data_breakpoint): Change prototype | |
13604 | to take a regcache. Adjust. | |
13605 | (cris_breakpoint_at, cris_insert_point, cris_remove_point): | |
13606 | Adjust. | |
13607 | * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to | |
13608 | take a regcache. Adjust. | |
13609 | * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) | |
13610 | (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, | |
13611 | (m68k_set_pc): Change prototype to take a regcache. Adjust. | |
13612 | * linux-mips-low.c (mips_get_pc): | |
13613 | (mips_set_pc): Change prototype to take a regcache. Adjust. | |
13614 | (mips_reinsert_addr): Adjust. | |
13615 | (mips_collect_register): Change prototype to take a regcache. | |
13616 | Adjust. | |
13617 | (mips_supply_register): | |
13618 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
13619 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
13620 | (mips_store_fpregset): Ditto. | |
43aaf8b6 PA |
13621 | * linux-ppc-low.c (ppc_supply_ptrace_register) |
13622 | (ppc_supply_ptrace_register): Ditto. | |
442ea881 PA |
13623 | (parse_spufs_run): Adjust. |
13624 | (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) | |
13625 | (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) | |
13626 | (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to | |
13627 | take a regcache. Adjust. | |
13628 | * linux-s390-low.c (s390_collect_ptrace_register) | |
13629 | (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) | |
13630 | (s390_set_pc): Change prototype to take a regcache. Adjust. | |
13631 | (s390_arch_setup): Adjust. | |
13632 | * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) | |
13633 | (sh_fill_gregset): Change prototype to take a regcache. Adjust. | |
13634 | * linux-sparc-low.c (sparc_fill_gregset_to_stack) | |
13635 | (sparc_fill_gregset, sparc_store_gregset_from_stack) | |
13636 | (sparc_store_gregset, sparc_get_pc): Change prototype to take a | |
13637 | regcache. Adjust. | |
13638 | (sparc_breakpoint_at): Adjust. | |
13639 | * linux-xtensa-low.c (xtensa_fill_gregset): | |
13640 | (xtensa_store_gregset): | |
13641 | (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) | |
13642 | (xtensa_set_pc): Change prototype to take a regcache. Adjust. | |
13643 | * nto-low.c (nto_fetch_registers, nto_store_registers): Change | |
13644 | prototype to take a regcache. Adjust. | |
13645 | * win32-arm-low.c (arm_fetch_inferior_register) | |
13646 | (arm_store_inferior_register): Change prototype to take a | |
13647 | regcache. Adjust. | |
13648 | * win32-i386-low.c (i386_fetch_inferior_register) | |
13649 | (i386_store_inferior_register): Change prototype to take a | |
13650 | regcache. Adjust. | |
13651 | * win32-low.c (child_fetch_inferior_registers) | |
13652 | (child_store_inferior_registers): Change prototype to take a | |
13653 | regcache. Adjust. | |
13654 | (win32_wait): Adjust. | |
13655 | (win32_fetch_inferior_registers): Change prototype to take a | |
13656 | regcache. Adjust. | |
13657 | (win32_store_inferior_registers): Adjust. | |
13658 | * win32-low.h (struct win32_target_ops) <fetch_inferior_register, | |
13659 | store_inferior_register>: Change prototype to take a regcache. | |
13660 | ||
60c3d7b0 DE |
13661 | 2010-01-20 Doug Evans <dje@google.com> |
13662 | ||
13663 | * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in | |
13664 | #ifdef. | |
13665 | (linux_wait_for_event1, linux_init_signals): Ditto. | |
ec8ebe72 | 13666 | (W_STOPCODE): Provide definition if missing. |
60c3d7b0 | 13667 | |
dc146f7c VP |
13668 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
13669 | ||
13670 | * linux-low.c (linux_core_of_thread): New. | |
13671 | (compare_ints, show_process, list_threads): New. | |
13672 | (linux_qxfer_osdata): Report threads and cores. | |
13673 | (linux_target_op): Register linux_core_of_thread. | |
13674 | * remote-utils.c (prepare_resume_reply): Report the core. | |
13675 | (buffer_xml_printf): Support %d specifier. | |
13676 | * server.c (handle_threads_qxfer_proper, handle_threads_qxfer): | |
13677 | New. | |
13678 | (handle_query): Handle qXfer:threads. Announce availability | |
13679 | thereof. | |
13680 | * target.h (struct target_ops): New field core_of_thread. | |
13681 | ||
7803799a UW |
13682 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
13683 | ||
13684 | * Makefile.in (clean): Remove new generated files. | |
13685 | (reg-s390.o, reg-s390.c): Remove rules. | |
13686 | (reg-s390x.o, reg-s390x.c): Likewise. | |
13687 | (s390-linux32.o, s390-linux32.c): Add rules. | |
13688 | (s390-linux64.o, s390-linux64.c): Likewise. | |
13689 | (s390x-linux64.o, s390x-linux64.c): Likewise. | |
13690 | * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles. | |
13691 | * linux-s390-low.c: Include <elf.h>. | |
13692 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
13693 | (init_registers_s390): Remove prototype. | |
13694 | (init_registers_s390x): Likewise. | |
13695 | (init_registers_s390_linux32): Add prototype. | |
13696 | (init_registers_s390_linux64): Likewise. | |
13697 | (init_registers_s390x_linux64): Likewise. | |
13698 | (s390_num_regs_3264): New define. | |
13699 | (s390_regmap_3264): New global variable. | |
13700 | (s390_cannot_fetch_register): Remove obsolete check. | |
13701 | (s390_cannot_store_register): Likewise. | |
13702 | (s390_collect_ptrace_register): Handle upper/lower register halves. | |
13703 | (s390_supply_ptrace_register): Likewise. | |
13704 | (s390_fill_gregset): Update to register number changes. | |
13705 | (s390_get_hwcap): New routine. | |
13706 | (s390_arch_setup): Detect 32-bit process running on 64-bit system. | |
13707 | Install appropriate regmap and register set. | |
13708 | ||
6e7ffa39 JB |
13709 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
13710 | ||
13711 | * server.c (gdbserver_version): Update copyright year to 2010. | |
13712 | * gdbreplay.c (gdbreplay_version): Likewise. | |
13713 | ||
957f3f49 DE |
13714 | 2009-12-28 Doug Evans <dje@google.com> |
13715 | ||
13716 | * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h, | |
13717 | elf/external.h. Include <elf.h> instead but only if necessary. | |
13718 | ||
ca5c370d PA |
13719 | 2009-12-28 Pedro Alves <pedro@codesourcery.com> |
13720 | ||
13721 | * linux-low.c (linux_remove_process): Remove `detaching' | |
13722 | parameter. Don't release/detach from thread_db here. | |
13723 | (linux_kill): Release/detach from thread_db here, ... | |
13724 | (linux_detach): ... and here, before actually detaching. | |
13725 | (linux_wait_1): ... and here, when a process exits. | |
13726 | * thread-db.c (any_thread_of): New. | |
13727 | (thread_db_free): Switch the current inferior to a thread of the | |
13728 | passed in process. | |
13729 | ||
4ee62156 DE |
13730 | 2009-12-21 Doug Evans <dje@google.com> |
13731 | ||
d90e6a88 DE |
13732 | * linux-x86-low.c: Delete outdated comment about Elf32_Phdr. |
13733 | ||
c5f62d5f DE |
13734 | * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. |
13735 | Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc | |
13736 | warning ifndef __NR_tkill. Move setting of errno there too. | |
13737 | Delete unnecessary resetting of errno after syscall. | |
13738 | Minor comment changes to match gdb/linux-nat.c:kill_lwp. | |
13739 | ||
10e86dd7 DE |
13740 | * configure.ac: Check for dladdr. |
13741 | * config.in: Regenerate. | |
13742 | * configure: Regenerate. | |
13743 | * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. | |
13744 | (try_thread_db_load): Update. | |
13745 | ||
4ee62156 DE |
13746 | * linux-low.c (my_waitpid): Delete unnecessary prototype. |
13747 | ||
00f515da DE |
13748 | 2009-12-18 Doug Evans <dje@google.com> |
13749 | ||
e9464885 DE |
13750 | * event-loop.c: Include unistd.h if it exists. |
13751 | ||
07d4f67e DE |
13752 | * linux-low.c (my_waitpid): Move definition away from being in |
13753 | between linux_tracefork_child/linux_test_for_tracefork. | |
13754 | ||
00f515da DE |
13755 | * gdb_proc_service.h (psaddr_t): Fix type. |
13756 | * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix | |
13757 | signature to match glibc. | |
13758 | ||
1de1badb DE |
13759 | 2009-12-16 Doug Evans <dje@google.com> |
13760 | ||
13761 | * linux-low.c (linux_read_memory): Fix argument to read. | |
13762 | ||
aeeb81d1 PA |
13763 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
13764 | ||
13765 | * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT | |
13766 | events, don't leave current_inferior pointing at null. | |
13767 | ||
10357975 PA |
13768 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
13769 | ||
13770 | * win32-low.c (LOG): Delete. | |
13771 | (OUTMSG): Output to stderr. | |
13772 | (OUTMSG2): Conditionalize on `debug_threads' variable, instead of | |
13773 | on compile time LOG macro. | |
13774 | (win32_wait): Fix debug output. | |
13775 | ||
cf6e3471 PA |
13776 | 2009-11-26 Pedro Alves <pedro@codesourcery.com> |
13777 | ||
13778 | * win32-low.c (win32_add_one_solib): If the dll name is | |
13779 | "ntdll.dll", prepend the system directory to the dll path. | |
13780 | ||
0c85e18e MK |
13781 | 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com> |
13782 | ||
13783 | * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization. | |
13784 | ||
9ac544ce | 13785 | 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> |
889bf7c5 | 13786 | Vladimir Prus <vladimir@codesourcery.com> |
9ac544ce MK |
13787 | |
13788 | * Makefile.in (reg-cf.o, reg-cf.c): New targets. | |
13789 | * configure.ac: Check for __mcoldfire__ and set | |
13790 | gdb_cv_m68k_is_coldfire. | |
13791 | * configure.srv: Use gdb_cv_m68k_is_coldfire to select between | |
13792 | reg-cf.o and reg-m68k.o. | |
13793 | * configure: Regenerated. | |
13794 | ||
fd7dd3e6 PA |
13795 | 2009-11-16 Pedro Alves <pedro@codesourcery.com> |
13796 | ||
13797 | * linux-low.c (linux_remove_process): Add `detaching' parameter. | |
13798 | Pass it to thread_db_free. | |
13799 | (linux_kill, linux_detach, linux_wait_1): Adjust to pass the | |
13800 | proper `detaching' argument to linux_remove_process. | |
13801 | * linux-low.h (thread_db_free): Add `detaching' parameter. | |
13802 | * thread-db.c (thread_db_init): Pass false as `detaching' argument | |
13803 | to thread_db_free. | |
13804 | (thread_db_free): Add `detaching' parameter. Only | |
13805 | call td_ta_clear_event if detaching from process. | |
13806 | ||
75aa492e MK |
13807 | 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com> |
13808 | ||
13809 | * thread-db.c (thread_db_free): Fix typo. | |
13810 | ||
21e1bee4 PP |
13811 | 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com> |
13812 | ||
13813 | PR gdb/10838 | |
13814 | * thread-db.c (thread_db_free): Call td_ta_clear_event. | |
13815 | ||
8838b45e NS |
13816 | 2009-11-03 Nathan Sidwell <nathan@codesourcery.com> |
13817 | ||
13818 | * configure.ac (i[34567]86-*): Check if we're targetting x86-64 | |
13819 | with an i686 compiler. | |
13820 | * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if | |
13821 | needed. | |
13822 | * configure: Rebuilt. | |
13823 | ||
8a35fb51 SL |
13824 | 2009-10-29 Sandra Loosemore <sandra@codesourcery.com> |
13825 | ||
13826 | PR gdb/10783 | |
13827 | ||
13828 | * server.c (handle_search_memory_1): Correct read_addr initialization | |
13829 | in loop for searching subsequent chunks. | |
13830 | ||
96f15937 PP |
13831 | 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com> |
13832 | ||
13833 | * configure.ac: New --with-libthread-db option. | |
13834 | * thread-db.c: Allow direct dependence on libthread_db. | |
13835 | (thread_db_free): Adjust. | |
13836 | * config.in: Regenerate. | |
13837 | * configure: Likewise. | |
889bf7c5 | 13838 | |
5f7d1694 PP |
13839 | 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com> |
13840 | ||
13841 | PR gdb/10757 | |
13842 | * thread-db.c (attach_thread): New function. | |
13843 | (maybe_attach_thread): Return success/failure. | |
13844 | (find_new_threads_callback): Adjust. | |
889bf7c5 PA |
13845 | (thread_db_find_new_threads): Loop until no new threads. |
13846 | ||
88e3b899 PA |
13847 | 2009-10-13 Pedro Alves <pedro@codesourcery.com> |
13848 | ||
13849 | * proc-service.c (ps_lgetregs): Formatting. | |
13850 | ||
cdbfd419 PP |
13851 | 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com> |
13852 | ||
13853 | * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove. | |
13854 | * configure.ac: Adjust. | |
13855 | * linux-low.h (struct process_info_private): Move members to struct | |
13856 | thread_db. | |
13857 | (thread_db_free, thread_db_handle_monitor_command): New prototype. | |
13858 | * linux-low.c (linux_remove_process): Adjust. | |
13859 | (linux_wait_for_event_1, linux_look_up_symbols): Likewise. | |
13860 | * server.c (handle_query): Move code ... | |
13861 | (handle_monitor_command): ... here. New function. | |
13862 | * target.h (struct target_ops): New member. | |
13863 | * thread-db.c (struct thread_db): New. | |
13864 | (libthread_db_search_path): New variable. | |
13865 | (thread_db_create_event, thread_db_enable_reporting) | |
13866 | (find_one_thread, maybe_attach_thread, find_new_threads_callback) | |
13867 | (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust. | |
13868 | (try_thread_db_load_1, dladdr_to_soname): New functions. | |
13869 | (try_thread_db_load, thread_db_load_search): New functions. | |
13870 | (thread_db_init): Search for libthread_db. | |
13871 | (thread_db_free): New function. | |
13872 | (thread_db_handle_monitor_command): Likewise. | |
13873 | * config.in: Regenerate. | |
13874 | * configure: Regenerate. | |
889bf7c5 | 13875 | |
4168d2d6 UW |
13876 | 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com> |
13877 | ||
13878 | * spu-low.c (spu_kill): Wait for inferior to terminate. | |
13879 | Call clear_inferiors. | |
13880 | (spu_detach): Call clear_inferiors. | |
13881 | ||
81ecdfbb RW |
13882 | 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
13883 | ||
13884 | * aclocal.m4: Regenerate. | |
13885 | * config.in: Likewise. | |
13886 | * configure: Likewise. | |
13887 | ||
0b9ff2c0 UW |
13888 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
13889 | ||
13890 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
13891 | (parse_spufs_run): New function. | |
13892 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
13893 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
13894 | ||
efcbbd14 UW |
13895 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
13896 | ||
13897 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
13898 | (SPUFS_MAGIC): Define. | |
13899 | (spu_enumerate_spu_ids): New function. | |
13900 | (linux_qxfer_spu): New function. | |
13901 | (linux_target_ops): Install linux_qxfer_spu. | |
13902 | ||
f4d9bade UW |
13903 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
13904 | ||
13905 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
13906 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
13907 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
13908 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
13909 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
13910 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
13911 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
13912 | (init_registers_powerpc_cell32l): Add prototype. | |
13913 | (init_registers_powerpc_cell64l): Likewise. | |
13914 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
13915 | ||
96e946ca RW |
13916 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
13917 | ||
13918 | * Makefile.in (datarootdir): New variable. | |
13919 | ||
58d6951d DJ |
13920 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
13921 | ||
13922 | * linux-low.c (linux_write_memory): Update debugging output. | |
13923 | * Makefile.in (clean): Add new descriptions. | |
13924 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
13925 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
13926 | * configure.srv: Add new files for arm*-*-linux*. | |
13927 | * linux-arm-low.c: Add new declarations. | |
13928 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
13929 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
13930 | (HWCAP_VFPv3D16): New. | |
13931 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
13932 | instead of __IWMMXT__. | |
13933 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
13934 | (arm_arch_setup): New. | |
13935 | (target_regsets): Remove #ifdef. Add VFP regset. | |
13936 | (the_low_target): Use arm_arch_setup. | |
13937 | ||
12b42a12 DJ |
13938 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
13939 | ||
13940 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
13941 | the main thread again. | |
13942 | ||
ac8c974e AR |
13943 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
13944 | ||
13945 | Adding Neutrino gdbserver. | |
13946 | * configure: Regenerated. | |
13947 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
13948 | * configure.srv (i[34567]86-*-nto*): New target. | |
13949 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
13950 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
13951 | (nto_comctrl) [__QNX__]: New function. | |
13952 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
13953 | ||
4424e0c3 | 13954 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
13955 | |
13956 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
13957 | srv_tgtobj. | |
13958 | ||
912cf4ba PA |
13959 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
13960 | Pedro Alves <pedro@codesourcery.com> | |
13961 | ||
13962 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
13963 | don't support CONTEXT_EXTENDED_REGISTERS. | |
13964 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
13965 | (the_low_target): Install them. | |
13966 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
13967 | failing with ERROR_PIPE_NOT_CONNECTED. | |
13968 | ||
aa5ca48f DE |
13969 | 2009-06-30 Doug Evans <dje@google.com> |
13970 | Pierre Muller <muller@ics.u-strasbg.fr> | |
13971 | ||
13972 | Add h/w watchpoint support to x86-linux, win32-i386. | |
13973 | * Makefile.in (SFILES): Add i386-low.c | |
13974 | (i386_low_h): Define. | |
13975 | (i386-low.o): Add dependencies. | |
13976 | (linux-x86-low.o): Add i386-low.h dependency. | |
13977 | (win32-i386-low.o): Ditto. | |
13978 | * i386-low.c: New file. | |
13979 | * i386-low.h: New file. | |
13980 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
13981 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
13982 | * linux-low.c (linux_add_process): Initialize arch_private. | |
13983 | (linux_remove_process): Free arch_private. | |
13984 | (add_lwp): Initialize arch_private. | |
13985 | (delete_lwp): Free arch_private. | |
13986 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
13987 | provided. | |
13988 | * linux-low.h (process_info_private): New member arch_private. | |
13989 | (lwp_info): New member arch_private. | |
13990 | (linux_target_ops): New members new_process, new_thread, | |
13991 | prepare_to_resume. | |
13992 | (ptid_of): New macro. | |
13993 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
13994 | (arch_process_info): New struct. | |
13995 | (arch_lwp_info): New struct. | |
13996 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
13997 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
13998 | (i386_dr_low_get_status): New function. | |
13999 | (x86_insert_point, x86_remove_point): New functions. | |
14000 | (x86_stopped_by_watchpoint): New function. | |
14001 | (x86_stopped_data_address): New function. | |
14002 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
14003 | (x86_linux_prepare_to_resume): New function. | |
14004 | (the_low_target): Add entries for insert_point, remove_point, | |
14005 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
14006 | prepare_to_resume. | |
14007 | * server.c (debug_hw_points): New global. | |
14008 | (monitor_show_help): Document set debug-hw-points. | |
14009 | (handle_query): Process "set debug-hw-points". | |
14010 | * server.h (debug_hw_points): Declare. | |
14011 | (paddress): Declare. | |
14012 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
14013 | (get_sell, xsnprintf, paddress): New functions. | |
14014 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
14015 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
14016 | * win32-i386-low.c: Include i386-low.h. | |
14017 | (debug_reg_state): Replaces dr. | |
14018 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
14019 | (i386_dr_low_get_status): New function. | |
14020 | (i386_insert_point, i386_remove_point): New functions. | |
14021 | (i386_stopped_by_watchpoint): New function. | |
14022 | (i386_stopped_data_address): New function. | |
14023 | (i386_initial_stuff): Update. | |
14024 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
14025 | (the_low_target): Add entries for insert_point, | |
14026 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
14027 | * win32-low.c (win32_insert_watchpoint): New function. | |
14028 | (win32_remove_watchpoint): New function. | |
14029 | (win32_stopped_by_watchpoint): New function. | |
14030 | (win32_stopped_data_address): New function. | |
14031 | (win32_target_ops): Add entries for insert_watchpoint, | |
14032 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
14033 | * win32-low.h (win32_target_ops): New members insert_point, | |
14034 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
14035 | ||
d993e290 PA |
14036 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
14037 | ||
14038 | * server.c (process_serial_event): Re-return unsupported, not | |
14039 | error, if the type isn't recognized. Re-allow supporting only | |
14040 | insert or remove packets. Also call require_running for | |
14041 | breakpoints. Add missing break statement to default case. Tidy. | |
14042 | * target.h (struct target_ops): Rename insert_watchpoint to | |
14043 | insert_point, and remove_watchpoint to remove_point. | |
14044 | ||
14045 | * linux-low.h (struct linux_target_ops): Likewise. | |
14046 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
14047 | (linux_insert_point): ... this. Adjust. | |
14048 | (linux_remove_watchpoint): Rename to ... | |
14049 | (linux_remove_point): ... this. Adjust. | |
14050 | (linux_target_ops): Adjust. | |
14051 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
14052 | (cris_insert_point): ... this. | |
14053 | (cris_remove_watchpoint): Rename to ... | |
14054 | (cris_remove_point): ... this. | |
14055 | (the_low_target): Adjust. | |
14056 | ||
0f54c268 PM |
14057 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
14058 | ||
14059 | * server.c (handle_v_kill): Pass signal_pid to | |
14060 | kill_inferior if multi_process is zero. | |
14061 | ||
c6314022 AR |
14062 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
14063 | ||
14064 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
14065 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
14066 | the functions can get types '0' and '1'. | |
14067 | ||
4463ce24 AR |
14068 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
14069 | ||
14070 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
14071 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
14072 | * regcache.c (get_regcache): Likewise. | |
14073 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
14074 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
14075 | regno 0. | |
14076 | ||
cf8fd78b PA |
14077 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
14078 | Pedro Alves <pedro@codesourcery.com> | |
14079 | ||
14080 | * target.h (struct target_ops) <supports_multi_process>: New | |
14081 | callback. | |
14082 | (target_supports_multi_process): New. | |
14083 | * server.c (handle_query): Even if GDB reports support, only | |
14084 | enable multi-process if the target also supports it. Report | |
14085 | multi-process support only if the target backend supports it. | |
14086 | * linux-low.c (linux_supports_multi_process): New function. | |
14087 | (linux_target_ops): Install it as target_supports_multi_process | |
14088 | callback. | |
14089 | ||
47c0c975 DE |
14090 | 2009-05-24 Doug Evans <dje@google.com> |
14091 | ||
e09875d4 DE |
14092 | Global renaming of find_thread_pid to find_thread_ptid. |
14093 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
14094 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
14095 | All callers updated. | |
14096 | ||
e27d73f6 DE |
14097 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
14098 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
14099 | directly. | |
14100 | ||
47c0c975 DE |
14101 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
14102 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
14103 | (linux_resume_one_lwp): Ditto. | |
14104 | ||
2acc282a DE |
14105 | 2009-05-23 Doug Evans <dje@google.com> |
14106 | ||
14107 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
14108 | from struct inferior_list_entry * to struct lwp_info *. | |
14109 | All callers updated. | |
14110 | ||
9f1036c1 DE |
14111 | 2009-05-13 Doug Evans <dje@google.com> |
14112 | ||
14113 | * linux-x86-low.c: Don't include assert.h. | |
14114 | (x86_siginfo_fixup): Use fatal, not assert. | |
14115 | (x86_arch_setup): Fix comment. | |
14116 | ||
d0722149 DE |
14117 | 2009-05-12 Doug Evans <dje@google.com> |
14118 | ||
14119 | Biarch support for i386/amd64 gdbserver. | |
14120 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
14121 | Add linux-x86-low.c. | |
14122 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
14123 | (linux-x86-low.o): Add. | |
14124 | * linux-x86-64-low.c: Delete. | |
14125 | * linux-i386-low.c: Delete. | |
14126 | * linux-x86-low.c: New file. | |
14127 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
14128 | linux-x86-low.o. | |
14129 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
14130 | linux-x86-low.o. | |
14131 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
14132 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
14133 | (linux_child_pid_to_exec_file): New function. | |
14134 | (elf_64_header_p, elf_64_file_p): New functions. | |
14135 | (siginfo_fixup): New function. | |
14136 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
14137 | give target a chance to convert layout. | |
14138 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
14139 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
14140 | ||
fdeb2a12 DE |
14141 | 2009-05-07 Doug Evans <dje@google.com> |
14142 | ||
14143 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
14144 | (regsets_store_inferior_registers): Ditto. | |
14145 | ||
a6dbe5df PA |
14146 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
14147 | ||
14148 | PR server/10048 | |
14149 | ||
14150 | * linux-low.c (must_set_ptrace_flags): Delete. | |
14151 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
14152 | of the global. | |
14153 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
14154 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 14155 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
14156 | (linux_wait_1): ... not here. |
14157 | ||
5091eb23 DE |
14158 | 2009-04-30 Doug Evans <dje@google.com> |
14159 | ||
9f767825 DE |
14160 | * inferiors.c (started_inferior_callback): New function. |
14161 | (attached_inferior_callback): New function. | |
14162 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
14163 | * server.c (print_started_pid, print_attached_pid): New functions. | |
14164 | (detach_or_kill_for_exit): New function. | |
14165 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
14166 | * server.h (have_started_inferiors_p): Declare. | |
14167 | (have_attached_inferiors_p): Declare. | |
14168 | ||
5091eb23 DE |
14169 | * inferiors.c (remove_process): Fix memory leak, free process. |
14170 | * linux-low.c (linux_remove_process): New function. | |
14171 | (linux_kill): Call it instead of remove_process. | |
14172 | (linux_detach, linux_wait_1): Ditto. | |
14173 | ||
155c8968 PA |
14174 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
14175 | ||
14176 | * configure.srv: Add x86 Windows CE target. | |
14177 | ||
7fe519cb UW |
14178 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
14179 | ||
14180 | * inferiors.c (get_thread_process): Make global. | |
14181 | * server.h (get_thread_process): Add prototype. | |
14182 | * thread-db.c (find_one_thread): Use get_thread_process | |
14183 | instead of current_process. | |
14184 | (thread_db_get_tls_address): Do not crash if called when | |
14185 | thread layer is not yet initialized. | |
14186 | ||
5472f405 UW |
14187 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
14188 | ||
14189 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
14190 | * spu-low.c (current_tid): Rename to ... | |
14191 | (current_ptid): ... this. | |
14192 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
14193 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
14194 | ptid_get_lwp (current_ptid) instead of current_tid. | |
14195 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
14196 | instead of current_tid. Use find_process_pid to verify pid | |
14197 | argument is valid. Pass proper argument to remove_process. | |
14198 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
14199 | (spu_resume): Likewise. | |
14200 | ||
55ac2b99 PA |
14201 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
14202 | ||
14203 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
14204 | variable. | |
14205 | ||
95954743 PA |
14206 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
14207 | ||
14208 | Implement the multiprocess extensions, and add linux multiprocess | |
14209 | support. | |
14210 | ||
14211 | * server.h (ULONGEST): Declare. | |
14212 | (struct ptid, ptid_t): New. | |
14213 | (minus_one_ptid, null_ptid): Declare. | |
14214 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
14215 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
14216 | (struct inferior_list_entry): Change `id' type from unsigned from | |
14217 | to ptid_t. | |
14218 | (struct sym_cache, struct breakpoint, struct | |
14219 | process_info_private): Forward declare. | |
14220 | (struct process_info): Declare. | |
14221 | (current_process): Declare. | |
14222 | (all_processes): Declare. | |
14223 | (initialize_inferiors): Declare. | |
14224 | (add_thread): Adjust to use ptid_t. | |
14225 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
14226 | (add_process, remove_process, find_thread_pid): Declare. | |
14227 | (find_inferior_id): Adjust to use ptid_t. | |
14228 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
14229 | (multi_process): Declare. | |
14230 | (push_event): Adjust to use ptid_t. | |
14231 | (read_ptid, write_ptid): Declare. | |
14232 | (prepare_resume_reply): Adjust to use ptid_t. | |
14233 | (clear_symbol_cache): Declare. | |
14234 | * inferiors.c (all_processes): New. | |
14235 | (null_ptid, minus_one_ptid): New. | |
14236 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
14237 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
14238 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
14239 | parameter. Adjust. | |
14240 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
14241 | (gdb_id_to_thread): Rename to ... | |
14242 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
14243 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
14244 | (loaded_dll, pull_pid_from_list): Adjust. | |
14245 | (add_process, remove_process, find_process_pid) | |
14246 | (get_thread_process, current_process, initialize_inferiors): New. | |
14247 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
14248 | (struct target_waitstatus) <related_pid>: Ditto. | |
14249 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
14250 | return type to int. | |
14251 | (struct target_ops) <join>: Add `pid' argument. | |
14252 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
14253 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
14254 | to ptid. | |
14255 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
14256 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
14257 | (target_pid_to_str): Declare. | |
14258 | * target.c (set_desired_inferior): Adjust to use ptids. | |
14259 | (mywait): Add new `ptid' argument. Adjust. | |
14260 | (target_pid_to_str): New. | |
14261 | * mem-break.h (free_all_breakpoints): Declare. | |
14262 | * mem-break.c (breakpoints): Delelete. | |
14263 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
14264 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
14265 | to use per-process breakpoint list. | |
14266 | (free_all_breakpoints): New. | |
14267 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
14268 | (symbol_cache, all_symbols_looked_up): Delete. | |
14269 | (hexchars): New. | |
14270 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
14271 | read_ptid): New. | |
14272 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
14273 | long to ptid_t. Adjust. Implement W;process and X;process. | |
14274 | (free_sym_cache, clear_symbol_cache): New. | |
14275 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
14276 | * server.c (cont_thread, general_thread, step_thread): Change type | |
14277 | to ptid_t. | |
14278 | (attached): Delete. | |
14279 | (multi_process): New. | |
14280 | (last_ptid): Change type to ptid_t. | |
14281 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
14282 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
14283 | ptid_t. | |
14284 | (discard_queued_stop_replies): Add `pid' argument. | |
14285 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
14286 | changes. Don't reference the `attached' global. | |
14287 | (attach_inferior): Adjust to mywait interface changes. | |
14288 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
14289 | features. Handle and report "multiprocess+". Handle | |
14290 | "qAttached:PID". | |
14291 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
14292 | changes. | |
14293 | (handle_v_kill): New. | |
14294 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
14295 | (handle_v_requests): Allow multiple attaches and runs when | |
14296 | multiprocess extensions are in effect. Handle "vKill". | |
14297 | (myresume): Adjust to use ptids. | |
14298 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
14299 | (handle_status): Adjust to discard_queued_stop_replies interface | |
14300 | change. | |
14301 | (first_thread_of, kill_inferior_callback) | |
14302 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
14303 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
14304 | and detaching from all inferiors. Handle multiprocess packet | |
14305 | variants. | |
14306 | * linux-low.h: Include gdb_proc_service.h. | |
14307 | (struct process_info_private): New. | |
14308 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
14309 | <lwpid_of>: Use ptid_get_lwp. | |
14310 | (get_lwp_thread): Adjust. | |
14311 | (struct lwp_info): Add `dead' member. | |
14312 | (find_lwp_pid): Declare. | |
14313 | * linux-low.c (thread_db_active): Delete. | |
14314 | (new_inferior): Adjust comment. | |
14315 | (inferior_pid): Delete. | |
14316 | (linux_add_process): New. | |
14317 | (handle_extended_wait): Adjust. | |
14318 | (add_lwp): Change unsigned long to ptid. | |
14319 | (linux_create_inferior): Add process to processes table. Adjust | |
14320 | to use ptids. Don't set new_inferior here. | |
14321 | (linux_attach_lwp): Rename to ... | |
14322 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
14323 | it. Adjust to use ptids. | |
14324 | (linux_attach_lwp): New. | |
14325 | (linux_attach): Add process to processes table. Don't set | |
14326 | new_inferior here. | |
14327 | (struct counter): New. | |
14328 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
14329 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
14330 | multiple processes. | |
14331 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
14332 | processes. Remove process from process table. | |
14333 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
14334 | to multiple processes. | |
14335 | (any_thread_of): New. | |
14336 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
14337 | from processes table. | |
14338 | (linux_join): Add `pid' argument. Handle it. | |
14339 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
14340 | Consider dead lwps as not being alive. | |
14341 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
14342 | threads we're not interested in. | |
14343 | (same_lwp, find_lwp_pid): New. | |
14344 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
14345 | ptid_t. Adjust. | |
14346 | (linux_wait_for_event): Rename to ... | |
14347 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
14348 | from int to ptid_t. Adjust. | |
14349 | (linux_wait_for_event): New. | |
14350 | (linux_wait_1): Add `ptid' argument. Change return type to | |
14351 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
14352 | that exit from the process table. | |
14353 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
14354 | Adjust. | |
14355 | (mark_lwp_dead): New. | |
14356 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
14357 | stopping all threads, mark its main lwp as dead. | |
14358 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
14359 | ptids. | |
14360 | (fetch_register, usr_store_inferior_registers) | |
14361 | (regsets_fetch_inferior_registers) | |
14362 | (regsets_store_inferior_registers, linux_read_memory) | |
14363 | (linux_write_memory): Inline `inferior_pid'. | |
14364 | (linux_look_up_symbols): Adjust to use per-process | |
14365 | `thread_db_active'. | |
14366 | (linux_request_interrupt): Adjust to use ptids. | |
14367 | (linux_read_auxv): Inline `inferior_pid'. | |
14368 | (initialize_low): Don't reference thread_db_active. | |
14369 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
14370 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
14371 | (ps_getpid): Return the pid of the current inferior. | |
14372 | * thread-db.c (proc_handle, thread_agent): Delete. | |
14373 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
14374 | per-process data. | |
14375 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
14376 | per-process data. | |
14377 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
14378 | (thread_db_find_new_threads): Ditto. | |
14379 | (thread_db_init): Ditto. | |
14380 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
14381 | processes table. Adjust to use ptids. | |
14382 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
14383 | processes table. | |
14384 | (spu_join, spu_thread_alive): Adjust interface. | |
14385 | (spu_wait): Adjust interface. Remove process from processes | |
14386 | table. Adjust to use ptids. | |
14387 | * win32-low.c (current_inferior_tid): Delete. | |
14388 | (current_inferior_ptid): New. | |
14389 | (debug_event_ptid): New. | |
14390 | (thread_rec): Take a ptid. Adjust. | |
14391 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
14392 | (child_delete_thread): Ditto. | |
14393 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
14394 | processes table. | |
14395 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
14396 | Adjust. | |
14397 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
14398 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
14399 | (win32_kill): Adjust interface. Remove process from processes | |
14400 | table. | |
14401 | (win32_detach): Ditto. | |
14402 | (win32_join): Adjust interface. | |
14403 | (win32_thread_alive): Take a ptid. | |
14404 | (win32_resume): Adjust to use ptids. | |
14405 | (get_child_debug_event): Ditto. | |
14406 | (win32_wait): Adjust interface. Remove exiting process from | |
14407 | processes table. | |
14408 | ||
bd99dc85 PA |
14409 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
14410 | ||
14411 | Non-stop mode support. | |
14412 | ||
14413 | * server.h (non_stop): Declare. | |
14414 | (gdb_client_data, handler_func): Declare. | |
14415 | (delete_file_handler, add_file_handler, start_event_loop): | |
14416 | Declare. | |
14417 | (handle_serial_event, handle_target_event, push_event) | |
14418 | (putpkt_notif): Declare. | |
14419 | * target.h (enum resume_kind): New. | |
14420 | (struct thread_resume): Replace `step' field by `kind' field. | |
14421 | (TARGET_WNOHANG): Define. | |
14422 | (struct target_ops) <wait>: Add `options' argument. | |
14423 | <supports_non_stop, async, start_non_stop>: New fields. | |
14424 | (target_supports_non_stop, target_async): New. | |
14425 | (start_non_stop): Declare. | |
14426 | (mywait): Add `options' argument. | |
14427 | * target.c (mywait): Add `options' argument. Print child exit | |
14428 | notifications here. | |
14429 | (start_non_stop): New. | |
14430 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
14431 | (struct vstop_notif): New. | |
14432 | (notif_queue): New global. | |
14433 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
14434 | (send_next_stop_reply): New. | |
14435 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
14436 | interface changes. | |
14437 | (attach_inferior): In non-stop mode, don't wait for the target | |
14438 | here. | |
14439 | (handle_general_set): Handle QNonStop. | |
14440 | (handle_query): When handling qC, return the current general | |
14441 | thread, instead of the first thread of the list. | |
14442 | (handle_query): If the backend supports non-stop mode, include | |
14443 | QNonStop+ in the qSupported query response. | |
14444 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
14445 | and non-stop mode. | |
14446 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
14447 | (handle_v_stopped): New. | |
14448 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
14449 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
14450 | (queue_stop_reply_callback): New. | |
14451 | (handle_status): Handle non-stop mode. | |
14452 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
14453 | Refactor serial protocol handling from here ... | |
14454 | (process_serial_event): ... to this new function. When GDB | |
14455 | selects any thread, select one here. In non-stop mode, wait until | |
14456 | GDB acks all pending events before exiting. | |
14457 | (handle_serial_event, handle_target_event): New. | |
14458 | * remote-utils.c (remote_open): Install remote_desc in the event | |
14459 | loop. | |
14460 | (remote_close): Remove remote_desc from the event loop. | |
14461 | (putpkt_binary): Rename to... | |
14462 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
14463 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
14464 | (putpkt_notif): New. | |
14465 | (prepare_resume_reply): In non-stop mode, don't change the | |
14466 | general_thread. | |
14467 | * event-loop.c: New. | |
14468 | * Makefile.in (OBJ): Add event-loop.o. | |
14469 | (event-loop.o): New rule. | |
14470 | ||
14471 | * linux-low.h (pid_of): Moved here. | |
14472 | (lwpid_of): New. | |
14473 | (get_lwp_thread): Use lwpid_of. | |
14474 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
14475 | * linux-low.c (pid_of): Delete. | |
14476 | (inferior_pid): Use lwpid_of. | |
14477 | (linux_event_pipe): New. | |
14478 | (target_is_async_p): New. | |
14479 | (delete_lwp): New. | |
14480 | (handle_extended_wait): Use lwpid_of. | |
14481 | (add_lwp): Don't set lwpid field. | |
14482 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
14483 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
14484 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
14485 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
14486 | first. Adjust to linux_wait_for_event interface changes. Use | |
14487 | lwpid_of. | |
14488 | (linux_detach): Don't delete the main lwp here. | |
14489 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
14490 | (status_pending_p): Don't consider explicitly suspended lwps. | |
14491 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
14492 | pointer. Add OPTIONS argument. Change return type to int. Use | |
14493 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
14494 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
14495 | pointer. Add status pointer argument. Return a pid instead of a | |
14496 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
14497 | changes. In non-stop mode, don't switch to a random thread. | |
14498 | (linux_wait): Rename to... | |
14499 | (linux_wait_1): ... this. Add target_options argument, and handle | |
14500 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
14501 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
14502 | clean exit and signal exit code. Don't stop all threads in | |
14503 | non-stop mode. In all-stop mode, only stop all threads when | |
14504 | reporting a stop to GDB. Handle explicit thread stop requests. | |
14505 | (async_file_flush, async_file_mark): New. | |
14506 | (linux_wait): New. | |
14507 | (send_sigstop): Use lwpid_of. | |
14508 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
14509 | interface changes. In non-stop mode, don't switch to a random | |
14510 | thread. | |
14511 | (linux_resume_one_lwp): Use lwpid_of. | |
14512 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
14513 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
14514 | non-stop mode, don't look for pending flag in all threads. | |
14515 | (resume_status_pending_p): Don't consider explicitly suspended | |
14516 | threads. | |
14517 | (my_waitpid): Reimplement. Emulate __WALL. | |
14518 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
14519 | Use lwpid_of. | |
14520 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
14521 | (linux_start_non_stop): New. | |
14522 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
14523 | and linux_start_non_stop. | |
14524 | (initialize_low): Install SIGCHLD handler. | |
14525 | * thread-db.c (thread_db_create_event, find_one_thread) | |
14526 | (thread_db_get_tls_address): Use lwpid_of. | |
14527 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
14528 | (win32_wait): Add `options' argument. | |
14529 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
14530 | (spu_wait): Add `options' argument. | |
14531 | ||
5b1c542e PA |
14532 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
14533 | ||
14534 | Decouple target code from remote protocol. | |
14535 | ||
14536 | * target.h (enum target_waitkind): New. | |
14537 | (struct target_waitstatus): New. | |
14538 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
14539 | target_waitstatus pointer instead of a char pointer. | |
14540 | (mywait): Likewise. | |
14541 | * target.c (mywait): Change prototype to return an unsigned long. | |
14542 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
14543 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
14544 | declarations. | |
14545 | (prepare_resume_reply): Change prototype to take a | |
14546 | target_waitstatus. | |
14547 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
14548 | (last_status, last_ptid): New. | |
14549 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
14550 | pid instead of a signal. | |
14551 | (attach_inferior): Remove "status" and "signal" parameters. | |
14552 | Adjust. | |
14553 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
14554 | not as an address. | |
14555 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
14556 | (handle_v_requests, myresume): Remove "status" and "signal" | |
14557 | parameters. Adjust. | |
14558 | (handle_status): New. | |
14559 | (main): Delete local `status'. Adjust. | |
14560 | * remote-utils.c: Include target.h. | |
14561 | (prepare_resume_reply): Change prototype to take a | |
14562 | target_waitstatus. Adjust. | |
14563 | ||
14564 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
14565 | interface. | |
14566 | * spu-low.c (spu_wait): Adjust. | |
14567 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
14568 | Delete. | |
14569 | (win32_wait): Adjust. | |
14570 | ||
2bd7c093 PA |
14571 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
14572 | ||
14573 | * target.h (struct thread_resume): Delete leave_stopped member. | |
14574 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
14575 | * server.c (start_inferior): Adjust. | |
14576 | (handle_v_cont, myresume): Adjust. | |
14577 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
14578 | interface change, and to removed leave_stopped field. | |
14579 | (resume_ptr): Delete. | |
14580 | (struct thread_resume_array): New. | |
14581 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
14582 | resume interface change. | |
14583 | (linux_continue_one_thread, linux_queue_one_thread) | |
14584 | (resume_status_pending_p): Check if the resume field is NULL | |
14585 | instead of checking the leave_stopped member. | |
14586 | (linux_resume): Adjust to the target resume interface change. | |
14587 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
14588 | change. | |
14589 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
14590 | ||
c35fafde PA |
14591 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
14592 | ||
14593 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
14594 | flag. | |
14595 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
14596 | pending. | |
14597 | (linux_continue_one_thread): Only preserve the stepping flag if | |
14598 | there's a pending breakpoint. | |
14599 | ||
0a59d50b PA |
14600 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
14601 | ||
14602 | * server.c (main): After the inferior having exited, call | |
14603 | remote_close before exiting gdbserver. | |
14604 | ||
f04c6d38 TJB |
14605 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
14606 | ||
14607 | Fix size of FPSCR in Power 7 processors. | |
14608 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
14609 | (PPC_FEATURE_HAS_DFP): New #define. | |
14610 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
14611 | size of the FPSCR. | |
14612 | ||
78e5cee6 PA |
14613 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
14614 | ||
14615 | * server.c (handle_query) Whitespace and formatting. | |
14616 | ||
1b3f6016 PA |
14617 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
14618 | ||
14619 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
14620 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
14621 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
14622 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
14623 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
14624 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
14625 | Makefile.in, configure.ac: Fix whitespace throughout. | |
14626 | * configure: Regenerate. | |
14627 | ||
a07b2135 PA |
14628 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
14629 | ||
14630 | * inferiors.c (find_inferior): Make it safe for the callback | |
14631 | function to delete the currently iterated inferior. | |
14632 | ||
67cc2626 PA |
14633 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
14634 | ||
14635 | * Makefile.in (linuw_low_h): Move higher. | |
14636 | (thread-db.o): Depend on $(linux_low_h). | |
14637 | ||
54a0b537 PA |
14638 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
14639 | ||
14640 | Rename "process" to "lwp" throughout. | |
14641 | ||
14642 | * linux-low.c (all_processes): Rename to... | |
14643 | (all_lwps): ... this. | |
14644 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
14645 | (add_process): Rename to ... | |
14646 | (add_lwp): ... this. Adjust. | |
14647 | (linux_create_inferior): Adjust. | |
14648 | (linux_attach_lwp): Adjust. | |
14649 | (linux_attach): Adjust. | |
14650 | (linux_kill_one_process): Rename to ... | |
14651 | (linux_kill_one_lwp): ... this. Adjust. | |
14652 | (linux_kill): Adjust. | |
14653 | (linux_detach_one_process): Rename to ... | |
14654 | (linux_detach_one_lwp): ... this. Adjust. | |
14655 | (linux_detach): Adjust. | |
14656 | (check_removed_breakpoint): Adjust. | |
14657 | (status_pending_p): Adjust. | |
14658 | (linux_wait_for_process): Rename to ... | |
14659 | (linux_wait_for_lwp): ... this. Adjust. | |
14660 | (linux_wait_for_event): Adjust. | |
14661 | (send_sigstop): Adjust. | |
14662 | (wait_for_sigstop): Adjust. | |
14663 | (stop_all_processes): Rename to ... | |
14664 | (stop_all_lwps): ... this. | |
14665 | (linux_resume_one_process): Rename to ... | |
14666 | (linux_resume_one_lwp): ... this. Adjust. | |
14667 | (linux_set_resume_request, linux_continue_one_thread) | |
14668 | (linux_queue_one_thread, resume_status_pending_p) | |
14669 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
14670 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
14671 | Adjust. | |
14672 | * linux-low.h (get_process): Rename to ... | |
14673 | (get_lwp): ... this. Adjust. | |
14674 | (get_thread_process): Rename to ... | |
14675 | (get_thread_lwp): ... this. Adjust. | |
14676 | (get_process_thread): Rename to ... | |
14677 | (get_lwp_thread): ... this. Adjust. | |
14678 | (struct process_info): Rename to ... | |
14679 | (struct lwp_info): ... this. | |
14680 | (all_processes): Rename to ... | |
14681 | (all_lwps): ... this. | |
14682 | * proc-service.c (ps_lgetregs): Adjust. | |
14683 | * thread-db.c (thread_db_create_event, find_one_thread) | |
14684 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
14685 | ||
0b16c5cf PA |
14686 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
14687 | ||
14688 | * server.c (handle_query): Handle "qAttached". | |
14689 | ||
32de4b9d NS |
14690 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
14691 | ||
14692 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
14693 | GPLv3, update license URL. | |
14694 | ||
2aecd87f DE |
14695 | 2009-03-01 Doug Evans <dje@google.com> |
14696 | ||
93efd302 | 14697 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
14698 | (server_h): Add gdb_signals.h. |
14699 | (signals.o): Update. | |
14700 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
14701 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
14702 | ||
86b1f9c5 PM |
14703 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
14704 | ||
14705 | * remote-utils.c (getpkt): Also generate remote-debug | |
14706 | information if noack_mode is set. | |
14707 | ||
4aa995e1 PA |
14708 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
14709 | ||
14710 | * server.c (handle_query): Report qXfer:siginfo:read and | |
14711 | qXfer:siginfo:write as supported and handle them. | |
14712 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
14713 | * linux-low.c (linux_xfer_siginfo): New. | |
14714 | (linux_target_ops): Set it. | |
14715 | ||
62709adf PA |
14716 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
14717 | ||
14718 | * server.c (gdbserver_usage): Mention --remote-debug. | |
14719 | (main): Accept '--remote-debug' switch. | |
14720 | ||
aef93bd7 DE |
14721 | 2009-01-18 Doug Evans <dje@google.com> |
14722 | ||
14723 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
14724 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
14725 | result is checked and error is returned to user upon failure. | |
14726 | (handle_query): Ditto. Add more checks for result of malloc. | |
14727 | (handle_v_cont): Check result of malloc, report error back to | |
14728 | user upon failure. | |
14729 | (handle_v_run): Ditto. Call freeargv. | |
14730 | * server.h (freeargv): Declare. | |
14731 | * utils.c (freeargv): New fn. | |
14732 | ||
54363045 DE |
14733 | 2009-01-15 Doug Evans <dje@google.com> |
14734 | ||
f626972c DE |
14735 | * gdbreplay.c (perror_with_name): Make arg const char *. |
14736 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 14737 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 14738 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 14739 | |
18aae699 PA |
14740 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
14741 | ||
14742 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
14743 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
14744 | ||
ff703abe JB |
14745 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
14746 | ||
14747 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
14748 | * server.c (gdbserver_version): Likewise. | |
14749 | ||
f21cc1a2 | 14750 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
14751 | |
14752 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 14753 | (handle_extended_wait): Improve comment. |
0e21c1ec | 14754 | |
bca929d3 DE |
14755 | 2008-12-13 Doug Evans <dje@google.com> |
14756 | ||
14757 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
14758 | * server.h (ATTR_MALLOC): New macro. | |
14759 | (xmalloc,xcalloc,xstrdup): Declare. | |
14760 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
14761 | * inferiors.c: Ditto. | |
14762 | * linux-low.c: Ditto. | |
14763 | * mem-break.c: Ditto. | |
14764 | * regcache.c: Ditto. | |
14765 | * remote-utils.c: Ditto. | |
14766 | * server.c: Ditto. | |
14767 | * target.c: Ditto. | |
14768 | * win32-low.c: Ditto. | |
14769 | ||
97438e3f DE |
14770 | 2008-12-12 Doug Evans <dje@google.com> |
14771 | ||
896c7fbb DE |
14772 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
14773 | in debugging printf. | |
14774 | ||
97438e3f DE |
14775 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
14776 | ||
e3b886f8 DE |
14777 | 2008-12-09 Doug Evans <dje@google.com> |
14778 | ||
14779 | * linux-low.h (struct process_info): Delete member tid, unused. | |
14780 | * thread-db.c (find_one_thread): Update. | |
14781 | (maybe_attach_thread): Update. | |
14782 | ||
07e059b5 VP |
14783 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
14784 | ||
889bf7c5 PA |
14785 | * target.h (struct target_ops): Add qxfer_osdata member. |
14786 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
14787 | and dirent.h. | |
14788 | (linux_qxfer_osdata): New functions. | |
14789 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
14790 | callback. | |
14791 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
14792 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
14793 | (buffer_xml_printf): New functions. | |
14794 | * server.h (struct buffer): New. | |
14795 | (buffer_grow_str, buffer_grow_str0): New macros. | |
14796 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
14797 | (buffer_xml_printf): Declare. | |
07e059b5 | 14798 | |
4cab47ab DE |
14799 | 2008-11-24 Doug Evans <dje@google.com> |
14800 | ||
14801 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
14802 | ||
f142445f DJ |
14803 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
14804 | ||
14805 | * server.c (handle_v_run): Always use the supplied argument list. | |
14806 | ||
d0107bb6 | 14807 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
889bf7c5 | 14808 | |
d0107bb6 BW |
14809 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. |
14810 | (xtensa_regmap_table): Add entry for scompare1. | |
889bf7c5 | 14811 | |
2c4ad781 TJB |
14812 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
14813 | ||
14814 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
14815 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
14816 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
14817 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
14818 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
14819 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
14820 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
14821 | XML target descriptions. | |
14822 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
14823 | when inferior is running on an ISA 2.05 or later processor. Add | |
14824 | special case to return offset for full 64-bit slot of FPSCR when | |
14825 | in 32-bits. | |
14826 | ||
dfb64f85 DJ |
14827 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
14828 | ||
14829 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
14830 | (reg-sparc64.o, reg-sparc64.c): New. | |
14831 | * configure.srv (sparc*-*-linux*): New configuration. | |
14832 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
14833 | syscall arguments for SPARC. | |
14834 | (regsets_store_inferior_registers): Likewise. | |
14835 | * linux-sparc-low.c: New file. | |
14836 | ||
66b6e1dd DE |
14837 | 2008-10-21 Doug Evans <dje@google.com> |
14838 | ||
14839 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
14840 | (READLINE_DIR,READLINE_DEP): Delete. | |
14841 | (INTERNAL_CFLAGS): Update. | |
14842 | (LINTFLAGS): Update. | |
14843 | ||
9b710a42 PA |
14844 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
14845 | ||
14846 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
14847 | whole argv from the last run, not just argv[0]. | |
14848 | ||
5822d809 PA |
14849 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
14850 | ||
14851 | * regcache.c (new_register_cache): Return NULL if the register | |
14852 | cache size isn't known yet. | |
14853 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
14854 | ||
74aac56f DJ |
14855 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
14856 | ||
14857 | * configure.srv: Merge MIPS and MIPS64. | |
14858 | ||
400b20f5 MR |
14859 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
14860 | ||
14861 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
14862 | ||
677c5bb1 LM |
14863 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
14864 | ||
14865 | * Makefile.in: Add required vsx dependencies. | |
14866 | ||
14867 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
14868 | Declare init_registers_powerpc_vsx32l. | |
14869 | Declare init_registers_powerpc_vsx64l. | |
14870 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
14871 | (ppc_arch_setup): Check for VSX in hwcap. | |
14872 | (ppc_fill_vsxregset): New function. | |
14873 | (ppc_store_vsxregset): New function. | |
14874 | Add new VSX entry in regset_info target_regsets. | |
14875 | ||
14876 | * configure.srv: Add new VSX dependencies. | |
14877 | ||
a6f3e723 SL |
14878 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
14879 | ||
14880 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
14881 | (remote_open): Set or clear transport_is_reliable. | |
14882 | (putpkt_binary): Don't expect acks in noack mode. | |
14883 | (getpkt): Don't send ack/nac in noack mode. | |
14884 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
14885 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
14886 | qSupported. | |
14887 | (main): Reset noack_mode on every connection. | |
14888 | * server.h (noack_mode): Declare. | |
14889 | ||
a417dc56 RW |
14890 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
14891 | ||
14892 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
14893 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
14894 | ||
3221518c UW |
14895 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
14896 | Daniel Jacobowitz <dan@codesourcery.com> | |
14897 | ||
14898 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
14899 | (usr_store_inferior_registers): Likewise. | |
14900 | (regsets_store_inferior_registers): Likewise. | |
14901 | ||
ec56be1b PA |
14902 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
14903 | Pedro Alves <pedro@codesourcery.com> | |
14904 | ||
14905 | * configure.ac: Check for memmem declaration. | |
14906 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
14907 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
14908 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
14909 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
14910 | * configure, config.in: Regenerate. | |
14911 | ||
2fe5e3ff DE |
14912 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
14913 | ||
14914 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
14915 | (linux_write_memory): Remove declaration of errno. | |
14916 | ||
836acd6d UW |
14917 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
14918 | ||
14919 | * linux-low.c (handle_extended_wait): Do not use "status" | |
14920 | variable uninitialized. | |
14921 | ||
aeba519e PA |
14922 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
14923 | ||
14924 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
14925 | ||
db42f210 PA |
14926 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
14927 | ||
14928 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
14929 | output "thread:TID" in the T stop reply. | |
14930 | ||
14931 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
14932 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
14933 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
14934 | and qsThreadInfo. | |
14935 | (handle_v_requests): If requested, disable support for vCont. | |
14936 | (gdbserver_show_disableable): New. | |
14937 | (main): Handle --disable-packet and --disable-packet=LIST. | |
14938 | ||
14939 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
14940 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
14941 | ||
8e4c5421 CD |
14942 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
14943 | ||
14944 | * server.c (gdbserver_usage): Mention --version. | |
14945 | ||
6e23a804 DJ |
14946 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
14947 | ||
14948 | * Makefile.in (gdbreplay.o): New rule. | |
14949 | ||
90aa6a40 JM |
14950 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
14951 | ||
14952 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
14953 | message, not gdbserver. | |
14954 | ||
c16158bc | 14955 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
889bf7c5 PA |
14956 | Nathan Sidwell <nathan@codesourcery.com> |
14957 | Joseph Myers <joseph@codesourcery.com> | |
c16158bc JM |
14958 | |
14959 | * acinclude.m4: Include ../../config/acx.m4. | |
14960 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
14961 | * configure, config.in: Regenerate. | |
14962 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
14963 | * server.c (gdbserver_version): Print PKGVERSION. | |
14964 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
14965 | (main): Adjust gdbserver_usage calls. | |
14966 | * gdbreplay.c (version, host_name): Add declarations. | |
14967 | (gdbreplay_version, gdbreplay_usage): New. | |
14968 | (main): Accept --version and --help options. | |
14969 | ||
aeb75bf5 DJ |
14970 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
14971 | ||
14972 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
14973 | (arm_breakpoint_at): Handle Thumb. | |
14974 | (the_low_target): Add comment. | |
14975 | ||
76b233dd UW |
14976 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
14977 | ||
14978 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
14979 | ||
08388c79 DE |
14980 | 2008-05-09 Doug Evans <dje@google.com> |
14981 | ||
a3c83fae DE |
14982 | * server.h (decode_search_memory_packet): Declare. |
14983 | * remote-utils.c (decode_search_memory_packet): New fn. | |
14984 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
14985 | (handle_search_memory): New fn. |
14986 | (handle_query): Process qSearch:memory packets. | |
14987 | ||
bb9c3d36 UW |
14988 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
14989 | ||
14990 | * regcache.c (registers_length): Remove. | |
14991 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
14992 | full register packet. | |
14993 | * regcache.h (registers_length): Remove prototype. | |
14994 | * server.h (PBUFSIZ): Define to 16384. | |
14995 | ||
7284e1be UW |
14996 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
14997 | ||
14998 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
14999 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
15000 | powerpc-64l.o, and powerpc-altivec64l.o. | |
15001 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
15002 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
15003 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
15004 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
15005 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
15006 | to srv_xmlfiles. | |
15007 | ||
15008 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
15009 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
15010 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
15011 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
15012 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
15013 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
15014 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
15015 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
15016 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
15017 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
15018 | (clean): Update. | |
15019 | ||
15020 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
15021 | (init_registers_powerpc_32l): ... this new prototype. | |
15022 | (init_registers_powerpc_32): Remove, replace by ... | |
15023 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
15024 | (init_registers_powerpc_e500): Remove, replace by ... | |
15025 | (init_registers_powerpc_e500l): ... this new prototype. | |
15026 | (init_registers_ppc64): Remove, replace by ... | |
15027 | (init_registers_powerpc_64l): ... this new prototype. | |
15028 | (init_registers_powerpc_64): Remove, replace by ... | |
15029 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
15030 | (ppc_num_regs): Set to 73. | |
15031 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
15032 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
15033 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
15034 | (ppc_arch_setup): Update init_registers_... calls. | |
15035 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
15036 | ||
15037 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
15038 | ||
fdc59709 PB |
15039 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
15040 | ||
889bf7c5 PA |
15041 | * acinclude.m4: Add override.m4. |
15042 | * configure: Regenerate. | |
fdc59709 | 15043 | |
c9b2f845 UW |
15044 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
15045 | ||
15046 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
15047 | initial call to init_register_ppc64. | |
15048 | ||
550512b8 UW |
15049 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
15050 | ||
43aaf8b6 PA |
15051 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into |
15052 | single powerpc*-*-linux* case. | |
550512b8 UW |
15053 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. |
15054 | ||
b6430ec3 UW |
15055 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
15056 | ||
15057 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
889bf7c5 | 15058 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml |
b6430ec3 UW |
15059 | from reg_xmlfiles. |
15060 | * linux-ppc-low.c: Include <elf.h>. | |
15061 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
15062 | (ppc_hwcap): New global variable. | |
15063 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
15064 | (ppc_regmap_e500): New global variable. | |
15065 | (ppc_cannot_store_register): Update __SPE__ special case. | |
15066 | (ppc_get_hwcap): New function. | |
15067 | (ppc_arch_setup): Use it to determine whether inferior supports | |
15068 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
15069 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
15070 | Do not access registers if target does not support AltiVec. | |
15071 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
15072 | Do not access registers if target does not support SPE. | |
15073 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
15074 | ||
52fa2412 UW |
15075 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
15076 | ||
15077 | * linux-low.c (disabled_regsets, num_regsets): New. | |
15078 | (use_regsets_p): Delete. | |
15079 | (linux_wait_for_process): Clear disabled_regsets. | |
15080 | (regsets_fetch_inferior_registers): Check and set it. | |
15081 | (regsets_store_inferior_registers): Likewise. | |
15082 | (linux_fetch_registers, linux_store_registers): Do not use | |
15083 | use_regsets_p. | |
15084 | (initialize_low): Allocate disabled_regsets. | |
15085 | ||
e28b3332 DJ |
15086 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
15087 | ||
15088 | * Makefile.in (LIBOBJS): New. | |
15089 | (OBS): Use LIBOBJS. | |
15090 | (memmem.o): New rule. | |
15091 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
15092 | * configure: Regenerated. | |
15093 | ||
4536995d UW |
15094 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
15095 | ||
15096 | * server.c (handle_query): Never return "unsupported" for | |
15097 | qXfer:features:read queries. | |
15098 | ||
221c031f UW |
15099 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
15100 | ||
15101 | * server.c (get_features_xml): Fix inverted condition. | |
15102 | (handle_query): Always support qXfer:feature:read. | |
15103 | ||
ccd213ac DJ |
15104 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
15105 | ||
15106 | * server.c (wrapper_argv): New. | |
15107 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
15108 | trap. | |
15109 | (gdbserver_usage): Document --wrapper. | |
15110 | (main): Parse --wrapper. | |
15111 | ||
6fe305f7 UW |
15112 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
15113 | ||
15114 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
15115 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
15116 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
15117 | (ppc_set_pc): Likewise. | |
15118 | (ppc_arch_setup): New function. | |
15119 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
15120 | of collect_register. | |
889bf7c5 | 15121 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. |
6fe305f7 | 15122 | |
5b0a002e UW |
15123 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
15124 | ||
15125 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
15126 | instead of linux-ppc64-low.o. | |
15127 | * linux-ppc64-low.c: Remove file. | |
15128 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
15129 | (linux-ppc64-low.o): Remove rule. | |
15130 | ||
15131 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
15132 | (init_registers_powerpc_64): Likewise. | |
15133 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
15134 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
15135 | compiled on __powerpc64__. | |
15136 | (ppc_collect_ptrace_register): New function. | |
15137 | (ppc_supply_ptrace_register): New function. | |
15138 | (ppc_breakpoint): Change type to "unsigned int". | |
15139 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
15140 | (the_low_target): Conditionally provide initializers for the | |
889bf7c5 | 15141 | arch_setup member depending on __powerpc64__. Install |
5b0a002e UW |
15142 | collect_ptrace_register and supply_ptrace_register members. |
15143 | ||
9b4b61c8 UW |
15144 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
15145 | ||
15146 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
15147 | * server.c (gdbserver_xmltarget): Define. | |
15148 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
15149 | ||
15150 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
15151 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
15152 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
15153 | srv_xmlfiles and srv_regobj to include all possible choices. | |
15154 | * configure.ac (srv_xmltarget): Remove. | |
15155 | (srv_xmlfiles): Do not add "target.xml". | |
15156 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
15157 | checks for supplementary target information. | |
15158 | * configure: Regenerate. | |
15159 | * Makefile.in (XML_TARGET): Remove. | |
15160 | (target.xml): Remove rule. | |
15161 | (clean): Do not clean up target.xml. | |
15162 | (.PRECIOUS): Do not mention target.xml. | |
15163 | ||
15164 | * target.h (struct target_ops): Remove arch_string member. | |
15165 | * linux-low.c (linux_arch_string): Remove. | |
15166 | (linux_target_ops): Remove arch_string initializer. | |
15167 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
15168 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
15169 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
15170 | * spu-low.c (spu_arch_string): Remove. | |
15171 | (spu_target_ops): Remove arch_string initializer. | |
15172 | * win32-low.c (win32_arch_string): Remove. | |
15173 | (win32_target_ops): Remove arch_string initializer. | |
15174 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
15175 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
15176 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
15177 | ||
ee1a7ae4 UW |
15178 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
15179 | ||
15180 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
15181 | by collect_ptrace_register and supply_ptrace_register hooks. | |
15182 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
15183 | instead of checking for the_low_target.left_pad_xfer. | |
15184 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
15185 | instead of checking for the_low_target.left_pad_xfer. | |
15186 | ||
15187 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
15188 | (s390_supply_ptrace_register): Likewise. | |
15189 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
15190 | (the_low_target): Update. | |
15191 | ||
15192 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
15193 | (ppc_supply_ptrace_register): Likewise. | |
15194 | (the_low_target): Update. | |
15195 | ||
15196 | * linux-i386-low.c (the_low_target): Update. | |
15197 | * linux-x86-64-low.c (the_low_target): Update. | |
15198 | ||
d61ddec4 UW |
15199 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
15200 | ||
15201 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
15202 | reg-s390.o and reg-s390x.o. | |
15203 | ||
15204 | * linux-low.c (new_inferior): New global variable. | |
15205 | (linux_create_inferior, linux_attach): Set it. | |
15206 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
15207 | target has stopped for the first time. | |
15208 | (initialize_low): Do not call the_low_target.arch_setup. | |
15209 | ||
15210 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
15211 | (s390_set_pc): Likewise. | |
15212 | (s390_arch_setup): New function. | |
15213 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
15214 | ||
15215 | * regcache.c (realloc_register_cache): New function. | |
15216 | (set_register_cache): Call it for each existing regcache. | |
15217 | ||
d05b4ac3 UW |
15218 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
15219 | ||
15220 | * server.h (init_registers): Remove prototype. | |
15221 | ||
15222 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
15223 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
15224 | instead of init_registers (). | |
15225 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
15226 | (init_registers_arm_with_iwmmxt): Likewise. | |
15227 | (the_low_target): Add initializer for arch_setup field. | |
15228 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
15229 | (the_low_target): Add initializer for arch_setup field. | |
15230 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
15231 | (the_low_target): Add initializer for arch_setup field. | |
15232 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
15233 | (the_low_target): Add initializer for arch_setup field. | |
15234 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
15235 | (the_low_target): Add initializer for arch_setup field. | |
15236 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
15237 | (the_low_target): Add initializer for arch_setup field. | |
15238 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
15239 | (the_low_target): Add initializer for arch_setup field. | |
15240 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
15241 | (init_registers_mips64_linux): Likewise. | |
15242 | (the_low_target): Add initializer for arch_setup field. | |
15243 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
15244 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
15245 | (the_low_target): Add initializer for arch_setup field. | |
15246 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
15247 | (init_registers_powerpc_64): Likewise. | |
15248 | (the_low_target): Add initializer for arch_setup field. | |
15249 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
15250 | (init_registers_s390x): Likewise. | |
15251 | (the_low_target): Add initializer for arch_setup field. | |
15252 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
15253 | (the_low_target): Add initializer for arch_setup field. | |
15254 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
15255 | (the_low_target): Add initializer for arch_setup field. | |
15256 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
15257 | (the_low_target): Add initializer for arch_setup field. | |
15258 | ||
15259 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
15260 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
15261 | instead of init_registers (). | |
15262 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
15263 | (the_low_target): Add initializer for arch_setup field. | |
15264 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
15265 | (the_low_target): Add initializer for arch_setup field. | |
15266 | ||
15267 | * spu-low.c (init_registers_spu): Add prototype. | |
15268 | (initialize_low): Call initialie_registers_spu () instead of | |
15269 | initialize_registers (). | |
15270 | ||
fd96d250 PA |
15271 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
15272 | ||
15273 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
15274 | packets, if already debugging a process, don't kill it. Return an | |
15275 | error instead. | |
15276 | ||
d41b6bb4 DJ |
15277 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
15278 | ||
15279 | * server.c (handle_query): Correct length check. | |
15280 | ||
5ac588cf PA |
15281 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
15282 | ||
15283 | * win32-low.c (do_initial_child_stuff): Add process handle | |
15284 | parameter. Set current_process_handle and current_process_id from the | |
15285 | parameters. Clear globals. | |
15286 | (win32_create_inferior): Don't set current_process_handle and | |
15287 | current_process_id here. Instead pass them on the call to | |
15288 | do_initial_child_stuff. | |
15289 | (win32_attach): Likewise. | |
15290 | (win32_clear_inferiors): New. | |
15291 | (win32_kill): Don't close the current process handle or the | |
15292 | current thread handle here. Instead call win32_clear_inferiors. | |
15293 | (win32_detach): Don't open a new handle to the process. Call | |
15294 | win32_clear_inferiors. | |
15295 | (win32_join): Don't rely on current_process_handle; open a new | |
15296 | handle using the process id. | |
15297 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
15298 | has exited. | |
15299 | ||
ecd7ecbc DJ |
15300 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
15301 | ||
15302 | * server.c (monitor_show_help): Add "exit". | |
15303 | ||
1525d545 MG |
15304 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
15305 | ||
ecd7ecbc | 15306 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
15307 | (clean): Add reg-xtensa.c. |
15308 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
15309 | * configure.srv (xtensa*-*-linux*) New target. |
15310 | * linux-xtensa-low.c: New. | |
15311 | * xtensa-xtregs.c: New. | |
1525d545 | 15312 | |
59a016f0 PA |
15313 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
15314 | ||
15315 | * hostio.c: Don't include errno.h. | |
15316 | (errno_to_fileio_errno): Move to hostio-errno. | |
15317 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
15318 | error number outputting to the target->hostio_last_error callback. | |
15319 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
15320 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
15321 | calls to hostio_error. | |
15322 | * hostio-errno.c: New. | |
15323 | * server.h (hostio_last_error_from_errno): Declare. | |
15324 | * target.h (target_ops): Add hostio_last_error member. | |
15325 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
15326 | as hostio_last_error handler. | |
889bf7c5 | 15327 | * spu-low.c (spu_target_ops): Likewise. |
59a016f0 PA |
15328 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) |
15329 | (wince_hostio_last_error): New functions. | |
15330 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
15331 | as hostio_last_error handler. | |
15332 | (win32_target_ops) [!_WIN32_WCE]: Register | |
15333 | hostio_last_error_from_errno as hostio_last_error handler. | |
15334 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
15335 | (hostio-errno.o): New rule. | |
15336 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
15337 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
15338 | hostio-errno.o. | |
15339 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
15340 | * configure: Regenerate. | |
15341 | ||
2d717e4f DJ |
15342 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
15343 | ||
15344 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
15345 | (linux_kill, linux_detach): Clean up the process list. | |
15346 | * remote-utils.c (remote_open): Improve port number parsing. | |
15347 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
15348 | is running. | |
15349 | * server.c (extended_protocol): Make static. | |
15350 | (attached): Define earlier. | |
15351 | (exit_requested, response_needed, program_argv): New variables. | |
15352 | (target_running): New. | |
15353 | (start_inferior): Clear attached here. | |
15354 | (attach_inferior): Set attached here. | |
15355 | (require_running): Define. | |
15356 | (handle_query): Use require_running and target_running. Implement | |
15357 | "monitor exit". | |
15358 | (handle_v_attach, handle_v_run): New. | |
15359 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
15360 | (gdbserver_usage): Update. | |
15361 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
15362 | --attach along with other options or after the port. Save | |
15363 | program_argv. Support no initial program. Resynchronize | |
15364 | communication with GDB after an error. Handle "monitor exit". | |
15365 | Use require_running and target_running. Always allow the extended | |
15366 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
15367 | restart in extended mode. | |
15368 | * README: Refer to the GDB manual. Update --attach usage. | |
15369 | ||
7407e2de AS |
15370 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
15371 | ||
15372 | * linux-low.c (STACK_SIZE): Define. | |
15373 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
15374 | (linux_test_for_tracefork): Likewise. | |
15375 | ||
b65d95c5 DJ |
15376 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
15377 | ||
15378 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
15379 | reinsert auto-delete breakpoints. | |
15380 | * mem-break.c (struct breakpoint): Change return type of handler to | |
15381 | int. | |
15382 | (set_breakpoint_at): Update handler type. | |
15383 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
15384 | delete_breakpoint. | |
15385 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
15386 | setting a new one. | |
15387 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
15388 | * mem-break.h (set_breakpoint_at): Update handler type. | |
15389 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
15390 | * win32-low.c (auto_delete_breakpoint): New. | |
15391 | (get_child_debug_event): Use it. | |
15392 | ||
4e799345 DJ |
15393 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
15394 | ||
15395 | * configure.ac: Check for pread and pwrite. | |
15396 | * hostio.c (handle_pread): Fall back to lseek and read. | |
15397 | (handle_pwrite): Fall back to lseek and write. | |
15398 | * config.in, configure: Regenerated. | |
15399 | ||
27524b67 DJ |
15400 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
15401 | ||
15402 | * server.c (myresume): Add own_buf argument. | |
15403 | (main): Update calls. | |
15404 | ||
a20d5e98 DJ |
15405 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
15406 | ||
15407 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
15408 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
15409 | (block_async_io): Delete. | |
15410 | (unblock_async_io): Make static. | |
15411 | (initialize_async_io): New. | |
15412 | * server.c (handle_v_cont): Handle async I/O here. | |
15413 | (myresume): Likewise. Move other common resume tasks here... | |
15414 | (main): ... from here. Call initialize_async_io. Disable async | |
15415 | I/O before the main loop. | |
15416 | * server.h (initialize_async_io): Declare. | |
15417 | (block_async_io, unblock_async_io): Delete prototypes. | |
15418 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
15419 | ||
b79d787e DJ |
15420 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
15421 | ||
15422 | * remote-utils.c (readchar): Allow binary data in received messages. | |
15423 | ||
d97903b2 PA |
15424 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15425 | ||
15426 | * win32-low.c (attaching): New global. | |
15427 | (win32_create_inferior): Clear the `attaching' global. | |
15428 | (win32_attach): Set the `attaching' global. | |
15429 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
15430 | attaching. Only set a breakpoint at the entry point if not | |
15431 | attaching. | |
15432 | ||
311de423 PA |
15433 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15434 | ||
15435 | * server.c (main): Don't report dll events on the initial | |
15436 | connection on attaches. | |
15437 | ||
6c2d16d2 PA |
15438 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15439 | ||
15440 | * server.c (main): Relax numerical bases supported for the pid of | |
15441 | the --attach command line argument. | |
15442 | ||
5ca906e6 PA |
15443 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15444 | ||
15445 | * win32-low.c (win32_attach): Call OpenProcess before | |
15446 | DebugActiveProcess, not after. Add last error output to error | |
15447 | call. | |
15448 | ||
9c6c8194 PA |
15449 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15450 | ||
15451 | * win32-low.c (win32_get_thread_context) | |
15452 | (win32_set_thread_context): New functions. | |
15453 | (thread_rec): Use win32_get_thread_context. | |
15454 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
15455 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
15456 | field. | |
15457 | ||
4d5d1aaa PA |
15458 | 2007-12-03 Leo Zayas |
15459 | Pedro Alves <pedro_alves@portugalmail.pt> | |
15460 | ||
15461 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
15462 | global variables. | |
15463 | (child_add_thread): Minor cleanup. | |
15464 | (child_continue): Resume artificially suspended threads before | |
15465 | calling ContinueDebugEvent. | |
15466 | (suspend_one_thread): New. | |
15467 | (fake_breakpoint_event): New. | |
15468 | (get_child_debug_event): Change return type to int. Check here if | |
15469 | gdb sent an interrupt request. If a soft interrupt was requested, | |
15470 | fake a breakpoint event. Return 0 if there is no event to handle, | |
15471 | and 1 otherwise. | |
15472 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
15473 | Ensure there is a valid event to handle. | |
15474 | (win32_request_interrupt): Add soft interruption method as last | |
15475 | resort. | |
15476 | ||
c436e841 PA |
15477 | 2007-12-03 Leo Zayas |
15478 | Pedro Alves <pedro_alves@portugalmail.pt> | |
15479 | ||
15480 | * win32-low.h (win32_thread_info): Add descriptions to the | |
15481 | structure members. Replace `suspend_count' counter by a | |
15482 | `suspended' flag. | |
15483 | * win32-low.c (thread_rec): Update condition of when to get the | |
15484 | context from the inferior. Rely on ContextFlags being set if it | |
15485 | has already been retrieved. Only suspend the inferior thread if | |
15486 | we haven't already. Warn if that fails. | |
15487 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
15488 | ResumeThread once. Warn if that fails. | |
15489 | ||
e7b5fa67 PA |
15490 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
15491 | ||
15492 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
15493 | has already exited. | |
15494 | ||
a385171d PA |
15495 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
15496 | ||
15497 | * Makefile.in (win32_low_h): New variable. | |
15498 | (win32-low.o): Add dependency on $(win32_low_h). | |
15499 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
15500 | ||
f80c84b3 DJ |
15501 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
15502 | ||
15503 | * hostio.c: Correct copyright year. | |
15504 | ||
a6b151f1 DJ |
15505 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
15506 | ||
15507 | * Makefile.in (OBS): Add hostio.o. | |
15508 | (hostio.o): New rule. | |
15509 | * server.h (handle_vFile): Declare. | |
15510 | * hostio.c: New file. | |
15511 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
15512 | for binary packets. Call handle_vFile. | |
15513 | (main): Update call to handle_v_requests. | |
15514 | ||
f9387fc3 DJ |
15515 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
15516 | ||
15517 | * linux-low.c: Include <sched.h>. | |
15518 | ||
51c2684e DJ |
15519 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
15520 | ||
15521 | * linux-low.c (linux_tracefork_grandchild): New. | |
15522 | (linux_tracefork_child): Use clone. | |
15523 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
15524 | ||
75f83163 JB |
15525 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
15526 | ||
15527 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
15528 | ||
da5898ce DJ |
15529 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
15530 | ||
15531 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
15532 | ||
24a09b5f DJ |
15533 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
15534 | ||
15535 | * inferiors.c (change_inferior_id): Delete. | |
15536 | (add_pid_to_list, pull_pid_from_list): New. | |
15537 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
15538 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
15539 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
15540 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
15541 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
15542 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
15543 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
15544 | (using_threads): Always set to 1. | |
15545 | (handle_extended_wait): New. | |
15546 | (add_process): Do not set TID. | |
15547 | (linux_create_inferior): Set must_set_ptrace_flags. | |
15548 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
15549 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
15550 | (linux_thread_alive): Rename TID argument to LWPID. | |
15551 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
15552 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
15553 | call to dead_thread_notify. Call handle_extended_wait. | |
15554 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
15555 | (send_sigstop): Delete sigstop_sent. | |
15556 | (wait_for_sigstop): Avoid TID. | |
15557 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
15558 | (linux_test_for_tracefork): New. | |
15559 | (linux_lookup_signals): Use thread_db_active and | |
15560 | linux_supports_tracefork_flag. | |
15561 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
15562 | * linux-low.h (get_process_thread): Avoid TID. | |
15563 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
15564 | sigstop_sent. | |
15565 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
15566 | * server.h (change_inferior_id): Delete prototype. | |
15567 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
15568 | * thread-db.c (thread_db_use_events): New. | |
15569 | (find_first_thread): Rename to... | |
15570 | (find_one_thread): ...this. Update callers and messages. Do not | |
15571 | call fatal. Check thread_db_use_events. Do not call | |
15572 | change_inferior_id or new_thread_notify. | |
15573 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
15574 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
15575 | * utils.c (fatal, warning): Correct message prefix. | |
15576 | ||
30ed0a8f DJ |
15577 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
15578 | ||
15579 | * Makefile.in (clean): Remove new files. | |
15580 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
15581 | (powerpc-64.o, powerpc-64.c): New rules. | |
15582 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
15583 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
15584 | with SPE. | |
15585 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
15586 | SPE targets. | |
15587 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
15588 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
15589 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
15590 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
15591 | (target_regsets): Add AltiVec and SPE register sets. | |
15592 | * configure.ac: Check for AltiVec and SPE. | |
15593 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
15594 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
15595 | (target_regsets): Add AltiVec register set. | |
15596 | * configure: Regenerated. | |
15597 | ||
fd462a61 DJ |
15598 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
15599 | ||
15600 | * linux-low.c (O_LARGEFILE): Define. | |
15601 | (linux_read_memory): Use /proc/PID/mem. | |
15602 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
15603 | * configure, config.in: Regenerated. | |
15604 | ||
69f223ed DJ |
15605 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
15606 | ||
15607 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
15608 | single-stepping. | |
15609 | ||
aec18585 PA |
15610 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15611 | ||
15612 | * win32-low.c (create_process): New. | |
15613 | (win32_create_inferior): Use create_process instead of | |
15614 | CreateProcess. If create_process failed retry appending an ".exe" | |
15615 | suffix. Store the GetLastError result immediatelly after | |
15616 | create_process calls and use it on the call to error. | |
15617 | ||
34d86ddd PA |
15618 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
15619 | ||
15620 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
15621 | ||
5a0e3bd0 JB |
15622 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
15623 | ||
15624 | * configure.ac: Switch license to GPLv3. | |
15625 | ||
f88c79e6 MS |
15626 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
15627 | ||
15628 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
15629 | ||
6b3d9b83 PA |
15630 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
15631 | ||
15632 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
15633 | typedef. | |
15634 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
15635 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
15636 | CloseToolhelp32Snapshot. | |
15637 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
15638 | CloseToolhelp32Snapshot. | |
15639 | ||
c588c53c MS |
15640 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
15641 | ||
15642 | * server.c (main): Check for inferior exit before main loop. | |
15643 | ||
aa0403d9 PA |
15644 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
15645 | ||
15646 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
15647 | instead of on tmp_desc. | |
15648 | ||
255e7678 DJ |
15649 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
15650 | Daniel Jacobowitz <dan@codesourcery.com> | |
15651 | ||
15652 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
15653 | (add_thread): Minor cleanups. | |
15654 | (clear_inferiors): Move lower in the file. Clear the DLL | |
15655 | list. | |
15656 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
15657 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
15658 | (xml_escape_text): New. | |
15659 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
15660 | for qSupported. | |
15661 | (handle_v_cont): Report errors. | |
15662 | (gdbserver_version): Update. | |
15663 | (main): Correct size of own_buf. Do not report initial DLL events. | |
15664 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
15665 | (unloaded_dll, xml_escape_text): New. | |
15666 | * win32-low.c (enum target_waitkind): Update comments. | |
15667 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
15668 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
15669 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
15670 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
15671 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
15672 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
15673 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
15674 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
15675 | (get_child_debug_event): Handle DLL events. | |
15676 | (win32_wait): Likewise. | |
15677 | ||
0d37add9 DJ |
15678 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
15679 | ||
15680 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
15681 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
15682 | ||
45e2715e PA |
15683 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
15684 | ||
15685 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
15686 | waiting. | |
15687 | ||
c5674cf1 PA |
15688 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
15689 | ||
15690 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
15691 | ||
2bbe3cc1 DJ |
15692 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
15693 | ||
15694 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
15695 | ||
ae13219e DJ |
15696 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
15697 | ||
15698 | * inferiors.c (change_inferior_id): Add comment. | |
15699 | * linux-low.c (check_removed_breakpoint): Add an early | |
15700 | prototype. Improve debug output. | |
15701 | (linux_attach): Doc update. | |
15702 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
15703 | each process. | |
15704 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
15705 | * linux-low.h (struct process_info): Doc improvement. | |
15706 | * mem-break.c (delete_all_breakpoints): New. | |
15707 | * mem-break.h (delete_all_breakpoints): New prototype. | |
15708 | * thread-db.c (find_first_thread): New. | |
15709 | (thread_db_create_event): Call it instead of | |
15710 | thread_db_find_new_threads. Clean up unused variables. | |
15711 | (maybe_attach_thread): Remove first thread handling. | |
15712 | (thread_db_find_new_threads): Use find_first_thread. | |
15713 | (thread_db_get_tls_address): Likewise. | |
15714 | ||
4105de34 DJ |
15715 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
15716 | ||
15717 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
15718 | (thread_db_create_event): Check for the main thread before adding | |
15719 | a new thread. | |
15720 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
15721 | (thread_db_get_tls_address): Check for new threads. | |
15722 | ||
2b876972 DJ |
15723 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
15724 | ||
15725 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
15726 | * spu-low.c (spu_create_inferior): Likewise. | |
15727 | ||
7a245884 DJ |
15728 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
15729 | ||
15730 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
15731 | * spu-low.c (spu_create_inferior): Likewies. | |
15732 | ||
117ce543 DJ |
15733 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
15734 | ||
15735 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
15736 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
15737 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
15738 | rules. | |
15739 | * configure.srv: Specify XML files and new regformats for MIPS and | |
15740 | MIPS64 GNU/Linux. | |
15741 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
15742 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
15743 | an entry for the restart register. | |
15744 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
15745 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
15746 | register names to match the XML descriptions. | |
15747 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
15748 | restart register instead of $0. | |
15749 | ||
0e7f50da UW |
15750 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
15751 | Markus Deuling <deuling@de.ibm.com> | |
15752 | ||
15753 | * remote-utils.c (decode_xfer_write): New function. | |
15754 | * server.h (decode_xfer_write): Add prototype. | |
15755 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
15756 | qXfer:spu:read and qXfer:spu:write packets. | |
15757 | (main): Pass packet_len to handle_query. | |
15758 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
15759 | * target.h (target_ops): Add qxfer_spu. | |
15760 | ||
374c1d38 UW |
15761 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
15762 | ||
15763 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
15764 | accessing non-seekable spufs files. | |
15765 | ||
bb63802a UW |
15766 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
15767 | ||
889bf7c5 | 15768 | * server.c (handle_query): Add reply for qC packet. |
bb63802a | 15769 | |
7390519e PA |
15770 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15771 | Leo Zayas <lerele@champenstudios@com> | |
15772 | ||
15773 | * server.h (check_remote_input_interrupt_request): New function. | |
15774 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
15775 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
15776 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
15777 | (check_remote_input_interrupt_request): New function. | |
15778 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 15779 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
15780 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
15781 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
15782 | to 250 ms. | |
15783 | (win32_wait): Check for remote interrupt request | |
15784 | with check_remote_input_interrupt_request. | |
15785 | (win32_request_interrupt): New function. | |
15786 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
15787 | ||
34b34921 PA |
15788 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15789 | ||
15790 | * win32-low.c (debug_registers_changed, | |
15791 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
15792 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
15793 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
15794 | (thread_rec): Get context using the low target. | |
15795 | (child_add_thread): Call thread_added on the low target, | |
15796 | which does the same thing. | |
15797 | (regptr): Delete. | |
15798 | (do_initial_child_stuff): Remove debug registers references. | |
15799 | Set context using the low target. Resume threads after | |
15800 | setting the contexts. | |
15801 | (child_continue): Remove dead variable. Remove debug | |
15802 | registers references. | |
15803 | (child_fetch_inferior_registers): Go through the low target. | |
15804 | (do_child_store_inferior_registers): Remove. | |
15805 | (child_store_inferior_registers): Go through the low target. | |
15806 | (win32_resume): Remove debug registers references. | |
15807 | Set context using the low target. | |
15808 | (handle_exception): Change return type to void. Don't record | |
15809 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
15810 | first chance exception. | |
889bf7c5 | 15811 | (get_child_debug_event): Change return type to void. Remove |
34b34921 PA |
15812 | goto loop. Always return after waiting for debug event. |
15813 | (win32_wait): Convert to switch statement. Handle spurious | |
15814 | events. | |
15815 | ||
15816 | * win32-i386-low.c (debug_registers_changed, | |
15817 | debug_registers_used): New. | |
15818 | (initial_stuff): Rename to ... | |
15819 | (i386_initial_stuff): ... this. Clear debug registers | |
15820 | state variables. | |
15821 | (store_debug_registers): Delete. | |
15822 | (i386_get_thread_context): New. | |
15823 | (load_debug_registers): Delete. | |
15824 | (i386_set_thread_context): New. | |
15825 | (i386_thread_added): New. | |
15826 | (single_step): Rename to ... | |
15827 | (i386_single_step): ... this. | |
15828 | (do_fetch_inferior_registers): Rename to ... | |
15829 | (i386_fetch_inferior_register): ... this. | |
15830 | (i386_store_inferior_register): New. | |
15831 | (the_low_target): Adapt to new interface. | |
15832 | ||
15833 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
15834 | (arm_get_thread_context): New. | |
15835 | (arm_set_thread_context): New. | |
15836 | (regptr): New. | |
15837 | (do_fetch_inferior_registers): Rename to ... | |
15838 | (arm_fetch_inferior_register): ... this. | |
15839 | (arm_store_inferior_register): New. | |
15840 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
15841 | (arm_wince_breakpoint_len): Define. | |
15842 | (the_low_target): Adapt to new interface. | |
15843 | ||
15844 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
15845 | load_debug_registers. Add get_thread_context, set_thread_context, | |
15846 | thread_added and store_inferior_register. Rename | |
15847 | fetch_inferior_registers to fetch_inferior_register. | |
15848 | (regptr): Remove declaration. | |
15849 | ||
dd6953e1 PA |
15850 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15851 | ||
15852 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
15853 | * spu-low.c (spu_detach): Likewise. | |
15854 | ||
444d6139 PA |
15855 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15856 | ||
15857 | * target.h (target_ops): Change return type of detach to int. | |
15858 | Add join. | |
15859 | (join_inferior): New. | |
15860 | * server.c (main): Don't skip detach support on mingw32. | |
15861 | If the inferior doesn't support detaching return error. | |
15862 | Call join_inferior instead of using waitpid. | |
15863 | * linux-low.c (linux_join): New. | |
15864 | (linux_target_op): Add linux_join. | |
15865 | * spu-low.c (spu_join): New. | |
15866 | (spu_target_ops): Add spu_join. | |
15867 | * win32-low.c (win32_detach): Adapt to new interface. | |
15868 | Reopen current_process_handle before detaching. Issue a child | |
15869 | resume before detaching. | |
15870 | (win32_join): New. | |
15871 | (win32_target_op): Add win32_join. | |
15872 | ||
1d5315fe PA |
15873 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15874 | ||
15875 | * win32-low.c (win32-attach): Fix return value. | |
15876 | * target.h (target_ops): Describe ATTACH return values. | |
15877 | ||
bf914831 PA |
15878 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15879 | ||
15880 | * win32-low.c (GETPROCADDRESS): Define. | |
15881 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
15882 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
15883 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
15884 | (win32_attach): Use GETPROCADDRESS. | |
15885 | (win32_detach): Likewise. | |
15886 | ||
f72f3e60 PA |
15887 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
15888 | ||
15889 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
15890 | ||
ed50f18f PA |
15891 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
15892 | ||
15893 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
15894 | ||
0c2ead7e DJ |
15895 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
15896 | ||
15897 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
15898 | fields short instead of int. Add explicit padding. | |
15899 | (i387_cache_to_fsave): Remove unnecessary casts. | |
15900 | (i387_fsave_to_cache): Doc fix. | |
15901 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
15902 | ||
73725ff3 DJ |
15903 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
15904 | ||
15905 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
15906 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
15907 | ||
d99f33d8 PA |
15908 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
15909 | ||
15910 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
15911 | arm targets. | |
15912 | ||
68070c10 PA |
15913 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
15914 | ||
2482afc6 | 15915 | * configure.ac: Add errno checking. |
68070c10 PA |
15916 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
15917 | sys/file.h and malloc.h. | |
15918 | (AC_CHECK_DECLS): Add perror. | |
15919 | (srv_mingwce): Handle. | |
2482afc6 | 15920 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
15921 | win32-i386-low.o to srv_tgtobj. |
15922 | (i[34567]86-*-mingw*): Likewise. | |
15923 | (arm*-*-mingw32ce*): Add case. | |
15924 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
15925 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
15926 | [__MINGW32CE__] (strerror): New function. | |
15927 | [__MINGW32CE__] (errno): Define to GetLastError. | |
15928 | [__MINGW32CE__] (COUNTOF): New macro. | |
15929 | (remote_open): Remove extra close call. | |
15930 | * mem-break.c (delete_breakpoint_at): New function. | |
15931 | * mem-break.h (delete_breakpoint_at): Declare. | |
15932 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
15933 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
15934 | [USE_WIN32API] (read, write): Add char* casts. | |
15935 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
15936 | * server.h: Include wincecompat.h on Windows CE. | |
15937 | [HAVE_ERRNO_H]: Check. | |
15938 | (perror): Declare if not declared. | |
15939 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
15940 | (perror_with_name): Remove errno declaration. | |
15941 | * wincecompat.h: New. | |
15942 | * wincecompat.c: New. | |
15943 | * win32-low.h: New. | |
15944 | * win32-arm-low.c: New. | |
15945 | * win32-i386-low.c: New. | |
15946 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
15947 | (OUTMSG2): Make it safe. | |
15948 | (_T): New macro. | |
15949 | (COUNTOF): New macro. | |
15950 | (NUM_REGS): Get it from the low target. | |
15951 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
15952 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
15953 | (thread_rec): Let low target handle debug registers. | |
15954 | (child_add_thread): Likewise. | |
15955 | (child_init_thread_list): Likewise. | |
15956 | (continue_one_thread): Likewise. | |
15957 | (regptr): New. | |
15958 | (do_child_fetch_inferior_registers): Move to ... | |
15959 | * win32-i386-low.c: ... here, and rename to ... | |
15960 | (do_fetch_inferior_registers): ... this. | |
889bf7c5 | 15961 | * win32-low.c (child_fetch_inferior_registers): |
68070c10 PA |
15962 | Go through the low target. |
15963 | (do_child_store_inferior_registers): Use regptr. | |
15964 | (strwinerror): New function. | |
15965 | (win32_create_inferior): Handle Windows CE. | |
15966 | Use strwinerror instead of strerror on Windows error | |
15967 | codes. Add program to the error output. | |
15968 | Don't close the main thread handle on Windows CE. | |
15969 | (win32_attach): Use coredll.dll on Windows CE. | |
15970 | (win32_kill): Close current process and current | |
15971 | thread handles. | |
15972 | (win32_detach): Use coredll.dll on Windows CE. | |
15973 | (win32_resume): Let low target handle debug registers, and | |
15974 | step request. | |
15975 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
15976 | non-existant WSTOPSIG on Windows CE. | |
15977 | (win32_read_inferior_memory): Cast to remove warning. | |
15978 | (win32_arch_string): Go through the low target. | |
15979 | (initialize_low): Call set_breakpoint_data with the low | |
15980 | target's breakpoint. | |
15981 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
15982 | FOP_REGNUM, mappings): Move to ... | |
15983 | * win32-i386-low.c: ... here. | |
15984 | * win32-low.c (win32_thread_info): Move to ... | |
15985 | * win32-low.h: ... here. | |
15986 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
15987 | win32-arm-low.c and wincecompat.c. | |
15988 | (all:): Add $EXEEXT. | |
15989 | (install-only:): Likewise. | |
15990 | (gdbserver:): Likewise. | |
15991 | (gdbreplay:): Likewise. | |
15992 | * config.in: Regenerate. | |
15993 | * configure: Regenerate. | |
15994 | ||
41093d81 PA |
15995 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
15996 | ||
15997 | * win32-low.c: Rename typedef thread_info to | |
15998 | win32_thread_info throughout. | |
15999 | ||
544afa54 PA |
16000 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
16001 | ||
16002 | * win32-i386-low.c: Rename to ... | |
16003 | * win32-low.c: ... this. | |
16004 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
16005 | * Makefile.in: Likewise. | |
16006 | ||
bce7165d PA |
16007 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
16008 | ||
16009 | * remote-utils.c (monitor_output): Constify msg parameter. | |
16010 | * server.h (monitor_output): Likewise. | |
16011 | * win32-i386-low.c (handle_output_debug_string): New. | |
16012 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
16013 | handle_output_debug_string. | |
16014 | (get_child_debug_event): Likewise. | |
16015 | ||
506c7aa0 DJ |
16016 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
16017 | ||
16018 | * server.c (main): Correct strtoul check. | |
16019 | ||
42c81e2a DJ |
16020 | 2007-03-27 Jon Ringle <jon@ringle.org> |
16021 | ||
16022 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
16023 | ||
9453113a DJ |
16024 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
16025 | ||
16026 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
16027 | ||
64a69107 DJ |
16028 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
16029 | ||
16030 | * terminal.h: Check HAVE_SGTTY_H. | |
16031 | ||
16032 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
16033 | |
16034 | * remote-utils.c (remote_open): Print out the assigned port number. | |
16035 | ||
c74d0ad8 DJ |
16036 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
16037 | ||
16038 | * remote-utils.c (monitor_output): New function. | |
16039 | * server.c (debug_threads): Define here. | |
16040 | (monitor_show_help): New function. | |
16041 | (handle_query): Handle qRcmd. | |
16042 | (main): Do not handle 'd' packet. | |
16043 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
16044 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
16045 | of debug_threads. | |
16046 | ||
de7c3b4a PA |
16047 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
16048 | ||
16049 | * Makefile.in (EXEEXT): New. | |
16050 | (clean): Use $(EXEEXT). | |
16051 | ||
ef57601b PA |
16052 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
16053 | ||
16054 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
16055 | and remove enum target_signal parameter. | |
16056 | * linux-low.c (linux_request_interrupt): Rename from | |
16057 | linux_send_signal, and always send SIGINT. | |
16058 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
16059 | and always send SIGINT. | |
16060 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
16061 | of send_signal. | |
16062 | (input_interrupt): Likewise. | |
16063 | ||
820f2bda PA |
16064 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
16065 | ||
16066 | * server.c (get_features_xml): Check if target implemented | |
16067 | arch_string. | |
16068 | * win32-i386-low.c (win32_arch_string): New. | |
16069 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
16070 | ||
ab39bf24 UW |
16071 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
16072 | ||
16073 | * spu-low.c (spu_arch_string): New. | |
16074 | (spu_target_ops): Add spu_arch_string. | |
16075 | ||
61ff6e04 DJ |
16076 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
16077 | ||
16078 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
16079 | * configure.ac: Do not check for terminal.h. | |
16080 | * configure, config.in: Regenerated. | |
16081 | ||
fb1e4ffc DJ |
16082 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
16083 | ||
16084 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
16085 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
16086 | (clean): Update. | |
16087 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
16088 | (arm-with-iwmmxt.c): New. | |
16089 | * config.in, configure: Regenerate. | |
16090 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
16091 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
16092 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
16093 | (arm*-*-linux*): Add iWMMXt and regset support. | |
16094 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
16095 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
16096 | (arm_store_wmmxregset, target_regsets): New. | |
16097 | * server.c (get_features_xml): Take annex argument. Check builtin | |
16098 | XML documents. | |
16099 | (handle_query): Handle multiple annexes. | |
16100 | ||
0f48aa01 DJ |
16101 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
16102 | ||
16103 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
16104 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
16105 | write. | |
16106 | ||
23181151 DJ |
16107 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
16108 | ||
16109 | * linux-i386-low.c (the_low_target): Set arch_string. | |
16110 | * linux-x86-64-low.c (the_low_target): Likewise. | |
16111 | * linux-low.c (linux_arch_string): New. | |
16112 | (linux_target_ops): Add it. | |
16113 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
16114 | * server.c (write_qxfer_response): Use const void * for DATA. | |
16115 | (get_features_xml): New. | |
16116 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
16117 | * target.h (struct target_ops): Add arch_string method. | |
16118 | ||
9d606399 DJ |
16119 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
16120 | Daniel Jacobowitz <dan@codesourcery.com> | |
16121 | ||
16122 | * linux-low.c (linux_kill): Handle being called with no threads. | |
16123 | * win32-i386-low.c (win32_kill): Likewise. | |
16124 | (get_child_debug_event): Clear current_process_handle. | |
16125 | ||
16126 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
16127 | Daniel Jacobowitz <dan@codesourcery.com> |
16128 | ||
16129 | * remote-utils.c (remote_open): Check the type of specified | |
16130 | serial port devices before opening them. | |
16131 | * server.c (main): Kill the inferior if an error occurs during | |
16132 | the first remote_open. | |
16133 | ||
a5e13d24 DJ |
16134 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
16135 | ||
16136 | * README: Update supported targets. | |
16137 | ||
186947f7 DJ |
16138 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
16139 | ||
16140 | * Makefile.in (clean): Remove reg-mips64.c. | |
16141 | (reg-mips64.c, reg-mips64.o): New rules. | |
16142 | * configure.srv: Handle mips64. Include regset support for mips. | |
16143 | * linux-mips-low.c (union mips_register): New. | |
16144 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
16145 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
16146 | (mips_collect_register, mips_supply_register) | |
16147 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
16148 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
16149 | (mips_store_fpregset, target_regsets): New. | |
16150 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
16151 | ||
a13e2c95 UW |
16152 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
16153 | ||
16154 | * configure.srv: Add target "spu*-*-*". | |
16155 | * Makefile.in (clean): Remove reg-spu.c. | |
16156 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
16157 | * spu-low.c: New file. | |
16158 | ||
cb7283db DJ |
16159 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
16160 | ||
16161 | * configure.ac: Correct td_thr_tls_get_addr test. | |
16162 | * configure: Regenerated. | |
16163 | ||
89be2091 DJ |
16164 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
16165 | ||
16166 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
16167 | pass_signals array. | |
16168 | * remote-utils.c (decode_address_to_semicolon): New. | |
16169 | * server.c (pass_signals, handle_general_set): New. | |
16170 | (handle_query): Mention QPassSignals for qSupported. | |
16171 | (main): Call handle_general_set. | |
16172 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
16173 | ||
000ef4f0 DJ |
16174 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
16175 | ||
16176 | * server.c (handle_query): Correct error handling for read_auxv. | |
16177 | ||
b7149293 UW |
16178 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
16179 | ||
16180 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
16181 | and srv_linux_thread_db to yes. | |
16182 | * linux-s390-low.c (s390_fill_gregset): New function. | |
16183 | (target_regsets): Define data structure. | |
16184 | ||
dae5f5cf DJ |
16185 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
16186 | ||
16187 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
16188 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
16189 | * config.in, configure: Regenerated. | |
16190 | * inferiors.c (gdb_id_to_thread): New function. | |
16191 | (gdb_id_to_thread_id): Use it. | |
16192 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
16193 | * linux-low.h (struct process_info): Add th member. | |
16194 | (thread_db_get_tls_address): New prototype. | |
16195 | * remote-utils.c (decode_address): Make non-static. | |
16196 | * server.c (handle_query): Handle qGetTLSAddr. | |
16197 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
16198 | * target.h (struct target_ops): Add get_tls_address. | |
16199 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
16200 | (thread_db_get_tls_address): New. | |
16201 | ||
32ca6d61 DJ |
16202 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
16203 | ||
16204 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
16205 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
16206 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
16207 | (struct pending_signals): Add a siginfo_t. | |
16208 | (linux_wait_for_process): Always set last_status. | |
16209 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
16210 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
16211 | * linux-low.h (struct process_info): Add last_status. | |
16212 | ||
5ffff7c1 DJ |
16213 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
16214 | ||
16215 | * remote-utils.c (try_rle): New function. | |
16216 | (putpkt_binary): Use it. | |
16217 | ||
8695c747 DJ |
16218 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
16219 | ||
16220 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
16221 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
16222 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
16223 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
16224 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
16225 | point registers. | |
16226 | ||
290fadea RS |
16227 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
16228 | ||
16229 | * server.c (terminal_fd): New variable. | |
16230 | (old_foreground_pgrp): Likewise. | |
16231 | (restore_old_foreground_pgrp): New function. | |
16232 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
16233 | and its original foreground group in old_foreground_pgrp. Register | |
16234 | restore_old_foreground_pgrp with atexit(). | |
16235 | ||
9f2e1e63 DJ |
16236 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
16237 | ||
16238 | * server.c (handle_query): Correct qPart to qXfer. | |
16239 | ||
b80864fb DJ |
16240 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
16241 | ||
16242 | * configure.ac: Check for more headers which are missing on | |
16243 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
16244 | * configure.srv: Add Cygwin and mingw32. | |
16245 | * remote-utils.c: Don't include headers unconditionally which | |
16246 | are missing on mingw32. Include <winsock.h> for mingw32. | |
16247 | (remote_open): Adjust for mingw32 support. Flush | |
16248 | standard error after writing to it. | |
16249 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
16250 | (unblock_async_io, enable_async_io, disable_async_io) | |
16251 | (readchar, getpkt): Update for Winsock support. | |
16252 | (prepare_resume_reply): Expect a protocol signal number. | |
16253 | * server.c: Disable <sys/wait.h> on mingw32. | |
16254 | (start_inferior): Adjust for mingw32 support. Flush | |
16255 | standard error after writing to it. | |
16256 | (attach_inferior): Likewise. Use protocol signal | |
16257 | numbers. | |
16258 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
16259 | and names. | |
16260 | * win32-i386-low.c: New file. | |
16261 | * Makefile.in (XM_CLIBS): Set. | |
16262 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
16263 | (win32-i386-low.o): New dependency rule. | |
16264 | * linux-low.c (linux_wait): Use target signal numbers. | |
16265 | * target.h (struct target_ops): Doc fix. | |
16266 | * server.h (target_signal_to_name): New prototype. | |
16267 | * gdbreplay.c: Don't include headers unconditionally which | |
16268 | are missing on mingw32. Include <winsock.h> for mingw32. | |
16269 | (remote_close, remote_open): Adjust for Winsock support. | |
16270 | * configure, config.in: Regenerated. | |
16271 | ||
0876f84a DJ |
16272 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
16273 | ||
16274 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
16275 | (handle_query): Take a packet length argument. Handle | |
16276 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
16277 | the qSupported response. | |
16278 | (main): Update call to handle_query. | |
16279 | ||
01f9e8fa DJ |
16280 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
16281 | ||
16282 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
16283 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
16284 | data. | |
16285 | (putpkt): New wrapper for putpkt_binary. | |
16286 | (readchar): Don't mask off the high bit. | |
16287 | (decode_X_packet): New function. | |
16288 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
16289 | length. Save the length of the incoming packet. Handle 'X'. | |
16290 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
16291 | ||
be2a5f71 DJ |
16292 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
16293 | ||
16294 | * server.c (handle_query): Handle qSupported. | |
16295 | ||
ea025f5f DJ |
16296 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
16297 | ||
16298 | * remote-utils.c (all_symbols_looked_up): New variable. | |
16299 | (look_up_one_symbol): Check it. | |
16300 | * server.h (look_up_one_symbol): New declaration. | |
16301 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
16302 | ||
9308fc88 DJ |
16303 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
16304 | ||
16305 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 16306 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
16307 | (PTRACE_GET_THREAD_AREA): Define. |
16308 | (ps_get_thread_area): New function. | |
16309 | ||
52fb6437 NS |
16310 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
16311 | ||
16312 | * configure.srv (m68k*-*-uclinux*): New target. | |
16313 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
16314 | (linux_resume_one_process): Remove extraneous cast. | |
16315 | (linux_read_offsets): New. | |
16316 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
16317 | * server.c (handle_query): Add qOffsets logic. | |
16318 | * target.h (struct target_ops): Add read_offsets. | |
16319 | ||
21b0f40c DJ |
16320 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
16321 | ||
16322 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
16323 | (PTRACE_GET_THREAD_AREA): Define. | |
16324 | (ps_get_thread_area): New function. | |
16325 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
16326 | (linux-x86-64-low.o): Update. | |
16327 | ||
0050a760 DJ |
16328 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
16329 | ||
16330 | * configure.ac: Remove checks for prfpregset_t. | |
16331 | * gdb_proc_service.h: New file. | |
16332 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
16333 | new "gdb_proc_service.h". | |
16334 | * proc-service.c: Likewise. | |
16335 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
16336 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
16337 | * Makefile.in (gdb_proc_service_h): Updated. | |
16338 | * configure, config.in: Regenerated. | |
16339 | ||
b92a518e DJ |
16340 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
16341 | ||
16342 | * remote-utils.c (prepare_resume_reply): Move declaration | |
16343 | of gdb_id_from_wait to the top of the block. | |
16344 | ||
545587ee DJ |
16345 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
16346 | ||
16347 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
16348 | from the target before filling it. | |
16349 | ||
9db87ebd DJ |
16350 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
16351 | ||
16352 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
16353 | attach. | |
16354 | ||
dd24457d DJ |
16355 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
16356 | ||
16357 | * Makefile.in (OBS): Add version.o. | |
16358 | (STAGESTUFF): Delete. | |
16359 | (version.o): Add dependencies. | |
16360 | (version.c): Replace rule. | |
16361 | (clean): Remove version.c. | |
16362 | * server.c (gdbserver_version): New. | |
16363 | (gdbserver_usage): Use printf. | |
16364 | (main): Handle --version and --help. | |
16365 | * server.h (version, host_name): Add declarations. | |
16366 | ||
6f0f660e EZ |
16367 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
16368 | ||
889bf7c5 PA |
16369 | * linux-arm-low.c: |
16370 | * linux-arm-low.c: | |
16371 | * inferiors.c: | |
16372 | * i387-fp.h: | |
16373 | * i387-fp.c: | |
16374 | * gdbreplay.c: | |
16375 | * regcache.c: | |
16376 | * proc-service.c: | |
16377 | * mem-break.h: | |
16378 | * mem-break.c: | |
16379 | * linux-x86-64-low.c: | |
16380 | * linux-sh-low.c: | |
16381 | * linux-s390-low.c: | |
16382 | * linux-ppc64-low.c: | |
16383 | * linux-ppc-low.c: | |
16384 | * linux-mips-low.c: | |
16385 | * linux-m68k-low.c: | |
16386 | * linux-m32r-low.c: | |
16387 | * linux-low.h: | |
16388 | * linux-low.c: | |
16389 | * linux-ia64-low.c: | |
16390 | * linux-i386-low.c: | |
16391 | * linux-crisv32-low.c: | |
16392 | * thread-db.c: | |
16393 | * terminal.h: | |
16394 | * target.h: | |
16395 | * target.c: | |
16396 | * server.h: | |
16397 | * server.c: | |
16398 | * remote-utils.c: | |
16399 | * regcache.h: | |
16400 | * utils.c: | |
16401 | * Makefile.in: | |
16402 | * configure.ac: | |
6f0f660e EZ |
16403 | * gdbserver.1: Add (C) after Copyright. Update the FSF |
16404 | address. | |
16405 | ||
9d1fb177 DJ |
16406 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
16407 | ||
16408 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
16409 | (arm_breakpoint_at): Recognize both breakpoints. | |
16410 | (the_low_target): Use the correct breakpoint instruction. | |
16411 | ||
011a70c2 DJ |
16412 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
16413 | ||
16414 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
16415 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
16416 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
16417 | (the_low_target): Update. | |
16418 | ||
7fb85e41 AS |
16419 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
16420 | ||
16421 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
16422 | ||
16423 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
16424 | (ia64_num_regs): Reduce to 462. | |
16425 | ||
3db0444b DJ |
16426 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
16427 | ||
16428 | * acinclude.m4: Correct quoting. | |
16429 | * aclocal.m4: Regenerated. | |
16430 | ||
16431 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
16432 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
16433 | (thread_db_init): Call thread_db_err_str. | |
16434 | * configure.ac: Check for TD_VERSION. | |
16435 | * config.in, configure: Regenerated. | |
16436 | ||
bee0189a DJ |
16437 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
16438 | ||
16439 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
16440 | ||
e9d25b98 DJ |
16441 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
16442 | ||
16443 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
16444 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
16445 | * config.in, configure: Regenerated. | |
16446 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
16447 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
16448 | HAVE_PTRACE_GETREGS. | |
16449 | * linux-low.c (regsets_fetch_inferior_registers) | |
16450 | (regsets_store_inferior_registers): Only return 0 if we processed | |
16451 | GENERAL_REGS. | |
16452 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
16453 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
16454 | ||
a06660f7 DJ |
16455 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
16456 | ||
16457 | * inferiors.c (struct thread_info): Add gdb_id. | |
16458 | (add_thread): Add gdb_id argument. | |
16459 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
16460 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
16461 | calls to add_thread. | |
16462 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
16463 | * server.c (handle_query): Use thread_to_gdb_id. | |
16464 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
16465 | * server.h (add_thread): Update prototype. | |
16466 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
16467 | prototypes. | |
16468 | ||
5a1f5858 DJ |
16469 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
16470 | ||
16471 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
16472 | left-padded registers. | |
16473 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
16474 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
16475 | ||
e122f1f5 SE |
16476 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
16477 | ||
16478 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
16479 | * configure: Regenerate. | |
16480 | * config.in: Regenerate. | |
16481 | * server.h (NEED_DECLARATION_STRERROR): | |
16482 | Replace with !HAVE_DECL_STRERROR. | |
16483 | ||
d592fa2f DJ |
16484 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
16485 | ||
16486 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
16487 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
16488 | * server.c (myresume): Likewise. | |
16489 | * target.c (set_desired_inferior): Likewise. | |
16490 | ||
ccbd4912 MK |
16491 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
16492 | ||
16493 | * configure.ac: Simplify and improve check for socklen_t. | |
16494 | * configure, config.in: Regenerate. | |
16495 | ||
f450004a DJ |
16496 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
16497 | ||
16498 | * acconfig.h: Remove. | |
16499 | * configure.ac: Add a test for socklen_t. Use three-argument | |
16500 | AC_DEFINE throughout. | |
16501 | * config.in: Regenerated using autoheader 2.59. | |
16502 | * configure: Regenerated. | |
16503 | ||
16504 | * gdbreplay.c (socklen_t): Provide a default. | |
16505 | (remote_open): Use socklen_t. | |
16506 | * remote-utils.c (socklen_t): Provide a default. | |
16507 | (remote_open): Use socklen_t. | |
16508 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
16509 | unsigned char. | |
16510 | ||
16511 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
16512 | char for buffers. | |
16513 | * linux-low.c (linux_read_memory, linux_write_memory) | |
16514 | (linux_read_auxv): Likewise. | |
16515 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
16516 | (check_mem_write): Likewise. | |
16517 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
16518 | Likewise. | |
16519 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
16520 | (registers_from_string, register_data): Likewise. | |
16521 | * server.c (handle_query, main): Likewise. | |
16522 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
16523 | (decode_M_packet): Likewise. | |
16524 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
16525 | * target.h (struct target_ops): Update read_memory, write_memory, | |
16526 | and read_auxv. | |
16527 | (read_inferior_memory, write_inferior_memory): Update. | |
16528 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
16529 | to unsigned char *. | |
16530 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
16531 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
16532 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
16533 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
16534 | read_inferior_memory and the_low_target->breakpoint. | |
16535 | ||
eee84df1 DJ |
16536 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
16537 | ||
16538 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
16539 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
16540 | * configure.srv: Add powerpc64-*-linux*. | |
16541 | * linux-ppc64-low.c: New file. | |
16542 | ||
45b134e5 OF |
16543 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
16544 | ||
16545 | * linux-cris-low.c: New file with support for CRIS. | |
16546 | * linux-crisv32-low.c: Ditto for CRISv32. | |
16547 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
16548 | (clean): Add reg-cris.c and reg-crisv32.c. | |
889bf7c5 | 16549 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, |
45b134e5 OF |
16550 | reg-crisv32.o, and reg-crisv32.c to make rules. |
16551 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
16552 | recognized targets. | |
16553 | ||
48d93c75 UW |
16554 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
16555 | ||
16556 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
16557 | of sizeof (PTRACE_XFER_TYPE). | |
16558 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
16559 | ||
e013ee27 OF |
16560 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
16561 | ||
889bf7c5 | 16562 | * target.h (struct target_ops): Add insert_watchpoint, |
e013ee27 OF |
16563 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function |
16564 | pointers for hardware watchpoint support. | |
16565 | * linux-low.h (struct linux_target_ops): Ditto. | |
16566 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
16567 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
16568 | to linux_target_ops. | |
16569 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
16570 | reply packet. | |
16571 | * server.c (main): Recognize 'Z' and 'z' packets. | |
16572 | ||
b0ded00b UW |
16573 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
16574 | ||
16575 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
16576 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
16577 | (the_low_target): Add new members. | |
16578 | ||
8643e2ad DJ |
16579 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
16580 | ||
16581 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
16582 | all_threads. | |
16583 | ||
fc620387 DJ |
16584 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
16585 | ||
16586 | * server.c (start_inferior): Change return type to int. | |
16587 | (attach_inferior): Change sigptr to int *. | |
16588 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
16589 | (main): Change signal to int. | |
16590 | ||
16591 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
16592 | |
16593 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
16594 | * configure.srv: Add m32r*-*-linux*. | |
16595 | * linux-m32r-low.c: New file. | |
16596 | ||
e0e76420 DJ |
16597 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
16598 | ||
16599 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
16600 | ||
a1928bad DJ |
16601 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
16602 | ||
16603 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
16604 | Take unsigned long arguments for PIDs. | |
16605 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
16606 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
16607 | (wait_for_sigstop, linux_resume_one_process) | |
16608 | (regsets_fetch_inferior_registers, linux_send_signal) | |
16609 | (linux_read_auxv): Likewise. Update the types of variables holding | |
16610 | PIDs. Update format string specifiers. | |
16611 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
16612 | * remote-utils.c (prepare_resume_reply): Likewise. | |
16613 | * server.c (cont_thread, general_thread, step_thread) | |
16614 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
16615 | unsigned long. | |
16616 | (handle_query): Update format specifiers. | |
16617 | (handle_v_cont, main): Use strtoul for thread IDs. | |
16618 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
16619 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
16620 | (general_thread, step_thread, thread_from_wait) | |
16621 | (old_thread_from_wait): Update. | |
16622 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
16623 | (struct target_ops): Use unsigned long for arguments to attach and | |
16624 | thread_alive. | |
16625 | ||
dcdb98d2 DJ |
16626 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
16627 | ||
16628 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
16629 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
16630 | <agriffis@toolchain.org>. | |
16631 | * aclocal.m4, configure: Regenerated. | |
16632 | ||
bec39cab AC |
16633 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
16634 | ||
16635 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
16636 | * configure: Re-generate. | |
16637 | ||
434c4c77 DJ |
16638 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
16639 | ||
16640 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
16641 | LIBS when finished. | |
16642 | * aclocal.m4: Regenerated. | |
16643 | * configure: Regenerated. | |
16644 | ||
db1d3e1b AS |
16645 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
16646 | ||
16647 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
16648 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
16649 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
16650 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
16651 | (m68k_breakpoint_at): New. Add to the_low_target. | |
16652 | ||
16653 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
16654 | srv_linux_thread_db to yes. | |
16655 | ||
43360365 JB |
16656 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
16657 | ||
16658 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
16659 | (ARCH_SET_FS): Likewise. | |
16660 | (ARCH_GET_FS): Likewise. | |
16661 | (ARCH_GET_GS): Likewise. | |
16662 | ||
fd500816 DJ |
16663 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
16664 | ||
16665 | * linux-i386-low.c (ps_get_thread_area): New. | |
16666 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
16667 | * linux-low.c: Include <sys/syscall.h>. | |
16668 | (linux_kill_one_process): Don't kill the first thread here. | |
16669 | (linux_kill): Kill the first thread here. | |
16670 | (kill_lwp): New function. | |
16671 | (send_sigstop, linux_send_signal): Use it. | |
16672 | * proc-service.c: Clean up #ifdefs. | |
16673 | (fpregset_info): Delete. | |
16674 | (ps_lgetregs): Update and enable implementation. | |
16675 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
16676 | implementations. | |
16677 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
16678 | (input_interrupt): Print a clearer message. | |
16679 | (async_io_enabled): New variable. | |
16680 | (enable_async_io, disable_async_io): Use it. Update comments. | |
16681 | (look_up_one_symbol): Use the symbol cache. | |
16682 | * thread-db.c (thread_db_look_up_symbols): New function. | |
16683 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
16684 | ||
f6de3c42 DJ |
16685 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
16686 | ||
16687 | * configure.in: Test for -rdynamic. | |
16688 | * configure: Regenerated. | |
16689 | * Makefile (INTERNAL_LDFLAGS): New. | |
16690 | (gdbserver, gdbreplay): Use it. | |
16691 | ||
2c0fc042 AC |
16692 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
16693 | ||
16694 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
16695 | ||
075b3282 DJ |
16696 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
16697 | ||
16698 | * linux-low.c (linux_wait): Clear all_processes list also. | |
16699 | ||
fa6a77dc DJ |
16700 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
16701 | ||
16702 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
16703 | errno. | |
16704 | ||
6d782a97 DJ |
16705 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
16706 | ||
16707 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
16708 | ||
3a7fb99b DJ |
16709 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
16710 | ||
16711 | * server.c (main): Print child status or termination signal from | |
16712 | variable 'signal', not 'sig'. | |
16713 | ||
c3e735a6 DJ |
16714 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
16715 | ||
16716 | * linux-low.c (linux_read_memory): Change return type to | |
16717 | int. Check for and return error from ptrace(). | |
16718 | * target.c (read_inferior_memory): Change return type to int. Pass | |
16719 | back return status from the_target->read_memory(). | |
16720 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
16721 | Update comment. | |
16722 | (read_inferior_memory): Adapt prototype. | |
16723 | * server.c (main): Return an error packet if | |
16724 | read_inferior_memory() returns an error. | |
16725 | ||
a59d1c82 DJ |
16726 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
16727 | ||
16728 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
16729 | Unify with other clean targets. | |
16730 | ||
dc3f8883 DJ |
16731 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
16732 | ||
16733 | * server.c (handle_v_cont): Call set_desired_inferior. | |
16734 | ||
89a208da DJ |
16735 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
16736 | ||
16737 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
16738 | ||
62ea82f5 DJ |
16739 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
16740 | ||
16741 | * linux-low.c (linux_wait): Unblock async I/O. | |
16742 | (linux_resume): Block and enable async I/O. | |
16743 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
16744 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
16745 | ||
6910d122 DJ |
16746 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
16747 | ||
16748 | * remote-utils.c (remote_open): Print a status notice after | |
16749 | opening a TCP port. | |
16750 | * server.c (attach_inferior): Print a status notice after | |
16751 | attaching. | |
16752 | ||
16753 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
16754 | |
16755 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
16756 | ||
c89dc5d4 DJ |
16757 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
16758 | ||
16759 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
16760 | error packet. | |
16761 | * server.c, target.h: Update copyright years. | |
16762 | ||
4b8dad4a RM |
16763 | 2004-02-25 Roland McGrath <roland@redhat.com> |
16764 | ||
16765 | * target.h (struct target_ops): New member `read_auxv'. | |
16766 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
16767 | * linux-low.c (linux_read_auxv): New function. | |
16768 | (linux_target_ops): Initialize `read_auxv' member to that. | |
16769 | ||
d7446758 JB |
16770 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
16771 | ||
16772 | Committed by Jim Blandy <jimb@redhat.com>. | |
16773 | ||
16774 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 16775 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
16776 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
16777 | ||
5544ad89 DJ |
16778 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
16779 | ||
16780 | * linux-low.c: Update copyright year. | |
16781 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
16782 | (linux_set_resume_request, linux_queue_one_thread) | |
16783 | (resume_status_pending_p): New functions. | |
16784 | (linux_continue_one_thread): Use process->resume. | |
16785 | (linux_resume): Only resume threads if there are no pending events. | |
16786 | * linux-low.h (struct process_info): Add resume request | |
16787 | pointer. | |
16788 | ||
2a68b70e DJ |
16789 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
16790 | ||
16791 | * regcache.c (new_register_cache): Clear the allocated register | |
16792 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
16793 | ||
64386c31 DJ |
16794 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
16795 | ||
16796 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
16797 | argument. | |
16798 | (linux_wait): Update call. | |
16799 | (resume_ptr): New static variable. | |
16800 | (linux_continue_one_thread): Renamed from | |
16801 | linux_continue_one_process. Use resume_ptr. | |
16802 | (linux_resume): Use linux_continue_one_thread. | |
16803 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
16804 | (myresume): New function. | |
16805 | (main): Handle 'v' case. | |
16806 | * target.h (struct thread_resume): New type. | |
16807 | (struct target_ops): Change argument of "resume" to struct | |
16808 | thread_resume *. | |
16809 | (myresume): Delete macro. | |
16810 | ||
c938e9b0 L |
16811 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
16812 | ||
16813 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
16814 | (uninstall): Support DESTDIR. | |
16815 | ||
7f313d07 BC |
16816 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
16817 | ||
16818 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
16819 | ||
3b2fc2ea DJ |
16820 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
16821 | ||
16822 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
16823 | (the_low_target): Add arm_reinsert_addr. | |
16824 | ||
1c0a559e MK |
16825 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
16826 | ||
16827 | * mem-break.c: Remove whitespace at end of file. | |
16828 | ||
43d5792c DJ |
16829 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
16830 | ||
16831 | * configure.in: Check whether we need to prototype strerror. | |
16832 | * server.h: Optionally prototype strerror. | |
16833 | * gdbreplay.c (perror_with_name): Use strerror. | |
16834 | * linux-low.c (linux_attach_lwp): Use strerror. | |
16835 | * utils.c (perror_with_name): Use strerror. | |
16836 | * config.in, configure: Regenerated. | |
16837 | ||
c8a86edf DJ |
16838 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
16839 | ||
16840 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
16841 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
16842 | ||
73d37363 DJ |
16843 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
16844 | ||
16845 | * Makefile.in (SFILES): Update. | |
16846 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
16847 | low-sun3.c: Remove files. | |
16848 | ||
6ad8ae5c DJ |
16849 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
16850 | ||
16851 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
16852 | (linux_detach_one_process, linux_detach): New functions. | |
16853 | (linux_target_ops): Add linux_detach. | |
16854 | * server.c (main): Handle 'D' packet. | |
16855 | * target.h (struct target_ops): Add "detach" member. | |
16856 | (detach_inferior): Define. | |
16857 | ||
1581182a MK |
16858 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
16859 | ||
16860 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
16861 | * configure.srv: Accept i[34567]86 variants. | |
16862 | ||
e5379b03 DJ |
16863 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
16864 | ||
16865 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
16866 | (linux_resume_one_process): Call check_removed_breakpoint. | |
16867 | (linux_send_signal): New function. | |
16868 | (linux_target_ops): Add linux_send_signal. | |
16869 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
16870 | of kill. | |
16871 | * target.h (struct target_ops): Add send_signal. | |
16872 | ||
2ff29de4 JB |
16873 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
16874 | ||
16875 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
16876 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
16877 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
16878 | away part of the register's value. | |
16879 | ||
254787d4 DJ |
16880 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
16881 | ||
16882 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
16883 | (linux_wait_for_event, linux_init_signals): Likewise. | |
16884 | ||
94e10508 DJ |
16885 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
16886 | ||
16887 | * configure.in: Check for stdlib.h. | |
16888 | * configure: Regenerated. | |
16889 | * config.in: Regenerated. | |
16890 | ||
4c0711e0 DJ |
16891 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
16892 | ||
16893 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
16894 | ||
ef66e766 AC |
16895 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
16896 | ||
16897 | * Makefile.in: Remove obsolete code. | |
16898 | ||
a1358604 DJ |
16899 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
16900 | ||
16901 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
16902 | defined(PT_FPR0_HI). | |
16903 | ||
23ce3b1c DJ |
16904 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
16905 | ||
16906 | * linux-arm-low.c (arm_num_regs): Increase. | |
16907 | (arm_regmap): Include status register. | |
16908 | ||
16909 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
16910 | ||
16911 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
16912 | ||
a9fa9f7d DJ |
16913 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
16914 | ||
16915 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
16916 | the new PID. | |
16917 | (unstopped_p, linux_signal_pid): Remove. | |
16918 | (linux_target_ops): Remove linux_signal_pid. | |
16919 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
16920 | global instead of target method. | |
16921 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
16922 | for create_inferior. | |
16923 | * server.c (signal_pid): New variable. | |
16924 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 16925 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
16926 | (attach_inferior): Set signal_pid. |
16927 | ||
17574093 DJ |
16928 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
16929 | ||
16930 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
16931 | ||
16932 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
16933 | ||
16934 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
16935 | default for this. | |
16936 | ||
16937 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
16938 | ||
16939 | * Makefile.in: Make chill references obsolete. | |
16940 | ||
16941 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
16942 | ||
16943 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
16944 | * configure: Regenerate. | |
16945 | * config.in: Regenerate. | |
16946 | ||
16947 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
16948 | ||
16949 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
16950 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
16951 | ||
16952 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
16953 | ||
4b8dad4a | 16954 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
16955 | byte offsets instead of an array of indexes. |
16956 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
16957 | ||
16958 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
16959 | ||
16960 | * regcache.c: Add comment. | |
16961 | ||
16962 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
16963 | ||
16964 | * thread-db.c: New file. | |
16965 | * proc-service.c: New file. | |
16966 | * acinclude.m4: New file. | |
16967 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
16968 | proc-service.o, and thread-db.o. | |
16969 | (linux-low.o): Add USE_THREAD_DB. | |
16970 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
16971 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
16972 | * aclocal.m4: Regenerated. | |
16973 | * config.in: Regenerated. | |
16974 | * configure: Regenerated. | |
16975 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
16976 | thread_db.h, and linux/elf.h headrs. | |
16977 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
16978 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
16979 | Check for -lthread_db and thread support. | |
16980 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
16981 | PowerPC, and SuperH. | |
16982 | * i387-fp.c: Constify arguments. | |
16983 | * i387-fp.h: Likewise. | |
16984 | * inferiors.c: (struct thread_info): Renamed from | |
16985 | `struct inferior_info'. Remove PID member. Use generic inferior | |
16986 | list header. All uses updated. | |
16987 | (inferiors, signal_pid): Removed. | |
16988 | (all_threads): New variable. | |
16989 | (get_thread): Define. | |
16990 | (add_inferior_to_list): New function. | |
16991 | (for_each_inferior): New function. | |
16992 | (change_inferior_id): New function. | |
16993 | (add_inferior): Removed. | |
16994 | (remove_inferior): New function. | |
16995 | (add_thread): New function. | |
16996 | (free_one_thread): New function. | |
16997 | (remove_thread): New function. | |
16998 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
16999 | (find_inferior): New function. | |
17000 | (find_inferior_id): New function. | |
17001 | (inferior_target_data): Update argument type. | |
17002 | (set_inferior_target_data): Likewise. | |
17003 | (inferior_regcache_data): Likewise. | |
17004 | (set_inferior_regcache_data): Likewise. | |
17005 | * linux-low.c (linux_bp_reinsert): Remove. | |
17006 | (all_processes, stopping_threads, using_thrads) | |
17007 | (struct pending_signals, debug_threads, pid_of): New. | |
17008 | (inferior_pid): Replace with macro. | |
17009 | (struct inferior_linux_data): Remove. | |
17010 | (get_stop_pc, add_process): New functions. | |
17011 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
17012 | Use add_process and add_thread. | |
17013 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
17014 | add_process and add_thread. Set stop_expected for new threads. | |
17015 | (linux_attach): New function. | |
17016 | (linux_kill_one_process): New function. | |
17017 | (linux_kill): Kill all LWPs. | |
17018 | (linux_thread_alive): Use find_inferior_id. | |
17019 | (check_removed_breakpoints, status_pending_p): New functions. | |
17020 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
17021 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
17022 | struct for the found process. | |
17023 | (linux_wait_for_event): New function. | |
17024 | (linux_wait): Use it. Support LWPs. | |
17025 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
17026 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
17027 | (linux_resume): Support LWPs. | |
17028 | (REGISTER_RAW_SIZE): Remove. | |
17029 | (fetch_register): Use register_size instead. Call supply_register. | |
17030 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
17031 | Fix recursive case. | |
17032 | (regsets_fetch_inferior_registers): Improve error message. | |
17033 | (regsets_store_inferior_registers): Add debugging. | |
17034 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
17035 | (unstopped_p, linux_signal_pid): New functions. | |
17036 | (linux_target_ops): Add linux_signal_pid. | |
17037 | (linux_init_signals): New function. | |
17038 | (initialize_low): Call it. Initialize using_threads. | |
17039 | * regcache.c (inferior_regcache_data): Add valid | |
17040 | flag. | |
17041 | (get_regcache): Fetch registers lazily. Add fetch argument | |
17042 | and update all callers. | |
17043 | (regcache_invalidate_one, regcache_invalidate): New | |
17044 | functions. | |
17045 | (new_register_cache): Renamed from create_register_cache. | |
17046 | Return the new regcache. | |
17047 | (free_register_cache): Change argument to a void *. | |
17048 | (registers_to_string, registers_from_string): Call get_regcache | |
17049 | with fetch flag set. | |
17050 | (register_data): Make static. Pass fetch flag to get_regcache. | |
17051 | (supply_register): Call get_regcache with fetch flag clear. | |
17052 | (collect_register): Call get_regcache with fetch flag set. | |
17053 | (collect_register_as_string): New function. | |
17054 | * regcache.h: Update. | |
17055 | * remote-utils.c (putpkt): Flush after debug output and use | |
17056 | stderr. | |
17057 | Handle input interrupts while waiting for an ACK. | |
17058 | (input_interrupt): Use signal_pid method. | |
17059 | (getpkt): Flush after debug output and use stderr. | |
17060 | (outreg): Use collect_register_as_string. | |
17061 | (new_thread_notify, dead_thread_notify): New functions. | |
17062 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
17063 | and general_thread. | |
17064 | (look_up_one_symbol): Flush after debug output. | |
17065 | * server.c (step_thread, server_waiting): New variables. | |
17066 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
17067 | (attach_inferior): Update call to mywait. | |
17068 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
17069 | (main): Don't fetch/store registers explicitly. Use | |
17070 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
17071 | calls to mywait. | |
17072 | * server.h: Update. | |
17073 | (struct inferior_list, struct_inferior_list_entry): New. | |
17074 | * target.c (set_desired_inferior): New. | |
17075 | (write_inferior_memory): Constify. | |
17076 | (mywait): New function. | |
17077 | * target.h: Update. | |
17078 | (struct target_ops): New signal_pid method. | |
17079 | (mywait): Removed macro, added prototype. | |
17080 | ||
17081 | * linux-low.h (regset_func): Removed. | |
17082 | (regset_fill_func, regset_store_func): New. | |
17083 | (enum regset_type): New. | |
17084 | (struct regset_info): Add type field. Use new operation types. | |
17085 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
17086 | Add decr_pc_after_break and breakpoint_at. | |
17087 | (get_process, get_thread_proess, get_process_thread) | |
17088 | (strut process_info, all_processes, linux_attach_lwp) | |
17089 | (thread_db_init): New. | |
17090 | ||
17091 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
17092 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
17093 | (the_low_target): Add new members. | |
17094 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
17095 | (i386_store_fpxregset): Constify. | |
17096 | (target_regsets): Add new kind identifier. | |
17097 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
17098 | (i386_set_pc): Add debugging. | |
17099 | (i386_breakpoint_at): New function. | |
17100 | (the_low_target): Add new members. | |
17101 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
17102 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
17103 | (mips_breakpoint_at): New. | |
17104 | (the_low_target): Add new members. | |
17105 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
17106 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
17107 | (the_low_target): Add new members. | |
17108 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
17109 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
17110 | (the_low_target): Add new members. | |
17111 | * linux-x86-64-low.c (target_regsets): Add new kind | |
17112 | identifier. | |
17113 | ||
17114 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
17115 | ||
17116 | From Martin Pool <mbp@samba.org>: | |
17117 | * server.c (gdbserver_usage): New function. | |
17118 | (main): Call it. | |
17119 | ||
17120 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
17121 | ||
17122 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
17123 | stop_at -> stop_pc. | |
17124 | ||
17125 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
17126 | ||
17127 | * Makefile.in: Remove obsolete code. | |
17128 | ||
17129 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
17130 | ||
17131 | * linux-low.c (regsets_fetch_inferior_registers), | |
17132 | (regsets_store_inferior_registers): Removed cast to int from | |
17133 | ptrace() calls. | |
17134 | * regcache.h: Added declaration of struct inferior_info. | |
17135 | ||
17136 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
17137 | ||
17138 | * inferiors.c (struct inferior_info): Add regcache_data. | |
17139 | (add_inferior): Call create_register_cache. | |
17140 | (clear_inferiors): Call free_register_cache. | |
17141 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
17142 | * regcache.c (struct inferior_regcache_data): New. | |
17143 | (registers): Remove. | |
17144 | (get_regcache): New function. | |
17145 | (create_register_cache, free_register_cache): New functions. | |
17146 | (set_register_cache): Don't initialize the register cache here. | |
17147 | (registers_to_string, registers_from_string, register_data): Call | |
17148 | get_regcache. | |
17149 | * regcache.h: Add prototypes. | |
17150 | * server.h: Likewise. | |
17151 | ||
17152 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
17153 | ||
17154 | * mem-break.c: New file. | |
17155 | * mem-break.h: New file. | |
17156 | * Makefile.in: Add mem-break.o rule; update server.h | |
17157 | dependencies. | |
17158 | * inferiors.c (struct inferior_info): Add target_data | |
17159 | member. | |
17160 | (clear_inferiors): Free target_data member if set. | |
17161 | (inferior_target_data, set_inferior_target_data): New functions. | |
17162 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
17163 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
17164 | * linux-low.c (linux_bp_reinsert): New variable. | |
17165 | (struct inferior_linux_data): New. | |
17166 | (linux_create_inferior): Use set_inferior_target_data. | |
17167 | (linux_attach): Likewise. Call add_inferior. | |
17168 | (linux_wait_for_one_inferior): New function. | |
17169 | (linux_wait): Call it. | |
17170 | (linux_write_memory): Add const. | |
17171 | (initialize_low): Call set_breakpoint_data. | |
17172 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
17173 | handling members. | |
17174 | * server.c (attach_inferior): Remove extra add_inferior | |
17175 | call. | |
17176 | * server.h: Include mem-break.h. Update inferior.c | |
17177 | prototypes. | |
17178 | * target.c (read_inferior_memory) | |
17179 | (write_inferior_memory): New functions. | |
17180 | * target.h (read_inferior_memory) | |
17181 | (write_inferior_memory): Change macros to prototypes. | |
17182 | (struct target_ops): Update comments. Add const to write_memory | |
17183 | definition. | |
17184 | ||
17185 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
17186 | ||
17187 | * linux-low.c (usr_store_inferior_registers): Support | |
17188 | registers which are allowed to fail to store. | |
17189 | * linux-low.h (linux_target_ops): Likewise. | |
17190 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
17191 | (ppc_cannot_store_register): FPSCR may not be storable. | |
17192 | ||
17193 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
17194 | ||
17195 | * server.h: Include <string.h> if HAVE_STRING_H. | |
17196 | * ChangeLog: Correct paths in last ChangeLog entry. | |
17197 | ||
17198 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
17199 | ||
17200 | * linux-low.h: Remove obsolete prototypes. | |
17201 | (struct linux_target_ops): New. | |
17202 | (extern the_low_target): New. | |
17203 | * linux-low.c (num_regs, regmap): Remove declarations. | |
17204 | (register_addr): Use the_low_target explicitly. | |
17205 | (fetch_register): Likewise. | |
17206 | (usr_fetch_inferior_registers): Likewise. | |
17207 | (usr_store_inferior_registers): Likewise. | |
17208 | * linux-arm-low.c (num_regs): Remove. | |
17209 | (arm_num_regs): Define. | |
17210 | (arm_regmap): Renamed from regmap, made static. | |
17211 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17212 | made static. | |
17213 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
17214 | made static. | |
17215 | (the_low_target): New. | |
17216 | * linux-i386-low.c (num_regs): Remove. | |
17217 | (i386_num_regs): Define. | |
17218 | (i386_regmap): Renamed from regmap, made static. | |
17219 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17220 | made static. | |
17221 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
17222 | made static. | |
17223 | (the_low_target): New. | |
17224 | * linux-ia64-low.c (num_regs): Remove. | |
17225 | (ia64_num_regs): Define. | |
17226 | (ia64_regmap): Renamed from regmap, made static. | |
17227 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17228 | made static. | |
17229 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
17230 | made static. | |
17231 | (the_low_target): New. | |
17232 | * linux-m68k-low.c (num_regs): Remove. | |
17233 | (m68k_num_regs): Define. | |
17234 | (m68k_regmap): Renamed from regmap, made static. | |
17235 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17236 | made static. | |
17237 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
17238 | made static. | |
17239 | (the_low_target): New. | |
17240 | * linux-mips-low.c (num_regs): Remove. | |
17241 | (mips_num_regs): Define. | |
17242 | (mips_regmap): Renamed from regmap, made static. | |
17243 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17244 | made static. | |
17245 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
17246 | made static. | |
17247 | (the_low_target): New. | |
17248 | * linux-ppc-low.c (num_regs): Remove. | |
17249 | (ppc_num_regs): Define. | |
17250 | (ppc_regmap): Renamed from regmap, made static. | |
17251 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17252 | made static. | |
17253 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
17254 | made static. | |
17255 | (the_low_target): New. | |
17256 | * linux-s390-low.c (num_regs): Remove. | |
17257 | (s390_num_regs): Define. | |
17258 | (s390_regmap): Renamed from regmap, made static. | |
17259 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17260 | made static. | |
17261 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
17262 | made static. | |
17263 | (the_low_target): New. | |
17264 | * linux-sh-low.c (num_regs): Remove. | |
17265 | (sh_num_regs): Define. | |
17266 | (sh_regmap): Renamed from regmap, made static. | |
17267 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
17268 | made static. | |
17269 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
17270 | made static. | |
17271 | (the_low_target): New. | |
17272 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
17273 | (the_low_target): New. | |
17274 | ||
17275 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
17276 | ||
17277 | * Makefile.in: Add stamp-h target. | |
17278 | * configure.in: Create stamp-h. | |
17279 | * configure: Regenerated. | |
17280 | ||
17281 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
17282 | ||
17283 | * inferiors.c: New file. | |
17284 | * target.c: New file. | |
17285 | * target.h: New file. | |
17286 | * Makefile.in: Add target.o and inferiors.o. Update | |
17287 | dependencies. | |
17288 | * linux-low.c (inferior_pid): New static variable, | |
17289 | moved from server.c. | |
17290 | (linux_create_inferior): Renamed from create_inferior. | |
17291 | Call add_inferior. Return 0 on success instead of a PID. | |
17292 | (linux_attach): Renamed from myattach. | |
17293 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
17294 | (linux_thread_alive): Renamed from mythread_alive. | |
17295 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
17296 | child dies. | |
17297 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
17298 | (regsets_store_inferior_registers): Correct error message. | |
17299 | Add missing ``return 0''. | |
17300 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
17301 | (linux_store_registers): Renamed from store_inferior_registers. | |
17302 | (linux_read_memory): Renamed from read_inferior_memory. | |
17303 | (linux_write_memory): Renamed from write_inferior_memory. | |
17304 | (linux_target_ops): New structure. | |
17305 | (initialize_low): Call set_target_ops (). | |
17306 | * remote-utils.c (unhexify): New function. | |
17307 | (hexify): New function. | |
17308 | (input_interrupt): Send signals to ``signal_pid''. | |
17309 | * server.c (inferior_pid): Remove. | |
17310 | (start_inferior): Update create_inferior call. | |
17311 | (attach_inferior): Call add_inferior. | |
17312 | (handle_query): New function. | |
17313 | (main): Call handle_query for `q' packets. | |
17314 | * server.h: Include "target.h". Remove obsolete prototypes. | |
17315 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
17316 | ||
17317 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
17318 | ||
17319 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
17320 | dependencies. | |
17321 | * configure.in: Check for <string.h> | |
17322 | * configure: Regenerate. | |
17323 | * config.in: Regenerate. | |
17324 | * gdbreplay.c: Include needed system headers. | |
17325 | (remote_open): Remove strchr prototype. | |
17326 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
17327 | * regcache.c (supply_register): Change buf argument to const void *. | |
17328 | (supply_register_by_name): Likewise. | |
17329 | (collect_register): Change buf argument to void *. | |
17330 | (collect_register_by_name): Likewise. | |
17331 | * regcache.h: Add missing prototypes. | |
17332 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
17333 | * server.c (handle_query): New function. | |
17334 | (attached): New static variable, moved out of main. | |
17335 | (main): Quiet longjmp clobber warnings. | |
17336 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
17337 | * utils.c (error): Remove NORETURN. | |
17338 | (fatal): Likewise. |