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