1 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3 * gdbserver/inferiors.c: New file.
4 * gdbserver/target.c: New file.
5 * gdbserver/target.h: New file.
6 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
8 * gdbserver/linux-low.c (inferior_pid): New static variable,
10 (linux_create_inferior): Renamed from create_inferior.
11 Call add_inferior. Return 0 on success instead of a PID.
12 (linux_attach): Renamed from myattach.
13 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
14 (linux_thread_alive): Renamed from mythread_alive.
15 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
17 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18 (regsets_store_inferior_registers): Correct error message.
19 Add missing ``return 0''.
20 (linux_fetch_registers): Renamed from fetch_inferior_registers.
21 (linux_store_registers): Renamed from store_inferior_registers.
22 (linux_read_memory): Renamed from read_inferior_memory.
23 (linux_write_memory): Renamed from write_inferior_memory.
24 (linux_target_ops): New structure.
25 (initialize_low): Call set_target_ops ().
26 * gdbserver/remote-utils.c (unhexify): New function.
27 (hexify): New function.
28 (input_interrupt): Send signals to ``signal_pid''.
29 * gdbserver/server.c (inferior_pid): Remove.
30 (start_inferior): Update create_inferior call.
31 (attach_inferior): Call add_inferior.
32 (handle_query): New function.
33 (main): Call handle_query for `q' packets.
34 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
35 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
37 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
39 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
41 * gdbserver/configure.in: Check for <string.h>
42 * gdbserver/configure: Regenerate.
43 * gdbserver/config.in: Regenerate.
44 * gdbserver/gdbreplay.c: Include needed system headers.
45 (remote_open): Remove strchr prototype.
46 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
47 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
48 (supply_register_by_name): Likewise.
49 (collect_register): Change buf argument to void *.
50 (collect_register_by_name): Likewise.
51 * gdbserver/regcache.h: Add missing prototypes.
52 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
53 * gdbserver/server.c (handle_query): New function.
54 (attached): New static variable, moved out of main.
55 (main): Quiet longjmp clobber warnings.
56 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
57 * gdbserver/utils.c (error): Remove NORETURN.
60 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
62 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
63 after the last symbol in a block.
65 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
67 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
68 is non zero as a found symbol.
70 2002-04-08 Andrew Cagney <ac131313@redhat.com>
72 * findvar.c: Include "builtin-regs.h".
73 (value_of_register): Call value_of_builtin_reg when applicable.
74 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
75 (target_map_name_to_register): Call
76 builtin_reg_map_name_to_regnum.
77 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
78 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
79 (builtin_regs_h): Define.
80 (builtin-regs.o): New target.
81 (findvar.o): Add $(builtin_regs_h).
82 * builtin-regs.c, builtin-regs.h: New files.
83 * std-regs.c: New file.
84 Partial fix for PR gdb/251.
86 2002-04-08 Kevin Buettner <kevinb@redhat.com>
88 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
89 it's no longer required.
91 2002-04-08 Andrew Cagney <ac131313@redhat.com>
93 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
95 2002-04-08 Kevin Buettner <kevinb@redhat.com>
97 From Jimi X <jimix@watson.ibm.com>:
98 * rs6000-tdep.c (rs6000_software_single_step): Use
99 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
100 and size. Use target_insert_breakpoint() and
101 target_remove_breakpoint() to insert and remove breakpoints
102 instead of explicit memory reads and writes.
104 2002-04-08 Kevin Buettner <kevinb@redhat.com>
106 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
107 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
108 ELF_OBJECT_FORMAT ifdef.
110 2002-04-08 Kevin Buettner <kevinb@redhat.com>
112 From Jimi X <jimix@watson.ibm.com>:
113 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
115 2002-04-08 Kevin Buettner <kevinb@redhat.com>
117 From Jimi X <jimix@watson.ibm.com>:
118 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
119 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
121 2002-04-07 Mark Kettenis <kettenis@gnu.org>
123 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
124 s/asprintf/xasprintf/.
125 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
127 2002-04-07 Andrew Cagney <ac131313@redhat.com>
129 I believe Jeff Law denies responsability for this one:
130 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
131 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
132 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
133 Work-around for PR gdb/366.
135 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
137 * remote-e7000.c (write_small, e7000_read_inferior_memory,
138 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
139 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
141 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
143 * sh-tdep.c (sh_fp_frame_init_saved_regs,
144 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
147 2002-04-07 Andrew Cagney <ac131313@redhat.com>
149 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
152 2002-04-07 Andrew Cagney <ac131313@redhat.com>
154 * README (Reporting Bugs in GDB): Document the bug web page as the
155 prefered way of submitting bugs.
158 2002-04-06 Andrew Cagney <ac131313@redhat.com>
160 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
162 * gdbarch.h, gdbarch.c: Re-generate.
164 2002-04-07 Andreas Schwab <schwab@suse.de>
166 * m68klinux-nat.c (fill_fpregset): Properly pass address of
167 buffer to regcache_collect.
169 2002-04-06 Andrew Cagney <ac131313@redhat.com>
171 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
172 * gdbarch.c, gdbarch.h: Re-generate.
174 2002-04-06 Andrew Cagney <ac131313@redhat.com>
176 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
177 declaration. Fix -Werror.
179 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
181 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
182 * gdbarch.c: Regenerate.
184 2002-04-05 Michael Snyder <msnyder@redhat.com>
186 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
188 2002-04-05 H.J. Lu (hjl@gnu.org)
190 * solib-svr4.c (bkpt_names): Add "__start".
192 2002-04-04 Andrew Cagney <ac131313@redhat.com>
194 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
195 as test for 64 bit target.
197 2002-04-05 Andrew Cagney <ac131313@redhat.com>
199 * h8500-tdep.c (h8500_write_fp): Delete function.
200 * dwarf2cfi.c (cfi_write_fp): Document as not used.
201 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
202 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
203 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
204 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
205 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
207 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
208 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
209 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
210 (d10v_write_fp): Delete function.
211 * inferior.h (write_fp, generic_target_write_fp): Delete
213 * regcache.c (generic_target_write_fp): Delete function.
214 (write_fp): Delete function.
215 * gdbarch.sh (TARGET_WRITE_FP): Delete.
216 * gdbarch.h, gdbarch.c: Regenerate.
217 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
218 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
219 (sparc64_write_fp): Delete declaration.
220 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
221 (h8500_write_fp): Delete declaration.
223 2002-04-04 Andrew Cagney <ac131313@redhat.com>
225 * sparc-tdep.c (sparc64_write_fp): Delete.
226 (sparc_push_dummy_frame): Replace write_fp call with code to store
228 (sparc_gdbarch_init): Do not initialize write_fp.
230 2002-04-05 Kevin Buettner <kevinb@redhat.com>
232 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
235 2002-03-29 Jim Blandy <jimb@redhat.com>
237 * stack.c (get_selected_block): Add new argument `addr_in_block',
238 used to return the exact code address we used to select the block,
240 * blockframe.c (get_frame_block, get_current_block): Same.
241 * frame.h (get_frame_block, get_current_block,
242 get_selected_block): Update declarations.
243 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
244 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
246 2002-04-05 Michael Snyder <msnyder@redhat.com>
248 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
251 2002-04-05 J. Brobecker <brobecker@gnat.com>
253 * utils.c (xfullpath): New function.
254 * defs.h (xfullpath): Add declaration.
255 * source.c (openp): Use xfullpath in place of gdb_realpath to
256 avoid resolving the basename part of filenames when the
257 associated file is a symbolic link. This fixes a potential
258 inconsistency between the filenames known to GDB and the
259 filenames it prints in the annotations.
260 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
261 to be able to match a filename with either the real filename, or
262 the name of any symbolic link to this file.
263 (lookup_partial_symtab): Ditto.
265 2002-04-04 Michael Snyder <msnyder@redhat.com>
267 * breakpoint.c: Add support for hardware breakpoints in overlays.
268 (overlay_events_enabled): New state variable.
269 (insert_breakpoints): Use overlay_events_enabled to decide
270 whether to attempt to set a breakpoint at the overlay load addr.
271 Handle bp_hardware_breakpoint as well as bp_breakpoint.
272 (remove_breakpoint): Use overlay_events_enabled to decide
273 whether breakpoints need to be removed from overlay load addr.
274 Handle bp_hardware_breakpoint as well as bp_breakpoint.
275 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
276 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
277 disable_overlay_breakpoints): Update overlay_events_enabled.
279 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
281 * dwarf2read.c (struct function_range): New.
282 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
283 (check_cu_functions): New.
284 (read_file_scope): Initialize global function lists.
285 Call dwarf_decode_line after processing children.
286 (read_func_scope): Add to global function list.
287 (dwarf_decode_lines): Call check_cu_functions everywhere
288 record_line is called. Call record_line with a linenumber
289 of 0 to mark sequence ends.
291 2002-04-04 Michal Ludvig <mludvig@suse.cz>
293 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
294 change sync with glibc.
296 2002-04-03 Jim Blandy <jimb@redhat.com>
298 * configure.in: Call AC_C_INLINE.
299 * configure: Regenerated.
301 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
303 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
304 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
306 2002-03-31 Mark Kettenis <kettenis@gnu.org>
308 * NEWS: Mention gcore support on FreeBSD/i386.
310 * fbsd-proc.c: New file.
311 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
312 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
314 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
317 2002-03-29 Jim Blandy <jimb@redhat.com>
319 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
320 unescaped newlines in string literals, but newer ones don't. So
323 2002-03-26 Michael Snyder <msnyder@redhat.com>
324 Andrew Cagney <cagney@redhat.com>
326 * cli/cli-dump.c: New file. Dump memory to file,
327 restore file to memory.
328 * cli/cli-dump.h: New file.
329 * Makefile.in: Add rules, dependencies for cli-dump.o.
330 * NEWS: Mention new commands.
332 2002-03-28 Michael Snyder <msnyder@redhat.com>
334 * symfile.c (symbol_file_add): Move test for null symbols to later.
336 2002-03-27 Andrew Cagney <ac131313@redhat.com>
338 From veksler at il.ibm.com:
339 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
340 the xstrduped original path.
343 2002-03-27 Michael Snyder <msnyder@redhat.com>
345 * breakpoint.c (_initialize_breakpoint): Clean up help string.
346 * infcmd.c (_initialize_infcmd): Ditto.
347 * language.c (_initialize_language): Ditto.
348 * symfile.c (_initialize_symfile): Ditto.
349 * top.c (_init_main): Ditto.
350 * cli/cli-cmds.c (init_cli_cmds): Ditto.
352 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
354 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
355 vector registers handling.
356 (skip_prologue): Handle new AltiVec instructions. Fill in new
357 fields of frame data.
358 (frame_get_saved_regs): Fill in information for AltiVec registers.
360 2002-03-27 Jim Blandy <jimb@redhat.com>
362 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
363 a function; leave this macro here to invoke that function.
364 (symbol_init_mangled_name): Declaration for that function.
365 * symtab.c (symbol_init_mangled_name): New function.
367 2002-03-27 Andrew Cagney <ac131313@redhat.com>
369 * valarith.c: Replace strerror with safe_strerror.
370 * tracepoint.c: Ditto.
376 2002-03-27 Andreas Schwab <schwab@suse.de>
378 * event-top.c (command_line_handler): Remove useless if.
380 2002-03-27 Andreas Jaeger <aj@suse.de>
382 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
385 2002-03-27 Michal Ludvig <mludvig@suse.cz>
387 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
388 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
389 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
390 (x86_64_linux_dr_get_status, supply_gregset),
391 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
392 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
393 (x86_64_register_info_table): Add.
394 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
395 (x86_64_register_raw_size, x86_64_register_virtual_type),
396 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
397 general x86_64_register_info_table.
398 (i386_gdbarch_init): gdbarch_register_bytes is now set
399 dynamicaly during initialization.
400 * regformats/reg-x86-64.dat: Synced with changes to registers above.
401 * gdbserver/linux-x86-64-low.c: Ditto.
403 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
405 * gdbserver/server.c (main): Call target_signal_to_host_p
406 and target_signal_to_host on signals received from the remote.
407 * gdbserver/remote-utils.c (prepare_resume_reply): Call
408 target_signal_from_host on signals sent to the remote.
409 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
410 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
412 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
414 * signals/signals.c: Include "server.h" in gdbserver build.
415 (target_signal_from_name): Don't use STREQ.
416 (_initialize_signals): Likewise. Don't include function in
419 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
421 * signals.c: Moved to...
422 * signals/signals.c: Here.
423 * Makefile (signals.o): Update.
425 2002-03-26 Jeff Law (law@redhat.com)
427 * somread.c (som_symtab_read): Remove some commented out code and
428 updated related comments. Do not set the minimal symbol table to
429 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
430 in a dynamic executable.
431 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
432 where we are unable to find the minimal symbol for the given
435 2002-03-25 Jeff Law (law@redhat.com)
437 * linux-proc.c (read_mapping): Scan up to end of line for filename.
439 2002-03-25 Michal Ludvig <mludvig@suse.cz>
441 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
443 2002-03-23 Andrew Cagney <ac131313@redhat.com>
445 * command.h: Update copyright.
446 (struct cmd_list_element): Replace definition with opaque
448 (enum cmd_types): Document that it will eventually be moved to
450 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
451 (MALLOCED_REPLACEMENT): Delete macro.
452 * Makefile.in (cli_decode_h): Add $(command_h).
453 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
454 * top.c: Include "cli/cli-decode.h".
455 * completer.c: Include "cli/cli-decode.h".
456 * maint.c: Include "cli/cli-decode.h".
457 * cli/cli-decode.h: Include "command.h".
458 (enum command_class): Delete.
459 (enum cmd_types): Comment out.
460 (enum cmd_auto_boolean): Delete.
461 (enum var_types): Delete.
463 2002-03-23 Andrew Cagney <ac131313@redhat.com>
465 * cli/cli-decode.c: Include "gdb_assert.h".
466 (add_set_or_show_cmd): New static function.
467 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
468 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
469 all fields, such as func, from the set command.
471 2002-03-23 Andrew Cagney <ac131313@redhat.com>
473 * MAINTAINERS (sh-elf): Change warning flag to -w.
475 2002-03-23 Andrew Cagney <cagney@redhat.com>
477 * defs.h (error): Add printf format attribute.
478 * thread-db.c (thread_from_lwp): Fix error format string.
479 * stack.c (parse_frame_specification): Ditto.
480 * cli/cli-decode.c (undef_cmd_error): Ditto.
481 * scm-lang.c (scm_lookup_name): Ditto.
482 * tracepoint.c (trace_error): Ditto.
483 * remote-utils.c (usage): Ditto.
484 * remote.c (compare_sections_command): Ditto.
487 2002-03-22 Andrew Cagney <ac131313@redhat.com>
489 * gdbtypes.c (append_composite_type_field): New function.
490 (init_composite_type): New function.
491 * gdbtypes.h (append_composite_type_field): Declare.
492 (init_composite_type): Ditto.
494 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
496 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
498 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
499 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
500 structure returning convention for SYSV ABI case, but not
501 for GNU/Linux, FreeBSD, or NetBSD.
503 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
505 * symtab.h (lookup_block_symbol): Add mangled_name argument
508 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
509 with new mangled_name argument.
510 * linespec.c (decode_line_1): Likewise.
511 * valops (value_of_this): Likewise.
512 * symtab.c (lookup_transparent_type): Likewise.
513 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
514 (lookup_symbol): If we are given a mangled name, pass it down
515 to lookup_symbol_aux.
516 (lookup_block_symbol): If we are given a mangled name to check
517 against, only return symbols which match it.
519 2002-03-22 Christopher Faylor <cgf@redhat.com>
521 * win32-nat.c (child_create_inferior): Check for proper shell to use
522 here, in case the user changes it on the fly.
523 (_initialize_inftarg): Remove shell path considerations.
525 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
527 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
528 for gdbarch_max_register_raw_size and max_register_virtual_size.
529 Adjust copyright year.
531 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
533 * dbxread.c (process_one_symbol): Extend the first N_SLINE
534 in a function to cover the entire beginning of the function
535 as well if it does not already.
537 2002-03-21 Tom Rix <trix@redhat.com>
539 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
540 (rs6000_ptrace64): Renamed from ptrace64.
542 2002-03-20 Martin M. Hunt <hunt@redhat.com>
544 * gdbserver/remote-utils.c (remote_open): Don't call
545 getprotobyname, we're all using TCP here so just use
547 * gdbserver/gdbreplay.c (remote_open): Ditto.
549 2002-03-20 Martin M. Hunt <hunt@redhat.com>
551 * regcache.c (_initialize_regcache): No need to call
552 build_regcache() at this time; it gets called whenever
555 2002-03-20 David O'Brien <obrien@FreeBSD.org>
557 * sparc-nat.c: Include sys/param.h where possible.
559 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
562 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
563 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
564 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
566 * stabsread.c (rs6000_builtin_type): Likewise.
567 (read_sun_floating_type): Likewise.
569 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
571 * stabsread.c (read_member_functions): Remove skip code for duplicate
572 constructor/destructor methods. Use standard parsing for these
573 methods and just do not chain them to the list of methods after
576 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
578 * coffread.c: Remove redundant static declarations. Replace
579 occurrences of `PTR' with `void *'.
580 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
581 * top.h (quit_cover): Likewise.
582 * defs.h (catch_errors): Likewise.
584 2002-03-18 Andrew Cagney <ac131313@redhat.com>
586 * defs.h (XMALLOC): Define.
587 * gdb-events.sh (XMALLOC): Delete macro.
588 * gdb-events.c, gdb-events.h: Regenerate.
589 * gdbarch.sh (XMALLOC): Delete macro.
590 * gdbarch.c: Regenerate.
591 * serial.c (XMALLOC): Delete macro.
592 * ui-file.c (XMALLOC): Ditto.
593 * ser-unix.h (XMALLOC): Ditto.
594 * sh-tdep.c (XMALLOC): Ditto.
595 * ui-out.c (XMALLOC): Ditto.
596 * utils.c (XMALLOC): Ditto.
597 * i386-tdep.c (XMALLOC): Ditto.
598 * gdb-events.c (XMALLOC): Ditto.
599 * d10v-tdep.c (XMALLOC): Ditto.
600 * cli-out.c (XMALLOC): Ditto.
602 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
603 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
604 * ui-file.c, ui-out.c: Ditto.
606 2002-03-18 Andrew Cagney <ac131313@redhat.com>
608 * command.h (struct cmd_list_element): Add field context.
609 (set_cmd_context, get_cmd_context): Declare.
610 * cli/cli-decode.h: Ditto.
611 * cli/cli-decode.c (get_cmd_context): New function.
612 (set_cmd_context): New function.
613 (add_cmd): Initialize context.
614 Part of fixing PR gdb/145 and PR gdb/146.
616 2002-03-17 Andrew Cagney <ac131313@redhat.com>
618 * cli/cli-decode.c (cmd_type): New function.
619 * command.h (cmd_type): Declare.
620 * infrun.c (set_schedlock_func): Call function cmd_type.
621 * kod.c (kod_set_os): Call cmd_type.
622 * cris-tdep.c (cris_version_update): Use function cmd_type.
623 (cris_mode_update, cris_abi_update): Ditto.
625 * command.h: (execute_cmd_post_hook): Declare.
626 (execute_cmd_pre_hook): Declare.
627 * cli/cli-script.c (clear_hook_in_cleanup): New function.
628 (execute_cmd_post_hook, execute_cmd_pre_hook): New
629 functions. Execute pre/post hook while ensuring that afterwords
631 * top.c (execute_command): Use execute_cmd_post_hook, and
632 execute_cmd_pre_hook to execute pre/post commands.
633 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
635 (hook_stop_stub): Call execute_cmd_pre_hook.
637 2002-03-17 Andrew Cagney <ac131313@redhat.com>
639 * kod.c (kod_set_os): Revert previous change. Is called by ``info
640 set'' and this leads to a core dump. Move xstrdup of
641 operating_system to after check that it is not NULL.
643 2002-03-17 Andrew Cagney <ac131313@redhat.com>
645 * kod.c (kod_set_os): Remove unnecessary check that
646 ``command->type'' is set_cmd.
648 * valprint.c (set_input_radix): Use input_radix.
649 (set_output_radix): Use output_radix.
650 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
653 2002-03-16 Andrew Cagney <ac131313@redhat.com>
655 * value.h (struct value): Delete field ``substring_addr''. Change
656 aligner fields to force_doublest_align, force_longest_align,
657 force_core_addr_align and force_pointer_aligh.
659 * value.h (struct value): Fix typo in above change.
661 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
663 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
664 to fix internal_error from ``maintenance print architecture''.
666 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
668 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
669 for gcc versions after gcc-2.8.1.
671 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
673 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
674 for method resolution. Restore adjustment of ``this'' pointer after
675 calling value_struct_elt, which was accidentally removed during the
678 2002-03-15 Andrew Cagney <ac131313@redhat.com>
680 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
682 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
684 * value.h (value_of_register): Update.
686 2002-03-14 Richard Henderson <rth@redhat.com>
688 * configure.in: Detect declaration for canonicalize_file_name.
689 * utils.c (canonicalize_file_name): Declare, if needed.
690 (gdb_realpath): Prefer realpath if available and usable.
691 * config.in, configure: Rebuild.
693 2002-03-14 Richard Henderson <rth@redhat.com>
695 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
696 a constant array bound.
698 * MAINTAINERS: Add myself to write-after-approval.
700 2002-03-14 Michael Snyder <msnyder@redhat.com>
702 * symfile.c (syms_from_objfile): Return immediately if no syms.
703 (symbol_file_add): Return immediately if no syms.
704 (find_sym_fns): Return immediately if no syms.
706 2002-03-13 Michal Ludvig <mludvig@suse.cz>
708 * gdbserver/remote-util.c (remote_open): Print remote-side's
709 IP address when remote debugging over the network.
711 2002-03-12 David O'Brien <obrien@FreeBSD.org>
713 * config/sparc/fbsd.mh: Fix copyright.
714 * config/sparc/fbsd.mt: Likewise.
716 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
718 * MAINTAINERS: Fix typo in name of gdb warnings option.
719 (x86-64): Fix formating so that this can be parsed by awk.
721 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
723 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
724 * defs.h: Include "gdb/signals.h".
725 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
727 2002-03-10 Michal Ludvig <mludvig@suse.cz>
729 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
730 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
733 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
734 Don Howard <dhoward@redhat.com>
736 * mips-tdep.c (ST0_FR): Define.
737 (mips2_fp_compat): New function, temporarily disabled.
738 (mips_read_fp_register_single): New function.
739 (mips_read_fp_register_double): New function.
740 (mips_print_register): Use them.
741 (do_fp_register_row): Likewise.
743 2002-03-09 Andrew Cagney <ac131313@redhat.com>
745 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
748 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
750 * stabsread.c (read_member_functions): Fix is_stub test for
751 static member functions, improve comment.
753 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
755 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
756 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
757 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
758 commands that set boolean values.
759 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
760 (arm_rdi_resume): Always initialize PC.
761 (arm_rdi_open): Don't use rslt as a boolean.
762 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
763 (arm_rdi_fetch_registers, arm_rdi_store_registers)
764 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
765 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
767 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
769 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
770 * configure: Rebuilt.
772 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
774 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
775 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
777 2002-03-06 Andrew Cagney <ac131313@redhat.com>
779 * cli/cli-decode.c (set_cmd_completer): New function.
780 * command.h (set_cmd_completer): Declare.
781 * cli/cli-decode.h (set_cmd_completer): Ditto.
783 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
784 * cli/cli-cmds.c (init_cli_cmds): Ditto.
785 * win32-nat.c (_initialize_inftarg): Ditto.
786 * remote-rdi.c (_initialize_remote_rdi): Ditto.
787 * proc-api.c (_initialize_proc_api): Ditto.
788 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
789 * source.c (_initialize_source): Ditto.
790 * exec.c (_initialize_exec): Ditto.
791 * solib.c (_initialize_solib): Ditto.
792 * top.c (init_main): Ditto.
793 * tracepoint.c (_initialize_tracepoint): Ditto.
794 * symfile.c (_initialize_symfile): Ditto.
795 * printcmd.c (_initialize_printcmd): Ditto.
796 * infcmd.c (_initialize_infcmd): Ditto.
797 * corefile.c (_initialize_core): Ditto.
799 2002-03-05 Andrew Cagney <ac131313@redhat.com>
801 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
803 2002-03-05 Andrew Cagney <ac131313@redhat.com>
805 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
807 2002-03-05 Andrew Cagney <ac131313@redhat.com>
809 * NEWS: Update headings, 5.2 has branched.
811 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
813 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
814 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
815 (register_addr, REGISTER_RAW_SIZE): Likewise.
816 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
817 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
819 2002-03-03 Michal Ludvig <mludvig@suse.cz>
821 * MAINTAINERS (x86-64): Add myself.
822 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
823 changed value_ptr -> struct value *
825 2002-03-01 David O'Brien <obrien@FreeBSD.org>
827 * configure.host (sparc64-*-freebsd): Add.
828 * configure.tgt: Likewise.
829 * config/sparc/fbsd.mh: New file.
830 * config/sparc/fbsd.mt: Likewise.
831 * config/sparc/nm-fbsd.h: Likewise.
832 * config/sparc/tm-fbsd.h: Likewise.
834 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
836 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
837 regformats/reg-s390x.dat.
839 2002-03-01 Andrew Cagney <ac131313@redhat.com>
841 * utils.c: Add FIXME explaining true/false problem.
843 2002-02-28 Andrew Cagney <ac131313@redhat.com>
845 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
847 2002-02-28 Michael Chastain <mec@shout.net>
849 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
851 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
853 * gdbserver/linux-s390-low.c: New file.
854 * regformats/reg-s390.dat: New file.
855 * regformats/reg-s390x.dat: New file.
856 * gdbserver/configure.srv: Add S/390.
857 * gdbserver/Makefile.in: Add S/390.
858 * configure.tgt: Enable gdbserver for S/390.
860 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
862 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
863 first line of the doc string for "info dos", except at the end of
864 the sentence, since the short help stops at the first period.
866 2002-02-28 Jason Merrill <jason@redhat.com>
868 * dwarf2read.c (dwarf_cfi_name): Add new codes.
870 2002-02-27 Fred Fish <fnf@redhat.com>
872 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
873 comment (dumy -> dummy).
875 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
877 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
879 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
881 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
883 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
885 * gdbserver/acconfig.h: New file.
886 * gdbserver/i387-fp.c: New file.
887 * gdbserver/i387-fp.h: New file.
888 * gdbserver/linux-x86-64.c: New file.
889 * regformats/reg-x86-64.dat: New file.
890 * configure.tgt: Add x86_64-*-linux* gdbserver support.
891 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
892 * gdbserver/configure.in: Add support for regsets.
893 * gdbserver/config.in: Regenerate.
894 * gdbserver/configure: Regenerate.
895 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
896 * gdbserver/linux-low.h: New file.
897 * gdbserver/linux-low.c: Include "linux-low.h". Add support
899 * gdbserver/linux-arm-low.c: Include "linux-low.h".
900 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
901 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
902 * gdbserver/linux-mips-low.c: Include "linux-low.h".
903 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
904 * gdbserver/linux-sh-low.c: Include "linux-low.h".
905 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
906 "i387-fp.h". Add PTRACE_GETREGS and friends.
907 * gdbserver/regcache.c (supply_register): New function.
908 (supply_register_by_name): New function.
909 (collect_register): New function.
910 (collect_register_by_name): New function.
912 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
914 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
915 (config.status): Add configure.srv dependency.
916 (server_h): Add config.h dependency.
918 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
920 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
921 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
922 * gdbserver/configure.srv: Change i386-*-linux* to use
925 2002-02-26 Andrew Cagney <ac131313@redhat.com>
927 * x86-64-tdep.c: Re-indent. Update copyright date.
929 2002-02-26 Andrew Cagney <ac131313@redhat.com>
931 From Michal Ludvig <mludvig@suse.cz>:
932 * x86-64-tdep.c (value.h): Delete.
933 (gdb_assert.h): Include.
934 (x86_64_register_convert_to_virtual,
935 x86_64_register_convert_to_raw ): Add check which lets only
936 floating-point values to be converted.
937 (value_push): Delete.
938 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
939 (i386_gdbarch_init): Number of register_bytes fixed.
941 2002-02-26 Andrew Cagney <ac131313@redhat.com>
943 * MAINTAINERS: Add x86-64 target.
945 2002-02-26 Andrew Cagney <ac131313@redhat.com>
947 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
948 * osfsolib.c (solib_map_sections): Ditto.
949 * irix5-nat.c (solib_map_sections): Ditto.
950 * corelow.c (gdb_check_format): Ditto.
951 * symfile.c (symfile_bfd_open): Ditto.
952 * solib.c (solib_map_sections): Ditto.
955 2002-02-26 Andrew Cagney <ac131313@redhat.com>
957 * remote.c (_initialize_remote): By default, disable ``e'' and
958 ``E'' step out-of-range packets.
960 2002-02-26 Andreas Schwab <schwab@suse.de>
962 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
963 m68k_linux_frame_saved_pc.
964 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
966 (SIGCONTEXT_PC_OFFSET): Remove.
967 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
968 m68k_linux_sigtramp_saved_pc): New functions.
969 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
970 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
971 (UCONTEXT_PC_OFFSET): Define.
972 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
973 non-RT and RT signal trampolines.
975 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
977 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
978 (TARGET_NBPG, STACK_END_ADDR): Delete
979 (VARIABLES_INSIDE_BLOCK): Delete.
981 2002-02-25 Andrew Cagney <ac131313@redhat.com>
983 * utils.c (perror_with_name): Make string parameter constant.
984 (print_sys_errmsg): Ditto.
986 * defs.h (perror_with_name): Update.
987 (print_sys_errmsg): Update.
990 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
992 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
993 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
995 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
997 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
998 if it already matches the current architecture from the exec file.
999 Include arch-utils.h for gdbarch_info_init prototype.
1000 * Makefile.in (rs6000-nat.o): Update dependencies.
1002 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1004 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1005 list of exported variables.
1007 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1009 * gdbserver/configure.srv: New file.
1010 * gdbserver/configure.in: Use configure.srv instead
1011 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1013 * gdbserver/configure: Regenerated.
1014 * gdbserver/terminal.h: New file.
1015 * gdbserver/Makefile.in: Update for configure changes. Remove
1016 more unneeded include paths.
1018 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1020 From wiz at danbala:
1021 * config/sparc/tm-sp64.h: Fix grammar and typos.
1024 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1026 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1027 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1028 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1029 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1030 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1031 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1032 * s390-tdep.c: Ditto.
1033 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1034 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1035 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1036 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1037 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1038 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1039 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1040 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1041 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1042 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1045 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1047 * lin-thread.c: Delete file.
1048 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1049 to gdb_proc_service.h.
1050 * configure: Re-generate.
1052 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1053 * serial.c (serial_open): Delete check for "ocd".
1056 * Makefile.in (linux-thread.o): Delete target.
1057 * linux-thread.c: Delete file.
1059 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1060 renamed SH files to be consistent.
1062 * symtab.c (sort_search_symbols): Use xfree.
1064 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1066 * arm-linux-tdep.c (arm_linux_init_abi): Register
1067 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1068 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1069 definition with undef, since we don't want the sysvr4 definition.
1070 (SKIP_TRAMPOLINE_CODE): Likewise.
1072 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1074 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1076 * configure.in: (AC_CHECK_FUNCS) Added test for
1077 canonicalize_file_name Regenerated.
1078 * config.in, configure: Regenerated.
1079 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1080 defined use canonicalize_file_name.
1082 2002-02-23 Michael Chastain <mec@shout.net>
1084 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1086 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1088 * README: Remove references to cygnus.com.
1089 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1090 dot com'' form. Remove references to cygnus.com and sourceware.
1092 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1094 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1095 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1096 1003.1-2001 no longer allows "head -1".
1097 * gdb/Makefile.in (version.c): Likewise.
1098 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1099 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1100 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1102 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1104 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1105 * command.h (cmd_cfunc_eq): Declare.
1106 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1108 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1109 ``struct cmd_list_element *''.
1110 * cli/cli-cmds.c (is_complete_command): Update. Use
1112 * top.c (execute_command): Pass the command to
1113 is_complete_command.
1114 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1116 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1118 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1119 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1120 architecture defines.
1121 * s390-tdep.c (s390_gdbarch_init): Likewise.
1123 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1125 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1126 (arm_linux_push_arguments): Likewise.
1127 (arm_linux_init_abi): Register them. Also register linux-specific
1129 (find_minsym_and_objfile): Use strcmp, not STREQ.
1130 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1131 (arm_linux_call_dummy_words): Delete declaration.
1132 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1133 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1135 (LOWEST_PC): Delete.
1137 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1139 * maint.c (print_section_info): Do not prepend `0x' to filepos
1140 output, it will be handled by local_hex_string_custom.
1142 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1144 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1145 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1146 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1148 2002-02-22 Jim Blandy <jimb@redhat.com>
1150 Indicate that the bcache functions don't change the strings
1152 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1153 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1155 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1157 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1159 2002-02-21 Christopher Faylor <cgf@redhat.com>
1161 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1162 find the complete path to a loaded DLL.
1164 2002-02-21 Fred Fish <fnf@redhat.com>
1166 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1167 that marks the end of the range of a function, enter a line number
1168 entry that has a line number of zero and a PC offset that matches
1169 the end of the function. This starts a range of PC's for which no
1170 line number information is known.
1171 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1172 PC's for which no line number info is found (line number is zero)
1173 then we didn't find any valid line information.
1174 * symtab.h: Document use of zero line number entry.
1176 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
1178 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1179 (have_ptrace_getvrregs): Define for run time checks.
1180 (gdb_vrregset_t): New type for Altivec register handling.
1181 (fetch_register, store_register): Fetch/store altivec register
1183 (fetch_altivec_register, store_altivec_register): New functions.
1184 (supply_vrregset, fill_vrregset): New functions.
1185 (fetch_altivec_registers, store_altivec_registers): New functions.
1186 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1189 2002-02-21 Jiri Smid <smid@suse.cz>
1191 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1193 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1195 * Makefile.in (armnbsd-nat.o): Update dependencies.
1196 * armnbsd-nat.c (supply_gregset): New function. Common code to
1197 supply the integer register set.
1198 (supply_fparegset): New function. Similar for FPA registers.
1199 (fetch_regs, fetch_fp_regs): Use them.
1200 (fetch_core_registers): Likewise.
1201 (fetch_elfcore_registers): New function.
1202 (arm_netbsd_elfcore_fns): New core-file type specification.
1203 (_initialize_arm_netbsd_nat): Register it.
1205 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1207 * armnbsd-nat.c: Include gdbcore.h.
1208 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1209 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1210 'void' to declaration, to shut up ARI.
1211 (fetch_core_registers): Make static. Rewrite using supply_register.
1212 (arm_netbsd_core_fns): New core-file type specification.
1213 (_initialize_arm_netbsd_nat): New function.
1215 2002-02-21 Christopher Faylor <cgf@redhat.com>
1217 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1220 2002-02-20 Christopher Faylor <cgf@redhat.com>
1222 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1225 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1227 * jv-exp.y (parse_number): Change type of implicit longs
1228 to builtin_type_uint64.
1230 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1232 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1233 to be an integer instead of a `union wait'.
1235 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1237 * mips-linux-nat.c: Call the operating system GNU/Linux.
1238 * mips-linux-tdep.c: Likewise.
1239 * mips-tdep.c: Likewise.
1241 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1244 * jv-exp.y (parse_number): Handle 64-bit integers.
1246 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1248 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1249 AC_STDC_HEADERS to AC_HEADER_STDC.
1250 * gdbserver/configure: Regenerated.
1252 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1254 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1256 * sparc-tdep.c (get_longjmp_target): Likewise.
1258 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1260 * News: Add news about ARM and Multi-arch. Mention the new target
1263 2002-02-19 Jim Blandy <jimb@redhat.com>
1265 * stabsread.c (error_type_complaint): Improve error message.
1267 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
1269 * gdbserver/README: Update documentation.
1270 * gdbserver/configure.in: Update configury to match documentation.
1271 * gdbserver/Makefile.in: Likewise.
1272 * gdbserver/configure: Regenerated.
1273 * gdbserver/aclocal.m4: New file, generated by aclocal.
1274 * gdbserver/config.in: New file, generated by autoheader.
1276 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1278 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1281 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1283 * arm-tdep.h (enum arm_float_model): New enum.
1284 (struct gdbarch_tdep): Add fp_model.
1285 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1286 up floating-point conversions until we know the floating-point model
1287 in use by the inferior. Don't complain about being unable to
1288 determine the ABI of the inferior when we don't have one.
1289 (arm_extract_return_value): Support different floating-point models.
1290 (arm_store_return_value): Likewise.
1291 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
1293 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1295 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1297 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1298 of ``current_gdbarch''.
1300 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1302 * armnbsd-nat.c : ANSIfy all function declarations.
1303 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1304 (fetch_inferior_registers): Re-implement in terms of above.
1305 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1306 (store_inferior_registers): Re-implement in terms of above.
1308 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1310 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
1312 * arm-linux-tdep.c: Likewise.
1313 * config/arm/tm-linux.h: Likewise.
1315 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1317 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1318 * config/arm/nbsd.mt (TM_FILE): Delete.
1319 * config/arm/tm-nbsd.h: Delete.
1321 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1323 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1324 Initialize CALL_DUMMY_LENGTH.
1326 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1328 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1330 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
1331 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
1332 defines one thing and that is incorrect for this port.
1333 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1335 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1337 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1339 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1341 * win32-nat.c (display_selector): New function. Displays information
1342 about the information returned by GetThreadSelectorEntry API function.
1343 (display_selectors): New function. Displays the infomation of
1344 the selector given as argument, or of CS, DS ans FS selectors
1345 if no argument is given.
1346 ( _initialize_inftarg): Add "w32" as info prefix command.
1347 Add "info w32 selector" as command calling display_selectors.
1349 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1351 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1352 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1355 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1357 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1359 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1361 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1362 (arm_fix_call_dummy): Call it.
1363 (arm_call_dummy_breakpoint_offset): Delete.
1364 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1365 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1367 2002-02-18 Andrew Cagney <ac131313@redhat.com>
1369 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1370 Default to func_frame_chain_valid.
1371 * gdbarch.h, gdbarch.c: Re-generate.
1372 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1374 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
1376 * ppc-linux-nat.c: Update copyright.
1377 (fetch_register, store_register): Add tid parameter, don't compute
1379 (fetch_ppc_registers, store_ppc_registers): Add tid
1380 parameter. Pass it along to callees.
1381 (fetch_inferior_registers, store_inferior_registers): Compute tid
1382 here, and pass it to calleed functions.
1383 (fill_gregset, supply_fpregset): Clean up formatting.
1385 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1387 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1388 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1390 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1392 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1393 * gdbarch.c gdbarch.h: Regenerate.
1394 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1396 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1397 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1398 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1400 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1401 * arm-tdep.c (arm_get_longjmp_target): New function.
1402 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1403 this to a positive value register arm_get_longjmp_target as the
1405 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1406 (arm_linux_init_abi): Set up longjmp description in tdep.
1407 * armnbsd-nat.c (get_longjmp_target): Delete.
1408 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1409 description in tdep.
1410 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1411 (get_longjmp_target): Delete declaration.
1412 (GET_LONGJMP_TARGET): Delete.
1413 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1414 (GET_LONGJMP_TARGET): Delete.
1416 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1418 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1419 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1420 of ``current_gdbarch''.
1422 2002-02-17 Tom Tromey <tromey@redhat.com>
1424 * cli/cli-cmds.c (compare_strings): New function.
1425 (complete_command): Only print each unique item once.
1426 * completer.h (complete_line): Declare.
1427 * completer.c (complete_line): New function.
1428 (line_completion_function): Use it.
1430 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1432 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1433 * gdbarch.h, gdbarch.c: Re-generate.
1435 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1437 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1439 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1441 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1442 * valops.c (value_arg_coerce): Don't take the address of a reference
1443 to convert an argument to a reference.
1445 2002-02-15 Christopher Faylor <cgf@redhat.com>
1447 * win32-nat.c (get_image_name): New function.
1448 (handle_load_dll): Use get_image_name function.
1449 (get_child_debug_event): Avoid registering debug events until possibly
1450 execed process is started.
1451 (child_create_inferior): Allow invocation via shell so that command
1452 line redirection, etc. works ok.
1453 (_initialize_inftarg): Add new command: "set shell" to control whether
1454 a shell is used to start a process.
1456 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1458 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1459 instead of find_register_by_number.
1460 (cannot_store_register): Likewise.
1462 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1464 * dwarf2read.c: Replace fprintf (stderr, ...) by
1465 fprintf_unfiltered (gdb_stderr, ...).
1467 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1469 * gdbserver/gdbserver.1: Document --attach.
1471 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1473 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1475 * arm-tdep.c (arm_default_arm_le_breakpoint)
1476 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1477 (arm_default_thumb_be_breakpoint): New. Initialize them from
1478 traditional breakpoint defines.
1479 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1480 (arm_gdbarch_init): Initialize new breakpoint variables.
1481 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1482 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1483 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1484 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1486 (arm_netbsd_init_abi_common): ... here; new function.
1487 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1488 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1489 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1490 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1492 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1494 * arm-tdep.h (enum arm_abi): New enum.
1495 (struct gdbarch_tdep): New structure.
1496 (LOWEST_PC): Provide a default.
1497 (arm_gdbarch_register_os_abi): Declare new function.
1498 * arm-tdep.c (arm_abi_names): New array.
1499 (process_note_abi_tag_sections): New function.
1500 (get_elfosabi): New function.
1501 (arm_gdbarch_register_os_abi): New function.
1502 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1503 support for that ABI has been built in, then call the appropriate
1504 configuration routine. Use gdbarch_num_regs() to get the number
1506 (arm_dump_tdep): New function.
1507 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1508 place-holder functions.
1509 (_initialize_arm_tdep): Register them.
1510 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1512 * armnbsd-tdep.c: New file.
1513 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1514 * config/arm/nbsd.mt (TDEPFILES): Add it.
1515 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1517 * armnbsd-nat.c: Include regcache.h.
1518 * Makefile.in (armnbsd-nat.o): Update dependency list.
1520 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1522 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1524 * gdbserver/Makefile.in: Fix typos in target rules.
1526 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1528 Fix part of PR gdb/267.
1529 * linespec.c (find_methods): Handle constructors specially for now.
1531 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1533 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1535 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1536 standard_coerce_float_to_double().
1538 2002-02-14 Christopher Faylor <cgf@redhat.com>
1540 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1543 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1545 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1546 find_variant_by_name, because it confuses the multiarch
1547 framework. Return NULL if there isn't an architecture with the
1548 user supplied name, instead of forcing a different one without
1549 recording the change with the multiarch machinery.
1550 (find_variant_by_name): Delete.
1552 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1554 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1555 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1557 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1559 * stack.c (print_frame_info_base): When calling
1560 print_frame_info_listing_hook, set current_source_symtab.
1562 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1564 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1565 and remove unused $(INCLUDE_DIR).
1566 Add regcache.c to OBS.
1567 Add generated register protocol files to clean target.
1568 Update dependencies for new objects, obsolete old target code.
1570 * gdbserver/linux-low.c: Remove all platform-specific code to
1571 new files. Remove various dead code. Update to use regcache
1573 * gdbserver/remote-utils.c (fromhex): Add return statement
1575 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1577 (input_interrupt): Add integer parameter to match prototype
1578 of a signal handler.
1579 (outreg): Use register_data ().
1580 (prepare_resume_reply): Use gdbserver_expedite_regs.
1581 * gdbserver/server.c (main): Dynamically allocate own_buf because
1582 PBUFSIZ is no longer constant. Use registers_to_string () and
1583 registers_from_string ().
1584 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1585 for error (), fatal (), and warning (). Update definition of
1586 PBUFSIZ to use regcache functionality. Add include guard.
1587 * gdbserver/utils.c (fatal): Add missing ``const''.
1588 (warning): New function.
1590 * regformats/regdat.sh: Include "regcache.h" in generated files.
1591 Provide init_registers () function.
1592 * regformats/regdef.h: Add prototype for set_register_cache ().
1595 * gdbserver/linux-arm-low.c: New file.
1596 * gdbserver/linux-i386-low.c: New file.
1597 * gdbserver/linux-ia64-low.c: New file.
1598 * gdbserver/linux-m68k-low.c: New file.
1599 * gdbserver/linux-mips-low.c: New file.
1600 * gdbserver/linux-ppc-low.c: New file.
1601 * gdbserver/linux-sh-low.c: New file.
1603 * gdbserver/regcache.c: New file.
1604 * gdbserver/regcache.h: New file.
1606 * gdbserver/low-linux.c: Removed obsolete file.
1608 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1610 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1611 * config/i386/linux.mt: Likewise.
1612 * config/ia64/linux.mt: Likewise.
1613 * config/m68k/linux.mh: Likewise.
1614 * config/powerpc/linux.mh: Likewise.
1615 * config/mips/linux.mt: Likewise.
1617 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1619 * config/i386/i386lynx.mh: Mark gdbserver variables
1620 as (currently) obsolete for this target.
1621 * config/i386/nbsd.mt: Likewise.
1622 * config/i386/nbsdelf.mt: Likewise.
1623 * config/m32r/m32r.mt: Likewise.
1624 * config/m68k/m68klynx.mh: Likewise.
1625 * config/m68k/nbsd.mt: Likewise.
1626 * config/m68k/sun3os4.mh: Likewise.
1627 * config/mips/vr5000.mt: Likewise.
1628 * config/ns32k/nbsd.mt: Likewise.
1629 * config/pa/hppabsd.mh: Likewise.
1630 * config/pa/hppaosf.mh: Likewise.
1631 * config/powerpc/nbsd.mt: Likewise.
1632 * config/rs6000/rs6000lynx.mh: Likewise.
1633 * config/s390/s390.mt: Likewise.
1634 * config/s390/s390x.mt: Likewise.
1635 * config/sparc/sparclynx.mh: Likewise.
1636 * config/sparc/sun4os4.mh: Likewise.
1637 * config/i386/x86-64linux.mt: Likewise.
1638 * config/sparc/linux.mh: Likewise.
1640 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1642 * configure.tgt: Configure gdbserver only for known working
1643 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1644 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1645 SUBDIRS if it is configured. Update comment for ${nativefile}.
1646 * configure: Regenerated.
1648 2002-02-13 Michael Snyder <msnyder@redhat.com>
1650 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1651 (default_gcore_mach): Just return 0, work around a problem in bfd.
1652 (default_gcore_target): OK to return NULL if exec_bfd is null.
1653 (make_mem_sec): Use a cast, avoid a warning.
1655 * procfs.c (find_memory_regions_callback): Use a cast instead of
1656 calling host_pointer_to_address (which complains if
1657 sizeof (host pointer) != sizeof (target pointer)).
1658 (procfs_make_note_section): Avoid overflow in psargs string.
1660 * procfs.c (procfs_make_note_section): Make the default
1661 implementation return an error.
1663 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1665 * procfs.c (procfs_make_note_section): Provide a default definition
1666 (for alpha-dec-osf4.0f). Fix typos.
1668 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1670 * linux-proc.c: Add include of regcache.h.
1671 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1673 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1675 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1676 * memattr.c (create_mem_region): Disallow useless empty region.
1677 Regions are half-open intervals, so allow [A..B) [B..C) as
1680 2002-02-13 Michael Chastain <mec@shout.net>
1682 * defs.h: Kill CONST_PTR.
1683 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1684 * c-lang.c (c_builtin_types): Likewise.
1685 * ch-lang.c (ch_builtin_types): Likewise.
1686 * f-lang.c (f_builtin_types): Likewise.
1687 * language.c (unknown_builtin_types): Likewise.
1688 * m2-lang.c (m2_builtin_types): Likewise.
1689 * p-lang.c (pascal_builtin_types): Likewise.
1690 * scm-lang.c (c_builtin_types): Likewise.
1692 2002-02-13 Keith Seitz <keiths@redhat.com>
1694 * arm-tdep.h (arm_get_next_pc): Add declaration.
1696 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1698 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1699 with other related struct-returning functions.
1700 (arm_extract_struct_value_address): New function.
1701 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1702 initialize float_format, double_format and long_double_format as
1703 appropriate to the endianness of the target.
1704 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1705 (arm_use_struct_convention): Delete declaration.
1706 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1708 2002-02-13 Keith Seitz <keiths@redhat.com>
1710 * defs.h (core_addr_to_string_nz): New function.
1712 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1714 Apply missing bits of 2002-01-15 patch.
1715 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1716 (fill_fpregset): Use i387_fill_fsave.
1718 2002-02-12 Keith Seitz <keiths@redhat.com>
1720 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1721 (core_addr_to_string_nz): New function.
1723 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1725 * arm-linux-nat.c: Really include arm-tdep.h.
1726 * config/arm/tm-linux.h (struct type, struct value): Declare.
1728 2002-02-11 Michael Snyder <msnyder@redhat.com>
1730 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1731 (gcore section): Ifdef for Solaris and Unixware only.
1732 (procfs_do_thread_registers): Unixware needs one lwpstatus
1733 per thread (not one prstatus or pstatus).
1734 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1735 not over all gdb threads. For unixware, call elfcore_write_pstatus
1736 once before iterating over threads.
1738 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1740 * arm-tdep.h: New file.
1741 * arm-tdep.c: Include arm-tdep.h.
1742 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1743 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1744 (arm_print_float_info, arm_register_type, convert_to_extended)
1745 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1746 (arm_extract_return_value, arm_register_name): Make static.
1747 (arm_software_single_step): Similarly. Fix types in declaration.
1748 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1749 (arm_store_return_value, arm_store_struct_return): New functions.
1750 (arm_gdbarch_init): Register the above functions. Also register
1751 call_dummy_start_offset, sizeof_call_dummy_words,
1752 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1753 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1754 max_register_virtual_size, register_size. Set up
1755 prologue_cache.saved_regs here, rather than ...
1756 (_initialize_arm_tdep): ... here.
1757 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1759 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1760 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1761 (arm_print_float_info, arm_register_type, convert_to_extended)
1762 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1763 (arm_extract_return_value, arm_register_name): Delete declarations.
1764 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1765 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1766 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1767 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1768 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1769 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1770 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1771 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1772 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1773 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1774 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1775 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1777 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1778 * remote-rdi.c remote-rdp.c: Likewise.
1779 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1780 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1781 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1784 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1785 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1786 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1787 from non-ARM_ prefixed definitions.
1788 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1790 * remote-rdi.c remote-rdp.c: Likewise.
1791 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1793 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1795 * arm-tdep.c (arm_frameless_function_invocation)
1796 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1797 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1798 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1799 (arm_pop_frame, arm_get_next_pc): Make static.
1800 (arm_gdbarch_init): Register above in gdbarch structure.
1801 (arm_read_fp): Renamed from arm_target_read_fp.
1802 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1803 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1804 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1805 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1806 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1807 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1808 (arm_pc_is_thumb_dummy): Delete declarations.
1809 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1810 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1811 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1812 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1814 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1816 * symtab.c (compare_search_syms): New function.
1817 (sort_search_symbols): New function.
1818 (search_symbols): Sort symbols after searching rather than
1821 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1823 * NEWS: Linux -> GNU/Linux.
1825 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1827 * gdbarch.sh: For for level one methods, disallow a definition
1828 when partially multi-arched. Add comments explaining rationale.
1829 * gdbarch.h: Re-generate.
1831 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1833 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1836 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1838 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1840 * gdbarch.c: Re-generate.
1842 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1844 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1845 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1848 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1850 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1852 (PUSH_ARGUMENTS): Switch to using predefault.
1853 * gdbarch.c: Regenerate.
1855 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1857 * valops.c (PUSH_ARGUMENTS): Delete definition.
1858 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1859 partial. Default to default_push_arguments.
1860 * gdbarch.h, gdbarch.c: Regenerate.
1862 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1864 * defs.h (throw_exception): Rename return_to_top_level. Update
1866 * utils.c (error_stream, internal_verror, quit): Ditto.
1867 * top.c (throw_exception, catcher): Ditto.
1868 * sparclet-rom.c (sparclet_load): Ditto.
1869 * remote.c (interrupt_query, minitelnet): Ditto.
1870 * remote-sds.c (interrupt_query): Ditto.
1871 * remote-mips.c (mips_error, mips_kill): Ditto.
1872 * ocd.c (interrupt_query): Ditto.
1873 * monitor.c (monitor_interrupt_query): Ditto.
1874 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1875 * target.h: Update comment.
1877 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1879 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1881 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1882 default_double_format.
1883 * gdbarch.h, gdbarch.c: Re-generate.
1884 * findvar.c (floatformat_unknown): Delete variable definition.
1885 * doublest.h (floatformat_unknown): Delete variable declaration.
1887 2002-02-09 Jim Blandy <jimb@redhat.com>
1889 * stabsread.c (read_type): Add code to parse Sun's syntax for
1890 prototyped function types.
1892 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1894 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1895 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1897 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1899 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1900 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1901 now _initialize_xcoffsolib gets called again and overrides the
1902 commands from solib.c in a native configuration.
1904 2002-02-09 Mark Kettenis <kettenis@gnu.org>
1906 * doublest.c (store_typed_floating): Don't try to return a value.
1909 2002-02-08 Jim Blandy <jimb@redhat.com>
1911 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1912 is prototyped and has no arguments, print its argument list as
1915 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1917 * MAINTAINERS (write-after-approval): Add myself.
1918 (paper-trail): I've escaped!
1920 2002-02-08 Christopher Faylor <cgf@redhat.com>
1922 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1924 (_initialize_check_for_gdb_ini): Ditto.
1926 2002-02-08 Martin M. Hunt <hunt@redhat.com>
1928 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1929 xaprintf -> xasprintf.
1931 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1933 * win32-nat.c: Remove use of printf and sprintf functions.
1935 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
1937 * arm-tdep.c (arm_frame_chain_valid): Make static.
1938 (arm_push_arguments): Likewise.
1939 (arm_gdbarch_init): New function.
1940 (_initialize_arm_tdep): Call it.
1941 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1942 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1943 (FRAME_CHAIN_VALID): Delete.
1944 (arm_frame_chain_valid): Delete declaration.
1945 (PUSH_ARGUMENTS): Delete.
1946 (arm_push_arguments): Delete declaration.
1947 (CALL_DUMMY_P): Delete.
1949 2002-02-08 Andrew Cagney <ac131313@redhat.com>
1950 Corinna Vinschen <vinschen@redhat.com>
1952 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1953 on builtin float types.
1955 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1957 * utils.c: Include <curses.h> before "bfd.h".
1958 * tui/tui-hooks.c: Likewise.
1959 * tui/tui.c: Likewise.
1960 * tui/tuiCommand.c: Likewise.
1961 * tui/tuiData.c: Likewise.
1962 * tui/tuiDataWin.c: Likewise.
1963 * tui/tuiDisassem.c: Likewise.
1964 * tui/tuiGeneralWin.c: Likewise.
1965 * tui/tuiIO.c: Likewise.
1966 * tui/tuiLayout.c: Likewise.
1967 * tui/tuiRegs.c: Likewise.
1968 * tui/tuiSource.c: Likewise.
1969 * tui/tuiSourceWin.c: Likewise.
1970 * tui/tuiStack.c: Likewise.
1971 * tui/tuiWin.c: Likewise.
1973 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
1975 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1976 to include space for pseudoregs as well. Update loops accordingly.
1977 (sh_fp_frame_init_saved_regs): Ditto.
1978 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1980 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1982 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1983 Add Richard Earnshaw to Arm maintainers.
1985 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1987 * defs.h (warning_begin): Delete declaration.
1989 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1992 2002-02-07 Michael Snyder <msnyder@redhat.com>
1994 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1995 Logic bug, remove misplaced else.
1997 2002-02-07 Klee Dienes <klee@apple.com>
1999 * fork-inferior.c (fork_inferior): Add '!' to the list of
2000 characters that need to be quoted when building a string for the
2001 shell. Quote '!' specifically with a backslash, since CSH chokes
2002 when trying to evaluate "str!str".
2004 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2006 * rdi-share/host.h: Only provide a typedef for bool if it is not
2009 2002-02-04 Michael Snyder <msnyder@redhat.com>
2011 * breakpoint.h (enum bptype): Add new overlay event bp type.
2012 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2014 * breakpoint.c (create_internal_breakpoint): New function.
2015 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2016 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2017 (create_thread_event_breakpoint): Ditto.
2018 (create_solib_event_breakpoint): Ditto.
2019 (create_overlay_event_breakpoint): New function.
2020 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2021 (update_breakpoints_after_exec): Delete and re-initialize
2022 overlay event breakpoints after an exec. Add FIXME comment
2023 about longjmp breakpoint.
2024 (print_it_typical): Ignore overlay event breakpoints.
2025 (print_one_breakpoint): Ditto.
2027 (bpstat_what): Do not stop for overlay event breakpoints.
2028 (delete_breakpoint): Don't delete overlay event breakpoints.
2029 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2030 (breakpoint_re_set): Re-create overlay event breakpoint.
2032 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2033 (overlay_manual_command): Disable overlay breakpoints.
2034 (overlay_off_command): Disable overlay breakpoints.
2036 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2038 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2039 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2040 to here from config/tm-arm.h.
2041 (coff_sym_is_thumb): Make static.
2042 (arm_elf_make_msymbol_special): New function.
2043 (arm_coff_make_msymbol_special): New function.
2044 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2045 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2046 (coff_sym_is_thumb): Delete declaration.
2047 (arm_elf_make_msymbol_special): Declare.
2048 (arm_coff_make_msymbol_special): Declare.
2049 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2050 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2052 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2054 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2056 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2058 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2059 * gdbarch.c gdbarch.h: Regenerate.
2060 * arch-utils.c (default_print_float_info): New function.
2061 * arch-utils.h (default_print_float_info): Prototype it.
2062 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2063 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2064 (PRINT_FLOAT_INFO): Document it.
2066 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2067 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2068 (PRINT_FLOAT_INFO): Define.
2070 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2072 * win32-nat.c (_initialize_check_for_gdb_ini):
2073 Add typecast to sprintf argument to suppress a warning.
2075 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2077 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2078 to allow easier handling of pass state.
2079 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2080 that gives exception name and address.
2081 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2082 and set last_sig value to ourstatus->value.sig. Some missing
2084 (child_continue): Correctly report continue_status.
2085 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2086 TARGET_SIGNAL_0 (new default value).
2087 (child_resume): consider sig argument passed to decide if
2088 the exception should be passed to debuggee or not.
2090 2002-02-05 Michael Snyder <msnyder@redhat.com>
2092 * regcache.c (fetch_register): Call target_fetch_register
2093 only if we don't call FETCH_PSEUDO_REGISTER.
2094 (store_register): Call target_store_register only if we
2095 don't call STORE_PSEUDO_REGISTER.
2097 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2099 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2100 ELF_MAKE_MSYMBOL_SPECIAL.
2101 * gdbarch.c, gdbarch.h: Regenerate.
2102 * arch-utils.c (default_make_msymbol_special): New function.
2103 * arch-utils.h (default_make_msymbol_special): Export.
2104 * elfread.c (elf_symtab_read): Compile use of
2105 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2107 * coffread.c (coff_symtab_read): Ditto, for
2108 COFF_MAKE_MSYMBOL_SPECIAL.
2110 2002-02-05 Jim Blandy <jimb@redhat.com>
2112 * solib-svr4.c (svr4_truncate_ptr): New function.
2113 (svr4_relocate_section_addresses): Do the address arithmetic with
2114 the appropriate truncation for target addresses, even when
2115 CORE_ADDR is larger than a target address.
2117 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2119 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2122 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2124 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2127 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2129 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2131 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2133 * gdbserver/linux-low.c: Remove unused include files.
2135 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2137 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2138 (read_inferior_memory): Use it.
2139 (write_inferior_memory): Likewise.
2141 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2143 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2144 grubbing through sys_errlist.
2146 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2148 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2150 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2151 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2153 2002-02-04 Andrew Cagney <ac131313@redhat.com>
2155 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2156 (do_sfunc, set_cmd_sfunc): New functions.
2158 * command.h (struct cmd_list_element): Add field func.
2159 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2160 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2161 * cli/cli-decode.h: Ditto.
2163 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2164 (help_all, help_cmd_list): Ditto.
2165 (find_cmd, complete_on_cmdlist): Ditto.
2166 * top.c (execute_command): Ditto.
2168 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2171 * infcmd.c (notice_args_read): Fix function signature.
2173 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2174 * cli/cli-decode.c (add_set_cmd): Ditto.
2175 * utils.c (initialize_utils): Ditto.
2176 * maint.c (_initialize_maint_cmds): Ditto.
2177 * infrun.c (_initialize_infrun): Ditto.
2178 * demangle.c (_initialize_demangler): Ditto.
2179 * remote.c (add_packet_config_cmd): Ditto.
2180 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2181 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2182 * proc-api.c (_initialize_proc_api): Ditto.
2183 * kod.c (_initialize_kod): Ditto.
2184 * valprint.c (_initialize_valprint): Ditto.
2185 * top.c (init_main): Ditto.
2186 * infcmd.c (_initialize_infcmd): Ditto.
2187 * corefile.c (_initialize_core): Ditto.
2188 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2189 * arch-utils.c (initialize_current_architecture): Ditto.
2190 (_initialize_gdbarch_utils): Ditto.
2191 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2193 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2194 * wince.c (_initialize_inftarg): Ditto.
2195 * symfile.c (_initialize_symfile): Ditto.
2196 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2197 * language.c (_initialize_language): Ditto.
2198 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2200 2002-02-04 Michael Snyder <msnyder@redhat.com>
2202 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2204 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2206 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2207 Add rules for building the register data files.
2209 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2211 * regformats/regdat.sh: Add braces to the definition of
2212 expedite_regs_${arch}.
2214 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2216 * regformats/regdef.h (struct reg): Add comment describing the
2217 requirements for offset and size fields.
2219 2002-02-04 Andreas Schwab <schwab@suse.de>
2221 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2222 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2224 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
2226 * gdbarch.sh (copyright): Update years in generated header.
2227 (SMASH_TEXT_ADDRESS): Add rule.
2228 * gdbarch.h, gdbarch.c: Re-generate.
2229 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2230 * dbxread.c: Likewise.
2231 * dwarfread.c: Likewise.
2232 * elfread.c: Likewise.
2233 * somread.c: Likewise.
2235 * arm-tdep.c (arm_smash_text_address): New function.
2236 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2238 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2240 Add support for hardware watchpoints on win32 native.
2241 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2242 CONTEXT_DEBUG_REGISTERS.
2243 (dr variable): New variable. Static array containing a local copy
2245 (debug_registers_changed): New variable. Reflects when debug registers
2246 are changed and need to be written to inferior.
2247 (debug_registers_used): New variable. Reflects when any debug register
2248 was set, used when new threads are created.
2249 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2251 (thread_rec): Set dr array if id is the thread of current_event .
2252 (child_continue, child_resume): Change the debug registers for all
2253 threads if debug_registers_changed.
2254 (child_add_thread): Change the debug registers if debug_registers_used.
2255 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2256 Link nm.h to new nm-cygwin.h file.
2257 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2258 of hardware registers.
2260 2002-02-03 Andrew Cagney <ac131313@redhat.com>
2262 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2263 Restore behavour broken by 2002-01-20 Andrew Cagney
2264 <ac131313@redhat.com> IEEE_FLOAT removal.
2266 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2268 * c-valprint.c (c_val_print): Pass a proper valaddr to
2269 cp_print_class_method.
2270 * valops.c (search_struct_method): If there is only one method
2271 and args is NULL, return that method.
2273 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2275 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2276 accessing tag_name directly.
2278 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2280 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2281 of accessing tag_name directly.
2283 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2286 * gdbtypes.c (replace_type): New function.
2287 * gdbtypes.h (replace_type): Add prototype.
2288 * stabsread.c (read_type): Use replace_type.
2290 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
2292 * Makefile.in (memattr.o): Add missing dependencies rule.
2294 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2296 * breakpoint.c (break_at_finish_command): Really export.
2297 (break_at_finish_at_depth_command): Ditto.
2298 (tbreak_at_finish_command): Ditto.
2299 * hppa-tdep.c: Include completer.h.
2300 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2301 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2303 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2305 * utils.c (do_write): New function.
2306 (error_stream): Rewrite combining the code from error_begin and
2308 (verror): Rewrite using error_stream.
2309 (error_begin): Delete function.
2311 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2313 * utils.c (error_begin): Make static.
2314 * defs.h (error_begin): Delete declaration.
2316 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2317 (decode_line_1): Use cplusplus_error instead of error_begin,
2318 cplusplus_hint and return_to_top_level.
2319 * coffread.c (coff_symfile_read): Use error instead of error_begin
2320 and return_to_top_level.
2321 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2323 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2325 * language.h (type_error, range_error): Make string parameter
2327 * language.c (warning_pre_print): Delete extern declaration.
2328 * dwarfread.c (warning_pre_print): Ditto.
2329 * language.c (type_error, range_error): Rewrite to use verror and
2330 vwarning instead of warning_begin.
2332 2002-02-01 Michael Snyder <msnyder@redhat.com>
2334 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2335 (set_ignore_count): Move misplaced comment back where it belongs.
2337 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2339 * command.h (NO_FUNCTION): Delete macro.
2340 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2341 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2342 * tracepoint.c (_initialize_tracepoint): Ditto.
2343 * cli/cli-decode.c (add_set_cmd): Ditto.
2344 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2346 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2348 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2349 Update ``this'' pointer when calling virtual functions.
2351 2002-02-01 Michael Snyder <msnyder@redhat.com>
2353 * breakpoint.c (create_temp_exception_breakpoint): Delete.
2354 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2356 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2358 * regformats/reg-arm.dat: New file.
2359 * regformats/reg-i386.dat: New file.
2360 * regformats/reg-ia64.dat: New file.
2361 * regformats/reg-m68k.dat: New file.
2362 * regformats/reg-mips.dat: New file.
2363 * regformats/reg-ppc.dat: New file.
2364 * regformats/reg-sh.dat: New file.
2365 * regformats/regdef.h: New file.
2366 * regformats/regdat.sh: New file.
2368 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
2370 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2371 (arm_frame_args_address, arm_frame_locals_address): New functions.
2372 (arm_frame_num_args): New function.
2373 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2374 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2375 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2377 2002-01-31 Michael Snyder <msnyder@redhat.com>
2379 * breakpoint.c (break_at_finish_command): Export.
2380 (break_at_finish_at_depth_command): Export.
2381 (tbreak_at_finish_command): Export.
2382 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2383 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2384 "tbreak" commands, which are HPPA specific.
2386 * printcmd.c (disassemble_command): Remove an ancient
2387 artifact of an old merge.
2389 * symfile.h (enum overlay_debugging_state):
2390 Define enum constant values for overlay mode.
2391 * symfile.c (overlay_debugging): Use enums instead of literals.
2392 (overlay_is_mapped, overlay_auto_command,
2393 overlay_manual_command): Ditto.
2395 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2396 breakpoint_here_p, breakpoint_inserted_here_p,
2397 breakpoint_thread_match, bpstat_stop_status,
2398 describe_other_breakpoints, check_duplicates, clear_command):
2399 Coding standard fixes.
2401 * target.c (target_xfer_memory): Add spaces, coding standard.
2402 (do_xfer_memory): Add missing line to trust-readonly
2403 code: check bfd SEC_READONLY flag for section.
2405 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2407 * PROBLEMS: Fix typo, 5.1->5.1.1.
2409 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2411 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2412 data symbols, since we search based on textlow and texthigh.
2413 (find_pc_sect_symtab): Likewise.
2415 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2417 * defs.h (vwarning): Declare.
2418 * utils.c (vwarning): New function.
2419 (warning): Call vwarning.
2420 (warning_begin): Delete function.
2422 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2423 the warning message.
2424 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2427 2002-01-30 Michael Snyder <msnyder@redhat.com>
2429 * NEWS: Mention "set trust-readonly-sections" command.
2430 Mention generate-core-file command.
2432 2002-01-15 Michael Snyder <msnyder@redhat.com>
2434 * target.c: New command, "set trust-readonly-sections on".
2435 (do_xfer_memory): Honor the suggestion to trust readonly sections
2436 by reading them from the object file instead of from the target.
2437 (initialize_targets): Register command "set trust-readonly-sections".
2439 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2441 * parse.c (target_map_name_to_register): Simplify, search regs and
2442 pseudo-regs using a single loop.
2444 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2446 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2448 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2450 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2451 * config/i386/i386v42mp.mh: Add i387-nat.o .
2452 * i386v4-nat.c: Include i387-nat.h.
2453 (supply_fpregset): Use i387_supply_fsave.
2454 (fill_fpregset): Use i387_fill_fsave.
2456 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2458 * arm-tdep.c (arm_call_dummy_words): Define.
2459 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2460 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2461 (CALL_DUMMY_WORDS): Define.
2462 (arm_call_dummy_words): Declare.
2463 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2464 (arm_linux_call_dummy_words): Declare.
2466 2002-01-30 Andreas Schwab <schwab@suse.de>
2468 * m68klinux-nat.c: Fix last change to use regcache_collect
2469 instead of referencing registers[] directly.
2471 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2473 * parse.c (target_map_name_to_register): Delete code wrapped in
2474 #ifdef REGISTER_NAME_ALIAS_HOOK.
2476 2002-01-28 Michael Snyder <msnyder@redhat.com>
2478 * regcache.c (legacy_read_register_gen): Need to be able to
2479 read pseudo-register as well as real register.
2480 (legacy_write_register_gen): Ditto.
2482 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2484 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2485 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2486 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2487 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2488 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2489 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2490 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2491 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2492 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2493 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2494 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2495 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2496 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2497 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2498 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2499 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2500 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2501 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2502 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2503 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2505 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2507 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2508 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2509 (initialize_current_architecture): Update target_byte_order using
2510 information from BFD.
2511 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2512 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2514 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2516 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2517 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2519 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2520 #ifdef INVALID_FLOAT.
2521 * infcmd.c (do_registers_info): Ditto.
2522 * values.c (unpack_double): Ditto. Add comment.
2524 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2525 already commented out.
2527 2002-01-26 Andreas Schwab <schwab@suse.de>
2529 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2530 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2531 registers and add support for PTRACE_GETREGS.
2533 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2535 GDB 5.1.1 released from 5.1 branch.
2536 * NEWS: Add 5.1.1 news.
2537 * README: Sync with 5.1 branch.
2539 2002-01-23 Fred Fish <fnf@redhat.com>
2541 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2542 stabstring on initial malloc. Reallocing will copy it for us,
2545 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2547 * Makefile.in (hpread_h): Delete.
2548 (HFILES_NO_SRCDIR): Remove hpread.h.
2549 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2550 (hpread.o): Update dependencies.
2551 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2553 * hp-psymtab-read.c: Remove file.
2554 * hp-symtab-read.c: Remove file.
2555 * hpread.h: Remove file.
2557 * hpread.c: Merge all contents of hp-psymtab-read.c,
2558 hp-symtab-read.c and hpread.h into this file, as it was prior to
2561 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2562 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2563 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2564 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2566 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2568 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2569 fill_gregset): Call gdbarch_tdep() just once, assign result to
2570 variable and use that, instead of calling the function several
2573 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2575 * configure.host: Accept sparcv9 as alias for sparc64.
2576 * configure.tgt: Likewise.
2578 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2580 * solib-aix5.c (build_so_list_from_mapfile)
2581 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2582 arguments is not reversed.
2583 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2584 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2586 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2588 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2589 modified version of obsolete sh_fetch_pseudo_register.
2590 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2591 (sh4_register_read): New function.
2592 (sh_pseudo_register_write): New function. Renamed and modified
2593 version of obsolete sh_store_pseudo_register.
2594 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2595 (sh4_register_write): New function.
2596 (sh_gdbarch_init): Remove setting of gdbarch function
2597 fetch_pseudo_register and store_pseudo_register. Remove setting of
2598 register_convert_to_raw, register_convert_to_virtual,
2599 register_convertible.
2600 (sh_sh4_register_convertible): Delete. No longer needed. All is
2601 taken care by architecture specific functions
2602 register_read/register_write.
2603 (sh_sh4_register_convert_to_virtual): Make static.
2604 (sh_sh4_register_convert_to_raw): Ditto.
2606 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2608 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2609 (floatformat_is_nan, floatformat_mantissa): Ditto.
2611 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2612 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2613 builtin_type_ieee_double_little,
2614 builtin_type_ieee_double_littlebyte_bigword,
2615 builtin_type_m68881_ext, builtin_type_i960_ext,
2616 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2617 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2618 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2619 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2621 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2623 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2624 parameter. Set frameless flag if it exists and depended of
2625 whether the scanned function is frameless or not.
2626 (xstormy16_skip_prologue): If function is frameless, return
2627 result of xstormy16_scan_prologue().
2628 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2631 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2633 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2634 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2635 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2636 sh_sh4_register_byte, sh_sh4_register_raw_size,
2637 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2638 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2639 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2640 sh_store_pseudo_register, sh_do_pseudo_register): Call
2641 gdbarch_tdep() just once, assign result to variable and use that,
2642 instead of calling the function several times.
2644 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2646 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2647 macros instead of LAST_FPU_CTRL_REGNUM.
2648 (store_register): Likewise.
2650 2002-01-21 Jim Blandy <jimb@redhat.com>
2652 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2653 is up-to-date before running the program, not just when a program
2656 2002-01-21 Fred Fish <fnf@redhat.com>
2658 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2659 when we have found all instructions we are looking for.
2661 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2663 * arm-tdep.c (arm_register_name): New function.
2664 (arm_registers_names): Make static.
2665 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2666 (arm_register_name): Declare.
2667 (REGISTER_NAME): Use it.
2669 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2670 Kevin Buettner <kevinb@redhat.com>
2672 Convert arm targets to new FRAME interface.
2673 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2674 (arm_frame_find_save_regs): Delete.
2675 (arm_frame_init_saved_regs): New.
2676 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2677 Allocate extra_info as required. Convert all uses of fsr.regs
2678 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2680 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2681 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2682 (check_prologue_cache, save_prologue_cache): Likewise.
2683 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2684 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2685 (FRAME_FIND_SAVED_REGS): Delete.
2686 (arm_frame_find_saved_regs): Delete prototype.
2687 (arm_frame_init_saved_regs): New prototype.
2688 (FRAME_INIT_SAVED_REGS): Define.
2690 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2692 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2694 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2696 From Jeff Law <law@redhat.com>:
2697 * infttrace.c: Include <sys/pstat.h>.
2698 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2699 exec file if the ttrace equivalent fails.
2701 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2703 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2704 (closeLogFile): Ditto.
2706 2002-01-20 Michael Chastain <mec@shout.net>
2708 * top.c (print_gdb_version): Bump copyright year to 2002.
2710 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2712 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2713 Zannoni and Eli Zaretskii.
2715 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2717 * buildsym.c: Update copyright years.
2718 * c-typeprint.c: Likewise.
2719 * dwarf2read.c: Likewise.
2720 * f-typeprint.c: Likewise.
2721 * gdbtypes.c: Likewise.
2722 * gdbtypes.h: Likewise.
2723 * hp-symtab-read.c: Likewise.
2724 * hpread.c: Likewise.
2725 * mdebugread.c: Likewise.
2726 * p-typeprint.c: Likewise.
2728 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2730 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2731 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2732 byte-order selectable.
2733 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2734 * arch-utils.c: Ditto.
2735 (set_endian): Ditto.
2736 (set_endian_from_file): Ditto.
2737 * gdbserver/low-sim.c (create_inferior): Ditto.
2738 * gdbarch.sh: Ditto.
2739 * gdbarch.h: Re-generate.
2740 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2741 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2742 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2743 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2744 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2745 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2746 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2747 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2749 * config/mips/tm-wince.h: Remove #undef of macro
2750 TARGET_BYTE_ORDER_SELECTABLE.
2751 * config/sh/tm-wince.h: Ditto.
2753 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2755 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2756 member function fields. Add accessor macro
2757 TYPE_FN_FIELD_ARTIFICIAL.
2758 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2759 * c-typeprint.c (c_type_print_base): Skip artificial member
2762 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2764 * f-typeprint.c: Delete unused function f_type_print_args.
2765 * p-typeprint.c: Delete unused function pascal_type_print_args.
2767 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2769 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2770 comment. Add ``artificial'' to ``union field_location''.
2772 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2774 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2775 * mdebugread.c (parse_symbol): Likewise.
2776 * stabsread.c (define_symbol): Likewise.
2777 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2778 initializing TYPE_FIELD_BITPOS to n (obsolete).
2779 (hpread_doc_function_type): Likewise.
2780 * hpread.c (hpread_function_type): Likewise.
2782 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2784 * configure.in (host_makefile_frag): Only require a host makefile
2785 fragment when a native build.
2786 * configure: Re-generate.
2788 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2790 * doublest.h (floatformat_from_type): Declare.
2791 * doublest.c (floatformat_from_type): New function.
2792 (convert_typed_floating): Use.
2794 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2795 call to function floatformat_from_type.
2797 * gdbarch.sh (IEEE_FLOAT): Delete.
2798 * gdbarch.h, gdbarch.c: Re-generate.
2799 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2800 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2801 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2802 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2803 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2804 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2805 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2806 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2807 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2808 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2809 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2810 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2812 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2813 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2814 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2815 * sh-tdep.c (sh_gdbarch_init): Ditto.
2816 * mips-tdep.c (mips_gdbarch_init): Ditto.
2817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2818 * cris-tdep.c (cris_gdbarch_init): Ditto.
2820 2002-01-20 Jiri Smid <smid@suse.cz>
2822 * configure.host, configure.tgt: Support x86-64.
2823 * NEWS: Note new target x86-64.
2825 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2826 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2827 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2828 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2829 x86-64-linux-nat.o): Fix dependencies.
2831 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2833 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2834 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2835 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2836 * config/sparc/xm-sun4os4.h: Delete file.
2837 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2839 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2841 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2842 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2843 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2844 * config/i386/i386lynx.mh (XM_FILE): Delete.
2845 * config/rs6000/xm-rs6000ly.h: Delete file.
2846 * config/sparc/xm-sparclynx.h: Delete file.
2847 * config/m68k/xm-m68klynx.h: Delete file.
2848 * config/i386/xm-i386lynx.h: Delete file.
2849 * config/xm-lynx.h: Delete file.
2850 * config/djgpp/fnchange.lst: Update.
2852 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2854 * alpha-tdep.c (alpha_register_byte): New function.
2855 (alpha_register_raw_size): Ditto.
2856 (alpha_register_virtual_size): Ditto.
2857 (alpha_skip_prologue_internal): Renamed from
2858 alpha_skip_prologue.
2859 (alpha_skip_prologue): New version that calls
2860 alpha_skip_prologue_internal.
2861 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2862 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2863 second argument from alpha_skip_prologue.
2864 (REGISTER_BYTE): Use alpha_register_byte.
2865 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2866 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2867 (FRAMELESS_FUNCTION_INVOCATION): Use
2868 generic_frameless_function_invocation_not.
2869 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2870 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2872 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2874 * config/mips/xm-news-mips.h: Delete file.
2875 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2877 * config/m88k/xm-m88k.h: Delete file.
2878 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2879 * config/m88k/xm-delta88v4.h: Ditto.
2880 * config/m88k/xm-delta88.h: Ditto.
2882 * config/alpha/xm-fbsd.h: Delete file.
2883 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2885 * config/sparc/xm-sparc.h: Delete file.
2886 * Makefile.in (xm-sun4os4.h): Delete dependency.
2887 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2888 * config/sparc/xm-sun4os4.h: Ditto.
2889 * config/sparc/xm-linux.h: Ditto.
2891 * config/i386/xm-windows.h: Delete file.
2893 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2895 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2896 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2898 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2900 * alpha-tdep.c (alpha_call_dummy_words): New.
2901 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2902 (CALL_DUMMY_P): Define.
2903 (CALL_DUMMY_WORDS): Define.
2904 (SIZEOF_CALL_DUMMY_WORDS): Define.
2906 2002-01-19 Per Bothner <per@bothner.com>
2908 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2909 isn't NULL, which can happen with some gcj-3.x-produced code.
2911 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2913 * alpha-tdep.c (alpha_register_virtual_type): New function.
2914 (alpha_init_frame_pc_first): Ditto.
2915 (alpha_fix_call_dummy): Ditto.
2916 (alpha_store_struct_return): Ditto.
2917 (alpha_extract_struct_value_address): Ditto.
2918 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2919 alpha_register_virtual_type.
2920 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2921 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2922 alpha_extract_struct_value_address.
2923 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2924 (INIT_FRAME_PC): Use init_frame_pc_noop.
2925 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2927 2002-01-19 Mark Kettenis <kettenis@gnu.org>
2929 * i386gnu-nat.c: Include "i386-tdep.h".
2930 (fetch_fpregs): Simplify code dealing with uninitialized floating
2931 point states such that it doesn't require FP7_REGNUM.
2933 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2935 * alpha-tdep.c (frame_extra_info): New.
2936 (alpha_find_saved_regs): Make static. Use
2938 (alpha_frame_init_saved_regs): New function.
2939 (alpha_frame_saved_pc): Use frame->extra_info.
2940 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2941 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2942 (init_extra_frame_info): Rename to...
2943 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
2944 (alpha_print_extra_frame_info): New function.
2945 (alpha_frame_locals_address): Ditto.
2946 (alpha_frame_args_address): Ditto.
2947 (alpha_pop_frame): Use frame->extra_info.
2948 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2949 alpha_frame_args_address.
2950 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2951 (alpha_find_saved_regs): Remove prototype.
2952 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2953 (EXTRA_FRAME_INFO): Remove.
2954 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2955 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2957 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2959 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2960 (alpha_cannot_fetch_register): Ditto.
2961 (alpha_cannot_store_register): Ditto.
2962 (alpha_register_convertible): Ditto.
2963 (alpha_use_struct_convention): Ditto.
2964 * config/alpha/tm-alpha.h: Update copyright years.
2965 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2966 (INNER_THAN): Use core_addr_lessthan.
2967 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2968 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2969 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2970 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2971 (FRAME_CHAIN): Remove unnecessary cast.
2973 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2975 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2978 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2980 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
2981 * monitor.c, remote-array.c, remote-bug.c: Ditto.
2982 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2983 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2984 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2985 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2986 * x86-64-linux-nat.c: Ditto.
2988 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2990 * alpha-tdep.c (alpha_register_name): New function.
2991 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2992 (REGISTER_NAME): Define.
2994 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2996 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2998 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3000 * alpha-tdep.c: Update copyright years.
3001 (alpha_next_pc): New function.
3002 (alpha_software_single_step): Ditto.
3003 * config/alpha/tm-alpha.h: Add prototype for
3004 alpha_software_single_step.
3006 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3008 * alphabsd-nat.c: Update copyright years.
3009 (fill_gregset): Use regcache_collect.
3010 (fill_fpregset): Likewise.
3011 (fetch_inferior_registers): Only fetch integer registers
3012 if requested to do so.
3013 (store_inferior_registers): Only store integer registers
3014 if requested to do so.
3016 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3018 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3019 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3020 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3021 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3022 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3023 * config/arm/linux.mh (XDEPFILES): Delete.
3024 * config/arm/nbsd.mh (XDEPFILES): Delete.
3025 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3026 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3027 * config/i386/i386m3.mh (XDEPFILES): Delete.
3028 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3029 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3030 * config/i386/fbsd.mh (XDEPFILES): Delete.
3031 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3032 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3033 * config/i386/i386v4.mh (XDEPFILES): Delete.
3034 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3035 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3036 * config/i386/i386aix.mh (XDEPFILES): Delete.
3037 * config/i386/go32.mh (XDEPFILES): Delete.
3038 * config/i386/cygwin.mh (XDEPFILES): Delete.
3039 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3040 * config/i386/i386mach.mh (XDEPFILES): Delete.
3041 * config/i386/i386v32.mh (XDEPFILES): Delete.
3042 * config/i386/linux.mh (XDEPFILES): Delete.
3043 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3044 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3045 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3046 * config/i386/i386sco.mh (XDEPFILES): Delete.
3047 * config/i386/i386v.mh (XDEPFILES): Delete.
3048 * config/i386/nbsd.mh (XDEPFILES): Delete.
3049 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3050 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3051 * config/i386/symmetry.mh (XDEPFILES): Delete.
3052 * config/i386/obsd.mh (XDEPFILES): Delete.
3053 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3054 * config/ia64/linux.mh (XDEPFILES): Delete.
3055 * config/ia64/aix.mh (XDEPFILES): Delete.
3056 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3057 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3058 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3059 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3060 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3061 * config/m68k/linux.mh (XDEPFILES): Delete.
3062 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3063 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3064 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3065 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3066 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3067 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3068 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3069 * config/m88k/delta88.mh (XDEPFILES): Delete.
3070 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3071 * config/m88k/m88k.mh (XDEPFILES): Delete.
3072 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3073 * config/mips/linux.mh (XDEPFILES): Delete.
3074 * config/mips/irix6.mh (XDEPFILES): Delete.
3075 * config/mips/irix5.mh (XDEPFILES): Delete.
3076 * config/mips/irix4.mh (XDEPFILES): Delete.
3077 * config/mips/irix3.mh (XDEPFILES): Delete.
3078 * config/mips/decstation.mh (XDEPFILES): Delete.
3079 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3080 (NATDEPFILES): Move core-aout.o to here.
3081 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3082 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3083 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3084 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3085 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3086 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3087 * config/pa/hpux11.mh (XDEPFILES): Delete.
3088 * config/powerpc/aix.mh (XDEPFILES): Delete.
3089 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3090 * config/powerpc/linux.mh (XDEPFILES): Delete.
3091 * config/romp/rtbsd.mh: Rename XDEPFILES.
3092 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3093 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3094 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3095 * config/s390/s390.mh (XDEPFILES): Delete.
3096 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3097 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3098 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3099 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3100 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3101 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3102 * config/sparc/linux.mh (XDEPFILES): Delete.
3103 * config/vax/vaxult.mh (XDEPFILES): Delete.
3104 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3105 * Makefile.in (DEPFILES): Remove XDEPFILES.
3107 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3109 * utils.c (internal_verror): Fix comments, default is yes not no.
3110 Update queries to match. Default to quit and dump core.
3112 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3114 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3116 * defs.h, event-top.c, gdbcmd.h: Ditto.
3117 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3118 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3119 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3120 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3121 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3122 * mi/mi-main.c:Ditto.
3124 * stack.c, symfile.c: Update copyright.
3126 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3128 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3129 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3130 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3131 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3133 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3135 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3136 * gdbserver/low-lynx.c (myattach): Likewise.
3137 * gdbserver/low-nbsd.c (myattach): Likewise.
3138 * gdbserver/low-sim.c (myattach): Likewise.
3139 * gdbserver/low-sparc.c (myattach): Likewise.
3140 * gdbserver/low-sun3.c (myattach): Likewise.
3142 * gdbserver/low-linux.c (myattach): New function.
3144 * gdbserver/server.c (attach_inferior): New function.
3145 (main): Handle "--attach".
3147 2002-01-16 Andrew Cagney <ac131313@redhat.com>
3149 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3152 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
3154 * c-typeprint.c (is_type_conversion_operator): Add additional
3155 check for non-conversion operators.
3157 2002-01-15 Michael Snyder <msnyder@redhat.com>
3159 * linux-proc.c: Add "info proc" command, a la procfs.c.
3160 (read_mapping): New function, abstract and re-use code.
3161 (linux_find_memory_regions): Use new func read_mapping.
3162 (linux_info_proc_cmd): New function, implement "info proc".
3163 (_initialize_linux_proc): Add new command "info proc".
3165 2002-01-15 Michael Snyder <msnyder@redhat.com>
3167 * symfile.c (generic_load): Use bfd_map_over_sections method
3168 instead of manipulating bfd structure members directly.
3169 (add_section_size_callback): New function, bfd sections callback
3170 used by generic_load.
3171 (load_sections_callback): New function, bfd sections callback
3172 used by generic_load.
3174 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
3176 [Based on work by Jim Blandy]
3177 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3178 (builtin_type_vec128): Export.
3179 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3181 (builtin_type_vec128): New builtin type for 128 bit vector
3183 (build_gdbtypes): Initialize builtin_type_v16qi and
3184 builtin_type_v8hi. Create the vec128 register builtin type
3186 (build_builtin_type_vec128): New function.
3187 (_initialize_gdbtypes): Register builtin_type_v16qi and
3188 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3189 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3190 AltiVec register to new builtin type.
3192 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3194 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3197 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3199 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3200 CLEAN_UP_REGISTER_VALUE.
3201 * regcache.c (supply_register): Update only call.
3203 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3205 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3206 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3207 a29k-*-vxworks* targets as obsolete.
3209 2002-01-14 Michael Snyder <msnyder@redhat.com>
3211 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3212 until we can resolve portability issues.
3213 * gregset.h: Remove references to fpxregs.
3214 * gcore.c (gcore_command): Initialize note_sec to NULL.
3216 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3218 * signals.c (target_signal_to_name): Rewrite. Only use
3219 signals[].name when in bounds and non-NULL.
3221 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3223 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3224 * signals.c (target_signal_to_name): Verify that SIG is within the
3225 bounds of the signals array.
3227 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3229 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3231 2002-01-13 Keith Seitz <keiths@redhat.com>
3233 * stack.c (print_frame_info_base): Print the frame's pc
3234 only if when print_frame_info_listing_hook is not defined.
3236 2002-01-13 Keith Seitz <keiths@redhat.com>
3238 * varobj.c (varobj_set_value): Make sure that there were no
3239 errors evaluating the object before attempting to set its
3241 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3242 so this offset adjustment is no longer necessary.
3243 (create_child): Don't set the error flag if the child is
3245 (value_of_child): If value_fetch_lazy fails, return NULL
3246 so that callers will be notified that an error occurred.
3247 (c_value_of_variable): Delay check of variable's validity
3248 until later. We actually want all structs and unions to have
3250 Do not return "???" for variables which could not be evaluated.
3251 This error condition must be returned to the caller so that it
3252 can get the error condition from gdb.
3253 (cplus_name_of_child): Adjust index for vptr before figuring
3254 out the name of the child.
3255 (cplus_value_of_child): If a child's (real) parent is not valid,
3256 don't even bother trying to give a value for it. Just return
3257 an error. Change all instances in this function.
3258 (cplus_type_of_child): If our parent is one of the "fake"
3259 parents, we need to get at the type of the real parent, and
3260 derive the child's true type using this information.
3262 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3264 From 2002-01-09 John Marshall <johnm@falch.net>:
3265 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3266 sources.redhat.com, and tweak some related URLs which had
3267 suffered from linkrot.
3269 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3272 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3273 structures passed in registers.
3275 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3277 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3278 white space which prevented compilation. Reported by DSK
3279 <dsk@student.unsw.edu.au>.
3281 2002-01-11 Michael Snyder <msnyder@redhat.com>
3283 * symfile.c (build_section_addr_info_from_section_tab):
3284 Use bfd access method instead of manipulating bfd directly.
3285 (syms_from_objfile): Ditto.
3286 (simple_overlay_update_1): Ditto.
3287 (simple_overlay_update): Ditto.
3288 (generic_load): Ditto.
3289 (overlay_unmapped_address): FIXME comment, bfd access methods.
3290 (sections_overlap): FIXME comment, bfd access methods.
3291 (pc_in_mapped_range): FIXME comment, bfd access methods.
3292 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3293 (section_is_mapped): FIXME comment, bfd access methods.
3294 (section_is_overlay): FIXME comment, bfd access methods.
3296 * symfile.c (generic_load): Whitespace and long line cleanups.
3297 Remove duplicate variable, change several local variables to
3298 more appropriate data types.
3299 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3301 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3304 * language.c (longest_local_hex_string_custom): Use phex_nz to
3305 convert NUM to a hex string.
3307 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3309 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3311 Update Copyright year.
3313 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3315 * language.c (longest_raw_hex_string): Delete unused function.
3317 2002-01-11 Petr Sorfa <petrs@caldera.com>
3319 * MAINTAINERS (write-after-approval): Add myself.
3320 * dwarf2read.c (read_tag_string_type): Handling of
3322 (read_tag_string_type): FORTRAN fix to prevent propagation of
3324 (set_cu_language): Handling of DW_LANG_Fortran95
3326 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3328 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3329 GETPID(inferior_ptid).
3330 (store_inferior_registers): Likewise.
3332 2002-01-10 Jason Merrill <jason@redhat.com>
3334 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3337 2002-01-10 Andrew Cagney <ac131313@redhat.com>
3339 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3340 and bfd/elf32-sh-nbsd.c.
3342 2002-01-10 Michael Snyder <msnyder@redhat.com>
3344 * NEWS: Mention --pid and corefile/proc-id behavior change.
3346 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3347 * gcore.c: Include cli/cli-decode.h instead of command.h.
3349 * main.c (captured_main): Add new command line option "--pid".
3350 If the second command line argument (following the symbol-file)
3351 begins with a digit, try to attach to it before trying to open
3353 (print_gdb_help): Document the "--pid" argument.
3355 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3357 * completer.c (command_completer): New function.
3359 * completer.h <command_completer>: Add prototype.
3361 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3362 completer for the "help" command.
3364 2002-01-09 Jason Merrill <jason@redhat.com>
3366 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3368 2002-01-09 Michael Snyder <msnyder@redhat.com>
3370 * i386-linux-nat.c (fill_fpxregset): Make global.
3371 (store_fpxregset): Ditto.
3373 * gregset.h (gdb_fpxregset_t): Define.
3374 (supply_fpxregset): Prototype.
3375 (fill_fpxregset): Prototype.
3377 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3379 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3381 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3382 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3383 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3385 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3387 * MAINTAINERS: Update target maintainer rules so that any
3388 Maintainer can approve a tested patch for a maintenance-only
3391 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3393 * MAINTAINERS (write-after-approval): Add myself.
3395 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3398 2002-01-08 Michael Snyder <msnyder@redhat.com>
3400 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3401 real name of the executable, rather than the /proc name.
3403 2002-01-03 Michael Snyder <msnyder@redhat.com>
3405 Implement a "generate-core-file" command in gdb, save target state.
3406 * gcore.c: New file. Implement new command 'generate-core-file'.
3407 Save a corefile image of the current state of the inferior.
3408 * linux-proc.c: Add linux-specific code for saving corefiles.
3409 * target.h (struct target_ops): Add new target vectors for saving
3410 corefiles; to_find_memory_regions and to_make_corefile_notes.
3411 (target_find_memory_regions): New macro.
3412 (target_make_corefile_notes): New macro.
3413 * target.c (update_current_target): Inherit new target methods.
3414 (dummy_find_memory_regions): New place-holder method.
3415 (dummy_make_corefile_notes): New place-holder method.
3416 (init_dummy_target): Initialize new dummy target vectors.
3417 * exec.c (exec_set_find_memory_regions): New function.
3418 Allow the exec_ops vector for memory regions to be taken over.
3419 (exec_make_note_section): New function, target vector method.
3420 * defs.h (exec_set_find_memory_regions): Export prototype.
3421 * procfs.c (proc_find_memory_regions): New function, corefile method.
3422 (procfs_make_note_section): New function, corefile method.
3423 (init_procfs_ops): Set new target vector pointers.
3424 (find_memory_regions_callback): New function.
3425 (procfs_do_thread_registers): New function.
3426 (procfs_corefile_thread_callback): New function.
3427 * sol-thread.c (sol_find_memory_regions): New function.
3428 (sol_make_note_section): New function.
3429 (init_sol_thread_ops): Initialize new target vectors.
3430 * inftarg.c (inftarg_set_find_memory_regions): New function.
3431 Allow to_find_memory_regions vector to be taken over.
3432 (inftarg_set_make_corefile_notes): New function.
3433 Allow to_make_corefile_notes vector to be taken over.
3434 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3435 interface layer if not target_has_execution (may be a corefile).
3436 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3437 * config/sparc/sun4sol2.mh: Ditto.
3438 * config/alpha/alpha-linux.mh: Ditto.
3439 * config/arm/linux.mh: Ditto.
3440 * config/i386/x86-64linux.mh: Ditto.
3441 * config/ia64/linux.mh: Ditto.
3442 * config/m68k/linux.mh: Ditto.
3443 * config/mips/linux.mh: Ditto.
3444 * config/powerpc/linux.mh: Ditto.
3445 * config/sparc/linux.mh: Ditto.
3447 2002-01-07 Michael Snyder <msnyder@redhat.com>
3449 * arm-linux-nat.c: Remove references to regcache.c internal data
3450 (registers[] and register_valid[]).
3452 2002-01-07 Michael Snyder <msnyder@redhat.com>
3454 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3455 so that attaching to a pid will automatically read the process's
3456 symbol file and shlibs.
3457 * Makefile.in: Add rule for linux-proc.o.
3458 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3459 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3460 * config/arm/linux.mh: Ditto.
3461 * config/i386/linux.mh: Ditto.
3462 * config/i386/x86-64linux.mh: Ditto.
3463 * config/ia64/linux.mh: Ditto.
3464 * config/m68k/linux.mh: Ditto.
3465 * config/mips/linux.mh: Ditto.
3466 * config/powerpc/linux.mh: Ditto.
3467 * config/sparc/linux.mh: Ditto.
3469 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3471 * win32-nat.c: Add i386-tdep.h dependency.
3473 2002-01-07 Michael Snyder <msnyder@redhat.com>
3475 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3476 instead of bfd_get_arch_size. Don't bail out just because
3477 there's no exec_bfd.
3479 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3480 * p-valprint.c (pascal_object_print_value): Ditto.
3481 * somread.c (som_symtab_read): Ditto.
3482 * symfile.c (simple_free_overlay_region_table): Ditto.
3483 * valops.c (value_assign): Ditto.
3485 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3486 use tilde_expand and strerror for opening save-tracepoints file.
3488 * thread-db.c (thread_db_new_objfile): Indendation fix.
3490 * infptrace.c (GDB_MAX_ALLOCA): New define.
3491 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3492 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3493 can be overridden with whatever value is appropriate to the host).
3494 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3495 alloca to allocate potentially large buffer.
3496 * rs6000-nat.c (child_xfer_memory): Ditto.
3497 * symm-nat.c (child_xfer_memory): Ditto.
3498 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3500 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3502 From Nick Clifton <nickc@redhat.com>
3503 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3505 2002-01-07 Michael Snyder <msnyder@redhat.com>
3507 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3508 Don't use exec_bfd if it's NULL.
3510 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3512 * valops.c (value_arg_coerce): Fix formatting.
3514 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3516 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3519 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3521 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3522 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3523 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3524 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3525 z8k-coff have not been multi-arched. Update z8k-coff build
3528 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3530 * MAINTAINERS: Mark a29k target as obsolete.
3531 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3532 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3534 * NEWS: Note that a29k targets are obsolete.
3535 * a29k-tdep.c: Mark as obsolete.
3536 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3537 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3538 a29k-*-vxworks* targets as obsolete.
3539 * remote-adapt.c: Obsolete.
3540 * remote-eb.c: Obsolete.
3541 * remote-mm.c: Obsolete.
3542 * remote-udi.c: Obsolete.
3543 * config/a29k/a29k-udi.mt: Obsolete.
3544 * config/a29k/a29k.mt: Obsolete.
3545 * config/a29k/tm-a29k.h: Obsolete.
3546 * config/a29k/tm-vx29k.h: Obsolete.
3547 * config/a29k/vx29k.mt: Obsolete.
3549 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3551 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3552 with BFD_ENDIAN_BIG.
3554 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3556 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3557 * configure, config.in: Re-generate.
3558 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3559 * defs.h: Do not include <endian.h>.
3561 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3563 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3564 * config.in: Regenerate.
3565 * configure.in: Update copyright years.
3566 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3567 * configure: Regenerate.
3568 * i386bsd-nat.c: Update copyright years.
3569 (fill_gregset): Use regcache_collect.
3570 (fetch_inferior_registers): Only fetch integer registers
3571 if requested to do so. Add support for XMM registers
3572 using PT_GETXMMREGS.
3573 (store_inferior_registers): Only store integer registers
3574 if requested to do so. Add support for XMM registers
3575 using PT_SETXMMREGS.
3576 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3577 (store_inferior_registers): Remove.
3578 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3579 (fetch_elfcore_registers): New function.
3580 (i386nbsd_elfcore_fns): New.
3581 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3582 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3584 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3585 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3586 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3587 * config/i386/tm-nbsd.h: Update copyright years.
3588 (HAVE_SSE_REGS): Define.
3589 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3590 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3591 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3592 (SIGCONTEXT_PC_OFFSET): Remove.
3593 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3595 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3597 * configure.tgt: Remove powerpc-*-macos* target.
3598 * config/m68k/xm-mpw.h: Delete file.
3599 * config/xm-mpw.h: Delete file.
3600 * ser-mac.c: Delete file.
3601 * mpw-make.sed: Delete file.
3602 * mpw-config.in: Delete file.
3603 * mac-xdep.c: Delete file.
3604 * mac-gdb.r: Delete file.
3605 * mac-defs.h: Delete file.
3606 * mac-nat.c: Delete file.
3607 * config/powerpc/macos.mh: Delete file.
3608 * config/powerpc/macos.mt: Delete file.
3609 * config/powerpc/nm-macos.h: Delete file.
3610 * config/powerpc/tm-macos.h: Delete file.
3611 * source.c (openp, open_source_file): Remove obsolete code.
3612 * top.c (gdb_readline): Ditto.
3613 * utils.c (query): Ditto.
3614 * event-top.c (display_gdb_prompt): Ditto.
3615 * Makefile.in (ser-mac.o): Delete obsolete target.
3618 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3620 * defs.h (BIG_ENDIAN): Delete macro definition.
3621 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3622 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3623 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3624 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3625 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3626 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3627 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3628 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3629 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3630 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3631 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3632 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3633 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3634 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3635 * gdbarch.c: Re-generate.
3637 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3639 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3642 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3644 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3646 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3648 * value.h (value_ptr): Delete typedef.
3650 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3652 * i386nbsd-nat.c: Update copyright years.
3653 Include i386-tdep.h.
3655 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3657 * stabsread.c: Update copyright years.
3659 From Debashis Mahata <debashis.mahata@wipro.com>:
3660 (read_struct_fields): Deal with Sun C compiler erroneous stab
3661 output for structs and unions.
3664 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3666 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3669 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3671 * cp-abi.c: Fix whitespace.
3672 (baseclass_offset): New wrapper function.
3673 * cp-abi.h (baseclass_offset): Add prototype.
3674 (struct cp_abi_ops): Add baseclass_offset pointer.
3676 * valops.c (vb_match): Move to...
3677 * gnu-v2-abi.c (vb_match): here.
3678 * valops.c (baseclass_offset): Move to...
3679 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3681 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3683 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3684 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3685 * hpacc-abi.c (init_hpacc_ops): Likewise.
3687 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3689 * valops.c (find_overload_match): Accept obj as a
3690 reference parameter. Update it before returning.
3691 * value.h (find_overload_match): Update prototype.
3692 * eval.c (evaluate_subexp_standard): Pass object to
3693 find_overload_match by reference.
3695 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3697 * valarith.c: Replace value_ptr with struct value pointer. Remove
3698 register attribute from value declarations.
3701 * scm-lang.c (scm_lookup_name): Ditto.
3703 2002-01-03 Michael Snyder <msnyder@redhat.com>
3705 Abstract the functionality of iterating over mapped memory
3706 regions into a general purpose iterator function.
3707 * procfs.c (iterate_over_mappings): New function, general purpose
3708 iterator for memory sections.
3709 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3710 (solib_mappings_callback): New function, callback for above.
3711 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3712 (info_mappings_callback): New function, callback for above.
3714 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3716 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3718 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3719 * i386-tdep.c: Include "elf-bfd.h".
3720 (process_note_abi_tag_sections): New function.
3721 (i386_gdbarch_init): Add code to recognize various OS/ABI
3724 * maint.c (_initialize_maint_cmds): Add missing \ in
3727 For older changes see ChangeLog-2001
3733 version-control: never