Commit | Line | Data |
---|---|---|
0b9ff2c0 UW |
1 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
2 | ||
3 | * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define. | |
4 | (parse_spufs_run): New function. | |
5 | (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC. | |
6 | (ppc_breakpoint_at): Handle SPU breakpoints. | |
7 | ||
efcbbd14 UW |
8 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
9 | ||
10 | * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>. | |
11 | (SPUFS_MAGIC): Define. | |
12 | (spu_enumerate_spu_ids): New function. | |
13 | (linux_qxfer_spu): New function. | |
14 | (linux_target_ops): Install linux_qxfer_spu. | |
15 | ||
f4d9bade UW |
16 | 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com> |
17 | ||
18 | * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o | |
19 | and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml | |
20 | and rs6000/powerpc-cell64l.xml to srv_xmlfiles. | |
21 | * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules. | |
22 | (powerpc-cell64l.o, powerpc-cell64l.c): Likewise. | |
23 | (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c. | |
24 | * linux-ppc-low.c (PPC_FEATURE_CELL): Define. | |
25 | (init_registers_powerpc_cell32l): Add prototype. | |
26 | (init_registers_powerpc_cell64l): Likewise. | |
27 | (ppc_arch_setup): Detect Cell/B.E. architecture. | |
28 | ||
96e946ca RW |
29 | 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
30 | ||
31 | * Makefile.in (datarootdir): New variable. | |
32 | ||
58d6951d DJ |
33 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
34 | ||
35 | * linux-low.c (linux_write_memory): Update debugging output. | |
36 | * Makefile.in (clean): Add new descriptions. | |
37 | (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o) | |
38 | (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules. | |
39 | * configure.srv: Add new files for arm*-*-linux*. | |
40 | * linux-arm-low.c: Add new declarations. | |
41 | (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined. | |
42 | (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3) | |
43 | (HWCAP_VFPv3D16): New. | |
44 | (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT | |
45 | instead of __IWMMXT__. | |
46 | (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap) | |
47 | (arm_arch_setup): New. | |
48 | (target_regsets): Remove #ifdef. Add VFP regset. | |
49 | (the_low_target): Use arm_arch_setup. | |
50 | ||
12b42a12 DJ |
51 | 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
52 | ||
53 | * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip | |
54 | the main thread again. | |
55 | ||
ac8c974e AR |
56 | 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com> |
57 | ||
58 | Adding Neutrino gdbserver. | |
59 | * configure: Regenerated. | |
60 | * configure.ac: Add case for srv_qnx and set LIBS accordingly. | |
61 | * configure.srv (i[34567]86-*-nto*): New target. | |
62 | * nto-low.c, nto-low.h, nto-x86-low.c: New files. | |
63 | * remote-utils.c [__QNX__]: Include sys/iomgr.h | |
64 | (nto_comctrl) [__QNX__]: New function. | |
65 | (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl. | |
66 | ||
4424e0c3 | 67 | 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net> |
7437790a PA |
68 | |
69 | * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to | |
70 | srv_tgtobj. | |
71 | ||
912cf4ba PA |
72 | 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net> |
73 | Pedro Alves <pedro@codesourcery.com> | |
74 | ||
75 | * win32-i386-low.c (i386_get_thread_context): Handle systems that | |
76 | don't support CONTEXT_EXTENDED_REGISTERS. | |
77 | (i386_win32_breakpoint, i386_win32_breakpoint_len): New. | |
78 | (the_low_target): Install them. | |
79 | * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent | |
80 | failing with ERROR_PIPE_NOT_CONNECTED. | |
81 | ||
aa5ca48f DE |
82 | 2009-06-30 Doug Evans <dje@google.com> |
83 | Pierre Muller <muller@ics.u-strasbg.fr> | |
84 | ||
85 | Add h/w watchpoint support to x86-linux, win32-i386. | |
86 | * Makefile.in (SFILES): Add i386-low.c | |
87 | (i386_low_h): Define. | |
88 | (i386-low.o): Add dependencies. | |
89 | (linux-x86-low.o): Add i386-low.h dependency. | |
90 | (win32-i386-low.o): Ditto. | |
91 | * i386-low.c: New file. | |
92 | * i386-low.h: New file. | |
93 | * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj. | |
94 | (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto. | |
95 | * linux-low.c (linux_add_process): Initialize arch_private. | |
96 | (linux_remove_process): Free arch_private. | |
97 | (add_lwp): Initialize arch_private. | |
98 | (delete_lwp): Free arch_private. | |
99 | (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if | |
100 | provided. | |
101 | * linux-low.h (process_info_private): New member arch_private. | |
102 | (lwp_info): New member arch_private. | |
103 | (linux_target_ops): New members new_process, new_thread, | |
104 | prepare_to_resume. | |
105 | (ptid_of): New macro. | |
106 | * linux-x86-low.c: Include stddef.h, i386-low.h. | |
107 | (arch_process_info): New struct. | |
108 | (arch_lwp_info): New struct. | |
109 | (x86_linux_dr_get, x86_linux_dr_set): New functions. | |
110 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
111 | (i386_dr_low_get_status): New function. | |
112 | (x86_insert_point, x86_remove_point): New functions. | |
113 | (x86_stopped_by_watchpoint): New function. | |
114 | (x86_stopped_data_address): New function. | |
115 | (x86_linux_new_process, x86_linux_new_thread): New functions. | |
116 | (x86_linux_prepare_to_resume): New function. | |
117 | (the_low_target): Add entries for insert_point, remove_point, | |
118 | stopped_by_watchpoint, stopped_data_address, new_process, new_thread, | |
119 | prepare_to_resume. | |
120 | * server.c (debug_hw_points): New global. | |
121 | (monitor_show_help): Document set debug-hw-points. | |
122 | (handle_query): Process "set debug-hw-points". | |
123 | * server.h (debug_hw_points): Declare. | |
124 | (paddress): Declare. | |
125 | * utils.c (NUMCELLS, CELLSIZE): New macros. | |
126 | (get_sell, xsnprintf, paddress): New functions. | |
127 | * win32-arm-low.c (the_low_target): Add entries for insert_point, | |
128 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
129 | * win32-i386-low.c: Include i386-low.h. | |
130 | (debug_reg_state): Replaces dr. | |
131 | (i386_dr_low_set_addr, i386_dr_low_set_control): New functions. | |
132 | (i386_dr_low_get_status): New function. | |
133 | (i386_insert_point, i386_remove_point): New functions. | |
134 | (i386_stopped_by_watchpoint): New function. | |
135 | (i386_stopped_data_address): New function. | |
136 | (i386_initial_stuff): Update. | |
137 | (get_thread_context,set_thread_context,i386_thread_added): Update. | |
138 | (the_low_target): Add entries for insert_point, | |
139 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
140 | * win32-low.c (win32_insert_watchpoint): New function. | |
141 | (win32_remove_watchpoint): New function. | |
142 | (win32_stopped_by_watchpoint): New function. | |
143 | (win32_stopped_data_address): New function. | |
144 | (win32_target_ops): Add entries for insert_watchpoint, | |
145 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address. | |
146 | * win32-low.h (win32_target_ops): New members insert_point, | |
147 | remove_point, stopped_by_watchpoint, stopped_data_address. | |
148 | ||
d993e290 PA |
149 | 2009-06-25 Pedro Alves <pedro@codesourcery.com> |
150 | ||
151 | * server.c (process_serial_event): Re-return unsupported, not | |
152 | error, if the type isn't recognized. Re-allow supporting only | |
153 | insert or remove packets. Also call require_running for | |
154 | breakpoints. Add missing break statement to default case. Tidy. | |
155 | * target.h (struct target_ops): Rename insert_watchpoint to | |
156 | insert_point, and remove_watchpoint to remove_point. | |
157 | ||
158 | * linux-low.h (struct linux_target_ops): Likewise. | |
159 | * linux-low.c (linux_insert_watchpoint): Rename to ... | |
160 | (linux_insert_point): ... this. Adjust. | |
161 | (linux_remove_watchpoint): Rename to ... | |
162 | (linux_remove_point): ... this. Adjust. | |
163 | (linux_target_ops): Adjust. | |
164 | * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ... | |
165 | (cris_insert_point): ... this. | |
166 | (cris_remove_watchpoint): Rename to ... | |
167 | (cris_remove_point): ... this. | |
168 | (the_low_target): Adjust. | |
169 | ||
0f54c268 PM |
170 | 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr> |
171 | ||
172 | * server.c (handle_v_kill): Pass signal_pid to | |
173 | kill_inferior if multi_process is zero. | |
174 | ||
c6314022 AR |
175 | 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com> |
176 | ||
177 | * server.c (process_serial_event): Add support for Z0 and Z1 packet. | |
178 | * target.h (target_ops): Comment for *_watchpoint to make it clear | |
179 | the functions can get types '0' and '1'. | |
180 | ||
4463ce24 AR |
181 | 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com> |
182 | ||
183 | * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0. | |
184 | * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers. | |
185 | * regcache.c (get_regcache): Likewise. | |
186 | * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion. | |
187 | * win32-low.c (child_fetch_inferior_registers): Remove check for | |
188 | regno 0. | |
189 | ||
cf8fd78b PA |
190 | 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com> |
191 | Pedro Alves <pedro@codesourcery.com> | |
192 | ||
193 | * target.h (struct target_ops) <supports_multi_process>: New | |
194 | callback. | |
195 | (target_supports_multi_process): New. | |
196 | * server.c (handle_query): Even if GDB reports support, only | |
197 | enable multi-process if the target also supports it. Report | |
198 | multi-process support only if the target backend supports it. | |
199 | * linux-low.c (linux_supports_multi_process): New function. | |
200 | (linux_target_ops): Install it as target_supports_multi_process | |
201 | callback. | |
202 | ||
47c0c975 DE |
203 | 2009-05-24 Doug Evans <dje@google.com> |
204 | ||
e09875d4 DE |
205 | Global renaming of find_thread_pid to find_thread_ptid. |
206 | * server.h (find_thread_ptid): Renamed from find_thread_pid. | |
207 | * inferiors.c (find_thread_ptid): Renamed from find_thread_pid. | |
208 | All callers updated. | |
209 | ||
e27d73f6 DE |
210 | * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp |
211 | to resume the newly created thread, don't call ptrace (PTRACE_CONT) | |
212 | directly. | |
213 | ||
47c0c975 DE |
214 | * linux-low.c (get_stop_pc): Print pc if debug_threads. |
215 | (check_removed_breakpoint, linux_wait_for_lwp): Ditto. | |
216 | (linux_resume_one_lwp): Ditto. | |
217 | ||
2acc282a DE |
218 | 2009-05-23 Doug Evans <dje@google.com> |
219 | ||
220 | * linux-low.c (linux_resume_one_lwp): Change type of first arg | |
221 | from struct inferior_list_entry * to struct lwp_info *. | |
222 | All callers updated. | |
223 | ||
9f1036c1 DE |
224 | 2009-05-13 Doug Evans <dje@google.com> |
225 | ||
226 | * linux-x86-low.c: Don't include assert.h. | |
227 | (x86_siginfo_fixup): Use fatal, not assert. | |
228 | (x86_arch_setup): Fix comment. | |
229 | ||
d0722149 DE |
230 | 2009-05-12 Doug Evans <dje@google.com> |
231 | ||
232 | Biarch support for i386/amd64 gdbserver. | |
233 | * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c. | |
234 | Add linux-x86-low.c. | |
235 | (linux-i386-low.o, linux-x86-64-low.o): Delete. | |
236 | (linux-x86-low.o): Add. | |
237 | * linux-x86-64-low.c: Delete. | |
238 | * linux-i386-low.c: Delete. | |
239 | * linux-x86-low.c: New file. | |
240 | * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with | |
241 | linux-x86-low.o. | |
242 | (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with | |
243 | linux-x86-low.o. | |
244 | (x86_64-linux srv_regobj): Add reg-i386-linux.o. | |
245 | * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h. | |
246 | (linux_child_pid_to_exec_file): New function. | |
247 | (elf_64_header_p, elf_64_file_p): New functions. | |
248 | (siginfo_fixup): New function. | |
249 | (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to | |
250 | give target a chance to convert layout. | |
251 | * linux-low.h (linux_target_ops): New member siginfo_fixup. | |
252 | (linux_child_pid_to_exec_file, elf_64_file_p): Declare. | |
253 | ||
fdeb2a12 DE |
254 | 2009-05-07 Doug Evans <dje@google.com> |
255 | ||
256 | * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak. | |
257 | (regsets_store_inferior_registers): Ditto. | |
258 | ||
a6dbe5df PA |
259 | 2009-05-06 Pedro Alves <pedro@codesourcery.com> |
260 | ||
261 | PR server/10048 | |
262 | ||
263 | * linux-low.c (must_set_ptrace_flags): Delete. | |
264 | (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead | |
265 | of the global. | |
266 | (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set | |
267 | `lwp->must_set_ptrace_flags' instead. | |
ba42693b | 268 | (linux_wait_for_event_1): Set ptrace options here. |
a6dbe5df PA |
269 | (linux_wait_1): ... not here. |
270 | ||
5091eb23 DE |
271 | 2009-04-30 Doug Evans <dje@google.com> |
272 | ||
9f767825 DE |
273 | * inferiors.c (started_inferior_callback): New function. |
274 | (attached_inferior_callback): New function. | |
275 | (have_started_inferiors_p, have_attached_inferiors_p): New functions. | |
276 | * server.c (print_started_pid, print_attached_pid): New functions. | |
277 | (detach_or_kill_for_exit): New function. | |
278 | (main): Call it instead of for_each_inferior (kill_inferior_callback). | |
279 | * server.h (have_started_inferiors_p): Declare. | |
280 | (have_attached_inferiors_p): Declare. | |
281 | ||
5091eb23 DE |
282 | * inferiors.c (remove_process): Fix memory leak, free process. |
283 | * linux-low.c (linux_remove_process): New function. | |
284 | (linux_kill): Call it instead of remove_process. | |
285 | (linux_detach, linux_wait_1): Ditto. | |
286 | ||
155c8968 PA |
287 | 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net> |
288 | ||
289 | * configure.srv: Add x86 Windows CE target. | |
290 | ||
7fe519cb UW |
291 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
292 | ||
293 | * inferiors.c (get_thread_process): Make global. | |
294 | * server.h (get_thread_process): Add prototype. | |
295 | * thread-db.c (find_one_thread): Use get_thread_process | |
296 | instead of current_process. | |
297 | (thread_db_get_tls_address): Do not crash if called when | |
298 | thread layer is not yet initialized. | |
299 | ||
5472f405 UW |
300 | 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com> |
301 | ||
302 | * remote-utils.c (prepare_resume_reply): Null-terminate packet. | |
303 | * spu-low.c (current_tid): Rename to ... | |
304 | (current_ptid): ... this. | |
305 | (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory, | |
306 | spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use | |
307 | ptid_get_lwp (current_ptid) instead of current_tid. | |
308 | (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument | |
309 | instead of current_tid. Use find_process_pid to verify pid | |
310 | argument is valid. Pass proper argument to remove_process. | |
311 | (spu_thread_alive): Compare current_ptid instead of current_tid. | |
312 | (spu_resume): Likewise. | |
313 | ||
55ac2b99 PA |
314 | 2009-04-02 Pedro Alves <pedro@codesourcery.com> |
315 | ||
316 | * linux-low.c (usr_store_inferior_registers): Declare local `pid' | |
317 | variable. | |
318 | ||
95954743 PA |
319 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
320 | ||
321 | Implement the multiprocess extensions, and add linux multiprocess | |
322 | support. | |
323 | ||
324 | * server.h (ULONGEST): Declare. | |
325 | (struct ptid, ptid_t): New. | |
326 | (minus_one_ptid, null_ptid): Declare. | |
327 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
328 | (ptid_get_tid, ptid_equal, ptid_is_pid): Declare. | |
329 | (struct inferior_list_entry): Change `id' type from unsigned from | |
330 | to ptid_t. | |
331 | (struct sym_cache, struct breakpoint, struct | |
332 | process_info_private): Forward declare. | |
333 | (struct process_info): Declare. | |
334 | (current_process): Declare. | |
335 | (all_processes): Declare. | |
336 | (initialize_inferiors): Declare. | |
337 | (add_thread): Adjust to use ptid_t. | |
338 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto. | |
339 | (add_process, remove_process, find_thread_pid): Declare. | |
340 | (find_inferior_id): Adjust to use ptid_t. | |
341 | (cont_thread, general_thread, step_thread): Change type to ptid_t. | |
342 | (multi_process): Declare. | |
343 | (push_event): Adjust to use ptid_t. | |
344 | (read_ptid, write_ptid): Declare. | |
345 | (prepare_resume_reply): Adjust to use ptid_t. | |
346 | (clear_symbol_cache): Declare. | |
347 | * inferiors.c (all_processes): New. | |
348 | (null_ptid, minus_one_ptid): New. | |
349 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp) | |
350 | (ptid_get_tid, ptid_equal, ptid_is_pid): New. | |
351 | (add_thread): Change unsigned long to ptid. Remove gdb_id | |
352 | parameter. Adjust. | |
353 | (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid. | |
354 | (gdb_id_to_thread): Rename to ... | |
355 | (find_thread_pid): ... this. Change unsigned long to ptid. | |
356 | (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid. | |
357 | (loaded_dll, pull_pid_from_list): Adjust. | |
358 | (add_process, remove_process, find_process_pid) | |
359 | (get_thread_process, current_process, initialize_inferiors): New. | |
360 | * target.h (struct thread_resume) <thread>: Change type to ptid_t. | |
361 | (struct target_waitstatus) <related_pid>: Ditto. | |
362 | (struct target_ops) <kill, detach>: Add `pid' argument. Change | |
363 | return type to int. | |
364 | (struct target_ops) <join>: Add `pid' argument. | |
365 | (struct target_ops) <thread_alive>: Change pid's type to ptid_t. | |
366 | (struct target_ops) <wait>: Add `ptid' field. Change return type | |
367 | to ptid. | |
368 | (kill_inferior, detach_inferior, join_inferior): Add `pid' argument. | |
369 | (mywait): Add `ptid' argument. Change return type to ptid_t. | |
370 | (target_pid_to_str): Declare. | |
371 | * target.c (set_desired_inferior): Adjust to use ptids. | |
372 | (mywait): Add new `ptid' argument. Adjust. | |
373 | (target_pid_to_str): New. | |
374 | * mem-break.h (free_all_breakpoints): Declare. | |
375 | * mem-break.c (breakpoints): Delelete. | |
376 | (set_breakpoint_at, delete_breakpoint, find_breakpoint_at) | |
377 | (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust | |
378 | to use per-process breakpoint list. | |
379 | (free_all_breakpoints): New. | |
380 | * remote-utils.c (struct sym_cache) <name>: Drop `const'. | |
381 | (symbol_cache, all_symbols_looked_up): Delete. | |
382 | (hexchars): New. | |
383 | (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one, | |
384 | read_ptid): New. | |
385 | (prepare_resume_reply): Change ptid argument's type from unsigned | |
386 | long to ptid_t. Adjust. Implement W;process and X;process. | |
387 | (free_sym_cache, clear_symbol_cache): New. | |
388 | (look_up_one_symbol): Adjust to per-process symbol cache. * | |
389 | * server.c (cont_thread, general_thread, step_thread): Change type | |
390 | to ptid_t. | |
391 | (attached): Delete. | |
392 | (multi_process): New. | |
393 | (last_ptid): Change type to ptid_t. | |
394 | (struct vstop_notif) <ptid>: Change type to ptid_t. | |
395 | (queue_stop_reply, push_event): Change `ptid' argument's type to | |
396 | ptid_t. | |
397 | (discard_queued_stop_replies): Add `pid' argument. | |
398 | (start_inferior): Adjust to use ptids. Adjust to mywait interface | |
399 | changes. Don't reference the `attached' global. | |
400 | (attach_inferior): Adjust to mywait interface changes. | |
401 | (handle_query): Adjust to use ptids. Parse GDB's qSupported | |
402 | features. Handle and report "multiprocess+". Handle | |
403 | "qAttached:PID". | |
404 | (handle_v_cont): Adjust to use ptids. Adjust to mywait interface | |
405 | changes. | |
406 | (handle_v_kill): New. | |
407 | (handle_v_stopped): Adjust to use target_pid_to_str. | |
408 | (handle_v_requests): Allow multiple attaches and runs when | |
409 | multiprocess extensions are in effect. Handle "vKill". | |
410 | (myresume): Adjust to use ptids. | |
411 | (queue_stop_reply_callback): Add `arg' parameter. Handle it. | |
412 | (handle_status): Adjust to discard_queued_stop_replies interface | |
413 | change. | |
414 | (first_thread_of, kill_inferior_callback) | |
415 | (detach_or_kill_inferior_callback, join_inferiors_callback): New. | |
416 | (main): Call initialize_inferiors. Adjust to use ptids, killing | |
417 | and detaching from all inferiors. Handle multiprocess packet | |
418 | variants. | |
419 | * linux-low.h: Include gdb_proc_service.h. | |
420 | (struct process_info_private): New. | |
421 | (struct linux_target_ops) <pid_of>: Use ptid_get_pid. | |
422 | <lwpid_of>: Use ptid_get_lwp. | |
423 | (get_lwp_thread): Adjust. | |
424 | (struct lwp_info): Add `dead' member. | |
425 | (find_lwp_pid): Declare. | |
426 | * linux-low.c (thread_db_active): Delete. | |
427 | (new_inferior): Adjust comment. | |
428 | (inferior_pid): Delete. | |
429 | (linux_add_process): New. | |
430 | (handle_extended_wait): Adjust. | |
431 | (add_lwp): Change unsigned long to ptid. | |
432 | (linux_create_inferior): Add process to processes table. Adjust | |
433 | to use ptids. Don't set new_inferior here. | |
434 | (linux_attach_lwp): Rename to ... | |
435 | (linux_attach_lwp_1): ... this. Add `initial' argument. Handle | |
436 | it. Adjust to use ptids. | |
437 | (linux_attach_lwp): New. | |
438 | (linux_attach): Add process to processes table. Don't set | |
439 | new_inferior here. | |
440 | (struct counter): New. | |
441 | (second_thread_of_pid_p, last_thread_of_process_p): New. | |
442 | (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to | |
443 | multiple processes. | |
444 | (linux_kill): Add `pid' argument. Handle it. Adjust to multiple | |
445 | processes. Remove process from process table. | |
446 | (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust | |
447 | to multiple processes. | |
448 | (any_thread_of): New. | |
449 | (linux_detach): Add `pid' argument, and handle it. Remove process | |
450 | from processes table. | |
451 | (linux_join): Add `pid' argument. Handle it. | |
452 | (linux_thread_alive): Change unsighed long argument to ptid_t. | |
453 | Consider dead lwps as not being alive. | |
454 | (status_pending_p): Rename `dummy' argument to `arg'. Filter out | |
455 | threads we're not interested in. | |
456 | (same_lwp, find_lwp_pid): New. | |
457 | (linux_wait_for_lwp): Change `pid' argument's type from int to | |
458 | ptid_t. Adjust. | |
459 | (linux_wait_for_event): Rename to ... | |
460 | (linux_wait_for_event_1): ... this. Change `pid' argument's type | |
461 | from int to ptid_t. Adjust. | |
462 | (linux_wait_for_event): New. | |
463 | (linux_wait_1): Add `ptid' argument. Change return type to | |
464 | ptid_t. Adjust. Use last_thread_of_process_p. Remove processes | |
465 | that exit from the process table. | |
466 | (linux_wait): Add `ptid' argument. Change return type to ptid_t. | |
467 | Adjust. | |
468 | (mark_lwp_dead): New. | |
469 | (wait_for_sigstop): Adjust to use ptids. If a process exits while | |
470 | stopping all threads, mark its main lwp as dead. | |
471 | (linux_set_resume_request, linux_resume_one_thread): Adjust to use | |
472 | ptids. | |
473 | (fetch_register, usr_store_inferior_registers) | |
474 | (regsets_fetch_inferior_registers) | |
475 | (regsets_store_inferior_registers, linux_read_memory) | |
476 | (linux_write_memory): Inline `inferior_pid'. | |
477 | (linux_look_up_symbols): Adjust to use per-process | |
478 | `thread_db_active'. | |
479 | (linux_request_interrupt): Adjust to use ptids. | |
480 | (linux_read_auxv): Inline `inferior_pid'. | |
481 | (initialize_low): Don't reference thread_db_active. | |
482 | * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove. | |
483 | * proc-service.c (ps_lgetregs): Use find_lwp_pid. | |
484 | (ps_getpid): Return the pid of the current inferior. | |
485 | * thread-db.c (proc_handle, thread_agent): Delete. | |
486 | (thread_db_create_event, thread_db_enable_reporting): Adjust to | |
487 | per-process data. | |
488 | (find_one_thread): Change argument type to ptid_t. Adjust to | |
489 | per-process data. | |
490 | (maybe_attach_thread): Adjust to per-process data and ptids. | |
491 | (thread_db_find_new_threads): Ditto. | |
492 | (thread_db_init): Ditto. | |
493 | * spu-low.c (spu_create_inferior, spu_attach): Add process to | |
494 | processes table. Adjust to use ptids. | |
495 | (spu_kill, spu_detach): Adjust interface. Remove process from | |
496 | processes table. | |
497 | (spu_join, spu_thread_alive): Adjust interface. | |
498 | (spu_wait): Adjust interface. Remove process from processes | |
499 | table. Adjust to use ptids. | |
500 | * win32-low.c (current_inferior_tid): Delete. | |
501 | (current_inferior_ptid): New. | |
502 | (debug_event_ptid): New. | |
503 | (thread_rec): Take a ptid. Adjust. | |
504 | (child_add_thread): Add `pid' argument. Adjust to use ptids. | |
505 | (child_delete_thread): Ditto. | |
506 | (do_initial_child_stuff): Add `attached' argument. Add process to | |
507 | processes table. | |
508 | (child_fetch_inferior_registers, child_store_inferior_registers): | |
509 | Adjust. | |
510 | (win32_create_inferior): Pass 0 to do_initial_child_stuff. | |
511 | (win32_attach): Pass 1 to do_initial_child_stuff. | |
512 | (win32_kill): Adjust interface. Remove process from processes | |
513 | table. | |
514 | (win32_detach): Ditto. | |
515 | (win32_join): Adjust interface. | |
516 | (win32_thread_alive): Take a ptid. | |
517 | (win32_resume): Adjust to use ptids. | |
518 | (get_child_debug_event): Ditto. | |
519 | (win32_wait): Adjust interface. Remove exiting process from | |
520 | processes table. | |
521 | ||
bd99dc85 PA |
522 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
523 | ||
524 | Non-stop mode support. | |
525 | ||
526 | * server.h (non_stop): Declare. | |
527 | (gdb_client_data, handler_func): Declare. | |
528 | (delete_file_handler, add_file_handler, start_event_loop): | |
529 | Declare. | |
530 | (handle_serial_event, handle_target_event, push_event) | |
531 | (putpkt_notif): Declare. | |
532 | * target.h (enum resume_kind): New. | |
533 | (struct thread_resume): Replace `step' field by `kind' field. | |
534 | (TARGET_WNOHANG): Define. | |
535 | (struct target_ops) <wait>: Add `options' argument. | |
536 | <supports_non_stop, async, start_non_stop>: New fields. | |
537 | (target_supports_non_stop, target_async): New. | |
538 | (start_non_stop): Declare. | |
539 | (mywait): Add `options' argument. | |
540 | * target.c (mywait): Add `options' argument. Print child exit | |
541 | notifications here. | |
542 | (start_non_stop): New. | |
543 | * server.c (non_stop, own_buf, mem_buf): New globals. | |
544 | (struct vstop_notif): New. | |
545 | (notif_queue): New global. | |
546 | (queue_stop_reply, push_event, discard_queued_stop_replies) | |
547 | (send_next_stop_reply): New. | |
548 | (start_inferior): Adjust to use resume_kind. Adjust to mywait | |
549 | interface changes. | |
550 | (attach_inferior): In non-stop mode, don't wait for the target | |
551 | here. | |
552 | (handle_general_set): Handle QNonStop. | |
553 | (handle_query): When handling qC, return the current general | |
554 | thread, instead of the first thread of the list. | |
555 | (handle_query): If the backend supports non-stop mode, include | |
556 | QNonStop+ in the qSupported query response. | |
557 | (handle_v_cont): Adjust to use resume_kind. Handle resume_stop | |
558 | and non-stop mode. | |
559 | (handle_v_attach, handle_v_run): Handle non-stop mode. | |
560 | (handle_v_stopped): New. | |
561 | (handle_v_requests): Report support for vCont;t. Handle vStopped. | |
562 | (myresume): Adjust to use resume_kind. Handle non-stop. | |
563 | (queue_stop_reply_callback): New. | |
564 | (handle_status): Handle non-stop mode. | |
565 | (main): Clear non_stop flag on reconnection. Use the event-loop. | |
566 | Refactor serial protocol handling from here ... | |
567 | (process_serial_event): ... to this new function. When GDB | |
568 | selects any thread, select one here. In non-stop mode, wait until | |
569 | GDB acks all pending events before exiting. | |
570 | (handle_serial_event, handle_target_event): New. | |
571 | * remote-utils.c (remote_open): Install remote_desc in the event | |
572 | loop. | |
573 | (remote_close): Remove remote_desc from the event loop. | |
574 | (putpkt_binary): Rename to... | |
575 | (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it. | |
576 | (putpkt_binary): New as wrapper around putpkt_binary_1. | |
577 | (putpkt_notif): New. | |
578 | (prepare_resume_reply): In non-stop mode, don't change the | |
579 | general_thread. | |
580 | * event-loop.c: New. | |
581 | * Makefile.in (OBJ): Add event-loop.o. | |
582 | (event-loop.o): New rule. | |
583 | ||
584 | * linux-low.h (pid_of): Moved here. | |
585 | (lwpid_of): New. | |
586 | (get_lwp_thread): Use lwpid_of. | |
587 | (struct lwp_info): Delete `lwpid' field. Add `suspended' field. | |
588 | * linux-low.c (pid_of): Delete. | |
589 | (inferior_pid): Use lwpid_of. | |
590 | (linux_event_pipe): New. | |
591 | (target_is_async_p): New. | |
592 | (delete_lwp): New. | |
593 | (handle_extended_wait): Use lwpid_of. | |
594 | (add_lwp): Don't set lwpid field. | |
595 | (linux_attach_lwp): Adjust debug output. Use lwpid_of. | |
596 | (linux_kill_one_lwp): If killing a running lwp, stop it first. | |
597 | Use lwpid_of. Adjust to linux_wait_for_event interface changes. | |
598 | (linux_detach_one_lwp): If detaching from a running lwp, stop it | |
599 | first. Adjust to linux_wait_for_event interface changes. Use | |
600 | lwpid_of. | |
601 | (linux_detach): Don't delete the main lwp here. | |
602 | (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of. | |
603 | (status_pending_p): Don't consider explicitly suspended lwps. | |
604 | (linux_wait_for_lwp): Take an integer pid instead of a lwp_info | |
605 | pointer. Add OPTIONS argument. Change return type to int. Use | |
606 | my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of. | |
607 | (linux_wait_for_event): Take an integer pid instead of a lwp_info | |
608 | pointer. Add status pointer argument. Return a pid instead of a | |
609 | status. Use lwpid_of. Adjust to linux_wait_for_lwp interface | |
610 | changes. In non-stop mode, don't switch to a random thread. | |
611 | (linux_wait): Rename to... | |
612 | (linux_wait_1): ... this. Add target_options argument, and handle | |
613 | it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode, | |
614 | don't handle the continue thread. Handle TARGET_WNOHANG. Merge | |
615 | clean exit and signal exit code. Don't stop all threads in | |
616 | non-stop mode. In all-stop mode, only stop all threads when | |
617 | reporting a stop to GDB. Handle explicit thread stop requests. | |
618 | (async_file_flush, async_file_mark): New. | |
619 | (linux_wait): New. | |
620 | (send_sigstop): Use lwpid_of. | |
621 | (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event | |
622 | interface changes. In non-stop mode, don't switch to a random | |
623 | thread. | |
624 | (linux_resume_one_lwp): Use lwpid_of. | |
625 | (linux_continue_one_thread, linux_queue_one_thread): Merge into ... | |
626 | (linux_resume_one_thread): ... this. Handle resume_stop. In | |
627 | non-stop mode, don't look for pending flag in all threads. | |
628 | (resume_status_pending_p): Don't consider explicitly suspended | |
629 | threads. | |
630 | (my_waitpid): Reimplement. Emulate __WALL. | |
631 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
632 | Use lwpid_of. | |
633 | (sigchld_handler, linux_supports_non_stop, linux_async) | |
634 | (linux_start_non_stop): New. | |
635 | (linux_target_ops): Register linux_supports_non_stop, linux_async | |
636 | and linux_start_non_stop. | |
637 | (initialize_low): Install SIGCHLD handler. | |
638 | * thread-db.c (thread_db_create_event, find_one_thread) | |
639 | (thread_db_get_tls_address): Use lwpid_of. | |
640 | * win32-low.c (win32_detach): Adjust to use resume_kind. | |
641 | (win32_wait): Add `options' argument. | |
642 | * spu-low.c (spu_resume): Adjust to use resume_kind. | |
643 | (spu_wait): Add `options' argument. | |
644 | ||
5b1c542e PA |
645 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
646 | ||
647 | Decouple target code from remote protocol. | |
648 | ||
649 | * target.h (enum target_waitkind): New. | |
650 | (struct target_waitstatus): New. | |
651 | (struct target_ops) <wait>: Return an unsigned long. Take a | |
652 | target_waitstatus pointer instead of a char pointer. | |
653 | (mywait): Likewise. | |
654 | * target.c (mywait): Change prototype to return an unsigned long. | |
655 | Take a target_waitstatus pointer instead of a char pointer. Adjust. | |
656 | * server.h (thread_from_wait, old_thread_from_wait): Delete | |
657 | declarations. | |
658 | (prepare_resume_reply): Change prototype to take a | |
659 | target_waitstatus. | |
660 | * server.c (thread_from_wait, old_thread_from_wait): Delete. | |
661 | (last_status, last_ptid): New. | |
662 | (start_inferior): Remove "statusptr" argument. Adjust. Return a | |
663 | pid instead of a signal. | |
664 | (attach_inferior): Remove "status" and "signal" parameters. | |
665 | Adjust. | |
666 | (handle_query): For qGetTLSAddr, parse the thread id with strtol, | |
667 | not as an address. | |
668 | (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill) | |
669 | (handle_v_requests, myresume): Remove "status" and "signal" | |
670 | parameters. Adjust. | |
671 | (handle_status): New. | |
672 | (main): Delete local `status'. Adjust. | |
673 | * remote-utils.c: Include target.h. | |
674 | (prepare_resume_reply): Change prototype to take a | |
675 | target_waitstatus. Adjust. | |
676 | ||
677 | * linux-low.c (linux_wait): Adjust to new target_ops->wait | |
678 | interface. | |
679 | * spu-low.c (spu_wait): Adjust. | |
680 | * win32-low.c (enum target_waitkind, struct target_waitstatus): | |
681 | Delete. | |
682 | (win32_wait): Adjust. | |
683 | ||
2bd7c093 PA |
684 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
685 | ||
686 | * target.h (struct thread_resume): Delete leave_stopped member. | |
687 | (struct target_ops): Add a `n' argument to the `resume' callback. | |
688 | * server.c (start_inferior): Adjust. | |
689 | (handle_v_cont, myresume): Adjust. | |
690 | * linux-low.c (check_removed_breakpoint): Adjust to resume | |
691 | interface change, and to removed leave_stopped field. | |
692 | (resume_ptr): Delete. | |
693 | (struct thread_resume_array): New. | |
694 | (linux_set_resume_request): Add new `arg' parameter. Adjust to | |
695 | resume interface change. | |
696 | (linux_continue_one_thread, linux_queue_one_thread) | |
697 | (resume_status_pending_p): Check if the resume field is NULL | |
698 | instead of checking the leave_stopped member. | |
699 | (linux_resume): Adjust to the target resume interface change. | |
700 | * spu-low.c (spu_resume): Adjust to the target resume interface | |
701 | change. | |
702 | * win32-low.c (win32_detach, win32_resume): Ditto. | |
703 | ||
c35fafde PA |
704 | 2009-04-01 Pedro Alves <pedro@codesourcery.com> |
705 | ||
706 | * linux-low.c (linux_wait_for_event): Don't clear the `stepping' | |
707 | flag. | |
708 | (wait_for_sigstop): Don't leave a finished single-step SIGTRAP | |
709 | pending. | |
710 | (linux_continue_one_thread): Only preserve the stepping flag if | |
711 | there's a pending breakpoint. | |
712 | ||
0a59d50b PA |
713 | 2009-03-31 Pedro Alves <pedro@codesourcery.com> |
714 | ||
715 | * server.c (main): After the inferior having exited, call | |
716 | remote_close before exiting gdbserver. | |
717 | ||
f04c6d38 TJB |
718 | 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com> |
719 | ||
720 | Fix size of FPSCR in Power 7 processors. | |
721 | * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define. | |
722 | (PPC_FEATURE_HAS_DFP): New #define. | |
723 | (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on | |
724 | size of the FPSCR. | |
725 | ||
78e5cee6 PA |
726 | 2009-03-23 Pedro Alves <pedro@codesourcery.com> |
727 | ||
728 | * server.c (handle_query) Whitespace and formatting. | |
729 | ||
1b3f6016 PA |
730 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
731 | ||
732 | * i387-fp.c, linux-arm-low.c, linux-cris-low.c, | |
733 | linux-crisv32-low.c, linux-i386-low.c, linux-low.c, | |
734 | linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c, | |
735 | linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c, | |
736 | regcache.c, remote-utils.c, server.c, spu-low.c, target.h, | |
737 | thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c, | |
738 | Makefile.in, configure.ac: Fix whitespace throughout. | |
739 | * configure: Regenerate. | |
740 | ||
a07b2135 PA |
741 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
742 | ||
743 | * inferiors.c (find_inferior): Make it safe for the callback | |
744 | function to delete the currently iterated inferior. | |
745 | ||
67cc2626 PA |
746 | 2009-03-22 Pedro Alves <pedro@codesourcery.com> |
747 | ||
748 | * Makefile.in (linuw_low_h): Move higher. | |
749 | (thread-db.o): Depend on $(linux_low_h). | |
750 | ||
54a0b537 PA |
751 | 2009-03-17 Pedro Alves <pedro@codesourcery.com> |
752 | ||
753 | Rename "process" to "lwp" throughout. | |
754 | ||
755 | * linux-low.c (all_processes): Rename to... | |
756 | (all_lwps): ... this. | |
757 | (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. | |
758 | (add_process): Rename to ... | |
759 | (add_lwp): ... this. Adjust. | |
760 | (linux_create_inferior): Adjust. | |
761 | (linux_attach_lwp): Adjust. | |
762 | (linux_attach): Adjust. | |
763 | (linux_kill_one_process): Rename to ... | |
764 | (linux_kill_one_lwp): ... this. Adjust. | |
765 | (linux_kill): Adjust. | |
766 | (linux_detach_one_process): Rename to ... | |
767 | (linux_detach_one_lwp): ... this. Adjust. | |
768 | (linux_detach): Adjust. | |
769 | (check_removed_breakpoint): Adjust. | |
770 | (status_pending_p): Adjust. | |
771 | (linux_wait_for_process): Rename to ... | |
772 | (linux_wait_for_lwp): ... this. Adjust. | |
773 | (linux_wait_for_event): Adjust. | |
774 | (send_sigstop): Adjust. | |
775 | (wait_for_sigstop): Adjust. | |
776 | (stop_all_processes): Rename to ... | |
777 | (stop_all_lwps): ... this. | |
778 | (linux_resume_one_process): Rename to ... | |
779 | (linux_resume_one_lwp): ... this. Adjust. | |
780 | (linux_set_resume_request, linux_continue_one_thread) | |
781 | (linux_queue_one_thread, resume_status_pending_p) | |
782 | (usr_store_inferior_registers, regsets_store_inferior_registers) | |
783 | (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): | |
784 | Adjust. | |
785 | * linux-low.h (get_process): Rename to ... | |
786 | (get_lwp): ... this. Adjust. | |
787 | (get_thread_process): Rename to ... | |
788 | (get_thread_lwp): ... this. Adjust. | |
789 | (get_process_thread): Rename to ... | |
790 | (get_lwp_thread): ... this. Adjust. | |
791 | (struct process_info): Rename to ... | |
792 | (struct lwp_info): ... this. | |
793 | (all_processes): Rename to ... | |
794 | (all_lwps): ... this. | |
795 | * proc-service.c (ps_lgetregs): Adjust. | |
796 | * thread-db.c (thread_db_create_event, find_one_thread) | |
797 | (maybe_attach_thread, thread_db_get_tls_address): Adjust. | |
798 | ||
0b16c5cf PA |
799 | 2009-03-14 Pedro Alves <pedro@codesourcery.com> |
800 | ||
801 | * server.c (handle_query): Handle "qAttached". | |
802 | ||
32de4b9d NS |
803 | 2009-03-13 Nathan Sidwell <nathan@codesourcery.com> |
804 | ||
805 | * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to | |
806 | GPLv3, update license URL. | |
807 | ||
2aecd87f DE |
808 | 2009-03-01 Doug Evans <dje@google.com> |
809 | ||
93efd302 | 810 | * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. |
2aecd87f DE |
811 | (server_h): Add gdb_signals.h. |
812 | (signals.o): Update. | |
813 | * server.h (target_signal_from_host,target_signal_to_host_p) | |
814 | (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. | |
815 | ||
86b1f9c5 PM |
816 | 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> |
817 | ||
818 | * remote-utils.c (getpkt): Also generate remote-debug | |
819 | information if noack_mode is set. | |
820 | ||
4aa995e1 PA |
821 | 2009-02-06 Pedro Alves <pedro@codesourcery.com> |
822 | ||
823 | * server.c (handle_query): Report qXfer:siginfo:read and | |
824 | qXfer:siginfo:write as supported and handle them. | |
825 | * target.h (struct target_ops) <qxfer_siginfo>: New field. | |
826 | * linux-low.c (linux_xfer_siginfo): New. | |
827 | (linux_target_ops): Set it. | |
828 | ||
62709adf PA |
829 | 2009-01-26 Pedro Alves <pedro@codesourcery.com> |
830 | ||
831 | * server.c (gdbserver_usage): Mention --remote-debug. | |
832 | (main): Accept '--remote-debug' switch. | |
833 | ||
aef93bd7 DE |
834 | 2009-01-18 Doug Evans <dje@google.com> |
835 | ||
836 | * regcache.c (new_register_cache): No need to check result of xcalloc. | |
837 | * server.c (handle_search_memory): Back out calls to xmalloc, | |
838 | result is checked and error is returned to user upon failure. | |
839 | (handle_query): Ditto. Add more checks for result of malloc. | |
840 | (handle_v_cont): Check result of malloc, report error back to | |
841 | user upon failure. | |
842 | (handle_v_run): Ditto. Call freeargv. | |
843 | * server.h (freeargv): Declare. | |
844 | * utils.c (freeargv): New fn. | |
845 | ||
54363045 DE |
846 | 2009-01-15 Doug Evans <dje@google.com> |
847 | ||
f626972c DE |
848 | * gdbreplay.c (perror_with_name): Make arg const char *. |
849 | * server.h (target_signal_to_name): Make return type const char *. | |
0842e787 | 850 | * thread-db.c (thread_db_err_str): Make return type const char *. |
f626972c | 851 | * utils.c (perror_with_name): Make arg const char *. |
54363045 | 852 | |
18aae699 PA |
853 | 2009-01-14 Pedro Alves <pedro@codesourcery.com> |
854 | ||
855 | * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE | |
856 | when handling a EXIT_PROCESS_DEBUG_EVENT. | |
857 | ||
ff703abe JB |
858 | 2009-01-06 Joel Brobecker <brobecker@adacore.com> |
859 | ||
860 | * gdbreplay.c (gdbreplay_version): Update copyright year. | |
861 | * server.c (gdbserver_version): Likewise. | |
862 | ||
f21cc1a2 | 863 | 2009-01-05 Doug Evans <dje@google.com> |
0e21c1ec DE |
864 | |
865 | * linux-low.c (linux_attach_lwp): Add some comments/fixmes. | |
f21cc1a2 | 866 | (handle_extended_wait): Improve comment. |
0e21c1ec | 867 | |
bca929d3 DE |
868 | 2008-12-13 Doug Evans <dje@google.com> |
869 | ||
870 | * utils.c (xmalloc,xcalloc,xstrdup): New fns. | |
871 | * server.h (ATTR_MALLOC): New macro. | |
872 | (xmalloc,xcalloc,xstrdup): Declare. | |
873 | * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup. | |
874 | * inferiors.c: Ditto. | |
875 | * linux-low.c: Ditto. | |
876 | * mem-break.c: Ditto. | |
877 | * regcache.c: Ditto. | |
878 | * remote-utils.c: Ditto. | |
879 | * server.c: Ditto. | |
880 | * target.c: Ditto. | |
881 | * win32-low.c: Ditto. | |
882 | ||
97438e3f DE |
883 | 2008-12-12 Doug Evans <dje@google.com> |
884 | ||
896c7fbb DE |
885 | * linux-low.c (linux_wait_for_process): Don't clobber current_inferior |
886 | in debugging printf. | |
887 | ||
97438e3f DE |
888 | * linux-low.c (handle_extended_wait): Simplify, use my_waitpid. |
889 | ||
e3b886f8 DE |
890 | 2008-12-09 Doug Evans <dje@google.com> |
891 | ||
892 | * linux-low.h (struct process_info): Delete member tid, unused. | |
893 | * thread-db.c (find_one_thread): Update. | |
894 | (maybe_attach_thread): Update. | |
895 | ||
07e059b5 VP |
896 | 2008-12-02 Pedro Alves <pedro@codesourcery.com> |
897 | ||
898 | * target.h (struct target_ops): Add qxfer_osdata member. | |
899 | * linux-low.c: Include ctype.h and pwd.h and sys/types.h | |
900 | and dirent.h. | |
901 | (linux_qxfer_osdata): New functions. | |
902 | (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata | |
903 | callback. | |
904 | * server.c (handle_query): Handle "qXfer:osdata:read:". | |
905 | * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
906 | (buffer_xml_printf): New functions. | |
907 | * server.h (struct buffer): New. | |
908 | (buffer_grow_str, buffer_grow_str0): New macros. | |
909 | (buffer_grow, buffer_free, buffer_init, buffer_finish) | |
910 | (buffer_xml_printf): Declare. | |
911 | ||
4cab47ab DE |
912 | 2008-11-24 Doug Evans <dje@google.com> |
913 | ||
914 | * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused. | |
915 | ||
f142445f DJ |
916 | 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com> |
917 | ||
918 | * server.c (handle_v_run): Always use the supplied argument list. | |
919 | ||
d0107bb6 BW |
920 | 2008-11-19 Bob Wilson <bob.wilson@acm.org> |
921 | ||
922 | * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4. | |
923 | (xtensa_regmap_table): Add entry for scompare1. | |
924 | ||
2c4ad781 TJB |
925 | 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com> |
926 | ||
927 | * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c, | |
928 | powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c, | |
929 | powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c, | |
930 | powerpc-isa205-64l.o, powerpc-isa205-64l.c, | |
931 | powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c, | |
932 | powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets. | |
933 | * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and | |
934 | XML target descriptions. | |
935 | * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR | |
936 | when inferior is running on an ISA 2.05 or later processor. Add | |
937 | special case to return offset for full 64-bit slot of FPSCR when | |
938 | in 32-bits. | |
939 | ||
dfb64f85 DJ |
940 | 2008-11-14 Daniel Gutson <dgutson@codesourcery.com> |
941 | ||
942 | * Makefile.in (SFILES, clean): Added sparc64 files. | |
943 | (reg-sparc64.o, reg-sparc64.c): New. | |
944 | * configure.srv (sparc*-*-linux*): New configuration. | |
945 | * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace | |
946 | syscall arguments for SPARC. | |
947 | (regsets_store_inferior_registers): Likewise. | |
948 | * linux-sparc-low.c: New file. | |
949 | ||
66b6e1dd DE |
950 | 2008-10-21 Doug Evans <dje@google.com> |
951 | ||
952 | * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete. | |
953 | (READLINE_DIR,READLINE_DEP): Delete. | |
954 | (INTERNAL_CFLAGS): Update. | |
955 | (LINTFLAGS): Update. | |
956 | ||
9b710a42 PA |
957 | 2008-10-10 Pedro Alves <pedro@codesourcery.com> |
958 | ||
959 | * server.c (handle_v_run): If GDB didn't specify an argv, use the | |
960 | whole argv from the last run, not just argv[0]. | |
961 | ||
5822d809 PA |
962 | 2008-09-08 Pedro Alves <pedro@codesourcery.com> |
963 | ||
964 | * regcache.c (new_register_cache): Return NULL if the register | |
965 | cache size isn't known yet. | |
966 | (free_register_cache): Avoid dereferencing a NULL regcache. | |
967 | ||
74aac56f DJ |
968 | 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
969 | ||
970 | * configure.srv: Merge MIPS and MIPS64. | |
971 | ||
400b20f5 MR |
972 | 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org> |
973 | ||
974 | * Makefile.in (uninstall): Apply $(EXEEXT) too. | |
975 | ||
677c5bb1 LM |
976 | 2008-08-18 Luis Machado <luisgpm@br.ibm.com> |
977 | ||
978 | * Makefile.in: Add required vsx dependencies. | |
979 | ||
980 | * linux-ppc-low: Define PPC_FEATURE_HAS_VSX. | |
981 | Declare init_registers_powerpc_vsx32l. | |
982 | Declare init_registers_powerpc_vsx64l. | |
983 | Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. | |
984 | (ppc_arch_setup): Check for VSX in hwcap. | |
985 | (ppc_fill_vsxregset): New function. | |
986 | (ppc_store_vsxregset): New function. | |
987 | Add new VSX entry in regset_info target_regsets. | |
988 | ||
989 | * configure.srv: Add new VSX dependencies. | |
990 | ||
a6f3e723 SL |
991 | 2008-08-12 Pedro Alves <pedro@codesourcery.com> |
992 | ||
993 | * remote-utils.c (noack_mode, transport_is_reliable): New globals. | |
994 | (remote_open): Set or clear transport_is_reliable. | |
995 | (putpkt_binary): Don't expect acks in noack mode. | |
996 | (getpkt): Don't send ack/nac in noack mode. | |
997 | * server.c (handle_general_set): Handle QStartNoAckMode. | |
998 | (handle_query): If connected by tcp pass QStartNoAckMode+ in | |
999 | qSupported. | |
1000 | (main): Reset noack_mode on every connection. | |
1001 | * server.h (noack_mode): Declare. | |
1002 | ||
a417dc56 RW |
1003 | 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1004 | ||
1005 | * Makefile.in (GDBREPLAY_OBS): New variable. | |
1006 | (gdbreplay$(EXEEXT)): Use it to avoid unportable $^. | |
1007 | ||
3221518c UW |
1008 | 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com> |
1009 | Daniel Jacobowitz <dan@codesourcery.com> | |
1010 | ||
1011 | * linux-low.c (linux_resume_one_process): Ignore ESRCH. | |
1012 | (usr_store_inferior_registers): Likewise. | |
1013 | (regsets_store_inferior_registers): Likewise. | |
1014 | ||
ec56be1b PA |
1015 | 2008-07-31 Rolf Jansen <rj@surtec.com> |
1016 | Pedro Alves <pedro@codesourcery.com> | |
1017 | ||
1018 | * configure.ac: Check for memmem declaration. | |
1019 | * server.c [HAVE_MALLOC_H]: Include malloc.h. | |
1020 | (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC) | |
1021 | (disable_packet_qfThreadInfo): Unconditionally compile. | |
1022 | * server.h [!HAVE_DECL_MEMMEM]: Declare memmem. | |
1023 | * configure, config.in: Regenerate. | |
1024 | ||
2fe5e3ff DE |
1025 | 2008-07-28 Doug Kwan <dougkwan@google.com> |
1026 | ||
1027 | * linux-low.c (sys/dir.h, sys/user.h): Remove includes. | |
1028 | (linux_write_memory): Remove declaration of errno. | |
1029 | ||
836acd6d UW |
1030 | 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com> |
1031 | ||
1032 | * linux-low.c (handle_extended_wait): Do not use "status" | |
1033 | variable uninitialized. | |
1034 | ||
aeba519e PA |
1035 | 2008-07-07 Pedro Alves <pedro@codesourcery.com> |
1036 | ||
1037 | * server.c (handle_v_attach): Inhibit reporting dll changes. | |
1038 | ||
db42f210 PA |
1039 | 2008-06-27 Pedro Alves <pedro@codesourcery.com> |
1040 | ||
1041 | * remote-utils.c (prepare_resume_reply): If requested, don't | |
1042 | output "thread:TID" in the T stop reply. | |
1043 | ||
1044 | * server.c (disable_packet_vCont, disable_packet_Tthread) | |
1045 | (disable_packet_qC, disable_packet_qfThreadInfo): New globals. | |
1046 | (handle_query): If requested, disable support for qC, qfThreadInfo | |
1047 | and qsThreadInfo. | |
1048 | (handle_v_requests): If requested, disable support for vCont. | |
1049 | (gdbserver_show_disableable): New. | |
1050 | (main): Handle --disable-packet and --disable-packet=LIST. | |
1051 | ||
1052 | * server.h (disable_packet_vCont, disable_packet_Tthread) | |
1053 | (disable_packet_qC, disable_packet_qfThreadInfo): Declare. | |
1054 | ||
8e4c5421 CD |
1055 | 2008-06-20 Carlos O'Donell <carlos@codesourcery.com> |
1056 | ||
1057 | * server.c (gdbserver_usage): Mention --version. | |
1058 | ||
6e23a804 DJ |
1059 | 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com> |
1060 | ||
1061 | * Makefile.in (gdbreplay.o): New rule. | |
1062 | ||
90aa6a40 JM |
1063 | 2008-06-06 Joseph Myers <joseph@codesourcery.com> |
1064 | ||
1065 | * gdbreplay.c (gdbreplay_version): Say gdbreplay in version | |
1066 | message, not gdbserver. | |
1067 | ||
c16158bc JM |
1068 | 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> |
1069 | Nathan Sidwell <nathan@codesourcery.com> | |
1070 | Joseph Myers <joseph@codesourcery.com> | |
1071 | ||
1072 | * acinclude.m4: Include ../../config/acx.m4. | |
1073 | * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. | |
1074 | * configure, config.in: Regenerate. | |
1075 | * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. | |
1076 | * server.c (gdbserver_version): Print PKGVERSION. | |
1077 | (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. | |
1078 | (main): Adjust gdbserver_usage calls. | |
1079 | * gdbreplay.c (version, host_name): Add declarations. | |
1080 | (gdbreplay_version, gdbreplay_usage): New. | |
1081 | (main): Accept --version and --help options. | |
1082 | ||
aeb75bf5 DJ |
1083 | 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com> |
1084 | ||
1085 | * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New. | |
1086 | (arm_breakpoint_at): Handle Thumb. | |
1087 | (the_low_target): Add comment. | |
1088 | ||
76b233dd UW |
1089 | 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com> |
1090 | ||
1091 | * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer. | |
1092 | ||
08388c79 DE |
1093 | 2008-05-09 Doug Evans <dje@google.com> |
1094 | ||
a3c83fae DE |
1095 | * server.h (decode_search_memory_packet): Declare. |
1096 | * remote-utils.c (decode_search_memory_packet): New fn. | |
1097 | * server.c (handle_search_memory_1): New fn. | |
08388c79 DE |
1098 | (handle_search_memory): New fn. |
1099 | (handle_query): Process qSearch:memory packets. | |
1100 | ||
bb9c3d36 UW |
1101 | 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com> |
1102 | ||
1103 | * regcache.c (registers_length): Remove. | |
1104 | (set_register_cache): Verify that PBUFSIZ is large enough to hold a | |
1105 | full register packet. | |
1106 | * regcache.h (registers_length): Remove prototype. | |
1107 | * server.h (PBUFSIZ): Define to 16384. | |
1108 | ||
7284e1be UW |
1109 | 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com> |
1110 | ||
1111 | * configure.srv (powerpc*-*-linux*): Set srv_regobj to | |
1112 | powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o, | |
1113 | powerpc-64l.o, and powerpc-altivec64l.o. | |
1114 | Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and | |
1115 | rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml, | |
1116 | rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml, | |
1117 | rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml, | |
1118 | rs6000/power-linux.xml, and rs6000/power64-linux.xml | |
1119 | to srv_xmlfiles. | |
1120 | ||
1121 | * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ... | |
1122 | (powerpc-32l.o, powerpc-32l.c): ... these new rules. | |
1123 | (powerpc-32.o, powerpc-32.c): Remove, replace by ... | |
1124 | (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules. | |
1125 | (powerpc-e500.o, powerpc-e500.c): Remove, replace by ... | |
1126 | (powerpc-e500l.o, powerpc-e500l.c): ... these new rules. | |
1127 | (reg-ppc64.o, reg-ppc64.c): Remove, replace by ... | |
1128 | (powerpc-64l.o, powerpc-64l.c): ... these new rules. | |
1129 | (powerpc-64.o, powerpc-64.c): Remove, replace by ... | |
1130 | (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules. | |
1131 | (clean): Update. | |
1132 | ||
1133 | * linux-ppc-low.c (init_registers_ppc): Remove, replace by ... | |
1134 | (init_registers_powerpc_32l): ... this new prototype. | |
1135 | (init_registers_powerpc_32): Remove, replace by ... | |
1136 | (init_registers_powerpc_altivec32l): ... this new prototype. | |
1137 | (init_registers_powerpc_e500): Remove, replace by ... | |
1138 | (init_registers_powerpc_e500l): ... this new prototype. | |
1139 | (init_registers_ppc64): Remove, replace by ... | |
1140 | (init_registers_powerpc_64l): ... this new prototype. | |
1141 | (init_registers_powerpc_64): Remove, replace by ... | |
1142 | (init_registers_powerpc_altivec64l): ... this new prototype. | |
1143 | (ppc_num_regs): Set to 73. | |
1144 | (PT_ORIG_R3, PT_TRAP): Define if necessary. | |
1145 | (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap. | |
1146 | (ppc_cannot_store_register): Handle orig_r3 and trap. | |
1147 | (ppc_arch_setup): Update init_registers_... calls. | |
1148 | (ppc_fill_gregset): Handle orig_r3 and trap. | |
1149 | ||
1150 | * inferiors.c (clear_inferiors): Reset current_inferior. | |
1151 | ||
fdc59709 PB |
1152 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
1153 | ||
1154 | * acinclude.m4: Add override.m4. | |
1155 | * configure: Regenerate. | |
1156 | ||
c9b2f845 UW |
1157 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
1158 | ||
1159 | * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the | |
1160 | initial call to init_register_ppc64. | |
1161 | ||
550512b8 UW |
1162 | 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com> |
1163 | ||
1164 | * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single | |
1165 | powerpc*-*-linux* case. | |
1166 | (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case. | |
1167 | ||
b6430ec3 UW |
1168 | 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com> |
1169 | ||
1170 | * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from | |
1171 | srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml | |
1172 | from reg_xmlfiles. | |
1173 | * linux-ppc-low.c: Include <elf.h>. | |
1174 | (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define. | |
1175 | (ppc_hwcap): New global variable. | |
1176 | (ppc_regmap): Remove __SPE__ #ifdef sections. | |
1177 | (ppc_regmap_e500): New global variable. | |
1178 | (ppc_cannot_store_register): Update __SPE__ special case. | |
1179 | (ppc_get_hwcap): New function. | |
1180 | (ppc_arch_setup): Use it to determine whether inferior supports | |
1181 | AltiVec or SPE registers. Set the_low_target.regmap if appropriate. | |
1182 | (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally. | |
1183 | Do not access registers if target does not support AltiVec. | |
1184 | (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally. | |
1185 | Do not access registers if target does not support SPE. | |
1186 | (target_regsets): Unconditionally include AltiVec and SPE regsets. | |
1187 | ||
52fa2412 UW |
1188 | 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com> |
1189 | ||
1190 | * linux-low.c (disabled_regsets, num_regsets): New. | |
1191 | (use_regsets_p): Delete. | |
1192 | (linux_wait_for_process): Clear disabled_regsets. | |
1193 | (regsets_fetch_inferior_registers): Check and set it. | |
1194 | (regsets_store_inferior_registers): Likewise. | |
1195 | (linux_fetch_registers, linux_store_registers): Do not use | |
1196 | use_regsets_p. | |
1197 | (initialize_low): Allocate disabled_regsets. | |
1198 | ||
e28b3332 DJ |
1199 | 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
1200 | ||
1201 | * Makefile.in (LIBOBJS): New. | |
1202 | (OBS): Use LIBOBJS. | |
1203 | (memmem.o): New rule. | |
1204 | * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem. | |
1205 | * configure: Regenerated. | |
1206 | ||
4536995d UW |
1207 | 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com> |
1208 | ||
1209 | * server.c (handle_query): Never return "unsupported" for | |
1210 | qXfer:features:read queries. | |
1211 | ||
221c031f UW |
1212 | 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> |
1213 | ||
1214 | * server.c (get_features_xml): Fix inverted condition. | |
1215 | (handle_query): Always support qXfer:feature:read. | |
1216 | ||
ccd213ac DJ |
1217 | 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> |
1218 | ||
1219 | * server.c (wrapper_argv): New. | |
1220 | (start_inferior): Handle wrapper_argv. If set, expect an extra | |
1221 | trap. | |
1222 | (gdbserver_usage): Document --wrapper. | |
1223 | (main): Parse --wrapper. | |
1224 | ||
6fe305f7 UW |
1225 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
1226 | ||
1227 | * configure.srv [powerpc64-*-linux*]: Add all files mentioned for | |
1228 | powerpc-*-linux* to srv_regobj and reg_xmlfiles. | |
1229 | * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation. | |
1230 | (ppc_set_pc): Likewise. | |
1231 | (ppc_arch_setup): New function. | |
1232 | (ppc_fill_gregset): Call ppc_collect_ptrace_register instead | |
1233 | of collect_register. | |
1234 | (the_low_target): Use ppc_arch_setup as arch_setup initializer. | |
1235 | ||
5b0a002e UW |
1236 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
1237 | ||
1238 | * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o | |
1239 | instead of linux-ppc64-low.o. | |
1240 | * linux-ppc64-low.c: Remove file. | |
1241 | * Makefile.in (SFILES): Remove linux-ppc64-low.c. | |
1242 | (linux-ppc64-low.o): Remove rule. | |
1243 | ||
1244 | * linux-ppc-low.c (init_registers_ppc64): Add prototype. | |
1245 | (init_registers_powerpc_64): Likewise. | |
1246 | (ppc_regmap): Conditionally define depending on __powerpc64__. | |
1247 | (ppc_cannot_store_register): Do not special-case "fpscr" when | |
1248 | compiled on __powerpc64__. | |
1249 | (ppc_collect_ptrace_register): New function. | |
1250 | (ppc_supply_ptrace_register): New function. | |
1251 | (ppc_breakpoint): Change type to "unsigned int". | |
1252 | (ppc_breakpoint_at): Change type of "insn" to "unsigned int". | |
1253 | (the_low_target): Conditionally provide initializers for the | |
1254 | arch_setup member depending on __powerpc64__. Install | |
1255 | collect_ptrace_register and supply_ptrace_register members. | |
1256 | ||
9b4b61c8 UW |
1257 | 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
1258 | ||
1259 | * regcache.h (gdbserver_xmltarget): Add extern declaration. | |
1260 | * server.c (gdbserver_xmltarget): Define. | |
1261 | (get_features_xml): Use it to replace "target.xml" and arch_string. | |
1262 | ||
1263 | * configure.srv: Remove srv_xmltarget. Add XML files that were | |
1264 | mentioned there to srv_xmlfiles instead. Remove conditional tests | |
1265 | on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set | |
1266 | srv_xmlfiles and srv_regobj to include all possible choices. | |
1267 | * configure.ac (srv_xmltarget): Remove. | |
1268 | (srv_xmlfiles): Do not add "target.xml". | |
1269 | (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove | |
1270 | checks for supplementary target information. | |
1271 | * configure: Regenerate. | |
1272 | * Makefile.in (XML_TARGET): Remove. | |
1273 | (target.xml): Remove rule. | |
1274 | (clean): Do not clean up target.xml. | |
1275 | (.PRECIOUS): Do not mention target.xml. | |
1276 | ||
1277 | * target.h (struct target_ops): Remove arch_string member. | |
1278 | * linux-low.c (linux_arch_string): Remove. | |
1279 | (linux_target_ops): Remove arch_string initializer. | |
1280 | * linux-low.h (struct linux_target_ops): Remove arch_string member. | |
1281 | * linux-i386-low.c (the_low_target): Remove arch_string initializer. | |
1282 | * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. | |
1283 | * spu-low.c (spu_arch_string): Remove. | |
1284 | (spu_target_ops): Remove arch_string initializer. | |
1285 | * win32-low.c (win32_arch_string): Remove. | |
1286 | (win32_target_ops): Remove arch_string initializer. | |
1287 | * win32-low.h (struct win32_target_ops): Remove arch_string member. | |
1288 | * win32-arm-low.c (the_low_target): Remove arch_string initializer. | |
1289 | * win32-i368-low.c (the_low_target): Remove arch_string initializer. | |
1290 | ||
ee1a7ae4 UW |
1291 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1292 | ||
1293 | * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field | |
1294 | by collect_ptrace_register and supply_ptrace_register hooks. | |
1295 | * linux-low.c (fetch_register): Use supply_ptrace_register callback | |
1296 | instead of checking for the_low_target.left_pad_xfer. | |
1297 | (usr_store_inferior_registers): Use collect_ptrace_register callback | |
1298 | instead of checking for the_low_target.left_pad_xfer. | |
1299 | ||
1300 | * linux-s390-low.c (s390_collect_ptrace_register): New function. | |
1301 | (s390_supply_ptrace_register): Likewise. | |
1302 | (s390_fill_gregset): Call s390_collect_ptrace_register. | |
1303 | (the_low_target): Update. | |
1304 | ||
1305 | * linux-ppc64-low.c (ppc_collect_ptrace_register): New function. | |
1306 | (ppc_supply_ptrace_register): Likewise. | |
1307 | (the_low_target): Update. | |
1308 | ||
1309 | * linux-i386-low.c (the_low_target): Update. | |
1310 | * linux-x86-64-low.c (the_low_target): Update. | |
1311 | ||
d61ddec4 UW |
1312 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1313 | ||
1314 | * configure.srv [s390x-*-linux*]: Set srv_regobj to include both | |
1315 | reg-s390.o and reg-s390x.o. | |
1316 | ||
1317 | * linux-low.c (new_inferior): New global variable. | |
1318 | (linux_create_inferior, linux_attach): Set it. | |
1319 | (linux_wait_for_process): Call the_low_target.arch_setup after the | |
1320 | target has stopped for the first time. | |
1321 | (initialize_low): Do not call the_low_target.arch_setup. | |
1322 | ||
1323 | * linux-s390-low.c (s390_get_pc): Support bi-arch operation. | |
1324 | (s390_set_pc): Likewise. | |
1325 | (s390_arch_setup): New function. | |
1326 | (the_low_target): Use s390_arch_setup as arch_setup routine. | |
1327 | ||
1328 | * regcache.c (realloc_register_cache): New function. | |
1329 | (set_register_cache): Call it for each existing regcache. | |
1330 | ||
d05b4ac3 UW |
1331 | 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com> |
1332 | ||
1333 | * server.h (init_registers): Remove prototype. | |
1334 | ||
1335 | * linux-low.h (struct linux_target_ops): Add arch_setup field. | |
1336 | * linux-low.c (initialize_low): Call the_low_target.arch_setup () | |
1337 | instead of init_registers (). | |
1338 | * linux-arm-low.c (init_registers_arm): Add prototype. | |
1339 | (init_registers_arm_with_iwmmxt): Likewise. | |
1340 | (the_low_target): Add initializer for arch_setup field. | |
1341 | * linux-cris-low.c (init_registers_cris): Add prototype. | |
1342 | (the_low_target): Add initializer for arch_setup field. | |
1343 | * linux-crisv32-low.c (init_registers_crisv32): Add prototype. | |
1344 | (the_low_target): Add initializer for arch_setup field. | |
1345 | * linux-i386-low.c (init_registers_i386_linux): Add prototype. | |
1346 | (the_low_target): Add initializer for arch_setup field. | |
1347 | * linux-ia64-low.c (init_registers_ia64): Add prototype. | |
1348 | (the_low_target): Add initializer for arch_setup field. | |
1349 | * linux-m32r-low.c (init_registers_m32r): Add prototype. | |
1350 | (the_low_target): Add initializer for arch_setup field. | |
1351 | * linux-m68k-low.c (init_registers_m68k): Add prototype. | |
1352 | (the_low_target): Add initializer for arch_setup field. | |
1353 | * linux-mips-low.c (init_registers_mips_linux): Add prototype. | |
1354 | (init_registers_mips64_linux): Likewise. | |
1355 | (the_low_target): Add initializer for arch_setup field. | |
1356 | * linux-ppc-low.c (init_registers_ppc): Add prototype. | |
1357 | (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise. | |
1358 | (the_low_target): Add initializer for arch_setup field. | |
1359 | * linux-ppc64-low.c (init_registers_ppc64): Add prototype. | |
1360 | (init_registers_powerpc_64): Likewise. | |
1361 | (the_low_target): Add initializer for arch_setup field. | |
1362 | * linux-s390-low.c (init_registers_s390): Add prototype. | |
1363 | (init_registers_s390x): Likewise. | |
1364 | (the_low_target): Add initializer for arch_setup field. | |
1365 | * linux-sh-low.c (init_registers_sh): Add prototype. | |
1366 | (the_low_target): Add initializer for arch_setup field. | |
1367 | * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype. | |
1368 | (the_low_target): Add initializer for arch_setup field. | |
1369 | * linux-xtensa-low.c (init_registers_xtensa): Add prototype. | |
1370 | (the_low_target): Add initializer for arch_setup field. | |
1371 | ||
1372 | * win32-low.h (struct win32_target_ops): Add arch_setup field. | |
1373 | * win32-low.c (initialize_low): Call the_low_target.arch_setup () | |
1374 | instead of init_registers (). | |
1375 | * win32-arm-low.c (init_registers_arm): Add prototype. | |
1376 | (the_low_target): Add initializer for arch_setup field. | |
1377 | * win32-i386-low.c (init_registers_i386): Add prototype. | |
1378 | (the_low_target): Add initializer for arch_setup field. | |
1379 | ||
1380 | * spu-low.c (init_registers_spu): Add prototype. | |
1381 | (initialize_low): Call initialie_registers_spu () instead of | |
1382 | initialize_registers (). | |
1383 | ||
fd96d250 PA |
1384 | 2008-02-19 Pedro Alves <pedro@codesourcery.com> |
1385 | ||
1386 | * server.c (handle_v_requests): When handling the vRun and vAttach | |
1387 | packets, if already debugging a process, don't kill it. Return an | |
1388 | error instead. | |
1389 | ||
d41b6bb4 DJ |
1390 | 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com> |
1391 | ||
1392 | * server.c (handle_query): Correct length check. | |
1393 | ||
5ac588cf PA |
1394 | 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt> |
1395 | ||
1396 | * win32-low.c (do_initial_child_stuff): Add process handle | |
1397 | parameter. Set current_process_handle and current_process_id from the | |
1398 | parameters. Clear globals. | |
1399 | (win32_create_inferior): Don't set current_process_handle and | |
1400 | current_process_id here. Instead pass them on the call to | |
1401 | do_initial_child_stuff. | |
1402 | (win32_attach): Likewise. | |
1403 | (win32_clear_inferiors): New. | |
1404 | (win32_kill): Don't close the current process handle or the | |
1405 | current thread handle here. Instead call win32_clear_inferiors. | |
1406 | (win32_detach): Don't open a new handle to the process. Call | |
1407 | win32_clear_inferiors. | |
1408 | (win32_join): Don't rely on current_process_handle; open a new | |
1409 | handle using the process id. | |
1410 | (win32_wait): Call win32_clear_inferiors when the inferior process | |
1411 | has exited. | |
1412 | ||
ecd7ecbc DJ |
1413 | 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com> |
1414 | ||
1415 | * server.c (monitor_show_help): Add "exit". | |
1416 | ||
1525d545 MG |
1417 | 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com> |
1418 | ||
ecd7ecbc | 1419 | * Makefile.in (SFILES): Add linux-xtensa-low.c. |
1525d545 MG |
1420 | (clean): Add reg-xtensa.c. |
1421 | (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies. | |
ecd7ecbc DJ |
1422 | * configure.srv (xtensa*-*-linux*) New target. |
1423 | * linux-xtensa-low.c: New. | |
1424 | * xtensa-xtregs.c: New. | |
1525d545 | 1425 | |
59a016f0 PA |
1426 | 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt> |
1427 | ||
1428 | * hostio.c: Don't include errno.h. | |
1429 | (errno_to_fileio_errno): Move to hostio-errno. | |
1430 | * hostio.c: (hostio_error): Remove the error parameter. Defer the | |
1431 | error number outputting to the target->hostio_last_error callback. | |
1432 | (hostio_packet_error): Use FILEIO_EINVAL directly. | |
1433 | (handle_open, handle_pread, hostio_error, handle_unlink): Update | |
1434 | calls to hostio_error. | |
1435 | * hostio-errno.c: New. | |
1436 | * server.h (hostio_last_error_from_errno): Declare. | |
1437 | * target.h (target_ops): Add hostio_last_error member. | |
1438 | * linux-low.c (linux_target_op): Register hostio_last_error_from_errno | |
1439 | as hostio_last_error handler. | |
1440 | * spu-low.c (spu_target_ops): Likewise. | |
1441 | * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error) | |
1442 | (wince_hostio_last_error): New functions. | |
1443 | (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error | |
1444 | as hostio_last_error handler. | |
1445 | (win32_target_ops) [!_WIN32_WCE]: Register | |
1446 | hostio_last_error_from_errno as hostio_last_error handler. | |
1447 | * Makefile.in (SFILES): Add hostio.c and hostio-errno.c. | |
1448 | (hostio-errno.o): New rule. | |
1449 | * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs. | |
1450 | * configure.srv (srv_hostio_err_objs): New variable. Default to | |
1451 | hostio-errno.o. | |
1452 | (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "". | |
1453 | * configure: Regenerate. | |
1454 | ||
2d717e4f DJ |
1455 | 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
1456 | ||
1457 | * linux-low.c (linux_attach_lwp): Do not _exit after errors. | |
1458 | (linux_kill, linux_detach): Clean up the process list. | |
1459 | * remote-utils.c (remote_open): Improve port number parsing. | |
1460 | (putpkt_binary, input_interrupt): Only send interrupts if the target | |
1461 | is running. | |
1462 | * server.c (extended_protocol): Make static. | |
1463 | (attached): Define earlier. | |
1464 | (exit_requested, response_needed, program_argv): New variables. | |
1465 | (target_running): New. | |
1466 | (start_inferior): Clear attached here. | |
1467 | (attach_inferior): Set attached here. | |
1468 | (require_running): Define. | |
1469 | (handle_query): Use require_running and target_running. Implement | |
1470 | "monitor exit". | |
1471 | (handle_v_attach, handle_v_run): New. | |
1472 | (handle_v_requests): Use require_running. Handle vAttach and vRun. | |
1473 | (gdbserver_usage): Update. | |
1474 | (main): Redo argument parsing. Handle --debug and --multi. Handle | |
1475 | --attach along with other options or after the port. Save | |
1476 | program_argv. Support no initial program. Resynchronize | |
1477 | communication with GDB after an error. Handle "monitor exit". | |
1478 | Use require_running and target_running. Always allow the extended | |
1479 | protocol. Do not error out for Hc0 or Hc-1. Do not automatically | |
1480 | restart in extended mode. | |
1481 | * README: Refer to the GDB manual. Update --attach usage. | |
1482 | ||
7407e2de AS |
1483 | 2007-12-20 Andreas Schwab <schwab@suse.de> |
1484 | ||
1485 | * linux-low.c (STACK_SIZE): Define. | |
1486 | (linux_tracefork_child): Use it. Use __clone2 on ia64. | |
1487 | (linux_test_for_tracefork): Likewise. | |
1488 | ||
b65d95c5 DJ |
1489 | 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com> |
1490 | ||
1491 | * linux-low.c (linux_wait_for_event): Update messages. Do not | |
1492 | reinsert auto-delete breakpoints. | |
1493 | * mem-break.c (struct breakpoint): Change return type of handler to | |
1494 | int. | |
1495 | (set_breakpoint_at): Update handler type. | |
1496 | (reinsert_breakpoint_handler): Return 1 instead of calling | |
1497 | delete_breakpoint. | |
1498 | (reinsert_breakpoint_by_bp): Check for the original breakpoint before | |
1499 | setting a new one. | |
1500 | (check_breakpoints): Delete auto-delete breakpoints and return 2. | |
1501 | * mem-break.h (set_breakpoint_at): Update handler type. | |
1502 | * thread-db.c (thread_db_create_event, thread_db_create_event): Update. | |
1503 | * win32-low.c (auto_delete_breakpoint): New. | |
1504 | (get_child_debug_event): Use it. | |
1505 | ||
4e799345 DJ |
1506 | 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> |
1507 | ||
1508 | * configure.ac: Check for pread and pwrite. | |
1509 | * hostio.c (handle_pread): Fall back to lseek and read. | |
1510 | (handle_pwrite): Fall back to lseek and write. | |
1511 | * config.in, configure: Regenerated. | |
1512 | ||
27524b67 DJ |
1513 | 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com> |
1514 | ||
1515 | * server.c (myresume): Add own_buf argument. | |
1516 | (main): Update calls. | |
1517 | ||
a20d5e98 DJ |
1518 | 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com> |
1519 | ||
1520 | * linux-low.c (linux_wait, linux_resume): Do not handle async I/O. | |
1521 | * remote-utils.c (remote_open): Do not call disable_async_io. | |
1522 | (block_async_io): Delete. | |
1523 | (unblock_async_io): Make static. | |
1524 | (initialize_async_io): New. | |
1525 | * server.c (handle_v_cont): Handle async I/O here. | |
1526 | (myresume): Likewise. Move other common resume tasks here... | |
1527 | (main): ... from here. Call initialize_async_io. Disable async | |
1528 | I/O before the main loop. | |
1529 | * server.h (initialize_async_io): Declare. | |
1530 | (block_async_io, unblock_async_io): Delete prototypes. | |
1531 | * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here. | |
1532 | ||
b79d787e DJ |
1533 | 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au> |
1534 | ||
1535 | * remote-utils.c (readchar): Allow binary data in received messages. | |
1536 | ||
d97903b2 PA |
1537 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1538 | ||
1539 | * win32-low.c (attaching): New global. | |
1540 | (win32_create_inferior): Clear the `attaching' global. | |
1541 | (win32_attach): Set the `attaching' global. | |
1542 | (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when | |
1543 | attaching. Only set a breakpoint at the entry point if not | |
1544 | attaching. | |
1545 | ||
311de423 PA |
1546 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1547 | ||
1548 | * server.c (main): Don't report dll events on the initial | |
1549 | connection on attaches. | |
1550 | ||
6c2d16d2 PA |
1551 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1552 | ||
1553 | * server.c (main): Relax numerical bases supported for the pid of | |
1554 | the --attach command line argument. | |
1555 | ||
5ca906e6 PA |
1556 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1557 | ||
1558 | * win32-low.c (win32_attach): Call OpenProcess before | |
1559 | DebugActiveProcess, not after. Add last error output to error | |
1560 | call. | |
1561 | ||
9c6c8194 PA |
1562 | 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1563 | ||
1564 | * win32-low.c (win32_get_thread_context) | |
1565 | (win32_set_thread_context): New functions. | |
1566 | (thread_rec): Use win32_get_thread_context. | |
1567 | (continue_one_thread, win32_resume): Use win32_set_thread_context. | |
1568 | * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context' | |
1569 | field. | |
1570 | ||
4d5d1aaa PA |
1571 | 2007-12-03 Leo Zayas |
1572 | Pedro Alves <pedro_alves@portugalmail.pt> | |
1573 | ||
1574 | * win32-low.c (soft_interrupt_requested, faked_breakpoint): New | |
1575 | global variables. | |
1576 | (child_add_thread): Minor cleanup. | |
1577 | (child_continue): Resume artificially suspended threads before | |
1578 | calling ContinueDebugEvent. | |
1579 | (suspend_one_thread): New. | |
1580 | (fake_breakpoint_event): New. | |
1581 | (get_child_debug_event): Change return type to int. Check here if | |
1582 | gdb sent an interrupt request. If a soft interrupt was requested, | |
1583 | fake a breakpoint event. Return 0 if there is no event to handle, | |
1584 | and 1 otherwise. | |
1585 | (win32_wait): Don't check here if gdb sent an interrupt request. | |
1586 | Ensure there is a valid event to handle. | |
1587 | (win32_request_interrupt): Add soft interruption method as last | |
1588 | resort. | |
1589 | ||
c436e841 PA |
1590 | 2007-12-03 Leo Zayas |
1591 | Pedro Alves <pedro_alves@portugalmail.pt> | |
1592 | ||
1593 | * win32-low.h (win32_thread_info): Add descriptions to the | |
1594 | structure members. Replace `suspend_count' counter by a | |
1595 | `suspended' flag. | |
1596 | * win32-low.c (thread_rec): Update condition of when to get the | |
1597 | context from the inferior. Rely on ContextFlags being set if it | |
1598 | has already been retrieved. Only suspend the inferior thread if | |
1599 | we haven't already. Warn if that fails. | |
1600 | (continue_one_thread): s/suspend_count/suspended/. Only call | |
1601 | ResumeThread once. Warn if that fails. | |
1602 | ||
e7b5fa67 PA |
1603 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
1604 | ||
1605 | * win32-low.c (win32_wait): Don't read from the inferior when it | |
1606 | has already exited. | |
1607 | ||
a385171d PA |
1608 | 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt> |
1609 | ||
1610 | * Makefile.in (win32_low_h): New variable. | |
1611 | (win32-low.o): Add dependency on $(win32_low_h). | |
1612 | (win32-arm-low.o, win32-i386-low.o): New rules. | |
1613 | ||
f80c84b3 DJ |
1614 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
1615 | ||
1616 | * hostio.c: Correct copyright year. | |
1617 | ||
a6b151f1 DJ |
1618 | 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com> |
1619 | ||
1620 | * Makefile.in (OBS): Add hostio.o. | |
1621 | (hostio.o): New rule. | |
1622 | * server.h (handle_vFile): Declare. | |
1623 | * hostio.c: New file. | |
1624 | * server.c (handle_v_requests): Take packet_len and new_packet_len | |
1625 | for binary packets. Call handle_vFile. | |
1626 | (main): Update call to handle_v_requests. | |
1627 | ||
f9387fc3 DJ |
1628 | 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com> |
1629 | ||
1630 | * linux-low.c: Include <sched.h>. | |
1631 | ||
51c2684e DJ |
1632 | 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com> |
1633 | ||
1634 | * linux-low.c (linux_tracefork_grandchild): New. | |
1635 | (linux_tracefork_child): Use clone. | |
1636 | (linux_test_for_tracefork): Use clone; allocate and free a stack. | |
1637 | ||
75f83163 JB |
1638 | 2007-10-31 Joel Brobecker <brobecker@adacore.com> |
1639 | ||
1640 | * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh. | |
1641 | ||
da5898ce DJ |
1642 | 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com> |
1643 | ||
1644 | * linux-low.c (handle_extended_wait): Handle unexpected signals. | |
1645 | ||
24a09b5f DJ |
1646 | 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com> |
1647 | ||
1648 | * inferiors.c (change_inferior_id): Delete. | |
1649 | (add_pid_to_list, pull_pid_from_list): New. | |
1650 | * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG) | |
1651 | (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK) | |
1652 | (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE) | |
1653 | (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK) | |
1654 | (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE) | |
1655 | (PTRACE_EVENT_EXIT, __WALL): Provide default definitions. | |
1656 | (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables. | |
1657 | (using_threads): Always set to 1. | |
1658 | (handle_extended_wait): New. | |
1659 | (add_process): Do not set TID. | |
1660 | (linux_create_inferior): Set must_set_ptrace_flags. | |
1661 | (linux_attach_lwp): Remove TID argument. Do not check using_threads. | |
1662 | Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers. | |
1663 | (linux_thread_alive): Rename TID argument to LWPID. | |
1664 | (linux_wait_for_process): Handle unknown processes. Do not use TID. | |
1665 | (linux_wait_for_event): Do not use TID or check using_threads. Update | |
1666 | call to dead_thread_notify. Call handle_extended_wait. | |
1667 | (linux_create_inferior): Use PTRACE_SETOPTIONS. | |
1668 | (send_sigstop): Delete sigstop_sent. | |
1669 | (wait_for_sigstop): Avoid TID. | |
1670 | (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid) | |
1671 | (linux_test_for_tracefork): New. | |
1672 | (linux_lookup_signals): Use thread_db_active and | |
1673 | linux_supports_tracefork_flag. | |
1674 | (initialize_low): Use thread_db_active and linux_test_for_tracefork. | |
1675 | * linux-low.h (get_process_thread): Avoid TID. | |
1676 | (struct process_ifo): Move thread_known and tid to the end. Remove | |
1677 | sigstop_sent. | |
1678 | (linux_attach_lwp, thread_db_init): Update prototypes. | |
1679 | * server.h (change_inferior_id): Delete prototype. | |
1680 | (add_pid_to_list, pull_pid_from_list): New prototypes. | |
1681 | * thread-db.c (thread_db_use_events): New. | |
1682 | (find_first_thread): Rename to... | |
1683 | (find_one_thread): ...this. Update callers and messages. Do not | |
1684 | call fatal. Check thread_db_use_events. Do not call | |
1685 | change_inferior_id or new_thread_notify. | |
1686 | (maybe_attach_thread): Update. Do not call new_thread_notify. | |
1687 | (thread_db_init): Set thread_db_use_events. Check use_events. | |
1688 | * utils.c (fatal, warning): Correct message prefix. | |
1689 | ||
30ed0a8f DJ |
1690 | 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com> |
1691 | ||
1692 | * Makefile.in (clean): Remove new files. | |
1693 | (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) | |
1694 | (powerpc-64.o, powerpc-64.c): New rules. | |
1695 | * configure.srv: Use alternate register sets for powerpc64-*-linux* | |
1696 | with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* | |
1697 | with SPE. | |
1698 | * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for | |
1699 | SPE targets. | |
1700 | (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. | |
1701 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) | |
1702 | (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) | |
1703 | (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. | |
1704 | (target_regsets): Add AltiVec and SPE register sets. | |
1705 | * configure.ac: Check for AltiVec and SPE. | |
1706 | * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) | |
1707 | (ppc_fill_vrregset, ppc_store_vrregset): New. | |
1708 | (target_regsets): Add AltiVec register set. | |
1709 | * configure: Regenerated. | |
1710 | ||
fd462a61 DJ |
1711 | 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com> |
1712 | ||
1713 | * linux-low.c (O_LARGEFILE): Define. | |
1714 | (linux_read_memory): Use /proc/PID/mem. | |
1715 | * configure.ac: Use AC_GNU_SOURCE. Check for pread64. | |
1716 | * configure, config.in: Regenerated. | |
1717 | ||
69f223ed DJ |
1718 | 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
1719 | ||
1720 | * linux-low.c (linux_wait_for_event): Do not pass signals while | |
1721 | single-stepping. | |
1722 | ||
aec18585 PA |
1723 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1724 | ||
1725 | * win32-low.c (create_process): New. | |
1726 | (win32_create_inferior): Use create_process instead of | |
1727 | CreateProcess. If create_process failed retry appending an ".exe" | |
1728 | suffix. Store the GetLastError result immediatelly after | |
1729 | create_process calls and use it on the call to error. | |
1730 | ||
34d86ddd PA |
1731 | 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> |
1732 | ||
1733 | * win32-low.c (handle_load_dll): Don't use toolhelp when waiting. | |
1734 | ||
5a0e3bd0 JB |
1735 | 2007-08-23 Joel Brobecker <brobecker@adacore.com> |
1736 | ||
1737 | * configure.ac: Switch license to GPLv3. | |
1738 | ||
f88c79e6 MS |
1739 | 2007-08-01 Michael Snyder <msnyder@access-company.com> |
1740 | ||
1741 | * remote-utils.c (putpkt_binary): Memory leak, free buf2. | |
1742 | ||
6b3d9b83 PA |
1743 | 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt> |
1744 | ||
1745 | * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New | |
1746 | typedef. | |
1747 | (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var. | |
1748 | (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get | |
1749 | CloseToolhelp32Snapshot. | |
1750 | (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with | |
1751 | CloseToolhelp32Snapshot. | |
1752 | ||
c588c53c MS |
1753 | 2007-07-27 Michael Snyder <michael.snyder@access-company.com> |
1754 | ||
1755 | * server.c (main): Check for inferior exit before main loop. | |
1756 | ||
aa0403d9 PA |
1757 | 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt> |
1758 | ||
1759 | * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc | |
1760 | instead of on tmp_desc. | |
1761 | ||
255e7678 DJ |
1762 | 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt> |
1763 | Daniel Jacobowitz <dan@codesourcery.com> | |
1764 | ||
1765 | * inferiors.c (all_dlls, dlls_changed, get_dll): New. | |
1766 | (add_thread): Minor cleanups. | |
1767 | (clear_inferiors): Move lower in the file. Clear the DLL | |
1768 | list. | |
1769 | (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. | |
1770 | * remote-utils.c (prepare_resume_reply): Check dlls_changed. | |
1771 | (xml_escape_text): New. | |
1772 | * server.c (handle_query): Handle qXfer:libraries:read. Report it | |
1773 | for qSupported. | |
1774 | (handle_v_cont): Report errors. | |
1775 | (gdbserver_version): Update. | |
1776 | (main): Correct size of own_buf. Do not report initial DLL events. | |
1777 | * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) | |
1778 | (unloaded_dll, xml_escape_text): New. | |
1779 | * win32-low.c (enum target_waitkind): Update comments. | |
1780 | (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) | |
1781 | (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) | |
1782 | (win32_EnumProcessModules, win32_GetModuleInformation) | |
1783 | (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) | |
1784 | (winapi_CreateToolhelp32Snapshot, winapi_Module32First) | |
1785 | (winapi_Module32Next, win32_CreateToolhelp32Snapshot) | |
1786 | (win32_Module32First, win32_Module32Next, load_toolhelp) | |
1787 | (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. | |
1788 | (get_child_debug_event): Handle DLL events. | |
1789 | (win32_wait): Likewise. | |
1790 | ||
0d37add9 DJ |
1791 | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
1792 | ||
1793 | * configure.srv: Set srv_linux_regsets for sh*-*-linux*. | |
1794 | * linux-sh-low.c (sh_fill_gregset, target_regsets): New. | |
1795 | ||
45e2715e PA |
1796 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
1797 | ||
1798 | * win32-low.c (handle_output_debug_string): Ignore event if not | |
1799 | waiting. | |
1800 | ||
c5674cf1 PA |
1801 | 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt> |
1802 | ||
1803 | * win32-arm-low.c (arm_wince_breakpoint): Fix typo. | |
1804 | ||
2bbe3cc1 DJ |
1805 | 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com> |
1806 | ||
1807 | * remote-utils.c (look_up_one_symbol): Handle 'm' packets. | |
1808 | ||
ae13219e DJ |
1809 | 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com> |
1810 | ||
1811 | * inferiors.c (change_inferior_id): Add comment. | |
1812 | * linux-low.c (check_removed_breakpoint): Add an early | |
1813 | prototype. Improve debug output. | |
1814 | (linux_attach): Doc update. | |
1815 | (linux_detach_one_process, linux_detach): Clean up before releasing | |
1816 | each process. | |
1817 | (send_sigstop, wait_for_sigstop): Improve comments and debug output. | |
1818 | * linux-low.h (struct process_info): Doc improvement. | |
1819 | * mem-break.c (delete_all_breakpoints): New. | |
1820 | * mem-break.h (delete_all_breakpoints): New prototype. | |
1821 | * thread-db.c (find_first_thread): New. | |
1822 | (thread_db_create_event): Call it instead of | |
1823 | thread_db_find_new_threads. Clean up unused variables. | |
1824 | (maybe_attach_thread): Remove first thread handling. | |
1825 | (thread_db_find_new_threads): Use find_first_thread. | |
1826 | (thread_db_get_tls_address): Likewise. | |
1827 | ||
4105de34 DJ |
1828 | 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com> |
1829 | ||
1830 | * thread-db.c (thread_db_find_new_threads): Add prototype. | |
1831 | (thread_db_create_event): Check for the main thread before adding | |
1832 | a new thread. | |
1833 | (maybe_attach_thread): Only enable event reporting if TID == 0. | |
1834 | (thread_db_get_tls_address): Check for new threads. | |
1835 | ||
2b876972 DJ |
1836 | 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com> |
1837 | ||
1838 | * linux-low.c (linux_create_inferior): Try execv before execvp. | |
1839 | * spu-low.c (spu_create_inferior): Likewise. | |
1840 | ||
7a245884 DJ |
1841 | 2007-06-13 Mike Frysinger <vapier@gentoo.org> |
1842 | ||
1843 | * linux-low.c (linux_create_inferior): Change execv to execvp. | |
1844 | * spu-low.c (spu_create_inferior): Likewies. | |
1845 | ||
117ce543 DJ |
1846 | 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> |
1847 | ||
1848 | * Makefile.in (clean): Clean new files instead of deleted ones. | |
1849 | (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. | |
1850 | (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New | |
1851 | rules. | |
1852 | * configure.srv: Specify XML files and new regformats for MIPS and | |
1853 | MIPS64 GNU/Linux. | |
1854 | * linux-mips-low.c (mips_num_regs): Set to only used registers. | |
1855 | (mips_regmap): Do not fetch $0. Remove unused registers. Add | |
1856 | an entry for the restart register. | |
1857 | (mips_cannot_fetch_register, mips_cannot_store_register) | |
1858 | (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update | |
1859 | register names to match the XML descriptions. | |
1860 | (mips_fill_gregset, mips_store_gregset): Likewise. Handle the | |
1861 | restart register instead of $0. | |
1862 | ||
0e7f50da UW |
1863 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
1864 | Markus Deuling <deuling@de.ibm.com> | |
1865 | ||
1866 | * remote-utils.c (decode_xfer_write): New function. | |
1867 | * server.h (decode_xfer_write): Add prototype. | |
1868 | * server.c (handle_query): Add PACKET_LEN argument. Support | |
1869 | qXfer:spu:read and qXfer:spu:write packets. | |
1870 | (main): Pass packet_len to handle_query. | |
1871 | * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu. | |
1872 | * target.h (target_ops): Add qxfer_spu. | |
1873 | ||
374c1d38 UW |
1874 | 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com> |
1875 | ||
1876 | * spu-low.c (spu_proc_xfer_spu): Do not return failure when | |
1877 | accessing non-seekable spufs files. | |
1878 | ||
bb63802a UW |
1879 | 2007-05-16 Markus Deuling <deuling@de.ibm.com> |
1880 | ||
1881 | * server.c (handle_query): Add reply for qC packet. | |
1882 | ||
7390519e PA |
1883 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1884 | Leo Zayas <lerele@champenstudios@com> | |
1885 | ||
1886 | * server.h (check_remote_input_interrupt_request): New function. | |
1887 | * remote_utils.c (INVALID_DESCRIPTOR): New define. | |
1888 | (remote_desc): Initialize with INVALID_DESCRIPTOR. | |
1889 | (input_interrupt): Expose on USE_WIN32API too. Fix whitespace. | |
1890 | (check_remote_input_interrupt_request): New function. | |
1891 | * server.h (check_remote_input_interrupt_request): Declare. | |
3ecf0694 | 1892 | * win32-low.c (winapi_DebugBreakProcess, |
7390519e PA |
1893 | winapi_GenerateConsoleCtrlEvent): New typedefs. |
1894 | (get_child_debug_event): Lower Win32 debug event polling from 1 sec | |
1895 | to 250 ms. | |
1896 | (win32_wait): Check for remote interrupt request | |
1897 | with check_remote_input_interrupt_request. | |
1898 | (win32_request_interrupt): New function. | |
1899 | (win32_target_op): Set request_interrupt to win32_request_interrupt. | |
1900 | ||
34b34921 PA |
1901 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1902 | ||
1903 | * win32-low.c (debug_registers_changed, | |
1904 | debug_registers_used, CONTEXT_EXTENDED_REGISTERS, | |
1905 | CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS, | |
1906 | CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete. | |
1907 | (thread_rec): Get context using the low target. | |
1908 | (child_add_thread): Call thread_added on the low target, | |
1909 | which does the same thing. | |
1910 | (regptr): Delete. | |
1911 | (do_initial_child_stuff): Remove debug registers references. | |
1912 | Set context using the low target. Resume threads after | |
1913 | setting the contexts. | |
1914 | (child_continue): Remove dead variable. Remove debug | |
1915 | registers references. | |
1916 | (child_fetch_inferior_registers): Go through the low target. | |
1917 | (do_child_store_inferior_registers): Remove. | |
1918 | (child_store_inferior_registers): Go through the low target. | |
1919 | (win32_resume): Remove debug registers references. | |
1920 | Set context using the low target. | |
1921 | (handle_exception): Change return type to void. Don't record | |
1922 | context here. Set status to TARGET_WAITKIND_SPURIOUS on a | |
1923 | first chance exception. | |
1924 | (get_child_debug_event): Change return type to void. Remove | |
1925 | goto loop. Always return after waiting for debug event. | |
1926 | (win32_wait): Convert to switch statement. Handle spurious | |
1927 | events. | |
1928 | ||
1929 | * win32-i386-low.c (debug_registers_changed, | |
1930 | debug_registers_used): New. | |
1931 | (initial_stuff): Rename to ... | |
1932 | (i386_initial_stuff): ... this. Clear debug registers | |
1933 | state variables. | |
1934 | (store_debug_registers): Delete. | |
1935 | (i386_get_thread_context): New. | |
1936 | (load_debug_registers): Delete. | |
1937 | (i386_set_thread_context): New. | |
1938 | (i386_thread_added): New. | |
1939 | (single_step): Rename to ... | |
1940 | (i386_single_step): ... this. | |
1941 | (do_fetch_inferior_registers): Rename to ... | |
1942 | (i386_fetch_inferior_register): ... this. | |
1943 | (i386_store_inferior_register): New. | |
1944 | (the_low_target): Adapt to new interface. | |
1945 | ||
1946 | * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define. | |
1947 | (arm_get_thread_context): New. | |
1948 | (arm_set_thread_context): New. | |
1949 | (regptr): New. | |
1950 | (do_fetch_inferior_registers): Rename to ... | |
1951 | (arm_fetch_inferior_register): ... this. | |
1952 | (arm_store_inferior_register): New. | |
1953 | (arm_wince_breakpoint): Reimplement as unsigned long. | |
1954 | (arm_wince_breakpoint_len): Define. | |
1955 | (the_low_target): Adapt to new interface. | |
1956 | ||
1957 | * win32-low.h (target_ops): Remove regmap, store_debug_registers and | |
1958 | load_debug_registers. Add get_thread_context, set_thread_context, | |
1959 | thread_added and store_inferior_register. Rename | |
1960 | fetch_inferior_registers to fetch_inferior_register. | |
1961 | (regptr): Remove declaration. | |
1962 | ||
dd6953e1 PA |
1963 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1964 | ||
1965 | * linux-low.c (linux_detach): Change return type to int. Return 0. | |
1966 | * spu-low.c (spu_detach): Likewise. | |
1967 | ||
444d6139 PA |
1968 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1969 | ||
1970 | * target.h (target_ops): Change return type of detach to int. | |
1971 | Add join. | |
1972 | (join_inferior): New. | |
1973 | * server.c (main): Don't skip detach support on mingw32. | |
1974 | If the inferior doesn't support detaching return error. | |
1975 | Call join_inferior instead of using waitpid. | |
1976 | * linux-low.c (linux_join): New. | |
1977 | (linux_target_op): Add linux_join. | |
1978 | * spu-low.c (spu_join): New. | |
1979 | (spu_target_ops): Add spu_join. | |
1980 | * win32-low.c (win32_detach): Adapt to new interface. | |
1981 | Reopen current_process_handle before detaching. Issue a child | |
1982 | resume before detaching. | |
1983 | (win32_join): New. | |
1984 | (win32_target_op): Add win32_join. | |
1985 | ||
1d5315fe PA |
1986 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1987 | ||
1988 | * win32-low.c (win32-attach): Fix return value. | |
1989 | * target.h (target_ops): Describe ATTACH return values. | |
1990 | ||
bf914831 PA |
1991 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
1992 | ||
1993 | * win32-low.c (GETPROCADDRESS): Define. | |
1994 | (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer. | |
1995 | (winapi_DebugSetProcessKillOnExit): Likewise. | |
1996 | (win32_create_inferior): Force usage of ansi CreateProcessA. | |
1997 | (win32_attach): Use GETPROCADDRESS. | |
1998 | (win32_detach): Likewise. | |
1999 | ||
f72f3e60 PA |
2000 | 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt> |
2001 | ||
2002 | * win32-low.c (win32_wait): Don't use WSTOPSIG. | |
2003 | ||
ed50f18f PA |
2004 | 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt> |
2005 | ||
2006 | * win32-low.c: Commit leftover changes from 2007-03-29. | |
2007 | ||
0c2ead7e DJ |
2008 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
2009 | ||
2010 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit | |
2011 | fields short instead of int. Add explicit padding. | |
2012 | (i387_cache_to_fsave): Remove unnecessary casts. | |
2013 | (i387_fsave_to_cache): Doc fix. | |
2014 | (i387_cache_to_fxsave): Remove unnecessary casts and masking. | |
2015 | ||
73725ff3 DJ |
2016 | 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com> |
2017 | ||
2018 | * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use. | |
2019 | (i387_fxsave_to_cache): Check fp->ftag while building ftag value. | |
2020 | ||
d99f33d8 PA |
2021 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
2022 | ||
2023 | * configure.srv (arm*-*-mingw32ce*): Move near the other | |
2024 | arm targets. | |
2025 | ||
68070c10 PA |
2026 | 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt> |
2027 | ||
2482afc6 | 2028 | * configure.ac: Add errno checking. |
68070c10 PA |
2029 | (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h, |
2030 | sys/file.h and malloc.h. | |
2031 | (AC_CHECK_DECLS): Add perror. | |
2032 | (srv_mingwce): Handle. | |
2482afc6 | 2033 | * configure.srv (i[34567]86-*-cygwin*): Add |
68070c10 PA |
2034 | win32-i386-low.o to srv_tgtobj. |
2035 | (i[34567]86-*-mingw*): Likewise. | |
2036 | (arm*-*-mingw32ce*): Add case. | |
2037 | * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
2038 | HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check. | |
2039 | [__MINGW32CE__] (strerror): New function. | |
2040 | [__MINGW32CE__] (errno): Define to GetLastError. | |
2041 | [__MINGW32CE__] (COUNTOF): New macro. | |
2042 | (remote_open): Remove extra close call. | |
2043 | * mem-break.c (delete_breakpoint_at): New function. | |
2044 | * mem-break.h (delete_breakpoint_at): Declare. | |
2045 | * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H, | |
2046 | HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check. | |
2047 | [USE_WIN32API] (read, write): Add char* casts. | |
2048 | * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check. | |
2049 | * server.h: Include wincecompat.h on Windows CE. | |
2050 | [HAVE_ERRNO_H]: Check. | |
2051 | (perror): Declare if not declared. | |
2052 | * utils.c: Add stdlib.h, errno.h and malloc.h includes. | |
2053 | (perror_with_name): Remove errno declaration. | |
2054 | * wincecompat.h: New. | |
2055 | * wincecompat.c: New. | |
2056 | * win32-low.h: New. | |
2057 | * win32-arm-low.c: New. | |
2058 | * win32-i386-low.c: New. | |
2059 | (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h. | |
2060 | (OUTMSG2): Make it safe. | |
2061 | (_T): New macro. | |
2062 | (COUNTOF): New macro. | |
2063 | (NUM_REGS): Get it from the low target. | |
2064 | (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT, | |
2065 | CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0. | |
2066 | (thread_rec): Let low target handle debug registers. | |
2067 | (child_add_thread): Likewise. | |
2068 | (child_init_thread_list): Likewise. | |
2069 | (continue_one_thread): Likewise. | |
2070 | (regptr): New. | |
2071 | (do_child_fetch_inferior_registers): Move to ... | |
2072 | * win32-i386-low.c: ... here, and rename to ... | |
2073 | (do_fetch_inferior_registers): ... this. | |
2074 | * win32-low.c (child_fetch_inferior_registers): | |
2075 | Go through the low target. | |
2076 | (do_child_store_inferior_registers): Use regptr. | |
2077 | (strwinerror): New function. | |
2078 | (win32_create_inferior): Handle Windows CE. | |
2079 | Use strwinerror instead of strerror on Windows error | |
2080 | codes. Add program to the error output. | |
2081 | Don't close the main thread handle on Windows CE. | |
2082 | (win32_attach): Use coredll.dll on Windows CE. | |
2083 | (win32_kill): Close current process and current | |
2084 | thread handles. | |
2085 | (win32_detach): Use coredll.dll on Windows CE. | |
2086 | (win32_resume): Let low target handle debug registers, and | |
2087 | step request. | |
2088 | (handle_exception): Add/Remove initial breakpoint. Avoid | |
2089 | non-existant WSTOPSIG on Windows CE. | |
2090 | (win32_read_inferior_memory): Cast to remove warning. | |
2091 | (win32_arch_string): Go through the low target. | |
2092 | (initialize_low): Call set_breakpoint_data with the low | |
2093 | target's breakpoint. | |
2094 | * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM, | |
2095 | FOP_REGNUM, mappings): Move to ... | |
2096 | * win32-i386-low.c: ... here. | |
2097 | * win32-low.c (win32_thread_info): Move to ... | |
2098 | * win32-low.h: ... here. | |
2099 | * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c, | |
2100 | win32-arm-low.c and wincecompat.c. | |
2101 | (all:): Add $EXEEXT. | |
2102 | (install-only:): Likewise. | |
2103 | (gdbserver:): Likewise. | |
2104 | (gdbreplay:): Likewise. | |
2105 | * config.in: Regenerate. | |
2106 | * configure: Regenerate. | |
2107 | ||
41093d81 PA |
2108 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
2109 | ||
2110 | * win32-low.c: Rename typedef thread_info to | |
2111 | win32_thread_info throughout. | |
2112 | ||
544afa54 PA |
2113 | 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt> |
2114 | ||
2115 | * win32-i386-low.c: Rename to ... | |
2116 | * win32-low.c: ... this. | |
2117 | * configure.srv: Replace win32-i386-low.o with win32-low.o. | |
2118 | * Makefile.in: Likewise. | |
2119 | ||
bce7165d PA |
2120 | 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt> |
2121 | ||
2122 | * remote-utils.c (monitor_output): Constify msg parameter. | |
2123 | * server.h (monitor_output): Likewise. | |
2124 | * win32-i386-low.c (handle_output_debug_string): New. | |
2125 | (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using | |
2126 | handle_output_debug_string. | |
2127 | (get_child_debug_event): Likewise. | |
2128 | ||
506c7aa0 DJ |
2129 | 2007-03-27 Mat Hostetter <mat@lcs.mit.edu> |
2130 | ||
2131 | * server.c (main): Correct strtoul check. | |
2132 | ||
42c81e2a DJ |
2133 | 2007-03-27 Jon Ringle <jon@ringle.org> |
2134 | ||
2135 | * linux-low.c: Check __ARCH_HAS_MMU__ also. | |
2136 | ||
9453113a DJ |
2137 | 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com> |
2138 | ||
2139 | * Makefile.in: Add dummy "pdf" and "install-pdf" targets. | |
2140 | ||
64a69107 DJ |
2141 | 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com> |
2142 | ||
2143 | * terminal.h: Check HAVE_SGTTY_H. | |
2144 | ||
2145 | 2007-02-27 Mat Hostetter <mat@lcs.mit.edu> | |
6f8486da DJ |
2146 | |
2147 | * remote-utils.c (remote_open): Print out the assigned port number. | |
2148 | ||
c74d0ad8 DJ |
2149 | 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
2150 | ||
2151 | * remote-utils.c (monitor_output): New function. | |
2152 | * server.c (debug_threads): Define here. | |
2153 | (monitor_show_help): New function. | |
2154 | (handle_query): Handle qRcmd. | |
2155 | (main): Do not handle 'd' packet. | |
2156 | * server.h (debug_threads, remote_debug, monitor_output): Declare. | |
2157 | * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions | |
2158 | of debug_threads. | |
2159 | ||
de7c3b4a PA |
2160 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
2161 | ||
2162 | * Makefile.in (EXEEXT): New. | |
2163 | (clean): Use $(EXEEXT). | |
2164 | ||
ef57601b PA |
2165 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
2166 | ||
2167 | * target.h (target_ops): Rename send_signal to request_interrupt, | |
2168 | and remove enum target_signal parameter. | |
2169 | * linux-low.c (linux_request_interrupt): Rename from | |
2170 | linux_send_signal, and always send SIGINT. | |
2171 | * spu-low.c (spu_request_interrupt): Rename from spu_send_signal, | |
2172 | and always send SIGINT. | |
2173 | * remote-utils.c (putpkt_binary): Call request_interrupt, instead | |
2174 | of send_signal. | |
2175 | (input_interrupt): Likewise. | |
2176 | ||
820f2bda PA |
2177 | 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt> |
2178 | ||
2179 | * server.c (get_features_xml): Check if target implemented | |
2180 | arch_string. | |
2181 | * win32-i386-low.c (win32_arch_string): New. | |
2182 | (win32_target_ops): Add win32_arch_string as arch_string member. | |
2183 | ||
ab39bf24 UW |
2184 | 2007-02-22 Markus Deuling <deuling@de.ibm.com> |
2185 | ||
2186 | * spu-low.c (spu_arch_string): New. | |
2187 | (spu_target_ops): Add spu_arch_string. | |
2188 | ||
61ff6e04 DJ |
2189 | 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
2190 | ||
2191 | * remote-utils.c: Remove HAVE_TERMINAL_H check. | |
2192 | * configure.ac: Do not check for terminal.h. | |
2193 | * configure, config.in: Regenerated. | |
2194 | ||
fb1e4ffc DJ |
2195 | 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
2196 | ||
2197 | * Makefile.in (OBS): Add $(XML_BUILTIN). | |
2198 | (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New. | |
2199 | (clean): Update. | |
2200 | (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o) | |
2201 | (arm-with-iwmmxt.c): New. | |
2202 | * config.in, configure: Regenerate. | |
2203 | * configure.ac: Check for iWMMXt. Handle srv_xmltarget, | |
2204 | srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML. | |
2205 | * configure.srv: Mention srv_xmltarget and srv_xmlfiles. | |
2206 | (arm*-*-linux*): Add iWMMXt and regset support. | |
2207 | * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define. | |
2208 | (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset) | |
2209 | (arm_store_wmmxregset, target_regsets): New. | |
2210 | * server.c (get_features_xml): Take annex argument. Check builtin | |
2211 | XML documents. | |
2212 | (handle_query): Handle multiple annexes. | |
2213 | ||
0f48aa01 DJ |
2214 | 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
2215 | ||
2216 | * remote-utils.c [USE_WIN32API] (read, write): Define. | |
2217 | (putpkt_binary, input_interrupt, readchar, getpkt): Use read and | |
2218 | write. | |
2219 | ||
23181151 DJ |
2220 | 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com> |
2221 | ||
2222 | * linux-i386-low.c (the_low_target): Set arch_string. | |
2223 | * linux-x86-64-low.c (the_low_target): Likewise. | |
2224 | * linux-low.c (linux_arch_string): New. | |
2225 | (linux_target_ops): Add it. | |
2226 | * linux-low.h (struct linux_target_ops): Add arch_string. | |
2227 | * server.c (write_qxfer_response): Use const void * for DATA. | |
2228 | (get_features_xml): New. | |
2229 | (handle_query): Handle qXfer:features:read. Report it for qSupported. | |
2230 | * target.h (struct target_ops): Add arch_string method. | |
2231 | ||
9d606399 DJ |
2232 | 2007-01-03 Denis Pilat <denis.pilat@st.com> |
2233 | Daniel Jacobowitz <dan@codesourcery.com> | |
2234 | ||
2235 | * linux-low.c (linux_kill): Handle being called with no threads. | |
2236 | * win32-i386-low.c (win32_kill): Likewise. | |
2237 | (get_child_debug_event): Clear current_process_handle. | |
2238 | ||
2239 | 2006-12-30 Denis PILAT <denis.pilat@st.com> | |
8264bb58 DJ |
2240 | Daniel Jacobowitz <dan@codesourcery.com> |
2241 | ||
2242 | * remote-utils.c (remote_open): Check the type of specified | |
2243 | serial port devices before opening them. | |
2244 | * server.c (main): Kill the inferior if an error occurs during | |
2245 | the first remote_open. | |
2246 | ||
a5e13d24 DJ |
2247 | 2006-12-05 Markus Deuling <deuling@de.ibm.com> |
2248 | ||
2249 | * README: Update supported targets. | |
2250 | ||
186947f7 DJ |
2251 | 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com> |
2252 | ||
2253 | * Makefile.in (clean): Remove reg-mips64.c. | |
2254 | (reg-mips64.c, reg-mips64.o): New rules. | |
2255 | * configure.srv: Handle mips64. Include regset support for mips. | |
2256 | * linux-mips-low.c (union mips_register): New. | |
2257 | (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it. | |
2258 | (mips_breakpoint, mips_breakpoint_at): Use int. | |
2259 | (mips_collect_register, mips_supply_register) | |
2260 | (mips_collect_register_32bit, mips_supply_register_32bit) | |
2261 | (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) | |
2262 | (mips_store_fpregset, target_regsets): New. | |
2263 | * thread-db.c (thread_db_get_tls_address): Use uintptr_t. | |
2264 | ||
a13e2c95 UW |
2265 | 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com> |
2266 | ||
2267 | * configure.srv: Add target "spu*-*-*". | |
2268 | * Makefile.in (clean): Remove reg-spu.c. | |
2269 | (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. | |
2270 | * spu-low.c: New file. | |
2271 | ||
cb7283db DJ |
2272 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
2273 | ||
2274 | * configure.ac: Correct td_thr_tls_get_addr test. | |
2275 | * configure: Regenerated. | |
2276 | ||
89be2091 DJ |
2277 | 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com> |
2278 | ||
2279 | * linux-low.c (linux_wait_for_event): Reformat. Use the | |
2280 | pass_signals array. | |
2281 | * remote-utils.c (decode_address_to_semicolon): New. | |
2282 | * server.c (pass_signals, handle_general_set): New. | |
2283 | (handle_query): Mention QPassSignals for qSupported. | |
2284 | (main): Call handle_general_set. | |
2285 | * server.h (pass_signals, decode_address_to_semicolon): New. | |
2286 | ||
000ef4f0 DJ |
2287 | 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com> |
2288 | ||
2289 | * server.c (handle_query): Correct error handling for read_auxv. | |
2290 | ||
b7149293 UW |
2291 | 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
2292 | ||
2293 | * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets | |
2294 | and srv_linux_thread_db to yes. | |
2295 | * linux-s390-low.c (s390_fill_gregset): New function. | |
2296 | (target_regsets): Define data structure. | |
2297 | ||
dae5f5cf DJ |
2298 | 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com> |
2299 | ||
2300 | * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New. | |
2301 | * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR. | |
2302 | * config.in, configure: Regenerated. | |
2303 | * inferiors.c (gdb_id_to_thread): New function. | |
2304 | (gdb_id_to_thread_id): Use it. | |
2305 | * linux-low.c (linux_target_ops): Use thread_db_get_tls_address. | |
2306 | * linux-low.h (struct process_info): Add th member. | |
2307 | (thread_db_get_tls_address): New prototype. | |
2308 | * remote-utils.c (decode_address): Make non-static. | |
2309 | * server.c (handle_query): Handle qGetTLSAddr. | |
2310 | * server.h (gdb_id_to_thread, decode_address): New prototypes. | |
2311 | * target.h (struct target_ops): Add get_tls_address. | |
2312 | * thread-db.c (maybe_attach_thread): Save the thread handle. | |
2313 | (thread_db_get_tls_address): New. | |
2314 | ||
32ca6d61 DJ |
2315 | 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com> |
2316 | ||
2317 | * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define. | |
2318 | (linux_resume_one_process): Take a siginfo_t *. Update all | |
2319 | callers. Queue it if necessary. Use PTRACE_SETSIGINFO. | |
2320 | (struct pending_signals): Add a siginfo_t. | |
2321 | (linux_wait_for_process): Always set last_status. | |
2322 | (linux_wait_for_event): Use PTRACE_GETSIGINFO. | |
2323 | (linux_queue_one_thread): Use PTRACE_GETSIGINFO. | |
2324 | * linux-low.h (struct process_info): Add last_status. | |
2325 | ||
5ffff7c1 DJ |
2326 | 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com> |
2327 | ||
2328 | * remote-utils.c (try_rle): New function. | |
2329 | (putpkt_binary): Use it. | |
2330 | ||
8695c747 DJ |
2331 | 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com> |
2332 | ||
2333 | * Makefile.in (clean): Clean reg-x86-64-linux.c. | |
2334 | (reg-x86-64-linux.o, reg-x86-64-linux.c): New. | |
2335 | * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o. | |
2336 | * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX. | |
2337 | (x86_64_fill_gregset, x86_64_store_gregset): Skip floating | |
2338 | point registers. | |
2339 | ||
290fadea RS |
2340 | 2006-08-08 Richard Sandiford <richard@codesourcery.com> |
2341 | ||
2342 | * server.c (terminal_fd): New variable. | |
2343 | (old_foreground_pgrp): Likewise. | |
2344 | (restore_old_foreground_pgrp): New function. | |
2345 | (start_inferior): Record the terminal file descriptor in terminal_fd | |
2346 | and its original foreground group in old_foreground_pgrp. Register | |
2347 | restore_old_foreground_pgrp with atexit(). | |
2348 | ||
9f2e1e63 DJ |
2349 | 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com> |
2350 | ||
2351 | * server.c (handle_query): Correct qPart to qXfer. | |
2352 | ||
b80864fb DJ |
2353 | 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com> |
2354 | ||
2355 | * configure.ac: Check for more headers which are missing on | |
2356 | Windows. Automatically supply -lwsock32 and USE_WIN32API. | |
2357 | * configure.srv: Add Cygwin and mingw32. | |
2358 | * remote-utils.c: Don't include headers unconditionally which | |
2359 | are missing on mingw32. Include <winsock.h> for mingw32. | |
2360 | (remote_open): Adjust for mingw32 support. Flush | |
2361 | standard error after writing to it. | |
2362 | (remote_close, putpkt_binary, input_interrupt, block_async_io) | |
2363 | (unblock_async_io, enable_async_io, disable_async_io) | |
2364 | (readchar, getpkt): Update for Winsock support. | |
2365 | (prepare_resume_reply): Expect a protocol signal number. | |
2366 | * server.c: Disable <sys/wait.h> on mingw32. | |
2367 | (start_inferior): Adjust for mingw32 support. Flush | |
2368 | standard error after writing to it. | |
2369 | (attach_inferior): Likewise. Use protocol signal | |
2370 | numbers. | |
2371 | (main): Skip 'D' packet on mingw32. Use protocol signal numbers | |
2372 | and names. | |
2373 | * win32-i386-low.c: New file. | |
2374 | * Makefile.in (XM_CLIBS): Set. | |
2375 | (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS). | |
2376 | (win32-i386-low.o): New dependency rule. | |
2377 | * linux-low.c (linux_wait): Use target signal numbers. | |
2378 | * target.h (struct target_ops): Doc fix. | |
2379 | * server.h (target_signal_to_name): New prototype. | |
2380 | * gdbreplay.c: Don't include headers unconditionally which | |
2381 | are missing on mingw32. Include <winsock.h> for mingw32. | |
2382 | (remote_close, remote_open): Adjust for Winsock support. | |
2383 | * configure, config.in: Regenerated. | |
2384 | ||
0876f84a DJ |
2385 | 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com> |
2386 | ||
2387 | * server.c (decode_xfer_read, write_qxfer_response): New. | |
2388 | (handle_query): Take a packet length argument. Handle | |
2389 | qXfer:auxv:read instead of qPart:auxv:read. Mention it in | |
2390 | the qSupported response. | |
2391 | (main): Update call to handle_query. | |
2392 | ||
01f9e8fa DJ |
2393 | 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com> |
2394 | ||
2395 | * remote-utils.c (remote_escape_output, remote_unescape_input): New. | |
2396 | (putpkt_binary): Renamed from putpkt and adjusted for binary | |
2397 | data. | |
2398 | (putpkt): New wrapper for putpkt_binary. | |
2399 | (readchar): Don't mask off the high bit. | |
2400 | (decode_X_packet): New function. | |
2401 | * server.c (main): Call putpkt_binary if a handler sets the packet | |
2402 | length. Save the length of the incoming packet. Handle 'X'. | |
2403 | * server.h (gdb_byte, remote_escape_output, decode_X_packet): New. | |
2404 | ||
be2a5f71 DJ |
2405 | 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com> |
2406 | ||
2407 | * server.c (handle_query): Handle qSupported. | |
2408 | ||
ea025f5f DJ |
2409 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
2410 | ||
2411 | * remote-utils.c (all_symbols_looked_up): New variable. | |
2412 | (look_up_one_symbol): Check it. | |
2413 | * server.h (look_up_one_symbol): New declaration. | |
2414 | * thread-db.c (thread_db_init): Set all_symbols_looked_up. | |
2415 | ||
9308fc88 DJ |
2416 | 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com> |
2417 | ||
2418 | * Makefile.in (linux-arm-low.o): Update dependencies. | |
66f338c7 | 2419 | * linux-arm-low.c: Include "gdb_proc_service.h". |
9308fc88 DJ |
2420 | (PTRACE_GET_THREAD_AREA): Define. |
2421 | (ps_get_thread_area): New function. | |
2422 | ||
52fb6437 NS |
2423 | 2006-05-09 Nathan Sidwell <nathan@codesourcery.com> |
2424 | ||
2425 | * configure.srv (m68k*-*-uclinux*): New target. | |
2426 | * linux-low.c (linux_create_inferior): Use vfork on mmuless systems. | |
2427 | (linux_resume_one_process): Remove extraneous cast. | |
2428 | (linux_read_offsets): New. | |
2429 | (linux_target_op): Add linux_read_offsets on mmuless systems. | |
2430 | * server.c (handle_query): Add qOffsets logic. | |
2431 | * target.h (struct target_ops): Add read_offsets. | |
2432 | ||
21b0f40c DJ |
2433 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
2434 | ||
2435 | * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h". | |
2436 | (PTRACE_GET_THREAD_AREA): Define. | |
2437 | (ps_get_thread_area): New function. | |
2438 | * Makefile.in (linux-i386-low.o, linux-mips-low.o) | |
2439 | (linux-x86-64-low.o): Update. | |
2440 | ||
0050a760 DJ |
2441 | 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com> |
2442 | ||
2443 | * configure.ac: Remove checks for prfpregset_t. | |
2444 | * gdb_proc_service.h: New file. | |
2445 | * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the | |
2446 | new "gdb_proc_service.h". | |
2447 | * proc-service.c: Likewise. | |
2448 | (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t. | |
2449 | (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument. | |
2450 | * Makefile.in (gdb_proc_service_h): Updated. | |
2451 | * configure, config.in: Regenerated. | |
2452 | ||
b92a518e DJ |
2453 | 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
2454 | ||
2455 | * remote-utils.c (prepare_resume_reply): Move declaration | |
2456 | of gdb_id_from_wait to the top of the block. | |
2457 | ||
545587ee DJ |
2458 | 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com> |
2459 | ||
2460 | * linux-low.c (regsets_store_inferior_registers): Read the regset | |
2461 | from the target before filling it. | |
2462 | ||
9db87ebd DJ |
2463 | 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com> |
2464 | ||
2465 | * server.c (attach_inferior): Return SIGTRAP for a successful | |
2466 | attach. | |
2467 | ||
dd24457d DJ |
2468 | 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
2469 | ||
2470 | * Makefile.in (OBS): Add version.o. | |
2471 | (STAGESTUFF): Delete. | |
2472 | (version.o): Add dependencies. | |
2473 | (version.c): Replace rule. | |
2474 | (clean): Remove version.c. | |
2475 | * server.c (gdbserver_version): New. | |
2476 | (gdbserver_usage): Use printf. | |
2477 | (main): Handle --version and --help. | |
2478 | * server.h (version, host_name): Add declarations. | |
2479 | ||
6f0f660e EZ |
2480 | 2005-12-23 Eli Zaretskii <eliz@gnu.org> |
2481 | ||
2482 | * linux-arm-low.c: | |
2483 | * linux-arm-low.c: | |
2484 | * inferiors.c: | |
2485 | * i387-fp.h: | |
2486 | * i387-fp.c: | |
2487 | * gdbreplay.c: | |
2488 | * regcache.c: | |
2489 | * proc-service.c: | |
2490 | * mem-break.h: | |
2491 | * mem-break.c: | |
2492 | * linux-x86-64-low.c: | |
2493 | * linux-sh-low.c: | |
2494 | * linux-s390-low.c: | |
2495 | * linux-ppc64-low.c: | |
2496 | * linux-ppc-low.c: | |
2497 | * linux-mips-low.c: | |
2498 | * linux-m68k-low.c: | |
2499 | * linux-m32r-low.c: | |
2500 | * linux-low.h: | |
2501 | * linux-low.c: | |
2502 | * linux-ia64-low.c: | |
2503 | * linux-i386-low.c: | |
2504 | * linux-crisv32-low.c: | |
2505 | * thread-db.c: | |
2506 | * terminal.h: | |
2507 | * target.h: | |
2508 | * target.c: | |
2509 | * server.h: | |
2510 | * server.c: | |
2511 | * remote-utils.c: | |
2512 | * regcache.h: | |
2513 | * utils.c: | |
2514 | * Makefile.in: | |
2515 | * configure.ac: | |
2516 | * gdbserver.1: Add (C) after Copyright. Update the FSF | |
2517 | address. | |
2518 | ||
9d1fb177 DJ |
2519 | 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com> |
2520 | ||
2521 | * linux-arm-low.c (arm_eabi_breakpoint): New variable. | |
2522 | (arm_breakpoint_at): Recognize both breakpoints. | |
2523 | (the_low_target): Use the correct breakpoint instruction. | |
2524 | ||
011a70c2 DJ |
2525 | 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com> |
2526 | ||
2527 | * configure.srv (x86_64-*-linux*): Turn on thread_db support. | |
2528 | * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len) | |
2529 | (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New. | |
2530 | (the_low_target): Update. | |
2531 | ||
7fb85e41 AS |
2532 | 2005-10-25 Andreas Schwab <schwab@suse.de> |
2533 | ||
2534 | * server.c (main): Allocate mem_buf with PBUFSIZ bytes. | |
2535 | ||
2536 | * linux-ia64-low.c (ia64_regmap): Remove NAT registers. | |
2537 | (ia64_num_regs): Reduce to 462. | |
2538 | ||
3db0444b DJ |
2539 | 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com> |
2540 | ||
2541 | * acinclude.m4: Correct quoting. | |
2542 | * aclocal.m4: Regenerated. | |
2543 | ||
2544 | Suggested by SZOKOVACS Robert <szo@ies.hu>: | |
2545 | * thread-db.c (thread_db_err_str): Handle TD_VERSION. | |
2546 | (thread_db_init): Call thread_db_err_str. | |
2547 | * configure.ac: Check for TD_VERSION. | |
2548 | * config.in, configure: Regenerated. | |
2549 | ||
bee0189a DJ |
2550 | 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
2551 | ||
2552 | * server.h (error, fatal, warning): Add ATTR_FORMAT. | |
2553 | ||
e9d25b98 DJ |
2554 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2555 | ||
2556 | * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS | |
2557 | is not available. Define HAVE_PTRACE_GETREGS if it is. | |
2558 | * config.in, configure: Regenerated. | |
2559 | * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64. | |
2560 | * linux-i386-low.c, linux-m68k-low.c: Update to use | |
2561 | HAVE_PTRACE_GETREGS. | |
2562 | * linux-low.c (regsets_fetch_inferior_registers) | |
2563 | (regsets_store_inferior_registers): Only return 0 if we processed | |
2564 | GENERAL_REGS. | |
2565 | * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New. | |
2566 | * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New. | |
2567 | ||
a06660f7 DJ |
2568 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2569 | ||
2570 | * inferiors.c (struct thread_info): Add gdb_id. | |
2571 | (add_thread): Add gdb_id argument. | |
2572 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New. | |
2573 | * linux-low.c (linux_create_inferior, linux_attach_lwp): Update | |
2574 | calls to add_thread. | |
2575 | * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id. | |
2576 | * server.c (handle_query): Use thread_to_gdb_id. | |
2577 | (handle_v_cont, main): Use gdb_id_to_thread_id. | |
2578 | * server.h (add_thread): Update prototype. | |
2579 | (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New | |
2580 | prototypes. | |
2581 | ||
5a1f5858 DJ |
2582 | 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com> |
2583 | ||
2584 | * linux-low.c (fetch_register, usr_store_inferior_registers): Handle | |
2585 | left-padded registers. | |
2586 | * linux-low.h (struct linux_target_ops): Add left_pad_xfer. | |
2587 | * linux-ppc64-low.c (the_low_target): Set left_pad_xfer. | |
2588 | ||
e122f1f5 SE |
2589 | 2005-07-01 Steve Ellcey <sje@cup.hp.com> |
2590 | ||
2591 | * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS. | |
2592 | * configure: Regenerate. | |
2593 | * config.in: Regenerate. | |
2594 | * server.h (NEED_DECLARATION_STRERROR): | |
2595 | Replace with !HAVE_DECL_STRERROR. | |
2596 | ||
d592fa2f DJ |
2597 | 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com> |
2598 | ||
2599 | * linux-low.c (linux_wait, linux_send_signal): Don't test | |
2600 | an unsigned long variable for > 0 if it could be MAX_ULONG. | |
2601 | * server.c (myresume): Likewise. | |
2602 | * target.c (set_desired_inferior): Likewise. | |
2603 | ||
ccbd4912 MK |
2604 | 2005-06-13 Mark Kettenis <kettenis@gnu.org> |
2605 | ||
2606 | * configure.ac: Simplify and improve check for socklen_t. | |
2607 | * configure, config.in: Regenerate. | |
2608 | ||
f450004a DJ |
2609 | 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com> |
2610 | ||
2611 | * acconfig.h: Remove. | |
2612 | * configure.ac: Add a test for socklen_t. Use three-argument | |
2613 | AC_DEFINE throughout. | |
2614 | * config.in: Regenerated using autoheader 2.59. | |
2615 | * configure: Regenerated. | |
2616 | ||
2617 | * gdbreplay.c (socklen_t): Provide a default. | |
2618 | (remote_open): Use socklen_t. | |
2619 | * remote-utils.c (socklen_t): Provide a default. | |
2620 | (remote_open): Use socklen_t. | |
2621 | (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use | |
2622 | unsigned char. | |
2623 | ||
2624 | * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned | |
2625 | char for buffers. | |
2626 | * linux-low.c (linux_read_memory, linux_write_memory) | |
2627 | (linux_read_auxv): Likewise. | |
2628 | * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read) | |
2629 | (check_mem_write): Likewise. | |
2630 | * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write): | |
2631 | Likewise. | |
2632 | * regcache.c (struct inferior_rgcache_data, registers_to_string) | |
2633 | (registers_from_string, register_data): Likewise. | |
2634 | * server.c (handle_query, main): Likewise. | |
2635 | * server.h (convert_ascii_to_int, convert_int_to_ascii) | |
2636 | (decode_M_packet): Likewise. | |
2637 | * target.c (read_inferior_memory, write_inferior_memory): Likewise. | |
2638 | * target.h (struct target_ops): Update read_memory, write_memory, | |
2639 | and read_auxv. | |
2640 | (read_inferior_memory, write_inferior_memory): Update. | |
2641 | * linux-low.h (struct linux_target_ops): Change type of breakpoint | |
2642 | to unsigned char *. | |
2643 | * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c, | |
2644 | linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c, | |
2645 | linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c, | |
2646 | linux-s390-low.c, linux-sh-low.c: Update for changes in | |
2647 | read_inferior_memory and the_low_target->breakpoint. | |
2648 | ||
eee84df1 DJ |
2649 | 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com> |
2650 | ||
2651 | * Makefile.in (SFILES): Add linux-ppc64-low.c. | |
2652 | (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets. | |
2653 | * configure.srv: Add powerpc64-*-linux*. | |
2654 | * linux-ppc64-low.c: New file. | |
2655 | ||
45b134e5 OF |
2656 | 2005-05-23 Orjan Friberg <orjanf@axis.com> |
2657 | ||
2658 | * linux-cris-low.c: New file with support for CRIS. | |
2659 | * linux-crisv32-low.c: Ditto for CRISv32. | |
2660 | * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c. | |
2661 | (clean): Add reg-cris.c and reg-crisv32.c. | |
2662 | Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c, | |
2663 | reg-crisv32.o, and reg-crisv32.c to make rules. | |
2664 | * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of | |
2665 | recognized targets. | |
2666 | ||
48d93c75 UW |
2667 | 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com> |
2668 | ||
2669 | * linux-low.c (fetch_register): Ensure buffer size is a multiple | |
2670 | of sizeof (PTRACE_XFER_TYPE). | |
2671 | (usr_store_inferior_registers): Likewise. Zero out excess bytes. | |
2672 | ||
e013ee27 OF |
2673 | 2005-05-12 Orjan Friberg <orjanf@axis.com> |
2674 | ||
2675 | * target.h (struct target_ops): Add insert_watchpoint, | |
2676 | remove_watchpoint, stopped_by_watchpoint, stopped_data_address function | |
2677 | pointers for hardware watchpoint support. | |
2678 | * linux-low.h (struct linux_target_ops): Ditto. | |
2679 | * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint) | |
2680 | (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add | |
2681 | to linux_target_ops. | |
2682 | * remote-utils.c (prepare_resume_reply): Add watchpoint information to | |
2683 | reply packet. | |
2684 | * server.c (main): Recognize 'Z' and 'z' packets. | |
2685 | ||
b0ded00b UW |
2686 | 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com> |
2687 | ||
2688 | * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define. | |
2689 | (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions. | |
2690 | (the_low_target): Add new members. | |
2691 | ||
8643e2ad DJ |
2692 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
2693 | ||
2694 | * proc-service.c (ps_lgetregs): Search all_processes instead of | |
2695 | all_threads. | |
2696 | ||
fc620387 DJ |
2697 | 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
2698 | ||
2699 | * server.c (start_inferior): Change return type to int. | |
2700 | (attach_inferior): Change sigptr to int *. | |
2701 | (handle_v_cont, handle_v_requests): Change signal to int *. | |
2702 | (main): Change signal to int. | |
2703 | ||
2704 | 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com> | |
7cfbc4a0 KI |
2705 | |
2706 | * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o. | |
2707 | * configure.srv: Add m32r*-*-linux*. | |
2708 | * linux-m32r-low.c: New file. | |
2709 | ||
e0e76420 DJ |
2710 | 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com> |
2711 | ||
2712 | * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. | |
2713 | ||
a1928bad DJ |
2714 | 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com> |
2715 | ||
2716 | * inferiors.c (change_inferior_id, add_thread, find_inferior_id): | |
2717 | Take unsigned long arguments for PIDs. | |
2718 | * linux-low.c (add_process, linux_attach_lwp, linux_attach) | |
2719 | (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop) | |
2720 | (wait_for_sigstop, linux_resume_one_process) | |
2721 | (regsets_fetch_inferior_registers, linux_send_signal) | |
2722 | (linux_read_auxv): Likewise. Update the types of variables holding | |
2723 | PIDs. Update format string specifiers. | |
2724 | * linux-low.h (struct process_info, linux_attach_lwp): Likewise. | |
2725 | * remote-utils.c (prepare_resume_reply): Likewise. | |
2726 | * server.c (cont_thread, general_thread, step_thread) | |
2727 | (thread_from_wait, old_thread_from_wait, signal_pid): Change type to | |
2728 | unsigned long. | |
2729 | (handle_query): Update format specifiers. | |
2730 | (handle_v_cont, main): Use strtoul for thread IDs. | |
2731 | * server.h (struct inferior_list_entry): Use unsigned long for ID. | |
2732 | (add_thread, find_inferior_id, change_inferior_id, cont_thread) | |
2733 | (general_thread, step_thread, thread_from_wait) | |
2734 | (old_thread_from_wait): Update. | |
2735 | * target.h (struct thread_resume): Use unsigned long for THREAD. | |
2736 | (struct target_ops): Use unsigned long for arguments to attach and | |
2737 | thread_alive. | |
2738 | ||
dcdb98d2 DJ |
2739 | 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
2740 | ||
2741 | * acinclude.m4: Include bfd/bfd.m4 directly. | |
2742 | * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis | |
2743 | <agriffis@toolchain.org>. | |
2744 | * aclocal.m4, configure: Regenerated. | |
2745 | ||
bec39cab AC |
2746 | 2005-01-07 Andrew Cagney <cagney@gnu.org> |
2747 | ||
2748 | * configure.ac: Rename configure.in, require autoconf 2.59. | |
2749 | * configure: Re-generate. | |
2750 | ||
434c4c77 DJ |
2751 | 2004-12-08 Daniel Jacobowitz <dan@debian.org> |
2752 | ||
2753 | * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset | |
2754 | LIBS when finished. | |
2755 | * aclocal.m4: Regenerated. | |
2756 | * configure: Regenerated. | |
2757 | ||
db1d3e1b AS |
2758 | 2004-11-21 Andreas Schwab <schwab@suse.de> |
2759 | ||
2760 | * linux-m68k-low.c (m68k_num_gregs): Define. | |
2761 | (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset) | |
2762 | (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New. | |
2763 | (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc) | |
2764 | (m68k_breakpoint_at): New. Add to the_low_target. | |
2765 | ||
2766 | * configure.srv (m68*-*-linux*): Set srv_linux_regsets and | |
2767 | srv_linux_thread_db to yes. | |
2768 | ||
43360365 JB |
2769 | 2004-10-20 Joel Brobecker <brobecker@gnat.com> |
2770 | ||
2771 | * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing. | |
2772 | (ARCH_SET_FS): Likewise. | |
2773 | (ARCH_GET_FS): Likewise. | |
2774 | (ARCH_GET_GS): Likewise. | |
2775 | ||
fd500816 DJ |
2776 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
2777 | ||
2778 | * linux-i386-low.c (ps_get_thread_area): New. | |
2779 | * linux-x86-64-low.c (ps_get_thread_area): New. | |
2780 | * linux-low.c: Include <sys/syscall.h>. | |
2781 | (linux_kill_one_process): Don't kill the first thread here. | |
2782 | (linux_kill): Kill the first thread here. | |
2783 | (kill_lwp): New function. | |
2784 | (send_sigstop, linux_send_signal): Use it. | |
2785 | * proc-service.c: Clean up #ifdefs. | |
2786 | (fpregset_info): Delete. | |
2787 | (ps_lgetregs): Update and enable implementation. | |
2788 | (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled | |
2789 | implementations. | |
2790 | * remote-utils.c (struct sym_cache, symbol_cache): New. | |
2791 | (input_interrupt): Print a clearer message. | |
2792 | (async_io_enabled): New variable. | |
2793 | (enable_async_io, disable_async_io): Use it. Update comments. | |
2794 | (look_up_one_symbol): Use the symbol cache. | |
2795 | * thread-db.c (thread_db_look_up_symbols): New function. | |
2796 | (thread_db_init): Update comments. Call thread_db_look_up_symbols. | |
2797 | ||
f6de3c42 DJ |
2798 | 2004-10-16 Daniel Jacobowitz <dan@debian.org> |
2799 | ||
2800 | * configure.in: Test for -rdynamic. | |
2801 | * configure: Regenerated. | |
2802 | * Makefile (INTERNAL_LDFLAGS): New. | |
2803 | (gdbserver, gdbreplay): Use it. | |
2804 | ||
2c0fc042 AC |
2805 | 2004-09-02 Andrew Cagney <cagney@gnu.org> |
2806 | ||
2807 | * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE. | |
2808 | ||
075b3282 DJ |
2809 | 2004-03-23 Daniel Jacobowitz <drow@mvista.com> |
2810 | ||
2811 | * linux-low.c (linux_wait): Clear all_processes list also. | |
2812 | ||
fa6a77dc DJ |
2813 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
2814 | ||
2815 | * linux-low.c: Include <errno.h>. Remove extern declaration of | |
2816 | errno. | |
2817 | ||
6d782a97 DJ |
2818 | 2004-03-12 Daniel Jacobowitz <drow@mvista.com> |
2819 | ||
2820 | * gdbreplay.c, server.h, utils.c: Update copyright years. | |
2821 | ||
3a7fb99b DJ |
2822 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
2823 | ||
2824 | * server.c (main): Print child status or termination signal from | |
2825 | variable 'signal', not 'sig'. | |
2826 | ||
c3e735a6 DJ |
2827 | 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> |
2828 | ||
2829 | * linux-low.c (linux_read_memory): Change return type to | |
2830 | int. Check for and return error from ptrace(). | |
2831 | * target.c (read_inferior_memory): Change return type to int. Pass | |
2832 | back return status from the_target->read_memory(). | |
2833 | * target.h (struct target_ops): Adapt *read_memory() prototype. | |
2834 | Update comment. | |
2835 | (read_inferior_memory): Adapt prototype. | |
2836 | * server.c (main): Return an error packet if | |
2837 | read_inferior_memory() returns an error. | |
2838 | ||
a59d1c82 DJ |
2839 | 2004-03-04 Daniel Jacobowitz <drow@mvista.com> |
2840 | ||
2841 | * Makefile.in (distclean): Remove config.h, stamp-h, and config.log. | |
2842 | Unify with other clean targets. | |
2843 | ||
dc3f8883 DJ |
2844 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2845 | ||
2846 | * server.c (handle_v_cont): Call set_desired_inferior. | |
2847 | ||
89a208da DJ |
2848 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2849 | ||
2850 | * remote-utils.c (prepare_resume_reply): Always supply "thread:". | |
2851 | ||
62ea82f5 DJ |
2852 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2853 | ||
2854 | * linux-low.c (linux_wait): Unblock async I/O. | |
2855 | (linux_resume): Block and enable async I/O. | |
2856 | * remote-utils.c (block_async_io, unblock_async_io): New functions. | |
2857 | * server.h (block_async_io, unblock_async_io): Add prototypes. | |
2858 | ||
6910d122 DJ |
2859 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> |
2860 | ||
2861 | * remote-utils.c (remote_open): Print a status notice after | |
2862 | opening a TCP port. | |
2863 | * server.c (attach_inferior): Print a status notice after | |
2864 | attaching. | |
2865 | ||
2866 | 2004-02-29 Daniel Jacobowitz <drow@mvista.com> | |
d677d77d DJ |
2867 | |
2868 | * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. | |
2869 | ||
c89dc5d4 DJ |
2870 | 2004-02-26 Daniel Jacobowitz <drow@mvista.com> |
2871 | ||
2872 | * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the | |
2873 | error packet. | |
2874 | * server.c, target.h: Update copyright years. | |
2875 | ||
4b8dad4a RM |
2876 | 2004-02-25 Roland McGrath <roland@redhat.com> |
2877 | ||
2878 | * target.h (struct target_ops): New member `read_auxv'. | |
2879 | * server.c (handle_query): Handle qPart:auxv:read: query using that. | |
2880 | * linux-low.c (linux_read_auxv): New function. | |
2881 | (linux_target_ops): Initialize `read_auxv' member to that. | |
2882 | ||
d7446758 JB |
2883 | 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> |
2884 | ||
2885 | Committed by Jim Blandy <jimb@redhat.com>. | |
2886 | ||
2887 | * linux-s390-low.c (s390_num_regs): Update. | |
4b8dad4a | 2888 | (s390_regmap): Remove control registers. Use __s390x__ predefine |
d7446758 JB |
2889 | instead of GPR_SIZE to distiguish s390 and s390x targets. |
2890 | ||
5544ad89 DJ |
2891 | 2004-01-31 Daniel Jacobowitz <drow@mvista.com> |
2892 | ||
2893 | * linux-low.c: Update copyright year. | |
2894 | (check_removed_breakpoint): Clear pending_is_breakpoint. | |
2895 | (linux_set_resume_request, linux_queue_one_thread) | |
2896 | (resume_status_pending_p): New functions. | |
2897 | (linux_continue_one_thread): Use process->resume. | |
2898 | (linux_resume): Only resume threads if there are no pending events. | |
2899 | * linux-low.h (struct process_info): Add resume request | |
2900 | pointer. | |
2901 | ||
2a68b70e DJ |
2902 | 2004-01-30 Daniel Jacobowitz <drow@mvista.com> |
2903 | ||
2904 | * regcache.c (new_register_cache): Clear the allocated register | |
2905 | buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>. | |
2906 | ||
64386c31 DJ |
2907 | 2003-10-13 Daniel Jacobowitz <drow@mvista.com> |
2908 | ||
2909 | * linux-low.c (linux_resume): Take a struct thread_resume * | |
2910 | argument. | |
2911 | (linux_wait): Update call. | |
2912 | (resume_ptr): New static variable. | |
2913 | (linux_continue_one_thread): Renamed from | |
2914 | linux_continue_one_process. Use resume_ptr. | |
2915 | (linux_resume): Use linux_continue_one_thread. | |
2916 | * server.c (handle_v_cont, handle_v_requests): New functions. | |
2917 | (myresume): New function. | |
2918 | (main): Handle 'v' case. | |
2919 | * target.h (struct thread_resume): New type. | |
2920 | (struct target_ops): Change argument of "resume" to struct | |
2921 | thread_resume *. | |
2922 | (myresume): Delete macro. | |
2923 | ||
c938e9b0 L |
2924 | 2003-08-08 H.J. Lu <hongjiu.lu@intel.com> |
2925 | ||
2926 | * Makefile.in (install-only): Create dest dir. Support DESTDIR. | |
2927 | (uninstall): Support DESTDIR. | |
2928 | ||
7f313d07 BC |
2929 | Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com> |
2930 | ||
2931 | * configure.srv: Add xscale*linux copy of arm*linux entry. | |
2932 | ||
3b2fc2ea DJ |
2933 | 2003-07-24 Daniel Jacobowitz <drow@mvista.com> |
2934 | ||
2935 | * linux-arm-low.c (arm_reinsert_addr): New function. | |
2936 | (the_low_target): Add arm_reinsert_addr. | |
2937 | ||
1c0a559e MK |
2938 | 2003-07-08 Mark Kettenis <kettenis@gnu.org> |
2939 | ||
2940 | * mem-break.c: Remove whitespace at end of file. | |
2941 | ||
43d5792c DJ |
2942 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
2943 | ||
2944 | * configure.in: Check whether we need to prototype strerror. | |
2945 | * server.h: Optionally prototype strerror. | |
2946 | * gdbreplay.c (perror_with_name): Use strerror. | |
2947 | * linux-low.c (linux_attach_lwp): Use strerror. | |
2948 | * utils.c (perror_with_name): Use strerror. | |
2949 | * config.in, configure: Regenerated. | |
2950 | ||
c8a86edf DJ |
2951 | 2003-06-28 Daniel Jacobowitz <drow@mvista.com> |
2952 | ||
2953 | * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by | |
2954 | SUGIOKA Toshinobu <sugioka@itonet.co.jp>. | |
2955 | ||
73d37363 DJ |
2956 | 2003-06-20 Daniel Jacobowitz <drow@mvista.com> |
2957 | ||
2958 | * Makefile.in (SFILES): Update. | |
2959 | * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c, | |
2960 | low-sun3.c: Remove files. | |
2961 | ||
6ad8ae5c DJ |
2962 | 2003-06-17 Daniel Jacobowitz <drow@mvista.com> |
2963 | ||
2964 | * linux-low.c: Move comment to linux_thread_alive where it belonged. | |
2965 | (linux_detach_one_process, linux_detach): New functions. | |
2966 | (linux_target_ops): Add linux_detach. | |
2967 | * server.c (main): Handle 'D' packet. | |
2968 | * target.h (struct target_ops): Add "detach" member. | |
2969 | (detach_inferior): Define. | |
2970 | ||
1581182a MK |
2971 | 2003-06-13 Mark Kettenis <kettenis@gnu.org> |
2972 | ||
2973 | From Kelley Cook <kelleycook@wideopenwest.com>: | |
2974 | * configure.srv: Accept i[34567]86 variants. | |
2975 | ||
e5379b03 DJ |
2976 | 2003-06-05 Daniel Jacobowitz <drow@mvista.com> |
2977 | ||
2978 | * linux-low.c (linux_wait_for_event): Correct comment typos. | |
2979 | (linux_resume_one_process): Call check_removed_breakpoint. | |
2980 | (linux_send_signal): New function. | |
2981 | (linux_target_ops): Add linux_send_signal. | |
2982 | * remote-utils.c (putpkt, input_interrupt): Use send_signal instead | |
2983 | of kill. | |
2984 | * target.h (struct target_ops): Add send_signal. | |
2985 | ||
2ff29de4 JB |
2986 | 2003-05-29 Jim Blandy <jimb@redhat.com> |
2987 | ||
2988 | * linux-low.c (usr_store_inferior_registers): Transfer buf in | |
2989 | PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise, | |
2990 | if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing | |
2991 | away part of the register's value. | |
2992 | ||
254787d4 DJ |
2993 | 2003-03-26 Daniel Jacobowitz <drow@mvista.com> |
2994 | ||
2995 | * linux-low.c (linux_create_inferior): Use __SIGRTMIN. | |
2996 | (linux_wait_for_event, linux_init_signals): Likewise. | |
2997 | ||
94e10508 DJ |
2998 | 2003-03-17 Daniel Jacobowitz <drow@mvista.com> |
2999 | ||
3000 | * configure.in: Check for stdlib.h. | |
3001 | * configure: Regenerated. | |
3002 | * config.in: Regenerated. | |
3003 | ||
4c0711e0 DJ |
3004 | 2003-01-04 Andreas Schwab <schwab@suse.de> |
3005 | ||
3006 | * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31. | |
3007 | ||
ef66e766 AC |
3008 | 2003-01-02 Andrew Cagney <ac131313@redhat.com> |
3009 | ||
3010 | * Makefile.in: Remove obsolete code. | |
3011 | ||
a1358604 DJ |
3012 | 2002-11-20 Daniel Jacobowitz <drow@mvista.com> |
3013 | ||
3014 | * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of | |
3015 | defined(PT_FPR0_HI). | |
3016 | ||
23ce3b1c DJ |
3017 | 2002-11-17 Stuart Hughes <seh@zee2.com> |
3018 | ||
3019 | * linux-arm-low.c (arm_num_regs): Increase. | |
3020 | (arm_regmap): Include status register. | |
3021 | ||
3022 | 2002-11-17 Daniel Jacobowitz <drow@mvista.com> | |
3023 | ||
3024 | * linux-low.c (register_addr): Remove incorrect -1 check. | |
3025 | ||
a9fa9f7d DJ |
3026 | 2002-08-29 Daniel Jacobowitz <drow@mvista.com> |
3027 | ||
3028 | * linux-low.c (linux_create_inferior): Call setpgid. Return | |
3029 | the new PID. | |
3030 | (unstopped_p, linux_signal_pid): Remove. | |
3031 | (linux_target_ops): Remove linux_signal_pid. | |
3032 | * remote-utils.c (putpkt, input_interrupt): Use signal_pid | |
3033 | global instead of target method. | |
3034 | * target.h (struct target_ops): Remove signal_pid. Update comment | |
3035 | for create_inferior. | |
3036 | * server.c (signal_pid): New variable. | |
3037 | (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in | |
4b8dad4a | 3038 | gdbserver. Set the child to be the foreground process group. |
a9fa9f7d DJ |
3039 | (attach_inferior): Set signal_pid. |
3040 | ||
17574093 DJ |
3041 | 2002-08-23 Daniel Jacobowitz <drow@mvista.com> |
3042 | ||
3043 | * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2. | |
3044 | ||
3045 | 2002-08-20 Jim Blandy <jimb@redhat.com> | |
3046 | ||
3047 | * Makefile.in (LDFLAGS): Allow the configure script to establish a | |
3048 | default for this. | |
3049 | ||
3050 | 2002-08-01 Andrew Cagney <cagney@redhat.com> | |
3051 | ||
3052 | * Makefile.in: Make chill references obsolete. | |
3053 | ||
3054 | 2002-07-24 Kevin Buettner <kevinb@redhat.com> | |
3055 | ||
3056 | * configure.in (unistd.h): Add to AC_CHECK_HEADERS list. | |
3057 | * configure: Regenerate. | |
3058 | * config.in: Regenerate. | |
3059 | ||
3060 | 2002-07-09 David O'Brien <obrien@FreeBSD.org> | |
3061 | ||
3062 | * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include. | |
3063 | (perror_with_name, remote_close, remote_open, expect, play): Static. | |
3064 | ||
3065 | 2002-07-04 Michal Ludvig <mludvig@suse.cz> | |
3066 | ||
4b8dad4a | 3067 | * linux-x86-64-low.c (x86_64_regmap): Make it an array of |
17574093 DJ |
3068 | byte offsets instead of an array of indexes. |
3069 | (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const. | |
3070 | ||
3071 | 2002-06-13 Daniel Jacobowitz <drow@mvista.com> | |
3072 | ||
3073 | * regcache.c: Add comment. | |
3074 | ||
3075 | 2002-06-11 Daniel Jacobowitz <drow@mvista.com> | |
3076 | ||
3077 | * thread-db.c: New file. | |
3078 | * proc-service.c: New file. | |
3079 | * acinclude.m4: New file. | |
3080 | * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h, | |
3081 | proc-service.o, and thread-db.o. | |
3082 | (linux-low.o): Add USE_THREAD_DB. | |
3083 | * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, | |
3084 | HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN. | |
3085 | * aclocal.m4: Regenerated. | |
3086 | * config.in: Regenerated. | |
3087 | * configure: Regenerated. | |
3088 | * configure.in: Check for proc_service.h, sys/procfs.h, | |
3089 | thread_db.h, and linux/elf.h headrs. | |
3090 | Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and | |
3091 | PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB. | |
3092 | Check for -lthread_db and thread support. | |
3093 | * configure.srv: Enable thread_db support for ARM, i386, MIPS, | |
3094 | PowerPC, and SuperH. | |
3095 | * i387-fp.c: Constify arguments. | |
3096 | * i387-fp.h: Likewise. | |
3097 | * inferiors.c: (struct thread_info): Renamed from | |
3098 | `struct inferior_info'. Remove PID member. Use generic inferior | |
3099 | list header. All uses updated. | |
3100 | (inferiors, signal_pid): Removed. | |
3101 | (all_threads): New variable. | |
3102 | (get_thread): Define. | |
3103 | (add_inferior_to_list): New function. | |
3104 | (for_each_inferior): New function. | |
3105 | (change_inferior_id): New function. | |
3106 | (add_inferior): Removed. | |
3107 | (remove_inferior): New function. | |
3108 | (add_thread): New function. | |
3109 | (free_one_thread): New function. | |
3110 | (remove_thread): New function. | |
3111 | (clear_inferiors): Use for_each_inferior and free_one_thread. | |
3112 | (find_inferior): New function. | |
3113 | (find_inferior_id): New function. | |
3114 | (inferior_target_data): Update argument type. | |
3115 | (set_inferior_target_data): Likewise. | |
3116 | (inferior_regcache_data): Likewise. | |
3117 | (set_inferior_regcache_data): Likewise. | |
3118 | * linux-low.c (linux_bp_reinsert): Remove. | |
3119 | (all_processes, stopping_threads, using_thrads) | |
3120 | (struct pending_signals, debug_threads, pid_of): New. | |
3121 | (inferior_pid): Replace with macro. | |
3122 | (struct inferior_linux_data): Remove. | |
3123 | (get_stop_pc, add_process): New functions. | |
3124 | (linux_create_inferior): Restore SIGRTMIN+1 before calling exec. | |
3125 | Use add_process and add_thread. | |
3126 | (linux_attach_lwp): New function, based on old linux_attach. Use | |
3127 | add_process and add_thread. Set stop_expected for new threads. | |
3128 | (linux_attach): New function. | |
3129 | (linux_kill_one_process): New function. | |
3130 | (linux_kill): Kill all LWPs. | |
3131 | (linux_thread_alive): Use find_inferior_id. | |
3132 | (check_removed_breakpoints, status_pending_p): New functions. | |
3133 | (linux_wait_for_process): Renamed from linux_wait_for_one_inferior. | |
3134 | Update. Use WNOHANG. Wait for cloned processes also. Update process | |
3135 | struct for the found process. | |
3136 | (linux_wait_for_event): New function. | |
3137 | (linux_wait): Use it. Support LWPs. | |
3138 | (send_sigstop, wait_for_sigstop, stop_all_processes) | |
3139 | (linux_resume_one_process, linux_continue_one_process): New functions. | |
3140 | (linux_resume): Support LWPs. | |
3141 | (REGISTER_RAW_SIZE): Remove. | |
3142 | (fetch_register): Use register_size instead. Call supply_register. | |
3143 | (usr_store_inferior_registers): Likewise. Call collect_register. | |
3144 | Fix recursive case. | |
3145 | (regsets_fetch_inferior_registers): Improve error message. | |
3146 | (regsets_store_inferior_registers): Add debugging. | |
3147 | (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB. | |
3148 | (unstopped_p, linux_signal_pid): New functions. | |
3149 | (linux_target_ops): Add linux_signal_pid. | |
3150 | (linux_init_signals): New function. | |
3151 | (initialize_low): Call it. Initialize using_threads. | |
3152 | * regcache.c (inferior_regcache_data): Add valid | |
3153 | flag. | |
3154 | (get_regcache): Fetch registers lazily. Add fetch argument | |
3155 | and update all callers. | |
3156 | (regcache_invalidate_one, regcache_invalidate): New | |
3157 | functions. | |
3158 | (new_register_cache): Renamed from create_register_cache. | |
3159 | Return the new regcache. | |
3160 | (free_register_cache): Change argument to a void *. | |
3161 | (registers_to_string, registers_from_string): Call get_regcache | |
3162 | with fetch flag set. | |
3163 | (register_data): Make static. Pass fetch flag to get_regcache. | |
3164 | (supply_register): Call get_regcache with fetch flag clear. | |
3165 | (collect_register): Call get_regcache with fetch flag set. | |
3166 | (collect_register_as_string): New function. | |
3167 | * regcache.h: Update. | |
3168 | * remote-utils.c (putpkt): Flush after debug output and use | |
3169 | stderr. | |
3170 | Handle input interrupts while waiting for an ACK. | |
3171 | (input_interrupt): Use signal_pid method. | |
3172 | (getpkt): Flush after debug output and use stderr. | |
3173 | (outreg): Use collect_register_as_string. | |
3174 | (new_thread_notify, dead_thread_notify): New functions. | |
3175 | (prepare_resume_reply): Check using_threads. Set thread_from_wait | |
3176 | and general_thread. | |
3177 | (look_up_one_symbol): Flush after debug output. | |
3178 | * server.c (step_thread, server_waiting): New variables. | |
3179 | (start_inferior): Don't use signal_pid. Update call to mywait. | |
3180 | (attach_inferior): Update call to mywait. | |
3181 | (handle_query): Handle qfThreadInfo and qsThreadInfo. | |
3182 | (main): Don't fetch/store registers explicitly. Use | |
3183 | set_desired_inferior. Support proposed ``Hs'' packet. Update | |
3184 | calls to mywait. | |
3185 | * server.h: Update. | |
3186 | (struct inferior_list, struct_inferior_list_entry): New. | |
3187 | * target.c (set_desired_inferior): New. | |
3188 | (write_inferior_memory): Constify. | |
3189 | (mywait): New function. | |
3190 | * target.h: Update. | |
3191 | (struct target_ops): New signal_pid method. | |
3192 | (mywait): Removed macro, added prototype. | |
3193 | ||
3194 | * linux-low.h (regset_func): Removed. | |
3195 | (regset_fill_func, regset_store_func): New. | |
3196 | (enum regset_type): New. | |
3197 | (struct regset_info): Add type field. Use new operation types. | |
3198 | (struct linux_target_ops): stop_pc renamed to get_pc. | |
3199 | Add decr_pc_after_break and breakpoint_at. | |
3200 | (get_process, get_thread_proess, get_process_thread) | |
3201 | (strut process_info, all_processes, linux_attach_lwp) | |
3202 | (thread_db_init): New. | |
3203 | ||
3204 | * linux-arm-low.c (arm_get_pc, arm_set_pc, | |
3205 | arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New. | |
3206 | (the_low_target): Add new members. | |
3207 | * linux-i386-low.c (i386_store_gregset, i386_store_fpregset) | |
3208 | (i386_store_fpxregset): Constify. | |
3209 | (target_regsets): Add new kind identifier. | |
3210 | (i386_get_pc): Renamed from i386_stop_pc. Simplify. | |
3211 | (i386_set_pc): Add debugging. | |
3212 | (i386_breakpoint_at): New function. | |
3213 | (the_low_target): Add new members. | |
3214 | * linux-mips-low.c (mips_get_pc, mips_set_pc) | |
3215 | (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr) | |
3216 | (mips_breakpoint_at): New. | |
3217 | (the_low_target): Add new members. | |
3218 | * linux-ppc-low.c (ppc_get_pc, ppc_set_pc) | |
3219 | (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New. | |
3220 | (the_low_target): Add new members. | |
3221 | * linux-sh-low.c (sh_get_pc, sh_set_pc) | |
3222 | (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New. | |
3223 | (the_low_target): Add new members. | |
3224 | * linux-x86-64-low.c (target_regsets): Add new kind | |
3225 | identifier. | |
3226 | ||
3227 | 2002-05-15 Daniel Jacobowitz <drow@mvista.com> | |
3228 | ||
3229 | From Martin Pool <mbp@samba.org>: | |
3230 | * server.c (gdbserver_usage): New function. | |
3231 | (main): Call it. | |
3232 | ||
3233 | 2002-05-14 Daniel Jacobowitz <drow@mvista.com> | |
3234 | ||
3235 | * mem-break.c (reinsert_breakpoint_by_bp): Correct typo | |
3236 | stop_at -> stop_pc. | |
3237 | ||
3238 | 2002-05-04 Andrew Cagney <ac131313@redhat.com> | |
3239 | ||
3240 | * Makefile.in: Remove obsolete code. | |
3241 | ||
3242 | 2002-04-24 Michal Ludvig <mludvig@suse.cz> | |
3243 | ||
3244 | * linux-low.c (regsets_fetch_inferior_registers), | |
3245 | (regsets_store_inferior_registers): Removed cast to int from | |
3246 | ptrace() calls. | |
3247 | * regcache.h: Added declaration of struct inferior_info. | |
3248 | ||
3249 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
3250 | ||
3251 | * inferiors.c (struct inferior_info): Add regcache_data. | |
3252 | (add_inferior): Call create_register_cache. | |
3253 | (clear_inferiors): Call free_register_cache. | |
3254 | (inferior_regcache_data, set_inferior_regcache_data): New functions. | |
3255 | * regcache.c (struct inferior_regcache_data): New. | |
3256 | (registers): Remove. | |
3257 | (get_regcache): New function. | |
3258 | (create_register_cache, free_register_cache): New functions. | |
3259 | (set_register_cache): Don't initialize the register cache here. | |
3260 | (registers_to_string, registers_from_string, register_data): Call | |
3261 | get_regcache. | |
3262 | * regcache.h: Add prototypes. | |
3263 | * server.h: Likewise. | |
3264 | ||
3265 | 2002-04-20 Daniel Jacobowitz <drow@mvista.com> | |
3266 | ||
3267 | * mem-break.c: New file. | |
3268 | * mem-break.h: New file. | |
3269 | * Makefile.in: Add mem-break.o rule; update server.h | |
3270 | dependencies. | |
3271 | * inferiors.c (struct inferior_info): Add target_data | |
3272 | member. | |
3273 | (clear_inferiors): Free target_data member if set. | |
3274 | (inferior_target_data, set_inferior_target_data): New functions. | |
3275 | * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len) | |
3276 | (i386_stop_pc, i386_set_pc): New. Add to the_low_target. | |
3277 | * linux-low.c (linux_bp_reinsert): New variable. | |
3278 | (struct inferior_linux_data): New. | |
3279 | (linux_create_inferior): Use set_inferior_target_data. | |
3280 | (linux_attach): Likewise. Call add_inferior. | |
3281 | (linux_wait_for_one_inferior): New function. | |
3282 | (linux_wait): Call it. | |
3283 | (linux_write_memory): Add const. | |
3284 | (initialize_low): Call set_breakpoint_data. | |
3285 | * linux-low.h (struct linux_target_ops): Add breakpoint | |
3286 | handling members. | |
3287 | * server.c (attach_inferior): Remove extra add_inferior | |
3288 | call. | |
3289 | * server.h: Include mem-break.h. Update inferior.c | |
3290 | prototypes. | |
3291 | * target.c (read_inferior_memory) | |
3292 | (write_inferior_memory): New functions. | |
3293 | * target.h (read_inferior_memory) | |
3294 | (write_inferior_memory): Change macros to prototypes. | |
3295 | (struct target_ops): Update comments. Add const to write_memory | |
3296 | definition. | |
3297 | ||
3298 | 2002-04-11 Daniel Jacobowitz <drow@mvista.com> | |
3299 | ||
3300 | * linux-low.c (usr_store_inferior_registers): Support | |
3301 | registers which are allowed to fail to store. | |
3302 | * linux-low.h (linux_target_ops): Likewise. | |
3303 | * linux-ppc-low.c (ppc_regmap): Support FPSCR. | |
3304 | (ppc_cannot_store_register): FPSCR may not be storable. | |
3305 | ||
3306 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3307 | ||
3308 | * server.h: Include <string.h> if HAVE_STRING_H. | |
3309 | * ChangeLog: Correct paths in last ChangeLog entry. | |
3310 | ||
3311 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3312 | ||
3313 | * linux-low.h: Remove obsolete prototypes. | |
3314 | (struct linux_target_ops): New. | |
3315 | (extern the_low_target): New. | |
3316 | * linux-low.c (num_regs, regmap): Remove declarations. | |
3317 | (register_addr): Use the_low_target explicitly. | |
3318 | (fetch_register): Likewise. | |
3319 | (usr_fetch_inferior_registers): Likewise. | |
3320 | (usr_store_inferior_registers): Likewise. | |
3321 | * linux-arm-low.c (num_regs): Remove. | |
3322 | (arm_num_regs): Define. | |
3323 | (arm_regmap): Renamed from regmap, made static. | |
3324 | (arm_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3325 | made static. | |
3326 | (arm_cannot_store_register): Renamed from cannot_store_register, | |
3327 | made static. | |
3328 | (the_low_target): New. | |
3329 | * linux-i386-low.c (num_regs): Remove. | |
3330 | (i386_num_regs): Define. | |
3331 | (i386_regmap): Renamed from regmap, made static. | |
3332 | (i386_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3333 | made static. | |
3334 | (i386_cannot_store_register): Renamed from cannot_store_register, | |
3335 | made static. | |
3336 | (the_low_target): New. | |
3337 | * linux-ia64-low.c (num_regs): Remove. | |
3338 | (ia64_num_regs): Define. | |
3339 | (ia64_regmap): Renamed from regmap, made static. | |
3340 | (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3341 | made static. | |
3342 | (ia64_cannot_store_register): Renamed from cannot_store_register, | |
3343 | made static. | |
3344 | (the_low_target): New. | |
3345 | * linux-m68k-low.c (num_regs): Remove. | |
3346 | (m68k_num_regs): Define. | |
3347 | (m68k_regmap): Renamed from regmap, made static. | |
3348 | (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3349 | made static. | |
3350 | (m68k_cannot_store_register): Renamed from cannot_store_register, | |
3351 | made static. | |
3352 | (the_low_target): New. | |
3353 | * linux-mips-low.c (num_regs): Remove. | |
3354 | (mips_num_regs): Define. | |
3355 | (mips_regmap): Renamed from regmap, made static. | |
3356 | (mips_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3357 | made static. | |
3358 | (mips_cannot_store_register): Renamed from cannot_store_register, | |
3359 | made static. | |
3360 | (the_low_target): New. | |
3361 | * linux-ppc-low.c (num_regs): Remove. | |
3362 | (ppc_num_regs): Define. | |
3363 | (ppc_regmap): Renamed from regmap, made static. | |
3364 | (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3365 | made static. | |
3366 | (ppc_cannot_store_register): Renamed from cannot_store_register, | |
3367 | made static. | |
3368 | (the_low_target): New. | |
3369 | * linux-s390-low.c (num_regs): Remove. | |
3370 | (s390_num_regs): Define. | |
3371 | (s390_regmap): Renamed from regmap, made static. | |
3372 | (s390_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3373 | made static. | |
3374 | (s390_cannot_store_register): Renamed from cannot_store_register, | |
3375 | made static. | |
3376 | (the_low_target): New. | |
3377 | * linux-sh-low.c (num_regs): Remove. | |
3378 | (sh_num_regs): Define. | |
3379 | (sh_regmap): Renamed from regmap, made static. | |
3380 | (sh_cannot_fetch_register): Renamed from cannot_fetch_register, | |
3381 | made static. | |
3382 | (sh_cannot_store_register): Renamed from cannot_store_register, | |
3383 | made static. | |
3384 | (the_low_target): New. | |
3385 | * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. | |
3386 | (the_low_target): New. | |
3387 | ||
3388 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3389 | ||
3390 | * Makefile.in: Add stamp-h target. | |
3391 | * configure.in: Create stamp-h. | |
3392 | * configure: Regenerated. | |
3393 | ||
3394 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3395 | ||
3396 | * inferiors.c: New file. | |
3397 | * target.c: New file. | |
3398 | * target.h: New file. | |
3399 | * Makefile.in: Add target.o and inferiors.o. Update | |
3400 | dependencies. | |
3401 | * linux-low.c (inferior_pid): New static variable, | |
3402 | moved from server.c. | |
3403 | (linux_create_inferior): Renamed from create_inferior. | |
3404 | Call add_inferior. Return 0 on success instead of a PID. | |
3405 | (linux_attach): Renamed from myattach. | |
3406 | (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). | |
3407 | (linux_thread_alive): Renamed from mythread_alive. | |
3408 | (linux_wait): Renamed from mywait. Call clear_inferiors () if the | |
3409 | child dies. | |
3410 | (linux_resume): Renamed from myresume. Add missing ``return 0''. | |
3411 | (regsets_store_inferior_registers): Correct error message. | |
3412 | Add missing ``return 0''. | |
3413 | (linux_fetch_registers): Renamed from fetch_inferior_registers. | |
3414 | (linux_store_registers): Renamed from store_inferior_registers. | |
3415 | (linux_read_memory): Renamed from read_inferior_memory. | |
3416 | (linux_write_memory): Renamed from write_inferior_memory. | |
3417 | (linux_target_ops): New structure. | |
3418 | (initialize_low): Call set_target_ops (). | |
3419 | * remote-utils.c (unhexify): New function. | |
3420 | (hexify): New function. | |
3421 | (input_interrupt): Send signals to ``signal_pid''. | |
3422 | * server.c (inferior_pid): Remove. | |
3423 | (start_inferior): Update create_inferior call. | |
3424 | (attach_inferior): Call add_inferior. | |
3425 | (handle_query): New function. | |
3426 | (main): Call handle_query for `q' packets. | |
3427 | * server.h: Include "target.h". Remove obsolete prototypes. | |
3428 | Add prototypes for "inferiors.c", "target.c", hexify, and unhexify. | |
3429 | ||
3430 | 2002-04-09 Daniel Jacobowitz <drow@mvista.com> | |
3431 | ||
3432 | * Makefile.in: Add WARN_CFLAGS. Update configury | |
3433 | dependencies. | |
3434 | * configure.in: Check for <string.h> | |
3435 | * configure: Regenerate. | |
3436 | * config.in: Regenerate. | |
3437 | * gdbreplay.c: Include needed system headers. | |
3438 | (remote_open): Remove strchr prototype. | |
3439 | * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. | |
3440 | * regcache.c (supply_register): Change buf argument to const void *. | |
3441 | (supply_register_by_name): Likewise. | |
3442 | (collect_register): Change buf argument to void *. | |
3443 | (collect_register_by_name): Likewise. | |
3444 | * regcache.h: Add missing prototypes. | |
3445 | * remote-utils.c: Include <arpa/inet.h> for inet_ntoa. | |
3446 | * server.c (handle_query): New function. | |
3447 | (attached): New static variable, moved out of main. | |
3448 | (main): Quiet longjmp clobber warnings. | |
3449 | * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. | |
3450 | * utils.c (error): Remove NORETURN. | |
3451 | (fatal): Likewise. |