1 2002-04-11 Michael Snyder <msnyder@redhat.com>
3 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4 * configure: Regenerate.
5 * config.in: Regenerate.
6 * acconfig.h: Add define for _SYSCALL32.
7 * core-sol2.c: Remove #define _SYSCALL32.
8 * solib-legacy.c: Remove #define _SYSCALL32.
10 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12 * stack.c (select_frame): Cleanup internal error message, do not
15 2002-04-10 Andrew Cagney <ac131313@redhat.com>
17 * stack.c (select_frame): Check that selected_frame and the
18 specified level are as expected.
19 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
21 * frame.h (struct frame_info): Add field `level'. Update
23 Work-in-progress PR gdb/464.
25 2002-04-10 Andrew Cagney <ac131313@redhat.com>
27 * maint.c (maint_print_section_info): Rename print_section_info.
28 (print_bfd_section_info, print_objfile_section_info): Update.
29 * inferior.h (struct gdbarch): Add opaque declaration.
30 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
31 * gdbarch.h: Regenerate.
33 2002-04-10 Michal Ludvig <mludvig@suse.cz>
35 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
36 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
37 (kernel_u_size): Added.
38 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
39 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
41 2002-04-04 Jim Ingham <jingham@apple.com>
43 * valarith.c (find_size_for_pointer_math): New function, either returns
44 the size for a pointer's target, returns 1 for void *, or errors for
46 (value_add, value_sub): use find_size_for_pointer_math.
48 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
50 * linux-low.c (linux_look_up_symbols): New hook.
51 (linux_target_ops): Add linux_look_up_symbols.
52 * remote-utils.c (decode_address): New function.
53 (look_up_one_symbol): New function.
54 * server.c (handle_query): Call target look_up_symbols hook.
55 * server.h (look_up_one_symbol): Add prototype.
56 * target.h (struct target_ops): Add look_up_symbols hook.
58 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
60 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
61 * ChangeLog: Correct paths in last ChangeLog entry.
63 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
65 * gdbserver/linux-low.h: Remove obsolete prototypes.
66 (struct linux_target_ops): New.
67 (extern the_low_target): New.
68 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
69 (register_addr): Use the_low_target explicitly.
70 (fetch_register): Likewise.
71 (usr_fetch_inferior_registers): Likewise.
72 (usr_store_inferior_registers): Likewise.
73 * gdbserver/linux-arm-low.c (num_regs): Remove.
74 (arm_num_regs): Define.
75 (arm_regmap): Renamed from regmap, made static.
76 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
78 (arm_cannot_store_register): Renamed from cannot_store_register,
80 (the_low_target): New.
81 * gdbserver/linux-i386-low.c (num_regs): Remove.
82 (i386_num_regs): Define.
83 (i386_regmap): Renamed from regmap, made static.
84 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
86 (i386_cannot_store_register): Renamed from cannot_store_register,
88 (the_low_target): New.
89 * gdbserver/linux-ia64-low.c (num_regs): Remove.
90 (ia64_num_regs): Define.
91 (ia64_regmap): Renamed from regmap, made static.
92 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
94 (ia64_cannot_store_register): Renamed from cannot_store_register,
96 (the_low_target): New.
97 * gdbserver/linux-m68k-low.c (num_regs): Remove.
98 (m68k_num_regs): Define.
99 (m68k_regmap): Renamed from regmap, made static.
100 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
102 (m68k_cannot_store_register): Renamed from cannot_store_register,
104 (the_low_target): New.
105 * gdbserver/linux-mips-low.c (num_regs): Remove.
106 (mips_num_regs): Define.
107 (mips_regmap): Renamed from regmap, made static.
108 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
110 (mips_cannot_store_register): Renamed from cannot_store_register,
112 (the_low_target): New.
113 * gdbserver/linux-ppc-low.c (num_regs): Remove.
114 (ppc_num_regs): Define.
115 (ppc_regmap): Renamed from regmap, made static.
116 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
118 (ppc_cannot_store_register): Renamed from cannot_store_register,
120 (the_low_target): New.
121 * gdbserver/linux-s390-low.c (num_regs): Remove.
122 (s390_num_regs): Define.
123 (s390_regmap): Renamed from regmap, made static.
124 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
126 (s390_cannot_store_register): Renamed from cannot_store_register,
128 (the_low_target): New.
129 * gdbserver/linux-sh-low.c (num_regs): Remove.
130 (sh_num_regs): Define.
131 (sh_regmap): Renamed from regmap, made static.
132 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
134 (sh_cannot_store_register): Renamed from cannot_store_register,
136 (the_low_target): New.
137 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
138 (the_low_target): New.
140 2002-04-09 Andrew Cagney <ac131313@redhat.com>
142 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
143 override FP_REGNUM with frame->fp. Update copyright.
144 * parse.c (num_std_regs, std_regs): Delete.
145 (target_map_name_to_register): Do not search std_regs. Update
146 function description.
147 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
148 declarations. Update copyright.
151 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
153 * gdbserver/Makefile.in: Add stamp-h target.
154 * gdbserver/configure.in: Create stamp-h.
155 * gdbserver/configure: Regenerated.
157 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
159 * gdbserver/inferiors.c: New file.
160 * gdbserver/target.c: New file.
161 * gdbserver/target.h: New file.
162 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
164 * gdbserver/linux-low.c (inferior_pid): New static variable,
166 (linux_create_inferior): Renamed from create_inferior.
167 Call add_inferior. Return 0 on success instead of a PID.
168 (linux_attach): Renamed from myattach.
169 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
170 (linux_thread_alive): Renamed from mythread_alive.
171 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
173 (linux_resume): Renamed from myresume. Add missing ``return 0''.
174 (regsets_store_inferior_registers): Correct error message.
175 Add missing ``return 0''.
176 (linux_fetch_registers): Renamed from fetch_inferior_registers.
177 (linux_store_registers): Renamed from store_inferior_registers.
178 (linux_read_memory): Renamed from read_inferior_memory.
179 (linux_write_memory): Renamed from write_inferior_memory.
180 (linux_target_ops): New structure.
181 (initialize_low): Call set_target_ops ().
182 * gdbserver/remote-utils.c (unhexify): New function.
183 (hexify): New function.
184 (input_interrupt): Send signals to ``signal_pid''.
185 * gdbserver/server.c (inferior_pid): Remove.
186 (start_inferior): Update create_inferior call.
187 (attach_inferior): Call add_inferior.
188 (handle_query): New function.
189 (main): Call handle_query for `q' packets.
190 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
191 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
193 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
195 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
197 * gdbserver/configure.in: Check for <string.h>
198 * gdbserver/configure: Regenerate.
199 * gdbserver/config.in: Regenerate.
200 * gdbserver/gdbreplay.c: Include needed system headers.
201 (remote_open): Remove strchr prototype.
202 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
203 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
204 (supply_register_by_name): Likewise.
205 (collect_register): Change buf argument to void *.
206 (collect_register_by_name): Likewise.
207 * gdbserver/regcache.h: Add missing prototypes.
208 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
209 * gdbserver/server.c (handle_query): New function.
210 (attached): New static variable, moved out of main.
211 (main): Quiet longjmp clobber warnings.
212 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
213 * gdbserver/utils.c (error): Remove NORETURN.
216 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
218 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
219 after the last symbol in a block.
221 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
223 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
224 is non zero as a found symbol.
226 2002-04-08 Andrew Cagney <ac131313@redhat.com>
228 * findvar.c: Include "builtin-regs.h".
229 (value_of_register): Call value_of_builtin_reg when applicable.
230 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
231 (target_map_name_to_register): Call
232 builtin_reg_map_name_to_regnum.
233 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
234 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
235 (builtin_regs_h): Define.
236 (builtin-regs.o): New target.
237 (findvar.o): Add $(builtin_regs_h).
238 * builtin-regs.c, builtin-regs.h: New files.
239 * std-regs.c: New file.
240 Partial fix for PR gdb/251.
242 2002-04-08 Kevin Buettner <kevinb@redhat.com>
244 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
245 it's no longer required.
247 2002-04-08 Andrew Cagney <ac131313@redhat.com>
249 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
251 2002-04-08 Kevin Buettner <kevinb@redhat.com>
253 From Jimi X <jimix@watson.ibm.com>:
254 * rs6000-tdep.c (rs6000_software_single_step): Use
255 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
256 and size. Use target_insert_breakpoint() and
257 target_remove_breakpoint() to insert and remove breakpoints
258 instead of explicit memory reads and writes.
260 2002-04-08 Kevin Buettner <kevinb@redhat.com>
262 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
263 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
264 ELF_OBJECT_FORMAT ifdef.
266 2002-04-08 Kevin Buettner <kevinb@redhat.com>
268 From Jimi X <jimix@watson.ibm.com>:
269 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
271 2002-04-08 Kevin Buettner <kevinb@redhat.com>
273 From Jimi X <jimix@watson.ibm.com>:
274 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
275 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
277 2002-04-07 Mark Kettenis <kettenis@gnu.org>
279 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
280 s/asprintf/xasprintf/.
281 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
283 2002-04-07 Andrew Cagney <ac131313@redhat.com>
285 I believe Jeff Law denies responsability for this one:
286 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
287 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
288 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
289 Work-around for PR gdb/366.
291 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
293 * remote-e7000.c (write_small, e7000_read_inferior_memory,
294 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
295 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
297 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
299 * sh-tdep.c (sh_fp_frame_init_saved_regs,
300 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
303 2002-04-07 Andrew Cagney <ac131313@redhat.com>
305 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
308 2002-04-07 Andrew Cagney <ac131313@redhat.com>
310 * README (Reporting Bugs in GDB): Document the bug web page as the
311 prefered way of submitting bugs.
314 2002-04-06 Andrew Cagney <ac131313@redhat.com>
316 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
318 * gdbarch.h, gdbarch.c: Re-generate.
320 2002-04-07 Andreas Schwab <schwab@suse.de>
322 * m68klinux-nat.c (fill_fpregset): Properly pass address of
323 buffer to regcache_collect.
325 2002-04-06 Andrew Cagney <ac131313@redhat.com>
327 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
328 * gdbarch.c, gdbarch.h: Re-generate.
330 2002-04-06 Andrew Cagney <ac131313@redhat.com>
332 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
333 declaration. Fix -Werror.
335 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
337 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
338 * gdbarch.c: Regenerate.
340 2002-04-05 Michael Snyder <msnyder@redhat.com>
342 * breakpoint.c (clear_command): Rewrite middle section to
343 combine two loops with identical control conditions.
344 Add a cleanup to eliminate a memory leak.
345 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
347 2002-04-05 H.J. Lu (hjl@gnu.org)
349 * solib-svr4.c (bkpt_names): Add "__start".
351 2002-04-04 Andrew Cagney <ac131313@redhat.com>
353 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
354 as test for 64 bit target.
356 2002-04-05 Andrew Cagney <ac131313@redhat.com>
358 * h8500-tdep.c (h8500_write_fp): Delete function.
359 * dwarf2cfi.c (cfi_write_fp): Document as not used.
360 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
361 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
363 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
364 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
366 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
367 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
368 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
369 (d10v_write_fp): Delete function.
370 * inferior.h (write_fp, generic_target_write_fp): Delete
372 * regcache.c (generic_target_write_fp): Delete function.
373 (write_fp): Delete function.
374 * gdbarch.sh (TARGET_WRITE_FP): Delete.
375 * gdbarch.h, gdbarch.c: Regenerate.
376 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
377 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
378 (sparc64_write_fp): Delete declaration.
379 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
380 (h8500_write_fp): Delete declaration.
382 2002-04-04 Andrew Cagney <ac131313@redhat.com>
384 * sparc-tdep.c (sparc64_write_fp): Delete.
385 (sparc_push_dummy_frame): Replace write_fp call with code to store
387 (sparc_gdbarch_init): Do not initialize write_fp.
389 2002-04-05 Kevin Buettner <kevinb@redhat.com>
391 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
394 2002-03-29 Jim Blandy <jimb@redhat.com>
396 * stack.c (get_selected_block): Add new argument `addr_in_block',
397 used to return the exact code address we used to select the block,
399 * blockframe.c (get_frame_block, get_current_block): Same.
400 * frame.h (get_frame_block, get_current_block,
401 get_selected_block): Update declarations.
402 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
403 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
405 2002-04-05 Michael Snyder <msnyder@redhat.com>
407 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
410 2002-04-05 J. Brobecker <brobecker@gnat.com>
412 * utils.c (xfullpath): New function.
413 * defs.h (xfullpath): Add declaration.
414 * source.c (openp): Use xfullpath in place of gdb_realpath to
415 avoid resolving the basename part of filenames when the
416 associated file is a symbolic link. This fixes a potential
417 inconsistency between the filenames known to GDB and the
418 filenames it prints in the annotations.
419 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
420 to be able to match a filename with either the real filename, or
421 the name of any symbolic link to this file.
422 (lookup_partial_symtab): Ditto.
424 2002-04-04 Michael Snyder <msnyder@redhat.com>
426 * breakpoint.c: Add support for hardware breakpoints in overlays.
427 (overlay_events_enabled): New state variable.
428 (insert_breakpoints): Use overlay_events_enabled to decide
429 whether to attempt to set a breakpoint at the overlay load addr.
430 Handle bp_hardware_breakpoint as well as bp_breakpoint.
431 (remove_breakpoint): Use overlay_events_enabled to decide
432 whether breakpoints need to be removed from overlay load addr.
433 Handle bp_hardware_breakpoint as well as bp_breakpoint.
434 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
435 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
436 disable_overlay_breakpoints): Update overlay_events_enabled.
438 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
440 * dwarf2read.c (struct function_range): New.
441 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
442 (check_cu_functions): New.
443 (read_file_scope): Initialize global function lists.
444 Call dwarf_decode_line after processing children.
445 (read_func_scope): Add to global function list.
446 (dwarf_decode_lines): Call check_cu_functions everywhere
447 record_line is called. Call record_line with a linenumber
448 of 0 to mark sequence ends.
450 2002-04-04 Michal Ludvig <mludvig@suse.cz>
452 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
453 change sync with glibc.
455 2002-04-03 Jim Blandy <jimb@redhat.com>
457 * configure.in: Call AC_C_INLINE.
458 * configure: Regenerated.
460 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
462 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
463 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
465 2002-03-31 Mark Kettenis <kettenis@gnu.org>
467 * NEWS: Mention gcore support on FreeBSD/i386.
469 * fbsd-proc.c: New file.
470 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
471 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
473 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
476 2002-03-29 Jim Blandy <jimb@redhat.com>
478 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
479 unescaped newlines in string literals, but newer ones don't. So
482 2002-03-26 Michael Snyder <msnyder@redhat.com>
483 Andrew Cagney <cagney@redhat.com>
485 * cli/cli-dump.c: New file. Dump memory to file,
486 restore file to memory.
487 * cli/cli-dump.h: New file.
488 * Makefile.in: Add rules, dependencies for cli-dump.o.
489 * NEWS: Mention new commands.
491 2002-03-28 Michael Snyder <msnyder@redhat.com>
493 * symfile.c (symbol_file_add): Move test for null symbols to later.
495 2002-03-27 Andrew Cagney <ac131313@redhat.com>
497 From veksler at il.ibm.com:
498 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
499 the xstrduped original path.
502 2002-03-27 Michael Snyder <msnyder@redhat.com>
504 * breakpoint.c (_initialize_breakpoint): Clean up help string.
505 * infcmd.c (_initialize_infcmd): Ditto.
506 * language.c (_initialize_language): Ditto.
507 * symfile.c (_initialize_symfile): Ditto.
508 * top.c (_init_main): Ditto.
509 * cli/cli-cmds.c (init_cli_cmds): Ditto.
511 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
513 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
514 vector registers handling.
515 (skip_prologue): Handle new AltiVec instructions. Fill in new
516 fields of frame data.
517 (frame_get_saved_regs): Fill in information for AltiVec registers.
519 2002-03-27 Jim Blandy <jimb@redhat.com>
521 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
522 a function; leave this macro here to invoke that function.
523 (symbol_init_mangled_name): Declaration for that function.
524 * symtab.c (symbol_init_mangled_name): New function.
526 2002-03-27 Andrew Cagney <ac131313@redhat.com>
528 * valarith.c: Replace strerror with safe_strerror.
529 * tracepoint.c: Ditto.
535 2002-03-27 Andreas Schwab <schwab@suse.de>
537 * event-top.c (command_line_handler): Remove useless if.
539 2002-03-27 Andreas Jaeger <aj@suse.de>
541 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
544 2002-03-27 Michal Ludvig <mludvig@suse.cz>
546 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
547 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
548 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
549 (x86_64_linux_dr_get_status, supply_gregset),
550 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
551 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
552 (x86_64_register_info_table): Add.
553 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
554 (x86_64_register_raw_size, x86_64_register_virtual_type),
555 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
556 general x86_64_register_info_table.
557 (i386_gdbarch_init): gdbarch_register_bytes is now set
558 dynamicaly during initialization.
559 * regformats/reg-x86-64.dat: Synced with changes to registers above.
560 * gdbserver/linux-x86-64-low.c: Ditto.
562 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
564 * gdbserver/server.c (main): Call target_signal_to_host_p
565 and target_signal_to_host on signals received from the remote.
566 * gdbserver/remote-utils.c (prepare_resume_reply): Call
567 target_signal_from_host on signals sent to the remote.
568 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
569 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
571 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
573 * signals/signals.c: Include "server.h" in gdbserver build.
574 (target_signal_from_name): Don't use STREQ.
575 (_initialize_signals): Likewise. Don't include function in
578 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
580 * signals.c: Moved to...
581 * signals/signals.c: Here.
582 * Makefile (signals.o): Update.
584 2002-03-26 Jeff Law (law@redhat.com)
586 * somread.c (som_symtab_read): Remove some commented out code and
587 updated related comments. Do not set the minimal symbol table to
588 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
589 in a dynamic executable.
590 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
591 where we are unable to find the minimal symbol for the given
594 2002-03-25 Jeff Law (law@redhat.com)
596 * linux-proc.c (read_mapping): Scan up to end of line for filename.
598 2002-03-25 Michal Ludvig <mludvig@suse.cz>
600 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
602 2002-03-23 Andrew Cagney <ac131313@redhat.com>
604 * command.h: Update copyright.
605 (struct cmd_list_element): Replace definition with opaque
607 (enum cmd_types): Document that it will eventually be moved to
609 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
610 (MALLOCED_REPLACEMENT): Delete macro.
611 * Makefile.in (cli_decode_h): Add $(command_h).
612 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
613 * top.c: Include "cli/cli-decode.h".
614 * completer.c: Include "cli/cli-decode.h".
615 * maint.c: Include "cli/cli-decode.h".
616 * cli/cli-decode.h: Include "command.h".
617 (enum command_class): Delete.
618 (enum cmd_types): Comment out.
619 (enum cmd_auto_boolean): Delete.
620 (enum var_types): Delete.
622 2002-03-23 Andrew Cagney <ac131313@redhat.com>
624 * cli/cli-decode.c: Include "gdb_assert.h".
625 (add_set_or_show_cmd): New static function.
626 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
627 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
628 all fields, such as func, from the set command.
630 2002-03-23 Andrew Cagney <ac131313@redhat.com>
632 * MAINTAINERS (sh-elf): Change warning flag to -w.
634 2002-03-23 Andrew Cagney <cagney@redhat.com>
636 * defs.h (error): Add printf format attribute.
637 * thread-db.c (thread_from_lwp): Fix error format string.
638 * stack.c (parse_frame_specification): Ditto.
639 * cli/cli-decode.c (undef_cmd_error): Ditto.
640 * scm-lang.c (scm_lookup_name): Ditto.
641 * tracepoint.c (trace_error): Ditto.
642 * remote-utils.c (usage): Ditto.
643 * remote.c (compare_sections_command): Ditto.
646 2002-03-22 Andrew Cagney <ac131313@redhat.com>
648 * gdbtypes.c (append_composite_type_field): New function.
649 (init_composite_type): New function.
650 * gdbtypes.h (append_composite_type_field): Declare.
651 (init_composite_type): Ditto.
653 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
655 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
657 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
658 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
659 structure returning convention for SYSV ABI case, but not
660 for GNU/Linux, FreeBSD, or NetBSD.
662 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
664 * symtab.h (lookup_block_symbol): Add mangled_name argument
667 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
668 with new mangled_name argument.
669 * linespec.c (decode_line_1): Likewise.
670 * valops (value_of_this): Likewise.
671 * symtab.c (lookup_transparent_type): Likewise.
672 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
673 (lookup_symbol): If we are given a mangled name, pass it down
674 to lookup_symbol_aux.
675 (lookup_block_symbol): If we are given a mangled name to check
676 against, only return symbols which match it.
678 2002-03-22 Christopher Faylor <cgf@redhat.com>
680 * win32-nat.c (child_create_inferior): Check for proper shell to use
681 here, in case the user changes it on the fly.
682 (_initialize_inftarg): Remove shell path considerations.
684 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
686 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
687 for gdbarch_max_register_raw_size and max_register_virtual_size.
688 Adjust copyright year.
690 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
692 * dbxread.c (process_one_symbol): Extend the first N_SLINE
693 in a function to cover the entire beginning of the function
694 as well if it does not already.
696 2002-03-21 Tom Rix <trix@redhat.com>
698 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
699 (rs6000_ptrace64): Renamed from ptrace64.
701 2002-03-20 Martin M. Hunt <hunt@redhat.com>
703 * gdbserver/remote-utils.c (remote_open): Don't call
704 getprotobyname, we're all using TCP here so just use
706 * gdbserver/gdbreplay.c (remote_open): Ditto.
708 2002-03-20 Martin M. Hunt <hunt@redhat.com>
710 * regcache.c (_initialize_regcache): No need to call
711 build_regcache() at this time; it gets called whenever
714 2002-03-20 David O'Brien <obrien@FreeBSD.org>
716 * sparc-nat.c: Include sys/param.h where possible.
718 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
721 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
722 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
723 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
725 * stabsread.c (rs6000_builtin_type): Likewise.
726 (read_sun_floating_type): Likewise.
728 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
730 * stabsread.c (read_member_functions): Remove skip code for duplicate
731 constructor/destructor methods. Use standard parsing for these
732 methods and just do not chain them to the list of methods after
735 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
737 * coffread.c: Remove redundant static declarations. Replace
738 occurrences of `PTR' with `void *'.
739 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
740 * top.h (quit_cover): Likewise.
741 * defs.h (catch_errors): Likewise.
743 2002-03-18 Andrew Cagney <ac131313@redhat.com>
745 * defs.h (XMALLOC): Define.
746 * gdb-events.sh (XMALLOC): Delete macro.
747 * gdb-events.c, gdb-events.h: Regenerate.
748 * gdbarch.sh (XMALLOC): Delete macro.
749 * gdbarch.c: Regenerate.
750 * serial.c (XMALLOC): Delete macro.
751 * ui-file.c (XMALLOC): Ditto.
752 * ser-unix.h (XMALLOC): Ditto.
753 * sh-tdep.c (XMALLOC): Ditto.
754 * ui-out.c (XMALLOC): Ditto.
755 * utils.c (XMALLOC): Ditto.
756 * i386-tdep.c (XMALLOC): Ditto.
757 * gdb-events.c (XMALLOC): Ditto.
758 * d10v-tdep.c (XMALLOC): Ditto.
759 * cli-out.c (XMALLOC): Ditto.
761 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
762 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
763 * ui-file.c, ui-out.c: Ditto.
765 2002-03-18 Andrew Cagney <ac131313@redhat.com>
767 * command.h (struct cmd_list_element): Add field context.
768 (set_cmd_context, get_cmd_context): Declare.
769 * cli/cli-decode.h: Ditto.
770 * cli/cli-decode.c (get_cmd_context): New function.
771 (set_cmd_context): New function.
772 (add_cmd): Initialize context.
773 Part of fixing PR gdb/145 and PR gdb/146.
775 2002-03-17 Andrew Cagney <ac131313@redhat.com>
777 * cli/cli-decode.c (cmd_type): New function.
778 * command.h (cmd_type): Declare.
779 * infrun.c (set_schedlock_func): Call function cmd_type.
780 * kod.c (kod_set_os): Call cmd_type.
781 * cris-tdep.c (cris_version_update): Use function cmd_type.
782 (cris_mode_update, cris_abi_update): Ditto.
784 * command.h: (execute_cmd_post_hook): Declare.
785 (execute_cmd_pre_hook): Declare.
786 * cli/cli-script.c (clear_hook_in_cleanup): New function.
787 (execute_cmd_post_hook, execute_cmd_pre_hook): New
788 functions. Execute pre/post hook while ensuring that afterwords
790 * top.c (execute_command): Use execute_cmd_post_hook, and
791 execute_cmd_pre_hook to execute pre/post commands.
792 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
794 (hook_stop_stub): Call execute_cmd_pre_hook.
796 2002-03-17 Andrew Cagney <ac131313@redhat.com>
798 * kod.c (kod_set_os): Revert previous change. Is called by ``info
799 set'' and this leads to a core dump. Move xstrdup of
800 operating_system to after check that it is not NULL.
802 2002-03-17 Andrew Cagney <ac131313@redhat.com>
804 * kod.c (kod_set_os): Remove unnecessary check that
805 ``command->type'' is set_cmd.
807 * valprint.c (set_input_radix): Use input_radix.
808 (set_output_radix): Use output_radix.
809 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
812 2002-03-16 Andrew Cagney <ac131313@redhat.com>
814 * value.h (struct value): Delete field ``substring_addr''. Change
815 aligner fields to force_doublest_align, force_longest_align,
816 force_core_addr_align and force_pointer_aligh.
818 * value.h (struct value): Fix typo in above change.
820 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
822 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
823 to fix internal_error from ``maintenance print architecture''.
825 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
827 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
828 for gcc versions after gcc-2.8.1.
830 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
832 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
833 for method resolution. Restore adjustment of ``this'' pointer after
834 calling value_struct_elt, which was accidentally removed during the
837 2002-03-15 Andrew Cagney <ac131313@redhat.com>
839 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
841 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
843 * value.h (value_of_register): Update.
845 2002-03-14 Richard Henderson <rth@redhat.com>
847 * configure.in: Detect declaration for canonicalize_file_name.
848 * utils.c (canonicalize_file_name): Declare, if needed.
849 (gdb_realpath): Prefer realpath if available and usable.
850 * config.in, configure: Rebuild.
852 2002-03-14 Richard Henderson <rth@redhat.com>
854 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
855 a constant array bound.
857 * MAINTAINERS: Add myself to write-after-approval.
859 2002-03-14 Michael Snyder <msnyder@redhat.com>
861 * symfile.c (syms_from_objfile): Return immediately if no syms.
862 (symbol_file_add): Return immediately if no syms.
863 (find_sym_fns): Return immediately if no syms.
865 2002-03-13 Michal Ludvig <mludvig@suse.cz>
867 * gdbserver/remote-util.c (remote_open): Print remote-side's
868 IP address when remote debugging over the network.
870 2002-03-12 David O'Brien <obrien@FreeBSD.org>
872 * config/sparc/fbsd.mh: Fix copyright.
873 * config/sparc/fbsd.mt: Likewise.
875 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
877 * MAINTAINERS: Fix typo in name of gdb warnings option.
878 (x86-64): Fix formating so that this can be parsed by awk.
880 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
882 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
883 * defs.h: Include "gdb/signals.h".
884 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
886 2002-03-10 Michal Ludvig <mludvig@suse.cz>
888 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
889 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
892 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
893 Don Howard <dhoward@redhat.com>
895 * mips-tdep.c (ST0_FR): Define.
896 (mips2_fp_compat): New function, temporarily disabled.
897 (mips_read_fp_register_single): New function.
898 (mips_read_fp_register_double): New function.
899 (mips_print_register): Use them.
900 (do_fp_register_row): Likewise.
902 2002-03-09 Andrew Cagney <ac131313@redhat.com>
904 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
907 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
909 * stabsread.c (read_member_functions): Fix is_stub test for
910 static member functions, improve comment.
912 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
914 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
915 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
916 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
917 commands that set boolean values.
918 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
919 (arm_rdi_resume): Always initialize PC.
920 (arm_rdi_open): Don't use rslt as a boolean.
921 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
922 (arm_rdi_fetch_registers, arm_rdi_store_registers)
923 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
924 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
926 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
928 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
929 * configure: Rebuilt.
931 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
933 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
934 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
936 2002-03-06 Andrew Cagney <ac131313@redhat.com>
938 * cli/cli-decode.c (set_cmd_completer): New function.
939 * command.h (set_cmd_completer): Declare.
940 * cli/cli-decode.h (set_cmd_completer): Ditto.
942 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
943 * cli/cli-cmds.c (init_cli_cmds): Ditto.
944 * win32-nat.c (_initialize_inftarg): Ditto.
945 * remote-rdi.c (_initialize_remote_rdi): Ditto.
946 * proc-api.c (_initialize_proc_api): Ditto.
947 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
948 * source.c (_initialize_source): Ditto.
949 * exec.c (_initialize_exec): Ditto.
950 * solib.c (_initialize_solib): Ditto.
951 * top.c (init_main): Ditto.
952 * tracepoint.c (_initialize_tracepoint): Ditto.
953 * symfile.c (_initialize_symfile): Ditto.
954 * printcmd.c (_initialize_printcmd): Ditto.
955 * infcmd.c (_initialize_infcmd): Ditto.
956 * corefile.c (_initialize_core): Ditto.
958 2002-03-05 Andrew Cagney <ac131313@redhat.com>
960 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
962 2002-03-05 Andrew Cagney <ac131313@redhat.com>
964 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
966 2002-03-05 Andrew Cagney <ac131313@redhat.com>
968 * NEWS: Update headings, 5.2 has branched.
970 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
972 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
973 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
974 (register_addr, REGISTER_RAW_SIZE): Likewise.
975 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
976 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
978 2002-03-03 Michal Ludvig <mludvig@suse.cz>
980 * MAINTAINERS (x86-64): Add myself.
981 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
982 changed value_ptr -> struct value *
984 2002-03-01 David O'Brien <obrien@FreeBSD.org>
986 * configure.host (sparc64-*-freebsd): Add.
987 * configure.tgt: Likewise.
988 * config/sparc/fbsd.mh: New file.
989 * config/sparc/fbsd.mt: Likewise.
990 * config/sparc/nm-fbsd.h: Likewise.
991 * config/sparc/tm-fbsd.h: Likewise.
993 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
995 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
996 regformats/reg-s390x.dat.
998 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1000 * utils.c: Add FIXME explaining true/false problem.
1002 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1004 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1006 2002-02-28 Michael Chastain <mec@shout.net>
1008 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1010 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1012 * gdbserver/linux-s390-low.c: New file.
1013 * regformats/reg-s390.dat: New file.
1014 * regformats/reg-s390x.dat: New file.
1015 * gdbserver/configure.srv: Add S/390.
1016 * gdbserver/Makefile.in: Add S/390.
1017 * configure.tgt: Enable gdbserver for S/390.
1019 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1021 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1022 first line of the doc string for "info dos", except at the end of
1023 the sentence, since the short help stops at the first period.
1025 2002-02-28 Jason Merrill <jason@redhat.com>
1027 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1029 2002-02-27 Fred Fish <fnf@redhat.com>
1031 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1032 comment (dumy -> dummy).
1034 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1036 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1038 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1040 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1042 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1044 * gdbserver/acconfig.h: New file.
1045 * gdbserver/i387-fp.c: New file.
1046 * gdbserver/i387-fp.h: New file.
1047 * gdbserver/linux-x86-64.c: New file.
1048 * regformats/reg-x86-64.dat: New file.
1049 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1050 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1051 * gdbserver/configure.in: Add support for regsets.
1052 * gdbserver/config.in: Regenerate.
1053 * gdbserver/configure: Regenerate.
1054 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1055 * gdbserver/linux-low.h: New file.
1056 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1058 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1059 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1060 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1061 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1062 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1063 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1064 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1065 "i387-fp.h". Add PTRACE_GETREGS and friends.
1066 * gdbserver/regcache.c (supply_register): New function.
1067 (supply_register_by_name): New function.
1068 (collect_register): New function.
1069 (collect_register_by_name): New function.
1071 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1073 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1074 (config.status): Add configure.srv dependency.
1075 (server_h): Add config.h dependency.
1077 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1079 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1080 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1081 * gdbserver/configure.srv: Change i386-*-linux* to use
1084 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1086 * x86-64-tdep.c: Re-indent. Update copyright date.
1088 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1090 From Michal Ludvig <mludvig@suse.cz>:
1091 * x86-64-tdep.c (value.h): Delete.
1092 (gdb_assert.h): Include.
1093 (x86_64_register_convert_to_virtual,
1094 x86_64_register_convert_to_raw ): Add check which lets only
1095 floating-point values to be converted.
1096 (value_push): Delete.
1097 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1098 (i386_gdbarch_init): Number of register_bytes fixed.
1100 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1102 * MAINTAINERS: Add x86-64 target.
1104 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1106 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1107 * osfsolib.c (solib_map_sections): Ditto.
1108 * irix5-nat.c (solib_map_sections): Ditto.
1109 * corelow.c (gdb_check_format): Ditto.
1110 * symfile.c (symfile_bfd_open): Ditto.
1111 * solib.c (solib_map_sections): Ditto.
1114 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1116 * remote.c (_initialize_remote): By default, disable ``e'' and
1117 ``E'' step out-of-range packets.
1119 2002-02-26 Andreas Schwab <schwab@suse.de>
1121 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1122 m68k_linux_frame_saved_pc.
1123 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1125 (SIGCONTEXT_PC_OFFSET): Remove.
1126 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1127 m68k_linux_sigtramp_saved_pc): New functions.
1128 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1129 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1130 (UCONTEXT_PC_OFFSET): Define.
1131 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1132 non-RT and RT signal trampolines.
1134 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1136 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1137 (TARGET_NBPG, STACK_END_ADDR): Delete
1138 (VARIABLES_INSIDE_BLOCK): Delete.
1140 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1142 * utils.c (perror_with_name): Make string parameter constant.
1143 (print_sys_errmsg): Ditto.
1145 * defs.h (perror_with_name): Update.
1146 (print_sys_errmsg): Update.
1149 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1151 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1152 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1154 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1156 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1157 if it already matches the current architecture from the exec file.
1158 Include arch-utils.h for gdbarch_info_init prototype.
1159 * Makefile.in (rs6000-nat.o): Update dependencies.
1161 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1163 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1164 list of exported variables.
1166 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1168 * gdbserver/configure.srv: New file.
1169 * gdbserver/configure.in: Use configure.srv instead
1170 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1172 * gdbserver/configure: Regenerated.
1173 * gdbserver/terminal.h: New file.
1174 * gdbserver/Makefile.in: Update for configure changes. Remove
1175 more unneeded include paths.
1177 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1179 From wiz at danbala:
1180 * config/sparc/tm-sp64.h: Fix grammar and typos.
1183 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1185 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1186 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1187 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1188 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1189 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1190 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1191 * s390-tdep.c: Ditto.
1192 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1193 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1194 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1195 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1196 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1197 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1198 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1199 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1200 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1201 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1204 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1206 * lin-thread.c: Delete file.
1207 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1208 to gdb_proc_service.h.
1209 * configure: Re-generate.
1211 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1212 * serial.c (serial_open): Delete check for "ocd".
1215 * Makefile.in (linux-thread.o): Delete target.
1216 * linux-thread.c: Delete file.
1218 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1219 renamed SH files to be consistent.
1221 * symtab.c (sort_search_symbols): Use xfree.
1223 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1225 * arm-linux-tdep.c (arm_linux_init_abi): Register
1226 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1227 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1228 definition with undef, since we don't want the sysvr4 definition.
1229 (SKIP_TRAMPOLINE_CODE): Likewise.
1231 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1233 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1235 * configure.in: (AC_CHECK_FUNCS) Added test for
1236 canonicalize_file_name Regenerated.
1237 * config.in, configure: Regenerated.
1238 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1239 defined use canonicalize_file_name.
1241 2002-02-23 Michael Chastain <mec@shout.net>
1243 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1245 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1247 * README: Remove references to cygnus.com.
1248 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1249 dot com'' form. Remove references to cygnus.com and sourceware.
1251 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1253 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1254 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1255 1003.1-2001 no longer allows "head -1".
1256 * gdb/Makefile.in (version.c): Likewise.
1257 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1258 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1259 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1261 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1263 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1264 * command.h (cmd_cfunc_eq): Declare.
1265 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1267 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1268 ``struct cmd_list_element *''.
1269 * cli/cli-cmds.c (is_complete_command): Update. Use
1271 * top.c (execute_command): Pass the command to
1272 is_complete_command.
1273 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1275 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1277 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1278 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1279 architecture defines.
1280 * s390-tdep.c (s390_gdbarch_init): Likewise.
1282 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1284 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1285 (arm_linux_push_arguments): Likewise.
1286 (arm_linux_init_abi): Register them. Also register linux-specific
1288 (find_minsym_and_objfile): Use strcmp, not STREQ.
1289 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1290 (arm_linux_call_dummy_words): Delete declaration.
1291 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1292 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1294 (LOWEST_PC): Delete.
1296 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1298 * maint.c (print_section_info): Do not prepend `0x' to filepos
1299 output, it will be handled by local_hex_string_custom.
1301 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1303 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1304 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1305 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1307 2002-02-22 Jim Blandy <jimb@redhat.com>
1309 Indicate that the bcache functions don't change the strings
1311 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1312 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1314 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1316 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1318 2002-02-21 Christopher Faylor <cgf@redhat.com>
1320 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1321 find the complete path to a loaded DLL.
1323 2002-02-21 Fred Fish <fnf@redhat.com>
1325 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1326 that marks the end of the range of a function, enter a line number
1327 entry that has a line number of zero and a PC offset that matches
1328 the end of the function. This starts a range of PC's for which no
1329 line number information is known.
1330 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1331 PC's for which no line number info is found (line number is zero)
1332 then we didn't find any valid line information.
1333 * symtab.h: Document use of zero line number entry.
1335 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
1337 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1338 (have_ptrace_getvrregs): Define for run time checks.
1339 (gdb_vrregset_t): New type for Altivec register handling.
1340 (fetch_register, store_register): Fetch/store altivec register
1342 (fetch_altivec_register, store_altivec_register): New functions.
1343 (supply_vrregset, fill_vrregset): New functions.
1344 (fetch_altivec_registers, store_altivec_registers): New functions.
1345 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1348 2002-02-21 Jiri Smid <smid@suse.cz>
1350 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1352 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1354 * Makefile.in (armnbsd-nat.o): Update dependencies.
1355 * armnbsd-nat.c (supply_gregset): New function. Common code to
1356 supply the integer register set.
1357 (supply_fparegset): New function. Similar for FPA registers.
1358 (fetch_regs, fetch_fp_regs): Use them.
1359 (fetch_core_registers): Likewise.
1360 (fetch_elfcore_registers): New function.
1361 (arm_netbsd_elfcore_fns): New core-file type specification.
1362 (_initialize_arm_netbsd_nat): Register it.
1364 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1366 * armnbsd-nat.c: Include gdbcore.h.
1367 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1368 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1369 'void' to declaration, to shut up ARI.
1370 (fetch_core_registers): Make static. Rewrite using supply_register.
1371 (arm_netbsd_core_fns): New core-file type specification.
1372 (_initialize_arm_netbsd_nat): New function.
1374 2002-02-21 Christopher Faylor <cgf@redhat.com>
1376 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1379 2002-02-20 Christopher Faylor <cgf@redhat.com>
1381 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1384 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1386 * jv-exp.y (parse_number): Change type of implicit longs
1387 to builtin_type_uint64.
1389 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1391 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1392 to be an integer instead of a `union wait'.
1394 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1396 * mips-linux-nat.c: Call the operating system GNU/Linux.
1397 * mips-linux-tdep.c: Likewise.
1398 * mips-tdep.c: Likewise.
1400 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1403 * jv-exp.y (parse_number): Handle 64-bit integers.
1405 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1407 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1408 AC_STDC_HEADERS to AC_HEADER_STDC.
1409 * gdbserver/configure: Regenerated.
1411 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1413 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1415 * sparc-tdep.c (get_longjmp_target): Likewise.
1417 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1419 * News: Add news about ARM and Multi-arch. Mention the new target
1422 2002-02-19 Jim Blandy <jimb@redhat.com>
1424 * stabsread.c (error_type_complaint): Improve error message.
1426 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
1428 * gdbserver/README: Update documentation.
1429 * gdbserver/configure.in: Update configury to match documentation.
1430 * gdbserver/Makefile.in: Likewise.
1431 * gdbserver/configure: Regenerated.
1432 * gdbserver/aclocal.m4: New file, generated by aclocal.
1433 * gdbserver/config.in: New file, generated by autoheader.
1435 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1437 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1440 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1442 * arm-tdep.h (enum arm_float_model): New enum.
1443 (struct gdbarch_tdep): Add fp_model.
1444 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1445 up floating-point conversions until we know the floating-point model
1446 in use by the inferior. Don't complain about being unable to
1447 determine the ABI of the inferior when we don't have one.
1448 (arm_extract_return_value): Support different floating-point models.
1449 (arm_store_return_value): Likewise.
1450 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
1452 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1454 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1456 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1457 of ``current_gdbarch''.
1459 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1461 * armnbsd-nat.c : ANSIfy all function declarations.
1462 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1463 (fetch_inferior_registers): Re-implement in terms of above.
1464 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1465 (store_inferior_registers): Re-implement in terms of above.
1467 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1469 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
1471 * arm-linux-tdep.c: Likewise.
1472 * config/arm/tm-linux.h: Likewise.
1474 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1476 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1477 * config/arm/nbsd.mt (TM_FILE): Delete.
1478 * config/arm/tm-nbsd.h: Delete.
1480 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1482 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1483 Initialize CALL_DUMMY_LENGTH.
1485 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1487 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1489 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
1490 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
1491 defines one thing and that is incorrect for this port.
1492 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1494 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1496 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1498 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1500 * win32-nat.c (display_selector): New function. Displays information
1501 about the information returned by GetThreadSelectorEntry API function.
1502 (display_selectors): New function. Displays the infomation of
1503 the selector given as argument, or of CS, DS ans FS selectors
1504 if no argument is given.
1505 ( _initialize_inftarg): Add "w32" as info prefix command.
1506 Add "info w32 selector" as command calling display_selectors.
1508 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1510 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1511 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1514 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1516 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1518 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1520 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1521 (arm_fix_call_dummy): Call it.
1522 (arm_call_dummy_breakpoint_offset): Delete.
1523 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1524 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1526 2002-02-18 Andrew Cagney <ac131313@redhat.com>
1528 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1529 Default to func_frame_chain_valid.
1530 * gdbarch.h, gdbarch.c: Re-generate.
1531 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1533 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
1535 * ppc-linux-nat.c: Update copyright.
1536 (fetch_register, store_register): Add tid parameter, don't compute
1538 (fetch_ppc_registers, store_ppc_registers): Add tid
1539 parameter. Pass it along to callees.
1540 (fetch_inferior_registers, store_inferior_registers): Compute tid
1541 here, and pass it to calleed functions.
1542 (fill_gregset, supply_fpregset): Clean up formatting.
1544 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1546 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1547 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1549 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1551 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1552 * gdbarch.c gdbarch.h: Regenerate.
1553 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1555 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1556 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1557 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1559 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1560 * arm-tdep.c (arm_get_longjmp_target): New function.
1561 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1562 this to a positive value register arm_get_longjmp_target as the
1564 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1565 (arm_linux_init_abi): Set up longjmp description in tdep.
1566 * armnbsd-nat.c (get_longjmp_target): Delete.
1567 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1568 description in tdep.
1569 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1570 (get_longjmp_target): Delete declaration.
1571 (GET_LONGJMP_TARGET): Delete.
1572 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1573 (GET_LONGJMP_TARGET): Delete.
1575 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1577 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1578 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1579 of ``current_gdbarch''.
1581 2002-02-17 Tom Tromey <tromey@redhat.com>
1583 * cli/cli-cmds.c (compare_strings): New function.
1584 (complete_command): Only print each unique item once.
1585 * completer.h (complete_line): Declare.
1586 * completer.c (complete_line): New function.
1587 (line_completion_function): Use it.
1589 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1591 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1592 * gdbarch.h, gdbarch.c: Re-generate.
1594 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1596 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1598 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1600 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1601 * valops.c (value_arg_coerce): Don't take the address of a reference
1602 to convert an argument to a reference.
1604 2002-02-15 Christopher Faylor <cgf@redhat.com>
1606 * win32-nat.c (get_image_name): New function.
1607 (handle_load_dll): Use get_image_name function.
1608 (get_child_debug_event): Avoid registering debug events until possibly
1609 execed process is started.
1610 (child_create_inferior): Allow invocation via shell so that command
1611 line redirection, etc. works ok.
1612 (_initialize_inftarg): Add new command: "set shell" to control whether
1613 a shell is used to start a process.
1615 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1617 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1618 instead of find_register_by_number.
1619 (cannot_store_register): Likewise.
1621 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1623 * dwarf2read.c: Replace fprintf (stderr, ...) by
1624 fprintf_unfiltered (gdb_stderr, ...).
1626 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1628 * gdbserver/gdbserver.1: Document --attach.
1630 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1632 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1634 * arm-tdep.c (arm_default_arm_le_breakpoint)
1635 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1636 (arm_default_thumb_be_breakpoint): New. Initialize them from
1637 traditional breakpoint defines.
1638 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1639 (arm_gdbarch_init): Initialize new breakpoint variables.
1640 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1641 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1642 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1643 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1645 (arm_netbsd_init_abi_common): ... here; new function.
1646 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1647 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1648 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1649 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1651 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1653 * arm-tdep.h (enum arm_abi): New enum.
1654 (struct gdbarch_tdep): New structure.
1655 (LOWEST_PC): Provide a default.
1656 (arm_gdbarch_register_os_abi): Declare new function.
1657 * arm-tdep.c (arm_abi_names): New array.
1658 (process_note_abi_tag_sections): New function.
1659 (get_elfosabi): New function.
1660 (arm_gdbarch_register_os_abi): New function.
1661 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1662 support for that ABI has been built in, then call the appropriate
1663 configuration routine. Use gdbarch_num_regs() to get the number
1665 (arm_dump_tdep): New function.
1666 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1667 place-holder functions.
1668 (_initialize_arm_tdep): Register them.
1669 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1671 * armnbsd-tdep.c: New file.
1672 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1673 * config/arm/nbsd.mt (TDEPFILES): Add it.
1674 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1676 * armnbsd-nat.c: Include regcache.h.
1677 * Makefile.in (armnbsd-nat.o): Update dependency list.
1679 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1681 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1683 * gdbserver/Makefile.in: Fix typos in target rules.
1685 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1687 Fix part of PR gdb/267.
1688 * linespec.c (find_methods): Handle constructors specially for now.
1690 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1692 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1694 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1695 standard_coerce_float_to_double().
1697 2002-02-14 Christopher Faylor <cgf@redhat.com>
1699 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1702 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1704 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1705 find_variant_by_name, because it confuses the multiarch
1706 framework. Return NULL if there isn't an architecture with the
1707 user supplied name, instead of forcing a different one without
1708 recording the change with the multiarch machinery.
1709 (find_variant_by_name): Delete.
1711 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1713 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1714 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1716 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1718 * stack.c (print_frame_info_base): When calling
1719 print_frame_info_listing_hook, set current_source_symtab.
1721 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1723 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1724 and remove unused $(INCLUDE_DIR).
1725 Add regcache.c to OBS.
1726 Add generated register protocol files to clean target.
1727 Update dependencies for new objects, obsolete old target code.
1729 * gdbserver/linux-low.c: Remove all platform-specific code to
1730 new files. Remove various dead code. Update to use regcache
1732 * gdbserver/remote-utils.c (fromhex): Add return statement
1734 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1736 (input_interrupt): Add integer parameter to match prototype
1737 of a signal handler.
1738 (outreg): Use register_data ().
1739 (prepare_resume_reply): Use gdbserver_expedite_regs.
1740 * gdbserver/server.c (main): Dynamically allocate own_buf because
1741 PBUFSIZ is no longer constant. Use registers_to_string () and
1742 registers_from_string ().
1743 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1744 for error (), fatal (), and warning (). Update definition of
1745 PBUFSIZ to use regcache functionality. Add include guard.
1746 * gdbserver/utils.c (fatal): Add missing ``const''.
1747 (warning): New function.
1749 * regformats/regdat.sh: Include "regcache.h" in generated files.
1750 Provide init_registers () function.
1751 * regformats/regdef.h: Add prototype for set_register_cache ().
1754 * gdbserver/linux-arm-low.c: New file.
1755 * gdbserver/linux-i386-low.c: New file.
1756 * gdbserver/linux-ia64-low.c: New file.
1757 * gdbserver/linux-m68k-low.c: New file.
1758 * gdbserver/linux-mips-low.c: New file.
1759 * gdbserver/linux-ppc-low.c: New file.
1760 * gdbserver/linux-sh-low.c: New file.
1762 * gdbserver/regcache.c: New file.
1763 * gdbserver/regcache.h: New file.
1765 * gdbserver/low-linux.c: Removed obsolete file.
1767 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1769 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1770 * config/i386/linux.mt: Likewise.
1771 * config/ia64/linux.mt: Likewise.
1772 * config/m68k/linux.mh: Likewise.
1773 * config/powerpc/linux.mh: Likewise.
1774 * config/mips/linux.mt: Likewise.
1776 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1778 * config/i386/i386lynx.mh: Mark gdbserver variables
1779 as (currently) obsolete for this target.
1780 * config/i386/nbsd.mt: Likewise.
1781 * config/i386/nbsdelf.mt: Likewise.
1782 * config/m32r/m32r.mt: Likewise.
1783 * config/m68k/m68klynx.mh: Likewise.
1784 * config/m68k/nbsd.mt: Likewise.
1785 * config/m68k/sun3os4.mh: Likewise.
1786 * config/mips/vr5000.mt: Likewise.
1787 * config/ns32k/nbsd.mt: Likewise.
1788 * config/pa/hppabsd.mh: Likewise.
1789 * config/pa/hppaosf.mh: Likewise.
1790 * config/powerpc/nbsd.mt: Likewise.
1791 * config/rs6000/rs6000lynx.mh: Likewise.
1792 * config/s390/s390.mt: Likewise.
1793 * config/s390/s390x.mt: Likewise.
1794 * config/sparc/sparclynx.mh: Likewise.
1795 * config/sparc/sun4os4.mh: Likewise.
1796 * config/i386/x86-64linux.mt: Likewise.
1797 * config/sparc/linux.mh: Likewise.
1799 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1801 * configure.tgt: Configure gdbserver only for known working
1802 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1803 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1804 SUBDIRS if it is configured. Update comment for ${nativefile}.
1805 * configure: Regenerated.
1807 2002-02-13 Michael Snyder <msnyder@redhat.com>
1809 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
1811 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1812 (default_gcore_mach): Just return 0, work around a problem in bfd.
1813 (default_gcore_target): OK to return NULL if exec_bfd is null.
1814 (make_mem_sec): Use a cast, avoid a warning.
1816 * procfs.c (find_memory_regions_callback): Use a cast instead of
1817 calling host_pointer_to_address (which complains if
1818 sizeof (host pointer) != sizeof (target pointer)).
1819 (procfs_make_note_section): Avoid overflow in psargs string.
1821 * procfs.c (procfs_make_note_section): Make the default
1822 implementation return an error.
1824 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1826 * procfs.c (procfs_make_note_section): Provide a default definition
1827 (for alpha-dec-osf4.0f). Fix typos.
1829 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1831 * linux-proc.c: Add include of regcache.h.
1832 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1834 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1836 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1837 * memattr.c (create_mem_region): Disallow useless empty region.
1838 Regions are half-open intervals, so allow [A..B) [B..C) as
1841 2002-02-13 Michael Chastain <mec@shout.net>
1843 * defs.h: Kill CONST_PTR.
1844 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1845 * c-lang.c (c_builtin_types): Likewise.
1846 * ch-lang.c (ch_builtin_types): Likewise.
1847 * f-lang.c (f_builtin_types): Likewise.
1848 * language.c (unknown_builtin_types): Likewise.
1849 * m2-lang.c (m2_builtin_types): Likewise.
1850 * p-lang.c (pascal_builtin_types): Likewise.
1851 * scm-lang.c (c_builtin_types): Likewise.
1853 2002-02-13 Keith Seitz <keiths@redhat.com>
1855 * arm-tdep.h (arm_get_next_pc): Add declaration.
1857 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1859 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1860 with other related struct-returning functions.
1861 (arm_extract_struct_value_address): New function.
1862 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1863 initialize float_format, double_format and long_double_format as
1864 appropriate to the endianness of the target.
1865 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1866 (arm_use_struct_convention): Delete declaration.
1867 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1869 2002-02-13 Keith Seitz <keiths@redhat.com>
1871 * defs.h (core_addr_to_string_nz): New function.
1873 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1875 Apply missing bits of 2002-01-15 patch.
1876 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1877 (fill_fpregset): Use i387_fill_fsave.
1879 2002-02-12 Keith Seitz <keiths@redhat.com>
1881 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1882 (core_addr_to_string_nz): New function.
1884 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1886 * arm-linux-nat.c: Really include arm-tdep.h.
1887 * config/arm/tm-linux.h (struct type, struct value): Declare.
1889 2002-02-11 Michael Snyder <msnyder@redhat.com>
1891 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1892 (gcore section): Ifdef for Solaris and Unixware only.
1893 (procfs_do_thread_registers): Unixware needs one lwpstatus
1894 per thread (not one prstatus or pstatus).
1895 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1896 not over all gdb threads. For unixware, call elfcore_write_pstatus
1897 once before iterating over threads.
1899 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1901 * arm-tdep.h: New file.
1902 * arm-tdep.c: Include arm-tdep.h.
1903 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1904 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1905 (arm_print_float_info, arm_register_type, convert_to_extended)
1906 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1907 (arm_extract_return_value, arm_register_name): Make static.
1908 (arm_software_single_step): Similarly. Fix types in declaration.
1909 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1910 (arm_store_return_value, arm_store_struct_return): New functions.
1911 (arm_gdbarch_init): Register the above functions. Also register
1912 call_dummy_start_offset, sizeof_call_dummy_words,
1913 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1914 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1915 max_register_virtual_size, register_size. Set up
1916 prologue_cache.saved_regs here, rather than ...
1917 (_initialize_arm_tdep): ... here.
1918 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1920 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1921 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1922 (arm_print_float_info, arm_register_type, convert_to_extended)
1923 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1924 (arm_extract_return_value, arm_register_name): Delete declarations.
1925 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1926 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1927 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1928 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1929 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1930 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1931 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1932 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1933 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1934 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1935 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1936 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1938 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1939 * remote-rdi.c remote-rdp.c: Likewise.
1940 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1941 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1942 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1945 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1946 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1947 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1948 from non-ARM_ prefixed definitions.
1949 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1951 * remote-rdi.c remote-rdp.c: Likewise.
1952 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1954 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1956 * arm-tdep.c (arm_frameless_function_invocation)
1957 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1958 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1959 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1960 (arm_pop_frame, arm_get_next_pc): Make static.
1961 (arm_gdbarch_init): Register above in gdbarch structure.
1962 (arm_read_fp): Renamed from arm_target_read_fp.
1963 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1964 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1965 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1966 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1967 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1968 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1969 (arm_pc_is_thumb_dummy): Delete declarations.
1970 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1971 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1972 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1973 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1975 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1977 * symtab.c (compare_search_syms): New function.
1978 (sort_search_symbols): New function.
1979 (search_symbols): Sort symbols after searching rather than
1982 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1984 * NEWS: Linux -> GNU/Linux.
1986 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1988 * gdbarch.sh: For for level one methods, disallow a definition
1989 when partially multi-arched. Add comments explaining rationale.
1990 * gdbarch.h: Re-generate.
1992 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1994 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1997 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1999 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2001 * gdbarch.c: Re-generate.
2003 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2005 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2006 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2011 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2013 (PUSH_ARGUMENTS): Switch to using predefault.
2014 * gdbarch.c: Regenerate.
2016 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2018 * valops.c (PUSH_ARGUMENTS): Delete definition.
2019 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2020 partial. Default to default_push_arguments.
2021 * gdbarch.h, gdbarch.c: Regenerate.
2023 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2025 * defs.h (throw_exception): Rename return_to_top_level. Update
2027 * utils.c (error_stream, internal_verror, quit): Ditto.
2028 * top.c (throw_exception, catcher): Ditto.
2029 * sparclet-rom.c (sparclet_load): Ditto.
2030 * remote.c (interrupt_query, minitelnet): Ditto.
2031 * remote-sds.c (interrupt_query): Ditto.
2032 * remote-mips.c (mips_error, mips_kill): Ditto.
2033 * ocd.c (interrupt_query): Ditto.
2034 * monitor.c (monitor_interrupt_query): Ditto.
2035 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2036 * target.h: Update comment.
2038 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2040 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2042 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2043 default_double_format.
2044 * gdbarch.h, gdbarch.c: Re-generate.
2045 * findvar.c (floatformat_unknown): Delete variable definition.
2046 * doublest.h (floatformat_unknown): Delete variable declaration.
2048 2002-02-09 Jim Blandy <jimb@redhat.com>
2050 * stabsread.c (read_type): Add code to parse Sun's syntax for
2051 prototyped function types.
2053 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2055 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2056 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2058 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2060 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2061 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2062 now _initialize_xcoffsolib gets called again and overrides the
2063 commands from solib.c in a native configuration.
2065 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2067 * doublest.c (store_typed_floating): Don't try to return a value.
2070 2002-02-08 Jim Blandy <jimb@redhat.com>
2072 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2073 is prototyped and has no arguments, print its argument list as
2076 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2078 * MAINTAINERS (write-after-approval): Add myself.
2079 (paper-trail): I've escaped!
2081 2002-02-08 Christopher Faylor <cgf@redhat.com>
2083 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2085 (_initialize_check_for_gdb_ini): Ditto.
2087 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2089 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2090 xaprintf -> xasprintf.
2092 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2094 * win32-nat.c: Remove use of printf and sprintf functions.
2096 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2098 * arm-tdep.c (arm_frame_chain_valid): Make static.
2099 (arm_push_arguments): Likewise.
2100 (arm_gdbarch_init): New function.
2101 (_initialize_arm_tdep): Call it.
2102 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2103 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2104 (FRAME_CHAIN_VALID): Delete.
2105 (arm_frame_chain_valid): Delete declaration.
2106 (PUSH_ARGUMENTS): Delete.
2107 (arm_push_arguments): Delete declaration.
2108 (CALL_DUMMY_P): Delete.
2110 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2111 Corinna Vinschen <vinschen@redhat.com>
2113 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2114 on builtin float types.
2116 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2118 * utils.c: Include <curses.h> before "bfd.h".
2119 * tui/tui-hooks.c: Likewise.
2120 * tui/tui.c: Likewise.
2121 * tui/tuiCommand.c: Likewise.
2122 * tui/tuiData.c: Likewise.
2123 * tui/tuiDataWin.c: Likewise.
2124 * tui/tuiDisassem.c: Likewise.
2125 * tui/tuiGeneralWin.c: Likewise.
2126 * tui/tuiIO.c: Likewise.
2127 * tui/tuiLayout.c: Likewise.
2128 * tui/tuiRegs.c: Likewise.
2129 * tui/tuiSource.c: Likewise.
2130 * tui/tuiSourceWin.c: Likewise.
2131 * tui/tuiStack.c: Likewise.
2132 * tui/tuiWin.c: Likewise.
2134 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2136 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2137 to include space for pseudoregs as well. Update loops accordingly.
2138 (sh_fp_frame_init_saved_regs): Ditto.
2139 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2141 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2143 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2144 Add Richard Earnshaw to Arm maintainers.
2146 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2148 * defs.h (warning_begin): Delete declaration.
2150 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2153 2002-02-07 Michael Snyder <msnyder@redhat.com>
2155 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2156 Logic bug, remove misplaced else.
2158 2002-02-07 Klee Dienes <klee@apple.com>
2160 * fork-inferior.c (fork_inferior): Add '!' to the list of
2161 characters that need to be quoted when building a string for the
2162 shell. Quote '!' specifically with a backslash, since CSH chokes
2163 when trying to evaluate "str!str".
2165 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2167 * rdi-share/host.h: Only provide a typedef for bool if it is not
2170 2002-02-04 Michael Snyder <msnyder@redhat.com>
2172 * breakpoint.h (enum bptype): Add new overlay event bp type.
2173 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2175 * breakpoint.c (create_internal_breakpoint): New function.
2176 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2177 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2178 (create_thread_event_breakpoint): Ditto.
2179 (create_solib_event_breakpoint): Ditto.
2180 (create_overlay_event_breakpoint): New function.
2181 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2182 (update_breakpoints_after_exec): Delete and re-initialize
2183 overlay event breakpoints after an exec. Add FIXME comment
2184 about longjmp breakpoint.
2185 (print_it_typical): Ignore overlay event breakpoints.
2186 (print_one_breakpoint): Ditto.
2188 (bpstat_what): Do not stop for overlay event breakpoints.
2189 (delete_breakpoint): Don't delete overlay event breakpoints.
2190 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2191 (breakpoint_re_set): Re-create overlay event breakpoint.
2193 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2194 (overlay_manual_command): Disable overlay breakpoints.
2195 (overlay_off_command): Disable overlay breakpoints.
2197 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2199 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2200 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2201 to here from config/tm-arm.h.
2202 (coff_sym_is_thumb): Make static.
2203 (arm_elf_make_msymbol_special): New function.
2204 (arm_coff_make_msymbol_special): New function.
2205 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2206 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2207 (coff_sym_is_thumb): Delete declaration.
2208 (arm_elf_make_msymbol_special): Declare.
2209 (arm_coff_make_msymbol_special): Declare.
2210 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2211 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2213 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2215 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2217 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2219 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2220 * gdbarch.c gdbarch.h: Regenerate.
2221 * arch-utils.c (default_print_float_info): New function.
2222 * arch-utils.h (default_print_float_info): Prototype it.
2223 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2224 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2225 (PRINT_FLOAT_INFO): Document it.
2227 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2228 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2229 (PRINT_FLOAT_INFO): Define.
2231 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2233 * win32-nat.c (_initialize_check_for_gdb_ini):
2234 Add typecast to sprintf argument to suppress a warning.
2236 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2238 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2239 to allow easier handling of pass state.
2240 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2241 that gives exception name and address.
2242 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2243 and set last_sig value to ourstatus->value.sig. Some missing
2245 (child_continue): Correctly report continue_status.
2246 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2247 TARGET_SIGNAL_0 (new default value).
2248 (child_resume): consider sig argument passed to decide if
2249 the exception should be passed to debuggee or not.
2251 2002-02-05 Michael Snyder <msnyder@redhat.com>
2253 * regcache.c (fetch_register): Call target_fetch_register
2254 only if we don't call FETCH_PSEUDO_REGISTER.
2255 (store_register): Call target_store_register only if we
2256 don't call STORE_PSEUDO_REGISTER.
2258 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2260 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2261 ELF_MAKE_MSYMBOL_SPECIAL.
2262 * gdbarch.c, gdbarch.h: Regenerate.
2263 * arch-utils.c (default_make_msymbol_special): New function.
2264 * arch-utils.h (default_make_msymbol_special): Export.
2265 * elfread.c (elf_symtab_read): Compile use of
2266 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2268 * coffread.c (coff_symtab_read): Ditto, for
2269 COFF_MAKE_MSYMBOL_SPECIAL.
2271 2002-02-05 Jim Blandy <jimb@redhat.com>
2273 * solib-svr4.c (svr4_truncate_ptr): New function.
2274 (svr4_relocate_section_addresses): Do the address arithmetic with
2275 the appropriate truncation for target addresses, even when
2276 CORE_ADDR is larger than a target address.
2278 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2280 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2283 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2285 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2288 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2290 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2292 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2294 * gdbserver/linux-low.c: Remove unused include files.
2296 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2298 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2299 (read_inferior_memory): Use it.
2300 (write_inferior_memory): Likewise.
2302 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2304 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2305 grubbing through sys_errlist.
2307 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2309 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2311 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2312 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2314 2002-02-04 Andrew Cagney <ac131313@redhat.com>
2316 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2317 (do_sfunc, set_cmd_sfunc): New functions.
2319 * command.h (struct cmd_list_element): Add field func.
2320 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2321 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2322 * cli/cli-decode.h: Ditto.
2324 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2325 (help_all, help_cmd_list): Ditto.
2326 (find_cmd, complete_on_cmdlist): Ditto.
2327 * top.c (execute_command): Ditto.
2329 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2332 * infcmd.c (notice_args_read): Fix function signature.
2334 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2335 * cli/cli-decode.c (add_set_cmd): Ditto.
2336 * utils.c (initialize_utils): Ditto.
2337 * maint.c (_initialize_maint_cmds): Ditto.
2338 * infrun.c (_initialize_infrun): Ditto.
2339 * demangle.c (_initialize_demangler): Ditto.
2340 * remote.c (add_packet_config_cmd): Ditto.
2341 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2342 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2343 * proc-api.c (_initialize_proc_api): Ditto.
2344 * kod.c (_initialize_kod): Ditto.
2345 * valprint.c (_initialize_valprint): Ditto.
2346 * top.c (init_main): Ditto.
2347 * infcmd.c (_initialize_infcmd): Ditto.
2348 * corefile.c (_initialize_core): Ditto.
2349 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2350 * arch-utils.c (initialize_current_architecture): Ditto.
2351 (_initialize_gdbarch_utils): Ditto.
2352 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2354 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2355 * wince.c (_initialize_inftarg): Ditto.
2356 * symfile.c (_initialize_symfile): Ditto.
2357 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2358 * language.c (_initialize_language): Ditto.
2359 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2361 2002-02-04 Michael Snyder <msnyder@redhat.com>
2363 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2365 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2367 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2368 Add rules for building the register data files.
2370 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2372 * regformats/regdat.sh: Add braces to the definition of
2373 expedite_regs_${arch}.
2375 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2377 * regformats/regdef.h (struct reg): Add comment describing the
2378 requirements for offset and size fields.
2380 2002-02-04 Andreas Schwab <schwab@suse.de>
2382 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2383 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2385 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
2387 * gdbarch.sh (copyright): Update years in generated header.
2388 (SMASH_TEXT_ADDRESS): Add rule.
2389 * gdbarch.h, gdbarch.c: Re-generate.
2390 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2391 * dbxread.c: Likewise.
2392 * dwarfread.c: Likewise.
2393 * elfread.c: Likewise.
2394 * somread.c: Likewise.
2396 * arm-tdep.c (arm_smash_text_address): New function.
2397 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2399 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2401 Add support for hardware watchpoints on win32 native.
2402 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2403 CONTEXT_DEBUG_REGISTERS.
2404 (dr variable): New variable. Static array containing a local copy
2406 (debug_registers_changed): New variable. Reflects when debug registers
2407 are changed and need to be written to inferior.
2408 (debug_registers_used): New variable. Reflects when any debug register
2409 was set, used when new threads are created.
2410 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2412 (thread_rec): Set dr array if id is the thread of current_event .
2413 (child_continue, child_resume): Change the debug registers for all
2414 threads if debug_registers_changed.
2415 (child_add_thread): Change the debug registers if debug_registers_used.
2416 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2417 Link nm.h to new nm-cygwin.h file.
2418 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2419 of hardware registers.
2421 2002-02-03 Andrew Cagney <ac131313@redhat.com>
2423 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2424 Restore behavour broken by 2002-01-20 Andrew Cagney
2425 <ac131313@redhat.com> IEEE_FLOAT removal.
2427 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2429 * c-valprint.c (c_val_print): Pass a proper valaddr to
2430 cp_print_class_method.
2431 * valops.c (search_struct_method): If there is only one method
2432 and args is NULL, return that method.
2434 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2436 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2437 accessing tag_name directly.
2439 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2441 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2442 of accessing tag_name directly.
2444 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2447 * gdbtypes.c (replace_type): New function.
2448 * gdbtypes.h (replace_type): Add prototype.
2449 * stabsread.c (read_type): Use replace_type.
2451 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
2453 * Makefile.in (memattr.o): Add missing dependencies rule.
2455 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2457 * breakpoint.c (break_at_finish_command): Really export.
2458 (break_at_finish_at_depth_command): Ditto.
2459 (tbreak_at_finish_command): Ditto.
2460 * hppa-tdep.c: Include completer.h.
2461 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2462 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2464 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2466 * utils.c (do_write): New function.
2467 (error_stream): Rewrite combining the code from error_begin and
2469 (verror): Rewrite using error_stream.
2470 (error_begin): Delete function.
2472 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2474 * utils.c (error_begin): Make static.
2475 * defs.h (error_begin): Delete declaration.
2477 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2478 (decode_line_1): Use cplusplus_error instead of error_begin,
2479 cplusplus_hint and return_to_top_level.
2480 * coffread.c (coff_symfile_read): Use error instead of error_begin
2481 and return_to_top_level.
2482 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2484 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2486 * language.h (type_error, range_error): Make string parameter
2488 * language.c (warning_pre_print): Delete extern declaration.
2489 * dwarfread.c (warning_pre_print): Ditto.
2490 * language.c (type_error, range_error): Rewrite to use verror and
2491 vwarning instead of warning_begin.
2493 2002-02-01 Michael Snyder <msnyder@redhat.com>
2495 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2496 (set_ignore_count): Move misplaced comment back where it belongs.
2498 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2500 * command.h (NO_FUNCTION): Delete macro.
2501 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2502 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2503 * tracepoint.c (_initialize_tracepoint): Ditto.
2504 * cli/cli-decode.c (add_set_cmd): Ditto.
2505 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2507 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2509 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2510 Update ``this'' pointer when calling virtual functions.
2512 2002-02-01 Michael Snyder <msnyder@redhat.com>
2514 * breakpoint.c (create_temp_exception_breakpoint): Delete.
2515 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2517 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2519 * regformats/reg-arm.dat: New file.
2520 * regformats/reg-i386.dat: New file.
2521 * regformats/reg-ia64.dat: New file.
2522 * regformats/reg-m68k.dat: New file.
2523 * regformats/reg-mips.dat: New file.
2524 * regformats/reg-ppc.dat: New file.
2525 * regformats/reg-sh.dat: New file.
2526 * regformats/regdef.h: New file.
2527 * regformats/regdat.sh: New file.
2529 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
2531 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2532 (arm_frame_args_address, arm_frame_locals_address): New functions.
2533 (arm_frame_num_args): New function.
2534 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2535 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2536 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2538 2002-01-31 Michael Snyder <msnyder@redhat.com>
2540 * breakpoint.c (break_at_finish_command): Export.
2541 (break_at_finish_at_depth_command): Export.
2542 (tbreak_at_finish_command): Export.
2543 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2544 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2545 "tbreak" commands, which are HPPA specific.
2547 * printcmd.c (disassemble_command): Remove an ancient
2548 artifact of an old merge.
2550 * symfile.h (enum overlay_debugging_state):
2551 Define enum constant values for overlay mode.
2552 * symfile.c (overlay_debugging): Use enums instead of literals.
2553 (overlay_is_mapped, overlay_auto_command,
2554 overlay_manual_command): Ditto.
2556 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2557 breakpoint_here_p, breakpoint_inserted_here_p,
2558 breakpoint_thread_match, bpstat_stop_status,
2559 describe_other_breakpoints, check_duplicates, clear_command):
2560 Coding standard fixes.
2562 * target.c (target_xfer_memory): Add spaces, coding standard.
2563 (do_xfer_memory): Add missing line to trust-readonly
2564 code: check bfd SEC_READONLY flag for section.
2566 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2568 * PROBLEMS: Fix typo, 5.1->5.1.1.
2570 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2572 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2573 data symbols, since we search based on textlow and texthigh.
2574 (find_pc_sect_symtab): Likewise.
2576 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2578 * defs.h (vwarning): Declare.
2579 * utils.c (vwarning): New function.
2580 (warning): Call vwarning.
2581 (warning_begin): Delete function.
2583 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2584 the warning message.
2585 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2588 2002-01-30 Michael Snyder <msnyder@redhat.com>
2590 * NEWS: Mention "set trust-readonly-sections" command.
2591 Mention generate-core-file command.
2593 2002-01-15 Michael Snyder <msnyder@redhat.com>
2595 * target.c: New command, "set trust-readonly-sections on".
2596 (do_xfer_memory): Honor the suggestion to trust readonly sections
2597 by reading them from the object file instead of from the target.
2598 (initialize_targets): Register command "set trust-readonly-sections".
2600 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2602 * parse.c (target_map_name_to_register): Simplify, search regs and
2603 pseudo-regs using a single loop.
2605 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2607 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2609 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2611 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2612 * config/i386/i386v42mp.mh: Add i387-nat.o .
2613 * i386v4-nat.c: Include i387-nat.h.
2614 (supply_fpregset): Use i387_supply_fsave.
2615 (fill_fpregset): Use i387_fill_fsave.
2617 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2619 * arm-tdep.c (arm_call_dummy_words): Define.
2620 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2621 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2622 (CALL_DUMMY_WORDS): Define.
2623 (arm_call_dummy_words): Declare.
2624 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2625 (arm_linux_call_dummy_words): Declare.
2627 2002-01-30 Andreas Schwab <schwab@suse.de>
2629 * m68klinux-nat.c: Fix last change to use regcache_collect
2630 instead of referencing registers[] directly.
2632 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2634 * parse.c (target_map_name_to_register): Delete code wrapped in
2635 #ifdef REGISTER_NAME_ALIAS_HOOK.
2637 2002-01-28 Michael Snyder <msnyder@redhat.com>
2639 * regcache.c (legacy_read_register_gen): Need to be able to
2640 read pseudo-register as well as real register.
2641 (legacy_write_register_gen): Ditto.
2643 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2645 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2646 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2647 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2648 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2649 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2650 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2651 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2652 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2653 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2654 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2655 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2656 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2657 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2658 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2659 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2660 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2661 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2662 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2663 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2664 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2666 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2668 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2669 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2670 (initialize_current_architecture): Update target_byte_order using
2671 information from BFD.
2672 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2673 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2675 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2677 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2678 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2680 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2681 #ifdef INVALID_FLOAT.
2682 * infcmd.c (do_registers_info): Ditto.
2683 * values.c (unpack_double): Ditto. Add comment.
2685 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2686 already commented out.
2688 2002-01-26 Andreas Schwab <schwab@suse.de>
2690 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2691 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2692 registers and add support for PTRACE_GETREGS.
2694 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2696 GDB 5.1.1 released from 5.1 branch.
2697 * NEWS: Add 5.1.1 news.
2698 * README: Sync with 5.1 branch.
2700 2002-01-23 Fred Fish <fnf@redhat.com>
2702 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2703 stabstring on initial malloc. Reallocing will copy it for us,
2706 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2708 * Makefile.in (hpread_h): Delete.
2709 (HFILES_NO_SRCDIR): Remove hpread.h.
2710 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2711 (hpread.o): Update dependencies.
2712 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2714 * hp-psymtab-read.c: Remove file.
2715 * hp-symtab-read.c: Remove file.
2716 * hpread.h: Remove file.
2718 * hpread.c: Merge all contents of hp-psymtab-read.c,
2719 hp-symtab-read.c and hpread.h into this file, as it was prior to
2722 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2723 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2724 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2725 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2727 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2729 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2730 fill_gregset): Call gdbarch_tdep() just once, assign result to
2731 variable and use that, instead of calling the function several
2734 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2736 * configure.host: Accept sparcv9 as alias for sparc64.
2737 * configure.tgt: Likewise.
2739 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2741 * solib-aix5.c (build_so_list_from_mapfile)
2742 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2743 arguments is not reversed.
2744 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2745 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2747 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2749 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2750 modified version of obsolete sh_fetch_pseudo_register.
2751 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2752 (sh4_register_read): New function.
2753 (sh_pseudo_register_write): New function. Renamed and modified
2754 version of obsolete sh_store_pseudo_register.
2755 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2756 (sh4_register_write): New function.
2757 (sh_gdbarch_init): Remove setting of gdbarch function
2758 fetch_pseudo_register and store_pseudo_register. Remove setting of
2759 register_convert_to_raw, register_convert_to_virtual,
2760 register_convertible.
2761 (sh_sh4_register_convertible): Delete. No longer needed. All is
2762 taken care by architecture specific functions
2763 register_read/register_write.
2764 (sh_sh4_register_convert_to_virtual): Make static.
2765 (sh_sh4_register_convert_to_raw): Ditto.
2767 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2769 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2770 (floatformat_is_nan, floatformat_mantissa): Ditto.
2772 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2773 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2774 builtin_type_ieee_double_little,
2775 builtin_type_ieee_double_littlebyte_bigword,
2776 builtin_type_m68881_ext, builtin_type_i960_ext,
2777 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2778 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2779 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2780 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2782 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2784 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2785 parameter. Set frameless flag if it exists and depended of
2786 whether the scanned function is frameless or not.
2787 (xstormy16_skip_prologue): If function is frameless, return
2788 result of xstormy16_scan_prologue().
2789 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2792 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2794 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2795 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2796 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2797 sh_sh4_register_byte, sh_sh4_register_raw_size,
2798 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2799 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2800 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2801 sh_store_pseudo_register, sh_do_pseudo_register): Call
2802 gdbarch_tdep() just once, assign result to variable and use that,
2803 instead of calling the function several times.
2805 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2807 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2808 macros instead of LAST_FPU_CTRL_REGNUM.
2809 (store_register): Likewise.
2811 2002-01-21 Jim Blandy <jimb@redhat.com>
2813 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2814 is up-to-date before running the program, not just when a program
2817 2002-01-21 Fred Fish <fnf@redhat.com>
2819 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2820 when we have found all instructions we are looking for.
2822 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2824 * arm-tdep.c (arm_register_name): New function.
2825 (arm_registers_names): Make static.
2826 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2827 (arm_register_name): Declare.
2828 (REGISTER_NAME): Use it.
2830 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2831 Kevin Buettner <kevinb@redhat.com>
2833 Convert arm targets to new FRAME interface.
2834 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2835 (arm_frame_find_save_regs): Delete.
2836 (arm_frame_init_saved_regs): New.
2837 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2838 Allocate extra_info as required. Convert all uses of fsr.regs
2839 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2841 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2842 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2843 (check_prologue_cache, save_prologue_cache): Likewise.
2844 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2845 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2846 (FRAME_FIND_SAVED_REGS): Delete.
2847 (arm_frame_find_saved_regs): Delete prototype.
2848 (arm_frame_init_saved_regs): New prototype.
2849 (FRAME_INIT_SAVED_REGS): Define.
2851 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2853 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2855 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2857 From Jeff Law <law@redhat.com>:
2858 * infttrace.c: Include <sys/pstat.h>.
2859 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2860 exec file if the ttrace equivalent fails.
2862 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2864 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2865 (closeLogFile): Ditto.
2867 2002-01-20 Michael Chastain <mec@shout.net>
2869 * top.c (print_gdb_version): Bump copyright year to 2002.
2871 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2873 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2874 Zannoni and Eli Zaretskii.
2876 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2878 * buildsym.c: Update copyright years.
2879 * c-typeprint.c: Likewise.
2880 * dwarf2read.c: Likewise.
2881 * f-typeprint.c: Likewise.
2882 * gdbtypes.c: Likewise.
2883 * gdbtypes.h: Likewise.
2884 * hp-symtab-read.c: Likewise.
2885 * hpread.c: Likewise.
2886 * mdebugread.c: Likewise.
2887 * p-typeprint.c: Likewise.
2889 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2891 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2892 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2893 byte-order selectable.
2894 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2895 * arch-utils.c: Ditto.
2896 (set_endian): Ditto.
2897 (set_endian_from_file): Ditto.
2898 * gdbserver/low-sim.c (create_inferior): Ditto.
2899 * gdbarch.sh: Ditto.
2900 * gdbarch.h: Re-generate.
2901 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2902 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2903 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2904 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2905 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2906 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2907 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2908 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2910 * config/mips/tm-wince.h: Remove #undef of macro
2911 TARGET_BYTE_ORDER_SELECTABLE.
2912 * config/sh/tm-wince.h: Ditto.
2914 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2916 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2917 member function fields. Add accessor macro
2918 TYPE_FN_FIELD_ARTIFICIAL.
2919 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2920 * c-typeprint.c (c_type_print_base): Skip artificial member
2923 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2925 * f-typeprint.c: Delete unused function f_type_print_args.
2926 * p-typeprint.c: Delete unused function pascal_type_print_args.
2928 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2930 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2931 comment. Add ``artificial'' to ``union field_location''.
2933 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2935 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2936 * mdebugread.c (parse_symbol): Likewise.
2937 * stabsread.c (define_symbol): Likewise.
2938 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2939 initializing TYPE_FIELD_BITPOS to n (obsolete).
2940 (hpread_doc_function_type): Likewise.
2941 * hpread.c (hpread_function_type): Likewise.
2943 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2945 * configure.in (host_makefile_frag): Only require a host makefile
2946 fragment when a native build.
2947 * configure: Re-generate.
2949 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2951 * doublest.h (floatformat_from_type): Declare.
2952 * doublest.c (floatformat_from_type): New function.
2953 (convert_typed_floating): Use.
2955 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2956 call to function floatformat_from_type.
2958 * gdbarch.sh (IEEE_FLOAT): Delete.
2959 * gdbarch.h, gdbarch.c: Re-generate.
2960 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2961 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2962 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2963 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2964 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2965 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2966 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2967 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2968 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2969 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2970 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2971 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2973 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2974 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2975 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2976 * sh-tdep.c (sh_gdbarch_init): Ditto.
2977 * mips-tdep.c (mips_gdbarch_init): Ditto.
2978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2979 * cris-tdep.c (cris_gdbarch_init): Ditto.
2981 2002-01-20 Jiri Smid <smid@suse.cz>
2983 * configure.host, configure.tgt: Support x86-64.
2984 * NEWS: Note new target x86-64.
2986 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2987 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2988 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2989 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2990 x86-64-linux-nat.o): Fix dependencies.
2992 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2994 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2995 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2996 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2997 * config/sparc/xm-sun4os4.h: Delete file.
2998 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3000 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3002 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3003 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3004 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3005 * config/i386/i386lynx.mh (XM_FILE): Delete.
3006 * config/rs6000/xm-rs6000ly.h: Delete file.
3007 * config/sparc/xm-sparclynx.h: Delete file.
3008 * config/m68k/xm-m68klynx.h: Delete file.
3009 * config/i386/xm-i386lynx.h: Delete file.
3010 * config/xm-lynx.h: Delete file.
3011 * config/djgpp/fnchange.lst: Update.
3013 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3015 * alpha-tdep.c (alpha_register_byte): New function.
3016 (alpha_register_raw_size): Ditto.
3017 (alpha_register_virtual_size): Ditto.
3018 (alpha_skip_prologue_internal): Renamed from
3019 alpha_skip_prologue.
3020 (alpha_skip_prologue): New version that calls
3021 alpha_skip_prologue_internal.
3022 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3023 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3024 second argument from alpha_skip_prologue.
3025 (REGISTER_BYTE): Use alpha_register_byte.
3026 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3027 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3028 (FRAMELESS_FUNCTION_INVOCATION): Use
3029 generic_frameless_function_invocation_not.
3030 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3031 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3033 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3035 * config/mips/xm-news-mips.h: Delete file.
3036 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3038 * config/m88k/xm-m88k.h: Delete file.
3039 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3040 * config/m88k/xm-delta88v4.h: Ditto.
3041 * config/m88k/xm-delta88.h: Ditto.
3043 * config/alpha/xm-fbsd.h: Delete file.
3044 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3046 * config/sparc/xm-sparc.h: Delete file.
3047 * Makefile.in (xm-sun4os4.h): Delete dependency.
3048 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3049 * config/sparc/xm-sun4os4.h: Ditto.
3050 * config/sparc/xm-linux.h: Ditto.
3052 * config/i386/xm-windows.h: Delete file.
3054 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3056 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3057 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3059 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3061 * alpha-tdep.c (alpha_call_dummy_words): New.
3062 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3063 (CALL_DUMMY_P): Define.
3064 (CALL_DUMMY_WORDS): Define.
3065 (SIZEOF_CALL_DUMMY_WORDS): Define.
3067 2002-01-19 Per Bothner <per@bothner.com>
3069 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3070 isn't NULL, which can happen with some gcj-3.x-produced code.
3072 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3074 * alpha-tdep.c (alpha_register_virtual_type): New function.
3075 (alpha_init_frame_pc_first): Ditto.
3076 (alpha_fix_call_dummy): Ditto.
3077 (alpha_store_struct_return): Ditto.
3078 (alpha_extract_struct_value_address): Ditto.
3079 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3080 alpha_register_virtual_type.
3081 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3082 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3083 alpha_extract_struct_value_address.
3084 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3085 (INIT_FRAME_PC): Use init_frame_pc_noop.
3086 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3088 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3090 * i386gnu-nat.c: Include "i386-tdep.h".
3091 (fetch_fpregs): Simplify code dealing with uninitialized floating
3092 point states such that it doesn't require FP7_REGNUM.
3094 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3096 * alpha-tdep.c (frame_extra_info): New.
3097 (alpha_find_saved_regs): Make static. Use
3099 (alpha_frame_init_saved_regs): New function.
3100 (alpha_frame_saved_pc): Use frame->extra_info.
3101 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3102 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3103 (init_extra_frame_info): Rename to...
3104 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3105 (alpha_print_extra_frame_info): New function.
3106 (alpha_frame_locals_address): Ditto.
3107 (alpha_frame_args_address): Ditto.
3108 (alpha_pop_frame): Use frame->extra_info.
3109 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3110 alpha_frame_args_address.
3111 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3112 (alpha_find_saved_regs): Remove prototype.
3113 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3114 (EXTRA_FRAME_INFO): Remove.
3115 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3116 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3118 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3120 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3121 (alpha_cannot_fetch_register): Ditto.
3122 (alpha_cannot_store_register): Ditto.
3123 (alpha_register_convertible): Ditto.
3124 (alpha_use_struct_convention): Ditto.
3125 * config/alpha/tm-alpha.h: Update copyright years.
3126 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3127 (INNER_THAN): Use core_addr_lessthan.
3128 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3129 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3130 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3131 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3132 (FRAME_CHAIN): Remove unnecessary cast.
3134 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3136 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3139 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3141 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3142 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3143 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3144 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3145 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3146 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3147 * x86-64-linux-nat.c: Ditto.
3149 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3151 * alpha-tdep.c (alpha_register_name): New function.
3152 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3153 (REGISTER_NAME): Define.
3155 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3157 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3159 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3161 * alpha-tdep.c: Update copyright years.
3162 (alpha_next_pc): New function.
3163 (alpha_software_single_step): Ditto.
3164 * config/alpha/tm-alpha.h: Add prototype for
3165 alpha_software_single_step.
3167 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3169 * alphabsd-nat.c: Update copyright years.
3170 (fill_gregset): Use regcache_collect.
3171 (fill_fpregset): Likewise.
3172 (fetch_inferior_registers): Only fetch integer registers
3173 if requested to do so.
3174 (store_inferior_registers): Only store integer registers
3175 if requested to do so.
3177 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3179 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3180 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3181 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3182 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3183 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3184 * config/arm/linux.mh (XDEPFILES): Delete.
3185 * config/arm/nbsd.mh (XDEPFILES): Delete.
3186 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3187 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3188 * config/i386/i386m3.mh (XDEPFILES): Delete.
3189 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3190 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3191 * config/i386/fbsd.mh (XDEPFILES): Delete.
3192 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3193 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3194 * config/i386/i386v4.mh (XDEPFILES): Delete.
3195 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3196 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3197 * config/i386/i386aix.mh (XDEPFILES): Delete.
3198 * config/i386/go32.mh (XDEPFILES): Delete.
3199 * config/i386/cygwin.mh (XDEPFILES): Delete.
3200 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3201 * config/i386/i386mach.mh (XDEPFILES): Delete.
3202 * config/i386/i386v32.mh (XDEPFILES): Delete.
3203 * config/i386/linux.mh (XDEPFILES): Delete.
3204 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3205 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3206 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3207 * config/i386/i386sco.mh (XDEPFILES): Delete.
3208 * config/i386/i386v.mh (XDEPFILES): Delete.
3209 * config/i386/nbsd.mh (XDEPFILES): Delete.
3210 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3211 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3212 * config/i386/symmetry.mh (XDEPFILES): Delete.
3213 * config/i386/obsd.mh (XDEPFILES): Delete.
3214 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3215 * config/ia64/linux.mh (XDEPFILES): Delete.
3216 * config/ia64/aix.mh (XDEPFILES): Delete.
3217 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3218 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3219 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3220 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3221 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3222 * config/m68k/linux.mh (XDEPFILES): Delete.
3223 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3224 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3225 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3226 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3227 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3228 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3229 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3230 * config/m88k/delta88.mh (XDEPFILES): Delete.
3231 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3232 * config/m88k/m88k.mh (XDEPFILES): Delete.
3233 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3234 * config/mips/linux.mh (XDEPFILES): Delete.
3235 * config/mips/irix6.mh (XDEPFILES): Delete.
3236 * config/mips/irix5.mh (XDEPFILES): Delete.
3237 * config/mips/irix4.mh (XDEPFILES): Delete.
3238 * config/mips/irix3.mh (XDEPFILES): Delete.
3239 * config/mips/decstation.mh (XDEPFILES): Delete.
3240 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3241 (NATDEPFILES): Move core-aout.o to here.
3242 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3243 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3244 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3245 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3246 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3247 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3248 * config/pa/hpux11.mh (XDEPFILES): Delete.
3249 * config/powerpc/aix.mh (XDEPFILES): Delete.
3250 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3251 * config/powerpc/linux.mh (XDEPFILES): Delete.
3252 * config/romp/rtbsd.mh: Rename XDEPFILES.
3253 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3254 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3255 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3256 * config/s390/s390.mh (XDEPFILES): Delete.
3257 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3258 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3259 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3260 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3261 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3262 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3263 * config/sparc/linux.mh (XDEPFILES): Delete.
3264 * config/vax/vaxult.mh (XDEPFILES): Delete.
3265 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3266 * Makefile.in (DEPFILES): Remove XDEPFILES.
3268 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3270 * utils.c (internal_verror): Fix comments, default is yes not no.
3271 Update queries to match. Default to quit and dump core.
3273 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3275 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3277 * defs.h, event-top.c, gdbcmd.h: Ditto.
3278 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3279 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3280 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3281 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3282 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3283 * mi/mi-main.c:Ditto.
3285 * stack.c, symfile.c: Update copyright.
3287 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3289 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3290 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3291 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3292 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3294 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3296 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3297 * gdbserver/low-lynx.c (myattach): Likewise.
3298 * gdbserver/low-nbsd.c (myattach): Likewise.
3299 * gdbserver/low-sim.c (myattach): Likewise.
3300 * gdbserver/low-sparc.c (myattach): Likewise.
3301 * gdbserver/low-sun3.c (myattach): Likewise.
3303 * gdbserver/low-linux.c (myattach): New function.
3305 * gdbserver/server.c (attach_inferior): New function.
3306 (main): Handle "--attach".
3308 2002-01-16 Andrew Cagney <ac131313@redhat.com>
3310 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3313 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
3315 * c-typeprint.c (is_type_conversion_operator): Add additional
3316 check for non-conversion operators.
3318 2002-01-15 Michael Snyder <msnyder@redhat.com>
3320 * linux-proc.c: Add "info proc" command, a la procfs.c.
3321 (read_mapping): New function, abstract and re-use code.
3322 (linux_find_memory_regions): Use new func read_mapping.
3323 (linux_info_proc_cmd): New function, implement "info proc".
3324 (_initialize_linux_proc): Add new command "info proc".
3326 2002-01-15 Michael Snyder <msnyder@redhat.com>
3328 * symfile.c (generic_load): Use bfd_map_over_sections method
3329 instead of manipulating bfd structure members directly.
3330 (add_section_size_callback): New function, bfd sections callback
3331 used by generic_load.
3332 (load_sections_callback): New function, bfd sections callback
3333 used by generic_load.
3335 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
3337 [Based on work by Jim Blandy]
3338 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3339 (builtin_type_vec128): Export.
3340 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3342 (builtin_type_vec128): New builtin type for 128 bit vector
3344 (build_gdbtypes): Initialize builtin_type_v16qi and
3345 builtin_type_v8hi. Create the vec128 register builtin type
3347 (build_builtin_type_vec128): New function.
3348 (_initialize_gdbtypes): Register builtin_type_v16qi and
3349 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3350 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3351 AltiVec register to new builtin type.
3353 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3355 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3358 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3360 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3361 CLEAN_UP_REGISTER_VALUE.
3362 * regcache.c (supply_register): Update only call.
3364 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3366 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3367 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3368 a29k-*-vxworks* targets as obsolete.
3370 2002-01-14 Michael Snyder <msnyder@redhat.com>
3372 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3373 until we can resolve portability issues.
3374 * gregset.h: Remove references to fpxregs.
3375 * gcore.c (gcore_command): Initialize note_sec to NULL.
3377 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3379 * signals.c (target_signal_to_name): Rewrite. Only use
3380 signals[].name when in bounds and non-NULL.
3382 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3384 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3385 * signals.c (target_signal_to_name): Verify that SIG is within the
3386 bounds of the signals array.
3388 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3390 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3392 2002-01-13 Keith Seitz <keiths@redhat.com>
3394 * stack.c (print_frame_info_base): Print the frame's pc
3395 only if when print_frame_info_listing_hook is not defined.
3397 2002-01-13 Keith Seitz <keiths@redhat.com>
3399 * varobj.c (varobj_set_value): Make sure that there were no
3400 errors evaluating the object before attempting to set its
3402 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3403 so this offset adjustment is no longer necessary.
3404 (create_child): Don't set the error flag if the child is
3406 (value_of_child): If value_fetch_lazy fails, return NULL
3407 so that callers will be notified that an error occurred.
3408 (c_value_of_variable): Delay check of variable's validity
3409 until later. We actually want all structs and unions to have
3411 Do not return "???" for variables which could not be evaluated.
3412 This error condition must be returned to the caller so that it
3413 can get the error condition from gdb.
3414 (cplus_name_of_child): Adjust index for vptr before figuring
3415 out the name of the child.
3416 (cplus_value_of_child): If a child's (real) parent is not valid,
3417 don't even bother trying to give a value for it. Just return
3418 an error. Change all instances in this function.
3419 (cplus_type_of_child): If our parent is one of the "fake"
3420 parents, we need to get at the type of the real parent, and
3421 derive the child's true type using this information.
3423 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3425 From 2002-01-09 John Marshall <johnm@falch.net>:
3426 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3427 sources.redhat.com, and tweak some related URLs which had
3428 suffered from linkrot.
3430 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3433 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3434 structures passed in registers.
3436 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3438 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3439 white space which prevented compilation. Reported by DSK
3440 <dsk@student.unsw.edu.au>.
3442 2002-01-11 Michael Snyder <msnyder@redhat.com>
3444 * symfile.c (build_section_addr_info_from_section_tab):
3445 Use bfd access method instead of manipulating bfd directly.
3446 (syms_from_objfile): Ditto.
3447 (simple_overlay_update_1): Ditto.
3448 (simple_overlay_update): Ditto.
3449 (generic_load): Ditto.
3450 (overlay_unmapped_address): FIXME comment, bfd access methods.
3451 (sections_overlap): FIXME comment, bfd access methods.
3452 (pc_in_mapped_range): FIXME comment, bfd access methods.
3453 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3454 (section_is_mapped): FIXME comment, bfd access methods.
3455 (section_is_overlay): FIXME comment, bfd access methods.
3457 * symfile.c (generic_load): Whitespace and long line cleanups.
3458 Remove duplicate variable, change several local variables to
3459 more appropriate data types.
3460 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3462 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3465 * language.c (longest_local_hex_string_custom): Use phex_nz to
3466 convert NUM to a hex string.
3468 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3470 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3472 Update Copyright year.
3474 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3476 * language.c (longest_raw_hex_string): Delete unused function.
3478 2002-01-11 Petr Sorfa <petrs@caldera.com>
3480 * MAINTAINERS (write-after-approval): Add myself.
3481 * dwarf2read.c (read_tag_string_type): Handling of
3483 (read_tag_string_type): FORTRAN fix to prevent propagation of
3485 (set_cu_language): Handling of DW_LANG_Fortran95
3487 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3489 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3490 GETPID(inferior_ptid).
3491 (store_inferior_registers): Likewise.
3493 2002-01-10 Jason Merrill <jason@redhat.com>
3495 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3498 2002-01-10 Andrew Cagney <ac131313@redhat.com>
3500 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3501 and bfd/elf32-sh-nbsd.c.
3503 2002-01-10 Michael Snyder <msnyder@redhat.com>
3505 * NEWS: Mention --pid and corefile/proc-id behavior change.
3507 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3508 * gcore.c: Include cli/cli-decode.h instead of command.h.
3510 * main.c (captured_main): Add new command line option "--pid".
3511 If the second command line argument (following the symbol-file)
3512 begins with a digit, try to attach to it before trying to open
3514 (print_gdb_help): Document the "--pid" argument.
3516 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3518 * completer.c (command_completer): New function.
3520 * completer.h <command_completer>: Add prototype.
3522 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3523 completer for the "help" command.
3525 2002-01-09 Jason Merrill <jason@redhat.com>
3527 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3529 2002-01-09 Michael Snyder <msnyder@redhat.com>
3531 * i386-linux-nat.c (fill_fpxregset): Make global.
3532 (store_fpxregset): Ditto.
3534 * gregset.h (gdb_fpxregset_t): Define.
3535 (supply_fpxregset): Prototype.
3536 (fill_fpxregset): Prototype.
3538 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3540 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3542 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3543 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3544 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3546 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3548 * MAINTAINERS: Update target maintainer rules so that any
3549 Maintainer can approve a tested patch for a maintenance-only
3552 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3554 * MAINTAINERS (write-after-approval): Add myself.
3556 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3559 2002-01-08 Michael Snyder <msnyder@redhat.com>
3561 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3562 real name of the executable, rather than the /proc name.
3564 2002-01-03 Michael Snyder <msnyder@redhat.com>
3566 Implement a "generate-core-file" command in gdb, save target state.
3567 * gcore.c: New file. Implement new command 'generate-core-file'.
3568 Save a corefile image of the current state of the inferior.
3569 * linux-proc.c: Add linux-specific code for saving corefiles.
3570 * target.h (struct target_ops): Add new target vectors for saving
3571 corefiles; to_find_memory_regions and to_make_corefile_notes.
3572 (target_find_memory_regions): New macro.
3573 (target_make_corefile_notes): New macro.
3574 * target.c (update_current_target): Inherit new target methods.
3575 (dummy_find_memory_regions): New place-holder method.
3576 (dummy_make_corefile_notes): New place-holder method.
3577 (init_dummy_target): Initialize new dummy target vectors.
3578 * exec.c (exec_set_find_memory_regions): New function.
3579 Allow the exec_ops vector for memory regions to be taken over.
3580 (exec_make_note_section): New function, target vector method.
3581 * defs.h (exec_set_find_memory_regions): Export prototype.
3582 * procfs.c (proc_find_memory_regions): New function, corefile method.
3583 (procfs_make_note_section): New function, corefile method.
3584 (init_procfs_ops): Set new target vector pointers.
3585 (find_memory_regions_callback): New function.
3586 (procfs_do_thread_registers): New function.
3587 (procfs_corefile_thread_callback): New function.
3588 * sol-thread.c (sol_find_memory_regions): New function.
3589 (sol_make_note_section): New function.
3590 (init_sol_thread_ops): Initialize new target vectors.
3591 * inftarg.c (inftarg_set_find_memory_regions): New function.
3592 Allow to_find_memory_regions vector to be taken over.
3593 (inftarg_set_make_corefile_notes): New function.
3594 Allow to_make_corefile_notes vector to be taken over.
3595 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3596 interface layer if not target_has_execution (may be a corefile).
3597 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3598 * config/sparc/sun4sol2.mh: Ditto.
3599 * config/alpha/alpha-linux.mh: Ditto.
3600 * config/arm/linux.mh: Ditto.
3601 * config/i386/x86-64linux.mh: Ditto.
3602 * config/ia64/linux.mh: Ditto.
3603 * config/m68k/linux.mh: Ditto.
3604 * config/mips/linux.mh: Ditto.
3605 * config/powerpc/linux.mh: Ditto.
3606 * config/sparc/linux.mh: Ditto.
3608 2002-01-07 Michael Snyder <msnyder@redhat.com>
3610 * arm-linux-nat.c: Remove references to regcache.c internal data
3611 (registers[] and register_valid[]).
3613 2002-01-07 Michael Snyder <msnyder@redhat.com>
3615 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3616 so that attaching to a pid will automatically read the process's
3617 symbol file and shlibs.
3618 * Makefile.in: Add rule for linux-proc.o.
3619 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3620 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3621 * config/arm/linux.mh: Ditto.
3622 * config/i386/linux.mh: Ditto.
3623 * config/i386/x86-64linux.mh: Ditto.
3624 * config/ia64/linux.mh: Ditto.
3625 * config/m68k/linux.mh: Ditto.
3626 * config/mips/linux.mh: Ditto.
3627 * config/powerpc/linux.mh: Ditto.
3628 * config/sparc/linux.mh: Ditto.
3630 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3632 * win32-nat.c: Add i386-tdep.h dependency.
3634 2002-01-07 Michael Snyder <msnyder@redhat.com>
3636 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3637 instead of bfd_get_arch_size. Don't bail out just because
3638 there's no exec_bfd.
3640 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3641 * p-valprint.c (pascal_object_print_value): Ditto.
3642 * somread.c (som_symtab_read): Ditto.
3643 * symfile.c (simple_free_overlay_region_table): Ditto.
3644 * valops.c (value_assign): Ditto.
3646 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3647 use tilde_expand and strerror for opening save-tracepoints file.
3649 * thread-db.c (thread_db_new_objfile): Indendation fix.
3651 * infptrace.c (GDB_MAX_ALLOCA): New define.
3652 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3653 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3654 can be overridden with whatever value is appropriate to the host).
3655 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3656 alloca to allocate potentially large buffer.
3657 * rs6000-nat.c (child_xfer_memory): Ditto.
3658 * symm-nat.c (child_xfer_memory): Ditto.
3659 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3661 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3663 From Nick Clifton <nickc@redhat.com>
3664 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3666 2002-01-07 Michael Snyder <msnyder@redhat.com>
3668 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3669 Don't use exec_bfd if it's NULL.
3671 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3673 * valops.c (value_arg_coerce): Fix formatting.
3675 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3677 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3680 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3682 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3683 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3684 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3685 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3686 z8k-coff have not been multi-arched. Update z8k-coff build
3689 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3691 * MAINTAINERS: Mark a29k target as obsolete.
3692 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3693 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3695 * NEWS: Note that a29k targets are obsolete.
3696 * a29k-tdep.c: Mark as obsolete.
3697 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3698 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3699 a29k-*-vxworks* targets as obsolete.
3700 * remote-adapt.c: Obsolete.
3701 * remote-eb.c: Obsolete.
3702 * remote-mm.c: Obsolete.
3703 * remote-udi.c: Obsolete.
3704 * config/a29k/a29k-udi.mt: Obsolete.
3705 * config/a29k/a29k.mt: Obsolete.
3706 * config/a29k/tm-a29k.h: Obsolete.
3707 * config/a29k/tm-vx29k.h: Obsolete.
3708 * config/a29k/vx29k.mt: Obsolete.
3710 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3712 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3713 with BFD_ENDIAN_BIG.
3715 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3717 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3718 * configure, config.in: Re-generate.
3719 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3720 * defs.h: Do not include <endian.h>.
3722 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3724 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3725 * config.in: Regenerate.
3726 * configure.in: Update copyright years.
3727 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3728 * configure: Regenerate.
3729 * i386bsd-nat.c: Update copyright years.
3730 (fill_gregset): Use regcache_collect.
3731 (fetch_inferior_registers): Only fetch integer registers
3732 if requested to do so. Add support for XMM registers
3733 using PT_GETXMMREGS.
3734 (store_inferior_registers): Only store integer registers
3735 if requested to do so. Add support for XMM registers
3736 using PT_SETXMMREGS.
3737 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3738 (store_inferior_registers): Remove.
3739 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3740 (fetch_elfcore_registers): New function.
3741 (i386nbsd_elfcore_fns): New.
3742 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3743 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3745 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3746 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3747 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3748 * config/i386/tm-nbsd.h: Update copyright years.
3749 (HAVE_SSE_REGS): Define.
3750 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3751 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3752 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3753 (SIGCONTEXT_PC_OFFSET): Remove.
3754 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3756 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3758 * configure.tgt: Remove powerpc-*-macos* target.
3759 * config/m68k/xm-mpw.h: Delete file.
3760 * config/xm-mpw.h: Delete file.
3761 * ser-mac.c: Delete file.
3762 * mpw-make.sed: Delete file.
3763 * mpw-config.in: Delete file.
3764 * mac-xdep.c: Delete file.
3765 * mac-gdb.r: Delete file.
3766 * mac-defs.h: Delete file.
3767 * mac-nat.c: Delete file.
3768 * config/powerpc/macos.mh: Delete file.
3769 * config/powerpc/macos.mt: Delete file.
3770 * config/powerpc/nm-macos.h: Delete file.
3771 * config/powerpc/tm-macos.h: Delete file.
3772 * source.c (openp, open_source_file): Remove obsolete code.
3773 * top.c (gdb_readline): Ditto.
3774 * utils.c (query): Ditto.
3775 * event-top.c (display_gdb_prompt): Ditto.
3776 * Makefile.in (ser-mac.o): Delete obsolete target.
3779 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3781 * defs.h (BIG_ENDIAN): Delete macro definition.
3782 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3783 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3784 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3785 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3786 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3787 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3788 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3789 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3790 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3791 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3792 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3793 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3794 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3795 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3796 * gdbarch.c: Re-generate.
3798 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3800 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3803 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3805 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3807 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3809 * value.h (value_ptr): Delete typedef.
3811 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3813 * i386nbsd-nat.c: Update copyright years.
3814 Include i386-tdep.h.
3816 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3818 * stabsread.c: Update copyright years.
3820 From Debashis Mahata <debashis.mahata@wipro.com>:
3821 (read_struct_fields): Deal with Sun C compiler erroneous stab
3822 output for structs and unions.
3825 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3827 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3830 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3832 * cp-abi.c: Fix whitespace.
3833 (baseclass_offset): New wrapper function.
3834 * cp-abi.h (baseclass_offset): Add prototype.
3835 (struct cp_abi_ops): Add baseclass_offset pointer.
3837 * valops.c (vb_match): Move to...
3838 * gnu-v2-abi.c (vb_match): here.
3839 * valops.c (baseclass_offset): Move to...
3840 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3842 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3844 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3845 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3846 * hpacc-abi.c (init_hpacc_ops): Likewise.
3848 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3850 * valops.c (find_overload_match): Accept obj as a
3851 reference parameter. Update it before returning.
3852 * value.h (find_overload_match): Update prototype.
3853 * eval.c (evaluate_subexp_standard): Pass object to
3854 find_overload_match by reference.
3856 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3858 * valarith.c: Replace value_ptr with struct value pointer. Remove
3859 register attribute from value declarations.
3862 * scm-lang.c (scm_lookup_name): Ditto.
3864 2002-01-03 Michael Snyder <msnyder@redhat.com>
3866 Abstract the functionality of iterating over mapped memory
3867 regions into a general purpose iterator function.
3868 * procfs.c (iterate_over_mappings): New function, general purpose
3869 iterator for memory sections.
3870 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3871 (solib_mappings_callback): New function, callback for above.
3872 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3873 (info_mappings_callback): New function, callback for above.
3875 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3877 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3879 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3880 * i386-tdep.c: Include "elf-bfd.h".
3881 (process_note_abi_tag_sections): New function.
3882 (i386_gdbarch_init): Add code to recognize various OS/ABI
3885 * maint.c (_initialize_maint_cmds): Add missing \ in
3888 For older changes see ChangeLog-2001
3894 version-control: never