1 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3 * command.h: Update copyright.
4 (struct cmd_list_element): Replace definition with opaque
6 (enum cmd_types): Document that it will eventually be moved to
8 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9 (MALLOCED_REPLACEMENT): Delete macro.
10 * Makefile.in (cli_decode_h): Add $(command_h).
11 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12 * top.c: Include "cli/cli-decode.h".
13 * completer.c: Include "cli/cli-decode.h".
14 * maint.c: Include "cli/cli-decode.h".
15 * cli/cli-decode.h: Include "command.h".
16 (enum command_class): Delete.
17 (enum cmd_types): Comment out.
18 (enum cmd_auto_boolean): Delete.
19 (enum var_types): Delete.
21 2002-03-23 Andrew Cagney <ac131313@redhat.com>
23 * cli/cli-decode.c: Include "gdb_assert.h".
24 (add_set_or_show_cmd): New static function.
25 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
26 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
27 all fields, such as func, from the set command.
29 2002-03-23 Andrew Cagney <ac131313@redhat.com>
31 * MAINTAINERS (sh-elf): Change warning flag to -w.
33 2002-03-23 Andrew Cagney <cagney@redhat.com>
35 * defs.h (error): Add printf format attribute.
36 * thread-db.c (thread_from_lwp): Fix error format string.
37 * stack.c (parse_frame_specification): Ditto.
38 * cli/cli-decode.c (undef_cmd_error): Ditto.
39 * scm-lang.c (scm_lookup_name): Ditto.
40 * tracepoint.c (trace_error): Ditto.
41 * remote-utils.c (usage): Ditto.
42 * remote.c (compare_sections_command): Ditto.
45 2002-03-22 Andrew Cagney <ac131313@redhat.com>
47 * gdbtypes.c (append_composite_type_field): New function.
48 (init_composite_type): New function.
49 * gdbtypes.h (append_composite_type_field): Declare.
50 (init_composite_type): Ditto.
52 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
54 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
56 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
57 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
58 structure returning convention for SYSV ABI case, but not
59 for GNU/Linux, FreeBSD, or NetBSD.
61 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
63 * symtab.h (lookup_block_symbol): Add mangled_name argument
66 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
67 with new mangled_name argument.
68 * linespec.c (decode_line_1): Likewise.
69 * valops (value_of_this): Likewise.
70 * symtab.c (lookup_transparent_type): Likewise.
71 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
72 (lookup_symbol): If we are given a mangled name, pass it down
74 (lookup_block_symbol): If we are given a mangled name to check
75 against, only return symbols which match it.
77 2002-03-22 Christopher Faylor <cgf@redhat.com>
79 * win32-nat.c (child_create_inferior): Check for proper shell to use
80 here, in case the user changes it on the fly.
81 (_initialize_inftarg): Remove shell path considerations.
83 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
85 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
86 for gdbarch_max_register_raw_size and max_register_virtual_size.
87 Adjust copyright year.
89 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
91 * dbxread.c (process_one_symbol): Extend the first N_SLINE
92 in a function to cover the entire beginning of the function
93 as well if it does not already.
95 2002-03-21 Tom Rix <trix@redhat.com>
97 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
98 (rs6000_ptrace64): Renamed from ptrace64.
100 2002-03-20 Martin M. Hunt <hunt@redhat.com>
102 * gdbserver/remote-utils.c (remote_open): Don't call
103 getprotobyname, we're all using TCP here so just use
105 * gdbserver/gdbreplay.c (remote_open): Ditto.
107 2002-03-20 Martin M. Hunt <hunt@redhat.com>
109 * regcache.c (_initialize_regcache): No need to call
110 build_regcache() at this time; it gets called whenever
113 2002-03-20 David O'Brien <obrien@FreeBSD.org>
115 * sparc-nat.c: Include sys/param.h where possible.
117 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
120 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
121 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
122 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
124 * stabsread.c (rs6000_builtin_type): Likewise.
125 (read_sun_floating_type): Likewise.
127 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
129 * stabsread.c (read_member_functions): Remove skip code for duplicate
130 constructor/destructor methods. Use standard parsing for these
131 methods and just do not chain them to the list of methods after
134 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
136 * coffread.c: Remove redundant static declarations. Replace
137 occurrences of `PTR' with `void *'.
138 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
139 * top.h (quit_cover): Likewise.
140 * defs.h (catch_errors): Likewise.
142 2002-03-18 Andrew Cagney <ac131313@redhat.com>
144 * defs.h (XMALLOC): Define.
145 * gdb-events.sh (XMALLOC): Delete macro.
146 * gdb-events.c, gdb-events.h: Regenerate.
147 * gdbarch.sh (XMALLOC): Delete macro.
148 * gdbarch.c: Regenerate.
149 * serial.c (XMALLOC): Delete macro.
150 * ui-file.c (XMALLOC): Ditto.
151 * ser-unix.h (XMALLOC): Ditto.
152 * sh-tdep.c (XMALLOC): Ditto.
153 * ui-out.c (XMALLOC): Ditto.
154 * utils.c (XMALLOC): Ditto.
155 * i386-tdep.c (XMALLOC): Ditto.
156 * gdb-events.c (XMALLOC): Ditto.
157 * d10v-tdep.c (XMALLOC): Ditto.
158 * cli-out.c (XMALLOC): Ditto.
160 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
161 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
162 * ui-file.c, ui-out.c: Ditto.
164 2002-03-18 Andrew Cagney <ac131313@redhat.com>
166 * command.h (struct cmd_list_element): Add field context.
167 (set_cmd_context, get_cmd_context): Declare.
168 * cli/cli-decode.h: Ditto.
169 * cli/cli-decode.c (get_cmd_context): New function.
170 (set_cmd_context): New function.
171 (add_cmd): Initialize context.
172 Part of fixing PR gdb/145 and PR gdb/146.
174 2002-03-17 Andrew Cagney <ac131313@redhat.com>
176 * cli/cli-decode.c (cmd_type): New function.
177 * command.h (cmd_type): Declare.
178 * infrun.c (set_schedlock_func): Call function cmd_type.
179 * kod.c (kod_set_os): Call cmd_type.
180 * cris-tdep.c (cris_version_update): Use function cmd_type.
181 (cris_mode_update, cris_abi_update): Ditto.
183 * command.h: (execute_cmd_post_hook): Declare.
184 (execute_cmd_pre_hook): Declare.
185 * cli/cli-script.c (clear_hook_in_cleanup): New function.
186 (execute_cmd_post_hook, execute_cmd_pre_hook): New
187 functions. Execute pre/post hook while ensuring that afterwords
189 * top.c (execute_command): Use execute_cmd_post_hook, and
190 execute_cmd_pre_hook to execute pre/post commands.
191 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
193 (hook_stop_stub): Call execute_cmd_pre_hook.
195 2002-03-17 Andrew Cagney <ac131313@redhat.com>
197 * kod.c (kod_set_os): Revert previous change. Is called by ``info
198 set'' and this leads to a core dump. Move xstrdup of
199 operating_system to after check that it is not NULL.
201 2002-03-17 Andrew Cagney <ac131313@redhat.com>
203 * kod.c (kod_set_os): Remove unnecessary check that
204 ``command->type'' is set_cmd.
206 * valprint.c (set_input_radix): Use input_radix.
207 (set_output_radix): Use output_radix.
208 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
211 2002-03-16 Andrew Cagney <ac131313@redhat.com>
213 * value.h (struct value): Delete field ``substring_addr''. Change
214 aligner fields to force_doublest_align, force_longest_align,
215 force_core_addr_align and force_pointer_aligh.
217 * value.h (struct value): Fix typo in above change.
219 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
221 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
222 to fix internal_error from ``maintenance print architecture''.
224 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
226 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
227 for gcc versions after gcc-2.8.1.
229 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
231 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
232 for method resolution. Restore adjustment of ``this'' pointer after
233 calling value_struct_elt, which was accidentally removed during the
236 2002-03-15 Andrew Cagney <ac131313@redhat.com>
238 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
240 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
242 * value.h (value_of_register): Update.
244 2002-03-14 Richard Henderson <rth@redhat.com>
246 * configure.in: Detect declaration for canonicalize_file_name.
247 * utils.c (canonicalize_file_name): Declare, if needed.
248 (gdb_realpath): Prefer realpath if available and usable.
249 * config.in, configure: Rebuild.
251 2002-03-14 Richard Henderson <rth@redhat.com>
253 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
254 a constant array bound.
256 * MAINTAINERS: Add myself to write-after-approval.
258 2002-03-14 Michael Snyder <msnyder@redhat.com>
260 * symfile.c (syms_from_objfile): Return immediately if no syms.
261 (symbol_file_add): Return immediately if no syms.
262 (find_sym_fns): Return immediately if no syms.
264 2002-03-13 Michal Ludvig <mludvig@suse.cz>
266 * gdbserver/remote-util.c (remote_open): Print remote-side's
267 IP address when remote debugging over the network.
269 2002-03-12 David O'Brien <obrien@FreeBSD.org>
271 * config/sparc/fbsd.mh: Fix copyright.
272 * config/sparc/fbsd.mt: Likewise.
274 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
276 * MAINTAINERS: Fix typo in name of gdb warnings option.
277 (x86-64): Fix formating so that this can be parsed by awk.
279 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
281 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
282 * defs.h: Include "gdb/signals.h".
283 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
285 2002-03-10 Michal Ludvig <mludvig@suse.cz>
287 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
288 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
291 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
292 Don Howard <dhoward@redhat.com>
294 * mips-tdep.c (ST0_FR): Define.
295 (mips2_fp_compat): New function, temporarily disabled.
296 (mips_read_fp_register_single): New function.
297 (mips_read_fp_register_double): New function.
298 (mips_print_register): Use them.
299 (do_fp_register_row): Likewise.
301 2002-03-09 Andrew Cagney <ac131313@redhat.com>
303 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
306 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
308 * stabsread.c (read_member_functions): Fix is_stub test for
309 static member functions, improve comment.
311 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
313 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
314 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
315 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
316 commands that set boolean values.
317 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
318 (arm_rdi_resume): Always initialize PC.
319 (arm_rdi_open): Don't use rslt as a boolean.
320 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
321 (arm_rdi_fetch_registers, arm_rdi_store_registers)
322 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
323 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
325 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
327 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
328 * configure: Rebuilt.
330 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
332 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
333 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
335 2002-03-06 Andrew Cagney <ac131313@redhat.com>
337 * cli/cli-decode.c (set_cmd_completer): New function.
338 * command.h (set_cmd_completer): Declare.
339 * cli/cli-decode.h (set_cmd_completer): Ditto.
341 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
342 * cli/cli-cmds.c (init_cli_cmds): Ditto.
343 * win32-nat.c (_initialize_inftarg): Ditto.
344 * remote-rdi.c (_initialize_remote_rdi): Ditto.
345 * proc-api.c (_initialize_proc_api): Ditto.
346 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
347 * source.c (_initialize_source): Ditto.
348 * exec.c (_initialize_exec): Ditto.
349 * solib.c (_initialize_solib): Ditto.
350 * top.c (init_main): Ditto.
351 * tracepoint.c (_initialize_tracepoint): Ditto.
352 * symfile.c (_initialize_symfile): Ditto.
353 * printcmd.c (_initialize_printcmd): Ditto.
354 * infcmd.c (_initialize_infcmd): Ditto.
355 * corefile.c (_initialize_core): Ditto.
357 2002-03-05 Andrew Cagney <ac131313@redhat.com>
359 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
361 2002-03-05 Andrew Cagney <ac131313@redhat.com>
363 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
365 2002-03-05 Andrew Cagney <ac131313@redhat.com>
367 * NEWS: Update headings, 5.2 has branched.
369 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
371 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
372 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
373 (register_addr, REGISTER_RAW_SIZE): Likewise.
374 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
375 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
377 2002-03-03 Michal Ludvig <mludvig@suse.cz>
379 * MAINTAINERS (x86-64): Add myself.
380 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
381 changed value_ptr -> struct value *
383 2002-03-01 David O'Brien <obrien@FreeBSD.org>
385 * configure.host (sparc64-*-freebsd): Add.
386 * configure.tgt: Likewise.
387 * config/sparc/fbsd.mh: New file.
388 * config/sparc/fbsd.mt: Likewise.
389 * config/sparc/nm-fbsd.h: Likewise.
390 * config/sparc/tm-fbsd.h: Likewise.
392 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
394 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
395 regformats/reg-s390x.dat.
397 2002-03-01 Andrew Cagney <ac131313@redhat.com>
399 * utils.c: Add FIXME explaining true/false problem.
401 2002-02-28 Andrew Cagney <ac131313@redhat.com>
403 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
405 2002-02-28 Michael Chastain <mec@shout.net>
407 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
409 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
411 * gdbserver/linux-s390-low.c: New file.
412 * regformats/reg-s390.dat: New file.
413 * regformats/reg-s390x.dat: New file.
414 * gdbserver/configure.srv: Add S/390.
415 * gdbserver/Makefile.in: Add S/390.
416 * configure.tgt: Enable gdbserver for S/390.
418 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
420 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
421 first line of the doc string for "info dos", except at the end of
422 the sentence, since the short help stops at the first period.
424 2002-02-28 Jason Merrill <jason@redhat.com>
426 * dwarf2read.c (dwarf_cfi_name): Add new codes.
428 2002-02-27 Fred Fish <fnf@redhat.com>
430 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
431 comment (dumy -> dummy).
433 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
435 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
437 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
439 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
441 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
443 * gdbserver/acconfig.h: New file.
444 * gdbserver/i387-fp.c: New file.
445 * gdbserver/i387-fp.h: New file.
446 * gdbserver/linux-x86-64.c: New file.
447 * regformats/reg-x86-64.dat: New file.
448 * configure.tgt: Add x86_64-*-linux* gdbserver support.
449 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
450 * gdbserver/configure.in: Add support for regsets.
451 * gdbserver/config.in: Regenerate.
452 * gdbserver/configure: Regenerate.
453 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
454 * gdbserver/linux-low.h: New file.
455 * gdbserver/linux-low.c: Include "linux-low.h". Add support
457 * gdbserver/linux-arm-low.c: Include "linux-low.h".
458 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
459 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
460 * gdbserver/linux-mips-low.c: Include "linux-low.h".
461 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
462 * gdbserver/linux-sh-low.c: Include "linux-low.h".
463 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
464 "i387-fp.h". Add PTRACE_GETREGS and friends.
465 * gdbserver/regcache.c (supply_register): New function.
466 (supply_register_by_name): New function.
467 (collect_register): New function.
468 (collect_register_by_name): New function.
470 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
472 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
473 (config.status): Add configure.srv dependency.
474 (server_h): Add config.h dependency.
476 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
478 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
479 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
480 * gdbserver/configure.srv: Change i386-*-linux* to use
483 2002-02-26 Andrew Cagney <ac131313@redhat.com>
485 * x86-64-tdep.c: Re-indent. Update copyright date.
487 2002-02-26 Andrew Cagney <ac131313@redhat.com>
489 From Michal Ludvig <mludvig@suse.cz>:
490 * x86-64-tdep.c (value.h): Delete.
491 (gdb_assert.h): Include.
492 (x86_64_register_convert_to_virtual,
493 x86_64_register_convert_to_raw ): Add check which lets only
494 floating-point values to be converted.
495 (value_push): Delete.
496 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
497 (i386_gdbarch_init): Number of register_bytes fixed.
499 2002-02-26 Andrew Cagney <ac131313@redhat.com>
501 * MAINTAINERS: Add x86-64 target.
503 2002-02-26 Andrew Cagney <ac131313@redhat.com>
505 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
506 * osfsolib.c (solib_map_sections): Ditto.
507 * irix5-nat.c (solib_map_sections): Ditto.
508 * corelow.c (gdb_check_format): Ditto.
509 * symfile.c (symfile_bfd_open): Ditto.
510 * solib.c (solib_map_sections): Ditto.
513 2002-02-26 Andrew Cagney <ac131313@redhat.com>
515 * remote.c (_initialize_remote): By default, disable ``e'' and
516 ``E'' step out-of-range packets.
518 2002-02-26 Andreas Schwab <schwab@suse.de>
520 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
521 m68k_linux_frame_saved_pc.
522 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
524 (SIGCONTEXT_PC_OFFSET): Remove.
525 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
526 m68k_linux_sigtramp_saved_pc): New functions.
527 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
528 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
529 (UCONTEXT_PC_OFFSET): Define.
530 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
531 non-RT and RT signal trampolines.
533 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
535 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
536 (TARGET_NBPG, STACK_END_ADDR): Delete
537 (VARIABLES_INSIDE_BLOCK): Delete.
539 2002-02-25 Andrew Cagney <ac131313@redhat.com>
541 * utils.c (perror_with_name): Make string parameter constant.
542 (print_sys_errmsg): Ditto.
544 * defs.h (perror_with_name): Update.
545 (print_sys_errmsg): Update.
548 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
550 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
551 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
553 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
555 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
556 if it already matches the current architecture from the exec file.
557 Include arch-utils.h for gdbarch_info_init prototype.
558 * Makefile.in (rs6000-nat.o): Update dependencies.
560 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
562 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
563 list of exported variables.
565 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
567 * gdbserver/configure.srv: New file.
568 * gdbserver/configure.in: Use configure.srv instead
569 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
571 * gdbserver/configure: Regenerated.
572 * gdbserver/terminal.h: New file.
573 * gdbserver/Makefile.in: Update for configure changes. Remove
574 more unneeded include paths.
576 2002-02-24 Andrew Cagney <ac131313@redhat.com>
579 * config/sparc/tm-sp64.h: Fix grammar and typos.
582 2002-02-24 Andrew Cagney <ac131313@redhat.com>
584 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
585 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
586 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
587 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
588 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
589 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
590 * s390-tdep.c: Ditto.
591 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
592 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
593 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
594 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
595 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
596 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
597 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
598 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
599 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
600 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
603 2002-02-23 Andrew Cagney <ac131313@redhat.com>
605 * lin-thread.c: Delete file.
606 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
607 to gdb_proc_service.h.
608 * configure: Re-generate.
610 * ocd.c (ocd_open): Do not try to open the "ocd" device.
611 * serial.c (serial_open): Delete check for "ocd".
614 * Makefile.in (linux-thread.o): Delete target.
615 * linux-thread.c: Delete file.
617 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
618 renamed SH files to be consistent.
620 * symtab.c (sort_search_symbols): Use xfree.
622 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
624 * arm-linux-tdep.c (arm_linux_init_abi): Register
625 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
626 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
627 definition with undef, since we don't want the sysvr4 definition.
628 (SKIP_TRAMPOLINE_CODE): Likewise.
630 2002-02-23 Andrew Cagney <ac131313@redhat.com>
632 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
634 * configure.in: (AC_CHECK_FUNCS) Added test for
635 canonicalize_file_name Regenerated.
636 * config.in, configure: Regenerated.
637 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
638 defined use canonicalize_file_name.
640 2002-02-23 Michael Chastain <mec@shout.net>
642 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
644 2002-02-23 Andrew Cagney <ac131313@redhat.com>
646 * README: Remove references to cygnus.com.
647 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
648 dot com'' form. Remove references to cygnus.com and sourceware.
650 2002-02-23 Andrew Cagney <ac131313@redhat.com>
652 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
653 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
654 1003.1-2001 no longer allows "head -1".
655 * gdb/Makefile.in (version.c): Likewise.
656 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
657 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
658 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
660 2002-02-23 Andrew Cagney <ac131313@redhat.com>
662 * cli/cli-decode.c (cmd_cfunc_eq): New function.
663 * command.h (cmd_cfunc_eq): Declare.
664 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
666 * cli/cli-cmds.h (is_complete_command): Change parameter to a
667 ``struct cmd_list_element *''.
668 * cli/cli-cmds.c (is_complete_command): Update. Use
670 * top.c (execute_command): Pass the command to
672 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
674 2002-02-23 Andrew Cagney <ac131313@redhat.com>
676 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
677 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
678 architecture defines.
679 * s390-tdep.c (s390_gdbarch_init): Likewise.
681 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
683 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
684 (arm_linux_push_arguments): Likewise.
685 (arm_linux_init_abi): Register them. Also register linux-specific
687 (find_minsym_and_objfile): Use strcmp, not STREQ.
688 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
689 (arm_linux_call_dummy_words): Delete declaration.
690 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
691 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
695 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
697 * maint.c (print_section_info): Do not prepend `0x' to filepos
698 output, it will be handled by local_hex_string_custom.
700 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
702 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
703 (store_newfpe_double, store_newfpe_extended, store_fpregister)
704 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
706 2002-02-22 Jim Blandy <jimb@redhat.com>
708 Indicate that the bcache functions don't change the strings
710 * bcache.h (bcache, hash): Add `const' keywords to declarations.
711 * bcache.c (bcache, hash): Add `const' keywords to definitions.
713 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
715 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
717 2002-02-21 Christopher Faylor <cgf@redhat.com>
719 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
720 find the complete path to a loaded DLL.
722 2002-02-21 Fred Fish <fnf@redhat.com>
724 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
725 that marks the end of the range of a function, enter a line number
726 entry that has a line number of zero and a PC offset that matches
727 the end of the function. This starts a range of PC's for which no
728 line number information is known.
729 * symtab.c (find_pc_sect_line): If our best fit is in a range of
730 PC's for which no line number info is found (line number is zero)
731 then we didn't find any valid line information.
732 * symtab.h: Document use of zero line number entry.
734 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
736 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
737 (have_ptrace_getvrregs): Define for run time checks.
738 (gdb_vrregset_t): New type for Altivec register handling.
739 (fetch_register, store_register): Fetch/store altivec register
741 (fetch_altivec_register, store_altivec_register): New functions.
742 (supply_vrregset, fill_vrregset): New functions.
743 (fetch_altivec_registers, store_altivec_registers): New functions.
744 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
747 2002-02-21 Jiri Smid <smid@suse.cz>
749 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
751 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
753 * Makefile.in (armnbsd-nat.o): Update dependencies.
754 * armnbsd-nat.c (supply_gregset): New function. Common code to
755 supply the integer register set.
756 (supply_fparegset): New function. Similar for FPA registers.
757 (fetch_regs, fetch_fp_regs): Use them.
758 (fetch_core_registers): Likewise.
759 (fetch_elfcore_registers): New function.
760 (arm_netbsd_elfcore_fns): New core-file type specification.
761 (_initialize_arm_netbsd_nat): Register it.
763 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
765 * armnbsd-nat.c: Include gdbcore.h.
766 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
767 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
768 'void' to declaration, to shut up ARI.
769 (fetch_core_registers): Make static. Rewrite using supply_register.
770 (arm_netbsd_core_fns): New core-file type specification.
771 (_initialize_arm_netbsd_nat): New function.
773 2002-02-21 Christopher Faylor <cgf@redhat.com>
775 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
778 2002-02-20 Christopher Faylor <cgf@redhat.com>
780 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
783 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
785 * jv-exp.y (parse_number): Change type of implicit longs
786 to builtin_type_uint64.
788 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
790 * gdbserver/linux-low.c (mywait): Change argument to waitpid
791 to be an integer instead of a `union wait'.
793 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
795 * mips-linux-nat.c: Call the operating system GNU/Linux.
796 * mips-linux-tdep.c: Likewise.
797 * mips-tdep.c: Likewise.
799 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
802 * jv-exp.y (parse_number): Handle 64-bit integers.
804 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
806 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
807 AC_STDC_HEADERS to AC_HEADER_STDC.
808 * gdbserver/configure: Regenerated.
810 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
812 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
814 * sparc-tdep.c (get_longjmp_target): Likewise.
816 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
818 * News: Add news about ARM and Multi-arch. Mention the new target
821 2002-02-19 Jim Blandy <jimb@redhat.com>
823 * stabsread.c (error_type_complaint): Improve error message.
825 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
827 * gdbserver/README: Update documentation.
828 * gdbserver/configure.in: Update configury to match documentation.
829 * gdbserver/Makefile.in: Likewise.
830 * gdbserver/configure: Regenerated.
831 * gdbserver/aclocal.m4: New file, generated by aclocal.
832 * gdbserver/config.in: New file, generated by autoheader.
834 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
836 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
839 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
841 * arm-tdep.h (enum arm_float_model): New enum.
842 (struct gdbarch_tdep): Add fp_model.
843 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
844 up floating-point conversions until we know the floating-point model
845 in use by the inferior. Don't complain about being unable to
846 determine the ABI of the inferior when we don't have one.
847 (arm_extract_return_value): Support different floating-point models.
848 (arm_store_return_value): Likewise.
849 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
851 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
853 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
855 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
856 of ``current_gdbarch''.
858 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
860 * armnbsd-nat.c : ANSIfy all function declarations.
861 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
862 (fetch_inferior_registers): Re-implement in terms of above.
863 (store_register, store_regs, store_fp_register, store_fp_regs): New.
864 (store_inferior_registers): Re-implement in terms of above.
866 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
868 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
870 * arm-linux-tdep.c: Likewise.
871 * config/arm/tm-linux.h: Likewise.
873 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
875 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
876 * config/arm/nbsd.mt (TM_FILE): Delete.
877 * config/arm/tm-nbsd.h: Delete.
879 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
881 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
882 Initialize CALL_DUMMY_LENGTH.
884 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
886 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
888 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
889 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
890 defines one thing and that is incorrect for this port.
891 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
893 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
895 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
897 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
899 * win32-nat.c (display_selector): New function. Displays information
900 about the information returned by GetThreadSelectorEntry API function.
901 (display_selectors): New function. Displays the infomation of
902 the selector given as argument, or of CS, DS ans FS selectors
903 if no argument is given.
904 ( _initialize_inftarg): Add "w32" as info prefix command.
905 Add "info w32 selector" as command calling display_selectors.
907 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
909 * i386-tdep.c (get_longjmp_target): Fix compilation failure
910 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
913 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
915 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
917 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
919 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
920 (arm_fix_call_dummy): Call it.
921 (arm_call_dummy_breakpoint_offset): Delete.
922 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
923 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
925 2002-02-18 Andrew Cagney <ac131313@redhat.com>
927 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
928 Default to func_frame_chain_valid.
929 * gdbarch.h, gdbarch.c: Re-generate.
930 * frame.h (FRAME_CHAIN_VALID): Delete definition.
932 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
934 * ppc-linux-nat.c: Update copyright.
935 (fetch_register, store_register): Add tid parameter, don't compute
937 (fetch_ppc_registers, store_ppc_registers): Add tid
938 parameter. Pass it along to callees.
939 (fetch_inferior_registers, store_inferior_registers): Compute tid
940 here, and pass it to calleed functions.
941 (fill_gregset, supply_fpregset): Clean up formatting.
943 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
945 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
946 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
948 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
950 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
951 * gdbarch.c gdbarch.h: Regenerate.
952 * breakpoint.c (create_longjmp_breakpoint): Always compile this
954 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
955 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
956 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
958 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
959 * arm-tdep.c (arm_get_longjmp_target): New function.
960 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
961 this to a positive value register arm_get_longjmp_target as the
963 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
964 (arm_linux_init_abi): Set up longjmp description in tdep.
965 * armnbsd-nat.c (get_longjmp_target): Delete.
966 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
968 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
969 (get_longjmp_target): Delete declaration.
970 (GET_LONGJMP_TARGET): Delete.
971 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
972 (GET_LONGJMP_TARGET): Delete.
974 2002-02-17 Kevin Buettner <kevinb@redhat.com>
976 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
977 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
978 of ``current_gdbarch''.
980 2002-02-17 Tom Tromey <tromey@redhat.com>
982 * cli/cli-cmds.c (compare_strings): New function.
983 (complete_command): Only print each unique item once.
984 * completer.h (complete_line): Declare.
985 * completer.c (complete_line): New function.
986 (line_completion_function): Use it.
988 2002-02-16 Andrew Cagney <ac131313@redhat.com>
990 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
991 * gdbarch.h, gdbarch.c: Re-generate.
993 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
995 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
997 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
999 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1000 * valops.c (value_arg_coerce): Don't take the address of a reference
1001 to convert an argument to a reference.
1003 2002-02-15 Christopher Faylor <cgf@redhat.com>
1005 * win32-nat.c (get_image_name): New function.
1006 (handle_load_dll): Use get_image_name function.
1007 (get_child_debug_event): Avoid registering debug events until possibly
1008 execed process is started.
1009 (child_create_inferior): Allow invocation via shell so that command
1010 line redirection, etc. works ok.
1011 (_initialize_inftarg): Add new command: "set shell" to control whether
1012 a shell is used to start a process.
1014 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1016 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1017 instead of find_register_by_number.
1018 (cannot_store_register): Likewise.
1020 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1022 * dwarf2read.c: Replace fprintf (stderr, ...) by
1023 fprintf_unfiltered (gdb_stderr, ...).
1025 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1027 * gdbserver/gdbserver.1: Document --attach.
1029 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1031 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1033 * arm-tdep.c (arm_default_arm_le_breakpoint)
1034 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1035 (arm_default_thumb_be_breakpoint): New. Initialize them from
1036 traditional breakpoint defines.
1037 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1038 (arm_gdbarch_init): Initialize new breakpoint variables.
1039 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1040 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1041 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1042 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1044 (arm_netbsd_init_abi_common): ... here; new function.
1045 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1046 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1047 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1048 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1050 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1052 * arm-tdep.h (enum arm_abi): New enum.
1053 (struct gdbarch_tdep): New structure.
1054 (LOWEST_PC): Provide a default.
1055 (arm_gdbarch_register_os_abi): Declare new function.
1056 * arm-tdep.c (arm_abi_names): New array.
1057 (process_note_abi_tag_sections): New function.
1058 (get_elfosabi): New function.
1059 (arm_gdbarch_register_os_abi): New function.
1060 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1061 support for that ABI has been built in, then call the appropriate
1062 configuration routine. Use gdbarch_num_regs() to get the number
1064 (arm_dump_tdep): New function.
1065 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1066 place-holder functions.
1067 (_initialize_arm_tdep): Register them.
1068 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1070 * armnbsd-tdep.c: New file.
1071 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1072 * config/arm/nbsd.mt (TDEPFILES): Add it.
1073 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1075 * armnbsd-nat.c: Include regcache.h.
1076 * Makefile.in (armnbsd-nat.o): Update dependency list.
1078 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1080 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1082 * gdbserver/Makefile.in: Fix typos in target rules.
1084 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1086 Fix part of PR gdb/267.
1087 * linespec.c (find_methods): Handle constructors specially for now.
1089 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1091 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1093 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1094 standard_coerce_float_to_double().
1096 2002-02-14 Christopher Faylor <cgf@redhat.com>
1098 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1101 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1103 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1104 find_variant_by_name, because it confuses the multiarch
1105 framework. Return NULL if there isn't an architecture with the
1106 user supplied name, instead of forcing a different one without
1107 recording the change with the multiarch machinery.
1108 (find_variant_by_name): Delete.
1110 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1112 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1113 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1115 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1117 * stack.c (print_frame_info_base): When calling
1118 print_frame_info_listing_hook, set current_source_symtab.
1120 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1122 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1123 and remove unused $(INCLUDE_DIR).
1124 Add regcache.c to OBS.
1125 Add generated register protocol files to clean target.
1126 Update dependencies for new objects, obsolete old target code.
1128 * gdbserver/linux-low.c: Remove all platform-specific code to
1129 new files. Remove various dead code. Update to use regcache
1131 * gdbserver/remote-utils.c (fromhex): Add return statement
1133 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1135 (input_interrupt): Add integer parameter to match prototype
1136 of a signal handler.
1137 (outreg): Use register_data ().
1138 (prepare_resume_reply): Use gdbserver_expedite_regs.
1139 * gdbserver/server.c (main): Dynamically allocate own_buf because
1140 PBUFSIZ is no longer constant. Use registers_to_string () and
1141 registers_from_string ().
1142 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1143 for error (), fatal (), and warning (). Update definition of
1144 PBUFSIZ to use regcache functionality. Add include guard.
1145 * gdbserver/utils.c (fatal): Add missing ``const''.
1146 (warning): New function.
1148 * regformats/regdat.sh: Include "regcache.h" in generated files.
1149 Provide init_registers () function.
1150 * regformats/regdef.h: Add prototype for set_register_cache ().
1153 * gdbserver/linux-arm-low.c: New file.
1154 * gdbserver/linux-i386-low.c: New file.
1155 * gdbserver/linux-ia64-low.c: New file.
1156 * gdbserver/linux-m68k-low.c: New file.
1157 * gdbserver/linux-mips-low.c: New file.
1158 * gdbserver/linux-ppc-low.c: New file.
1159 * gdbserver/linux-sh-low.c: New file.
1161 * gdbserver/regcache.c: New file.
1162 * gdbserver/regcache.h: New file.
1164 * gdbserver/low-linux.c: Removed obsolete file.
1166 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1168 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1169 * config/i386/linux.mt: Likewise.
1170 * config/ia64/linux.mt: Likewise.
1171 * config/m68k/linux.mh: Likewise.
1172 * config/powerpc/linux.mh: Likewise.
1173 * config/mips/linux.mt: Likewise.
1175 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1177 * config/i386/i386lynx.mh: Mark gdbserver variables
1178 as (currently) obsolete for this target.
1179 * config/i386/nbsd.mt: Likewise.
1180 * config/i386/nbsdelf.mt: Likewise.
1181 * config/m32r/m32r.mt: Likewise.
1182 * config/m68k/m68klynx.mh: Likewise.
1183 * config/m68k/nbsd.mt: Likewise.
1184 * config/m68k/sun3os4.mh: Likewise.
1185 * config/mips/vr5000.mt: Likewise.
1186 * config/ns32k/nbsd.mt: Likewise.
1187 * config/pa/hppabsd.mh: Likewise.
1188 * config/pa/hppaosf.mh: Likewise.
1189 * config/powerpc/nbsd.mt: Likewise.
1190 * config/rs6000/rs6000lynx.mh: Likewise.
1191 * config/s390/s390.mt: Likewise.
1192 * config/s390/s390x.mt: Likewise.
1193 * config/sparc/sparclynx.mh: Likewise.
1194 * config/sparc/sun4os4.mh: Likewise.
1195 * config/i386/x86-64linux.mt: Likewise.
1196 * config/sparc/linux.mh: Likewise.
1198 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1200 * configure.tgt: Configure gdbserver only for known working
1201 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1202 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1203 SUBDIRS if it is configured. Update comment for ${nativefile}.
1204 * configure: Regenerated.
1206 2002-02-13 Michael Snyder <msnyder@redhat.com>
1208 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1209 (default_gcore_mach): Just return 0, work around a problem in bfd.
1210 (default_gcore_target): OK to return NULL if exec_bfd is null.
1211 (make_mem_sec): Use a cast, avoid a warning.
1213 * procfs.c (find_memory_regions_callback): Use a cast instead of
1214 calling host_pointer_to_address (which complains if
1215 sizeof (host pointer) != sizeof (target pointer)).
1216 (procfs_make_note_section): Avoid overflow in psargs string.
1218 * procfs.c (procfs_make_note_section): Make the default
1219 implementation return an error.
1221 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1223 * procfs.c (procfs_make_note_section): Provide a default definition
1224 (for alpha-dec-osf4.0f). Fix typos.
1226 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1228 * linux-proc.c: Add include of regcache.h.
1229 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1231 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1233 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1234 * memattr.c (create_mem_region): Disallow useless empty region.
1235 Regions are half-open intervals, so allow [A..B) [B..C) as
1238 2002-02-13 Michael Chastain <mec@shout.net>
1240 * defs.h: Kill CONST_PTR.
1241 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1242 * c-lang.c (c_builtin_types): Likewise.
1243 * ch-lang.c (ch_builtin_types): Likewise.
1244 * f-lang.c (f_builtin_types): Likewise.
1245 * language.c (unknown_builtin_types): Likewise.
1246 * m2-lang.c (m2_builtin_types): Likewise.
1247 * p-lang.c (pascal_builtin_types): Likewise.
1248 * scm-lang.c (c_builtin_types): Likewise.
1250 2002-02-13 Keith Seitz <keiths@redhat.com>
1252 * arm-tdep.h (arm_get_next_pc): Add declaration.
1254 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1256 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1257 with other related struct-returning functions.
1258 (arm_extract_struct_value_address): New function.
1259 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1260 initialize float_format, double_format and long_double_format as
1261 appropriate to the endianness of the target.
1262 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1263 (arm_use_struct_convention): Delete declaration.
1264 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1266 2002-02-13 Keith Seitz <keiths@redhat.com>
1268 * defs.h (core_addr_to_string_nz): New function.
1270 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1272 Apply missing bits of 2002-01-15 patch.
1273 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1274 (fill_fpregset): Use i387_fill_fsave.
1276 2002-02-12 Keith Seitz <keiths@redhat.com>
1278 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1279 (core_addr_to_string_nz): New function.
1281 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1283 * arm-linux-nat.c: Really include arm-tdep.h.
1284 * config/arm/tm-linux.h (struct type, struct value): Declare.
1286 2002-02-11 Michael Snyder <msnyder@redhat.com>
1288 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1289 (gcore section): Ifdef for Solaris and Unixware only.
1290 (procfs_do_thread_registers): Unixware needs one lwpstatus
1291 per thread (not one prstatus or pstatus).
1292 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1293 not over all gdb threads. For unixware, call elfcore_write_pstatus
1294 once before iterating over threads.
1296 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1298 * arm-tdep.h: New file.
1299 * arm-tdep.c: Include arm-tdep.h.
1300 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1301 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1302 (arm_print_float_info, arm_register_type, convert_to_extended)
1303 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1304 (arm_extract_return_value, arm_register_name): Make static.
1305 (arm_software_single_step): Similarly. Fix types in declaration.
1306 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1307 (arm_store_return_value, arm_store_struct_return): New functions.
1308 (arm_gdbarch_init): Register the above functions. Also register
1309 call_dummy_start_offset, sizeof_call_dummy_words,
1310 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1311 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1312 max_register_virtual_size, register_size. Set up
1313 prologue_cache.saved_regs here, rather than ...
1314 (_initialize_arm_tdep): ... here.
1315 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1317 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1318 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1319 (arm_print_float_info, arm_register_type, convert_to_extended)
1320 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1321 (arm_extract_return_value, arm_register_name): Delete declarations.
1322 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1323 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1324 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1325 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1326 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1327 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1328 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1329 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1330 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1331 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1332 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1333 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1335 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1336 * remote-rdi.c remote-rdp.c: Likewise.
1337 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1338 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1339 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1342 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1343 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1344 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1345 from non-ARM_ prefixed definitions.
1346 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1348 * remote-rdi.c remote-rdp.c: Likewise.
1349 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1351 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1353 * arm-tdep.c (arm_frameless_function_invocation)
1354 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1355 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1356 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1357 (arm_pop_frame, arm_get_next_pc): Make static.
1358 (arm_gdbarch_init): Register above in gdbarch structure.
1359 (arm_read_fp): Renamed from arm_target_read_fp.
1360 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1361 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1362 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1363 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1364 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1365 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1366 (arm_pc_is_thumb_dummy): Delete declarations.
1367 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1368 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1369 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1370 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1372 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1374 * symtab.c (compare_search_syms): New function.
1375 (sort_search_symbols): New function.
1376 (search_symbols): Sort symbols after searching rather than
1379 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1381 * NEWS: Linux -> GNU/Linux.
1383 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1385 * gdbarch.sh: For for level one methods, disallow a definition
1386 when partially multi-arched. Add comments explaining rationale.
1387 * gdbarch.h: Re-generate.
1389 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1391 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1394 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1396 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1398 * gdbarch.c: Re-generate.
1400 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1402 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1403 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1406 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1408 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1410 (PUSH_ARGUMENTS): Switch to using predefault.
1411 * gdbarch.c: Regenerate.
1413 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1415 * valops.c (PUSH_ARGUMENTS): Delete definition.
1416 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1417 partial. Default to default_push_arguments.
1418 * gdbarch.h, gdbarch.c: Regenerate.
1420 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1422 * defs.h (throw_exception): Rename return_to_top_level. Update
1424 * utils.c (error_stream, internal_verror, quit): Ditto.
1425 * top.c (throw_exception, catcher): Ditto.
1426 * sparclet-rom.c (sparclet_load): Ditto.
1427 * remote.c (interrupt_query, minitelnet): Ditto.
1428 * remote-sds.c (interrupt_query): Ditto.
1429 * remote-mips.c (mips_error, mips_kill): Ditto.
1430 * ocd.c (interrupt_query): Ditto.
1431 * monitor.c (monitor_interrupt_query): Ditto.
1432 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1433 * target.h: Update comment.
1435 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1437 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1439 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1440 default_double_format.
1441 * gdbarch.h, gdbarch.c: Re-generate.
1442 * findvar.c (floatformat_unknown): Delete variable definition.
1443 * doublest.h (floatformat_unknown): Delete variable declaration.
1445 2002-02-09 Jim Blandy <jimb@redhat.com>
1447 * stabsread.c (read_type): Add code to parse Sun's syntax for
1448 prototyped function types.
1450 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1452 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1453 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1455 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1457 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1458 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1459 now _initialize_xcoffsolib gets called again and overrides the
1460 commands from solib.c in a native configuration.
1462 2002-02-09 Mark Kettenis <kettenis@gnu.org>
1464 * doublest.c (store_typed_floating): Don't try to return a value.
1467 2002-02-08 Jim Blandy <jimb@redhat.com>
1469 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1470 is prototyped and has no arguments, print its argument list as
1473 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1475 * MAINTAINERS (write-after-approval): Add myself.
1476 (paper-trail): I've escaped!
1478 2002-02-08 Christopher Faylor <cgf@redhat.com>
1480 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1482 (_initialize_check_for_gdb_ini): Ditto.
1484 2002-02-08 Martin M. Hunt <hunt@redhat.com>
1486 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1487 xaprintf -> xasprintf.
1489 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1491 * win32-nat.c: Remove use of printf and sprintf functions.
1493 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
1495 * arm-tdep.c (arm_frame_chain_valid): Make static.
1496 (arm_push_arguments): Likewise.
1497 (arm_gdbarch_init): New function.
1498 (_initialize_arm_tdep): Call it.
1499 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1500 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1501 (FRAME_CHAIN_VALID): Delete.
1502 (arm_frame_chain_valid): Delete declaration.
1503 (PUSH_ARGUMENTS): Delete.
1504 (arm_push_arguments): Delete declaration.
1505 (CALL_DUMMY_P): Delete.
1507 2002-02-08 Andrew Cagney <ac131313@redhat.com>
1508 Corinna Vinschen <vinschen@redhat.com>
1510 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1511 on builtin float types.
1513 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1515 * utils.c: Include <curses.h> before "bfd.h".
1516 * tui/tui-hooks.c: Likewise.
1517 * tui/tui.c: Likewise.
1518 * tui/tuiCommand.c: Likewise.
1519 * tui/tuiData.c: Likewise.
1520 * tui/tuiDataWin.c: Likewise.
1521 * tui/tuiDisassem.c: Likewise.
1522 * tui/tuiGeneralWin.c: Likewise.
1523 * tui/tuiIO.c: Likewise.
1524 * tui/tuiLayout.c: Likewise.
1525 * tui/tuiRegs.c: Likewise.
1526 * tui/tuiSource.c: Likewise.
1527 * tui/tuiSourceWin.c: Likewise.
1528 * tui/tuiStack.c: Likewise.
1529 * tui/tuiWin.c: Likewise.
1531 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
1533 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1534 to include space for pseudoregs as well. Update loops accordingly.
1535 (sh_fp_frame_init_saved_regs): Ditto.
1536 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1538 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1540 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1541 Add Richard Earnshaw to Arm maintainers.
1543 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1545 * defs.h (warning_begin): Delete declaration.
1547 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1550 2002-02-07 Michael Snyder <msnyder@redhat.com>
1552 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1553 Logic bug, remove misplaced else.
1555 2002-02-07 Klee Dienes <klee@apple.com>
1557 * fork-inferior.c (fork_inferior): Add '!' to the list of
1558 characters that need to be quoted when building a string for the
1559 shell. Quote '!' specifically with a backslash, since CSH chokes
1560 when trying to evaluate "str!str".
1562 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1564 * rdi-share/host.h: Only provide a typedef for bool if it is not
1567 2002-02-04 Michael Snyder <msnyder@redhat.com>
1569 * breakpoint.h (enum bptype): Add new overlay event bp type.
1570 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
1572 * breakpoint.c (create_internal_breakpoint): New function.
1573 (internal_breakpoint_number): Moved into create_internal_breakpoint.
1574 (create_longjmp_breakpoint): Use create_internal_breakpoint.
1575 (create_thread_event_breakpoint): Ditto.
1576 (create_solib_event_breakpoint): Ditto.
1577 (create_overlay_event_breakpoint): New function.
1578 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
1579 (update_breakpoints_after_exec): Delete and re-initialize
1580 overlay event breakpoints after an exec. Add FIXME comment
1581 about longjmp breakpoint.
1582 (print_it_typical): Ignore overlay event breakpoints.
1583 (print_one_breakpoint): Ditto.
1585 (bpstat_what): Do not stop for overlay event breakpoints.
1586 (delete_breakpoint): Don't delete overlay event breakpoints.
1587 (breakpoint_re_set_one): Delete the overlay event breakpoint.
1588 (breakpoint_re_set): Re-create overlay event breakpoint.
1590 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
1591 (overlay_manual_command): Disable overlay breakpoints.
1592 (overlay_off_command): Disable overlay breakpoints.
1594 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1596 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
1597 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
1598 to here from config/tm-arm.h.
1599 (coff_sym_is_thumb): Make static.
1600 (arm_elf_make_msymbol_special): New function.
1601 (arm_coff_make_msymbol_special): New function.
1602 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
1603 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
1604 (coff_sym_is_thumb): Delete declaration.
1605 (arm_elf_make_msymbol_special): Declare.
1606 (arm_coff_make_msymbol_special): Declare.
1607 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
1608 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
1610 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1612 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
1614 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1616 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
1617 * gdbarch.c gdbarch.h: Regenerate.
1618 * arch-utils.c (default_print_float_info): New function.
1619 * arch-utils.h (default_print_float_info): Prototype it.
1620 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
1621 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
1622 (PRINT_FLOAT_INFO): Document it.
1624 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
1625 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
1626 (PRINT_FLOAT_INFO): Define.
1628 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1630 * win32-nat.c (_initialize_check_for_gdb_ini):
1631 Add typecast to sprintf argument to suppress a warning.
1633 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
1635 * win32-nat.c (last_sig): Changed type of variable to target_signal,
1636 to allow easier handling of pass state.
1637 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
1638 that gives exception name and address.
1639 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
1640 and set last_sig value to ourstatus->value.sig. Some missing
1642 (child_continue): Correctly report continue_status.
1643 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
1644 TARGET_SIGNAL_0 (new default value).
1645 (child_resume): consider sig argument passed to decide if
1646 the exception should be passed to debuggee or not.
1648 2002-02-05 Michael Snyder <msnyder@redhat.com>
1650 * regcache.c (fetch_register): Call target_fetch_register
1651 only if we don't call FETCH_PSEUDO_REGISTER.
1652 (store_register): Call target_store_register only if we
1653 don't call STORE_PSEUDO_REGISTER.
1655 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
1657 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
1658 ELF_MAKE_MSYMBOL_SPECIAL.
1659 * gdbarch.c, gdbarch.h: Regenerate.
1660 * arch-utils.c (default_make_msymbol_special): New function.
1661 * arch-utils.h (default_make_msymbol_special): Export.
1662 * elfread.c (elf_symtab_read): Compile use of
1663 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
1665 * coffread.c (coff_symtab_read): Ditto, for
1666 COFF_MAKE_MSYMBOL_SPECIAL.
1668 2002-02-05 Jim Blandy <jimb@redhat.com>
1670 * solib-svr4.c (svr4_truncate_ptr): New function.
1671 (svr4_relocate_section_addresses): Do the address arithmetic with
1672 the appropriate truncation for target addresses, even when
1673 CORE_ADDR is larger than a target address.
1675 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1677 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
1680 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1682 * gdbserver/linux-low.c (kill_inferior): Remove commented out
1685 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1687 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
1689 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1691 * gdbserver/linux-low.c: Remove unused include files.
1693 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1695 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
1696 (read_inferior_memory): Use it.
1697 (write_inferior_memory): Likewise.
1699 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1701 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
1702 grubbing through sys_errlist.
1704 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1706 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
1708 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1709 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
1711 2002-02-04 Andrew Cagney <ac131313@redhat.com>
1713 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
1714 (do_sfunc, set_cmd_sfunc): New functions.
1716 * command.h (struct cmd_list_element): Add field func.
1717 * cli/cli-decode.h (struct cmd_list_element): Ditto.
1718 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
1719 * cli/cli-decode.h: Ditto.
1721 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
1722 (help_all, help_cmd_list): Ditto.
1723 (find_cmd, complete_on_cmdlist): Ditto.
1724 * top.c (execute_command): Ditto.
1726 * cli/cli-setshow.c (do_setshow_command): Call func instead of
1729 * infcmd.c (notice_args_read): Fix function signature.
1731 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
1732 * cli/cli-decode.c (add_set_cmd): Ditto.
1733 * utils.c (initialize_utils): Ditto.
1734 * maint.c (_initialize_maint_cmds): Ditto.
1735 * infrun.c (_initialize_infrun): Ditto.
1736 * demangle.c (_initialize_demangler): Ditto.
1737 * remote.c (add_packet_config_cmd): Ditto.
1738 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1739 * cris-tdep.c (_initialize_cris_tdep): Ditto.
1740 * proc-api.c (_initialize_proc_api): Ditto.
1741 * kod.c (_initialize_kod): Ditto.
1742 * valprint.c (_initialize_valprint): Ditto.
1743 * top.c (init_main): Ditto.
1744 * infcmd.c (_initialize_infcmd): Ditto.
1745 * corefile.c (_initialize_core): Ditto.
1746 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1747 * arch-utils.c (initialize_current_architecture): Ditto.
1748 (_initialize_gdbarch_utils): Ditto.
1749 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1751 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
1752 * wince.c (_initialize_inftarg): Ditto.
1753 * symfile.c (_initialize_symfile): Ditto.
1754 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1755 * language.c (_initialize_language): Ditto.
1756 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1758 2002-02-04 Michael Snyder <msnyder@redhat.com>
1760 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
1762 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1764 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
1765 Add rules for building the register data files.
1767 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1769 * regformats/regdat.sh: Add braces to the definition of
1770 expedite_regs_${arch}.
1772 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1774 * regformats/regdef.h (struct reg): Add comment describing the
1775 requirements for offset and size fields.
1777 2002-02-04 Andreas Schwab <schwab@suse.de>
1779 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
1780 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
1782 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
1784 * gdbarch.sh (copyright): Update years in generated header.
1785 (SMASH_TEXT_ADDRESS): Add rule.
1786 * gdbarch.h, gdbarch.c: Re-generate.
1787 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
1788 * dbxread.c: Likewise.
1789 * dwarfread.c: Likewise.
1790 * elfread.c: Likewise.
1791 * somread.c: Likewise.
1793 * arm-tdep.c (arm_smash_text_address): New function.
1794 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
1796 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1798 Add support for hardware watchpoints on win32 native.
1799 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
1800 CONTEXT_DEBUG_REGISTERS.
1801 (dr variable): New variable. Static array containing a local copy
1803 (debug_registers_changed): New variable. Reflects when debug registers
1804 are changed and need to be written to inferior.
1805 (debug_registers_used): New variable. Reflects when any debug register
1806 was set, used when new threads are created.
1807 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
1809 (thread_rec): Set dr array if id is the thread of current_event .
1810 (child_continue, child_resume): Change the debug registers for all
1811 threads if debug_registers_changed.
1812 (child_add_thread): Change the debug registers if debug_registers_used.
1813 * config/i386/cygwin.mh: Add use of i386-nat.o file.
1814 Link nm.h to new nm-cygwin.h file.
1815 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
1816 of hardware registers.
1818 2002-02-03 Andrew Cagney <ac131313@redhat.com>
1820 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
1821 Restore behavour broken by 2002-01-20 Andrew Cagney
1822 <ac131313@redhat.com> IEEE_FLOAT removal.
1824 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1826 * c-valprint.c (c_val_print): Pass a proper valaddr to
1827 cp_print_class_method.
1828 * valops.c (search_struct_method): If there is only one method
1829 and args is NULL, return that method.
1831 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1833 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1834 accessing tag_name directly.
1836 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1838 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1839 of accessing tag_name directly.
1841 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1844 * gdbtypes.c (replace_type): New function.
1845 * gdbtypes.h (replace_type): Add prototype.
1846 * stabsread.c (read_type): Use replace_type.
1848 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
1850 * Makefile.in (memattr.o): Add missing dependencies rule.
1852 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1854 * breakpoint.c (break_at_finish_command): Really export.
1855 (break_at_finish_at_depth_command): Ditto.
1856 (tbreak_at_finish_command): Ditto.
1857 * hppa-tdep.c: Include completer.h.
1858 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1859 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1861 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1863 * utils.c (do_write): New function.
1864 (error_stream): Rewrite combining the code from error_begin and
1866 (verror): Rewrite using error_stream.
1867 (error_begin): Delete function.
1869 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1871 * utils.c (error_begin): Make static.
1872 * defs.h (error_begin): Delete declaration.
1874 * linespec.c (cplusplus_error): Replace cplusplus_hint.
1875 (decode_line_1): Use cplusplus_error instead of error_begin,
1876 cplusplus_hint and return_to_top_level.
1877 * coffread.c (coff_symfile_read): Use error instead of error_begin
1878 and return_to_top_level.
1879 * infrun.c (default_skip_permanent_breakpoint): Ditto.
1881 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1883 * language.h (type_error, range_error): Make string parameter
1885 * language.c (warning_pre_print): Delete extern declaration.
1886 * dwarfread.c (warning_pre_print): Ditto.
1887 * language.c (type_error, range_error): Rewrite to use verror and
1888 vwarning instead of warning_begin.
1890 2002-02-01 Michael Snyder <msnyder@redhat.com>
1892 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1893 (set_ignore_count): Move misplaced comment back where it belongs.
1895 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1897 * command.h (NO_FUNCTION): Delete macro.
1898 * cli/cli-decode.h (NO_FUNCTION): Ditto.
1899 * top.c (execute_command): Replace NO_FUNCTION with NULL.
1900 * tracepoint.c (_initialize_tracepoint): Ditto.
1901 * cli/cli-decode.c (add_set_cmd): Ditto.
1902 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1904 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1906 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1907 Update ``this'' pointer when calling virtual functions.
1909 2002-02-01 Michael Snyder <msnyder@redhat.com>
1911 * breakpoint.c (create_temp_exception_breakpoint): Delete.
1912 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1914 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1916 * regformats/reg-arm.dat: New file.
1917 * regformats/reg-i386.dat: New file.
1918 * regformats/reg-ia64.dat: New file.
1919 * regformats/reg-m68k.dat: New file.
1920 * regformats/reg-mips.dat: New file.
1921 * regformats/reg-ppc.dat: New file.
1922 * regformats/reg-sh.dat: New file.
1923 * regformats/regdef.h: New file.
1924 * regformats/regdat.sh: New file.
1926 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
1928 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1929 (arm_frame_args_address, arm_frame_locals_address): New functions.
1930 (arm_frame_num_args): New function.
1931 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1932 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1933 (FRMA_NUM_ARGS): Call arm_frame_num_args.
1935 2002-01-31 Michael Snyder <msnyder@redhat.com>
1937 * breakpoint.c (break_at_finish_command): Export.
1938 (break_at_finish_at_depth_command): Export.
1939 (tbreak_at_finish_command): Export.
1940 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1941 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
1942 "tbreak" commands, which are HPPA specific.
1944 * printcmd.c (disassemble_command): Remove an ancient
1945 artifact of an old merge.
1947 * symfile.h (enum overlay_debugging_state):
1948 Define enum constant values for overlay mode.
1949 * symfile.c (overlay_debugging): Use enums instead of literals.
1950 (overlay_is_mapped, overlay_auto_command,
1951 overlay_manual_command): Ditto.
1953 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1954 breakpoint_here_p, breakpoint_inserted_here_p,
1955 breakpoint_thread_match, bpstat_stop_status,
1956 describe_other_breakpoints, check_duplicates, clear_command):
1957 Coding standard fixes.
1959 * target.c (target_xfer_memory): Add spaces, coding standard.
1960 (do_xfer_memory): Add missing line to trust-readonly
1961 code: check bfd SEC_READONLY flag for section.
1963 2002-01-31 Andrew Cagney <ac131313@redhat.com>
1965 * PROBLEMS: Fix typo, 5.1->5.1.1.
1967 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1969 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
1970 data symbols, since we search based on textlow and texthigh.
1971 (find_pc_sect_symtab): Likewise.
1973 2002-01-30 Andrew Cagney <ac131313@redhat.com>
1975 * defs.h (vwarning): Declare.
1976 * utils.c (vwarning): New function.
1977 (warning): Call vwarning.
1978 (warning_begin): Delete function.
1980 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
1981 the warning message.
1982 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
1985 2002-01-30 Michael Snyder <msnyder@redhat.com>
1987 * NEWS: Mention "set trust-readonly-sections" command.
1988 Mention generate-core-file command.
1990 2002-01-15 Michael Snyder <msnyder@redhat.com>
1992 * target.c: New command, "set trust-readonly-sections on".
1993 (do_xfer_memory): Honor the suggestion to trust readonly sections
1994 by reading them from the object file instead of from the target.
1995 (initialize_targets): Register command "set trust-readonly-sections".
1997 2002-01-29 Andrew Cagney <ac131313@redhat.com>
1999 * parse.c (target_map_name_to_register): Simplify, search regs and
2000 pseudo-regs using a single loop.
2002 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2004 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2006 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2008 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2009 * config/i386/i386v42mp.mh: Add i387-nat.o .
2010 * i386v4-nat.c: Include i387-nat.h.
2011 (supply_fpregset): Use i387_supply_fsave.
2012 (fill_fpregset): Use i387_fill_fsave.
2014 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2016 * arm-tdep.c (arm_call_dummy_words): Define.
2017 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2018 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2019 (CALL_DUMMY_WORDS): Define.
2020 (arm_call_dummy_words): Declare.
2021 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2022 (arm_linux_call_dummy_words): Declare.
2024 2002-01-30 Andreas Schwab <schwab@suse.de>
2026 * m68klinux-nat.c: Fix last change to use regcache_collect
2027 instead of referencing registers[] directly.
2029 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2031 * parse.c (target_map_name_to_register): Delete code wrapped in
2032 #ifdef REGISTER_NAME_ALIAS_HOOK.
2034 2002-01-28 Michael Snyder <msnyder@redhat.com>
2036 * regcache.c (legacy_read_register_gen): Need to be able to
2037 read pseudo-register as well as real register.
2038 (legacy_write_register_gen): Ditto.
2040 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2042 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2043 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2044 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2045 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2046 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2047 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2048 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2049 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2050 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2051 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2052 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2053 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2054 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2055 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2056 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2057 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2058 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2059 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2060 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2061 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2063 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2065 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2066 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2067 (initialize_current_architecture): Update target_byte_order using
2068 information from BFD.
2069 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2070 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2072 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2074 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2075 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2077 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2078 #ifdef INVALID_FLOAT.
2079 * infcmd.c (do_registers_info): Ditto.
2080 * values.c (unpack_double): Ditto. Add comment.
2082 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2083 already commented out.
2085 2002-01-26 Andreas Schwab <schwab@suse.de>
2087 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2088 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2089 registers and add support for PTRACE_GETREGS.
2091 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2093 GDB 5.1.1 released from 5.1 branch.
2094 * NEWS: Add 5.1.1 news.
2095 * README: Sync with 5.1 branch.
2097 2002-01-23 Fred Fish <fnf@redhat.com>
2099 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2100 stabstring on initial malloc. Reallocing will copy it for us,
2103 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2105 * Makefile.in (hpread_h): Delete.
2106 (HFILES_NO_SRCDIR): Remove hpread.h.
2107 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2108 (hpread.o): Update dependencies.
2109 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2111 * hp-psymtab-read.c: Remove file.
2112 * hp-symtab-read.c: Remove file.
2113 * hpread.h: Remove file.
2115 * hpread.c: Merge all contents of hp-psymtab-read.c,
2116 hp-symtab-read.c and hpread.h into this file, as it was prior to
2119 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2120 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2121 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2122 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2124 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2126 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2127 fill_gregset): Call gdbarch_tdep() just once, assign result to
2128 variable and use that, instead of calling the function several
2131 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2133 * configure.host: Accept sparcv9 as alias for sparc64.
2134 * configure.tgt: Likewise.
2136 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2138 * solib-aix5.c (build_so_list_from_mapfile)
2139 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2140 arguments is not reversed.
2141 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2142 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2144 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2146 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2147 modified version of obsolete sh_fetch_pseudo_register.
2148 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2149 (sh4_register_read): New function.
2150 (sh_pseudo_register_write): New function. Renamed and modified
2151 version of obsolete sh_store_pseudo_register.
2152 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2153 (sh4_register_write): New function.
2154 (sh_gdbarch_init): Remove setting of gdbarch function
2155 fetch_pseudo_register and store_pseudo_register. Remove setting of
2156 register_convert_to_raw, register_convert_to_virtual,
2157 register_convertible.
2158 (sh_sh4_register_convertible): Delete. No longer needed. All is
2159 taken care by architecture specific functions
2160 register_read/register_write.
2161 (sh_sh4_register_convert_to_virtual): Make static.
2162 (sh_sh4_register_convert_to_raw): Ditto.
2164 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2166 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2167 (floatformat_is_nan, floatformat_mantissa): Ditto.
2169 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2170 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2171 builtin_type_ieee_double_little,
2172 builtin_type_ieee_double_littlebyte_bigword,
2173 builtin_type_m68881_ext, builtin_type_i960_ext,
2174 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2175 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2176 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2177 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2179 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2181 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2182 parameter. Set frameless flag if it exists and depended of
2183 whether the scanned function is frameless or not.
2184 (xstormy16_skip_prologue): If function is frameless, return
2185 result of xstormy16_scan_prologue().
2186 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2189 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2191 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2192 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2193 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2194 sh_sh4_register_byte, sh_sh4_register_raw_size,
2195 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2196 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2197 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2198 sh_store_pseudo_register, sh_do_pseudo_register): Call
2199 gdbarch_tdep() just once, assign result to variable and use that,
2200 instead of calling the function several times.
2202 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2204 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2205 macros instead of LAST_FPU_CTRL_REGNUM.
2206 (store_register): Likewise.
2208 2002-01-21 Jim Blandy <jimb@redhat.com>
2210 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2211 is up-to-date before running the program, not just when a program
2214 2002-01-21 Fred Fish <fnf@redhat.com>
2216 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2217 when we have found all instructions we are looking for.
2219 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2221 * arm-tdep.c (arm_register_name): New function.
2222 (arm_registers_names): Make static.
2223 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2224 (arm_register_name): Declare.
2225 (REGISTER_NAME): Use it.
2227 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2228 Kevin Buettner <kevinb@redhat.com>
2230 Convert arm targets to new FRAME interface.
2231 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2232 (arm_frame_find_save_regs): Delete.
2233 (arm_frame_init_saved_regs): New.
2234 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2235 Allocate extra_info as required. Convert all uses of fsr.regs
2236 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2238 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2239 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2240 (check_prologue_cache, save_prologue_cache): Likewise.
2241 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2242 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2243 (FRAME_FIND_SAVED_REGS): Delete.
2244 (arm_frame_find_saved_regs): Delete prototype.
2245 (arm_frame_init_saved_regs): New prototype.
2246 (FRAME_INIT_SAVED_REGS): Define.
2248 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2250 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2252 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2254 From Jeff Law <law@redhat.com>:
2255 * infttrace.c: Include <sys/pstat.h>.
2256 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2257 exec file if the ttrace equivalent fails.
2259 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2261 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2262 (closeLogFile): Ditto.
2264 2002-01-20 Michael Chastain <mec@shout.net>
2266 * top.c (print_gdb_version): Bump copyright year to 2002.
2268 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2270 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2271 Zannoni and Eli Zaretskii.
2273 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2275 * buildsym.c: Update copyright years.
2276 * c-typeprint.c: Likewise.
2277 * dwarf2read.c: Likewise.
2278 * f-typeprint.c: Likewise.
2279 * gdbtypes.c: Likewise.
2280 * gdbtypes.h: Likewise.
2281 * hp-symtab-read.c: Likewise.
2282 * hpread.c: Likewise.
2283 * mdebugread.c: Likewise.
2284 * p-typeprint.c: Likewise.
2286 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2288 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2289 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2290 byte-order selectable.
2291 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2292 * arch-utils.c: Ditto.
2293 (set_endian): Ditto.
2294 (set_endian_from_file): Ditto.
2295 * gdbserver/low-sim.c (create_inferior): Ditto.
2296 * gdbarch.sh: Ditto.
2297 * gdbarch.h: Re-generate.
2298 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2299 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2300 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2301 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2302 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2303 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2304 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2305 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2307 * config/mips/tm-wince.h: Remove #undef of macro
2308 TARGET_BYTE_ORDER_SELECTABLE.
2309 * config/sh/tm-wince.h: Ditto.
2311 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2313 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2314 member function fields. Add accessor macro
2315 TYPE_FN_FIELD_ARTIFICIAL.
2316 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2317 * c-typeprint.c (c_type_print_base): Skip artificial member
2320 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2322 * f-typeprint.c: Delete unused function f_type_print_args.
2323 * p-typeprint.c: Delete unused function pascal_type_print_args.
2325 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2327 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2328 comment. Add ``artificial'' to ``union field_location''.
2330 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2332 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2333 * mdebugread.c (parse_symbol): Likewise.
2334 * stabsread.c (define_symbol): Likewise.
2335 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2336 initializing TYPE_FIELD_BITPOS to n (obsolete).
2337 (hpread_doc_function_type): Likewise.
2338 * hpread.c (hpread_function_type): Likewise.
2340 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2342 * configure.in (host_makefile_frag): Only require a host makefile
2343 fragment when a native build.
2344 * configure: Re-generate.
2346 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2348 * doublest.h (floatformat_from_type): Declare.
2349 * doublest.c (floatformat_from_type): New function.
2350 (convert_typed_floating): Use.
2352 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2353 call to function floatformat_from_type.
2355 * gdbarch.sh (IEEE_FLOAT): Delete.
2356 * gdbarch.h, gdbarch.c: Re-generate.
2357 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2358 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2359 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2360 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2361 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2362 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2363 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2364 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2365 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2366 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2367 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2368 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2370 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2371 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2372 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2373 * sh-tdep.c (sh_gdbarch_init): Ditto.
2374 * mips-tdep.c (mips_gdbarch_init): Ditto.
2375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2376 * cris-tdep.c (cris_gdbarch_init): Ditto.
2378 2002-01-20 Jiri Smid <smid@suse.cz>
2380 * configure.host, configure.tgt: Support x86-64.
2381 * NEWS: Note new target x86-64.
2383 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2384 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2385 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2386 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2387 x86-64-linux-nat.o): Fix dependencies.
2389 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2391 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2392 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2393 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2394 * config/sparc/xm-sun4os4.h: Delete file.
2395 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2397 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2399 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2400 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2401 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2402 * config/i386/i386lynx.mh (XM_FILE): Delete.
2403 * config/rs6000/xm-rs6000ly.h: Delete file.
2404 * config/sparc/xm-sparclynx.h: Delete file.
2405 * config/m68k/xm-m68klynx.h: Delete file.
2406 * config/i386/xm-i386lynx.h: Delete file.
2407 * config/xm-lynx.h: Delete file.
2408 * config/djgpp/fnchange.lst: Update.
2410 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2412 * alpha-tdep.c (alpha_register_byte): New function.
2413 (alpha_register_raw_size): Ditto.
2414 (alpha_register_virtual_size): Ditto.
2415 (alpha_skip_prologue_internal): Renamed from
2416 alpha_skip_prologue.
2417 (alpha_skip_prologue): New version that calls
2418 alpha_skip_prologue_internal.
2419 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2420 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2421 second argument from alpha_skip_prologue.
2422 (REGISTER_BYTE): Use alpha_register_byte.
2423 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2424 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2425 (FRAMELESS_FUNCTION_INVOCATION): Use
2426 generic_frameless_function_invocation_not.
2427 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2428 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2430 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2432 * config/mips/xm-news-mips.h: Delete file.
2433 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2435 * config/m88k/xm-m88k.h: Delete file.
2436 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2437 * config/m88k/xm-delta88v4.h: Ditto.
2438 * config/m88k/xm-delta88.h: Ditto.
2440 * config/alpha/xm-fbsd.h: Delete file.
2441 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2443 * config/sparc/xm-sparc.h: Delete file.
2444 * Makefile.in (xm-sun4os4.h): Delete dependency.
2445 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2446 * config/sparc/xm-sun4os4.h: Ditto.
2447 * config/sparc/xm-linux.h: Ditto.
2449 * config/i386/xm-windows.h: Delete file.
2451 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2453 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2454 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2456 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2458 * alpha-tdep.c (alpha_call_dummy_words): New.
2459 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2460 (CALL_DUMMY_P): Define.
2461 (CALL_DUMMY_WORDS): Define.
2462 (SIZEOF_CALL_DUMMY_WORDS): Define.
2464 2002-01-19 Per Bothner <per@bothner.com>
2466 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2467 isn't NULL, which can happen with some gcj-3.x-produced code.
2469 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2471 * alpha-tdep.c (alpha_register_virtual_type): New function.
2472 (alpha_init_frame_pc_first): Ditto.
2473 (alpha_fix_call_dummy): Ditto.
2474 (alpha_store_struct_return): Ditto.
2475 (alpha_extract_struct_value_address): Ditto.
2476 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2477 alpha_register_virtual_type.
2478 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2479 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2480 alpha_extract_struct_value_address.
2481 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2482 (INIT_FRAME_PC): Use init_frame_pc_noop.
2483 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2485 2002-01-19 Mark Kettenis <kettenis@gnu.org>
2487 * i386gnu-nat.c: Include "i386-tdep.h".
2488 (fetch_fpregs): Simplify code dealing with uninitialized floating
2489 point states such that it doesn't require FP7_REGNUM.
2491 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2493 * alpha-tdep.c (frame_extra_info): New.
2494 (alpha_find_saved_regs): Make static. Use
2496 (alpha_frame_init_saved_regs): New function.
2497 (alpha_frame_saved_pc): Use frame->extra_info.
2498 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2499 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2500 (init_extra_frame_info): Rename to...
2501 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
2502 (alpha_print_extra_frame_info): New function.
2503 (alpha_frame_locals_address): Ditto.
2504 (alpha_frame_args_address): Ditto.
2505 (alpha_pop_frame): Use frame->extra_info.
2506 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2507 alpha_frame_args_address.
2508 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2509 (alpha_find_saved_regs): Remove prototype.
2510 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2511 (EXTRA_FRAME_INFO): Remove.
2512 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2513 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2515 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2517 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2518 (alpha_cannot_fetch_register): Ditto.
2519 (alpha_cannot_store_register): Ditto.
2520 (alpha_register_convertible): Ditto.
2521 (alpha_use_struct_convention): Ditto.
2522 * config/alpha/tm-alpha.h: Update copyright years.
2523 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2524 (INNER_THAN): Use core_addr_lessthan.
2525 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2526 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2527 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2528 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2529 (FRAME_CHAIN): Remove unnecessary cast.
2531 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2533 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2536 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2538 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
2539 * monitor.c, remote-array.c, remote-bug.c: Ditto.
2540 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2541 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2542 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2543 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2544 * x86-64-linux-nat.c: Ditto.
2546 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2548 * alpha-tdep.c (alpha_register_name): New function.
2549 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2550 (REGISTER_NAME): Define.
2552 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2554 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2556 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2558 * alpha-tdep.c: Update copyright years.
2559 (alpha_next_pc): New function.
2560 (alpha_software_single_step): Ditto.
2561 * config/alpha/tm-alpha.h: Add prototype for
2562 alpha_software_single_step.
2564 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2566 * alphabsd-nat.c: Update copyright years.
2567 (fill_gregset): Use regcache_collect.
2568 (fill_fpregset): Likewise.
2569 (fetch_inferior_registers): Only fetch integer registers
2570 if requested to do so.
2571 (store_inferior_registers): Only store integer registers
2572 if requested to do so.
2574 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2576 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
2577 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
2578 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
2579 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
2580 * config/alpha/fbsd.mh (XDEPFILES): Delete.
2581 * config/arm/linux.mh (XDEPFILES): Delete.
2582 * config/arm/nbsd.mh (XDEPFILES): Delete.
2583 * config/i386/i386dgux.mh (XDEPFILES): Delete.
2584 * config/i386/i386sol2.mh (XDEPFILES): Delete.
2585 * config/i386/i386m3.mh (XDEPFILES): Delete.
2586 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
2587 * config/i386/i386gnu.mh (XDEPFILES): Delete.
2588 * config/i386/fbsd.mh (XDEPFILES): Delete.
2589 * config/i386/i386bsd.mh (XDEPFILES): Delete.
2590 * config/i386/i386sco5.mh (XDEPFILES): Delete.
2591 * config/i386/i386v4.mh (XDEPFILES): Delete.
2592 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
2593 * config/i386/i386sco4.mh (XDEPFILES): Delete.
2594 * config/i386/i386aix.mh (XDEPFILES): Delete.
2595 * config/i386/go32.mh (XDEPFILES): Delete.
2596 * config/i386/cygwin.mh (XDEPFILES): Delete.
2597 * config/i386/i386lynx.mh (XDEPFILES): Delete.
2598 * config/i386/i386mach.mh (XDEPFILES): Delete.
2599 * config/i386/i386v32.mh (XDEPFILES): Delete.
2600 * config/i386/linux.mh (XDEPFILES): Delete.
2601 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
2602 * config/i386/ncr3000.mh (XDEPFILES): Delete.
2603 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
2604 * config/i386/i386sco.mh (XDEPFILES): Delete.
2605 * config/i386/i386v.mh (XDEPFILES): Delete.
2606 * config/i386/nbsd.mh (XDEPFILES): Delete.
2607 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
2608 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
2609 * config/i386/symmetry.mh (XDEPFILES): Delete.
2610 * config/i386/obsd.mh (XDEPFILES): Delete.
2611 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
2612 * config/ia64/linux.mh (XDEPFILES): Delete.
2613 * config/ia64/aix.mh (XDEPFILES): Delete.
2614 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
2615 * config/m68k/dpx2.mh (XDEPFILES): Delete.
2616 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
2617 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
2618 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
2619 * config/m68k/linux.mh (XDEPFILES): Delete.
2620 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
2621 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
2622 * config/m68k/nbsd.mh (XDEPFILES): Delete.
2623 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
2624 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
2625 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
2626 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
2627 * config/m88k/delta88.mh (XDEPFILES): Delete.
2628 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
2629 * config/m88k/m88k.mh (XDEPFILES): Delete.
2630 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
2631 * config/mips/linux.mh (XDEPFILES): Delete.
2632 * config/mips/irix6.mh (XDEPFILES): Delete.
2633 * config/mips/irix5.mh (XDEPFILES): Delete.
2634 * config/mips/irix4.mh (XDEPFILES): Delete.
2635 * config/mips/irix3.mh (XDEPFILES): Delete.
2636 * config/mips/decstation.mh (XDEPFILES): Delete.
2637 * config/mips/mipsm3.mh (XDEPFILES): Delete.
2638 (NATDEPFILES): Move core-aout.o to here.
2639 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
2640 * config/pa/hpux1020.mh (XDEPFILES): Delete.
2641 * config/pa/hppabsd.mh (XDEPFILES): Delete.
2642 * config/pa/hppahpux.mh (XDEPFILES): Delete.
2643 * config/pa/hpux11w.mh (XDEPFILES): Delete.
2644 * config/pa/hppaosf.mh (XDEPFILES): Delete.
2645 * config/pa/hpux11.mh (XDEPFILES): Delete.
2646 * config/powerpc/aix.mh (XDEPFILES): Delete.
2647 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
2648 * config/powerpc/linux.mh (XDEPFILES): Delete.
2649 * config/romp/rtbsd.mh: Rename XDEPFILES.
2650 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
2651 * config/rs6000/aix4.mh (XDEPFILES): Delete.
2652 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
2653 * config/s390/s390.mh (XDEPFILES): Delete.
2654 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
2655 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
2656 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
2657 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
2658 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
2659 * config/sparc/nbsd.mh (XDEPFILES): Delete.
2660 * config/sparc/linux.mh (XDEPFILES): Delete.
2661 * config/vax/vaxult.mh (XDEPFILES): Delete.
2662 * config/vax/vaxult2.mh (XDEPFILES): Delete.
2663 * Makefile.in (DEPFILES): Remove XDEPFILES.
2665 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2667 * utils.c (internal_verror): Fix comments, default is yes not no.
2668 Update queries to match. Default to quit and dump core.
2670 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2672 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
2674 * defs.h, event-top.c, gdbcmd.h: Ditto.
2675 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
2676 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
2677 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
2678 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
2679 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
2680 * mi/mi-main.c:Ditto.
2682 * stack.c, symfile.c: Update copyright.
2684 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2686 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
2687 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
2688 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
2689 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2691 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2693 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
2694 * gdbserver/low-lynx.c (myattach): Likewise.
2695 * gdbserver/low-nbsd.c (myattach): Likewise.
2696 * gdbserver/low-sim.c (myattach): Likewise.
2697 * gdbserver/low-sparc.c (myattach): Likewise.
2698 * gdbserver/low-sun3.c (myattach): Likewise.
2700 * gdbserver/low-linux.c (myattach): New function.
2702 * gdbserver/server.c (attach_inferior): New function.
2703 (main): Handle "--attach".
2705 2002-01-16 Andrew Cagney <ac131313@redhat.com>
2707 * MAINTAINERS (language support): Daniel Jacobwitz is C++
2710 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
2712 * c-typeprint.c (is_type_conversion_operator): Add additional
2713 check for non-conversion operators.
2715 2002-01-15 Michael Snyder <msnyder@redhat.com>
2717 * linux-proc.c: Add "info proc" command, a la procfs.c.
2718 (read_mapping): New function, abstract and re-use code.
2719 (linux_find_memory_regions): Use new func read_mapping.
2720 (linux_info_proc_cmd): New function, implement "info proc".
2721 (_initialize_linux_proc): Add new command "info proc".
2723 2002-01-15 Michael Snyder <msnyder@redhat.com>
2725 * symfile.c (generic_load): Use bfd_map_over_sections method
2726 instead of manipulating bfd structure members directly.
2727 (add_section_size_callback): New function, bfd sections callback
2728 used by generic_load.
2729 (load_sections_callback): New function, bfd sections callback
2730 used by generic_load.
2732 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
2734 [Based on work by Jim Blandy]
2735 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
2736 (builtin_type_vec128): Export.
2737 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
2739 (builtin_type_vec128): New builtin type for 128 bit vector
2741 (build_gdbtypes): Initialize builtin_type_v16qi and
2742 builtin_type_v8hi. Create the vec128 register builtin type
2744 (build_builtin_type_vec128): New function.
2745 (_initialize_gdbtypes): Register builtin_type_v16qi and
2746 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
2747 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
2748 AltiVec register to new builtin type.
2750 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
2752 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
2755 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2757 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
2758 CLEAN_UP_REGISTER_VALUE.
2759 * regcache.c (supply_register): Update only call.
2761 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2763 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2764 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2765 a29k-*-vxworks* targets as obsolete.
2767 2002-01-14 Michael Snyder <msnyder@redhat.com>
2769 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
2770 until we can resolve portability issues.
2771 * gregset.h: Remove references to fpxregs.
2772 * gcore.c (gcore_command): Initialize note_sec to NULL.
2774 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2776 * signals.c (target_signal_to_name): Rewrite. Only use
2777 signals[].name when in bounds and non-NULL.
2779 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2781 From Petr Ledvina <ledvinap@kae.zcu.cz>:
2782 * signals.c (target_signal_to_name): Verify that SIG is within the
2783 bounds of the signals array.
2785 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2787 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
2789 2002-01-13 Keith Seitz <keiths@redhat.com>
2791 * stack.c (print_frame_info_base): Print the frame's pc
2792 only if when print_frame_info_listing_hook is not defined.
2794 2002-01-13 Keith Seitz <keiths@redhat.com>
2796 * varobj.c (varobj_set_value): Make sure that there were no
2797 errors evaluating the object before attempting to set its
2799 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
2800 so this offset adjustment is no longer necessary.
2801 (create_child): Don't set the error flag if the child is
2803 (value_of_child): If value_fetch_lazy fails, return NULL
2804 so that callers will be notified that an error occurred.
2805 (c_value_of_variable): Delay check of variable's validity
2806 until later. We actually want all structs and unions to have
2808 Do not return "???" for variables which could not be evaluated.
2809 This error condition must be returned to the caller so that it
2810 can get the error condition from gdb.
2811 (cplus_name_of_child): Adjust index for vptr before figuring
2812 out the name of the child.
2813 (cplus_value_of_child): If a child's (real) parent is not valid,
2814 don't even bother trying to give a value for it. Just return
2815 an error. Change all instances in this function.
2816 (cplus_type_of_child): If our parent is one of the "fake"
2817 parents, we need to get at the type of the real parent, and
2818 derive the child's true type using this information.
2820 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2822 From 2002-01-09 John Marshall <johnm@falch.net>:
2823 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
2824 sources.redhat.com, and tweak some related URLs which had
2825 suffered from linkrot.
2827 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2830 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
2831 structures passed in registers.
2833 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
2835 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2836 white space which prevented compilation. Reported by DSK
2837 <dsk@student.unsw.edu.au>.
2839 2002-01-11 Michael Snyder <msnyder@redhat.com>
2841 * symfile.c (build_section_addr_info_from_section_tab):
2842 Use bfd access method instead of manipulating bfd directly.
2843 (syms_from_objfile): Ditto.
2844 (simple_overlay_update_1): Ditto.
2845 (simple_overlay_update): Ditto.
2846 (generic_load): Ditto.
2847 (overlay_unmapped_address): FIXME comment, bfd access methods.
2848 (sections_overlap): FIXME comment, bfd access methods.
2849 (pc_in_mapped_range): FIXME comment, bfd access methods.
2850 (pc_in_unmapped_range): FIXME comment, bfd access methods.
2851 (section_is_mapped): FIXME comment, bfd access methods.
2852 (section_is_overlay): FIXME comment, bfd access methods.
2854 * symfile.c (generic_load): Whitespace and long line cleanups.
2855 Remove duplicate variable, change several local variables to
2856 more appropriate data types.
2857 (print_transfer_performance): Use %lu instead of %ld for ulongs.
2859 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2862 * language.c (longest_local_hex_string_custom): Use phex_nz to
2863 convert NUM to a hex string.
2865 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
2867 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2869 Update Copyright year.
2871 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2873 * language.c (longest_raw_hex_string): Delete unused function.
2875 2002-01-11 Petr Sorfa <petrs@caldera.com>
2877 * MAINTAINERS (write-after-approval): Add myself.
2878 * dwarf2read.c (read_tag_string_type): Handling of
2880 (read_tag_string_type): FORTRAN fix to prevent propagation of
2882 (set_cu_language): Handling of DW_LANG_Fortran95
2884 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2886 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2887 GETPID(inferior_ptid).
2888 (store_inferior_registers): Likewise.
2890 2002-01-10 Jason Merrill <jason@redhat.com>
2892 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2895 2002-01-10 Andrew Cagney <ac131313@redhat.com>
2897 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2898 and bfd/elf32-sh-nbsd.c.
2900 2002-01-10 Michael Snyder <msnyder@redhat.com>
2902 * NEWS: Mention --pid and corefile/proc-id behavior change.
2904 * Makefile.in: Add rules for gcore.o and linux-proc.o.
2905 * gcore.c: Include cli/cli-decode.h instead of command.h.
2907 * main.c (captured_main): Add new command line option "--pid".
2908 If the second command line argument (following the symbol-file)
2909 begins with a digit, try to attach to it before trying to open
2911 (print_gdb_help): Document the "--pid" argument.
2913 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
2915 * completer.c (command_completer): New function.
2917 * completer.h <command_completer>: Add prototype.
2919 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2920 completer for the "help" command.
2922 2002-01-09 Jason Merrill <jason@redhat.com>
2924 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2926 2002-01-09 Michael Snyder <msnyder@redhat.com>
2928 * i386-linux-nat.c (fill_fpxregset): Make global.
2929 (store_fpxregset): Ditto.
2931 * gregset.h (gdb_fpxregset_t): Define.
2932 (supply_fpxregset): Prototype.
2933 (fill_fpxregset): Prototype.
2935 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2937 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2939 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2940 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2941 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2943 2002-01-09 Andrew Cagney <ac131313@redhat.com>
2945 * MAINTAINERS: Update target maintainer rules so that any
2946 Maintainer can approve a tested patch for a maintenance-only
2949 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2951 * MAINTAINERS (write-after-approval): Add myself.
2953 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
2956 2002-01-08 Michael Snyder <msnyder@redhat.com>
2958 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
2959 real name of the executable, rather than the /proc name.
2961 2002-01-03 Michael Snyder <msnyder@redhat.com>
2963 Implement a "generate-core-file" command in gdb, save target state.
2964 * gcore.c: New file. Implement new command 'generate-core-file'.
2965 Save a corefile image of the current state of the inferior.
2966 * linux-proc.c: Add linux-specific code for saving corefiles.
2967 * target.h (struct target_ops): Add new target vectors for saving
2968 corefiles; to_find_memory_regions and to_make_corefile_notes.
2969 (target_find_memory_regions): New macro.
2970 (target_make_corefile_notes): New macro.
2971 * target.c (update_current_target): Inherit new target methods.
2972 (dummy_find_memory_regions): New place-holder method.
2973 (dummy_make_corefile_notes): New place-holder method.
2974 (init_dummy_target): Initialize new dummy target vectors.
2975 * exec.c (exec_set_find_memory_regions): New function.
2976 Allow the exec_ops vector for memory regions to be taken over.
2977 (exec_make_note_section): New function, target vector method.
2978 * defs.h (exec_set_find_memory_regions): Export prototype.
2979 * procfs.c (proc_find_memory_regions): New function, corefile method.
2980 (procfs_make_note_section): New function, corefile method.
2981 (init_procfs_ops): Set new target vector pointers.
2982 (find_memory_regions_callback): New function.
2983 (procfs_do_thread_registers): New function.
2984 (procfs_corefile_thread_callback): New function.
2985 * sol-thread.c (sol_find_memory_regions): New function.
2986 (sol_make_note_section): New function.
2987 (init_sol_thread_ops): Initialize new target vectors.
2988 * inftarg.c (inftarg_set_find_memory_regions): New function.
2989 Allow to_find_memory_regions vector to be taken over.
2990 (inftarg_set_make_corefile_notes): New function.
2991 Allow to_make_corefile_notes vector to be taken over.
2992 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
2993 interface layer if not target_has_execution (may be a corefile).
2994 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
2995 * config/sparc/sun4sol2.mh: Ditto.
2996 * config/alpha/alpha-linux.mh: Ditto.
2997 * config/arm/linux.mh: Ditto.
2998 * config/i386/x86-64linux.mh: Ditto.
2999 * config/ia64/linux.mh: Ditto.
3000 * config/m68k/linux.mh: Ditto.
3001 * config/mips/linux.mh: Ditto.
3002 * config/powerpc/linux.mh: Ditto.
3003 * config/sparc/linux.mh: Ditto.
3005 2002-01-07 Michael Snyder <msnyder@redhat.com>
3007 * arm-linux-nat.c: Remove references to regcache.c internal data
3008 (registers[] and register_valid[]).
3010 2002-01-07 Michael Snyder <msnyder@redhat.com>
3012 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3013 so that attaching to a pid will automatically read the process's
3014 symbol file and shlibs.
3015 * Makefile.in: Add rule for linux-proc.o.
3016 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3017 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3018 * config/arm/linux.mh: Ditto.
3019 * config/i386/linux.mh: Ditto.
3020 * config/i386/x86-64linux.mh: Ditto.
3021 * config/ia64/linux.mh: Ditto.
3022 * config/m68k/linux.mh: Ditto.
3023 * config/mips/linux.mh: Ditto.
3024 * config/powerpc/linux.mh: Ditto.
3025 * config/sparc/linux.mh: Ditto.
3027 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3029 * win32-nat.c: Add i386-tdep.h dependency.
3031 2002-01-07 Michael Snyder <msnyder@redhat.com>
3033 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3034 instead of bfd_get_arch_size. Don't bail out just because
3035 there's no exec_bfd.
3037 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3038 * p-valprint.c (pascal_object_print_value): Ditto.
3039 * somread.c (som_symtab_read): Ditto.
3040 * symfile.c (simple_free_overlay_region_table): Ditto.
3041 * valops.c (value_assign): Ditto.
3043 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3044 use tilde_expand and strerror for opening save-tracepoints file.
3046 * thread-db.c (thread_db_new_objfile): Indendation fix.
3048 * infptrace.c (GDB_MAX_ALLOCA): New define.
3049 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3050 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3051 can be overridden with whatever value is appropriate to the host).
3052 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3053 alloca to allocate potentially large buffer.
3054 * rs6000-nat.c (child_xfer_memory): Ditto.
3055 * symm-nat.c (child_xfer_memory): Ditto.
3056 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3058 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3060 From Nick Clifton <nickc@redhat.com>
3061 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3063 2002-01-07 Michael Snyder <msnyder@redhat.com>
3065 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3066 Don't use exec_bfd if it's NULL.
3068 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3070 * valops.c (value_arg_coerce): Fix formatting.
3072 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3074 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3077 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3079 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3080 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3081 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3082 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3083 z8k-coff have not been multi-arched. Update z8k-coff build
3086 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3088 * MAINTAINERS: Mark a29k target as obsolete.
3089 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3090 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3092 * NEWS: Note that a29k targets are obsolete.
3093 * a29k-tdep.c: Mark as obsolete.
3094 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3095 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3096 a29k-*-vxworks* targets as obsolete.
3097 * remote-adapt.c: Obsolete.
3098 * remote-eb.c: Obsolete.
3099 * remote-mm.c: Obsolete.
3100 * remote-udi.c: Obsolete.
3101 * config/a29k/a29k-udi.mt: Obsolete.
3102 * config/a29k/a29k.mt: Obsolete.
3103 * config/a29k/tm-a29k.h: Obsolete.
3104 * config/a29k/tm-vx29k.h: Obsolete.
3105 * config/a29k/vx29k.mt: Obsolete.
3107 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3109 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3110 with BFD_ENDIAN_BIG.
3112 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3114 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3115 * configure, config.in: Re-generate.
3116 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3117 * defs.h: Do not include <endian.h>.
3119 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3121 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3122 * config.in: Regenerate.
3123 * configure.in: Update copyright years.
3124 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3125 * configure: Regenerate.
3126 * i386bsd-nat.c: Update copyright years.
3127 (fill_gregset): Use regcache_collect.
3128 (fetch_inferior_registers): Only fetch integer registers
3129 if requested to do so. Add support for XMM registers
3130 using PT_GETXMMREGS.
3131 (store_inferior_registers): Only store integer registers
3132 if requested to do so. Add support for XMM registers
3133 using PT_SETXMMREGS.
3134 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3135 (store_inferior_registers): Remove.
3136 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3137 (fetch_elfcore_registers): New function.
3138 (i386nbsd_elfcore_fns): New.
3139 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3140 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3142 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3143 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3144 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3145 * config/i386/tm-nbsd.h: Update copyright years.
3146 (HAVE_SSE_REGS): Define.
3147 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3148 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3149 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3150 (SIGCONTEXT_PC_OFFSET): Remove.
3151 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3153 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3155 * configure.tgt: Remove powerpc-*-macos* target.
3156 * config/m68k/xm-mpw.h: Delete file.
3157 * config/xm-mpw.h: Delete file.
3158 * ser-mac.c: Delete file.
3159 * mpw-make.sed: Delete file.
3160 * mpw-config.in: Delete file.
3161 * mac-xdep.c: Delete file.
3162 * mac-gdb.r: Delete file.
3163 * mac-defs.h: Delete file.
3164 * mac-nat.c: Delete file.
3165 * config/powerpc/macos.mh: Delete file.
3166 * config/powerpc/macos.mt: Delete file.
3167 * config/powerpc/nm-macos.h: Delete file.
3168 * config/powerpc/tm-macos.h: Delete file.
3169 * source.c (openp, open_source_file): Remove obsolete code.
3170 * top.c (gdb_readline): Ditto.
3171 * utils.c (query): Ditto.
3172 * event-top.c (display_gdb_prompt): Ditto.
3173 * Makefile.in (ser-mac.o): Delete obsolete target.
3176 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3178 * defs.h (BIG_ENDIAN): Delete macro definition.
3179 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3180 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3181 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3182 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3183 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3184 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3185 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3186 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3187 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3188 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3189 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3190 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3191 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3192 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3193 * gdbarch.c: Re-generate.
3195 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3197 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3200 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3202 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3204 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3206 * value.h (value_ptr): Delete typedef.
3208 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3210 * i386nbsd-nat.c: Update copyright years.
3211 Include i386-tdep.h.
3213 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3215 * stabsread.c: Update copyright years.
3217 From Debashis Mahata <debashis.mahata@wipro.com>:
3218 (read_struct_fields): Deal with Sun C compiler erroneous stab
3219 output for structs and unions.
3222 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3224 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3227 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3229 * cp-abi.c: Fix whitespace.
3230 (baseclass_offset): New wrapper function.
3231 * cp-abi.h (baseclass_offset): Add prototype.
3232 (struct cp_abi_ops): Add baseclass_offset pointer.
3234 * valops.c (vb_match): Move to...
3235 * gnu-v2-abi.c (vb_match): here.
3236 * valops.c (baseclass_offset): Move to...
3237 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3239 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3241 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3242 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3243 * hpacc-abi.c (init_hpacc_ops): Likewise.
3245 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3247 * valops.c (find_overload_match): Accept obj as a
3248 reference parameter. Update it before returning.
3249 * value.h (find_overload_match): Update prototype.
3250 * eval.c (evaluate_subexp_standard): Pass object to
3251 find_overload_match by reference.
3253 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3255 * valarith.c: Replace value_ptr with struct value pointer. Remove
3256 register attribute from value declarations.
3259 * scm-lang.c (scm_lookup_name): Ditto.
3261 2002-01-03 Michael Snyder <msnyder@redhat.com>
3263 Abstract the functionality of iterating over mapped memory
3264 regions into a general purpose iterator function.
3265 * procfs.c (iterate_over_mappings): New function, general purpose
3266 iterator for memory sections.
3267 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3268 (solib_mappings_callback): New function, callback for above.
3269 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3270 (info_mappings_callback): New function, callback for above.
3272 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3274 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3276 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3277 * i386-tdep.c: Include "elf-bfd.h".
3278 (process_note_abi_tag_sections): New function.
3279 (i386_gdbarch_init): Add code to recognize various OS/ABI
3282 * maint.c (_initialize_maint_cmds): Add missing \ in
3285 For older changes see ChangeLog-2001
3291 version-control: never