s/@example/@smallexample/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7d0766f3
AC
12002-03-18 Andrew Cagney <ac131313@redhat.com>
2
3 * command.h (struct cmd_list_element): Add field context.
4 (set_cmd_context, get_cmd_context): Declare.
5 * cli/cli-decode.h: Ditto.
6 * cli/cli-decode.c (get_cmd_context): New function.
7 (set_cmd_context): New function.
8 (add_cmd): Initialize context.
9 Part of fixing PR gdb/145 and PR gdb/146.
10
5913bcb0
AC
112002-03-17 Andrew Cagney <ac131313@redhat.com>
12
1868c04e
AC
13 * cli/cli-decode.c (cmd_type): New function.
14 * command.h (cmd_type): Declare.
15 * infrun.c (set_schedlock_func): Call function cmd_type.
16 * kod.c (kod_set_os): Call cmd_type.
17 * cris-tdep.c (cris_version_update): Use function cmd_type.
18 (cris_mode_update, cris_abi_update): Ditto.
19
5913bcb0
AC
20 * command.h: (execute_cmd_post_hook): Declare.
21 (execute_cmd_pre_hook): Declare.
22 * cli/cli-script.c (clear_hook_in_cleanup): New function.
23 (execute_cmd_post_hook, execute_cmd_pre_hook): New
24 functions. Execute pre/post hook while ensuring that afterwords
25 hook_in is cleared.
26 * top.c (execute_command): Use execute_cmd_post_hook, and
27 execute_cmd_pre_hook to execute pre/post commands.
28 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
29 hook_stop_stub.
30 (hook_stop_stub): Call execute_cmd_pre_hook.
31
b51450c9
AC
322002-03-17 Andrew Cagney <ac131313@redhat.com>
33
34 * kod.c (kod_set_os): Revert previous change. Is called by ``info
35 set'' and this leads to a core dump. Move xstrdup of
36 operating_system to after check that it is not NULL.
37
f66c9f11
AC
382002-03-17 Andrew Cagney <ac131313@redhat.com>
39
8e694ecf
AC
40 * kod.c (kod_set_os): Remove unnecessary check that
41 ``command->type'' is set_cmd.
42
f66c9f11
AC
43 * valprint.c (set_input_radix): Use input_radix.
44 (set_output_radix): Use output_radix.
45 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
46 isn't reverted.
47
9d01611c
AC
482002-03-16 Andrew Cagney <ac131313@redhat.com>
49
50 * value.h (struct value): Delete field ``substring_addr''. Change
51 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
52 force_core_addr_align and force_pointer_aligh.
53
54 * value.h (struct value): Fix typo in above change.
9d01611c 55
4156bb53
PS
562002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
57
58 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
59 to fix internal_error from ``maintenance print architecture''.
60
0e5e3ea6
PS
612002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
62
63 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
64 for gcc versions after gcc-2.8.1.
65
9b013045
PS
662002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
67
68 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
69 for method resolution. Restore adjustment of ``this'' pointer after
70 calling value_struct_elt, which was accidentally removed during the
71 HP merge.
72
376c9600
AC
732002-03-15 Andrew Cagney <ac131313@redhat.com>
74
75 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
76 value_of_register.
77 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
78 get_saved_register.
79 * value.h (value_of_register): Update.
80
a4db0f07
RH
812002-03-14 Richard Henderson <rth@redhat.com>
82
83 * configure.in: Detect declaration for canonicalize_file_name.
84 * utils.c (canonicalize_file_name): Declare, if needed.
85 (gdb_realpath): Prefer realpath if available and usable.
86 * config.in, configure: Rebuild.
87
96383835
RH
882002-03-14 Richard Henderson <rth@redhat.com>
89
90 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
91 a constant array bound.
92
93 * MAINTAINERS: Add myself to write-after-approval.
94
e641a1ca
ML
952002-03-13 Michal Ludvig <mludvig@suse.cz>
96
97 * gdbserver/remote-util.c (remote_open): Print remote-side's
98 IP address when remote debugging over the network.
99
df08bfec
DB
1002002-03-12 David O'Brien <obrien@FreeBSD.org>
101
102 * config/sparc/fbsd.mh: Fix copyright.
103 * config/sparc/fbsd.mt: Likewise.
104
9a57864f
RE
1052002-03-11 Richard Earnshaw <rearnsha@arm.com>
106
107 * MAINTAINERS: Fix typo in name of gdb warnings option.
108 (x86-64): Fix formating so that this can be parsed by awk.
109
dd7bf85e
DJ
1102002-03-10 Daniel Jacobowitz <drow@mvista.com>
111
112 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
113 * defs.h: Include "gdb/signals.h".
114 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
115
33a0a2ac
ML
1162002-03-10 Michal Ludvig <mludvig@suse.cz>
117
118 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
119 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
120 from x86-64-tdep.h
121
dd824b04
DJ
1222002-03-10 Daniel Jacobowitz <drow@mvista.com>
123 Don Howard <dhoward@redhat.com>
124
125 * mips-tdep.c (ST0_FR): Define.
126 (mips2_fp_compat): New function, temporarily disabled.
127 (mips_read_fp_register_single): New function.
128 (mips_read_fp_register_double): New function.
129 (mips_print_register): Use them.
130 (do_fp_register_row): Likewise.
131
6a41ff59
AC
1322002-03-09 Andrew Cagney <ac131313@redhat.com>
133
134 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
135 approval''.
136
4ea09c10
PS
1372002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
138
139 * stabsread.c (read_member_functions): Fix is_stub test for
140 static member functions, improve comment.
141
6ccc741d
RE
1422002-03-07 Richard Earnshaw <rearnsha@arm.com>
143
144 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
145 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
146 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
147 commands that set boolean values.
148 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
149 (arm_rdi_resume): Always initialize PC.
150 (arm_rdi_open): Don't use rslt as a boolean.
151 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
152 (arm_rdi_fetch_registers, arm_rdi_store_registers)
153 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
154 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
155
438013df
AO
1562002-03-06 Alexandre Oliva <aoliva@redhat.com>
157
158 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
159 * configure: Rebuilt.
160
70ed8774
SC
1612002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
162
163 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
164 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
165
5ba2abeb
AC
1662002-03-06 Andrew Cagney <ac131313@redhat.com>
167
168 * cli/cli-decode.c (set_cmd_completer): New function.
169 * command.h (set_cmd_completer): Declare.
170 * cli/cli-decode.h (set_cmd_completer): Ditto.
171
172 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
173 * cli/cli-cmds.c (init_cli_cmds): Ditto.
174 * win32-nat.c (_initialize_inftarg): Ditto.
175 * remote-rdi.c (_initialize_remote_rdi): Ditto.
176 * proc-api.c (_initialize_proc_api): Ditto.
177 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
178 * source.c (_initialize_source): Ditto.
179 * exec.c (_initialize_exec): Ditto.
180 * solib.c (_initialize_solib): Ditto.
181 * top.c (init_main): Ditto.
182 * tracepoint.c (_initialize_tracepoint): Ditto.
183 * symfile.c (_initialize_symfile): Ditto.
184 * printcmd.c (_initialize_printcmd): Ditto.
185 * infcmd.c (_initialize_infcmd): Ditto.
186 * corefile.c (_initialize_core): Ditto.
187
f779ca99
AC
1882002-03-05 Andrew Cagney <ac131313@redhat.com>
189
190 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
191
01a3934b
AC
1922002-03-05 Andrew Cagney <ac131313@redhat.com>
193
194 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
195
37057839
AC
1962002-03-05 Andrew Cagney <ac131313@redhat.com>
197
198 * NEWS: Update headings, 5.2 has branched.
199
c6ecbae5
DJ
2002002-03-04 Daniel Jacobowitz <drow@mvista.com>
201
202 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
203 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
204 (register_addr, REGISTER_RAW_SIZE): Likewise.
205 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
206 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
207
e9f30c21
ML
2082002-03-03 Michal Ludvig <mludvig@suse.cz>
209
210 * MAINTAINERS (x86-64): Add myself.
211 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
212 changed value_ptr -> struct value *
213
54394ac3
DB
2142002-03-01 David O'Brien <obrien@FreeBSD.org>
215
216 * configure.host (sparc64-*-freebsd): Add.
217 * configure.tgt: Likewise.
218 * config/sparc/fbsd.mh: New file.
219 * config/sparc/fbsd.mt: Likewise.
220 * config/sparc/nm-fbsd.h: Likewise.
221 * config/sparc/tm-fbsd.h: Likewise.
222
bfe95955
DJ
2232002-03-01 Daniel Jacobowitz <drow@mvista.com>
224
225 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
226 regformats/reg-s390x.dat.
227
f33c6cbf
AC
2282002-03-01 Andrew Cagney <ac131313@redhat.com>
229
230 * utils.c: Add FIXME explaining true/false problem.
231
5ecaa7dd
AC
2322002-02-28 Andrew Cagney <ac131313@redhat.com>
233
234 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
235
2a251cc2
MC
2362002-02-28 Michael Chastain <mec@shout.net>
237
238 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
239
6a8031a3 2402002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
241
242 * gdbserver/linux-s390-low.c: New file.
243 * regformats/reg-s390.dat: New file.
244 * regformats/reg-s390x.dat: New file.
245 * gdbserver/configure.srv: Add S/390.
246 * gdbserver/Makefile.in: Add S/390.
247 * configure.tgt: Enable gdbserver for S/390.
248
ac469903
EZ
2492002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
250
251 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
252 first line of the doc string for "info dos", except at the end of
253 the sentence, since the short help stops at the first period.
254
985cb1a3
JM
2552002-02-28 Jason Merrill <jason@redhat.com>
256
257 * dwarf2read.c (dwarf_cfi_name): Add new codes.
258
c570663e
FF
2592002-02-27 Fred Fish <fnf@redhat.com>
260
261 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
262 comment (dumy -> dummy).
263
43630227
PS
2642002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
265
266 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
267
b84911e8
RB
2682002-02-27 Rodney Brown <rbrown64@csc.com.au>
269
270 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
271
58caa3dc
DJ
2722002-02-27 Daniel Jacobowitz <drow@mvista.com>
273
274 * gdbserver/acconfig.h: New file.
275 * gdbserver/i387-fp.c: New file.
276 * gdbserver/i387-fp.h: New file.
277 * gdbserver/linux-x86-64.c: New file.
278 * regformats/reg-x86-64.dat: New file.
279 * configure.tgt: Add x86_64-*-linux* gdbserver support.
280 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
281 * gdbserver/configure.in: Add support for regsets.
282 * gdbserver/config.in: Regenerate.
283 * gdbserver/configure: Regenerate.
284 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
285 * gdbserver/linux-low.h: New file.
286 * gdbserver/linux-low.c: Include "linux-low.h". Add support
287 for regsets.
288 * gdbserver/linux-arm-low.c: Include "linux-low.h".
289 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
290 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
291 * gdbserver/linux-mips-low.c: Include "linux-low.h".
292 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
293 * gdbserver/linux-sh-low.c: Include "linux-low.h".
294 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
295 "i387-fp.h". Add PTRACE_GETREGS and friends.
296 * gdbserver/regcache.c (supply_register): New function.
297 (supply_register_by_name): New function.
298 (collect_register): New function.
299 (collect_register_by_name): New function.
300
93652174
DJ
3012002-02-27 Daniel Jacobowitz <drow@mvista.com>
302
303 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
304 (config.status): Add configure.srv dependency.
305 (server_h): Add config.h dependency.
306
a02e4a61
DJ
3072002-02-27 Daniel Jacobowitz <drow@mvista.com>
308
309 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
310 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
311 * gdbserver/configure.srv: Change i386-*-linux* to use
312 reg-i386-linux.o.
313
ce0eebec
AC
3142002-02-26 Andrew Cagney <ac131313@redhat.com>
315
316 * x86-64-tdep.c: Re-indent. Update copyright date.
317
82dbc5f7
AC
3182002-02-26 Andrew Cagney <ac131313@redhat.com>
319
320 From Michal Ludvig <mludvig@suse.cz>:
321 * x86-64-tdep.c (value.h): Delete.
322 (gdb_assert.h): Include.
323 (x86_64_register_convert_to_virtual,
324 x86_64_register_convert_to_raw ): Add check which lets only
325 floating-point values to be converted.
326 (value_push): Delete.
327 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
328 (i386_gdbarch_init): Number of register_bytes fixed.
329
e4621584
AC
3302002-02-26 Andrew Cagney <ac131313@redhat.com>
331
332 * MAINTAINERS: Add x86-64 target.
333
81a9a963
AC
3342002-02-26 Andrew Cagney <ac131313@redhat.com>
335
336 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
337 * osfsolib.c (solib_map_sections): Ditto.
338 * irix5-nat.c (solib_map_sections): Ditto.
339 * corelow.c (gdb_check_format): Ditto.
340 * symfile.c (symfile_bfd_open): Ditto.
341 * solib.c (solib_map_sections): Ditto.
342 Fix PR gdb/354.
343
0f017ab9
AC
3442002-02-26 Andrew Cagney <ac131313@redhat.com>
345
346 * remote.c (_initialize_remote): By default, disable ``e'' and
347 ``E'' step out-of-range packets.
348
75738c29
AS
3492002-02-26 Andreas Schwab <schwab@suse.de>
350
351 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
352 m68k_linux_frame_saved_pc.
353 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
354 in_sigtramp.
355 (SIGCONTEXT_PC_OFFSET): Remove.
356 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
357 m68k_linux_sigtramp_saved_pc): New functions.
358 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
359 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
360 (UCONTEXT_PC_OFFSET): Define.
361 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
362 non-RT and RT signal trampolines.
363
7e8ed687
RE
3642002-02-26 Richard Earnshaw <rearnsha@arm.com>
365
366 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
367 (TARGET_NBPG, STACK_END_ADDR): Delete
368 (VARIABLES_INSIDE_BLOCK): Delete.
369
6972bc8b
AC
3702002-02-25 Andrew Cagney <ac131313@redhat.com>
371
372 * utils.c (perror_with_name): Make string parameter constant.
373 (print_sys_errmsg): Ditto.
374 (query): Ditto.
375 * defs.h (perror_with_name): Update.
376 (print_sys_errmsg): Update.
377 (query): Update.
378
aa32f823
DJ
3792002-02-25 Daniel Jacobowitz <drow@mvista.com>
380
381 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
382 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
383
19caaa45
PS
3842002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
385
386 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
387 if it already matches the current architecture from the exec file.
388 Include arch-utils.h for gdbarch_info_init prototype.
389 * Makefile.in (rs6000-nat.o): Update dependencies.
390
d951901f
EZ
3912002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
392
393 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
394 list of exported variables.
395
7ea81414
DJ
3962002-02-24 Daniel Jacobowitz <drow@mvista.com>
397
398 * gdbserver/configure.srv: New file.
399 * gdbserver/configure.in: Use configure.srv instead
400 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
401 from it.
402 * gdbserver/configure: Regenerated.
403 * gdbserver/terminal.h: New file.
404 * gdbserver/Makefile.in: Update for configure changes. Remove
405 more unneeded include paths.
406
080fe24b
AC
4072002-02-24 Andrew Cagney <ac131313@redhat.com>
408
409 From wiz at danbala:
410 * config/sparc/tm-sp64.h: Fix grammar and typos.
411 Fix PR gdb/287.
412
8605d56e
AC
4132002-02-24 Andrew Cagney <ac131313@redhat.com>
414
415 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
416 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
417 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
418 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
419 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
420 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
421 * s390-tdep.c: Ditto.
92362027
AC
422 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
423 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
424 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
425 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
426 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
427 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
428 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
429 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
430 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
431 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e
AC
432 Fix PR gdb/378.
433
8ed32cc0
AC
4342002-02-23 Andrew Cagney <ac131313@redhat.com>
435
a3007b6f
AC
436 * lin-thread.c: Delete file.
437 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
438 to gdb_proc_service.h.
439 * configure: Re-generate.
440
50a9e2f1
AC
441 * ocd.c (ocd_open): Do not try to open the "ocd" device.
442 * serial.c (serial_open): Delete check for "ocd".
443 Fix PR gdb/349.
444
8b6e7932
AC
445 * Makefile.in (linux-thread.o): Delete target.
446 * linux-thread.c: Delete file.
447
d155c46b
AC
448 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
449 renamed SH files to be consistent.
450
8ed32cc0
AC
451 * symtab.c (sort_search_symbols): Use xfree.
452
0e18d038
RE
4532002-02-23 Richard Earnshaw <rearnsha@arm.com>
454
455 * arm-linux-tdep.c (arm_linux_init_abi): Register
456 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
457 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
458 definition with undef, since we don't want the sysvr4 definition.
459 (SKIP_TRAMPOLINE_CODE): Likewise.
460
27aac7ff
AC
4612002-02-23 Andrew Cagney <ac131313@redhat.com>
462
463 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
464
465 * configure.in: (AC_CHECK_FUNCS) Added test for
466 canonicalize_file_name Regenerated.
467 * config.in, configure: Regenerated.
468 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
469 defined use canonicalize_file_name.
470
65a6e0ee
MC
4712002-02-23 Michael Chastain <mec@shout.net>
472
473 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
474
47b95330
AC
4752002-02-23 Andrew Cagney <ac131313@redhat.com>
476
477 * README: Remove references to cygnus.com.
478 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
479 dot com'' form. Remove references to cygnus.com and sourceware.
480
696f451b
AC
4812002-02-23 Andrew Cagney <ac131313@redhat.com>
482
483 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
484 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
485 1003.1-2001 no longer allows "head -1".
486 * gdb/Makefile.in (version.c): Likewise.
487 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
488 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
489 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
490
bbaca940
AC
4912002-02-23 Andrew Cagney <ac131313@redhat.com>
492
493 * cli/cli-decode.c (cmd_cfunc_eq): New function.
494 * command.h (cmd_cfunc_eq): Declare.
495 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
496
497 * cli/cli-cmds.h (is_complete_command): Change parameter to a
498 ``struct cmd_list_element *''.
499 * cli/cli-cmds.c (is_complete_command): Update. Use
500 cmd_cfunc_eq.
501 * top.c (execute_command): Pass the command to
502 is_complete_command.
503 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
504
b8b8b047
AC
5052002-02-23 Andrew Cagney <ac131313@redhat.com>
506
507 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
508 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
509 architecture defines.
510 * s390-tdep.c (s390_gdbarch_init): Likewise.
511
19d3fc80
RE
5122002-02-23 Richard Earnshaw <rearnsha@arm.com>
513
514 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
515 (arm_linux_push_arguments): Likewise.
516 (arm_linux_init_abi): Register them. Also register linux-specific
517 call_dummy_words.
518 (find_minsym_and_objfile): Use strcmp, not STREQ.
519 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
520 (arm_linux_call_dummy_words): Delete declaration.
521 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
522 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
523 declarations.
524 (LOWEST_PC): Delete.
525
3ab13650
PS
5262002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
527
528 * maint.c (print_section_info): Do not prepend `0x' to filepos
529 output, it will be handled by local_hex_string_custom.
530
19d3fc80 5312002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
532
533 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
534 (store_newfpe_double, store_newfpe_extended, store_fpregister)
535 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
536
d85a5daf
JB
5372002-02-22 Jim Blandy <jimb@redhat.com>
538
539 Indicate that the bcache functions don't change the strings
540 they're passed.
541 * bcache.h (bcache, hash): Add `const' keywords to declarations.
542 * bcache.c (bcache, hash): Add `const' keywords to definitions.
543
eeb25b8a
PM
5442002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
545
546 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
547
6badb179
CF
5482002-02-21 Christopher Faylor <cgf@redhat.com>
549
550 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
551 find the complete path to a loaded DLL.
552
e8717518
FF
5532002-02-21 Fred Fish <fnf@redhat.com>
554
555 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
556 that marks the end of the range of a function, enter a line number
557 entry that has a line number of zero and a PC offset that matches
558 the end of the function. This starts a range of PC's for which no
559 line number information is known.
560 * symtab.c (find_pc_sect_line): If our best fit is in a range of
561 PC's for which no line number info is found (line number is zero)
562 then we didn't find any valid line information.
563 * symtab.h: Document use of zero line number entry.
564
9abe5450
EZ
5652002-02-21 Elena Zannoni <ezannoni@redhat.com>
566
567 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
568 (have_ptrace_getvrregs): Define for run time checks.
569 (gdb_vrregset_t): New type for Altivec register handling.
570 (fetch_register, store_register): Fetch/store altivec register
571 when needed.
572 (fetch_altivec_register, store_altivec_register): New functions.
573 (supply_vrregset, fill_vrregset): New functions.
574 (fetch_altivec_registers, store_altivec_registers): New functions.
575 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
576 registers as well.
577
aaa38bb5
AJ
5782002-02-21 Jiri Smid <smid@suse.cz>
579
580 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
581
b34db576
RE
5822002-02-21 Richard Earnshaw <rearnsha@arm.com>
583
584 * Makefile.in (armnbsd-nat.o): Update dependencies.
585 * armnbsd-nat.c (supply_gregset): New function. Common code to
586 supply the integer register set.
587 (supply_fparegset): New function. Similar for FPA registers.
588 (fetch_regs, fetch_fp_regs): Use them.
589 (fetch_core_registers): Likewise.
590 (fetch_elfcore_registers): New function.
591 (arm_netbsd_elfcore_fns): New core-file type specification.
592 (_initialize_arm_netbsd_nat): Register it.
593
3e56fc4b
RE
5942002-02-21 Richard Earnshaw <rearnsha@arm.com>
595
596 * armnbsd-nat.c: Include gdbcore.h.
597 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
598 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
599 'void' to declaration, to shut up ARI.
600 (fetch_core_registers): Make static. Rewrite using supply_register.
601 (arm_netbsd_core_fns): New core-file type specification.
602 (_initialize_arm_netbsd_nat): New function.
603
097f6b0b
CF
6042002-02-21 Christopher Faylor <cgf@redhat.com>
605
606 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
607 value.
608
c914e0cc
CF
6092002-02-20 Christopher Faylor <cgf@redhat.com>
610
611 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
612 fails.
613
385fa495
DJ
6142002-02-20 Daniel Jacobowitz <drow@mvista.com>
615
616 * jv-exp.y (parse_number): Change type of implicit longs
617 to builtin_type_uint64.
618
e5f1222d
DJ
6192002-02-20 Daniel Jacobowitz <drow@mvista.com>
620
621 * gdbserver/linux-low.c (mywait): Change argument to waitpid
622 to be an integer instead of a `union wait'.
623
75c9abc6
DJ
6242002-02-20 Daniel Jacobowitz <drow@mvista.com>
625
626 * mips-linux-nat.c: Call the operating system GNU/Linux.
627 * mips-linux-tdep.c: Likewise.
628 * mips-tdep.c: Likewise.
629
551792a5
DJ
6302002-02-20 Daniel Jacobowitz <drow@mvista.com>
631
632 Fix PR gdb/265.
633 * jv-exp.y (parse_number): Handle 64-bit integers.
634
ee6e2b82
DJ
6352002-02-20 Daniel Jacobowitz <drow@mvista.com>
636
637 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
638 AC_STDC_HEADERS to AC_HEADER_STDC.
639 * gdbserver/configure: Regenerated.
640
a48442a0
RE
6412002-02-20 Richard Earnshaw <rearnsha@arm.com>
642
643 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
644 is defined.
645 * sparc-tdep.c (get_longjmp_target): Likewise.
646
fe419ffc
RE
6472002-02-20 Richard Earnshaw <rearnsha@arm.com>
648
649 * News: Add news about ARM and Multi-arch. Mention the new target
650 arm*-*-netbsd*.
651
5832ed7e
JB
6522002-02-19 Jim Blandy <jimb@redhat.com>
653
654 * stabsread.c (error_type_complaint): Improve error message.
655
84563040
DJ
6562002-02-19 Daniel Jacobowitz <drow@mvista.com>
657
658 * gdbserver/README: Update documentation.
659 * gdbserver/configure.in: Update configury to match documentation.
660 * gdbserver/Makefile.in: Likewise.
661 * gdbserver/configure: Regenerated.
662 * gdbserver/aclocal.m4: New file, generated by aclocal.
663 * gdbserver/config.in: New file, generated by autoheader.
664
375fd65b
RE
6652002-02-19 Richard Earnshaw <rearnsha@arm.com>
666
667 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
668 armnbsd-nat.c.
669
08216dd7
RE
6702002-02-19 Richard Earnshaw <rearnsha@arm.com>
671
672 * arm-tdep.h (enum arm_float_model): New enum.
673 (struct gdbarch_tdep): Add fp_model.
674 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
675 up floating-point conversions until we know the floating-point model
676 in use by the inferior. Don't complain about being unable to
677 determine the ABI of the inferior when we don't have one.
678 (arm_extract_return_value): Support different floating-point models.
679 (arm_store_return_value): Likewise.
aaa38bb5 680 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
681 ARM_FLOAT_SOFT.
682 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
683
65d6d66a
PS
6842002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
685
686 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
687 of ``current_gdbarch''.
688
47221191
RE
6892002-02-19 Richard Earnshaw <rearnsha@arm.com>
690
691 * armnbsd-nat.c : ANSIfy all function declarations.
692 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
693 (fetch_inferior_registers): Re-implement in terms of above.
694 (store_register, store_regs, store_fp_register, store_fp_regs): New.
695 (store_inferior_registers): Re-implement in terms of above.
696
fdf39c9a
RE
6972002-02-19 Richard Earnshaw <rearnsha@arm.com>
698
aaa38bb5 699 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
700 kernel.
701 * arm-linux-tdep.c: Likewise.
702 * config/arm/tm-linux.h: Likewise.
703
93247f88
RE
7042002-02-19 Richard Earnshaw <rearnsha@arm.com>
705
706 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
707 * config/arm/nbsd.mt (TM_FILE): Delete.
708 * config/arm/tm-nbsd.h: Delete.
709
d7b486e7
RE
7102002-02-19 Richard Earnshaw <rearnsha@arm.com>
711
712 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
713 Initialize CALL_DUMMY_LENGTH.
714
41d39a95
RE
7152002-02-19 Richard Earnshaw <rearnsha@arm.com>
716
717 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
718 function.
719 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 720 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
721 defines one thing and that is incorrect for this port.
722 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
723
e1195560
PM
7242002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
725
726 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
727
c1748f97
PM
7282002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
729
730 * win32-nat.c (display_selector): New function. Displays information
731 about the information returned by GetThreadSelectorEntry API function.
732 (display_selectors): New function. Displays the infomation of
733 the selector given as argument, or of CS, DS ans FS selectors
734 if no argument is given.
735 ( _initialize_inftarg): Add "w32" as info prefix command.
736 Add "info w32 selector" as command calling display_selectors.
737
e41e6bbf
PM
7382002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
739
740 * i386-tdep.c (get_longjmp_target): Fix compilation failure
741 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
742 if not defined.
743
0d3a9f48
RE
7442002-02-18 Richard Earnshaw <rearnsha@arm.com>
745
746 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
747
3fb4b924
RE
7482002-02-18 Richard Earnshaw <rearnsha@arm.com>
749
750 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
751 (arm_fix_call_dummy): Call it.
752 (arm_call_dummy_breakpoint_offset): Delete.
753 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
754 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
755
7f55af32
AC
7562002-02-18 Andrew Cagney <ac131313@redhat.com>
757
758 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
759 Default to func_frame_chain_valid.
760 * gdbarch.h, gdbarch.c: Re-generate.
761 * frame.h (FRAME_CHAIN_VALID): Delete definition.
762
05f13b9c
EZ
7632002-02-18 Elena Zannoni <ezannoni@redhat.com>
764
765 * ppc-linux-nat.c: Update copyright.
766 (fetch_register, store_register): Add tid parameter, don't compute
767 tid here.
768 (fetch_ppc_registers, store_ppc_registers): Add tid
769 parameter. Pass it along to callees.
770 (fetch_inferior_registers, store_inferior_registers): Compute tid
771 here, and pass it to calleed functions.
772 (fill_gregset, supply_fpregset): Clean up formatting.
773
d7afb4c9
RE
7742002-02-18 Richard Earnshaw <rearnsha@arm.com>
775
776 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
777 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
778
9df628e0
RE
7792002-02-18 Richard Earnshaw <rearnsha@arm.com>
780
781 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
782 * gdbarch.c gdbarch.h: Regenerate.
783 * breakpoint.c (create_longjmp_breakpoint): Always compile this
784 function.
785 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
786 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
787 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
788
789 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
790 * arm-tdep.c (arm_get_longjmp_target): New function.
791 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
792 this to a positive value register arm_get_longjmp_target as the
793 longjmp handler.
794 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
795 (arm_linux_init_abi): Set up longjmp description in tdep.
796 * armnbsd-nat.c (get_longjmp_target): Delete.
797 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
798 description in tdep.
799 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
800 (get_longjmp_target): Delete declaration.
801 (GET_LONGJMP_TARGET): Delete.
802 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
803 (GET_LONGJMP_TARGET): Delete.
804
57bc8964
KB
8052002-02-17 Kevin Buettner <kevinb@redhat.com>
806
807 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
808 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
809 of ``current_gdbarch''.
810
83d31a92
TT
8112002-02-17 Tom Tromey <tromey@redhat.com>
812
813 * cli/cli-cmds.c (compare_strings): New function.
814 (complete_command): Only print each unique item once.
815 * completer.h (complete_line): Declare.
816 * completer.c (complete_line): New function.
817 (line_completion_function): Use it.
818
17ef5d92
AC
8192002-02-16 Andrew Cagney <ac131313@redhat.com>
820
821 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
822 * gdbarch.h, gdbarch.c: Re-generate.
823
491b8946
DJ
8242002-02-16 Daniel Jacobowitz <drow@mvista.com>
825
826 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
827
8282002-02-16 Daniel Jacobowitz <drow@mvista.com>
829
830 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
831 * valops.c (value_arg_coerce): Don't take the address of a reference
832 to convert an argument to a reference.
833
dfe7f3ac
CF
8342002-02-15 Christopher Faylor <cgf@redhat.com>
835
836 * win32-nat.c (get_image_name): New function.
837 (handle_load_dll): Use get_image_name function.
838 (get_child_debug_event): Avoid registering debug events until possibly
839 execed process is started.
840 (child_create_inferior): Allow invocation via shell so that command
841 line redirection, etc. works ok.
842 (_initialize_inftarg): Add new command: "set shell" to control whether
843 a shell is used to start a process.
844
1d33e73a
DJ
8452002-02-15 Daniel Jacobowitz <drow@mvista.com>
846
847 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
848 instead of find_register_by_number.
849 (cannot_store_register): Likewise.
850
48cd0caa
PM
8512002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
852
aaa38bb5 853 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
854 fprintf_unfiltered (gdb_stderr, ...).
855
8656e7d8
DJ
8562002-02-15 Daniel Jacobowitz <drow@mvista.com>
857
858 * gdbserver/gdbserver.1: Document --attach.
859
66e810cd
RE
8602002-02-15 Richard Earnshaw <rearnsha@arm.com>
861
862 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
863 descriptions.
864 * arm-tdep.c (arm_default_arm_le_breakpoint)
865 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
866 (arm_default_thumb_be_breakpoint): New. Initialize them from
867 traditional breakpoint defines.
868 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
869 (arm_gdbarch_init): Initialize new breakpoint variables.
870 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
871 (arm_linux_init_abi): Initialize linux-specific breakpoint.
872 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
873 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
874 code out to ...
875 (arm_netbsd_init_abi_common): ... here; new function.
876 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
877 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
878 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
879 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
880
97e03143
RE
8812002-02-15 Richard Earnshaw <rearnsha@arm.com>
882
883 * arm-tdep.h (enum arm_abi): New enum.
884 (struct gdbarch_tdep): New structure.
885 (LOWEST_PC): Provide a default.
886 (arm_gdbarch_register_os_abi): Declare new function.
887 * arm-tdep.c (arm_abi_names): New array.
888 (process_note_abi_tag_sections): New function.
889 (get_elfosabi): New function.
890 (arm_gdbarch_register_os_abi): New function.
891 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
892 support for that ABI has been built in, then call the appropriate
893 configuration routine. Use gdbarch_num_regs() to get the number
894 of registers.
895 (arm_dump_tdep): New function.
896 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
897 place-holder functions.
898 (_initialize_arm_tdep): Register them.
899 * config/arm/tm-arm.h (LOWEST_PC): Delete.
900
901 * armnbsd-tdep.c: New file.
902 * Makefile.in (armnbsd-tdep.o): Add dependencies.
903 * config/arm/nbsd.mt (TDEPFILES): Add it.
904 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
905
906 * armnbsd-nat.c: Include regcache.h.
907 * Makefile.in (armnbsd-nat.o): Update dependency list.
908
909 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
910
ad68be46
DJ
9112002-02-14 Daniel Jacobowitz <drow@mvista.com>
912
913 * gdbserver/Makefile.in: Fix typos in target rules.
914
003d6d1d
DJ
9152002-02-14 Daniel Jacobowitz <drow@mvista.com>
916
aaa38bb5 917 Fix part of PR gdb/267.
003d6d1d
DJ
918 * linespec.c (find_methods): Handle constructors specially for now.
919
6b230f1b
CV
9202002-02-14 Corinna Vinschen <vinschen@redhat.com>
921
922 * arm-tdep.c (arm_push_arguments): Eliminate special float type
923 handling.
924 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
925 standard_coerce_float_to_double().
926
1ea98d12
CF
9272002-02-14 Christopher Faylor <cgf@redhat.com>
928
929 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
930 GDBINIT_FILENAME.
931
dd47e6fd
EZ
9322002-02-14 Elena Zannoni <ezannoni@redhat.com>
933
934 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
935 find_variant_by_name, because it confuses the multiarch
936 framework. Return NULL if there isn't an architecture with the
937 user supplied name, instead of forcing a different one without
938 recording the change with the multiarch machinery.
939 (find_variant_by_name): Delete.
940
d7e39b9e
PS
9412002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
942
943 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
944 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
945
76e42a4f
MH
9462002-02-13 Martin M. Hunt <hunt@redhat.com>
947
aaa38bb5 948 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
949 print_frame_info_listing_hook, set current_source_symtab.
950
0a30fbc4
DJ
9512002-02-14 Daniel Jacobowitz <drow@mvista.com>
952
953 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
954 and remove unused $(INCLUDE_DIR).
955 Add regcache.c to OBS.
956 Add generated register protocol files to clean target.
957 Update dependencies for new objects, obsolete old target code.
958
959 * gdbserver/linux-low.c: Remove all platform-specific code to
960 new files. Remove various dead code. Update to use regcache
961 functionality.
962 * gdbserver/remote-utils.c (fromhex): Add return statement
963 to quiet warning.
964 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
965 constant.
966 (input_interrupt): Add integer parameter to match prototype
967 of a signal handler.
968 (outreg): Use register_data ().
969 (prepare_resume_reply): Use gdbserver_expedite_regs.
970 * gdbserver/server.c (main): Dynamically allocate own_buf because
971 PBUFSIZ is no longer constant. Use registers_to_string () and
972 registers_from_string ().
973 * gdbserver/server.h: No longer include "defs.h". Add prototypes
974 for error (), fatal (), and warning (). Update definition of
975 PBUFSIZ to use regcache functionality. Add include guard.
976 * gdbserver/utils.c (fatal): Add missing ``const''.
977 (warning): New function.
978
979 * regformats/regdat.sh: Include "regcache.h" in generated files.
980 Provide init_registers () function.
981 * regformats/regdef.h: Add prototype for set_register_cache ().
982 Add include guard.
983
984 * gdbserver/linux-arm-low.c: New file.
985 * gdbserver/linux-i386-low.c: New file.
986 * gdbserver/linux-ia64-low.c: New file.
987 * gdbserver/linux-m68k-low.c: New file.
988 * gdbserver/linux-mips-low.c: New file.
989 * gdbserver/linux-ppc-low.c: New file.
990 * gdbserver/linux-sh-low.c: New file.
991
992 * gdbserver/regcache.c: New file.
993 * gdbserver/regcache.h: New file.
994
995 * gdbserver/low-linux.c: Removed obsolete file.
996
4cc841d0
DJ
9972002-02-14 Daniel Jacobowitz <drow@mvista.com>
998
999 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1000 * config/i386/linux.mt: Likewise.
1001 * config/ia64/linux.mt: Likewise.
1002 * config/m68k/linux.mh: Likewise.
1003 * config/powerpc/linux.mh: Likewise.
1004 * config/mips/linux.mt: Likewise.
1005
1006 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1007
1008 * config/i386/i386lynx.mh: Mark gdbserver variables
1009 as (currently) obsolete for this target.
1010 * config/i386/nbsd.mt: Likewise.
1011 * config/i386/nbsdelf.mt: Likewise.
1012 * config/m32r/m32r.mt: Likewise.
1013 * config/m68k/m68klynx.mh: Likewise.
1014 * config/m68k/nbsd.mt: Likewise.
1015 * config/m68k/sun3os4.mh: Likewise.
1016 * config/mips/vr5000.mt: Likewise.
1017 * config/ns32k/nbsd.mt: Likewise.
1018 * config/pa/hppabsd.mh: Likewise.
1019 * config/pa/hppaosf.mh: Likewise.
1020 * config/powerpc/nbsd.mt: Likewise.
1021 * config/rs6000/rs6000lynx.mh: Likewise.
1022 * config/s390/s390.mt: Likewise.
1023 * config/s390/s390x.mt: Likewise.
1024 * config/sparc/sparclynx.mh: Likewise.
1025 * config/sparc/sun4os4.mh: Likewise.
1026 * config/i386/x86-64linux.mt: Likewise.
1027 * config/sparc/linux.mh: Likewise.
1028
a85f51e7
DJ
10292002-02-14 Daniel Jacobowitz <drow@mvista.com>
1030
1031 * configure.tgt: Configure gdbserver only for known working
1032 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1033 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1034 SUBDIRS if it is configured. Update comment for ${nativefile}.
1035 * configure: Regenerated.
1036
65554fef
MS
10372002-02-13 Michael Snyder <msnyder@redhat.com>
1038
6dbdc4a3
MS
1039 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1040 (default_gcore_mach): Just return 0, work around a problem in bfd.
1041 (default_gcore_target): OK to return NULL if exec_bfd is null.
1042 (make_mem_sec): Use a cast, avoid a warning.
1043
1044 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 1045 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
1046 sizeof (host pointer) != sizeof (target pointer)).
1047 (procfs_make_note_section): Avoid overflow in psargs string.
1048
aaa38bb5 1049 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
1050 implementation return an error.
1051
10522002-02-13 Rodney Brown <rbrown64@csc.com.au>
1053
1054 * procfs.c (procfs_make_note_section): Provide a default definition
1055 (for alpha-dec-osf4.0f). Fix typos.
1056
1e4d76e7
EZ
10572002-02-13 Elena Zannoni <ezannoni@redhat.com>
1058
1059 * linux-proc.c: Add include of regcache.h.
1060 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1061
b6d1a1d5
AC
10622002-02-13 Andrew Cagney <ac131313@redhat.com>
1063
1064 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
1065 * memattr.c (create_mem_region): Disallow useless empty region.
1066 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 1067 non-overlapping.
b6d1a1d5 1068
6c6ea35e
MC
10692002-02-13 Michael Chastain <mec@shout.net>
1070
1071 * defs.h: Kill CONST_PTR.
1072 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1073 * c-lang.c (c_builtin_types): Likewise.
1074 * ch-lang.c (ch_builtin_types): Likewise.
1075 * f-lang.c (f_builtin_types): Likewise.
1076 * language.c (unknown_builtin_types): Likewise.
1077 * m2-lang.c (m2_builtin_types): Likewise.
1078 * p-lang.c (pascal_builtin_types): Likewise.
1079 * scm-lang.c (c_builtin_types): Likewise.
1080
3e0b0f48
KS
10812002-02-13 Keith Seitz <keiths@redhat.com>
1082
1083 * arm-tdep.h (arm_get_next_pc): Add declaration.
1084
67255d04
RE
10852002-02-13 Richard Earnshaw <rearnsha@arm.com>
1086
1087 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1088 with other related struct-returning functions.
1089 (arm_extract_struct_value_address): New function.
1090 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1091 initialize float_format, double_format and long_double_format as
1092 appropriate to the endianness of the target.
1093 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1094 (arm_use_struct_convention): Delete declaration.
1095 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1096
079777f6
KS
10972002-02-13 Keith Seitz <keiths@redhat.com>
1098
1099 * defs.h (core_addr_to_string_nz): New function.
1100
34588f23
MK
11012002-02-13 Mark Kettenis <kettenis@gnu.org>
1102
1103 Apply missing bits of 2002-01-15 patch.
1104 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1105 (fill_fpregset): Use i387_fill_fsave.
1106
49b563f9
KS
11072002-02-12 Keith Seitz <keiths@redhat.com>
1108
49b563f9
KS
1109 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1110 (core_addr_to_string_nz): New function.
1111
aeb98c60
RE
11122002-02-11 Richard Earnshaw <rearnsha@arm.com>
1113
1114 * arm-linux-nat.c: Really include arm-tdep.h.
1115 * config/arm/tm-linux.h (struct type, struct value): Declare.
1116
65554fef
MS
11172002-02-11 Michael Snyder <msnyder@redhat.com>
1118
1119 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1120 (gcore section): Ifdef for Solaris and Unixware only.
1121 (procfs_do_thread_registers): Unixware needs one lwpstatus
1122 per thread (not one prstatus or pstatus).
1123 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1124 not over all gdb threads. For unixware, call elfcore_write_pstatus
1125 once before iterating over threads.
1126
34e8f22d
RE
11272002-02-11 Richard Earnshaw <rearnsha@arm.com>
1128
1129 * arm-tdep.h: New file.
1130 * arm-tdep.c: Include arm-tdep.h.
1131 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1132 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1133 (arm_print_float_info, arm_register_type, convert_to_extended)
1134 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1135 (arm_extract_return_value, arm_register_name): Make static.
1136 (arm_software_single_step): Similarly. Fix types in declaration.
1137 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1138 (arm_store_return_value, arm_store_struct_return): New functions.
1139 (arm_gdbarch_init): Register the above functions. Also register
1140 call_dummy_start_offset, sizeof_call_dummy_words,
1141 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1142 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 1143 max_register_virtual_size, register_size. Set up
34e8f22d
RE
1144 prologue_cache.saved_regs here, rather than ...
1145 (_initialize_arm_tdep): ... here.
1146 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1147 declarations.
1148 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1149 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1150 (arm_print_float_info, arm_register_type, convert_to_extended)
1151 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1152 (arm_extract_return_value, arm_register_name): Delete declarations.
1153 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1154 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1155 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1156 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1157 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1158 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1159 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1160 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1161 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1162 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1163 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1164 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1165 interface.
1166 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1167 * remote-rdi.c remote-rdp.c: Likewise.
1168 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1169 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1170 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1171 definition.
1172
1173 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1174 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1175 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1176 from non-ARM_ prefixed definitions.
1177 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1178 all uses of above.
1179 * remote-rdi.c remote-rdp.c: Likewise.
1180 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1181
148754e5
RE
11822002-02-11 Richard Earnshaw <rearnsha@arm.com>
1183
1184 * arm-tdep.c (arm_frameless_function_invocation)
1185 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1186 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1187 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1188 (arm_pop_frame, arm_get_next_pc): Make static.
1189 (arm_gdbarch_init): Register above in gdbarch structure.
1190 (arm_read_fp): Renamed from arm_target_read_fp.
1191 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1192 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1193 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1194 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1195 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1196 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1197 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
1198 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1199 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1200 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1201 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 1202
434d2d4f
DJ
12032002-02-10 Daniel Jacobowitz <drow@mvista.com>
1204
1205 * symtab.c (compare_search_syms): New function.
1206 (sort_search_symbols): New function.
1207 (search_symbols): Sort symbols after searching rather than
1208 before.
1209
55241689
AC
12102002-02-10 Andrew Cagney <ac131313@redhat.com>
1211
1212 * NEWS: Linux -> GNU/Linux.
1213
028c194b
AC
12142002-02-10 Andrew Cagney <ac131313@redhat.com>
1215
1216 * gdbarch.sh: For for level one methods, disallow a definition
1217 when partially multi-arched. Add comments explaining rationale.
1218 * gdbarch.h: Re-generate.
1219
6acf50cd
AC
12202002-02-10 Andrew Cagney <ac131313@redhat.com>
1221
1222 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1223 multi-arch partial.
aaa38bb5 1224
50248794
AC
12252002-02-10 Andrew Cagney <ac131313@redhat.com>
1226
1227 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1228 field. Use diff -u.
1229 * gdbarch.c: Re-generate.
1230
c30e0066
AC
12312002-02-10 Andrew Cagney <ac131313@redhat.com>
1232
9b56c5f3 1233 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
1234 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1235 partial.
1236
6e6d6484
AC
12372002-02-10 Andrew Cagney <ac131313@redhat.com>
1238
1239 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1240 multi-arch partial.
1241 (PUSH_ARGUMENTS): Switch to using predefault.
1242 * gdbarch.c: Regenerate.
1243
c203844d
AC
12442002-02-10 Andrew Cagney <ac131313@redhat.com>
1245
1246 * valops.c (PUSH_ARGUMENTS): Delete definition.
1247 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1248 partial. Default to default_push_arguments.
1249 * gdbarch.h, gdbarch.c: Regenerate.
1250
b5a2688f
AC
12512002-02-09 Andrew Cagney <ac131313@redhat.com>
1252
1253 * defs.h (throw_exception): Rename return_to_top_level. Update
1254 comments.
1255 * utils.c (error_stream, internal_verror, quit): Ditto.
1256 * top.c (throw_exception, catcher): Ditto.
1257 * sparclet-rom.c (sparclet_load): Ditto.
1258 * remote.c (interrupt_query, minitelnet): Ditto.
1259 * remote-sds.c (interrupt_query): Ditto.
1260 * remote-mips.c (mips_error, mips_kill): Ditto.
1261 * ocd.c (interrupt_query): Ditto.
1262 * monitor.c (monitor_interrupt_query): Ditto.
1263 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1264 * target.h: Update comment.
aaa38bb5 1265
b5a2688f 1266 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 1267
2fa5c1e0
AC
12682002-02-09 Andrew Cagney <ac131313@redhat.com>
1269
1270 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1271 default_double_format.
1272 * gdbarch.h, gdbarch.c: Re-generate.
1273 * findvar.c (floatformat_unknown): Delete variable definition.
1274 * doublest.h (floatformat_unknown): Delete variable declaration.
1275
da966255
JB
12762002-02-09 Jim Blandy <jimb@redhat.com>
1277
1278 * stabsread.c (read_type): Add code to parse Sun's syntax for
1279 prototyped function types.
1280
123a4891
AC
12812002-02-09 Andrew Cagney <ac131313@redhat.com>
1282
1283 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1284 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1285
fb39c8f3
PS
12862002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1287
1288 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1289 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1290 now _initialize_xcoffsolib gets called again and overrides the
1291 commands from solib.c in a native configuration.
1292
0b87a11d
MK
12932002-02-09 Mark Kettenis <kettenis@gnu.org>
1294
1295 * doublest.c (store_typed_floating): Don't try to return a value.
1296 Fixes PR gdb/290.
1297
bdc2fc72
JB
12982002-02-08 Jim Blandy <jimb@redhat.com>
1299
1300 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1301 is prototyped and has no arguments, print its argument list as
1302 `(void)'.
1303
da69bbcf
CD
13042002-02-08 Chris Demetriou <cgd@broadcom.com>
1305
1306 * MAINTAINERS (write-after-approval): Add myself.
1307 (paper-trail): I've escaped!
aaa38bb5 1308
b69571f5
CF
13092002-02-08 Christopher Faylor <cgf@redhat.com>
1310
1311 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1312 changes.
1313 (_initialize_check_for_gdb_ini): Ditto.
1314
f6871398
MH
13152002-02-08 Martin M. Hunt <hunt@redhat.com>
1316
1317 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1318 xaprintf -> xasprintf.
1319
4e52d31c
PM
13202002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1321
1322 * win32-nat.c: Remove use of printf and sprintf functions.
1323
39bbf761
RE
13242002-02-08 Richard Earnshaw <rearnsha@arm.com>
1325
1326 * arm-tdep.c (arm_frame_chain_valid): Make static.
1327 (arm_push_arguments): Likewise.
1328 (arm_gdbarch_init): New function.
1329 (_initialize_arm_tdep): Call it.
1330 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1331 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1332 (FRAME_CHAIN_VALID): Delete.
1333 (arm_frame_chain_valid): Delete declaration.
1334 (PUSH_ARGUMENTS): Delete.
1335 (arm_push_arguments): Delete declaration.
1336 (CALL_DUMMY_P): Delete.
1337
9c9532c9
CV
13382002-02-08 Andrew Cagney <ac131313@redhat.com>
1339 Corinna Vinschen <vinschen@redhat.com>
1340
1341 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1342 on builtin float types.
1343
4e8f7a8b
DJ
13442002-02-08 Daniel Jacobowitz <drow@mvista.com>
1345
1346 * utils.c: Include <curses.h> before "bfd.h".
1347 * tui/tui-hooks.c: Likewise.
1348 * tui/tui.c: Likewise.
1349 * tui/tuiCommand.c: Likewise.
1350 * tui/tuiData.c: Likewise.
1351 * tui/tuiDataWin.c: Likewise.
1352 * tui/tuiDisassem.c: Likewise.
1353 * tui/tuiGeneralWin.c: Likewise.
1354 * tui/tuiIO.c: Likewise.
1355 * tui/tuiLayout.c: Likewise.
1356 * tui/tuiRegs.c: Likewise.
1357 * tui/tuiSource.c: Likewise.
1358 * tui/tuiSourceWin.c: Likewise.
1359 * tui/tuiStack.c: Likewise.
1360 * tui/tuiWin.c: Likewise.
1361
cd4bffcf
EZ
13622002-02-07 Elena Zannoni <ezannoni@redhat.com>
1363
1364 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1365 to include space for pseudoregs as well. Update loops accordingly.
1366 (sh_fp_frame_init_saved_regs): Ditto.
1367 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1368
26806ce2
AC
13692002-02-07 Andrew Cagney <ac131313@redhat.com>
1370
1371 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1372 Add Richard Earnshaw to Arm maintainers.
1373
97fdab62
AC
13742002-02-07 Andrew Cagney <ac131313@redhat.com>
1375
a6b98203
AC
1376 * defs.h (warning_begin): Delete declaration.
1377
97fdab62
AC
1378 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1379 Delete macro.
1380
78b29b40
MS
13812002-02-07 Michael Snyder <msnyder@redhat.com>
1382
aaa38bb5 1383 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
1384 Logic bug, remove misplaced else.
1385
d8849953
KD
13862002-02-07 Klee Dienes <klee@apple.com>
1387
1388 * fork-inferior.c (fork_inferior): Add '!' to the list of
1389 characters that need to be quoted when building a string for the
1390 shell. Quote '!' specifically with a backslash, since CSH chokes
1391 when trying to evaluate "str!str".
aaa38bb5 1392
095778a0
NC
13932002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1394
1395 * rdi-share/host.h: Only provide a typedef for bool if it is not
1396 defined.
1397
1900040c
MS
13982002-02-04 Michael Snyder <msnyder@redhat.com>
1399
1400 * breakpoint.h (enum bptype): Add new overlay event bp type.
1401 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 1402
1900040c
MS
1403 * breakpoint.c (create_internal_breakpoint): New function.
1404 (internal_breakpoint_number): Moved into create_internal_breakpoint.
1405 (create_longjmp_breakpoint): Use create_internal_breakpoint.
1406 (create_thread_event_breakpoint): Ditto.
1407 (create_solib_event_breakpoint): Ditto.
1408 (create_overlay_event_breakpoint): New function.
1409 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
1410 (update_breakpoints_after_exec): Delete and re-initialize
1411 overlay event breakpoints after an exec. Add FIXME comment
1412 about longjmp breakpoint.
1413 (print_it_typical): Ignore overlay event breakpoints.
1414 (print_one_breakpoint): Ditto.
1415 (mention): Ditto.
1416 (bpstat_what): Do not stop for overlay event breakpoints.
1417 (delete_breakpoint): Don't delete overlay event breakpoints.
1418 (breakpoint_re_set_one): Delete the overlay event breakpoint.
1419 (breakpoint_re_set): Re-create overlay event breakpoint.
1420
1421 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
1422 (overlay_manual_command): Disable overlay breakpoints.
1423 (overlay_off_command): Disable overlay breakpoints.
1424
082fc60d
RE
14252002-02-06 Richard Earnshaw <rearnsha@arm.com>
1426
1427 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
1428 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
1429 to here from config/tm-arm.h.
1430 (coff_sym_is_thumb): Make static.
1431 (arm_elf_make_msymbol_special): New function.
1432 (arm_coff_make_msymbol_special): New function.
1433 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
1434 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
1435 (coff_sym_is_thumb): Delete declaration.
1436 (arm_elf_make_msymbol_special): Declare.
1437 (arm_coff_make_msymbol_special): Declare.
1438 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
1439 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
1440
039c5766
RE
14412002-02-06 Richard Earnshaw <rearnsha@arm.com>
1442
1443 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
1444
14452002-02-06 Richard Earnshaw <rearnsha@arm.com>
1446
1447 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
1448 * gdbarch.c gdbarch.h: Regenerate.
1449 * arch-utils.c (default_print_float_info): New function.
1450 * arch-utils.h (default_print_float_info): Prototype it.
1451 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
1452 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
1453 (PRINT_FLOAT_INFO): Document it.
1454
1455 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
1456 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
1457 (PRINT_FLOAT_INFO): Define.
1458
58fa08f0
PM
14592002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1460
aaa38bb5 1461 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
1462 Add typecast to sprintf argument to suppress a warning.
1463
7393af7c
PM
14642002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
1465
58fa08f0 1466 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
1467 to allow easier handling of pass state.
1468 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
1469 that gives exception name and address.
1470 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 1471 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 1472 exceptions added.
aaa38bb5
AJ
1473 (child_continue): Correctly report continue_status.
1474 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 1475 TARGET_SIGNAL_0 (new default value).
aaa38bb5 1476 (child_resume): consider sig argument passed to decide if
7393af7c
PM
1477 the exception should be passed to debuggee or not.
1478
6af4589c
MS
14792002-02-05 Michael Snyder <msnyder@redhat.com>
1480
1481 * regcache.c (fetch_register): Call target_fetch_register
1482 only if we don't call FETCH_PSEUDO_REGISTER.
1483 (store_register): Call target_store_register only if we
1484 don't call STORE_PSEUDO_REGISTER.
1485
a2cf933a
EZ
14862002-02-05 Elena Zannoni <ezannoni@redhat.com>
1487
1488 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
1489 ELF_MAKE_MSYMBOL_SPECIAL.
1490 * gdbarch.c, gdbarch.h: Regenerate.
1491 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 1492 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
1493 * elfread.c (elf_symtab_read): Compile use of
1494 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
1495 multiarched.
1496 * coffread.c (coff_symtab_read): Ditto, for
1497 COFF_MAKE_MSYMBOL_SPECIAL.
1498
6bb7be43
JB
14992002-02-05 Jim Blandy <jimb@redhat.com>
1500
1501 * solib-svr4.c (svr4_truncate_ptr): New function.
1502 (svr4_relocate_section_addresses): Do the address arithmetic with
1503 the appropriate truncation for target addresses, even when
1504 CORE_ADDR is larger than a target address.
1505
e18651ec
DJ
15062002-02-05 Daniel Jacobowitz <drow@mvista.com>
1507
1508 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
1509 to (int *).
1510
6b2725be
DJ
15112002-02-05 Daniel Jacobowitz <drow@mvista.com>
1512
1513 * gdbserver/linux-low.c (kill_inferior): Remove commented out
1514 code.
1515
fca9e603
DJ
15162002-02-05 Daniel Jacobowitz <drow@mvista.com>
1517
1518 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
1519
6c537a52
DJ
15202002-02-05 Daniel Jacobowitz <drow@mvista.com>
1521
1522 * gdbserver/linux-low.c: Remove unused include files.
1523
d844cde6
DJ
15242002-02-05 Daniel Jacobowitz <drow@mvista.com>
1525
1526 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
1527 (read_inferior_memory): Use it.
1528 (write_inferior_memory): Likewise.
1529
d07c63e7
DJ
15302002-02-05 Daniel Jacobowitz <drow@mvista.com>
1531
1532 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
1533 grubbing through sys_errlist.
1534
da6d8c04
DJ
15352002-02-05 Daniel Jacobowitz <drow@mvista.com>
1536
1537 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
1538
5b421780
PM
15392002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1540 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
1541
9f60d481
AC
15422002-02-04 Andrew Cagney <ac131313@redhat.com>
1543
1544 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
1545 (do_sfunc, set_cmd_sfunc): New functions.
1546
1547 * command.h (struct cmd_list_element): Add field func.
1548 * cli/cli-decode.h (struct cmd_list_element): Ditto.
1549 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
1550 * cli/cli-decode.h: Ditto.
1551
1552 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
1553 (help_all, help_cmd_list): Ditto.
1554 (find_cmd, complete_on_cmdlist): Ditto.
1555 * top.c (execute_command): Ditto.
1556
1557 * cli/cli-setshow.c (do_setshow_command): Call func instead of
1558 function.sfunc.
1559
1560 * infcmd.c (notice_args_read): Fix function signature.
1561
1562 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
1563 * cli/cli-decode.c (add_set_cmd): Ditto.
1564 * utils.c (initialize_utils): Ditto.
1565 * maint.c (_initialize_maint_cmds): Ditto.
1566 * infrun.c (_initialize_infrun): Ditto.
1567 * demangle.c (_initialize_demangler): Ditto.
1568 * remote.c (add_packet_config_cmd): Ditto.
1569 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1570 * cris-tdep.c (_initialize_cris_tdep): Ditto.
1571 * proc-api.c (_initialize_proc_api): Ditto.
1572 * kod.c (_initialize_kod): Ditto.
1573 * valprint.c (_initialize_valprint): Ditto.
1574 * top.c (init_main): Ditto.
1575 * infcmd.c (_initialize_infcmd): Ditto.
1576 * corefile.c (_initialize_core): Ditto.
1577 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1578 * arch-utils.c (initialize_current_architecture): Ditto.
1579 (_initialize_gdbarch_utils): Ditto.
1580 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1581
1582 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
1583 * wince.c (_initialize_inftarg): Ditto.
1584 * symfile.c (_initialize_symfile): Ditto.
1585 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1586 * language.c (_initialize_language): Ditto.
1587 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1588
f9ba0717
MS
15892002-02-04 Michael Snyder <msnyder@redhat.com>
1590
1591 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
1592
0c74b2a7
DJ
15932002-02-04 Daniel Jacobowitz <drow@mvista.com>
1594
1595 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
1596 Add rules for building the register data files.
1597
c638789f
DJ
15982002-02-04 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * regformats/regdat.sh: Add braces to the definition of
1601 expedite_regs_${arch}.
1602
db253027
DJ
16032002-02-04 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * regformats/regdef.h (struct reg): Add comment describing the
1606 requirements for offset and size fields.
1607
206be19c
AS
16082002-02-04 Andreas Schwab <schwab@suse.de>
1609
1610 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
1611 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
1612
181c1381
RE
16132002-02-04 Richard Earnshaw <rearnsha@arm.com>
1614
1615 * gdbarch.sh (copyright): Update years in generated header.
1616 (SMASH_TEXT_ADDRESS): Add rule.
db253027 1617 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
1618 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
1619 * dbxread.c: Likewise.
1620 * dwarfread.c: Likewise.
1621 * elfread.c: Likewise.
1622 * somread.c: Likewise.
1623
1624 * arm-tdep.c (arm_smash_text_address): New function.
1625 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
1626
fa4ba8da
PM
16272002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1628
1629 Add support for hardware watchpoints on win32 native.
aaa38bb5 1630 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 1631 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 1632 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
1633 of debug registers.
1634 (debug_registers_changed): New variable. Reflects when debug registers
1635 are changed and need to be written to inferior.
aaa38bb5 1636 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
1637 was set, used when new threads are created.
1638 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
1639 i386-nat code.
1640 (thread_rec): Set dr array if id is the thread of current_event .
1641 (child_continue, child_resume): Change the debug registers for all
1642 threads if debug_registers_changed.
1643 (child_add_thread): Change the debug registers if debug_registers_used.
1644 * config/i386/cygwin.mh: Add use of i386-nat.o file.
1645 Link nm.h to new nm-cygwin.h file.
1646 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
1647 of hardware registers.
1648
a73c86fb
AC
16492002-02-03 Andrew Cagney <ac131313@redhat.com>
1650
1651 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
1652 Restore behavour broken by 2002-01-20 Andrew Cagney
1653 <ac131313@redhat.com> IEEE_FLOAT removal.
1654
acf5ed49
DJ
16552002-02-03 Daniel Jacobowitz <drow@mvista.com>
1656
1657 * c-valprint.c (c_val_print): Pass a proper valaddr to
1658 cp_print_class_method.
1659 * valops.c (search_struct_method): If there is only one method
1660 and args is NULL, return that method.
1661
493d28d5
DJ
16622002-02-03 Daniel Jacobowitz <drow@mvista.com>
1663
1664 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1665 accessing tag_name directly.
1666
7495dfdb
DJ
16672002-02-03 Daniel Jacobowitz <drow@mvista.com>
1668
1669 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1670 of accessing tag_name directly.
1671
dd6bda65
DJ
16722002-02-03 Daniel Jacobowitz <drow@mvista.com>
1673
1674 PR gdb/280
1675 * gdbtypes.c (replace_type): New function.
1676 * gdbtypes.h (replace_type): Add prototype.
1677 * stabsread.c (read_type): Use replace_type.
1678
88fe217c
RE
16792002-02-03 Richard Earnshaw <rearnsha@arm.com>
1680
1681 * Makefile.in (memattr.o): Add missing dependencies rule.
1682
e5d66720
PS
16832002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1684
1685 * breakpoint.c (break_at_finish_command): Really export.
1686 (break_at_finish_at_depth_command): Ditto.
1687 (tbreak_at_finish_command): Ditto.
1688 * hppa-tdep.c: Include completer.h.
1689 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1690 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1691
fffee0be
AC
16922002-02-01 Andrew Cagney <ac131313@redhat.com>
1693
1694 * utils.c (do_write): New function.
1695 (error_stream): Rewrite combining the code from error_begin and
1696 verror.
1697 (verror): Rewrite using error_stream.
1698 (error_begin): Delete function.
1699
255e7dbf
AC
17002002-02-01 Andrew Cagney <ac131313@redhat.com>
1701
1702 * utils.c (error_begin): Make static.
1703 * defs.h (error_begin): Delete declaration.
1704
1705 * linespec.c (cplusplus_error): Replace cplusplus_hint.
1706 (decode_line_1): Use cplusplus_error instead of error_begin,
1707 cplusplus_hint and return_to_top_level.
1708 * coffread.c (coff_symfile_read): Use error instead of error_begin
1709 and return_to_top_level.
1710 * infrun.c (default_skip_permanent_breakpoint): Ditto.
1711
ddfe3c15
AC
17122002-02-01 Andrew Cagney <ac131313@redhat.com>
1713
1714 * language.h (type_error, range_error): Make string parameter
1715 constant.
1716 * language.c (warning_pre_print): Delete extern declaration.
1717 * dwarfread.c (warning_pre_print): Ditto.
1718 * language.c (type_error, range_error): Rewrite to use verror and
1719 vwarning instead of warning_begin.
1720
03ac34d5
MS
17212002-02-01 Michael Snyder <msnyder@redhat.com>
1722
261c4ca2
MS
1723 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1724 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 1725
e00d1dc8
AC
17262002-02-01 Andrew Cagney <ac131313@redhat.com>
1727
1728 * command.h (NO_FUNCTION): Delete macro.
1729 * cli/cli-decode.h (NO_FUNCTION): Ditto.
1730 * top.c (execute_command): Replace NO_FUNCTION with NULL.
1731 * tracepoint.c (_initialize_tracepoint): Ditto.
1732 * cli/cli-decode.c (add_set_cmd): Ditto.
1733 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 1734
76b79d6e
DJ
17352002-02-01 Daniel Jacobowitz <drow@mvista.com>
1736
1737 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1738 Update ``this'' pointer when calling virtual functions.
1739
799f9e91
MS
17402002-02-01 Michael Snyder <msnyder@redhat.com>
1741
c7bd442c 1742 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
1743 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1744
3cf384d4
DJ
17452002-02-01 Daniel Jacobowitz <drow@mvista.com>
1746
1747 * regformats/reg-arm.dat: New file.
1748 * regformats/reg-i386.dat: New file.
1749 * regformats/reg-ia64.dat: New file.
1750 * regformats/reg-m68k.dat: New file.
1751 * regformats/reg-mips.dat: New file.
1752 * regformats/reg-ppc.dat: New file.
1753 * regformats/reg-sh.dat: New file.
1754 * regformats/regdef.h: New file.
1755 * regformats/regdat.sh: New file.
1756
0defa245
RE
17572002-02-01 Richard Earnshaw <reanrsha@arm.com>
1758
1759 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1760 (arm_frame_args_address, arm_frame_locals_address): New functions.
1761 (arm_frame_num_args): New function.
1762 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1763 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1764 (FRMA_NUM_ARGS): Call arm_frame_num_args.
1765
405f26e6
MS
17662002-01-31 Michael Snyder <msnyder@redhat.com>
1767
502fd408
MS
1768 * breakpoint.c (break_at_finish_command): Export.
1769 (break_at_finish_at_depth_command): Export.
1770 (tbreak_at_finish_command): Export.
1771 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1772 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
1773 "tbreak" commands, which are HPPA specific.
1774
7d35e135
MS
1775 * printcmd.c (disassemble_command): Remove an ancient
1776 artifact of an old merge.
1777
aaa38bb5 1778 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
1779 Define enum constant values for overlay mode.
1780 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
1781 (overlay_is_mapped, overlay_auto_command,
1782 overlay_manual_command): Ditto.
d874f1e2 1783
aaa38bb5
AJ
1784 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1785 breakpoint_here_p, breakpoint_inserted_here_p,
1786 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
1787 describe_other_breakpoints, check_duplicates, clear_command):
1788 Coding standard fixes.
1789
8add0441 1790 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 1791 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
1792 code: check bfd SEC_READONLY flag for section.
1793
e351066e
AC
17942002-01-31 Andrew Cagney <ac131313@redhat.com>
1795
7d35e135 1796 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 1797
8a48e967
DJ
17982002-01-30 Daniel Jacobowitz <drow@mvista.com>
1799
1800 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
1801 data symbols, since we search based on textlow and texthigh.
1802 (find_pc_sect_symtab): Likewise.
1803
f5a96129
AC
18042002-01-30 Andrew Cagney <ac131313@redhat.com>
1805
1806 * defs.h (vwarning): Declare.
f5a96129
AC
1807 * utils.c (vwarning): New function.
1808 (warning): Call vwarning.
1809 (warning_begin): Delete function.
1810
1811 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
1812 the warning message.
1813 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
1814 warning_begin.
1815
cefd4ef5
MS
18162002-01-30 Michael Snyder <msnyder@redhat.com>
1817
1a703748
MS
1818 * NEWS: Mention "set trust-readonly-sections" command.
1819 Mention generate-core-file command.
cefd4ef5 1820
3a11626d
MS
18212002-01-15 Michael Snyder <msnyder@redhat.com>
1822
1823 * target.c: New command, "set trust-readonly-sections on".
1824 (do_xfer_memory): Honor the suggestion to trust readonly sections
1825 by reading them from the object file instead of from the target.
1826 (initialize_targets): Register command "set trust-readonly-sections".
1827
d1c7e53b
AC
18282002-01-29 Andrew Cagney <ac131313@redhat.com>
1829
1830 * parse.c (target_map_name_to_register): Simplify, search regs and
1831 pseudo-regs using a single loop.
1832
e2c9a72c
AC
18332002-01-30 Andrew Cagney <ac131313@redhat.com>
1834
1835 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
1836
69824b4e
MK
18372002-01-15 Rodney Brown <rbrown64@csc.com.au>
1838
1839 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
1840 * config/i386/i386v42mp.mh: Add i387-nat.o .
1841 * i386v4-nat.c: Include i387-nat.h.
1842 (supply_fpregset): Use i387_supply_fsave.
1843 (fill_fpregset): Use i387_fill_fsave.
1844
6eb69eab
RE
18452002-01-30 Richard Earnshaw <rearnsha@arm.com>
1846
1847 * arm-tdep.c (arm_call_dummy_words): Define.
1848 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
1849 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
1850 (CALL_DUMMY_WORDS): Define.
1851 (arm_call_dummy_words): Declare.
1852 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
1853 (arm_linux_call_dummy_words): Declare.
1854
9852326a
AS
18552002-01-30 Andreas Schwab <schwab@suse.de>
1856
1857 * m68klinux-nat.c: Fix last change to use regcache_collect
1858 instead of referencing registers[] directly.
1859
977a3030
AC
18602002-01-29 Andrew Cagney <ac131313@redhat.com>
1861
1862 * parse.c (target_map_name_to_register): Delete code wrapped in
1863 #ifdef REGISTER_NAME_ALIAS_HOOK.
1864
2076c72b
MS
18652002-01-28 Michael Snyder <msnyder@redhat.com>
1866
1867 * regcache.c (legacy_read_register_gen): Need to be able to
1868 read pseudo-register as well as real register.
1869 (legacy_write_register_gen): Ditto.
1870
8fcc723b
AC
18712002-01-28 Andrew Cagney <ac131313@redhat.com>
1872
1873 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1874 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
1875 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
1876 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
1877 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
1878 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
1879 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
1880 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
1881 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
1882 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
1883 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
1884 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
1885 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
1886 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
1887 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
1888 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
1889 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
1890 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
1891 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
1892 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
1893
afe64c1a
AC
18942002-01-28 Andrew Cagney <ac131313@redhat.com>
1895
1896 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
1897 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
1898 (initialize_current_architecture): Update target_byte_order using
1899 information from BFD.
aaa38bb5 1900 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
1901 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
1902
75bc7ddf
AC
19032002-01-28 Andrew Cagney <ac131313@redhat.com>
1904
1905 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
1906 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
1907
1908 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
1909 #ifdef INVALID_FLOAT.
1910 * infcmd.c (do_registers_info): Ditto.
1911 * values.c (unpack_double): Ditto. Add comment.
1912
1913 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
1914 already commented out.
1915
0280a90a
AS
19162002-01-26 Andreas Schwab <schwab@suse.de>
1917
1918 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1919 * m68klinux-nat.c: Update ptrace interface for fetching/storing
1920 registers and add support for PTRACE_GETREGS.
1921
7072a954
AC
19222002-01-24 Andrew Cagney <ac131313@redhat.com>
1923
1924 GDB 5.1.1 released from 5.1 branch.
1925 * NEWS: Add 5.1.1 news.
1926 * README: Sync with 5.1 branch.
1927
86f902e0
FF
19282002-01-23 Fred Fish <fnf@redhat.com>
1929
1930 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
1931 stabstring on initial malloc. Reallocing will copy it for us,
1932 if necessary.
1933
8af51c36
EZ
19342002-01-23 Elena Zannoni <ezannoni@redhat.com>
1935
aaa38bb5 1936 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
1937 (HFILES_NO_SRCDIR): Remove hpread.h.
1938 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
1939 (hpread.o): Update dependencies.
1940 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
1941
1942 * hp-psymtab-read.c: Remove file.
1943 * hp-symtab-read.c: Remove file.
1944 * hpread.h: Remove file.
1945
1946 * hpread.c: Merge all contents of hp-psymtab-read.c,
1947 hp-symtab-read.c and hpread.h into this file, as it was prior to
1948 January 1999.
1949
1950 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 1951 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
1952 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
1953 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
1954
dc5cfeb6
EZ
19552002-01-23 Elena Zannoni <ezannoni@redhat.com>
1956
1957 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
1958 fill_gregset): Call gdbarch_tdep() just once, assign result to
1959 variable and use that, instead of calling the function several
1960 times.
1961
ea87b71b
AO
19622002-01-24 Alexandre Oliva <aoliva@redhat.com>
1963
1964 * configure.host: Accept sparcv9 as alias for sparc64.
1965 * configure.tgt: Likewise.
1966
13fc0c2f
KB
19672002-01-22 Kevin Buettner <kevinb@redhat.com>
1968
1969 * solib-aix5.c (build_so_list_from_mapfile)
1970 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
1971 arguments is not reversed.
1972 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
1973 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 1974
7bd872fe
EZ
19752002-01-22 Elena Zannoni <ezannoni@redhat.com>
1976
1977 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
1978 modified version of obsolete sh_fetch_pseudo_register.
1979 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
1980 (sh4_register_read): New function.
1981 (sh_pseudo_register_write): New function. Renamed and modified
1982 version of obsolete sh_store_pseudo_register.
1983 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
1984 (sh4_register_write): New function.
1985 (sh_gdbarch_init): Remove setting of gdbarch function
1986 fetch_pseudo_register and store_pseudo_register. Remove setting of
1987 register_convert_to_raw, register_convert_to_virtual,
1988 register_convertible.
1989 (sh_sh4_register_convertible): Delete. No longer needed. All is
1990 taken care by architecture specific functions
1991 register_read/register_write.
1992 (sh_sh4_register_convert_to_virtual): Make static.
1993 (sh_sh4_register_convert_to_raw): Ditto.
1994
069e84fd
AC
19952002-01-22 Andrew Cagney <ac131313@redhat.com>
1996
1997 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
1998 (floatformat_is_nan, floatformat_mantissa): Ditto.
1999
2000 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2001 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2002 builtin_type_ieee_double_little,
2003 builtin_type_ieee_double_littlebyte_bigword,
2004 builtin_type_m68881_ext, builtin_type_i960_ext,
2005 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2006 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2007 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2008 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2009
211a4f69
CV
20102002-01-22 Corinna Vinschen <vinschen@redhat.com>
2011
2012 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2013 parameter. Set frameless flag if it exists and depended of
2014 whether the scanned function is frameless or not.
2015 (xstormy16_skip_prologue): If function is frameless, return
2016 result of xstormy16_scan_prologue().
2017 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2018 call.
2019
f81353e4
EZ
20202002-01-21 Elena Zannoni <ezannoni@redhat.com>
2021
2022 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2023 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2024 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2025 sh_sh4_register_byte, sh_sh4_register_raw_size,
2026 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2027 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2028 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2029 sh_store_pseudo_register, sh_do_pseudo_register): Call
2030 gdbarch_tdep() just once, assign result to variable and use that,
2031 instead of calling the function several times.
2032
63c73a17
MK
20332002-01-20 Mark Kettenis <kettenis@gnu.org>
2034
2035 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2036 macros instead of LAST_FPU_CTRL_REGNUM.
2037 (store_register): Likewise.
2038
39ad761d
JB
20392002-01-21 Jim Blandy <jimb@redhat.com>
2040
2041 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2042 is up-to-date before running the program, not just when a program
2043 exits.
2044
3d74b771
FF
20452002-01-21 Fred Fish <fnf@redhat.com>
2046
2047 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2048 when we have found all instructions we are looking for.
2049
966fbf70
RE
20502002-01-21 Richard Earnshaw <rearnsha@arm.com>
2051
2052 * arm-tdep.c (arm_register_name): New function.
2053 (arm_registers_names): Make static.
2054 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2055 (arm_register_name): Declare.
2056 (REGISTER_NAME): Use it.
2057
c3b4394c
RE
20582002-01-21 Richard Earnshaw <rearnsha@arm.com>
2059 Kevin Buettner <kevinb@redhat.com>
2060
2061 Convert arm targets to new FRAME interface.
2062 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2063 (arm_frame_find_save_regs): Delete.
2064 (arm_frame_init_saved_regs): New.
2065 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2066 Allocate extra_info as required. Convert all uses of fsr.regs
2067 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2068 to use extra_info.
2069 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2070 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2071 (check_prologue_cache, save_prologue_cache): Likewise.
2072 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2073 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2074 (FRAME_FIND_SAVED_REGS): Delete.
2075 (arm_frame_find_saved_regs): Delete prototype.
2076 (arm_frame_init_saved_regs): New prototype.
2077 (FRAME_INIT_SAVED_REGS): Define.
2078
61d99182
AC
20792002-01-20 Andrew Cagney <ac131313@redhat.com>
2080
2081 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2082
6aaea291
AC
20832002-01-20 Andrew Cagney <ac131313@redhat.com>
2084
2085 From Jeff Law <law@redhat.com>:
2086 * infttrace.c: Include <sys/pstat.h>.
2087 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2088 exec file if the ttrace equivalent fails.
2089
15f698d2
AC
20902002-01-20 Andrew Cagney <ac131313@redhat.com>
2091
2092 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2093 (closeLogFile): Ditto.
2094
f86ddd7c
MC
20952002-01-20 Michael Chastain <mec@shout.net>
2096
2097 * top.c (print_gdb_version): Bump copyright year to 2002.
2098
904507ce
AC
20992002-01-20 Andrew Cagney <ac131313@redhat.com>
2100
2101 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2102 Zannoni and Eli Zaretskii.
2103
d7f0b9ce
DJ
21042002-01-20 Daniel Jacobowitz <drow@mvista.com>
2105
2106 * buildsym.c: Update copyright years.
2107 * c-typeprint.c: Likewise.
2108 * dwarf2read.c: Likewise.
2109 * f-typeprint.c: Likewise.
2110 * gdbtypes.c: Likewise.
2111 * gdbtypes.h: Likewise.
2112 * hp-symtab-read.c: Likewise.
2113 * hpread.c: Likewise.
2114 * mdebugread.c: Likewise.
2115 * p-typeprint.c: Likewise.
2116
3fd3d7d2
AC
21172002-01-20 Andrew Cagney <ac131313@redhat.com>
2118
2119 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2120 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2121 byte-order selectable.
2122 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2123 * arch-utils.c: Ditto.
2124 (set_endian): Ditto.
2125 (set_endian_from_file): Ditto.
2126 * gdbserver/low-sim.c (create_inferior): Ditto.
2127 * gdbarch.sh: Ditto.
2128 * gdbarch.h: Re-generate.
aaa38bb5
AJ
2129 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2130 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2131 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2132 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2133 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2134 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2135 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
2136 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2137 macro definition.
2138 * config/mips/tm-wince.h: Remove #undef of macro
2139 TARGET_BYTE_ORDER_SELECTABLE.
2140 * config/sh/tm-wince.h: Ditto.
2141
b02dede2
DJ
21422002-01-20 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2145 member function fields. Add accessor macro
2146 TYPE_FN_FIELD_ARTIFICIAL.
2147 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2148 * c-typeprint.c (c_type_print_base): Skip artificial member
2149 functions.
2150
c3643761
DJ
21512002-01-20 Daniel Jacobowitz <drow@mvista.com>
2152
2153 * f-typeprint.c: Delete unused function f_type_print_args.
2154 * p-typeprint.c: Delete unused function pascal_type_print_args.
2155
8176bb6d
DJ
21562002-01-20 Daniel Jacobowitz <drow@mvista.com>
2157
2158 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2159 comment. Add ``artificial'' to ``union field_location''.
2160
2161 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2162
2163 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2164 * mdebugread.c (parse_symbol): Likewise.
2165 * stabsread.c (define_symbol): Likewise.
2166 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2167 initializing TYPE_FIELD_BITPOS to n (obsolete).
2168 (hpread_doc_function_type): Likewise.
2169 * hpread.c (hpread_function_type): Likewise.
2170
7fd60527
AC
21712002-01-20 Andrew Cagney <ac131313@redhat.com>
2172
2173 * configure.in (host_makefile_frag): Only require a host makefile
2174 fragment when a native build.
2175 * configure: Re-generate.
2176
c2f05ac9
AC
21772002-01-20 Andrew Cagney <ac131313@redhat.com>
2178
2179 * doublest.h (floatformat_from_type): Declare.
2180 * doublest.c (floatformat_from_type): New function.
2181 (convert_typed_floating): Use.
2182
2183 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2184 call to function floatformat_from_type.
2185
2186 * gdbarch.sh (IEEE_FLOAT): Delete.
2187 * gdbarch.h, gdbarch.c: Re-generate.
2188 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2189 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2190 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2191 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2192 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2193 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2194 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2195 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2196 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2197 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2198 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
2199 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2200
2201 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2202 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2203 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2204 * sh-tdep.c (sh_gdbarch_init): Ditto.
2205 * mips-tdep.c (mips_gdbarch_init): Ditto.
2206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2207 * cris-tdep.c (cris_gdbarch_init): Ditto.
2208
abf22e64
AJ
22092002-01-20 Jiri Smid <smid@suse.cz>
2210
2211 * configure.host, configure.tgt: Support x86-64.
2212 * NEWS: Note new target x86-64.
2213
b7c4cbf8
AJ
2214 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2215 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2216 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2217 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2218 x86-64-linux-nat.o): Fix dependencies.
2219
82600034
AC
22202002-01-19 Andrew Cagney <ac131313@redhat.com>
2221
2222 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2223 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2224 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2225 * config/sparc/xm-sun4os4.h: Delete file.
2226 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 2227
bbe5c628
AC
22282002-01-19 Andrew Cagney <ac131313@redhat.com>
2229
2230 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2231 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2232 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2233 * config/i386/i386lynx.mh (XM_FILE): Delete.
2234 * config/rs6000/xm-rs6000ly.h: Delete file.
2235 * config/sparc/xm-sparclynx.h: Delete file.
2236 * config/m68k/xm-m68klynx.h: Delete file.
2237 * config/i386/xm-i386lynx.h: Delete file.
2238 * config/xm-lynx.h: Delete file.
2239 * config/djgpp/fnchange.lst: Update.
2240
f8453e34
JT
22412002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2242
2243 * alpha-tdep.c (alpha_register_byte): New function.
2244 (alpha_register_raw_size): Ditto.
2245 (alpha_register_virtual_size): Ditto.
2246 (alpha_skip_prologue_internal): Renamed from
2247 alpha_skip_prologue.
2248 (alpha_skip_prologue): New version that calls
2249 alpha_skip_prologue_internal.
2250 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2251 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2252 second argument from alpha_skip_prologue.
2253 (REGISTER_BYTE): Use alpha_register_byte.
2254 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2255 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2256 (FRAMELESS_FUNCTION_INVOCATION): Use
2257 generic_frameless_function_invocation_not.
2258 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2259 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2260
52d9e613
AC
22612002-01-19 Andrew Cagney <ac131313@redhat.com>
2262
2263 * config/mips/xm-news-mips.h: Delete file.
2264 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2265
2266 * config/m88k/xm-m88k.h: Delete file.
2267 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2268 * config/m88k/xm-delta88v4.h: Ditto.
2269 * config/m88k/xm-delta88.h: Ditto.
2270
2271 * config/alpha/xm-fbsd.h: Delete file.
2272 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2273
2274 * config/sparc/xm-sparc.h: Delete file.
2275 * Makefile.in (xm-sun4os4.h): Delete dependency.
2276 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2277 * config/sparc/xm-sun4os4.h: Ditto.
2278 * config/sparc/xm-linux.h: Ditto.
2279
2280 * config/i386/xm-windows.h: Delete file.
2281
2d1b2124
AC
22822002-01-19 Andrew Cagney <ac131313@redhat.com>
2283
2284 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2285 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2286
ee1f65f0
JT
22872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2288
2289 * alpha-tdep.c (alpha_call_dummy_words): New.
2290 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2291 (CALL_DUMMY_P): Define.
2292 (CALL_DUMMY_WORDS): Define.
2293 (SIZEOF_CALL_DUMMY_WORDS): Define.
2294
98081e55
PB
22952002-01-19 Per Bothner <per@bothner.com>
2296
2297 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2298 isn't NULL, which can happen with some gcj-3.x-produced code.
2299
0d056799
JT
23002002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2301
2302 * alpha-tdep.c (alpha_register_virtual_type): New function.
2303 (alpha_init_frame_pc_first): Ditto.
2304 (alpha_fix_call_dummy): Ditto.
2305 (alpha_store_struct_return): Ditto.
2306 (alpha_extract_struct_value_address): Ditto.
2307 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2308 alpha_register_virtual_type.
2309 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2310 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2311 alpha_extract_struct_value_address.
2312 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2313 (INIT_FRAME_PC): Use init_frame_pc_noop.
2314 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2315
4604bcad
MK
23162002-01-19 Mark Kettenis <kettenis@gnu.org>
2317
2318 * i386gnu-nat.c: Include "i386-tdep.h".
2319 (fetch_fpregs): Simplify code dealing with uninitialized floating
2320 point states such that it doesn't require FP7_REGNUM.
2321
140f9984
JT
23222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2323
abf22e64
AJ
2324 * alpha-tdep.c (frame_extra_info): New.
2325 (alpha_find_saved_regs): Make static. Use
140f9984
JT
2326 frame->extra_info.
2327 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
2328 (alpha_frame_saved_pc): Use frame->extra_info.
2329 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2330 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
2331 (init_extra_frame_info): Rename to...
2332 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 2333 (alpha_print_extra_frame_info): New function.
140f9984
JT
2334 (alpha_frame_locals_address): Ditto.
2335 (alpha_frame_args_address): Ditto.
abf22e64 2336 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
2337 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2338 alpha_frame_args_address.
abf22e64 2339 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 2340 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
2341 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2342 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
2343 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2344 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2345
d734c450
JT
23462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2347
2348 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2349 (alpha_cannot_fetch_register): Ditto.
2350 (alpha_cannot_store_register): Ditto.
2351 (alpha_register_convertible): Ditto.
2352 (alpha_use_struct_convention): Ditto.
2353 * config/alpha/tm-alpha.h: Update copyright years.
2354 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2355 (INNER_THAN): Use core_addr_lessthan.
2356 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2357 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2358 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2359 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2360 (FRAME_CHAIN): Remove unnecessary cast.
2361
b4ceaee6
AC
23622002-01-18 Andrew Cagney <ac131313@redhat.com>
2363
2364 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2365 obsolete.
2366
0a65a603
AC
23672002-01-18 Andrew Cagney <ac131313@redhat.com>
2368
2369 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
2370 * monitor.c, remote-array.c, remote-bug.c: Ditto.
2371 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2372 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2373 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2374 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2375 * x86-64-linux-nat.c: Ditto.
2376
636a6dfc
JT
23772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2378
abf22e64 2379 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
2380 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2381 (REGISTER_NAME): Define.
2382
acceddb6
JT
23832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2384
2385 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2386
ec32e4be
JT
23872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2388
2389 * alpha-tdep.c: Update copyright years.
2390 (alpha_next_pc): New function.
2391 (alpha_software_single_step): Ditto.
2392 * config/alpha/tm-alpha.h: Add prototype for
2393 alpha_software_single_step.
2394
e771a871
JT
23952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2396
2397 * alphabsd-nat.c: Update copyright years.
2398 (fill_gregset): Use regcache_collect.
2399 (fill_fpregset): Likewise.
2400 (fetch_inferior_registers): Only fetch integer registers
2401 if requested to do so.
2402 (store_inferior_registers): Only store integer registers
2403 if requested to do so.
2404
7708fa01
AC
24052002-01-17 Andrew Cagney <ac131313@redhat.com>
2406
2407 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
2408 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
2409 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
2410 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
2411 * config/alpha/fbsd.mh (XDEPFILES): Delete.
2412 * config/arm/linux.mh (XDEPFILES): Delete.
2413 * config/arm/nbsd.mh (XDEPFILES): Delete.
2414 * config/i386/i386dgux.mh (XDEPFILES): Delete.
2415 * config/i386/i386sol2.mh (XDEPFILES): Delete.
2416 * config/i386/i386m3.mh (XDEPFILES): Delete.
2417 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
2418 * config/i386/i386gnu.mh (XDEPFILES): Delete.
2419 * config/i386/fbsd.mh (XDEPFILES): Delete.
2420 * config/i386/i386bsd.mh (XDEPFILES): Delete.
2421 * config/i386/i386sco5.mh (XDEPFILES): Delete.
2422 * config/i386/i386v4.mh (XDEPFILES): Delete.
2423 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
2424 * config/i386/i386sco4.mh (XDEPFILES): Delete.
2425 * config/i386/i386aix.mh (XDEPFILES): Delete.
2426 * config/i386/go32.mh (XDEPFILES): Delete.
2427 * config/i386/cygwin.mh (XDEPFILES): Delete.
2428 * config/i386/i386lynx.mh (XDEPFILES): Delete.
2429 * config/i386/i386mach.mh (XDEPFILES): Delete.
2430 * config/i386/i386v32.mh (XDEPFILES): Delete.
2431 * config/i386/linux.mh (XDEPFILES): Delete.
2432 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
2433 * config/i386/ncr3000.mh (XDEPFILES): Delete.
2434 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
2435 * config/i386/i386sco.mh (XDEPFILES): Delete.
2436 * config/i386/i386v.mh (XDEPFILES): Delete.
2437 * config/i386/nbsd.mh (XDEPFILES): Delete.
2438 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
2439 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
2440 * config/i386/symmetry.mh (XDEPFILES): Delete.
2441 * config/i386/obsd.mh (XDEPFILES): Delete.
2442 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
2443 * config/ia64/linux.mh (XDEPFILES): Delete.
2444 * config/ia64/aix.mh (XDEPFILES): Delete.
2445 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
2446 * config/m68k/dpx2.mh (XDEPFILES): Delete.
2447 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
2448 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
2449 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
2450 * config/m68k/linux.mh (XDEPFILES): Delete.
2451 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
2452 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
2453 * config/m68k/nbsd.mh (XDEPFILES): Delete.
2454 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
2455 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
2456 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
2457 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
2458 * config/m88k/delta88.mh (XDEPFILES): Delete.
2459 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
2460 * config/m88k/m88k.mh (XDEPFILES): Delete.
2461 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
2462 * config/mips/linux.mh (XDEPFILES): Delete.
2463 * config/mips/irix6.mh (XDEPFILES): Delete.
2464 * config/mips/irix5.mh (XDEPFILES): Delete.
2465 * config/mips/irix4.mh (XDEPFILES): Delete.
2466 * config/mips/irix3.mh (XDEPFILES): Delete.
2467 * config/mips/decstation.mh (XDEPFILES): Delete.
2468 * config/mips/mipsm3.mh (XDEPFILES): Delete.
2469 (NATDEPFILES): Move core-aout.o to here.
2470 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
2471 * config/pa/hpux1020.mh (XDEPFILES): Delete.
2472 * config/pa/hppabsd.mh (XDEPFILES): Delete.
2473 * config/pa/hppahpux.mh (XDEPFILES): Delete.
2474 * config/pa/hpux11w.mh (XDEPFILES): Delete.
2475 * config/pa/hppaosf.mh (XDEPFILES): Delete.
2476 * config/pa/hpux11.mh (XDEPFILES): Delete.
2477 * config/powerpc/aix.mh (XDEPFILES): Delete.
2478 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
2479 * config/powerpc/linux.mh (XDEPFILES): Delete.
2480 * config/romp/rtbsd.mh: Rename XDEPFILES.
2481 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
2482 * config/rs6000/aix4.mh (XDEPFILES): Delete.
2483 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
2484 * config/s390/s390.mh (XDEPFILES): Delete.
2485 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
2486 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
2487 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
2488 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
2489 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
2490 * config/sparc/nbsd.mh (XDEPFILES): Delete.
2491 * config/sparc/linux.mh (XDEPFILES): Delete.
2492 * config/vax/vaxult.mh (XDEPFILES): Delete.
2493 * config/vax/vaxult2.mh (XDEPFILES): Delete.
2494 * Makefile.in (DEPFILES): Remove XDEPFILES.
2495
375fc983
AC
24962002-01-17 Andrew Cagney <ac131313@redhat.com>
2497
2498 * utils.c (internal_verror): Fix comments, default is yes not no.
2499 Update queries to match. Default to quit and dump core.
2500
8926118c
AC
25012002-01-17 Andrew Cagney <ac131313@redhat.com>
2502
2503 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
2504 copyright.
2505 * defs.h, event-top.c, gdbcmd.h: Ditto.
2506 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
2507 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
2508 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
2509 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
2510 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
2511 * mi/mi-main.c:Ditto.
2512
2513 * stack.c, symfile.c: Update copyright.
2514
45b7b345
DJ
25152002-01-17 Daniel Jacobowitz <drow@mvista.com>
2516
db728ff7
DJ
2517 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
2518 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
2519 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
2520 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 2521
db728ff7
DJ
25222002-01-17 Daniel Jacobowitz <drow@mvista.com>
2523
2524 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
2525 * gdbserver/low-lynx.c (myattach): Likewise.
2526 * gdbserver/low-nbsd.c (myattach): Likewise.
2527 * gdbserver/low-sim.c (myattach): Likewise.
2528 * gdbserver/low-sparc.c (myattach): Likewise.
2529 * gdbserver/low-sun3.c (myattach): Likewise.
2530
2531 * gdbserver/low-linux.c (myattach): New function.
45b7b345 2532
db728ff7 2533 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
2534 (main): Handle "--attach".
2535
8de3c354
AC
25362002-01-16 Andrew Cagney <ac131313@redhat.com>
2537
2538 * MAINTAINERS (language support): Daniel Jacobwitz is C++
2539 maintainer.
2540
b0129042
DJ
25412002-01-15 Daniel Jacobowitz <drow@mvista.com>
2542
2543 * c-typeprint.c (is_type_conversion_operator): Add additional
2544 check for non-conversion operators.
2545
ba8679fb 25462002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
2547
2548 * linux-proc.c: Add "info proc" command, a la procfs.c.
2549 (read_mapping): New function, abstract and re-use code.
2550 (linux_find_memory_regions): Use new func read_mapping.
2551 (linux_info_proc_cmd): New function, implement "info proc".
2552 (_initialize_linux_proc): Add new command "info proc".
2553
e4f9b4d5
MS
25542002-01-15 Michael Snyder <msnyder@redhat.com>
2555
2556 * symfile.c (generic_load): Use bfd_map_over_sections method
2557 instead of manipulating bfd structure members directly.
2558 (add_section_size_callback): New function, bfd sections callback
2559 used by generic_load.
2560 (load_sections_callback): New function, bfd sections callback
2561 used by generic_load.
2562
08cf96df
EZ
25632002-01-15 Elena Zannoni <ezannoni@redhat.com>
2564
abf22e64 2565 [Based on work by Jim Blandy]
08cf96df
EZ
2566 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
2567 (builtin_type_vec128): Export.
2568 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
2569 types.
2570 (builtin_type_vec128): New builtin type for 128 bit vector
2571 registers.
2572 (build_gdbtypes): Initialize builtin_type_v16qi and
2573 builtin_type_v8hi. Create the vec128 register builtin type
2574 structure.
2575 (build_builtin_type_vec128): New function.
abf22e64 2576 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
2577 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
2578 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
2579 AltiVec register to new builtin type.
2580
d7242108
DJ
25812001-01-15 Daniel Jacobowitz <drow@mvista.com>
2582
2583 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
2584 to make_cv_type.
2585
4ee3352d
AC
25862002-01-14 Andrew Cagney <ac131313@redhat.com>
2587
2588 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
2589 CLEAN_UP_REGISTER_VALUE.
2590 * regcache.c (supply_register): Update only call.
2591
f015b2e7
AC
25922002-01-14 Andrew Cagney <ac131313@redhat.com>
2593
2594 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2595 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2596 a29k-*-vxworks* targets as obsolete.
2597
356ae49d
MS
25982002-01-14 Michael Snyder <msnyder@redhat.com>
2599
2600 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
2601 until we can resolve portability issues.
2602 * gregset.h: Remove references to fpxregs.
2603 * gcore.c (gcore_command): Initialize note_sec to NULL.
2604
ade8f45e
AC
26052002-01-13 Andrew Cagney <ac131313@redhat.com>
2606
2607 * signals.c (target_signal_to_name): Rewrite. Only use
2608 signals[].name when in bounds and non-NULL.
abf22e64 2609
89c49e7a
AC
26102002-01-13 Andrew Cagney <ac131313@redhat.com>
2611
2612 From Petr Ledvina <ledvinap@kae.zcu.cz>:
2613 * signals.c (target_signal_to_name): Verify that SIG is within the
2614 bounds of the signals array.
2615
4daa9f9f
AC
26162002-01-13 Andrew Cagney <ac131313@redhat.com>
2617
2618 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
2619
ba4bbdcb
KS
26202002-01-13 Keith Seitz <keiths@redhat.com>
2621
2622 * stack.c (print_frame_info_base): Print the frame's pc
2623 only if when print_frame_info_listing_hook is not defined.
2624
575bbeb6
KS
26252002-01-13 Keith Seitz <keiths@redhat.com>
2626
2627 * varobj.c (varobj_set_value): Make sure that there were no
2628 errors evaluating the object before attempting to set its
2629 value.
2630 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
2631 so this offset adjustment is no longer necessary.
2632 (create_child): Don't set the error flag if the child is
2633 a CPLUS_FAKE_CHILD.
2634 (value_of_child): If value_fetch_lazy fails, return NULL
2635 so that callers will be notified that an error occurred.
2636 (c_value_of_variable): Delay check of variable's validity
2637 until later. We actually want all structs and unions to have
2638 the value "{...}".
2639 Do not return "???" for variables which could not be evaluated.
2640 This error condition must be returned to the caller so that it
2641 can get the error condition from gdb.
2642 (cplus_name_of_child): Adjust index for vptr before figuring
2643 out the name of the child.
2644 (cplus_value_of_child): If a child's (real) parent is not valid,
2645 don't even bother trying to give a value for it. Just return
2646 an error. Change all instances in this function.
2647 (cplus_type_of_child): If our parent is one of the "fake"
2648 parents, we need to get at the type of the real parent, and
2649 derive the child's true type using this information.
2650
b76898ab
AC
26512002-01-13 Andrew Cagney <ac131313@redhat.com>
2652
2653 From 2002-01-09 John Marshall <johnm@falch.net>:
2654 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
2655 sources.redhat.com, and tweak some related URLs which had
2656 suffered from linkrot.
2657
b6649e88
AC
26582002-01-13 Andrew Cagney <ac131313@redhat.com>
2659
2660 From Jeff law:
2661 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
2662 structures passed in registers.
2663
82cc5033
EZ
26642002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
2665
2666 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2667 white space which prevented compilation. Reported by DSK
2668 <dsk@student.unsw.edu.au>.
2669
ba5f2f8a
MS
26702002-01-11 Michael Snyder <msnyder@redhat.com>
2671
fbd35540
MS
2672 * symfile.c (build_section_addr_info_from_section_tab):
2673 Use bfd access method instead of manipulating bfd directly.
2674 (syms_from_objfile): Ditto.
2675 (simple_overlay_update_1): Ditto.
2676 (simple_overlay_update): Ditto.
2677 (generic_load): Ditto.
2678 (overlay_unmapped_address): FIXME comment, bfd access methods.
2679 (sections_overlap): FIXME comment, bfd access methods.
2680 (pc_in_mapped_range): FIXME comment, bfd access methods.
2681 (pc_in_unmapped_range): FIXME comment, bfd access methods.
2682 (section_is_mapped): FIXME comment, bfd access methods.
2683 (section_is_overlay): FIXME comment, bfd access methods.
2684
ba5f2f8a
MS
2685 * symfile.c (generic_load): Whitespace and long line cleanups.
2686 Remove duplicate variable, change several local variables to
2687 more appropriate data types.
2688 (print_transfer_performance): Use %lu instead of %ld for ulongs.
2689
17df2af6
AC
26902002-01-12 Andrew Cagney <ac131313@redhat.com>
2691
2692 From Peter Schauer:
2693 * language.c (longest_local_hex_string_custom): Use phex_nz to
2694 convert NUM to a hex string.
2695
ec920329
EZ
26962002-01-12 Elena Zannoni <ezannoni@redhat.com>
2697
2698 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2699 the function.
538a76d6 2700 Update Copyright year.
ec920329 2701
3abd2e01
AC
27022002-01-12 Andrew Cagney <ac131313@redhat.com>
2703
2704 * language.c (longest_raw_hex_string): Delete unused function.
2705
b21b22e0
PS
27062002-01-11 Petr Sorfa <petrs@caldera.com>
2707
2708 * MAINTAINERS (write-after-approval): Add myself.
2709 * dwarf2read.c (read_tag_string_type): Handling of
2710 DW_AT_byte_size.
2711 (read_tag_string_type): FORTRAN fix to prevent propagation of
2712 first string size.
2713 (set_cu_language): Handling of DW_LANG_Fortran95
2714
747fe712
RE
27152002-01-11 Richard Earnshaw <rearnsha@arm.com>
2716
2717 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2718 GETPID(inferior_ptid).
2719 (store_inferior_registers): Likewise.
2720
f1bea926
JM
27212002-01-10 Jason Merrill <jason@redhat.com>
2722
2723 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2724 Fix DW_OP_minus.
2725
ae940673
AC
27262002-01-10 Andrew Cagney <ac131313@redhat.com>
2727
2728 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2729 and bfd/elf32-sh-nbsd.c.
2730
00546b04
MS
27312002-01-10 Michael Snyder <msnyder@redhat.com>
2732
352ed7b4
MS
2733 * NEWS: Mention --pid and corefile/proc-id behavior change.
2734
c18be923
MS
2735 * Makefile.in: Add rules for gcore.o and linux-proc.o.
2736 * gcore.c: Include cli/cli-decode.h instead of command.h.
2737
00546b04
MS
2738 * main.c (captured_main): Add new command line option "--pid".
2739 If the second command line argument (following the symbol-file)
2740 begins with a digit, try to attach to it before trying to open
2741 it as a corefile.
2742 (print_gdb_help): Document the "--pid" argument.
2743
db60ec62
EZ
27442002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
2745
2746 * completer.c (command_completer): New function.
2747
2748 * completer.h <command_completer>: Add prototype.
2749
2750 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2751 completer for the "help" command.
2752
39c22d1a
JM
27532002-01-09 Jason Merrill <jason@redhat.com>
2754
2755 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2756
c564377f
MS
27572002-01-09 Michael Snyder <msnyder@redhat.com>
2758
975aec09
MS
2759 * i386-linux-nat.c (fill_fpxregset): Make global.
2760 (store_fpxregset): Ditto.
2761
db4a10fa
MS
2762 * gregset.h (gdb_fpxregset_t): Define.
2763 (supply_fpxregset): Prototype.
2764 (fill_fpxregset): Prototype.
2765
c564377f
MS
2766 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2767
c3d45d70
RE
27682002-01-09 Richard Earnshaw <rearnsha@arm.com>
2769
2770 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2771 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2772 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2773
fcc87af1
AC
27742002-01-09 Andrew Cagney <ac131313@redhat.com>
2775
2776 * MAINTAINERS: Update target maintainer rules so that any
2777 Maintainer can approve a tested patch for a maintenance-only
2778 target.
2779
dd96c05b
RE
27802002-01-09 Richard Earnshaw <rearnsha@arm.com>
2781
d4297db9 2782 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 2783
d4297db9 2784 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
2785 IN_SIGTRAMP.
2786
145fdc6e
MS
27872002-01-08 Michael Snyder <msnyder@redhat.com>
2788
2789 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
2790 real name of the executable, rather than the /proc name.
2791
be4d1333
MS
27922002-01-03 Michael Snyder <msnyder@redhat.com>
2793
2794 Implement a "generate-core-file" command in gdb, save target state.
2795 * gcore.c: New file. Implement new command 'generate-core-file'.
2796 Save a corefile image of the current state of the inferior.
2797 * linux-proc.c: Add linux-specific code for saving corefiles.
2798 * target.h (struct target_ops): Add new target vectors for saving
2799 corefiles; to_find_memory_regions and to_make_corefile_notes.
2800 (target_find_memory_regions): New macro.
2801 (target_make_corefile_notes): New macro.
2802 * target.c (update_current_target): Inherit new target methods.
2803 (dummy_find_memory_regions): New place-holder method.
2804 (dummy_make_corefile_notes): New place-holder method.
2805 (init_dummy_target): Initialize new dummy target vectors.
2806 * exec.c (exec_set_find_memory_regions): New function.
2807 Allow the exec_ops vector for memory regions to be taken over.
2808 (exec_make_note_section): New function, target vector method.
2809 * defs.h (exec_set_find_memory_regions): Export prototype.
2810 * procfs.c (proc_find_memory_regions): New function, corefile method.
2811 (procfs_make_note_section): New function, corefile method.
2812 (init_procfs_ops): Set new target vector pointers.
2813 (find_memory_regions_callback): New function.
2814 (procfs_do_thread_registers): New function.
2815 (procfs_corefile_thread_callback): New function.
2816 * sol-thread.c (sol_find_memory_regions): New function.
2817 (sol_make_note_section): New function.
2818 (init_sol_thread_ops): Initialize new target vectors.
2819 * inftarg.c (inftarg_set_find_memory_regions): New function.
2820 Allow to_find_memory_regions vector to be taken over.
2821 (inftarg_set_make_corefile_notes): New function.
2822 Allow to_make_corefile_notes vector to be taken over.
2823 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
2824 interface layer if not target_has_execution (may be a corefile).
2825 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
2826 * config/sparc/sun4sol2.mh: Ditto.
2827 * config/alpha/alpha-linux.mh: Ditto.
2828 * config/arm/linux.mh: Ditto.
2829 * config/i386/x86-64linux.mh: Ditto.
2830 * config/ia64/linux.mh: Ditto.
2831 * config/m68k/linux.mh: Ditto.
2832 * config/mips/linux.mh: Ditto.
2833 * config/powerpc/linux.mh: Ditto.
2834 * config/sparc/linux.mh: Ditto.
2835
c6b92abd
MS
28362002-01-07 Michael Snyder <msnyder@redhat.com>
2837
2838 * arm-linux-nat.c: Remove references to regcache.c internal data
2839 (registers[] and register_valid[]).
2840
4b09dc8c
MS
28412002-01-07 Michael Snyder <msnyder@redhat.com>
2842
abf22e64
AJ
2843 * linux-proc.c: New file. Implement child_pid_to_exec_file,
2844 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
2845 symbol file and shlibs.
2846 * Makefile.in: Add rule for linux-proc.o.
2847 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
2848 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
2849 * config/arm/linux.mh: Ditto.
2850 * config/i386/linux.mh: Ditto.
2851 * config/i386/x86-64linux.mh: Ditto.
2852 * config/ia64/linux.mh: Ditto.
2853 * config/m68k/linux.mh: Ditto.
2854 * config/mips/linux.mh: Ditto.
2855 * config/powerpc/linux.mh: Ditto.
2856 * config/sparc/linux.mh: Ditto.
2857
c25b74ac
PM
28582002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
2859
2860 * win32-nat.c: Add i386-tdep.h dependency.
2861
94cd915f
MS
28622002-01-07 Michael Snyder <msnyder@redhat.com>
2863
c7cccb76
MS
2864 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
2865 instead of bfd_get_arch_size. Don't bail out just because
2866 there's no exec_bfd.
abf22e64 2867
34c0bd93
MS
2868 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
2869 * p-valprint.c (pascal_object_print_value): Ditto.
2870 * somread.c (som_symtab_read): Ditto.
2871 * symfile.c (simple_free_overlay_region_table): Ditto.
2872 * valops.c (value_assign): Ditto.
2873
21c1c920
MS
2874 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
2875 use tilde_expand and strerror for opening save-tracepoints file.
2876
5bbd998e
MS
2877 * thread-db.c (thread_db_new_objfile): Indendation fix.
2878
94cd915f
MS
2879 * infptrace.c (GDB_MAX_ALLOCA): New define.
2880 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 2881 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
2882 can be overridden with whatever value is appropriate to the host).
2883 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
2884 alloca to allocate potentially large buffer.
2885 * rs6000-nat.c (child_xfer_memory): Ditto.
2886 * symm-nat.c (child_xfer_memory): Ditto.
2887 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
2888
494e8a93
JSC
28892002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
2890
2891 From Nick Clifton <nickc@redhat.com>
2892 * d10v-tdep.c: Set STACK_START to 0x200bffe.
2893
d0e1d48e
MS
28942002-01-07 Michael Snyder <msnyder@redhat.com>
2895
abf22e64 2896 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
2897 Don't use exec_bfd if it's NULL.
2898
290b2c7a
MK
28992002-01-06 Mark Kettenis <kettenis@gnu.org>
2900
abf22e64 2901 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 2902
aef21287
AC
29032002-01-06 Andrew Cagney <ac131313@redhat.com>
2904
2905 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
2906 * gnu-nat.c: Ditto.
2907
30efa627
AC
29082002-01-06 Andrew Cagney <ac131313@redhat.com>
2909
2910 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
2911 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
2912 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
2913 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
2914 z8k-coff have not been multi-arched. Update z8k-coff build
2915 status.
2916
9b4ff276
AC
29172002-01-06 Andrew Cagney <ac131313@redhat.com>
2918
2919 * MAINTAINERS: Mark a29k target as obsolete.
2920 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
2921 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
2922 comments.
2923 * NEWS: Note that a29k targets are obsolete.
2924 * a29k-tdep.c: Mark as obsolete.
2925 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2926 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2927 a29k-*-vxworks* targets as obsolete.
2928 * remote-adapt.c: Obsolete.
2929 * remote-eb.c: Obsolete.
2930 * remote-mm.c: Obsolete.
2931 * remote-udi.c: Obsolete.
2932 * config/a29k/a29k-udi.mt: Obsolete.
2933 * config/a29k/a29k.mt: Obsolete.
2934 * config/a29k/tm-a29k.h: Obsolete.
2935 * config/a29k/tm-vx29k.h: Obsolete.
2936 * config/a29k/vx29k.mt: Obsolete.
2937
a9011d31
AC
29382002-01-05 Andrew Cagney <ac131313@redhat.com>
2939
2940 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
2941 with BFD_ENDIAN_BIG.
2942
9299404e
AC
29432002-01-05 Andrew Cagney <ac131313@redhat.com>
2944
2945 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
2946 * configure, config.in: Re-generate.
2947 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
2948 * defs.h: Do not include <endian.h>.
2949
7e89e357
JT
29502002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
2951
2952 * acconfig.h (HAVE_PT_GETXMMREGS): New.
2953 * config.in: Regenerate.
2954 * configure.in: Update copyright years.
2955 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
2956 * configure: Regenerate.
2957 * i386bsd-nat.c: Update copyright years.
2958 (fill_gregset): Use regcache_collect.
2959 (fetch_inferior_registers): Only fetch integer registers
2960 if requested to do so. Add support for XMM registers
2961 using PT_GETXMMREGS.
2962 (store_inferior_registers): Only store integer registers
2963 if requested to do so. Add support for XMM registers
2964 using PT_SETXMMREGS.
2965 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
2966 (store_inferior_registers): Remove.
2967 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
2968 (fetch_elfcore_registers): New function.
2969 (i386nbsd_elfcore_fns): New.
2970 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
2971 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
2972 i386bsd-nat.o.
2973 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2974 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
2975 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2976 * config/i386/tm-nbsd.h: Update copyright years.
2977 (HAVE_SSE_REGS): Define.
2978 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
2979 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
2980 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
2981 (SIGCONTEXT_PC_OFFSET): Remove.
2982 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2983
a752853e
AC
29842002-01-05 Andrew Cagney <ac131313@redhat.com>
2985
2986 * configure.tgt: Remove powerpc-*-macos* target.
2987 * config/m68k/xm-mpw.h: Delete file.
2988 * config/xm-mpw.h: Delete file.
2989 * ser-mac.c: Delete file.
2990 * mpw-make.sed: Delete file.
2991 * mpw-config.in: Delete file.
2992 * mac-xdep.c: Delete file.
2993 * mac-gdb.r: Delete file.
2994 * mac-defs.h: Delete file.
2995 * mac-nat.c: Delete file.
2996 * config/powerpc/macos.mh: Delete file.
2997 * config/powerpc/macos.mt: Delete file.
2998 * config/powerpc/nm-macos.h: Delete file.
2999 * config/powerpc/tm-macos.h: Delete file.
3000 * source.c (openp, open_source_file): Remove obsolete code.
3001 * top.c (gdb_readline): Ditto.
3002 * utils.c (query): Ditto.
3003 * event-top.c (display_gdb_prompt): Ditto.
3004 * Makefile.in (ser-mac.o): Delete obsolete target.
3005 * NEWS: Update.
3006
d7449b42
AC
30072002-01-04 Andrew Cagney <ac131313@redhat.com>
3008
3009 * defs.h (BIG_ENDIAN): Delete macro definition.
3010 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3011 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3012 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3013 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3014 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3015 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3016 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3017 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3018 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3019 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3020 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3021 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3022 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3023 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3024 * gdbarch.c: Re-generate.
3025
356374e8
DJ
30262002-01-04 Daniel Jacobowitz <drow@mvista.com>
3027
3028 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3029 for core files.
3030
a2b8f8f8
JT
30312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3032
3033 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3034
12466af9
AC
30352002-01-04 Andrew Cagney <ac131313@redhat.com>
3036
3037 * value.h (value_ptr): Delete typedef.
3038
3549ab40
JT
30392002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3040
3041 * i386nbsd-nat.c: Update copyright years.
3042 Include i386-tdep.h.
3043
fedbd091
EZ
30442002-01-04 Elena Zannoni <ezannoni@redhat.com>
3045
3046 * stabsread.c: Update copyright years.
3047
3048 From Debashis Mahata <debashis.mahata@wipro.com>:
3049 (read_struct_fields): Deal with Sun C compiler erroneous stab
3050 output for structs and unions.
fec8b34f 3051 Fix PR gdb/269.
fedbd091 3052
eb43544b
DJ
30532002-01-04 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3056 prototype.
3057
1514d34e
DJ
30582002-01-04 Daniel Jacobowitz <drow@mvista.com>
3059
3060 * cp-abi.c: Fix whitespace.
3061 (baseclass_offset): New wrapper function.
3062 * cp-abi.h (baseclass_offset): Add prototype.
3063 (struct cp_abi_ops): Add baseclass_offset pointer.
3064
3065 * valops.c (vb_match): Move to...
3066 * gnu-v2-abi.c (vb_match): here.
3067 * valops.c (baseclass_offset): Move to...
3068 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3069
3070 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3071
3072 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3073 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3074 * hpacc-abi.c (init_hpacc_ops): Likewise.
3075
7f8c9282
DJ
30762002-01-04 Daniel Jacobowitz <drow@mvista.com>
3077
3078 * valops.c (find_overload_match): Accept obj as a
3079 reference parameter. Update it before returning.
3080 * value.h (find_overload_match): Update prototype.
3081 * eval.c (evaluate_subexp_standard): Pass object to
3082 find_overload_match by reference.
3083
f23631e4
AC
30842002-01-03 Andrew Cagney <ac131313@redhat.com>
3085
3086 * valarith.c: Replace value_ptr with struct value pointer. Remove
3087 register attribute from value declarations.
3088 * valops.c: Ditto.
3089 * value.h: Ditto.
3090 * scm-lang.c (scm_lookup_name): Ditto.
3091
79e10fab 30922002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 3093
79e10fab
AC
3094 Abstract the functionality of iterating over mapped memory
3095 regions into a general purpose iterator function.
abf22e64 3096 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
3097 iterator for memory sections.
3098 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3099 (solib_mappings_callback): New function, callback for above.
3100 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3101 (info_mappings_callback): New function, callback for above.
3102
3103 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3104
c5ad026a
MK
31052002-01-01 Mark Kettenis <kettenis@gnu.org>
3106
d2a7c97a
MK
3107 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3108 * i386-tdep.c: Include "elf-bfd.h".
3109 (process_note_abi_tag_sections): New function.
3110 (i386_gdbarch_init): Add code to recognize various OS/ABI
3111 combinations.
3112
c5ad026a
MK
3113 * maint.c (_initialize_maint_cmds): Add missing \ in
3114 string-literal.
3115
a1a5b71e 3116For older changes see ChangeLog-2001
c906108c
SS
3117\f
3118Local Variables:
3119mode: change-log
3120left-margin: 8
3121fill-column: 74
3122version-control: never
3123End:
This page took 0.407648 seconds and 4 git commands to generate.