]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/ChangeLog
Fix for segmentation fault.
[thirdparty/binutils-gdb.git] / gdb / gdbserver / ChangeLog
CommitLineData
ea025f5f
DJ
12006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * remote-utils.c (all_symbols_looked_up): New variable.
4 (look_up_one_symbol): Check it.
5 * server.h (look_up_one_symbol): New declaration.
6 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
7
9308fc88
DJ
82006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
9
10 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 11 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
12 (PTRACE_GET_THREAD_AREA): Define.
13 (ps_get_thread_area): New function.
14
52fb6437
NS
152006-05-09 Nathan Sidwell <nathan@codesourcery.com>
16
17 * configure.srv (m68k*-*-uclinux*): New target.
18 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19 (linux_resume_one_process): Remove extraneous cast.
20 (linux_read_offsets): New.
21 (linux_target_op): Add linux_read_offsets on mmuless systems.
22 * server.c (handle_query): Add qOffsets logic.
23 * target.h (struct target_ops): Add read_offsets.
24
21b0f40c
DJ
252006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
26
27 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
28 (PTRACE_GET_THREAD_AREA): Define.
29 (ps_get_thread_area): New function.
30 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
31 (linux-x86-64-low.o): Update.
32
0050a760
DJ
332006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
34
35 * configure.ac: Remove checks for prfpregset_t.
36 * gdb_proc_service.h: New file.
37 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
38 new "gdb_proc_service.h".
39 * proc-service.c: Likewise.
40 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
41 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
42 * Makefile.in (gdb_proc_service_h): Updated.
43 * configure, config.in: Regenerated.
44
b92a518e
DJ
452006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * remote-utils.c (prepare_resume_reply): Move declaration
48 of gdb_id_from_wait to the top of the block.
49
545587ee
DJ
502006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
51
52 * linux-low.c (regsets_store_inferior_registers): Read the regset
53 from the target before filling it.
54
9db87ebd
DJ
552006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
56
57 * server.c (attach_inferior): Return SIGTRAP for a successful
58 attach.
59
dd24457d
DJ
602006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
61
62 * Makefile.in (OBS): Add version.o.
63 (STAGESTUFF): Delete.
64 (version.o): Add dependencies.
65 (version.c): Replace rule.
66 (clean): Remove version.c.
67 * server.c (gdbserver_version): New.
68 (gdbserver_usage): Use printf.
69 (main): Handle --version and --help.
70 * server.h (version, host_name): Add declarations.
71
6f0f660e
EZ
722005-12-23 Eli Zaretskii <eliz@gnu.org>
73
74 * linux-arm-low.c:
75 * linux-arm-low.c:
76 * inferiors.c:
77 * i387-fp.h:
78 * i387-fp.c:
79 * gdbreplay.c:
80 * regcache.c:
81 * proc-service.c:
82 * mem-break.h:
83 * mem-break.c:
84 * linux-x86-64-low.c:
85 * linux-sh-low.c:
86 * linux-s390-low.c:
87 * linux-ppc64-low.c:
88 * linux-ppc-low.c:
89 * linux-mips-low.c:
90 * linux-m68k-low.c:
91 * linux-m32r-low.c:
92 * linux-low.h:
93 * linux-low.c:
94 * linux-ia64-low.c:
95 * linux-i386-low.c:
96 * linux-crisv32-low.c:
97 * thread-db.c:
98 * terminal.h:
99 * target.h:
100 * target.c:
101 * server.h:
102 * server.c:
103 * remote-utils.c:
104 * regcache.h:
105 * utils.c:
106 * Makefile.in:
107 * configure.ac:
108 * gdbserver.1: Add (C) after Copyright. Update the FSF
109 address.
110
9d1fb177
DJ
1112005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
112
113 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
114 (arm_breakpoint_at): Recognize both breakpoints.
115 (the_low_target): Use the correct breakpoint instruction.
116
011a70c2
DJ
1172005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
118
119 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
120 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
121 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
122 (the_low_target): Update.
123
7fb85e41
AS
1242005-10-25 Andreas Schwab <schwab@suse.de>
125
126 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
127
128 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
129 (ia64_num_regs): Reduce to 462.
130
3db0444b
DJ
1312005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
132
133 * acinclude.m4: Correct quoting.
134 * aclocal.m4: Regenerated.
135
136 Suggested by SZOKOVACS Robert <szo@ies.hu>:
137 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
138 (thread_db_init): Call thread_db_err_str.
139 * configure.ac: Check for TD_VERSION.
140 * config.in, configure: Regenerated.
141
bee0189a
DJ
1422005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
143
144 * server.h (error, fatal, warning): Add ATTR_FORMAT.
145
e9d25b98
DJ
1462005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
147
148 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
149 is not available. Define HAVE_PTRACE_GETREGS if it is.
150 * config.in, configure: Regenerated.
151 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
152 * linux-i386-low.c, linux-m68k-low.c: Update to use
153 HAVE_PTRACE_GETREGS.
154 * linux-low.c (regsets_fetch_inferior_registers)
155 (regsets_store_inferior_registers): Only return 0 if we processed
156 GENERAL_REGS.
157 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
158 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
159
a06660f7
DJ
1602005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
161
162 * inferiors.c (struct thread_info): Add gdb_id.
163 (add_thread): Add gdb_id argument.
164 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
165 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
166 calls to add_thread.
167 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
168 * server.c (handle_query): Use thread_to_gdb_id.
169 (handle_v_cont, main): Use gdb_id_to_thread_id.
170 * server.h (add_thread): Update prototype.
171 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
172 prototypes.
173
5a1f5858
DJ
1742005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
177 left-padded registers.
178 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
179 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
180
e122f1f5
SE
1812005-07-01 Steve Ellcey <sje@cup.hp.com>
182
183 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
184 * configure: Regenerate.
185 * config.in: Regenerate.
186 * server.h (NEED_DECLARATION_STRERROR):
187 Replace with !HAVE_DECL_STRERROR.
188
d592fa2f
DJ
1892005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
190
191 * linux-low.c (linux_wait, linux_send_signal): Don't test
192 an unsigned long variable for > 0 if it could be MAX_ULONG.
193 * server.c (myresume): Likewise.
194 * target.c (set_desired_inferior): Likewise.
195
ccbd4912
MK
1962005-06-13 Mark Kettenis <kettenis@gnu.org>
197
198 * configure.ac: Simplify and improve check for socklen_t.
199 * configure, config.in: Regenerate.
200
f450004a
DJ
2012005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
202
203 * acconfig.h: Remove.
204 * configure.ac: Add a test for socklen_t. Use three-argument
205 AC_DEFINE throughout.
206 * config.in: Regenerated using autoheader 2.59.
207 * configure: Regenerated.
208
209 * gdbreplay.c (socklen_t): Provide a default.
210 (remote_open): Use socklen_t.
211 * remote-utils.c (socklen_t): Provide a default.
212 (remote_open): Use socklen_t.
213 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
214 unsigned char.
215
216 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
217 char for buffers.
218 * linux-low.c (linux_read_memory, linux_write_memory)
219 (linux_read_auxv): Likewise.
220 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
221 (check_mem_write): Likewise.
222 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
223 Likewise.
224 * regcache.c (struct inferior_rgcache_data, registers_to_string)
225 (registers_from_string, register_data): Likewise.
226 * server.c (handle_query, main): Likewise.
227 * server.h (convert_ascii_to_int, convert_int_to_ascii)
228 (decode_M_packet): Likewise.
229 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
230 * target.h (struct target_ops): Update read_memory, write_memory,
231 and read_auxv.
232 (read_inferior_memory, write_inferior_memory): Update.
233 * linux-low.h (struct linux_target_ops): Change type of breakpoint
234 to unsigned char *.
235 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
236 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
237 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
238 linux-s390-low.c, linux-sh-low.c: Update for changes in
239 read_inferior_memory and the_low_target->breakpoint.
240
eee84df1
DJ
2412005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
242
243 * Makefile.in (SFILES): Add linux-ppc64-low.c.
244 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
245 * configure.srv: Add powerpc64-*-linux*.
246 * linux-ppc64-low.c: New file.
247
45b134e5
OF
2482005-05-23 Orjan Friberg <orjanf@axis.com>
249
250 * linux-cris-low.c: New file with support for CRIS.
251 * linux-crisv32-low.c: Ditto for CRISv32.
252 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
253 (clean): Add reg-cris.c and reg-crisv32.c.
254 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
255 reg-crisv32.o, and reg-crisv32.c to make rules.
256 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
257 recognized targets.
258
48d93c75
UW
2592005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
260
261 * linux-low.c (fetch_register): Ensure buffer size is a multiple
262 of sizeof (PTRACE_XFER_TYPE).
263 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
264
e013ee27
OF
2652005-05-12 Orjan Friberg <orjanf@axis.com>
266
267 * target.h (struct target_ops): Add insert_watchpoint,
268 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
269 pointers for hardware watchpoint support.
270 * linux-low.h (struct linux_target_ops): Ditto.
271 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
272 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
273 to linux_target_ops.
274 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
275 reply packet.
276 * server.c (main): Recognize 'Z' and 'z' packets.
277
b0ded00b
UW
2782005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
279
280 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
281 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
282 (the_low_target): Add new members.
283
8643e2ad
DJ
2842005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
285
286 * proc-service.c (ps_lgetregs): Search all_processes instead of
287 all_threads.
288
fc620387
DJ
2892005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
290
291 * server.c (start_inferior): Change return type to int.
292 (attach_inferior): Change sigptr to int *.
293 (handle_v_cont, handle_v_requests): Change signal to int *.
294 (main): Change signal to int.
295
2962005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
297
298 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
299 * configure.srv: Add m32r*-*-linux*.
300 * linux-m32r-low.c: New file.
301
e0e76420
DJ
3022005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
303
304 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
305
a1928bad
DJ
3062005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
307
308 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
309 Take unsigned long arguments for PIDs.
310 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
311 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
312 (wait_for_sigstop, linux_resume_one_process)
313 (regsets_fetch_inferior_registers, linux_send_signal)
314 (linux_read_auxv): Likewise. Update the types of variables holding
315 PIDs. Update format string specifiers.
316 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
317 * remote-utils.c (prepare_resume_reply): Likewise.
318 * server.c (cont_thread, general_thread, step_thread)
319 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
320 unsigned long.
321 (handle_query): Update format specifiers.
322 (handle_v_cont, main): Use strtoul for thread IDs.
323 * server.h (struct inferior_list_entry): Use unsigned long for ID.
324 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
325 (general_thread, step_thread, thread_from_wait)
326 (old_thread_from_wait): Update.
327 * target.h (struct thread_resume): Use unsigned long for THREAD.
328 (struct target_ops): Use unsigned long for arguments to attach and
329 thread_alive.
330
dcdb98d2
DJ
3312005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
332
333 * acinclude.m4: Include bfd/bfd.m4 directly.
334 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
335 <agriffis@toolchain.org>.
336 * aclocal.m4, configure: Regenerated.
337
bec39cab
AC
3382005-01-07 Andrew Cagney <cagney@gnu.org>
339
340 * configure.ac: Rename configure.in, require autoconf 2.59.
341 * configure: Re-generate.
342
434c4c77
DJ
3432004-12-08 Daniel Jacobowitz <dan@debian.org>
344
345 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
346 LIBS when finished.
347 * aclocal.m4: Regenerated.
348 * configure: Regenerated.
349
db1d3e1b
AS
3502004-11-21 Andreas Schwab <schwab@suse.de>
351
352 * linux-m68k-low.c (m68k_num_gregs): Define.
353 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
354 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
355 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
356 (m68k_breakpoint_at): New. Add to the_low_target.
357
358 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
359 srv_linux_thread_db to yes.
360
43360365
JB
3612004-10-20 Joel Brobecker <brobecker@gnat.com>
362
363 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
364 (ARCH_SET_FS): Likewise.
365 (ARCH_GET_FS): Likewise.
366 (ARCH_GET_GS): Likewise.
367
fd500816
DJ
3682004-10-16 Daniel Jacobowitz <dan@debian.org>
369
370 * linux-i386-low.c (ps_get_thread_area): New.
371 * linux-x86-64-low.c (ps_get_thread_area): New.
372 * linux-low.c: Include <sys/syscall.h>.
373 (linux_kill_one_process): Don't kill the first thread here.
374 (linux_kill): Kill the first thread here.
375 (kill_lwp): New function.
376 (send_sigstop, linux_send_signal): Use it.
377 * proc-service.c: Clean up #ifdefs.
378 (fpregset_info): Delete.
379 (ps_lgetregs): Update and enable implementation.
380 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
381 implementations.
382 * remote-utils.c (struct sym_cache, symbol_cache): New.
383 (input_interrupt): Print a clearer message.
384 (async_io_enabled): New variable.
385 (enable_async_io, disable_async_io): Use it. Update comments.
386 (look_up_one_symbol): Use the symbol cache.
387 * thread-db.c (thread_db_look_up_symbols): New function.
388 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
389
f6de3c42
DJ
3902004-10-16 Daniel Jacobowitz <dan@debian.org>
391
392 * configure.in: Test for -rdynamic.
393 * configure: Regenerated.
394 * Makefile (INTERNAL_LDFLAGS): New.
395 (gdbserver, gdbreplay): Use it.
396
2c0fc042
AC
3972004-09-02 Andrew Cagney <cagney@gnu.org>
398
399 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
400
075b3282
DJ
4012004-03-23 Daniel Jacobowitz <drow@mvista.com>
402
403 * linux-low.c (linux_wait): Clear all_processes list also.
404
fa6a77dc
DJ
4052004-03-12 Daniel Jacobowitz <drow@mvista.com>
406
407 * linux-low.c: Include <errno.h>. Remove extern declaration of
408 errno.
409
6d782a97
DJ
4102004-03-12 Daniel Jacobowitz <drow@mvista.com>
411
412 * gdbreplay.c, server.h, utils.c: Update copyright years.
413
3a7fb99b
DJ
4142004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
415
416 * server.c (main): Print child status or termination signal from
417 variable 'signal', not 'sig'.
418
c3e735a6
DJ
4192004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
420
421 * linux-low.c (linux_read_memory): Change return type to
422 int. Check for and return error from ptrace().
423 * target.c (read_inferior_memory): Change return type to int. Pass
424 back return status from the_target->read_memory().
425 * target.h (struct target_ops): Adapt *read_memory() prototype.
426 Update comment.
427 (read_inferior_memory): Adapt prototype.
428 * server.c (main): Return an error packet if
429 read_inferior_memory() returns an error.
430
a59d1c82
DJ
4312004-03-04 Daniel Jacobowitz <drow@mvista.com>
432
433 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
434 Unify with other clean targets.
435
dc3f8883
DJ
4362004-02-29 Daniel Jacobowitz <drow@mvista.com>
437
438 * server.c (handle_v_cont): Call set_desired_inferior.
439
89a208da
DJ
4402004-02-29 Daniel Jacobowitz <drow@mvista.com>
441
442 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
443
62ea82f5
DJ
4442004-02-29 Daniel Jacobowitz <drow@mvista.com>
445
446 * linux-low.c (linux_wait): Unblock async I/O.
447 (linux_resume): Block and enable async I/O.
448 * remote-utils.c (block_async_io, unblock_async_io): New functions.
449 * server.h (block_async_io, unblock_async_io): Add prototypes.
450
6910d122
DJ
4512004-02-29 Daniel Jacobowitz <drow@mvista.com>
452
453 * remote-utils.c (remote_open): Print a status notice after
454 opening a TCP port.
455 * server.c (attach_inferior): Print a status notice after
456 attaching.
457
4582004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
459
460 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
461
c89dc5d4
DJ
4622004-02-26 Daniel Jacobowitz <drow@mvista.com>
463
464 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
465 error packet.
466 * server.c, target.h: Update copyright years.
467
4b8dad4a
RM
4682004-02-25 Roland McGrath <roland@redhat.com>
469
470 * target.h (struct target_ops): New member `read_auxv'.
471 * server.c (handle_query): Handle qPart:auxv:read: query using that.
472 * linux-low.c (linux_read_auxv): New function.
473 (linux_target_ops): Initialize `read_auxv' member to that.
474
d7446758
JB
4752004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
476
477 Committed by Jim Blandy <jimb@redhat.com>.
478
479 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 480 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
481 instead of GPR_SIZE to distiguish s390 and s390x targets.
482
5544ad89
DJ
4832004-01-31 Daniel Jacobowitz <drow@mvista.com>
484
485 * linux-low.c: Update copyright year.
486 (check_removed_breakpoint): Clear pending_is_breakpoint.
487 (linux_set_resume_request, linux_queue_one_thread)
488 (resume_status_pending_p): New functions.
489 (linux_continue_one_thread): Use process->resume.
490 (linux_resume): Only resume threads if there are no pending events.
491 * linux-low.h (struct process_info): Add resume request
492 pointer.
493
2a68b70e
DJ
4942004-01-30 Daniel Jacobowitz <drow@mvista.com>
495
496 * regcache.c (new_register_cache): Clear the allocated register
497 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
498
64386c31
DJ
4992003-10-13 Daniel Jacobowitz <drow@mvista.com>
500
501 * linux-low.c (linux_resume): Take a struct thread_resume *
502 argument.
503 (linux_wait): Update call.
504 (resume_ptr): New static variable.
505 (linux_continue_one_thread): Renamed from
506 linux_continue_one_process. Use resume_ptr.
507 (linux_resume): Use linux_continue_one_thread.
508 * server.c (handle_v_cont, handle_v_requests): New functions.
509 (myresume): New function.
510 (main): Handle 'v' case.
511 * target.h (struct thread_resume): New type.
512 (struct target_ops): Change argument of "resume" to struct
513 thread_resume *.
514 (myresume): Delete macro.
515
c938e9b0
L
5162003-08-08 H.J. Lu <hongjiu.lu@intel.com>
517
518 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
519 (uninstall): Support DESTDIR.
520
7f313d07
BC
521Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
522
523 * configure.srv: Add xscale*linux copy of arm*linux entry.
524
3b2fc2ea
DJ
5252003-07-24 Daniel Jacobowitz <drow@mvista.com>
526
527 * linux-arm-low.c (arm_reinsert_addr): New function.
528 (the_low_target): Add arm_reinsert_addr.
529
1c0a559e
MK
5302003-07-08 Mark Kettenis <kettenis@gnu.org>
531
532 * mem-break.c: Remove whitespace at end of file.
533
43d5792c
DJ
5342003-06-28 Daniel Jacobowitz <drow@mvista.com>
535
536 * configure.in: Check whether we need to prototype strerror.
537 * server.h: Optionally prototype strerror.
538 * gdbreplay.c (perror_with_name): Use strerror.
539 * linux-low.c (linux_attach_lwp): Use strerror.
540 * utils.c (perror_with_name): Use strerror.
541 * config.in, configure: Regenerated.
542
c8a86edf
DJ
5432003-06-28 Daniel Jacobowitz <drow@mvista.com>
544
545 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
546 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
547
73d37363
DJ
5482003-06-20 Daniel Jacobowitz <drow@mvista.com>
549
550 * Makefile.in (SFILES): Update.
551 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
552 low-sun3.c: Remove files.
553
6ad8ae5c
DJ
5542003-06-17 Daniel Jacobowitz <drow@mvista.com>
555
556 * linux-low.c: Move comment to linux_thread_alive where it belonged.
557 (linux_detach_one_process, linux_detach): New functions.
558 (linux_target_ops): Add linux_detach.
559 * server.c (main): Handle 'D' packet.
560 * target.h (struct target_ops): Add "detach" member.
561 (detach_inferior): Define.
562
1581182a
MK
5632003-06-13 Mark Kettenis <kettenis@gnu.org>
564
565 From Kelley Cook <kelleycook@wideopenwest.com>:
566 * configure.srv: Accept i[34567]86 variants.
567
e5379b03
DJ
5682003-06-05 Daniel Jacobowitz <drow@mvista.com>
569
570 * linux-low.c (linux_wait_for_event): Correct comment typos.
571 (linux_resume_one_process): Call check_removed_breakpoint.
572 (linux_send_signal): New function.
573 (linux_target_ops): Add linux_send_signal.
574 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
575 of kill.
576 * target.h (struct target_ops): Add send_signal.
577
2ff29de4
JB
5782003-05-29 Jim Blandy <jimb@redhat.com>
579
580 * linux-low.c (usr_store_inferior_registers): Transfer buf in
581 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
582 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
583 away part of the register's value.
584
254787d4
DJ
5852003-03-26 Daniel Jacobowitz <drow@mvista.com>
586
587 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
588 (linux_wait_for_event, linux_init_signals): Likewise.
589
94e10508
DJ
5902003-03-17 Daniel Jacobowitz <drow@mvista.com>
591
592 * configure.in: Check for stdlib.h.
593 * configure: Regenerated.
594 * config.in: Regenerated.
595
4c0711e0
DJ
5962003-01-04 Andreas Schwab <schwab@suse.de>
597
598 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
599
ef66e766
AC
6002003-01-02 Andrew Cagney <ac131313@redhat.com>
601
602 * Makefile.in: Remove obsolete code.
603
a1358604
DJ
6042002-11-20 Daniel Jacobowitz <drow@mvista.com>
605
606 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
607 defined(PT_FPR0_HI).
608
23ce3b1c
DJ
6092002-11-17 Stuart Hughes <seh@zee2.com>
610
611 * linux-arm-low.c (arm_num_regs): Increase.
612 (arm_regmap): Include status register.
613
6142002-11-17 Daniel Jacobowitz <drow@mvista.com>
615
616 * linux-low.c (register_addr): Remove incorrect -1 check.
617
a9fa9f7d
DJ
6182002-08-29 Daniel Jacobowitz <drow@mvista.com>
619
620 * linux-low.c (linux_create_inferior): Call setpgid. Return
621 the new PID.
622 (unstopped_p, linux_signal_pid): Remove.
623 (linux_target_ops): Remove linux_signal_pid.
624 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
625 global instead of target method.
626 * target.h (struct target_ops): Remove signal_pid. Update comment
627 for create_inferior.
628 * server.c (signal_pid): New variable.
629 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 630 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
631 (attach_inferior): Set signal_pid.
632
17574093
DJ
6332002-08-23 Daniel Jacobowitz <drow@mvista.com>
634
635 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
636
6372002-08-20 Jim Blandy <jimb@redhat.com>
638
639 * Makefile.in (LDFLAGS): Allow the configure script to establish a
640 default for this.
641
6422002-08-01 Andrew Cagney <cagney@redhat.com>
643
644 * Makefile.in: Make chill references obsolete.
645
6462002-07-24 Kevin Buettner <kevinb@redhat.com>
647
648 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
649 * configure: Regenerate.
650 * config.in: Regenerate.
651
6522002-07-09 David O'Brien <obrien@FreeBSD.org>
653
654 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
655 (perror_with_name, remote_close, remote_open, expect, play): Static.
656
6572002-07-04 Michal Ludvig <mludvig@suse.cz>
658
4b8dad4a 659 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
660 byte offsets instead of an array of indexes.
661 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
662
6632002-06-13 Daniel Jacobowitz <drow@mvista.com>
664
665 * regcache.c: Add comment.
666
6672002-06-11 Daniel Jacobowitz <drow@mvista.com>
668
669 * thread-db.c: New file.
670 * proc-service.c: New file.
671 * acinclude.m4: New file.
672 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
673 proc-service.o, and thread-db.o.
674 (linux-low.o): Add USE_THREAD_DB.
675 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
676 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
677 * aclocal.m4: Regenerated.
678 * config.in: Regenerated.
679 * configure: Regenerated.
680 * configure.in: Check for proc_service.h, sys/procfs.h,
681 thread_db.h, and linux/elf.h headrs.
682 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
683 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
684 Check for -lthread_db and thread support.
685 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
686 PowerPC, and SuperH.
687 * i387-fp.c: Constify arguments.
688 * i387-fp.h: Likewise.
689 * inferiors.c: (struct thread_info): Renamed from
690 `struct inferior_info'. Remove PID member. Use generic inferior
691 list header. All uses updated.
692 (inferiors, signal_pid): Removed.
693 (all_threads): New variable.
694 (get_thread): Define.
695 (add_inferior_to_list): New function.
696 (for_each_inferior): New function.
697 (change_inferior_id): New function.
698 (add_inferior): Removed.
699 (remove_inferior): New function.
700 (add_thread): New function.
701 (free_one_thread): New function.
702 (remove_thread): New function.
703 (clear_inferiors): Use for_each_inferior and free_one_thread.
704 (find_inferior): New function.
705 (find_inferior_id): New function.
706 (inferior_target_data): Update argument type.
707 (set_inferior_target_data): Likewise.
708 (inferior_regcache_data): Likewise.
709 (set_inferior_regcache_data): Likewise.
710 * linux-low.c (linux_bp_reinsert): Remove.
711 (all_processes, stopping_threads, using_thrads)
712 (struct pending_signals, debug_threads, pid_of): New.
713 (inferior_pid): Replace with macro.
714 (struct inferior_linux_data): Remove.
715 (get_stop_pc, add_process): New functions.
716 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
717 Use add_process and add_thread.
718 (linux_attach_lwp): New function, based on old linux_attach. Use
719 add_process and add_thread. Set stop_expected for new threads.
720 (linux_attach): New function.
721 (linux_kill_one_process): New function.
722 (linux_kill): Kill all LWPs.
723 (linux_thread_alive): Use find_inferior_id.
724 (check_removed_breakpoints, status_pending_p): New functions.
725 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
726 Update. Use WNOHANG. Wait for cloned processes also. Update process
727 struct for the found process.
728 (linux_wait_for_event): New function.
729 (linux_wait): Use it. Support LWPs.
730 (send_sigstop, wait_for_sigstop, stop_all_processes)
731 (linux_resume_one_process, linux_continue_one_process): New functions.
732 (linux_resume): Support LWPs.
733 (REGISTER_RAW_SIZE): Remove.
734 (fetch_register): Use register_size instead. Call supply_register.
735 (usr_store_inferior_registers): Likewise. Call collect_register.
736 Fix recursive case.
737 (regsets_fetch_inferior_registers): Improve error message.
738 (regsets_store_inferior_registers): Add debugging.
739 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
740 (unstopped_p, linux_signal_pid): New functions.
741 (linux_target_ops): Add linux_signal_pid.
742 (linux_init_signals): New function.
743 (initialize_low): Call it. Initialize using_threads.
744 * regcache.c (inferior_regcache_data): Add valid
745 flag.
746 (get_regcache): Fetch registers lazily. Add fetch argument
747 and update all callers.
748 (regcache_invalidate_one, regcache_invalidate): New
749 functions.
750 (new_register_cache): Renamed from create_register_cache.
751 Return the new regcache.
752 (free_register_cache): Change argument to a void *.
753 (registers_to_string, registers_from_string): Call get_regcache
754 with fetch flag set.
755 (register_data): Make static. Pass fetch flag to get_regcache.
756 (supply_register): Call get_regcache with fetch flag clear.
757 (collect_register): Call get_regcache with fetch flag set.
758 (collect_register_as_string): New function.
759 * regcache.h: Update.
760 * remote-utils.c (putpkt): Flush after debug output and use
761 stderr.
762 Handle input interrupts while waiting for an ACK.
763 (input_interrupt): Use signal_pid method.
764 (getpkt): Flush after debug output and use stderr.
765 (outreg): Use collect_register_as_string.
766 (new_thread_notify, dead_thread_notify): New functions.
767 (prepare_resume_reply): Check using_threads. Set thread_from_wait
768 and general_thread.
769 (look_up_one_symbol): Flush after debug output.
770 * server.c (step_thread, server_waiting): New variables.
771 (start_inferior): Don't use signal_pid. Update call to mywait.
772 (attach_inferior): Update call to mywait.
773 (handle_query): Handle qfThreadInfo and qsThreadInfo.
774 (main): Don't fetch/store registers explicitly. Use
775 set_desired_inferior. Support proposed ``Hs'' packet. Update
776 calls to mywait.
777 * server.h: Update.
778 (struct inferior_list, struct_inferior_list_entry): New.
779 * target.c (set_desired_inferior): New.
780 (write_inferior_memory): Constify.
781 (mywait): New function.
782 * target.h: Update.
783 (struct target_ops): New signal_pid method.
784 (mywait): Removed macro, added prototype.
785
786 * linux-low.h (regset_func): Removed.
787 (regset_fill_func, regset_store_func): New.
788 (enum regset_type): New.
789 (struct regset_info): Add type field. Use new operation types.
790 (struct linux_target_ops): stop_pc renamed to get_pc.
791 Add decr_pc_after_break and breakpoint_at.
792 (get_process, get_thread_proess, get_process_thread)
793 (strut process_info, all_processes, linux_attach_lwp)
794 (thread_db_init): New.
795
796 * linux-arm-low.c (arm_get_pc, arm_set_pc,
797 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
798 (the_low_target): Add new members.
799 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
800 (i386_store_fpxregset): Constify.
801 (target_regsets): Add new kind identifier.
802 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
803 (i386_set_pc): Add debugging.
804 (i386_breakpoint_at): New function.
805 (the_low_target): Add new members.
806 * linux-mips-low.c (mips_get_pc, mips_set_pc)
807 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
808 (mips_breakpoint_at): New.
809 (the_low_target): Add new members.
810 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
811 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
812 (the_low_target): Add new members.
813 * linux-sh-low.c (sh_get_pc, sh_set_pc)
814 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
815 (the_low_target): Add new members.
816 * linux-x86-64-low.c (target_regsets): Add new kind
817 identifier.
818
8192002-05-15 Daniel Jacobowitz <drow@mvista.com>
820
821 From Martin Pool <mbp@samba.org>:
822 * server.c (gdbserver_usage): New function.
823 (main): Call it.
824
8252002-05-14 Daniel Jacobowitz <drow@mvista.com>
826
827 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
828 stop_at -> stop_pc.
829
8302002-05-04 Andrew Cagney <ac131313@redhat.com>
831
832 * Makefile.in: Remove obsolete code.
833
8342002-04-24 Michal Ludvig <mludvig@suse.cz>
835
836 * linux-low.c (regsets_fetch_inferior_registers),
837 (regsets_store_inferior_registers): Removed cast to int from
838 ptrace() calls.
839 * regcache.h: Added declaration of struct inferior_info.
840
8412002-04-20 Daniel Jacobowitz <drow@mvista.com>
842
843 * inferiors.c (struct inferior_info): Add regcache_data.
844 (add_inferior): Call create_register_cache.
845 (clear_inferiors): Call free_register_cache.
846 (inferior_regcache_data, set_inferior_regcache_data): New functions.
847 * regcache.c (struct inferior_regcache_data): New.
848 (registers): Remove.
849 (get_regcache): New function.
850 (create_register_cache, free_register_cache): New functions.
851 (set_register_cache): Don't initialize the register cache here.
852 (registers_to_string, registers_from_string, register_data): Call
853 get_regcache.
854 * regcache.h: Add prototypes.
855 * server.h: Likewise.
856
8572002-04-20 Daniel Jacobowitz <drow@mvista.com>
858
859 * mem-break.c: New file.
860 * mem-break.h: New file.
861 * Makefile.in: Add mem-break.o rule; update server.h
862 dependencies.
863 * inferiors.c (struct inferior_info): Add target_data
864 member.
865 (clear_inferiors): Free target_data member if set.
866 (inferior_target_data, set_inferior_target_data): New functions.
867 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
868 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
869 * linux-low.c (linux_bp_reinsert): New variable.
870 (struct inferior_linux_data): New.
871 (linux_create_inferior): Use set_inferior_target_data.
872 (linux_attach): Likewise. Call add_inferior.
873 (linux_wait_for_one_inferior): New function.
874 (linux_wait): Call it.
875 (linux_write_memory): Add const.
876 (initialize_low): Call set_breakpoint_data.
877 * linux-low.h (struct linux_target_ops): Add breakpoint
878 handling members.
879 * server.c (attach_inferior): Remove extra add_inferior
880 call.
881 * server.h: Include mem-break.h. Update inferior.c
882 prototypes.
883 * target.c (read_inferior_memory)
884 (write_inferior_memory): New functions.
885 * target.h (read_inferior_memory)
886 (write_inferior_memory): Change macros to prototypes.
887 (struct target_ops): Update comments. Add const to write_memory
888 definition.
889
8902002-04-11 Daniel Jacobowitz <drow@mvista.com>
891
892 * linux-low.c (usr_store_inferior_registers): Support
893 registers which are allowed to fail to store.
894 * linux-low.h (linux_target_ops): Likewise.
895 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
896 (ppc_cannot_store_register): FPSCR may not be storable.
897
8982002-04-09 Daniel Jacobowitz <drow@mvista.com>
899
900 * server.h: Include <string.h> if HAVE_STRING_H.
901 * ChangeLog: Correct paths in last ChangeLog entry.
902
9032002-04-09 Daniel Jacobowitz <drow@mvista.com>
904
905 * linux-low.h: Remove obsolete prototypes.
906 (struct linux_target_ops): New.
907 (extern the_low_target): New.
908 * linux-low.c (num_regs, regmap): Remove declarations.
909 (register_addr): Use the_low_target explicitly.
910 (fetch_register): Likewise.
911 (usr_fetch_inferior_registers): Likewise.
912 (usr_store_inferior_registers): Likewise.
913 * linux-arm-low.c (num_regs): Remove.
914 (arm_num_regs): Define.
915 (arm_regmap): Renamed from regmap, made static.
916 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
917 made static.
918 (arm_cannot_store_register): Renamed from cannot_store_register,
919 made static.
920 (the_low_target): New.
921 * linux-i386-low.c (num_regs): Remove.
922 (i386_num_regs): Define.
923 (i386_regmap): Renamed from regmap, made static.
924 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
925 made static.
926 (i386_cannot_store_register): Renamed from cannot_store_register,
927 made static.
928 (the_low_target): New.
929 * linux-ia64-low.c (num_regs): Remove.
930 (ia64_num_regs): Define.
931 (ia64_regmap): Renamed from regmap, made static.
932 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
933 made static.
934 (ia64_cannot_store_register): Renamed from cannot_store_register,
935 made static.
936 (the_low_target): New.
937 * linux-m68k-low.c (num_regs): Remove.
938 (m68k_num_regs): Define.
939 (m68k_regmap): Renamed from regmap, made static.
940 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
941 made static.
942 (m68k_cannot_store_register): Renamed from cannot_store_register,
943 made static.
944 (the_low_target): New.
945 * linux-mips-low.c (num_regs): Remove.
946 (mips_num_regs): Define.
947 (mips_regmap): Renamed from regmap, made static.
948 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
949 made static.
950 (mips_cannot_store_register): Renamed from cannot_store_register,
951 made static.
952 (the_low_target): New.
953 * linux-ppc-low.c (num_regs): Remove.
954 (ppc_num_regs): Define.
955 (ppc_regmap): Renamed from regmap, made static.
956 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
957 made static.
958 (ppc_cannot_store_register): Renamed from cannot_store_register,
959 made static.
960 (the_low_target): New.
961 * linux-s390-low.c (num_regs): Remove.
962 (s390_num_regs): Define.
963 (s390_regmap): Renamed from regmap, made static.
964 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
965 made static.
966 (s390_cannot_store_register): Renamed from cannot_store_register,
967 made static.
968 (the_low_target): New.
969 * linux-sh-low.c (num_regs): Remove.
970 (sh_num_regs): Define.
971 (sh_regmap): Renamed from regmap, made static.
972 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
973 made static.
974 (sh_cannot_store_register): Renamed from cannot_store_register,
975 made static.
976 (the_low_target): New.
977 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
978 (the_low_target): New.
979
9802002-04-09 Daniel Jacobowitz <drow@mvista.com>
981
982 * Makefile.in: Add stamp-h target.
983 * configure.in: Create stamp-h.
984 * configure: Regenerated.
985
9862002-04-09 Daniel Jacobowitz <drow@mvista.com>
987
988 * inferiors.c: New file.
989 * target.c: New file.
990 * target.h: New file.
991 * Makefile.in: Add target.o and inferiors.o. Update
992 dependencies.
993 * linux-low.c (inferior_pid): New static variable,
994 moved from server.c.
995 (linux_create_inferior): Renamed from create_inferior.
996 Call add_inferior. Return 0 on success instead of a PID.
997 (linux_attach): Renamed from myattach.
998 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
999 (linux_thread_alive): Renamed from mythread_alive.
1000 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1001 child dies.
1002 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1003 (regsets_store_inferior_registers): Correct error message.
1004 Add missing ``return 0''.
1005 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1006 (linux_store_registers): Renamed from store_inferior_registers.
1007 (linux_read_memory): Renamed from read_inferior_memory.
1008 (linux_write_memory): Renamed from write_inferior_memory.
1009 (linux_target_ops): New structure.
1010 (initialize_low): Call set_target_ops ().
1011 * remote-utils.c (unhexify): New function.
1012 (hexify): New function.
1013 (input_interrupt): Send signals to ``signal_pid''.
1014 * server.c (inferior_pid): Remove.
1015 (start_inferior): Update create_inferior call.
1016 (attach_inferior): Call add_inferior.
1017 (handle_query): New function.
1018 (main): Call handle_query for `q' packets.
1019 * server.h: Include "target.h". Remove obsolete prototypes.
1020 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1021
10222002-04-09 Daniel Jacobowitz <drow@mvista.com>
1023
1024 * Makefile.in: Add WARN_CFLAGS. Update configury
1025 dependencies.
1026 * configure.in: Check for <string.h>
1027 * configure: Regenerate.
1028 * config.in: Regenerate.
1029 * gdbreplay.c: Include needed system headers.
1030 (remote_open): Remove strchr prototype.
1031 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1032 * regcache.c (supply_register): Change buf argument to const void *.
1033 (supply_register_by_name): Likewise.
1034 (collect_register): Change buf argument to void *.
1035 (collect_register_by_name): Likewise.
1036 * regcache.h: Add missing prototypes.
1037 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1038 * server.c (handle_query): New function.
1039 (attached): New static variable, moved out of main.
1040 (main): Quiet longjmp clobber warnings.
1041 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1042 * utils.c (error): Remove NORETURN.
1043 (fatal): Likewise.