1 2002-03-25 Jeff Law (law@redhat.com)
3 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11 * command.h: Update copyright.
12 (struct cmd_list_element): Replace definition with opaque
14 (enum cmd_types): Document that it will eventually be moved to
16 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
17 (MALLOCED_REPLACEMENT): Delete macro.
18 * Makefile.in (cli_decode_h): Add $(command_h).
19 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
20 * top.c: Include "cli/cli-decode.h".
21 * completer.c: Include "cli/cli-decode.h".
22 * maint.c: Include "cli/cli-decode.h".
23 * cli/cli-decode.h: Include "command.h".
24 (enum command_class): Delete.
25 (enum cmd_types): Comment out.
26 (enum cmd_auto_boolean): Delete.
27 (enum var_types): Delete.
29 2002-03-23 Andrew Cagney <ac131313@redhat.com>
31 * cli/cli-decode.c: Include "gdb_assert.h".
32 (add_set_or_show_cmd): New static function.
33 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
34 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
35 all fields, such as func, from the set command.
37 2002-03-23 Andrew Cagney <ac131313@redhat.com>
39 * MAINTAINERS (sh-elf): Change warning flag to -w.
41 2002-03-23 Andrew Cagney <cagney@redhat.com>
43 * defs.h (error): Add printf format attribute.
44 * thread-db.c (thread_from_lwp): Fix error format string.
45 * stack.c (parse_frame_specification): Ditto.
46 * cli/cli-decode.c (undef_cmd_error): Ditto.
47 * scm-lang.c (scm_lookup_name): Ditto.
48 * tracepoint.c (trace_error): Ditto.
49 * remote-utils.c (usage): Ditto.
50 * remote.c (compare_sections_command): Ditto.
53 2002-03-22 Andrew Cagney <ac131313@redhat.com>
55 * gdbtypes.c (append_composite_type_field): New function.
56 (init_composite_type): New function.
57 * gdbtypes.h (append_composite_type_field): Declare.
58 (init_composite_type): Ditto.
60 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
62 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
64 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
65 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
66 structure returning convention for SYSV ABI case, but not
67 for GNU/Linux, FreeBSD, or NetBSD.
69 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
71 * symtab.h (lookup_block_symbol): Add mangled_name argument
74 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
75 with new mangled_name argument.
76 * linespec.c (decode_line_1): Likewise.
77 * valops (value_of_this): Likewise.
78 * symtab.c (lookup_transparent_type): Likewise.
79 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
80 (lookup_symbol): If we are given a mangled name, pass it down
82 (lookup_block_symbol): If we are given a mangled name to check
83 against, only return symbols which match it.
85 2002-03-22 Christopher Faylor <cgf@redhat.com>
87 * win32-nat.c (child_create_inferior): Check for proper shell to use
88 here, in case the user changes it on the fly.
89 (_initialize_inftarg): Remove shell path considerations.
91 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
93 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
94 for gdbarch_max_register_raw_size and max_register_virtual_size.
95 Adjust copyright year.
97 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
99 * dbxread.c (process_one_symbol): Extend the first N_SLINE
100 in a function to cover the entire beginning of the function
101 as well if it does not already.
103 2002-03-21 Tom Rix <trix@redhat.com>
105 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
106 (rs6000_ptrace64): Renamed from ptrace64.
108 2002-03-20 Martin M. Hunt <hunt@redhat.com>
110 * gdbserver/remote-utils.c (remote_open): Don't call
111 getprotobyname, we're all using TCP here so just use
113 * gdbserver/gdbreplay.c (remote_open): Ditto.
115 2002-03-20 Martin M. Hunt <hunt@redhat.com>
117 * regcache.c (_initialize_regcache): No need to call
118 build_regcache() at this time; it gets called whenever
121 2002-03-20 David O'Brien <obrien@FreeBSD.org>
123 * sparc-nat.c: Include sys/param.h where possible.
125 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
128 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
129 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
130 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
132 * stabsread.c (rs6000_builtin_type): Likewise.
133 (read_sun_floating_type): Likewise.
135 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
137 * stabsread.c (read_member_functions): Remove skip code for duplicate
138 constructor/destructor methods. Use standard parsing for these
139 methods and just do not chain them to the list of methods after
142 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
144 * coffread.c: Remove redundant static declarations. Replace
145 occurrences of `PTR' with `void *'.
146 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
147 * top.h (quit_cover): Likewise.
148 * defs.h (catch_errors): Likewise.
150 2002-03-18 Andrew Cagney <ac131313@redhat.com>
152 * defs.h (XMALLOC): Define.
153 * gdb-events.sh (XMALLOC): Delete macro.
154 * gdb-events.c, gdb-events.h: Regenerate.
155 * gdbarch.sh (XMALLOC): Delete macro.
156 * gdbarch.c: Regenerate.
157 * serial.c (XMALLOC): Delete macro.
158 * ui-file.c (XMALLOC): Ditto.
159 * ser-unix.h (XMALLOC): Ditto.
160 * sh-tdep.c (XMALLOC): Ditto.
161 * ui-out.c (XMALLOC): Ditto.
162 * utils.c (XMALLOC): Ditto.
163 * i386-tdep.c (XMALLOC): Ditto.
164 * gdb-events.c (XMALLOC): Ditto.
165 * d10v-tdep.c (XMALLOC): Ditto.
166 * cli-out.c (XMALLOC): Ditto.
168 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
169 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
170 * ui-file.c, ui-out.c: Ditto.
172 2002-03-18 Andrew Cagney <ac131313@redhat.com>
174 * command.h (struct cmd_list_element): Add field context.
175 (set_cmd_context, get_cmd_context): Declare.
176 * cli/cli-decode.h: Ditto.
177 * cli/cli-decode.c (get_cmd_context): New function.
178 (set_cmd_context): New function.
179 (add_cmd): Initialize context.
180 Part of fixing PR gdb/145 and PR gdb/146.
182 2002-03-17 Andrew Cagney <ac131313@redhat.com>
184 * cli/cli-decode.c (cmd_type): New function.
185 * command.h (cmd_type): Declare.
186 * infrun.c (set_schedlock_func): Call function cmd_type.
187 * kod.c (kod_set_os): Call cmd_type.
188 * cris-tdep.c (cris_version_update): Use function cmd_type.
189 (cris_mode_update, cris_abi_update): Ditto.
191 * command.h: (execute_cmd_post_hook): Declare.
192 (execute_cmd_pre_hook): Declare.
193 * cli/cli-script.c (clear_hook_in_cleanup): New function.
194 (execute_cmd_post_hook, execute_cmd_pre_hook): New
195 functions. Execute pre/post hook while ensuring that afterwords
197 * top.c (execute_command): Use execute_cmd_post_hook, and
198 execute_cmd_pre_hook to execute pre/post commands.
199 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
201 (hook_stop_stub): Call execute_cmd_pre_hook.
203 2002-03-17 Andrew Cagney <ac131313@redhat.com>
205 * kod.c (kod_set_os): Revert previous change. Is called by ``info
206 set'' and this leads to a core dump. Move xstrdup of
207 operating_system to after check that it is not NULL.
209 2002-03-17 Andrew Cagney <ac131313@redhat.com>
211 * kod.c (kod_set_os): Remove unnecessary check that
212 ``command->type'' is set_cmd.
214 * valprint.c (set_input_radix): Use input_radix.
215 (set_output_radix): Use output_radix.
216 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
219 2002-03-16 Andrew Cagney <ac131313@redhat.com>
221 * value.h (struct value): Delete field ``substring_addr''. Change
222 aligner fields to force_doublest_align, force_longest_align,
223 force_core_addr_align and force_pointer_aligh.
225 * value.h (struct value): Fix typo in above change.
227 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
229 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
230 to fix internal_error from ``maintenance print architecture''.
232 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
234 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
235 for gcc versions after gcc-2.8.1.
237 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
239 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
240 for method resolution. Restore adjustment of ``this'' pointer after
241 calling value_struct_elt, which was accidentally removed during the
244 2002-03-15 Andrew Cagney <ac131313@redhat.com>
246 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
248 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
250 * value.h (value_of_register): Update.
252 2002-03-14 Richard Henderson <rth@redhat.com>
254 * configure.in: Detect declaration for canonicalize_file_name.
255 * utils.c (canonicalize_file_name): Declare, if needed.
256 (gdb_realpath): Prefer realpath if available and usable.
257 * config.in, configure: Rebuild.
259 2002-03-14 Richard Henderson <rth@redhat.com>
261 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
262 a constant array bound.
264 * MAINTAINERS: Add myself to write-after-approval.
266 2002-03-14 Michael Snyder <msnyder@redhat.com>
268 * symfile.c (syms_from_objfile): Return immediately if no syms.
269 (symbol_file_add): Return immediately if no syms.
270 (find_sym_fns): Return immediately if no syms.
272 2002-03-13 Michal Ludvig <mludvig@suse.cz>
274 * gdbserver/remote-util.c (remote_open): Print remote-side's
275 IP address when remote debugging over the network.
277 2002-03-12 David O'Brien <obrien@FreeBSD.org>
279 * config/sparc/fbsd.mh: Fix copyright.
280 * config/sparc/fbsd.mt: Likewise.
282 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
284 * MAINTAINERS: Fix typo in name of gdb warnings option.
285 (x86-64): Fix formating so that this can be parsed by awk.
287 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
289 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
290 * defs.h: Include "gdb/signals.h".
291 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
293 2002-03-10 Michal Ludvig <mludvig@suse.cz>
295 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
296 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
299 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
300 Don Howard <dhoward@redhat.com>
302 * mips-tdep.c (ST0_FR): Define.
303 (mips2_fp_compat): New function, temporarily disabled.
304 (mips_read_fp_register_single): New function.
305 (mips_read_fp_register_double): New function.
306 (mips_print_register): Use them.
307 (do_fp_register_row): Likewise.
309 2002-03-09 Andrew Cagney <ac131313@redhat.com>
311 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
314 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
316 * stabsread.c (read_member_functions): Fix is_stub test for
317 static member functions, improve comment.
319 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
321 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
322 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
323 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
324 commands that set boolean values.
325 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
326 (arm_rdi_resume): Always initialize PC.
327 (arm_rdi_open): Don't use rslt as a boolean.
328 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
329 (arm_rdi_fetch_registers, arm_rdi_store_registers)
330 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
331 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
333 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
335 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
336 * configure: Rebuilt.
338 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
340 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
341 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
343 2002-03-06 Andrew Cagney <ac131313@redhat.com>
345 * cli/cli-decode.c (set_cmd_completer): New function.
346 * command.h (set_cmd_completer): Declare.
347 * cli/cli-decode.h (set_cmd_completer): Ditto.
349 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
350 * cli/cli-cmds.c (init_cli_cmds): Ditto.
351 * win32-nat.c (_initialize_inftarg): Ditto.
352 * remote-rdi.c (_initialize_remote_rdi): Ditto.
353 * proc-api.c (_initialize_proc_api): Ditto.
354 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
355 * source.c (_initialize_source): Ditto.
356 * exec.c (_initialize_exec): Ditto.
357 * solib.c (_initialize_solib): Ditto.
358 * top.c (init_main): Ditto.
359 * tracepoint.c (_initialize_tracepoint): Ditto.
360 * symfile.c (_initialize_symfile): Ditto.
361 * printcmd.c (_initialize_printcmd): Ditto.
362 * infcmd.c (_initialize_infcmd): Ditto.
363 * corefile.c (_initialize_core): Ditto.
365 2002-03-05 Andrew Cagney <ac131313@redhat.com>
367 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
369 2002-03-05 Andrew Cagney <ac131313@redhat.com>
371 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
373 2002-03-05 Andrew Cagney <ac131313@redhat.com>
375 * NEWS: Update headings, 5.2 has branched.
377 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
379 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
380 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
381 (register_addr, REGISTER_RAW_SIZE): Likewise.
382 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
383 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
385 2002-03-03 Michal Ludvig <mludvig@suse.cz>
387 * MAINTAINERS (x86-64): Add myself.
388 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
389 changed value_ptr -> struct value *
391 2002-03-01 David O'Brien <obrien@FreeBSD.org>
393 * configure.host (sparc64-*-freebsd): Add.
394 * configure.tgt: Likewise.
395 * config/sparc/fbsd.mh: New file.
396 * config/sparc/fbsd.mt: Likewise.
397 * config/sparc/nm-fbsd.h: Likewise.
398 * config/sparc/tm-fbsd.h: Likewise.
400 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
402 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
403 regformats/reg-s390x.dat.
405 2002-03-01 Andrew Cagney <ac131313@redhat.com>
407 * utils.c: Add FIXME explaining true/false problem.
409 2002-02-28 Andrew Cagney <ac131313@redhat.com>
411 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
413 2002-02-28 Michael Chastain <mec@shout.net>
415 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
417 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
419 * gdbserver/linux-s390-low.c: New file.
420 * regformats/reg-s390.dat: New file.
421 * regformats/reg-s390x.dat: New file.
422 * gdbserver/configure.srv: Add S/390.
423 * gdbserver/Makefile.in: Add S/390.
424 * configure.tgt: Enable gdbserver for S/390.
426 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
428 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
429 first line of the doc string for "info dos", except at the end of
430 the sentence, since the short help stops at the first period.
432 2002-02-28 Jason Merrill <jason@redhat.com>
434 * dwarf2read.c (dwarf_cfi_name): Add new codes.
436 2002-02-27 Fred Fish <fnf@redhat.com>
438 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
439 comment (dumy -> dummy).
441 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
443 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
445 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
447 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
449 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
451 * gdbserver/acconfig.h: New file.
452 * gdbserver/i387-fp.c: New file.
453 * gdbserver/i387-fp.h: New file.
454 * gdbserver/linux-x86-64.c: New file.
455 * regformats/reg-x86-64.dat: New file.
456 * configure.tgt: Add x86_64-*-linux* gdbserver support.
457 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
458 * gdbserver/configure.in: Add support for regsets.
459 * gdbserver/config.in: Regenerate.
460 * gdbserver/configure: Regenerate.
461 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
462 * gdbserver/linux-low.h: New file.
463 * gdbserver/linux-low.c: Include "linux-low.h". Add support
465 * gdbserver/linux-arm-low.c: Include "linux-low.h".
466 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
467 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
468 * gdbserver/linux-mips-low.c: Include "linux-low.h".
469 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
470 * gdbserver/linux-sh-low.c: Include "linux-low.h".
471 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
472 "i387-fp.h". Add PTRACE_GETREGS and friends.
473 * gdbserver/regcache.c (supply_register): New function.
474 (supply_register_by_name): New function.
475 (collect_register): New function.
476 (collect_register_by_name): New function.
478 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
480 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
481 (config.status): Add configure.srv dependency.
482 (server_h): Add config.h dependency.
484 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
486 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
487 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
488 * gdbserver/configure.srv: Change i386-*-linux* to use
491 2002-02-26 Andrew Cagney <ac131313@redhat.com>
493 * x86-64-tdep.c: Re-indent. Update copyright date.
495 2002-02-26 Andrew Cagney <ac131313@redhat.com>
497 From Michal Ludvig <mludvig@suse.cz>:
498 * x86-64-tdep.c (value.h): Delete.
499 (gdb_assert.h): Include.
500 (x86_64_register_convert_to_virtual,
501 x86_64_register_convert_to_raw ): Add check which lets only
502 floating-point values to be converted.
503 (value_push): Delete.
504 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
505 (i386_gdbarch_init): Number of register_bytes fixed.
507 2002-02-26 Andrew Cagney <ac131313@redhat.com>
509 * MAINTAINERS: Add x86-64 target.
511 2002-02-26 Andrew Cagney <ac131313@redhat.com>
513 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
514 * osfsolib.c (solib_map_sections): Ditto.
515 * irix5-nat.c (solib_map_sections): Ditto.
516 * corelow.c (gdb_check_format): Ditto.
517 * symfile.c (symfile_bfd_open): Ditto.
518 * solib.c (solib_map_sections): Ditto.
521 2002-02-26 Andrew Cagney <ac131313@redhat.com>
523 * remote.c (_initialize_remote): By default, disable ``e'' and
524 ``E'' step out-of-range packets.
526 2002-02-26 Andreas Schwab <schwab@suse.de>
528 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
529 m68k_linux_frame_saved_pc.
530 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
532 (SIGCONTEXT_PC_OFFSET): Remove.
533 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
534 m68k_linux_sigtramp_saved_pc): New functions.
535 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
536 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
537 (UCONTEXT_PC_OFFSET): Define.
538 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
539 non-RT and RT signal trampolines.
541 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
543 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
544 (TARGET_NBPG, STACK_END_ADDR): Delete
545 (VARIABLES_INSIDE_BLOCK): Delete.
547 2002-02-25 Andrew Cagney <ac131313@redhat.com>
549 * utils.c (perror_with_name): Make string parameter constant.
550 (print_sys_errmsg): Ditto.
552 * defs.h (perror_with_name): Update.
553 (print_sys_errmsg): Update.
556 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
558 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
559 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
561 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
563 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
564 if it already matches the current architecture from the exec file.
565 Include arch-utils.h for gdbarch_info_init prototype.
566 * Makefile.in (rs6000-nat.o): Update dependencies.
568 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
570 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
571 list of exported variables.
573 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
575 * gdbserver/configure.srv: New file.
576 * gdbserver/configure.in: Use configure.srv instead
577 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
579 * gdbserver/configure: Regenerated.
580 * gdbserver/terminal.h: New file.
581 * gdbserver/Makefile.in: Update for configure changes. Remove
582 more unneeded include paths.
584 2002-02-24 Andrew Cagney <ac131313@redhat.com>
587 * config/sparc/tm-sp64.h: Fix grammar and typos.
590 2002-02-24 Andrew Cagney <ac131313@redhat.com>
592 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
593 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
594 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
595 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
596 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
597 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
598 * s390-tdep.c: Ditto.
599 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
600 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
601 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
602 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
603 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
604 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
605 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
606 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
607 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
608 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
611 2002-02-23 Andrew Cagney <ac131313@redhat.com>
613 * lin-thread.c: Delete file.
614 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
615 to gdb_proc_service.h.
616 * configure: Re-generate.
618 * ocd.c (ocd_open): Do not try to open the "ocd" device.
619 * serial.c (serial_open): Delete check for "ocd".
622 * Makefile.in (linux-thread.o): Delete target.
623 * linux-thread.c: Delete file.
625 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
626 renamed SH files to be consistent.
628 * symtab.c (sort_search_symbols): Use xfree.
630 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
632 * arm-linux-tdep.c (arm_linux_init_abi): Register
633 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
634 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
635 definition with undef, since we don't want the sysvr4 definition.
636 (SKIP_TRAMPOLINE_CODE): Likewise.
638 2002-02-23 Andrew Cagney <ac131313@redhat.com>
640 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
642 * configure.in: (AC_CHECK_FUNCS) Added test for
643 canonicalize_file_name Regenerated.
644 * config.in, configure: Regenerated.
645 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
646 defined use canonicalize_file_name.
648 2002-02-23 Michael Chastain <mec@shout.net>
650 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
652 2002-02-23 Andrew Cagney <ac131313@redhat.com>
654 * README: Remove references to cygnus.com.
655 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
656 dot com'' form. Remove references to cygnus.com and sourceware.
658 2002-02-23 Andrew Cagney <ac131313@redhat.com>
660 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
661 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
662 1003.1-2001 no longer allows "head -1".
663 * gdb/Makefile.in (version.c): Likewise.
664 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
665 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
666 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
668 2002-02-23 Andrew Cagney <ac131313@redhat.com>
670 * cli/cli-decode.c (cmd_cfunc_eq): New function.
671 * command.h (cmd_cfunc_eq): Declare.
672 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
674 * cli/cli-cmds.h (is_complete_command): Change parameter to a
675 ``struct cmd_list_element *''.
676 * cli/cli-cmds.c (is_complete_command): Update. Use
678 * top.c (execute_command): Pass the command to
680 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
682 2002-02-23 Andrew Cagney <ac131313@redhat.com>
684 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
685 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
686 architecture defines.
687 * s390-tdep.c (s390_gdbarch_init): Likewise.
689 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
691 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
692 (arm_linux_push_arguments): Likewise.
693 (arm_linux_init_abi): Register them. Also register linux-specific
695 (find_minsym_and_objfile): Use strcmp, not STREQ.
696 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
697 (arm_linux_call_dummy_words): Delete declaration.
698 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
699 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
703 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
705 * maint.c (print_section_info): Do not prepend `0x' to filepos
706 output, it will be handled by local_hex_string_custom.
708 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
710 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
711 (store_newfpe_double, store_newfpe_extended, store_fpregister)
712 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
714 2002-02-22 Jim Blandy <jimb@redhat.com>
716 Indicate that the bcache functions don't change the strings
718 * bcache.h (bcache, hash): Add `const' keywords to declarations.
719 * bcache.c (bcache, hash): Add `const' keywords to definitions.
721 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
723 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
725 2002-02-21 Christopher Faylor <cgf@redhat.com>
727 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
728 find the complete path to a loaded DLL.
730 2002-02-21 Fred Fish <fnf@redhat.com>
732 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
733 that marks the end of the range of a function, enter a line number
734 entry that has a line number of zero and a PC offset that matches
735 the end of the function. This starts a range of PC's for which no
736 line number information is known.
737 * symtab.c (find_pc_sect_line): If our best fit is in a range of
738 PC's for which no line number info is found (line number is zero)
739 then we didn't find any valid line information.
740 * symtab.h: Document use of zero line number entry.
742 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
744 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
745 (have_ptrace_getvrregs): Define for run time checks.
746 (gdb_vrregset_t): New type for Altivec register handling.
747 (fetch_register, store_register): Fetch/store altivec register
749 (fetch_altivec_register, store_altivec_register): New functions.
750 (supply_vrregset, fill_vrregset): New functions.
751 (fetch_altivec_registers, store_altivec_registers): New functions.
752 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
755 2002-02-21 Jiri Smid <smid@suse.cz>
757 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
759 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
761 * Makefile.in (armnbsd-nat.o): Update dependencies.
762 * armnbsd-nat.c (supply_gregset): New function. Common code to
763 supply the integer register set.
764 (supply_fparegset): New function. Similar for FPA registers.
765 (fetch_regs, fetch_fp_regs): Use them.
766 (fetch_core_registers): Likewise.
767 (fetch_elfcore_registers): New function.
768 (arm_netbsd_elfcore_fns): New core-file type specification.
769 (_initialize_arm_netbsd_nat): Register it.
771 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
773 * armnbsd-nat.c: Include gdbcore.h.
774 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
775 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
776 'void' to declaration, to shut up ARI.
777 (fetch_core_registers): Make static. Rewrite using supply_register.
778 (arm_netbsd_core_fns): New core-file type specification.
779 (_initialize_arm_netbsd_nat): New function.
781 2002-02-21 Christopher Faylor <cgf@redhat.com>
783 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
786 2002-02-20 Christopher Faylor <cgf@redhat.com>
788 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
791 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
793 * jv-exp.y (parse_number): Change type of implicit longs
794 to builtin_type_uint64.
796 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
798 * gdbserver/linux-low.c (mywait): Change argument to waitpid
799 to be an integer instead of a `union wait'.
801 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
803 * mips-linux-nat.c: Call the operating system GNU/Linux.
804 * mips-linux-tdep.c: Likewise.
805 * mips-tdep.c: Likewise.
807 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
810 * jv-exp.y (parse_number): Handle 64-bit integers.
812 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
814 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
815 AC_STDC_HEADERS to AC_HEADER_STDC.
816 * gdbserver/configure: Regenerated.
818 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
820 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
822 * sparc-tdep.c (get_longjmp_target): Likewise.
824 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
826 * News: Add news about ARM and Multi-arch. Mention the new target
829 2002-02-19 Jim Blandy <jimb@redhat.com>
831 * stabsread.c (error_type_complaint): Improve error message.
833 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
835 * gdbserver/README: Update documentation.
836 * gdbserver/configure.in: Update configury to match documentation.
837 * gdbserver/Makefile.in: Likewise.
838 * gdbserver/configure: Regenerated.
839 * gdbserver/aclocal.m4: New file, generated by aclocal.
840 * gdbserver/config.in: New file, generated by autoheader.
842 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
844 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
847 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
849 * arm-tdep.h (enum arm_float_model): New enum.
850 (struct gdbarch_tdep): Add fp_model.
851 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
852 up floating-point conversions until we know the floating-point model
853 in use by the inferior. Don't complain about being unable to
854 determine the ABI of the inferior when we don't have one.
855 (arm_extract_return_value): Support different floating-point models.
856 (arm_store_return_value): Likewise.
857 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
859 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
861 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
863 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
864 of ``current_gdbarch''.
866 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
868 * armnbsd-nat.c : ANSIfy all function declarations.
869 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
870 (fetch_inferior_registers): Re-implement in terms of above.
871 (store_register, store_regs, store_fp_register, store_fp_regs): New.
872 (store_inferior_registers): Re-implement in terms of above.
874 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
876 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
878 * arm-linux-tdep.c: Likewise.
879 * config/arm/tm-linux.h: Likewise.
881 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
883 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
884 * config/arm/nbsd.mt (TM_FILE): Delete.
885 * config/arm/tm-nbsd.h: Delete.
887 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
889 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
890 Initialize CALL_DUMMY_LENGTH.
892 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
894 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
896 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
897 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
898 defines one thing and that is incorrect for this port.
899 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
901 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
903 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
905 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
907 * win32-nat.c (display_selector): New function. Displays information
908 about the information returned by GetThreadSelectorEntry API function.
909 (display_selectors): New function. Displays the infomation of
910 the selector given as argument, or of CS, DS ans FS selectors
911 if no argument is given.
912 ( _initialize_inftarg): Add "w32" as info prefix command.
913 Add "info w32 selector" as command calling display_selectors.
915 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
917 * i386-tdep.c (get_longjmp_target): Fix compilation failure
918 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
921 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
923 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
925 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
927 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
928 (arm_fix_call_dummy): Call it.
929 (arm_call_dummy_breakpoint_offset): Delete.
930 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
931 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
933 2002-02-18 Andrew Cagney <ac131313@redhat.com>
935 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
936 Default to func_frame_chain_valid.
937 * gdbarch.h, gdbarch.c: Re-generate.
938 * frame.h (FRAME_CHAIN_VALID): Delete definition.
940 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
942 * ppc-linux-nat.c: Update copyright.
943 (fetch_register, store_register): Add tid parameter, don't compute
945 (fetch_ppc_registers, store_ppc_registers): Add tid
946 parameter. Pass it along to callees.
947 (fetch_inferior_registers, store_inferior_registers): Compute tid
948 here, and pass it to calleed functions.
949 (fill_gregset, supply_fpregset): Clean up formatting.
951 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
953 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
954 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
956 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
958 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
959 * gdbarch.c gdbarch.h: Regenerate.
960 * breakpoint.c (create_longjmp_breakpoint): Always compile this
962 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
963 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
964 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
966 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
967 * arm-tdep.c (arm_get_longjmp_target): New function.
968 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
969 this to a positive value register arm_get_longjmp_target as the
971 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
972 (arm_linux_init_abi): Set up longjmp description in tdep.
973 * armnbsd-nat.c (get_longjmp_target): Delete.
974 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
976 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
977 (get_longjmp_target): Delete declaration.
978 (GET_LONGJMP_TARGET): Delete.
979 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
980 (GET_LONGJMP_TARGET): Delete.
982 2002-02-17 Kevin Buettner <kevinb@redhat.com>
984 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
985 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
986 of ``current_gdbarch''.
988 2002-02-17 Tom Tromey <tromey@redhat.com>
990 * cli/cli-cmds.c (compare_strings): New function.
991 (complete_command): Only print each unique item once.
992 * completer.h (complete_line): Declare.
993 * completer.c (complete_line): New function.
994 (line_completion_function): Use it.
996 2002-02-16 Andrew Cagney <ac131313@redhat.com>
998 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
999 * gdbarch.h, gdbarch.c: Re-generate.
1001 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1003 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1005 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1007 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1008 * valops.c (value_arg_coerce): Don't take the address of a reference
1009 to convert an argument to a reference.
1011 2002-02-15 Christopher Faylor <cgf@redhat.com>
1013 * win32-nat.c (get_image_name): New function.
1014 (handle_load_dll): Use get_image_name function.
1015 (get_child_debug_event): Avoid registering debug events until possibly
1016 execed process is started.
1017 (child_create_inferior): Allow invocation via shell so that command
1018 line redirection, etc. works ok.
1019 (_initialize_inftarg): Add new command: "set shell" to control whether
1020 a shell is used to start a process.
1022 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1024 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1025 instead of find_register_by_number.
1026 (cannot_store_register): Likewise.
1028 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1030 * dwarf2read.c: Replace fprintf (stderr, ...) by
1031 fprintf_unfiltered (gdb_stderr, ...).
1033 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1035 * gdbserver/gdbserver.1: Document --attach.
1037 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1039 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1041 * arm-tdep.c (arm_default_arm_le_breakpoint)
1042 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1043 (arm_default_thumb_be_breakpoint): New. Initialize them from
1044 traditional breakpoint defines.
1045 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1046 (arm_gdbarch_init): Initialize new breakpoint variables.
1047 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1048 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1049 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1050 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1052 (arm_netbsd_init_abi_common): ... here; new function.
1053 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1054 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1055 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1056 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1058 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1060 * arm-tdep.h (enum arm_abi): New enum.
1061 (struct gdbarch_tdep): New structure.
1062 (LOWEST_PC): Provide a default.
1063 (arm_gdbarch_register_os_abi): Declare new function.
1064 * arm-tdep.c (arm_abi_names): New array.
1065 (process_note_abi_tag_sections): New function.
1066 (get_elfosabi): New function.
1067 (arm_gdbarch_register_os_abi): New function.
1068 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1069 support for that ABI has been built in, then call the appropriate
1070 configuration routine. Use gdbarch_num_regs() to get the number
1072 (arm_dump_tdep): New function.
1073 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1074 place-holder functions.
1075 (_initialize_arm_tdep): Register them.
1076 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1078 * armnbsd-tdep.c: New file.
1079 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1080 * config/arm/nbsd.mt (TDEPFILES): Add it.
1081 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1083 * armnbsd-nat.c: Include regcache.h.
1084 * Makefile.in (armnbsd-nat.o): Update dependency list.
1086 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1088 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1090 * gdbserver/Makefile.in: Fix typos in target rules.
1092 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1094 Fix part of PR gdb/267.
1095 * linespec.c (find_methods): Handle constructors specially for now.
1097 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1099 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1101 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1102 standard_coerce_float_to_double().
1104 2002-02-14 Christopher Faylor <cgf@redhat.com>
1106 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1109 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1111 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1112 find_variant_by_name, because it confuses the multiarch
1113 framework. Return NULL if there isn't an architecture with the
1114 user supplied name, instead of forcing a different one without
1115 recording the change with the multiarch machinery.
1116 (find_variant_by_name): Delete.
1118 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1120 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1121 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1123 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1125 * stack.c (print_frame_info_base): When calling
1126 print_frame_info_listing_hook, set current_source_symtab.
1128 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1130 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1131 and remove unused $(INCLUDE_DIR).
1132 Add regcache.c to OBS.
1133 Add generated register protocol files to clean target.
1134 Update dependencies for new objects, obsolete old target code.
1136 * gdbserver/linux-low.c: Remove all platform-specific code to
1137 new files. Remove various dead code. Update to use regcache
1139 * gdbserver/remote-utils.c (fromhex): Add return statement
1141 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1143 (input_interrupt): Add integer parameter to match prototype
1144 of a signal handler.
1145 (outreg): Use register_data ().
1146 (prepare_resume_reply): Use gdbserver_expedite_regs.
1147 * gdbserver/server.c (main): Dynamically allocate own_buf because
1148 PBUFSIZ is no longer constant. Use registers_to_string () and
1149 registers_from_string ().
1150 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1151 for error (), fatal (), and warning (). Update definition of
1152 PBUFSIZ to use regcache functionality. Add include guard.
1153 * gdbserver/utils.c (fatal): Add missing ``const''.
1154 (warning): New function.
1156 * regformats/regdat.sh: Include "regcache.h" in generated files.
1157 Provide init_registers () function.
1158 * regformats/regdef.h: Add prototype for set_register_cache ().
1161 * gdbserver/linux-arm-low.c: New file.
1162 * gdbserver/linux-i386-low.c: New file.
1163 * gdbserver/linux-ia64-low.c: New file.
1164 * gdbserver/linux-m68k-low.c: New file.
1165 * gdbserver/linux-mips-low.c: New file.
1166 * gdbserver/linux-ppc-low.c: New file.
1167 * gdbserver/linux-sh-low.c: New file.
1169 * gdbserver/regcache.c: New file.
1170 * gdbserver/regcache.h: New file.
1172 * gdbserver/low-linux.c: Removed obsolete file.
1174 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1176 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1177 * config/i386/linux.mt: Likewise.
1178 * config/ia64/linux.mt: Likewise.
1179 * config/m68k/linux.mh: Likewise.
1180 * config/powerpc/linux.mh: Likewise.
1181 * config/mips/linux.mt: Likewise.
1183 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1185 * config/i386/i386lynx.mh: Mark gdbserver variables
1186 as (currently) obsolete for this target.
1187 * config/i386/nbsd.mt: Likewise.
1188 * config/i386/nbsdelf.mt: Likewise.
1189 * config/m32r/m32r.mt: Likewise.
1190 * config/m68k/m68klynx.mh: Likewise.
1191 * config/m68k/nbsd.mt: Likewise.
1192 * config/m68k/sun3os4.mh: Likewise.
1193 * config/mips/vr5000.mt: Likewise.
1194 * config/ns32k/nbsd.mt: Likewise.
1195 * config/pa/hppabsd.mh: Likewise.
1196 * config/pa/hppaosf.mh: Likewise.
1197 * config/powerpc/nbsd.mt: Likewise.
1198 * config/rs6000/rs6000lynx.mh: Likewise.
1199 * config/s390/s390.mt: Likewise.
1200 * config/s390/s390x.mt: Likewise.
1201 * config/sparc/sparclynx.mh: Likewise.
1202 * config/sparc/sun4os4.mh: Likewise.
1203 * config/i386/x86-64linux.mt: Likewise.
1204 * config/sparc/linux.mh: Likewise.
1206 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1208 * configure.tgt: Configure gdbserver only for known working
1209 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1210 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1211 SUBDIRS if it is configured. Update comment for ${nativefile}.
1212 * configure: Regenerated.
1214 2002-02-13 Michael Snyder <msnyder@redhat.com>
1216 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1217 (default_gcore_mach): Just return 0, work around a problem in bfd.
1218 (default_gcore_target): OK to return NULL if exec_bfd is null.
1219 (make_mem_sec): Use a cast, avoid a warning.
1221 * procfs.c (find_memory_regions_callback): Use a cast instead of
1222 calling host_pointer_to_address (which complains if
1223 sizeof (host pointer) != sizeof (target pointer)).
1224 (procfs_make_note_section): Avoid overflow in psargs string.
1226 * procfs.c (procfs_make_note_section): Make the default
1227 implementation return an error.
1229 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1231 * procfs.c (procfs_make_note_section): Provide a default definition
1232 (for alpha-dec-osf4.0f). Fix typos.
1234 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1236 * linux-proc.c: Add include of regcache.h.
1237 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1239 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1241 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1242 * memattr.c (create_mem_region): Disallow useless empty region.
1243 Regions are half-open intervals, so allow [A..B) [B..C) as
1246 2002-02-13 Michael Chastain <mec@shout.net>
1248 * defs.h: Kill CONST_PTR.
1249 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1250 * c-lang.c (c_builtin_types): Likewise.
1251 * ch-lang.c (ch_builtin_types): Likewise.
1252 * f-lang.c (f_builtin_types): Likewise.
1253 * language.c (unknown_builtin_types): Likewise.
1254 * m2-lang.c (m2_builtin_types): Likewise.
1255 * p-lang.c (pascal_builtin_types): Likewise.
1256 * scm-lang.c (c_builtin_types): Likewise.
1258 2002-02-13 Keith Seitz <keiths@redhat.com>
1260 * arm-tdep.h (arm_get_next_pc): Add declaration.
1262 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1264 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1265 with other related struct-returning functions.
1266 (arm_extract_struct_value_address): New function.
1267 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1268 initialize float_format, double_format and long_double_format as
1269 appropriate to the endianness of the target.
1270 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1271 (arm_use_struct_convention): Delete declaration.
1272 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1274 2002-02-13 Keith Seitz <keiths@redhat.com>
1276 * defs.h (core_addr_to_string_nz): New function.
1278 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1280 Apply missing bits of 2002-01-15 patch.
1281 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1282 (fill_fpregset): Use i387_fill_fsave.
1284 2002-02-12 Keith Seitz <keiths@redhat.com>
1286 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1287 (core_addr_to_string_nz): New function.
1289 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1291 * arm-linux-nat.c: Really include arm-tdep.h.
1292 * config/arm/tm-linux.h (struct type, struct value): Declare.
1294 2002-02-11 Michael Snyder <msnyder@redhat.com>
1296 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1297 (gcore section): Ifdef for Solaris and Unixware only.
1298 (procfs_do_thread_registers): Unixware needs one lwpstatus
1299 per thread (not one prstatus or pstatus).
1300 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1301 not over all gdb threads. For unixware, call elfcore_write_pstatus
1302 once before iterating over threads.
1304 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1306 * arm-tdep.h: New file.
1307 * arm-tdep.c: Include arm-tdep.h.
1308 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1309 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1310 (arm_print_float_info, arm_register_type, convert_to_extended)
1311 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1312 (arm_extract_return_value, arm_register_name): Make static.
1313 (arm_software_single_step): Similarly. Fix types in declaration.
1314 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1315 (arm_store_return_value, arm_store_struct_return): New functions.
1316 (arm_gdbarch_init): Register the above functions. Also register
1317 call_dummy_start_offset, sizeof_call_dummy_words,
1318 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1319 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1320 max_register_virtual_size, register_size. Set up
1321 prologue_cache.saved_regs here, rather than ...
1322 (_initialize_arm_tdep): ... here.
1323 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1325 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1326 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1327 (arm_print_float_info, arm_register_type, convert_to_extended)
1328 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1329 (arm_extract_return_value, arm_register_name): Delete declarations.
1330 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1331 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1332 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1333 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1334 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1335 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1336 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1337 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1338 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1339 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1340 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1341 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1343 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1344 * remote-rdi.c remote-rdp.c: Likewise.
1345 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1346 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1347 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1350 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1351 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1352 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1353 from non-ARM_ prefixed definitions.
1354 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1356 * remote-rdi.c remote-rdp.c: Likewise.
1357 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1359 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1361 * arm-tdep.c (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_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1365 (arm_pop_frame, arm_get_next_pc): Make static.
1366 (arm_gdbarch_init): Register above in gdbarch structure.
1367 (arm_read_fp): Renamed from arm_target_read_fp.
1368 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1369 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1370 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1371 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1372 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1373 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1374 (arm_pc_is_thumb_dummy): Delete declarations.
1375 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1376 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1377 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1378 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1380 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1382 * symtab.c (compare_search_syms): New function.
1383 (sort_search_symbols): New function.
1384 (search_symbols): Sort symbols after searching rather than
1387 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1389 * NEWS: Linux -> GNU/Linux.
1391 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1393 * gdbarch.sh: For for level one methods, disallow a definition
1394 when partially multi-arched. Add comments explaining rationale.
1395 * gdbarch.h: Re-generate.
1397 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1399 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1402 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1404 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1406 * gdbarch.c: Re-generate.
1408 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1410 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1411 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1414 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1416 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1418 (PUSH_ARGUMENTS): Switch to using predefault.
1419 * gdbarch.c: Regenerate.
1421 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1423 * valops.c (PUSH_ARGUMENTS): Delete definition.
1424 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1425 partial. Default to default_push_arguments.
1426 * gdbarch.h, gdbarch.c: Regenerate.
1428 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1430 * defs.h (throw_exception): Rename return_to_top_level. Update
1432 * utils.c (error_stream, internal_verror, quit): Ditto.
1433 * top.c (throw_exception, catcher): Ditto.
1434 * sparclet-rom.c (sparclet_load): Ditto.
1435 * remote.c (interrupt_query, minitelnet): Ditto.
1436 * remote-sds.c (interrupt_query): Ditto.
1437 * remote-mips.c (mips_error, mips_kill): Ditto.
1438 * ocd.c (interrupt_query): Ditto.
1439 * monitor.c (monitor_interrupt_query): Ditto.
1440 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1441 * target.h: Update comment.
1443 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1445 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1447 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1448 default_double_format.
1449 * gdbarch.h, gdbarch.c: Re-generate.
1450 * findvar.c (floatformat_unknown): Delete variable definition.
1451 * doublest.h (floatformat_unknown): Delete variable declaration.
1453 2002-02-09 Jim Blandy <jimb@redhat.com>
1455 * stabsread.c (read_type): Add code to parse Sun's syntax for
1456 prototyped function types.
1458 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1460 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1461 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1463 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1465 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1466 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1467 now _initialize_xcoffsolib gets called again and overrides the
1468 commands from solib.c in a native configuration.
1470 2002-02-09 Mark Kettenis <kettenis@gnu.org>
1472 * doublest.c (store_typed_floating): Don't try to return a value.
1475 2002-02-08 Jim Blandy <jimb@redhat.com>
1477 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1478 is prototyped and has no arguments, print its argument list as
1481 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1483 * MAINTAINERS (write-after-approval): Add myself.
1484 (paper-trail): I've escaped!
1486 2002-02-08 Christopher Faylor <cgf@redhat.com>
1488 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1490 (_initialize_check_for_gdb_ini): Ditto.
1492 2002-02-08 Martin M. Hunt <hunt@redhat.com>
1494 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1495 xaprintf -> xasprintf.
1497 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1499 * win32-nat.c: Remove use of printf and sprintf functions.
1501 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
1503 * arm-tdep.c (arm_frame_chain_valid): Make static.
1504 (arm_push_arguments): Likewise.
1505 (arm_gdbarch_init): New function.
1506 (_initialize_arm_tdep): Call it.
1507 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1508 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1509 (FRAME_CHAIN_VALID): Delete.
1510 (arm_frame_chain_valid): Delete declaration.
1511 (PUSH_ARGUMENTS): Delete.
1512 (arm_push_arguments): Delete declaration.
1513 (CALL_DUMMY_P): Delete.
1515 2002-02-08 Andrew Cagney <ac131313@redhat.com>
1516 Corinna Vinschen <vinschen@redhat.com>
1518 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1519 on builtin float types.
1521 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1523 * utils.c: Include <curses.h> before "bfd.h".
1524 * tui/tui-hooks.c: Likewise.
1525 * tui/tui.c: Likewise.
1526 * tui/tuiCommand.c: Likewise.
1527 * tui/tuiData.c: Likewise.
1528 * tui/tuiDataWin.c: Likewise.
1529 * tui/tuiDisassem.c: Likewise.
1530 * tui/tuiGeneralWin.c: Likewise.
1531 * tui/tuiIO.c: Likewise.
1532 * tui/tuiLayout.c: Likewise.
1533 * tui/tuiRegs.c: Likewise.
1534 * tui/tuiSource.c: Likewise.
1535 * tui/tuiSourceWin.c: Likewise.
1536 * tui/tuiStack.c: Likewise.
1537 * tui/tuiWin.c: Likewise.
1539 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
1541 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1542 to include space for pseudoregs as well. Update loops accordingly.
1543 (sh_fp_frame_init_saved_regs): Ditto.
1544 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1546 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1548 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1549 Add Richard Earnshaw to Arm maintainers.
1551 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1553 * defs.h (warning_begin): Delete declaration.
1555 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1558 2002-02-07 Michael Snyder <msnyder@redhat.com>
1560 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1561 Logic bug, remove misplaced else.
1563 2002-02-07 Klee Dienes <klee@apple.com>
1565 * fork-inferior.c (fork_inferior): Add '!' to the list of
1566 characters that need to be quoted when building a string for the
1567 shell. Quote '!' specifically with a backslash, since CSH chokes
1568 when trying to evaluate "str!str".
1570 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1572 * rdi-share/host.h: Only provide a typedef for bool if it is not
1575 2002-02-04 Michael Snyder <msnyder@redhat.com>
1577 * breakpoint.h (enum bptype): Add new overlay event bp type.
1578 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
1580 * breakpoint.c (create_internal_breakpoint): New function.
1581 (internal_breakpoint_number): Moved into create_internal_breakpoint.
1582 (create_longjmp_breakpoint): Use create_internal_breakpoint.
1583 (create_thread_event_breakpoint): Ditto.
1584 (create_solib_event_breakpoint): Ditto.
1585 (create_overlay_event_breakpoint): New function.
1586 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
1587 (update_breakpoints_after_exec): Delete and re-initialize
1588 overlay event breakpoints after an exec. Add FIXME comment
1589 about longjmp breakpoint.
1590 (print_it_typical): Ignore overlay event breakpoints.
1591 (print_one_breakpoint): Ditto.
1593 (bpstat_what): Do not stop for overlay event breakpoints.
1594 (delete_breakpoint): Don't delete overlay event breakpoints.
1595 (breakpoint_re_set_one): Delete the overlay event breakpoint.
1596 (breakpoint_re_set): Re-create overlay event breakpoint.
1598 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
1599 (overlay_manual_command): Disable overlay breakpoints.
1600 (overlay_off_command): Disable overlay breakpoints.
1602 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1604 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
1605 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
1606 to here from config/tm-arm.h.
1607 (coff_sym_is_thumb): Make static.
1608 (arm_elf_make_msymbol_special): New function.
1609 (arm_coff_make_msymbol_special): New function.
1610 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
1611 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
1612 (coff_sym_is_thumb): Delete declaration.
1613 (arm_elf_make_msymbol_special): Declare.
1614 (arm_coff_make_msymbol_special): Declare.
1615 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
1616 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
1618 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1620 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
1622 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1624 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
1625 * gdbarch.c gdbarch.h: Regenerate.
1626 * arch-utils.c (default_print_float_info): New function.
1627 * arch-utils.h (default_print_float_info): Prototype it.
1628 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
1629 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
1630 (PRINT_FLOAT_INFO): Document it.
1632 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
1633 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
1634 (PRINT_FLOAT_INFO): Define.
1636 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1638 * win32-nat.c (_initialize_check_for_gdb_ini):
1639 Add typecast to sprintf argument to suppress a warning.
1641 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
1643 * win32-nat.c (last_sig): Changed type of variable to target_signal,
1644 to allow easier handling of pass state.
1645 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
1646 that gives exception name and address.
1647 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
1648 and set last_sig value to ourstatus->value.sig. Some missing
1650 (child_continue): Correctly report continue_status.
1651 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
1652 TARGET_SIGNAL_0 (new default value).
1653 (child_resume): consider sig argument passed to decide if
1654 the exception should be passed to debuggee or not.
1656 2002-02-05 Michael Snyder <msnyder@redhat.com>
1658 * regcache.c (fetch_register): Call target_fetch_register
1659 only if we don't call FETCH_PSEUDO_REGISTER.
1660 (store_register): Call target_store_register only if we
1661 don't call STORE_PSEUDO_REGISTER.
1663 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
1665 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
1666 ELF_MAKE_MSYMBOL_SPECIAL.
1667 * gdbarch.c, gdbarch.h: Regenerate.
1668 * arch-utils.c (default_make_msymbol_special): New function.
1669 * arch-utils.h (default_make_msymbol_special): Export.
1670 * elfread.c (elf_symtab_read): Compile use of
1671 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
1673 * coffread.c (coff_symtab_read): Ditto, for
1674 COFF_MAKE_MSYMBOL_SPECIAL.
1676 2002-02-05 Jim Blandy <jimb@redhat.com>
1678 * solib-svr4.c (svr4_truncate_ptr): New function.
1679 (svr4_relocate_section_addresses): Do the address arithmetic with
1680 the appropriate truncation for target addresses, even when
1681 CORE_ADDR is larger than a target address.
1683 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1685 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
1688 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1690 * gdbserver/linux-low.c (kill_inferior): Remove commented out
1693 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1695 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
1697 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1699 * gdbserver/linux-low.c: Remove unused include files.
1701 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1703 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
1704 (read_inferior_memory): Use it.
1705 (write_inferior_memory): Likewise.
1707 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1709 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
1710 grubbing through sys_errlist.
1712 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1714 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
1716 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1717 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
1719 2002-02-04 Andrew Cagney <ac131313@redhat.com>
1721 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
1722 (do_sfunc, set_cmd_sfunc): New functions.
1724 * command.h (struct cmd_list_element): Add field func.
1725 * cli/cli-decode.h (struct cmd_list_element): Ditto.
1726 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
1727 * cli/cli-decode.h: Ditto.
1729 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
1730 (help_all, help_cmd_list): Ditto.
1731 (find_cmd, complete_on_cmdlist): Ditto.
1732 * top.c (execute_command): Ditto.
1734 * cli/cli-setshow.c (do_setshow_command): Call func instead of
1737 * infcmd.c (notice_args_read): Fix function signature.
1739 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
1740 * cli/cli-decode.c (add_set_cmd): Ditto.
1741 * utils.c (initialize_utils): Ditto.
1742 * maint.c (_initialize_maint_cmds): Ditto.
1743 * infrun.c (_initialize_infrun): Ditto.
1744 * demangle.c (_initialize_demangler): Ditto.
1745 * remote.c (add_packet_config_cmd): Ditto.
1746 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1747 * cris-tdep.c (_initialize_cris_tdep): Ditto.
1748 * proc-api.c (_initialize_proc_api): Ditto.
1749 * kod.c (_initialize_kod): Ditto.
1750 * valprint.c (_initialize_valprint): Ditto.
1751 * top.c (init_main): Ditto.
1752 * infcmd.c (_initialize_infcmd): Ditto.
1753 * corefile.c (_initialize_core): Ditto.
1754 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1755 * arch-utils.c (initialize_current_architecture): Ditto.
1756 (_initialize_gdbarch_utils): Ditto.
1757 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1759 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
1760 * wince.c (_initialize_inftarg): Ditto.
1761 * symfile.c (_initialize_symfile): Ditto.
1762 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1763 * language.c (_initialize_language): Ditto.
1764 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1766 2002-02-04 Michael Snyder <msnyder@redhat.com>
1768 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
1770 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1772 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
1773 Add rules for building the register data files.
1775 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1777 * regformats/regdat.sh: Add braces to the definition of
1778 expedite_regs_${arch}.
1780 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1782 * regformats/regdef.h (struct reg): Add comment describing the
1783 requirements for offset and size fields.
1785 2002-02-04 Andreas Schwab <schwab@suse.de>
1787 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
1788 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
1790 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
1792 * gdbarch.sh (copyright): Update years in generated header.
1793 (SMASH_TEXT_ADDRESS): Add rule.
1794 * gdbarch.h, gdbarch.c: Re-generate.
1795 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
1796 * dbxread.c: Likewise.
1797 * dwarfread.c: Likewise.
1798 * elfread.c: Likewise.
1799 * somread.c: Likewise.
1801 * arm-tdep.c (arm_smash_text_address): New function.
1802 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
1804 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1806 Add support for hardware watchpoints on win32 native.
1807 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
1808 CONTEXT_DEBUG_REGISTERS.
1809 (dr variable): New variable. Static array containing a local copy
1811 (debug_registers_changed): New variable. Reflects when debug registers
1812 are changed and need to be written to inferior.
1813 (debug_registers_used): New variable. Reflects when any debug register
1814 was set, used when new threads are created.
1815 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
1817 (thread_rec): Set dr array if id is the thread of current_event .
1818 (child_continue, child_resume): Change the debug registers for all
1819 threads if debug_registers_changed.
1820 (child_add_thread): Change the debug registers if debug_registers_used.
1821 * config/i386/cygwin.mh: Add use of i386-nat.o file.
1822 Link nm.h to new nm-cygwin.h file.
1823 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
1824 of hardware registers.
1826 2002-02-03 Andrew Cagney <ac131313@redhat.com>
1828 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
1829 Restore behavour broken by 2002-01-20 Andrew Cagney
1830 <ac131313@redhat.com> IEEE_FLOAT removal.
1832 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1834 * c-valprint.c (c_val_print): Pass a proper valaddr to
1835 cp_print_class_method.
1836 * valops.c (search_struct_method): If there is only one method
1837 and args is NULL, return that method.
1839 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1841 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1842 accessing tag_name directly.
1844 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1846 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1847 of accessing tag_name directly.
1849 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1852 * gdbtypes.c (replace_type): New function.
1853 * gdbtypes.h (replace_type): Add prototype.
1854 * stabsread.c (read_type): Use replace_type.
1856 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
1858 * Makefile.in (memattr.o): Add missing dependencies rule.
1860 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1862 * breakpoint.c (break_at_finish_command): Really export.
1863 (break_at_finish_at_depth_command): Ditto.
1864 (tbreak_at_finish_command): Ditto.
1865 * hppa-tdep.c: Include completer.h.
1866 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1867 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1869 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1871 * utils.c (do_write): New function.
1872 (error_stream): Rewrite combining the code from error_begin and
1874 (verror): Rewrite using error_stream.
1875 (error_begin): Delete function.
1877 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1879 * utils.c (error_begin): Make static.
1880 * defs.h (error_begin): Delete declaration.
1882 * linespec.c (cplusplus_error): Replace cplusplus_hint.
1883 (decode_line_1): Use cplusplus_error instead of error_begin,
1884 cplusplus_hint and return_to_top_level.
1885 * coffread.c (coff_symfile_read): Use error instead of error_begin
1886 and return_to_top_level.
1887 * infrun.c (default_skip_permanent_breakpoint): Ditto.
1889 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1891 * language.h (type_error, range_error): Make string parameter
1893 * language.c (warning_pre_print): Delete extern declaration.
1894 * dwarfread.c (warning_pre_print): Ditto.
1895 * language.c (type_error, range_error): Rewrite to use verror and
1896 vwarning instead of warning_begin.
1898 2002-02-01 Michael Snyder <msnyder@redhat.com>
1900 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1901 (set_ignore_count): Move misplaced comment back where it belongs.
1903 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1905 * command.h (NO_FUNCTION): Delete macro.
1906 * cli/cli-decode.h (NO_FUNCTION): Ditto.
1907 * top.c (execute_command): Replace NO_FUNCTION with NULL.
1908 * tracepoint.c (_initialize_tracepoint): Ditto.
1909 * cli/cli-decode.c (add_set_cmd): Ditto.
1910 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1912 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1914 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1915 Update ``this'' pointer when calling virtual functions.
1917 2002-02-01 Michael Snyder <msnyder@redhat.com>
1919 * breakpoint.c (create_temp_exception_breakpoint): Delete.
1920 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1922 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1924 * regformats/reg-arm.dat: New file.
1925 * regformats/reg-i386.dat: New file.
1926 * regformats/reg-ia64.dat: New file.
1927 * regformats/reg-m68k.dat: New file.
1928 * regformats/reg-mips.dat: New file.
1929 * regformats/reg-ppc.dat: New file.
1930 * regformats/reg-sh.dat: New file.
1931 * regformats/regdef.h: New file.
1932 * regformats/regdat.sh: New file.
1934 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
1936 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1937 (arm_frame_args_address, arm_frame_locals_address): New functions.
1938 (arm_frame_num_args): New function.
1939 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1940 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1941 (FRMA_NUM_ARGS): Call arm_frame_num_args.
1943 2002-01-31 Michael Snyder <msnyder@redhat.com>
1945 * breakpoint.c (break_at_finish_command): Export.
1946 (break_at_finish_at_depth_command): Export.
1947 (tbreak_at_finish_command): Export.
1948 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1949 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
1950 "tbreak" commands, which are HPPA specific.
1952 * printcmd.c (disassemble_command): Remove an ancient
1953 artifact of an old merge.
1955 * symfile.h (enum overlay_debugging_state):
1956 Define enum constant values for overlay mode.
1957 * symfile.c (overlay_debugging): Use enums instead of literals.
1958 (overlay_is_mapped, overlay_auto_command,
1959 overlay_manual_command): Ditto.
1961 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1962 breakpoint_here_p, breakpoint_inserted_here_p,
1963 breakpoint_thread_match, bpstat_stop_status,
1964 describe_other_breakpoints, check_duplicates, clear_command):
1965 Coding standard fixes.
1967 * target.c (target_xfer_memory): Add spaces, coding standard.
1968 (do_xfer_memory): Add missing line to trust-readonly
1969 code: check bfd SEC_READONLY flag for section.
1971 2002-01-31 Andrew Cagney <ac131313@redhat.com>
1973 * PROBLEMS: Fix typo, 5.1->5.1.1.
1975 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
1977 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
1978 data symbols, since we search based on textlow and texthigh.
1979 (find_pc_sect_symtab): Likewise.
1981 2002-01-30 Andrew Cagney <ac131313@redhat.com>
1983 * defs.h (vwarning): Declare.
1984 * utils.c (vwarning): New function.
1985 (warning): Call vwarning.
1986 (warning_begin): Delete function.
1988 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
1989 the warning message.
1990 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
1993 2002-01-30 Michael Snyder <msnyder@redhat.com>
1995 * NEWS: Mention "set trust-readonly-sections" command.
1996 Mention generate-core-file command.
1998 2002-01-15 Michael Snyder <msnyder@redhat.com>
2000 * target.c: New command, "set trust-readonly-sections on".
2001 (do_xfer_memory): Honor the suggestion to trust readonly sections
2002 by reading them from the object file instead of from the target.
2003 (initialize_targets): Register command "set trust-readonly-sections".
2005 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2007 * parse.c (target_map_name_to_register): Simplify, search regs and
2008 pseudo-regs using a single loop.
2010 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2012 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2014 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2016 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2017 * config/i386/i386v42mp.mh: Add i387-nat.o .
2018 * i386v4-nat.c: Include i387-nat.h.
2019 (supply_fpregset): Use i387_supply_fsave.
2020 (fill_fpregset): Use i387_fill_fsave.
2022 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2024 * arm-tdep.c (arm_call_dummy_words): Define.
2025 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2026 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2027 (CALL_DUMMY_WORDS): Define.
2028 (arm_call_dummy_words): Declare.
2029 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2030 (arm_linux_call_dummy_words): Declare.
2032 2002-01-30 Andreas Schwab <schwab@suse.de>
2034 * m68klinux-nat.c: Fix last change to use regcache_collect
2035 instead of referencing registers[] directly.
2037 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2039 * parse.c (target_map_name_to_register): Delete code wrapped in
2040 #ifdef REGISTER_NAME_ALIAS_HOOK.
2042 2002-01-28 Michael Snyder <msnyder@redhat.com>
2044 * regcache.c (legacy_read_register_gen): Need to be able to
2045 read pseudo-register as well as real register.
2046 (legacy_write_register_gen): Ditto.
2048 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2050 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2051 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2052 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2053 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2054 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2055 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2056 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2057 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2058 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2059 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2060 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2061 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2062 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2063 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2064 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2065 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2066 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2067 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2068 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2069 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2071 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2073 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2074 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2075 (initialize_current_architecture): Update target_byte_order using
2076 information from BFD.
2077 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2078 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2080 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2082 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2083 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2085 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2086 #ifdef INVALID_FLOAT.
2087 * infcmd.c (do_registers_info): Ditto.
2088 * values.c (unpack_double): Ditto. Add comment.
2090 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2091 already commented out.
2093 2002-01-26 Andreas Schwab <schwab@suse.de>
2095 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2096 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2097 registers and add support for PTRACE_GETREGS.
2099 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2101 GDB 5.1.1 released from 5.1 branch.
2102 * NEWS: Add 5.1.1 news.
2103 * README: Sync with 5.1 branch.
2105 2002-01-23 Fred Fish <fnf@redhat.com>
2107 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2108 stabstring on initial malloc. Reallocing will copy it for us,
2111 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2113 * Makefile.in (hpread_h): Delete.
2114 (HFILES_NO_SRCDIR): Remove hpread.h.
2115 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2116 (hpread.o): Update dependencies.
2117 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2119 * hp-psymtab-read.c: Remove file.
2120 * hp-symtab-read.c: Remove file.
2121 * hpread.h: Remove file.
2123 * hpread.c: Merge all contents of hp-psymtab-read.c,
2124 hp-symtab-read.c and hpread.h into this file, as it was prior to
2127 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2128 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2129 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2130 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2132 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2134 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2135 fill_gregset): Call gdbarch_tdep() just once, assign result to
2136 variable and use that, instead of calling the function several
2139 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2141 * configure.host: Accept sparcv9 as alias for sparc64.
2142 * configure.tgt: Likewise.
2144 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2146 * solib-aix5.c (build_so_list_from_mapfile)
2147 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2148 arguments is not reversed.
2149 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2150 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2152 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2154 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2155 modified version of obsolete sh_fetch_pseudo_register.
2156 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2157 (sh4_register_read): New function.
2158 (sh_pseudo_register_write): New function. Renamed and modified
2159 version of obsolete sh_store_pseudo_register.
2160 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2161 (sh4_register_write): New function.
2162 (sh_gdbarch_init): Remove setting of gdbarch function
2163 fetch_pseudo_register and store_pseudo_register. Remove setting of
2164 register_convert_to_raw, register_convert_to_virtual,
2165 register_convertible.
2166 (sh_sh4_register_convertible): Delete. No longer needed. All is
2167 taken care by architecture specific functions
2168 register_read/register_write.
2169 (sh_sh4_register_convert_to_virtual): Make static.
2170 (sh_sh4_register_convert_to_raw): Ditto.
2172 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2174 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2175 (floatformat_is_nan, floatformat_mantissa): Ditto.
2177 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2178 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2179 builtin_type_ieee_double_little,
2180 builtin_type_ieee_double_littlebyte_bigword,
2181 builtin_type_m68881_ext, builtin_type_i960_ext,
2182 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2183 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2184 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2185 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2187 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2189 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2190 parameter. Set frameless flag if it exists and depended of
2191 whether the scanned function is frameless or not.
2192 (xstormy16_skip_prologue): If function is frameless, return
2193 result of xstormy16_scan_prologue().
2194 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2197 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2199 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2200 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2201 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2202 sh_sh4_register_byte, sh_sh4_register_raw_size,
2203 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2204 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2205 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2206 sh_store_pseudo_register, sh_do_pseudo_register): Call
2207 gdbarch_tdep() just once, assign result to variable and use that,
2208 instead of calling the function several times.
2210 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2212 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2213 macros instead of LAST_FPU_CTRL_REGNUM.
2214 (store_register): Likewise.
2216 2002-01-21 Jim Blandy <jimb@redhat.com>
2218 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2219 is up-to-date before running the program, not just when a program
2222 2002-01-21 Fred Fish <fnf@redhat.com>
2224 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2225 when we have found all instructions we are looking for.
2227 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2229 * arm-tdep.c (arm_register_name): New function.
2230 (arm_registers_names): Make static.
2231 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2232 (arm_register_name): Declare.
2233 (REGISTER_NAME): Use it.
2235 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2236 Kevin Buettner <kevinb@redhat.com>
2238 Convert arm targets to new FRAME interface.
2239 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2240 (arm_frame_find_save_regs): Delete.
2241 (arm_frame_init_saved_regs): New.
2242 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2243 Allocate extra_info as required. Convert all uses of fsr.regs
2244 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2246 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2247 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2248 (check_prologue_cache, save_prologue_cache): Likewise.
2249 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2250 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2251 (FRAME_FIND_SAVED_REGS): Delete.
2252 (arm_frame_find_saved_regs): Delete prototype.
2253 (arm_frame_init_saved_regs): New prototype.
2254 (FRAME_INIT_SAVED_REGS): Define.
2256 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2258 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2260 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2262 From Jeff Law <law@redhat.com>:
2263 * infttrace.c: Include <sys/pstat.h>.
2264 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2265 exec file if the ttrace equivalent fails.
2267 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2269 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2270 (closeLogFile): Ditto.
2272 2002-01-20 Michael Chastain <mec@shout.net>
2274 * top.c (print_gdb_version): Bump copyright year to 2002.
2276 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2278 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2279 Zannoni and Eli Zaretskii.
2281 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2283 * buildsym.c: Update copyright years.
2284 * c-typeprint.c: Likewise.
2285 * dwarf2read.c: Likewise.
2286 * f-typeprint.c: Likewise.
2287 * gdbtypes.c: Likewise.
2288 * gdbtypes.h: Likewise.
2289 * hp-symtab-read.c: Likewise.
2290 * hpread.c: Likewise.
2291 * mdebugread.c: Likewise.
2292 * p-typeprint.c: Likewise.
2294 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2296 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2297 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2298 byte-order selectable.
2299 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2300 * arch-utils.c: Ditto.
2301 (set_endian): Ditto.
2302 (set_endian_from_file): Ditto.
2303 * gdbserver/low-sim.c (create_inferior): Ditto.
2304 * gdbarch.sh: Ditto.
2305 * gdbarch.h: Re-generate.
2306 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2307 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2308 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2309 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2310 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2311 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2312 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2313 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2315 * config/mips/tm-wince.h: Remove #undef of macro
2316 TARGET_BYTE_ORDER_SELECTABLE.
2317 * config/sh/tm-wince.h: Ditto.
2319 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2321 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2322 member function fields. Add accessor macro
2323 TYPE_FN_FIELD_ARTIFICIAL.
2324 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2325 * c-typeprint.c (c_type_print_base): Skip artificial member
2328 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2330 * f-typeprint.c: Delete unused function f_type_print_args.
2331 * p-typeprint.c: Delete unused function pascal_type_print_args.
2333 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2335 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2336 comment. Add ``artificial'' to ``union field_location''.
2338 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2340 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2341 * mdebugread.c (parse_symbol): Likewise.
2342 * stabsread.c (define_symbol): Likewise.
2343 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2344 initializing TYPE_FIELD_BITPOS to n (obsolete).
2345 (hpread_doc_function_type): Likewise.
2346 * hpread.c (hpread_function_type): Likewise.
2348 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2350 * configure.in (host_makefile_frag): Only require a host makefile
2351 fragment when a native build.
2352 * configure: Re-generate.
2354 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2356 * doublest.h (floatformat_from_type): Declare.
2357 * doublest.c (floatformat_from_type): New function.
2358 (convert_typed_floating): Use.
2360 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2361 call to function floatformat_from_type.
2363 * gdbarch.sh (IEEE_FLOAT): Delete.
2364 * gdbarch.h, gdbarch.c: Re-generate.
2365 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2366 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2367 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2368 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2369 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2370 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2371 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2372 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2373 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2374 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2375 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2376 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2378 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2379 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2380 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2381 * sh-tdep.c (sh_gdbarch_init): Ditto.
2382 * mips-tdep.c (mips_gdbarch_init): Ditto.
2383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2384 * cris-tdep.c (cris_gdbarch_init): Ditto.
2386 2002-01-20 Jiri Smid <smid@suse.cz>
2388 * configure.host, configure.tgt: Support x86-64.
2389 * NEWS: Note new target x86-64.
2391 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2392 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2393 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2394 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2395 x86-64-linux-nat.o): Fix dependencies.
2397 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2399 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2400 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2401 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2402 * config/sparc/xm-sun4os4.h: Delete file.
2403 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2405 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2407 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2408 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2409 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2410 * config/i386/i386lynx.mh (XM_FILE): Delete.
2411 * config/rs6000/xm-rs6000ly.h: Delete file.
2412 * config/sparc/xm-sparclynx.h: Delete file.
2413 * config/m68k/xm-m68klynx.h: Delete file.
2414 * config/i386/xm-i386lynx.h: Delete file.
2415 * config/xm-lynx.h: Delete file.
2416 * config/djgpp/fnchange.lst: Update.
2418 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2420 * alpha-tdep.c (alpha_register_byte): New function.
2421 (alpha_register_raw_size): Ditto.
2422 (alpha_register_virtual_size): Ditto.
2423 (alpha_skip_prologue_internal): Renamed from
2424 alpha_skip_prologue.
2425 (alpha_skip_prologue): New version that calls
2426 alpha_skip_prologue_internal.
2427 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2428 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2429 second argument from alpha_skip_prologue.
2430 (REGISTER_BYTE): Use alpha_register_byte.
2431 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2432 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2433 (FRAMELESS_FUNCTION_INVOCATION): Use
2434 generic_frameless_function_invocation_not.
2435 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2436 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2438 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2440 * config/mips/xm-news-mips.h: Delete file.
2441 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2443 * config/m88k/xm-m88k.h: Delete file.
2444 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2445 * config/m88k/xm-delta88v4.h: Ditto.
2446 * config/m88k/xm-delta88.h: Ditto.
2448 * config/alpha/xm-fbsd.h: Delete file.
2449 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2451 * config/sparc/xm-sparc.h: Delete file.
2452 * Makefile.in (xm-sun4os4.h): Delete dependency.
2453 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2454 * config/sparc/xm-sun4os4.h: Ditto.
2455 * config/sparc/xm-linux.h: Ditto.
2457 * config/i386/xm-windows.h: Delete file.
2459 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2461 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2462 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2464 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2466 * alpha-tdep.c (alpha_call_dummy_words): New.
2467 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2468 (CALL_DUMMY_P): Define.
2469 (CALL_DUMMY_WORDS): Define.
2470 (SIZEOF_CALL_DUMMY_WORDS): Define.
2472 2002-01-19 Per Bothner <per@bothner.com>
2474 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2475 isn't NULL, which can happen with some gcj-3.x-produced code.
2477 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2479 * alpha-tdep.c (alpha_register_virtual_type): New function.
2480 (alpha_init_frame_pc_first): Ditto.
2481 (alpha_fix_call_dummy): Ditto.
2482 (alpha_store_struct_return): Ditto.
2483 (alpha_extract_struct_value_address): Ditto.
2484 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2485 alpha_register_virtual_type.
2486 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2487 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2488 alpha_extract_struct_value_address.
2489 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2490 (INIT_FRAME_PC): Use init_frame_pc_noop.
2491 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2493 2002-01-19 Mark Kettenis <kettenis@gnu.org>
2495 * i386gnu-nat.c: Include "i386-tdep.h".
2496 (fetch_fpregs): Simplify code dealing with uninitialized floating
2497 point states such that it doesn't require FP7_REGNUM.
2499 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2501 * alpha-tdep.c (frame_extra_info): New.
2502 (alpha_find_saved_regs): Make static. Use
2504 (alpha_frame_init_saved_regs): New function.
2505 (alpha_frame_saved_pc): Use frame->extra_info.
2506 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2507 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2508 (init_extra_frame_info): Rename to...
2509 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
2510 (alpha_print_extra_frame_info): New function.
2511 (alpha_frame_locals_address): Ditto.
2512 (alpha_frame_args_address): Ditto.
2513 (alpha_pop_frame): Use frame->extra_info.
2514 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2515 alpha_frame_args_address.
2516 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2517 (alpha_find_saved_regs): Remove prototype.
2518 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2519 (EXTRA_FRAME_INFO): Remove.
2520 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2521 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2523 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2525 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2526 (alpha_cannot_fetch_register): Ditto.
2527 (alpha_cannot_store_register): Ditto.
2528 (alpha_register_convertible): Ditto.
2529 (alpha_use_struct_convention): Ditto.
2530 * config/alpha/tm-alpha.h: Update copyright years.
2531 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2532 (INNER_THAN): Use core_addr_lessthan.
2533 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2534 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2535 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2536 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2537 (FRAME_CHAIN): Remove unnecessary cast.
2539 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2541 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2544 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2546 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
2547 * monitor.c, remote-array.c, remote-bug.c: Ditto.
2548 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2549 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2550 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2551 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2552 * x86-64-linux-nat.c: Ditto.
2554 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2556 * alpha-tdep.c (alpha_register_name): New function.
2557 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2558 (REGISTER_NAME): Define.
2560 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2562 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2564 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2566 * alpha-tdep.c: Update copyright years.
2567 (alpha_next_pc): New function.
2568 (alpha_software_single_step): Ditto.
2569 * config/alpha/tm-alpha.h: Add prototype for
2570 alpha_software_single_step.
2572 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2574 * alphabsd-nat.c: Update copyright years.
2575 (fill_gregset): Use regcache_collect.
2576 (fill_fpregset): Likewise.
2577 (fetch_inferior_registers): Only fetch integer registers
2578 if requested to do so.
2579 (store_inferior_registers): Only store integer registers
2580 if requested to do so.
2582 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2584 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
2585 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
2586 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
2587 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
2588 * config/alpha/fbsd.mh (XDEPFILES): Delete.
2589 * config/arm/linux.mh (XDEPFILES): Delete.
2590 * config/arm/nbsd.mh (XDEPFILES): Delete.
2591 * config/i386/i386dgux.mh (XDEPFILES): Delete.
2592 * config/i386/i386sol2.mh (XDEPFILES): Delete.
2593 * config/i386/i386m3.mh (XDEPFILES): Delete.
2594 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
2595 * config/i386/i386gnu.mh (XDEPFILES): Delete.
2596 * config/i386/fbsd.mh (XDEPFILES): Delete.
2597 * config/i386/i386bsd.mh (XDEPFILES): Delete.
2598 * config/i386/i386sco5.mh (XDEPFILES): Delete.
2599 * config/i386/i386v4.mh (XDEPFILES): Delete.
2600 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
2601 * config/i386/i386sco4.mh (XDEPFILES): Delete.
2602 * config/i386/i386aix.mh (XDEPFILES): Delete.
2603 * config/i386/go32.mh (XDEPFILES): Delete.
2604 * config/i386/cygwin.mh (XDEPFILES): Delete.
2605 * config/i386/i386lynx.mh (XDEPFILES): Delete.
2606 * config/i386/i386mach.mh (XDEPFILES): Delete.
2607 * config/i386/i386v32.mh (XDEPFILES): Delete.
2608 * config/i386/linux.mh (XDEPFILES): Delete.
2609 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
2610 * config/i386/ncr3000.mh (XDEPFILES): Delete.
2611 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
2612 * config/i386/i386sco.mh (XDEPFILES): Delete.
2613 * config/i386/i386v.mh (XDEPFILES): Delete.
2614 * config/i386/nbsd.mh (XDEPFILES): Delete.
2615 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
2616 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
2617 * config/i386/symmetry.mh (XDEPFILES): Delete.
2618 * config/i386/obsd.mh (XDEPFILES): Delete.
2619 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
2620 * config/ia64/linux.mh (XDEPFILES): Delete.
2621 * config/ia64/aix.mh (XDEPFILES): Delete.
2622 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
2623 * config/m68k/dpx2.mh (XDEPFILES): Delete.
2624 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
2625 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
2626 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
2627 * config/m68k/linux.mh (XDEPFILES): Delete.
2628 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
2629 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
2630 * config/m68k/nbsd.mh (XDEPFILES): Delete.
2631 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
2632 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
2633 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
2634 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
2635 * config/m88k/delta88.mh (XDEPFILES): Delete.
2636 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
2637 * config/m88k/m88k.mh (XDEPFILES): Delete.
2638 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
2639 * config/mips/linux.mh (XDEPFILES): Delete.
2640 * config/mips/irix6.mh (XDEPFILES): Delete.
2641 * config/mips/irix5.mh (XDEPFILES): Delete.
2642 * config/mips/irix4.mh (XDEPFILES): Delete.
2643 * config/mips/irix3.mh (XDEPFILES): Delete.
2644 * config/mips/decstation.mh (XDEPFILES): Delete.
2645 * config/mips/mipsm3.mh (XDEPFILES): Delete.
2646 (NATDEPFILES): Move core-aout.o to here.
2647 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
2648 * config/pa/hpux1020.mh (XDEPFILES): Delete.
2649 * config/pa/hppabsd.mh (XDEPFILES): Delete.
2650 * config/pa/hppahpux.mh (XDEPFILES): Delete.
2651 * config/pa/hpux11w.mh (XDEPFILES): Delete.
2652 * config/pa/hppaosf.mh (XDEPFILES): Delete.
2653 * config/pa/hpux11.mh (XDEPFILES): Delete.
2654 * config/powerpc/aix.mh (XDEPFILES): Delete.
2655 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
2656 * config/powerpc/linux.mh (XDEPFILES): Delete.
2657 * config/romp/rtbsd.mh: Rename XDEPFILES.
2658 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
2659 * config/rs6000/aix4.mh (XDEPFILES): Delete.
2660 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
2661 * config/s390/s390.mh (XDEPFILES): Delete.
2662 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
2663 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
2664 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
2665 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
2666 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
2667 * config/sparc/nbsd.mh (XDEPFILES): Delete.
2668 * config/sparc/linux.mh (XDEPFILES): Delete.
2669 * config/vax/vaxult.mh (XDEPFILES): Delete.
2670 * config/vax/vaxult2.mh (XDEPFILES): Delete.
2671 * Makefile.in (DEPFILES): Remove XDEPFILES.
2673 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2675 * utils.c (internal_verror): Fix comments, default is yes not no.
2676 Update queries to match. Default to quit and dump core.
2678 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2680 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
2682 * defs.h, event-top.c, gdbcmd.h: Ditto.
2683 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
2684 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
2685 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
2686 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
2687 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
2688 * mi/mi-main.c:Ditto.
2690 * stack.c, symfile.c: Update copyright.
2692 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2694 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
2695 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
2696 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
2697 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2699 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2701 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
2702 * gdbserver/low-lynx.c (myattach): Likewise.
2703 * gdbserver/low-nbsd.c (myattach): Likewise.
2704 * gdbserver/low-sim.c (myattach): Likewise.
2705 * gdbserver/low-sparc.c (myattach): Likewise.
2706 * gdbserver/low-sun3.c (myattach): Likewise.
2708 * gdbserver/low-linux.c (myattach): New function.
2710 * gdbserver/server.c (attach_inferior): New function.
2711 (main): Handle "--attach".
2713 2002-01-16 Andrew Cagney <ac131313@redhat.com>
2715 * MAINTAINERS (language support): Daniel Jacobwitz is C++
2718 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
2720 * c-typeprint.c (is_type_conversion_operator): Add additional
2721 check for non-conversion operators.
2723 2002-01-15 Michael Snyder <msnyder@redhat.com>
2725 * linux-proc.c: Add "info proc" command, a la procfs.c.
2726 (read_mapping): New function, abstract and re-use code.
2727 (linux_find_memory_regions): Use new func read_mapping.
2728 (linux_info_proc_cmd): New function, implement "info proc".
2729 (_initialize_linux_proc): Add new command "info proc".
2731 2002-01-15 Michael Snyder <msnyder@redhat.com>
2733 * symfile.c (generic_load): Use bfd_map_over_sections method
2734 instead of manipulating bfd structure members directly.
2735 (add_section_size_callback): New function, bfd sections callback
2736 used by generic_load.
2737 (load_sections_callback): New function, bfd sections callback
2738 used by generic_load.
2740 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
2742 [Based on work by Jim Blandy]
2743 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
2744 (builtin_type_vec128): Export.
2745 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
2747 (builtin_type_vec128): New builtin type for 128 bit vector
2749 (build_gdbtypes): Initialize builtin_type_v16qi and
2750 builtin_type_v8hi. Create the vec128 register builtin type
2752 (build_builtin_type_vec128): New function.
2753 (_initialize_gdbtypes): Register builtin_type_v16qi and
2754 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
2755 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
2756 AltiVec register to new builtin type.
2758 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
2760 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
2763 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2765 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
2766 CLEAN_UP_REGISTER_VALUE.
2767 * regcache.c (supply_register): Update only call.
2769 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2771 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2772 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2773 a29k-*-vxworks* targets as obsolete.
2775 2002-01-14 Michael Snyder <msnyder@redhat.com>
2777 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
2778 until we can resolve portability issues.
2779 * gregset.h: Remove references to fpxregs.
2780 * gcore.c (gcore_command): Initialize note_sec to NULL.
2782 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2784 * signals.c (target_signal_to_name): Rewrite. Only use
2785 signals[].name when in bounds and non-NULL.
2787 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2789 From Petr Ledvina <ledvinap@kae.zcu.cz>:
2790 * signals.c (target_signal_to_name): Verify that SIG is within the
2791 bounds of the signals array.
2793 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2795 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
2797 2002-01-13 Keith Seitz <keiths@redhat.com>
2799 * stack.c (print_frame_info_base): Print the frame's pc
2800 only if when print_frame_info_listing_hook is not defined.
2802 2002-01-13 Keith Seitz <keiths@redhat.com>
2804 * varobj.c (varobj_set_value): Make sure that there were no
2805 errors evaluating the object before attempting to set its
2807 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
2808 so this offset adjustment is no longer necessary.
2809 (create_child): Don't set the error flag if the child is
2811 (value_of_child): If value_fetch_lazy fails, return NULL
2812 so that callers will be notified that an error occurred.
2813 (c_value_of_variable): Delay check of variable's validity
2814 until later. We actually want all structs and unions to have
2816 Do not return "???" for variables which could not be evaluated.
2817 This error condition must be returned to the caller so that it
2818 can get the error condition from gdb.
2819 (cplus_name_of_child): Adjust index for vptr before figuring
2820 out the name of the child.
2821 (cplus_value_of_child): If a child's (real) parent is not valid,
2822 don't even bother trying to give a value for it. Just return
2823 an error. Change all instances in this function.
2824 (cplus_type_of_child): If our parent is one of the "fake"
2825 parents, we need to get at the type of the real parent, and
2826 derive the child's true type using this information.
2828 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2830 From 2002-01-09 John Marshall <johnm@falch.net>:
2831 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
2832 sources.redhat.com, and tweak some related URLs which had
2833 suffered from linkrot.
2835 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2838 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
2839 structures passed in registers.
2841 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
2843 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2844 white space which prevented compilation. Reported by DSK
2845 <dsk@student.unsw.edu.au>.
2847 2002-01-11 Michael Snyder <msnyder@redhat.com>
2849 * symfile.c (build_section_addr_info_from_section_tab):
2850 Use bfd access method instead of manipulating bfd directly.
2851 (syms_from_objfile): Ditto.
2852 (simple_overlay_update_1): Ditto.
2853 (simple_overlay_update): Ditto.
2854 (generic_load): Ditto.
2855 (overlay_unmapped_address): FIXME comment, bfd access methods.
2856 (sections_overlap): FIXME comment, bfd access methods.
2857 (pc_in_mapped_range): FIXME comment, bfd access methods.
2858 (pc_in_unmapped_range): FIXME comment, bfd access methods.
2859 (section_is_mapped): FIXME comment, bfd access methods.
2860 (section_is_overlay): FIXME comment, bfd access methods.
2862 * symfile.c (generic_load): Whitespace and long line cleanups.
2863 Remove duplicate variable, change several local variables to
2864 more appropriate data types.
2865 (print_transfer_performance): Use %lu instead of %ld for ulongs.
2867 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2870 * language.c (longest_local_hex_string_custom): Use phex_nz to
2871 convert NUM to a hex string.
2873 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
2875 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2877 Update Copyright year.
2879 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2881 * language.c (longest_raw_hex_string): Delete unused function.
2883 2002-01-11 Petr Sorfa <petrs@caldera.com>
2885 * MAINTAINERS (write-after-approval): Add myself.
2886 * dwarf2read.c (read_tag_string_type): Handling of
2888 (read_tag_string_type): FORTRAN fix to prevent propagation of
2890 (set_cu_language): Handling of DW_LANG_Fortran95
2892 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2894 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2895 GETPID(inferior_ptid).
2896 (store_inferior_registers): Likewise.
2898 2002-01-10 Jason Merrill <jason@redhat.com>
2900 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2903 2002-01-10 Andrew Cagney <ac131313@redhat.com>
2905 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2906 and bfd/elf32-sh-nbsd.c.
2908 2002-01-10 Michael Snyder <msnyder@redhat.com>
2910 * NEWS: Mention --pid and corefile/proc-id behavior change.
2912 * Makefile.in: Add rules for gcore.o and linux-proc.o.
2913 * gcore.c: Include cli/cli-decode.h instead of command.h.
2915 * main.c (captured_main): Add new command line option "--pid".
2916 If the second command line argument (following the symbol-file)
2917 begins with a digit, try to attach to it before trying to open
2919 (print_gdb_help): Document the "--pid" argument.
2921 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
2923 * completer.c (command_completer): New function.
2925 * completer.h <command_completer>: Add prototype.
2927 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2928 completer for the "help" command.
2930 2002-01-09 Jason Merrill <jason@redhat.com>
2932 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2934 2002-01-09 Michael Snyder <msnyder@redhat.com>
2936 * i386-linux-nat.c (fill_fpxregset): Make global.
2937 (store_fpxregset): Ditto.
2939 * gregset.h (gdb_fpxregset_t): Define.
2940 (supply_fpxregset): Prototype.
2941 (fill_fpxregset): Prototype.
2943 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2945 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2947 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2948 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2949 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
2951 2002-01-09 Andrew Cagney <ac131313@redhat.com>
2953 * MAINTAINERS: Update target maintainer rules so that any
2954 Maintainer can approve a tested patch for a maintenance-only
2957 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2959 * MAINTAINERS (write-after-approval): Add myself.
2961 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
2964 2002-01-08 Michael Snyder <msnyder@redhat.com>
2966 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
2967 real name of the executable, rather than the /proc name.
2969 2002-01-03 Michael Snyder <msnyder@redhat.com>
2971 Implement a "generate-core-file" command in gdb, save target state.
2972 * gcore.c: New file. Implement new command 'generate-core-file'.
2973 Save a corefile image of the current state of the inferior.
2974 * linux-proc.c: Add linux-specific code for saving corefiles.
2975 * target.h (struct target_ops): Add new target vectors for saving
2976 corefiles; to_find_memory_regions and to_make_corefile_notes.
2977 (target_find_memory_regions): New macro.
2978 (target_make_corefile_notes): New macro.
2979 * target.c (update_current_target): Inherit new target methods.
2980 (dummy_find_memory_regions): New place-holder method.
2981 (dummy_make_corefile_notes): New place-holder method.
2982 (init_dummy_target): Initialize new dummy target vectors.
2983 * exec.c (exec_set_find_memory_regions): New function.
2984 Allow the exec_ops vector for memory regions to be taken over.
2985 (exec_make_note_section): New function, target vector method.
2986 * defs.h (exec_set_find_memory_regions): Export prototype.
2987 * procfs.c (proc_find_memory_regions): New function, corefile method.
2988 (procfs_make_note_section): New function, corefile method.
2989 (init_procfs_ops): Set new target vector pointers.
2990 (find_memory_regions_callback): New function.
2991 (procfs_do_thread_registers): New function.
2992 (procfs_corefile_thread_callback): New function.
2993 * sol-thread.c (sol_find_memory_regions): New function.
2994 (sol_make_note_section): New function.
2995 (init_sol_thread_ops): Initialize new target vectors.
2996 * inftarg.c (inftarg_set_find_memory_regions): New function.
2997 Allow to_find_memory_regions vector to be taken over.
2998 (inftarg_set_make_corefile_notes): New function.
2999 Allow to_make_corefile_notes vector to be taken over.
3000 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3001 interface layer if not target_has_execution (may be a corefile).
3002 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3003 * config/sparc/sun4sol2.mh: Ditto.
3004 * config/alpha/alpha-linux.mh: Ditto.
3005 * config/arm/linux.mh: Ditto.
3006 * config/i386/x86-64linux.mh: Ditto.
3007 * config/ia64/linux.mh: Ditto.
3008 * config/m68k/linux.mh: Ditto.
3009 * config/mips/linux.mh: Ditto.
3010 * config/powerpc/linux.mh: Ditto.
3011 * config/sparc/linux.mh: Ditto.
3013 2002-01-07 Michael Snyder <msnyder@redhat.com>
3015 * arm-linux-nat.c: Remove references to regcache.c internal data
3016 (registers[] and register_valid[]).
3018 2002-01-07 Michael Snyder <msnyder@redhat.com>
3020 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3021 so that attaching to a pid will automatically read the process's
3022 symbol file and shlibs.
3023 * Makefile.in: Add rule for linux-proc.o.
3024 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3025 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3026 * config/arm/linux.mh: Ditto.
3027 * config/i386/linux.mh: Ditto.
3028 * config/i386/x86-64linux.mh: Ditto.
3029 * config/ia64/linux.mh: Ditto.
3030 * config/m68k/linux.mh: Ditto.
3031 * config/mips/linux.mh: Ditto.
3032 * config/powerpc/linux.mh: Ditto.
3033 * config/sparc/linux.mh: Ditto.
3035 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3037 * win32-nat.c: Add i386-tdep.h dependency.
3039 2002-01-07 Michael Snyder <msnyder@redhat.com>
3041 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3042 instead of bfd_get_arch_size. Don't bail out just because
3043 there's no exec_bfd.
3045 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3046 * p-valprint.c (pascal_object_print_value): Ditto.
3047 * somread.c (som_symtab_read): Ditto.
3048 * symfile.c (simple_free_overlay_region_table): Ditto.
3049 * valops.c (value_assign): Ditto.
3051 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3052 use tilde_expand and strerror for opening save-tracepoints file.
3054 * thread-db.c (thread_db_new_objfile): Indendation fix.
3056 * infptrace.c (GDB_MAX_ALLOCA): New define.
3057 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3058 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3059 can be overridden with whatever value is appropriate to the host).
3060 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3061 alloca to allocate potentially large buffer.
3062 * rs6000-nat.c (child_xfer_memory): Ditto.
3063 * symm-nat.c (child_xfer_memory): Ditto.
3064 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3066 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3068 From Nick Clifton <nickc@redhat.com>
3069 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3071 2002-01-07 Michael Snyder <msnyder@redhat.com>
3073 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3074 Don't use exec_bfd if it's NULL.
3076 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3078 * valops.c (value_arg_coerce): Fix formatting.
3080 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3082 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3085 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3087 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3088 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3089 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3090 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3091 z8k-coff have not been multi-arched. Update z8k-coff build
3094 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3096 * MAINTAINERS: Mark a29k target as obsolete.
3097 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3098 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3100 * NEWS: Note that a29k targets are obsolete.
3101 * a29k-tdep.c: Mark as obsolete.
3102 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3103 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3104 a29k-*-vxworks* targets as obsolete.
3105 * remote-adapt.c: Obsolete.
3106 * remote-eb.c: Obsolete.
3107 * remote-mm.c: Obsolete.
3108 * remote-udi.c: Obsolete.
3109 * config/a29k/a29k-udi.mt: Obsolete.
3110 * config/a29k/a29k.mt: Obsolete.
3111 * config/a29k/tm-a29k.h: Obsolete.
3112 * config/a29k/tm-vx29k.h: Obsolete.
3113 * config/a29k/vx29k.mt: Obsolete.
3115 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3117 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3118 with BFD_ENDIAN_BIG.
3120 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3122 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3123 * configure, config.in: Re-generate.
3124 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3125 * defs.h: Do not include <endian.h>.
3127 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3129 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3130 * config.in: Regenerate.
3131 * configure.in: Update copyright years.
3132 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3133 * configure: Regenerate.
3134 * i386bsd-nat.c: Update copyright years.
3135 (fill_gregset): Use regcache_collect.
3136 (fetch_inferior_registers): Only fetch integer registers
3137 if requested to do so. Add support for XMM registers
3138 using PT_GETXMMREGS.
3139 (store_inferior_registers): Only store integer registers
3140 if requested to do so. Add support for XMM registers
3141 using PT_SETXMMREGS.
3142 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3143 (store_inferior_registers): Remove.
3144 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3145 (fetch_elfcore_registers): New function.
3146 (i386nbsd_elfcore_fns): New.
3147 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3148 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3150 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3151 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3152 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3153 * config/i386/tm-nbsd.h: Update copyright years.
3154 (HAVE_SSE_REGS): Define.
3155 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3156 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3157 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3158 (SIGCONTEXT_PC_OFFSET): Remove.
3159 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3161 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3163 * configure.tgt: Remove powerpc-*-macos* target.
3164 * config/m68k/xm-mpw.h: Delete file.
3165 * config/xm-mpw.h: Delete file.
3166 * ser-mac.c: Delete file.
3167 * mpw-make.sed: Delete file.
3168 * mpw-config.in: Delete file.
3169 * mac-xdep.c: Delete file.
3170 * mac-gdb.r: Delete file.
3171 * mac-defs.h: Delete file.
3172 * mac-nat.c: Delete file.
3173 * config/powerpc/macos.mh: Delete file.
3174 * config/powerpc/macos.mt: Delete file.
3175 * config/powerpc/nm-macos.h: Delete file.
3176 * config/powerpc/tm-macos.h: Delete file.
3177 * source.c (openp, open_source_file): Remove obsolete code.
3178 * top.c (gdb_readline): Ditto.
3179 * utils.c (query): Ditto.
3180 * event-top.c (display_gdb_prompt): Ditto.
3181 * Makefile.in (ser-mac.o): Delete obsolete target.
3184 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3186 * defs.h (BIG_ENDIAN): Delete macro definition.
3187 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3188 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3189 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3190 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3191 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3192 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3193 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3194 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3195 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3196 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3197 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3198 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3199 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3200 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3201 * gdbarch.c: Re-generate.
3203 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3205 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3208 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3210 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3212 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3214 * value.h (value_ptr): Delete typedef.
3216 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3218 * i386nbsd-nat.c: Update copyright years.
3219 Include i386-tdep.h.
3221 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3223 * stabsread.c: Update copyright years.
3225 From Debashis Mahata <debashis.mahata@wipro.com>:
3226 (read_struct_fields): Deal with Sun C compiler erroneous stab
3227 output for structs and unions.
3230 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3232 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3235 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3237 * cp-abi.c: Fix whitespace.
3238 (baseclass_offset): New wrapper function.
3239 * cp-abi.h (baseclass_offset): Add prototype.
3240 (struct cp_abi_ops): Add baseclass_offset pointer.
3242 * valops.c (vb_match): Move to...
3243 * gnu-v2-abi.c (vb_match): here.
3244 * valops.c (baseclass_offset): Move to...
3245 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3247 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3249 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3250 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3251 * hpacc-abi.c (init_hpacc_ops): Likewise.
3253 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3255 * valops.c (find_overload_match): Accept obj as a
3256 reference parameter. Update it before returning.
3257 * value.h (find_overload_match): Update prototype.
3258 * eval.c (evaluate_subexp_standard): Pass object to
3259 find_overload_match by reference.
3261 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3263 * valarith.c: Replace value_ptr with struct value pointer. Remove
3264 register attribute from value declarations.
3267 * scm-lang.c (scm_lookup_name): Ditto.
3269 2002-01-03 Michael Snyder <msnyder@redhat.com>
3271 Abstract the functionality of iterating over mapped memory
3272 regions into a general purpose iterator function.
3273 * procfs.c (iterate_over_mappings): New function, general purpose
3274 iterator for memory sections.
3275 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3276 (solib_mappings_callback): New function, callback for above.
3277 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3278 (info_mappings_callback): New function, callback for above.
3280 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3282 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3284 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3285 * i386-tdep.c: Include "elf-bfd.h".
3286 (process_note_abi_tag_sections): New function.
3287 (i386_gdbarch_init): Add code to recognize various OS/ABI
3290 * maint.c (_initialize_maint_cmds): Add missing \ in
3293 For older changes see ChangeLog-2001
3299 version-control: never