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