1 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3 From Jimi X <jimix@watson.ibm.com>:
4 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9 From Jimi X <jimix@watson.ibm.com>:
10 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
13 2002-04-12 Kevin Buettner <kevinb@redhat.com>
15 From Jimi X <jimix@watson.ibm.com>:
16 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
17 register sets for these processor variants.
19 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
22 registers which are allowed to fail to store.
23 * gdbserver/linux-low.h (linux_target_ops): Likewise.
24 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
25 (ppc_cannot_store_register): FPSCR may not be storable.
26 * regformats/reg-ppc.dat: Support FPSCR.
28 2002-04-11 Kevin Buettner <kevinb@redhat.com>
30 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
31 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
32 Add fpscr as an invalid/unfetchable register.
33 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
34 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
35 (fill_fpregset): Add support for register fpscr.
36 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
37 (fill_gregset): Account for the fact that register ``mq'' might
39 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
40 (registers_power): Add fpscr to register set at slot 71.
41 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
42 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
44 2002-04-11 Michael Snyder <msnyder@redhat.com>
46 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
47 * configure: Regenerate.
48 * config.in: Regenerate.
49 * acconfig.h: Add define for _SYSCALL32.
50 * core-sol2.c: Remove #define _SYSCALL32.
51 * solib-legacy.c: Remove #define _SYSCALL32.
53 2002-04-10 Andrew Cagney <ac131313@redhat.com>
55 * stack.c (select_frame): Cleanup internal error message, do not
58 2002-04-10 Andrew Cagney <ac131313@redhat.com>
60 * stack.c (select_frame): Check that selected_frame and the
61 specified level are as expected.
62 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
64 * frame.h (struct frame_info): Add field `level'. Update
66 Work-in-progress PR gdb/464.
68 2002-04-10 Andrew Cagney <ac131313@redhat.com>
70 * maint.c (maint_print_section_info): Rename print_section_info.
71 (print_bfd_section_info, print_objfile_section_info): Update.
72 * inferior.h (struct gdbarch): Add opaque declaration.
73 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
74 * gdbarch.h: Regenerate.
76 2002-04-10 Michal Ludvig <mludvig@suse.cz>
78 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
79 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
80 (kernel_u_size): Added.
81 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
82 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
84 2002-04-04 Jim Ingham <jingham@apple.com>
86 * valarith.c (find_size_for_pointer_math): New function, either returns
87 the size for a pointer's target, returns 1 for void *, or errors for
89 (value_add, value_sub): use find_size_for_pointer_math.
91 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
93 * linux-low.c (linux_look_up_symbols): New hook.
94 (linux_target_ops): Add linux_look_up_symbols.
95 * remote-utils.c (decode_address): New function.
96 (look_up_one_symbol): New function.
97 * server.c (handle_query): Call target look_up_symbols hook.
98 * server.h (look_up_one_symbol): Add prototype.
99 * target.h (struct target_ops): Add look_up_symbols hook.
101 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
103 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
104 * ChangeLog: Correct paths in last ChangeLog entry.
106 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
108 * gdbserver/linux-low.h: Remove obsolete prototypes.
109 (struct linux_target_ops): New.
110 (extern the_low_target): New.
111 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
112 (register_addr): Use the_low_target explicitly.
113 (fetch_register): Likewise.
114 (usr_fetch_inferior_registers): Likewise.
115 (usr_store_inferior_registers): Likewise.
116 * gdbserver/linux-arm-low.c (num_regs): Remove.
117 (arm_num_regs): Define.
118 (arm_regmap): Renamed from regmap, made static.
119 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
121 (arm_cannot_store_register): Renamed from cannot_store_register,
123 (the_low_target): New.
124 * gdbserver/linux-i386-low.c (num_regs): Remove.
125 (i386_num_regs): Define.
126 (i386_regmap): Renamed from regmap, made static.
127 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
129 (i386_cannot_store_register): Renamed from cannot_store_register,
131 (the_low_target): New.
132 * gdbserver/linux-ia64-low.c (num_regs): Remove.
133 (ia64_num_regs): Define.
134 (ia64_regmap): Renamed from regmap, made static.
135 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
137 (ia64_cannot_store_register): Renamed from cannot_store_register,
139 (the_low_target): New.
140 * gdbserver/linux-m68k-low.c (num_regs): Remove.
141 (m68k_num_regs): Define.
142 (m68k_regmap): Renamed from regmap, made static.
143 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
145 (m68k_cannot_store_register): Renamed from cannot_store_register,
147 (the_low_target): New.
148 * gdbserver/linux-mips-low.c (num_regs): Remove.
149 (mips_num_regs): Define.
150 (mips_regmap): Renamed from regmap, made static.
151 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
153 (mips_cannot_store_register): Renamed from cannot_store_register,
155 (the_low_target): New.
156 * gdbserver/linux-ppc-low.c (num_regs): Remove.
157 (ppc_num_regs): Define.
158 (ppc_regmap): Renamed from regmap, made static.
159 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
161 (ppc_cannot_store_register): Renamed from cannot_store_register,
163 (the_low_target): New.
164 * gdbserver/linux-s390-low.c (num_regs): Remove.
165 (s390_num_regs): Define.
166 (s390_regmap): Renamed from regmap, made static.
167 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
169 (s390_cannot_store_register): Renamed from cannot_store_register,
171 (the_low_target): New.
172 * gdbserver/linux-sh-low.c (num_regs): Remove.
173 (sh_num_regs): Define.
174 (sh_regmap): Renamed from regmap, made static.
175 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
177 (sh_cannot_store_register): Renamed from cannot_store_register,
179 (the_low_target): New.
180 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
181 (the_low_target): New.
183 2002-04-09 Andrew Cagney <ac131313@redhat.com>
185 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
186 override FP_REGNUM with frame->fp. Update copyright.
187 * parse.c (num_std_regs, std_regs): Delete.
188 (target_map_name_to_register): Do not search std_regs. Update
189 function description.
190 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
191 declarations. Update copyright.
194 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
196 * gdbserver/Makefile.in: Add stamp-h target.
197 * gdbserver/configure.in: Create stamp-h.
198 * gdbserver/configure: Regenerated.
200 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
202 * gdbserver/inferiors.c: New file.
203 * gdbserver/target.c: New file.
204 * gdbserver/target.h: New file.
205 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
207 * gdbserver/linux-low.c (inferior_pid): New static variable,
209 (linux_create_inferior): Renamed from create_inferior.
210 Call add_inferior. Return 0 on success instead of a PID.
211 (linux_attach): Renamed from myattach.
212 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
213 (linux_thread_alive): Renamed from mythread_alive.
214 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
216 (linux_resume): Renamed from myresume. Add missing ``return 0''.
217 (regsets_store_inferior_registers): Correct error message.
218 Add missing ``return 0''.
219 (linux_fetch_registers): Renamed from fetch_inferior_registers.
220 (linux_store_registers): Renamed from store_inferior_registers.
221 (linux_read_memory): Renamed from read_inferior_memory.
222 (linux_write_memory): Renamed from write_inferior_memory.
223 (linux_target_ops): New structure.
224 (initialize_low): Call set_target_ops ().
225 * gdbserver/remote-utils.c (unhexify): New function.
226 (hexify): New function.
227 (input_interrupt): Send signals to ``signal_pid''.
228 * gdbserver/server.c (inferior_pid): Remove.
229 (start_inferior): Update create_inferior call.
230 (attach_inferior): Call add_inferior.
231 (handle_query): New function.
232 (main): Call handle_query for `q' packets.
233 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
234 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
236 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
238 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
240 * gdbserver/configure.in: Check for <string.h>
241 * gdbserver/configure: Regenerate.
242 * gdbserver/config.in: Regenerate.
243 * gdbserver/gdbreplay.c: Include needed system headers.
244 (remote_open): Remove strchr prototype.
245 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
246 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
247 (supply_register_by_name): Likewise.
248 (collect_register): Change buf argument to void *.
249 (collect_register_by_name): Likewise.
250 * gdbserver/regcache.h: Add missing prototypes.
251 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
252 * gdbserver/server.c (handle_query): New function.
253 (attached): New static variable, moved out of main.
254 (main): Quiet longjmp clobber warnings.
255 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
256 * gdbserver/utils.c (error): Remove NORETURN.
259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
261 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
262 after the last symbol in a block.
264 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
266 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
267 is non zero as a found symbol.
269 2002-04-08 Andrew Cagney <ac131313@redhat.com>
271 * findvar.c: Include "builtin-regs.h".
272 (value_of_register): Call value_of_builtin_reg when applicable.
273 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
274 (target_map_name_to_register): Call
275 builtin_reg_map_name_to_regnum.
276 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
277 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
278 (builtin_regs_h): Define.
279 (builtin-regs.o): New target.
280 (findvar.o): Add $(builtin_regs_h).
281 * builtin-regs.c, builtin-regs.h: New files.
282 * std-regs.c: New file.
283 Partial fix for PR gdb/251.
285 2002-04-08 Kevin Buettner <kevinb@redhat.com>
287 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
288 it's no longer required.
290 2002-04-08 Andrew Cagney <ac131313@redhat.com>
292 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
294 2002-04-08 Kevin Buettner <kevinb@redhat.com>
296 From Jimi X <jimix@watson.ibm.com>:
297 * rs6000-tdep.c (rs6000_software_single_step): Use
298 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
299 and size. Use target_insert_breakpoint() and
300 target_remove_breakpoint() to insert and remove breakpoints
301 instead of explicit memory reads and writes.
303 2002-04-08 Kevin Buettner <kevinb@redhat.com>
305 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
306 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
307 ELF_OBJECT_FORMAT ifdef.
309 2002-04-08 Kevin Buettner <kevinb@redhat.com>
311 From Jimi X <jimix@watson.ibm.com>:
312 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
314 2002-04-08 Kevin Buettner <kevinb@redhat.com>
316 From Jimi X <jimix@watson.ibm.com>:
317 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
318 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
320 2002-04-07 Mark Kettenis <kettenis@gnu.org>
322 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
323 s/asprintf/xasprintf/.
324 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
326 2002-04-07 Andrew Cagney <ac131313@redhat.com>
328 I believe Jeff Law denies responsability for this one:
329 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
330 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
331 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
332 Work-around for PR gdb/366.
334 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
336 * remote-e7000.c (write_small, e7000_read_inferior_memory,
337 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
338 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
340 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
342 * sh-tdep.c (sh_fp_frame_init_saved_regs,
343 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
346 2002-04-07 Andrew Cagney <ac131313@redhat.com>
348 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
351 2002-04-07 Andrew Cagney <ac131313@redhat.com>
353 * README (Reporting Bugs in GDB): Document the bug web page as the
354 prefered way of submitting bugs.
357 2002-04-06 Andrew Cagney <ac131313@redhat.com>
359 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
361 * gdbarch.h, gdbarch.c: Re-generate.
363 2002-04-07 Andreas Schwab <schwab@suse.de>
365 * m68klinux-nat.c (fill_fpregset): Properly pass address of
366 buffer to regcache_collect.
368 2002-04-06 Andrew Cagney <ac131313@redhat.com>
370 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
371 * gdbarch.c, gdbarch.h: Re-generate.
373 2002-04-06 Andrew Cagney <ac131313@redhat.com>
375 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
376 declaration. Fix -Werror.
378 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
380 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
381 * gdbarch.c: Regenerate.
383 2002-04-05 Michael Snyder <msnyder@redhat.com>
385 * breakpoint.c (clear_command): Rewrite middle section to
386 combine two loops with identical control conditions.
387 Add a cleanup to eliminate a memory leak.
388 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
390 2002-04-05 H.J. Lu (hjl@gnu.org)
392 * solib-svr4.c (bkpt_names): Add "__start".
394 2002-04-04 Andrew Cagney <ac131313@redhat.com>
396 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
397 as test for 64 bit target.
399 2002-04-05 Andrew Cagney <ac131313@redhat.com>
401 * h8500-tdep.c (h8500_write_fp): Delete function.
402 * dwarf2cfi.c (cfi_write_fp): Document as not used.
403 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
404 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
406 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
407 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
409 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
410 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
411 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
412 (d10v_write_fp): Delete function.
413 * inferior.h (write_fp, generic_target_write_fp): Delete
415 * regcache.c (generic_target_write_fp): Delete function.
416 (write_fp): Delete function.
417 * gdbarch.sh (TARGET_WRITE_FP): Delete.
418 * gdbarch.h, gdbarch.c: Regenerate.
419 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
420 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
421 (sparc64_write_fp): Delete declaration.
422 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
423 (h8500_write_fp): Delete declaration.
425 2002-04-04 Andrew Cagney <ac131313@redhat.com>
427 * sparc-tdep.c (sparc64_write_fp): Delete.
428 (sparc_push_dummy_frame): Replace write_fp call with code to store
430 (sparc_gdbarch_init): Do not initialize write_fp.
432 2002-04-05 Kevin Buettner <kevinb@redhat.com>
434 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
437 2002-03-29 Jim Blandy <jimb@redhat.com>
439 * stack.c (get_selected_block): Add new argument `addr_in_block',
440 used to return the exact code address we used to select the block,
442 * blockframe.c (get_frame_block, get_current_block): Same.
443 * frame.h (get_frame_block, get_current_block,
444 get_selected_block): Update declarations.
445 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
446 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
448 2002-04-05 Michael Snyder <msnyder@redhat.com>
450 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
453 2002-04-05 J. Brobecker <brobecker@gnat.com>
455 * utils.c (xfullpath): New function.
456 * defs.h (xfullpath): Add declaration.
457 * source.c (openp): Use xfullpath in place of gdb_realpath to
458 avoid resolving the basename part of filenames when the
459 associated file is a symbolic link. This fixes a potential
460 inconsistency between the filenames known to GDB and the
461 filenames it prints in the annotations.
462 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
463 to be able to match a filename with either the real filename, or
464 the name of any symbolic link to this file.
465 (lookup_partial_symtab): Ditto.
467 2002-04-04 Michael Snyder <msnyder@redhat.com>
469 * breakpoint.c: Add support for hardware breakpoints in overlays.
470 (overlay_events_enabled): New state variable.
471 (insert_breakpoints): Use overlay_events_enabled to decide
472 whether to attempt to set a breakpoint at the overlay load addr.
473 Handle bp_hardware_breakpoint as well as bp_breakpoint.
474 (remove_breakpoint): Use overlay_events_enabled to decide
475 whether breakpoints need to be removed from overlay load addr.
476 Handle bp_hardware_breakpoint as well as bp_breakpoint.
477 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
478 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
479 disable_overlay_breakpoints): Update overlay_events_enabled.
481 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
483 * dwarf2read.c (struct function_range): New.
484 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
485 (check_cu_functions): New.
486 (read_file_scope): Initialize global function lists.
487 Call dwarf_decode_line after processing children.
488 (read_func_scope): Add to global function list.
489 (dwarf_decode_lines): Call check_cu_functions everywhere
490 record_line is called. Call record_line with a linenumber
491 of 0 to mark sequence ends.
493 2002-04-04 Michal Ludvig <mludvig@suse.cz>
495 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
496 change sync with glibc.
498 2002-04-03 Jim Blandy <jimb@redhat.com>
500 * configure.in: Call AC_C_INLINE.
501 * configure: Regenerated.
503 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
505 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
506 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
508 2002-03-31 Mark Kettenis <kettenis@gnu.org>
510 * NEWS: Mention gcore support on FreeBSD/i386.
512 * fbsd-proc.c: New file.
513 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
514 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
516 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
519 2002-03-29 Jim Blandy <jimb@redhat.com>
521 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
522 unescaped newlines in string literals, but newer ones don't. So
525 2002-03-26 Michael Snyder <msnyder@redhat.com>
526 Andrew Cagney <cagney@redhat.com>
528 * cli/cli-dump.c: New file. Dump memory to file,
529 restore file to memory.
530 * cli/cli-dump.h: New file.
531 * Makefile.in: Add rules, dependencies for cli-dump.o.
532 * NEWS: Mention new commands.
534 2002-03-28 Michael Snyder <msnyder@redhat.com>
536 * symfile.c (symbol_file_add): Move test for null symbols to later.
538 2002-03-27 Andrew Cagney <ac131313@redhat.com>
540 From veksler at il.ibm.com:
541 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
542 the xstrduped original path.
545 2002-03-27 Michael Snyder <msnyder@redhat.com>
547 * breakpoint.c (_initialize_breakpoint): Clean up help string.
548 * infcmd.c (_initialize_infcmd): Ditto.
549 * language.c (_initialize_language): Ditto.
550 * symfile.c (_initialize_symfile): Ditto.
551 * top.c (_init_main): Ditto.
552 * cli/cli-cmds.c (init_cli_cmds): Ditto.
554 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
556 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
557 vector registers handling.
558 (skip_prologue): Handle new AltiVec instructions. Fill in new
559 fields of frame data.
560 (frame_get_saved_regs): Fill in information for AltiVec registers.
562 2002-03-27 Jim Blandy <jimb@redhat.com>
564 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
565 a function; leave this macro here to invoke that function.
566 (symbol_init_mangled_name): Declaration for that function.
567 * symtab.c (symbol_init_mangled_name): New function.
569 2002-03-27 Andrew Cagney <ac131313@redhat.com>
571 * valarith.c: Replace strerror with safe_strerror.
572 * tracepoint.c: Ditto.
578 2002-03-27 Andreas Schwab <schwab@suse.de>
580 * event-top.c (command_line_handler): Remove useless if.
582 2002-03-27 Andreas Jaeger <aj@suse.de>
584 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
587 2002-03-27 Michal Ludvig <mludvig@suse.cz>
589 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
590 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
591 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
592 (x86_64_linux_dr_get_status, supply_gregset),
593 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
594 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
595 (x86_64_register_info_table): Add.
596 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
597 (x86_64_register_raw_size, x86_64_register_virtual_type),
598 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
599 general x86_64_register_info_table.
600 (i386_gdbarch_init): gdbarch_register_bytes is now set
601 dynamicaly during initialization.
602 * regformats/reg-x86-64.dat: Synced with changes to registers above.
603 * gdbserver/linux-x86-64-low.c: Ditto.
605 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
607 * gdbserver/server.c (main): Call target_signal_to_host_p
608 and target_signal_to_host on signals received from the remote.
609 * gdbserver/remote-utils.c (prepare_resume_reply): Call
610 target_signal_from_host on signals sent to the remote.
611 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
612 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
614 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
616 * signals/signals.c: Include "server.h" in gdbserver build.
617 (target_signal_from_name): Don't use STREQ.
618 (_initialize_signals): Likewise. Don't include function in
621 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
623 * signals.c: Moved to...
624 * signals/signals.c: Here.
625 * Makefile (signals.o): Update.
627 2002-03-26 Jeff Law (law@redhat.com)
629 * somread.c (som_symtab_read): Remove some commented out code and
630 updated related comments. Do not set the minimal symbol table to
631 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
632 in a dynamic executable.
633 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
634 where we are unable to find the minimal symbol for the given
637 2002-03-25 Jeff Law (law@redhat.com)
639 * linux-proc.c (read_mapping): Scan up to end of line for filename.
641 2002-03-25 Michal Ludvig <mludvig@suse.cz>
643 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
645 2002-03-23 Andrew Cagney <ac131313@redhat.com>
647 * command.h: Update copyright.
648 (struct cmd_list_element): Replace definition with opaque
650 (enum cmd_types): Document that it will eventually be moved to
652 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
653 (MALLOCED_REPLACEMENT): Delete macro.
654 * Makefile.in (cli_decode_h): Add $(command_h).
655 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
656 * top.c: Include "cli/cli-decode.h".
657 * completer.c: Include "cli/cli-decode.h".
658 * maint.c: Include "cli/cli-decode.h".
659 * cli/cli-decode.h: Include "command.h".
660 (enum command_class): Delete.
661 (enum cmd_types): Comment out.
662 (enum cmd_auto_boolean): Delete.
663 (enum var_types): Delete.
665 2002-03-23 Andrew Cagney <ac131313@redhat.com>
667 * cli/cli-decode.c: Include "gdb_assert.h".
668 (add_set_or_show_cmd): New static function.
669 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
670 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
671 all fields, such as func, from the set command.
673 2002-03-23 Andrew Cagney <ac131313@redhat.com>
675 * MAINTAINERS (sh-elf): Change warning flag to -w.
677 2002-03-23 Andrew Cagney <cagney@redhat.com>
679 * defs.h (error): Add printf format attribute.
680 * thread-db.c (thread_from_lwp): Fix error format string.
681 * stack.c (parse_frame_specification): Ditto.
682 * cli/cli-decode.c (undef_cmd_error): Ditto.
683 * scm-lang.c (scm_lookup_name): Ditto.
684 * tracepoint.c (trace_error): Ditto.
685 * remote-utils.c (usage): Ditto.
686 * remote.c (compare_sections_command): Ditto.
689 2002-03-22 Andrew Cagney <ac131313@redhat.com>
691 * gdbtypes.c (append_composite_type_field): New function.
692 (init_composite_type): New function.
693 * gdbtypes.h (append_composite_type_field): Declare.
694 (init_composite_type): Ditto.
696 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
698 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
700 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
701 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
702 structure returning convention for SYSV ABI case, but not
703 for GNU/Linux, FreeBSD, or NetBSD.
705 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
707 * symtab.h (lookup_block_symbol): Add mangled_name argument
710 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
711 with new mangled_name argument.
712 * linespec.c (decode_line_1): Likewise.
713 * valops (value_of_this): Likewise.
714 * symtab.c (lookup_transparent_type): Likewise.
715 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
716 (lookup_symbol): If we are given a mangled name, pass it down
717 to lookup_symbol_aux.
718 (lookup_block_symbol): If we are given a mangled name to check
719 against, only return symbols which match it.
721 2002-03-22 Christopher Faylor <cgf@redhat.com>
723 * win32-nat.c (child_create_inferior): Check for proper shell to use
724 here, in case the user changes it on the fly.
725 (_initialize_inftarg): Remove shell path considerations.
727 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
729 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
730 for gdbarch_max_register_raw_size and max_register_virtual_size.
731 Adjust copyright year.
733 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
735 * dbxread.c (process_one_symbol): Extend the first N_SLINE
736 in a function to cover the entire beginning of the function
737 as well if it does not already.
739 2002-03-21 Tom Rix <trix@redhat.com>
741 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
742 (rs6000_ptrace64): Renamed from ptrace64.
744 2002-03-20 Martin M. Hunt <hunt@redhat.com>
746 * gdbserver/remote-utils.c (remote_open): Don't call
747 getprotobyname, we're all using TCP here so just use
749 * gdbserver/gdbreplay.c (remote_open): Ditto.
751 2002-03-20 Martin M. Hunt <hunt@redhat.com>
753 * regcache.c (_initialize_regcache): No need to call
754 build_regcache() at this time; it gets called whenever
757 2002-03-20 David O'Brien <obrien@FreeBSD.org>
759 * sparc-nat.c: Include sys/param.h where possible.
761 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
764 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
765 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
766 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
768 * stabsread.c (rs6000_builtin_type): Likewise.
769 (read_sun_floating_type): Likewise.
771 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
773 * stabsread.c (read_member_functions): Remove skip code for duplicate
774 constructor/destructor methods. Use standard parsing for these
775 methods and just do not chain them to the list of methods after
778 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
780 * coffread.c: Remove redundant static declarations. Replace
781 occurrences of `PTR' with `void *'.
782 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
783 * top.h (quit_cover): Likewise.
784 * defs.h (catch_errors): Likewise.
786 2002-03-18 Andrew Cagney <ac131313@redhat.com>
788 * defs.h (XMALLOC): Define.
789 * gdb-events.sh (XMALLOC): Delete macro.
790 * gdb-events.c, gdb-events.h: Regenerate.
791 * gdbarch.sh (XMALLOC): Delete macro.
792 * gdbarch.c: Regenerate.
793 * serial.c (XMALLOC): Delete macro.
794 * ui-file.c (XMALLOC): Ditto.
795 * ser-unix.h (XMALLOC): Ditto.
796 * sh-tdep.c (XMALLOC): Ditto.
797 * ui-out.c (XMALLOC): Ditto.
798 * utils.c (XMALLOC): Ditto.
799 * i386-tdep.c (XMALLOC): Ditto.
800 * gdb-events.c (XMALLOC): Ditto.
801 * d10v-tdep.c (XMALLOC): Ditto.
802 * cli-out.c (XMALLOC): Ditto.
804 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
805 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
806 * ui-file.c, ui-out.c: Ditto.
808 2002-03-18 Andrew Cagney <ac131313@redhat.com>
810 * command.h (struct cmd_list_element): Add field context.
811 (set_cmd_context, get_cmd_context): Declare.
812 * cli/cli-decode.h: Ditto.
813 * cli/cli-decode.c (get_cmd_context): New function.
814 (set_cmd_context): New function.
815 (add_cmd): Initialize context.
816 Part of fixing PR gdb/145 and PR gdb/146.
818 2002-03-17 Andrew Cagney <ac131313@redhat.com>
820 * cli/cli-decode.c (cmd_type): New function.
821 * command.h (cmd_type): Declare.
822 * infrun.c (set_schedlock_func): Call function cmd_type.
823 * kod.c (kod_set_os): Call cmd_type.
824 * cris-tdep.c (cris_version_update): Use function cmd_type.
825 (cris_mode_update, cris_abi_update): Ditto.
827 * command.h: (execute_cmd_post_hook): Declare.
828 (execute_cmd_pre_hook): Declare.
829 * cli/cli-script.c (clear_hook_in_cleanup): New function.
830 (execute_cmd_post_hook, execute_cmd_pre_hook): New
831 functions. Execute pre/post hook while ensuring that afterwords
833 * top.c (execute_command): Use execute_cmd_post_hook, and
834 execute_cmd_pre_hook to execute pre/post commands.
835 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
837 (hook_stop_stub): Call execute_cmd_pre_hook.
839 2002-03-17 Andrew Cagney <ac131313@redhat.com>
841 * kod.c (kod_set_os): Revert previous change. Is called by ``info
842 set'' and this leads to a core dump. Move xstrdup of
843 operating_system to after check that it is not NULL.
845 2002-03-17 Andrew Cagney <ac131313@redhat.com>
847 * kod.c (kod_set_os): Remove unnecessary check that
848 ``command->type'' is set_cmd.
850 * valprint.c (set_input_radix): Use input_radix.
851 (set_output_radix): Use output_radix.
852 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
855 2002-03-16 Andrew Cagney <ac131313@redhat.com>
857 * value.h (struct value): Delete field ``substring_addr''. Change
858 aligner fields to force_doublest_align, force_longest_align,
859 force_core_addr_align and force_pointer_aligh.
861 * value.h (struct value): Fix typo in above change.
863 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
865 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
866 to fix internal_error from ``maintenance print architecture''.
868 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
870 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
871 for gcc versions after gcc-2.8.1.
873 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
875 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
876 for method resolution. Restore adjustment of ``this'' pointer after
877 calling value_struct_elt, which was accidentally removed during the
880 2002-03-15 Andrew Cagney <ac131313@redhat.com>
882 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
884 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
886 * value.h (value_of_register): Update.
888 2002-03-14 Richard Henderson <rth@redhat.com>
890 * configure.in: Detect declaration for canonicalize_file_name.
891 * utils.c (canonicalize_file_name): Declare, if needed.
892 (gdb_realpath): Prefer realpath if available and usable.
893 * config.in, configure: Rebuild.
895 2002-03-14 Richard Henderson <rth@redhat.com>
897 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
898 a constant array bound.
900 * MAINTAINERS: Add myself to write-after-approval.
902 2002-03-14 Michael Snyder <msnyder@redhat.com>
904 * symfile.c (syms_from_objfile): Return immediately if no syms.
905 (symbol_file_add): Return immediately if no syms.
906 (find_sym_fns): Return immediately if no syms.
908 2002-03-13 Michal Ludvig <mludvig@suse.cz>
910 * gdbserver/remote-util.c (remote_open): Print remote-side's
911 IP address when remote debugging over the network.
913 2002-03-12 David O'Brien <obrien@FreeBSD.org>
915 * config/sparc/fbsd.mh: Fix copyright.
916 * config/sparc/fbsd.mt: Likewise.
918 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
920 * MAINTAINERS: Fix typo in name of gdb warnings option.
921 (x86-64): Fix formating so that this can be parsed by awk.
923 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
925 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
926 * defs.h: Include "gdb/signals.h".
927 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
929 2002-03-10 Michal Ludvig <mludvig@suse.cz>
931 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
932 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
935 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
936 Don Howard <dhoward@redhat.com>
938 * mips-tdep.c (ST0_FR): Define.
939 (mips2_fp_compat): New function, temporarily disabled.
940 (mips_read_fp_register_single): New function.
941 (mips_read_fp_register_double): New function.
942 (mips_print_register): Use them.
943 (do_fp_register_row): Likewise.
945 2002-03-09 Andrew Cagney <ac131313@redhat.com>
947 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
950 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
952 * stabsread.c (read_member_functions): Fix is_stub test for
953 static member functions, improve comment.
955 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
957 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
958 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
959 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
960 commands that set boolean values.
961 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
962 (arm_rdi_resume): Always initialize PC.
963 (arm_rdi_open): Don't use rslt as a boolean.
964 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
965 (arm_rdi_fetch_registers, arm_rdi_store_registers)
966 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
967 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
969 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
971 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
972 * configure: Rebuilt.
974 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
976 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
977 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
979 2002-03-06 Andrew Cagney <ac131313@redhat.com>
981 * cli/cli-decode.c (set_cmd_completer): New function.
982 * command.h (set_cmd_completer): Declare.
983 * cli/cli-decode.h (set_cmd_completer): Ditto.
985 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
986 * cli/cli-cmds.c (init_cli_cmds): Ditto.
987 * win32-nat.c (_initialize_inftarg): Ditto.
988 * remote-rdi.c (_initialize_remote_rdi): Ditto.
989 * proc-api.c (_initialize_proc_api): Ditto.
990 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
991 * source.c (_initialize_source): Ditto.
992 * exec.c (_initialize_exec): Ditto.
993 * solib.c (_initialize_solib): Ditto.
994 * top.c (init_main): Ditto.
995 * tracepoint.c (_initialize_tracepoint): Ditto.
996 * symfile.c (_initialize_symfile): Ditto.
997 * printcmd.c (_initialize_printcmd): Ditto.
998 * infcmd.c (_initialize_infcmd): Ditto.
999 * corefile.c (_initialize_core): Ditto.
1001 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1003 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1005 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1007 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1009 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1011 * NEWS: Update headings, 5.2 has branched.
1013 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1015 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1016 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1017 (register_addr, REGISTER_RAW_SIZE): Likewise.
1018 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1019 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1021 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1023 * MAINTAINERS (x86-64): Add myself.
1024 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1025 changed value_ptr -> struct value *
1027 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1029 * configure.host (sparc64-*-freebsd): Add.
1030 * configure.tgt: Likewise.
1031 * config/sparc/fbsd.mh: New file.
1032 * config/sparc/fbsd.mt: Likewise.
1033 * config/sparc/nm-fbsd.h: Likewise.
1034 * config/sparc/tm-fbsd.h: Likewise.
1036 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1038 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1039 regformats/reg-s390x.dat.
1041 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1043 * utils.c: Add FIXME explaining true/false problem.
1045 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1047 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1049 2002-02-28 Michael Chastain <mec@shout.net>
1051 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1053 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1055 * gdbserver/linux-s390-low.c: New file.
1056 * regformats/reg-s390.dat: New file.
1057 * regformats/reg-s390x.dat: New file.
1058 * gdbserver/configure.srv: Add S/390.
1059 * gdbserver/Makefile.in: Add S/390.
1060 * configure.tgt: Enable gdbserver for S/390.
1062 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1064 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1065 first line of the doc string for "info dos", except at the end of
1066 the sentence, since the short help stops at the first period.
1068 2002-02-28 Jason Merrill <jason@redhat.com>
1070 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1072 2002-02-27 Fred Fish <fnf@redhat.com>
1074 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1075 comment (dumy -> dummy).
1077 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1079 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1081 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1083 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1085 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1087 * gdbserver/acconfig.h: New file.
1088 * gdbserver/i387-fp.c: New file.
1089 * gdbserver/i387-fp.h: New file.
1090 * gdbserver/linux-x86-64.c: New file.
1091 * regformats/reg-x86-64.dat: New file.
1092 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1093 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1094 * gdbserver/configure.in: Add support for regsets.
1095 * gdbserver/config.in: Regenerate.
1096 * gdbserver/configure: Regenerate.
1097 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1098 * gdbserver/linux-low.h: New file.
1099 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1101 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1102 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1103 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1104 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1105 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1106 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1107 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1108 "i387-fp.h". Add PTRACE_GETREGS and friends.
1109 * gdbserver/regcache.c (supply_register): New function.
1110 (supply_register_by_name): New function.
1111 (collect_register): New function.
1112 (collect_register_by_name): New function.
1114 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1116 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1117 (config.status): Add configure.srv dependency.
1118 (server_h): Add config.h dependency.
1120 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1122 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1123 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1124 * gdbserver/configure.srv: Change i386-*-linux* to use
1127 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1129 * x86-64-tdep.c: Re-indent. Update copyright date.
1131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1133 From Michal Ludvig <mludvig@suse.cz>:
1134 * x86-64-tdep.c (value.h): Delete.
1135 (gdb_assert.h): Include.
1136 (x86_64_register_convert_to_virtual,
1137 x86_64_register_convert_to_raw ): Add check which lets only
1138 floating-point values to be converted.
1139 (value_push): Delete.
1140 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1141 (i386_gdbarch_init): Number of register_bytes fixed.
1143 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1145 * MAINTAINERS: Add x86-64 target.
1147 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1149 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1150 * osfsolib.c (solib_map_sections): Ditto.
1151 * irix5-nat.c (solib_map_sections): Ditto.
1152 * corelow.c (gdb_check_format): Ditto.
1153 * symfile.c (symfile_bfd_open): Ditto.
1154 * solib.c (solib_map_sections): Ditto.
1157 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1159 * remote.c (_initialize_remote): By default, disable ``e'' and
1160 ``E'' step out-of-range packets.
1162 2002-02-26 Andreas Schwab <schwab@suse.de>
1164 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1165 m68k_linux_frame_saved_pc.
1166 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1168 (SIGCONTEXT_PC_OFFSET): Remove.
1169 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1170 m68k_linux_sigtramp_saved_pc): New functions.
1171 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1172 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1173 (UCONTEXT_PC_OFFSET): Define.
1174 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1175 non-RT and RT signal trampolines.
1177 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1179 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1180 (TARGET_NBPG, STACK_END_ADDR): Delete
1181 (VARIABLES_INSIDE_BLOCK): Delete.
1183 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1185 * utils.c (perror_with_name): Make string parameter constant.
1186 (print_sys_errmsg): Ditto.
1188 * defs.h (perror_with_name): Update.
1189 (print_sys_errmsg): Update.
1192 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1194 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1195 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1197 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1199 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1200 if it already matches the current architecture from the exec file.
1201 Include arch-utils.h for gdbarch_info_init prototype.
1202 * Makefile.in (rs6000-nat.o): Update dependencies.
1204 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1206 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1207 list of exported variables.
1209 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1211 * gdbserver/configure.srv: New file.
1212 * gdbserver/configure.in: Use configure.srv instead
1213 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1215 * gdbserver/configure: Regenerated.
1216 * gdbserver/terminal.h: New file.
1217 * gdbserver/Makefile.in: Update for configure changes. Remove
1218 more unneeded include paths.
1220 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1222 From wiz at danbala:
1223 * config/sparc/tm-sp64.h: Fix grammar and typos.
1226 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1228 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1229 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1230 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1231 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1232 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1233 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1234 * s390-tdep.c: Ditto.
1235 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1236 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1237 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1238 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1239 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1240 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1241 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1242 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1243 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1244 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1247 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1249 * lin-thread.c: Delete file.
1250 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1251 to gdb_proc_service.h.
1252 * configure: Re-generate.
1254 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1255 * serial.c (serial_open): Delete check for "ocd".
1258 * Makefile.in (linux-thread.o): Delete target.
1259 * linux-thread.c: Delete file.
1261 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1262 renamed SH files to be consistent.
1264 * symtab.c (sort_search_symbols): Use xfree.
1266 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1268 * arm-linux-tdep.c (arm_linux_init_abi): Register
1269 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1270 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1271 definition with undef, since we don't want the sysvr4 definition.
1272 (SKIP_TRAMPOLINE_CODE): Likewise.
1274 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1276 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1278 * configure.in: (AC_CHECK_FUNCS) Added test for
1279 canonicalize_file_name Regenerated.
1280 * config.in, configure: Regenerated.
1281 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1282 defined use canonicalize_file_name.
1284 2002-02-23 Michael Chastain <mec@shout.net>
1286 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1288 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1290 * README: Remove references to cygnus.com.
1291 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1292 dot com'' form. Remove references to cygnus.com and sourceware.
1294 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1296 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1297 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1298 1003.1-2001 no longer allows "head -1".
1299 * gdb/Makefile.in (version.c): Likewise.
1300 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1301 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1302 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1304 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1306 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1307 * command.h (cmd_cfunc_eq): Declare.
1308 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1310 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1311 ``struct cmd_list_element *''.
1312 * cli/cli-cmds.c (is_complete_command): Update. Use
1314 * top.c (execute_command): Pass the command to
1315 is_complete_command.
1316 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1318 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1320 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1321 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1322 architecture defines.
1323 * s390-tdep.c (s390_gdbarch_init): Likewise.
1325 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1327 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1328 (arm_linux_push_arguments): Likewise.
1329 (arm_linux_init_abi): Register them. Also register linux-specific
1331 (find_minsym_and_objfile): Use strcmp, not STREQ.
1332 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1333 (arm_linux_call_dummy_words): Delete declaration.
1334 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1335 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1337 (LOWEST_PC): Delete.
1339 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1341 * maint.c (print_section_info): Do not prepend `0x' to filepos
1342 output, it will be handled by local_hex_string_custom.
1344 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1346 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1347 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1348 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1350 2002-02-22 Jim Blandy <jimb@redhat.com>
1352 Indicate that the bcache functions don't change the strings
1354 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1355 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1357 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1359 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1361 2002-02-21 Christopher Faylor <cgf@redhat.com>
1363 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1364 find the complete path to a loaded DLL.
1366 2002-02-21 Fred Fish <fnf@redhat.com>
1368 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1369 that marks the end of the range of a function, enter a line number
1370 entry that has a line number of zero and a PC offset that matches
1371 the end of the function. This starts a range of PC's for which no
1372 line number information is known.
1373 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1374 PC's for which no line number info is found (line number is zero)
1375 then we didn't find any valid line information.
1376 * symtab.h: Document use of zero line number entry.
1378 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
1380 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1381 (have_ptrace_getvrregs): Define for run time checks.
1382 (gdb_vrregset_t): New type for Altivec register handling.
1383 (fetch_register, store_register): Fetch/store altivec register
1385 (fetch_altivec_register, store_altivec_register): New functions.
1386 (supply_vrregset, fill_vrregset): New functions.
1387 (fetch_altivec_registers, store_altivec_registers): New functions.
1388 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1391 2002-02-21 Jiri Smid <smid@suse.cz>
1393 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1395 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1397 * Makefile.in (armnbsd-nat.o): Update dependencies.
1398 * armnbsd-nat.c (supply_gregset): New function. Common code to
1399 supply the integer register set.
1400 (supply_fparegset): New function. Similar for FPA registers.
1401 (fetch_regs, fetch_fp_regs): Use them.
1402 (fetch_core_registers): Likewise.
1403 (fetch_elfcore_registers): New function.
1404 (arm_netbsd_elfcore_fns): New core-file type specification.
1405 (_initialize_arm_netbsd_nat): Register it.
1407 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1409 * armnbsd-nat.c: Include gdbcore.h.
1410 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1411 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1412 'void' to declaration, to shut up ARI.
1413 (fetch_core_registers): Make static. Rewrite using supply_register.
1414 (arm_netbsd_core_fns): New core-file type specification.
1415 (_initialize_arm_netbsd_nat): New function.
1417 2002-02-21 Christopher Faylor <cgf@redhat.com>
1419 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1422 2002-02-20 Christopher Faylor <cgf@redhat.com>
1424 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1427 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1429 * jv-exp.y (parse_number): Change type of implicit longs
1430 to builtin_type_uint64.
1432 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1434 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1435 to be an integer instead of a `union wait'.
1437 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1439 * mips-linux-nat.c: Call the operating system GNU/Linux.
1440 * mips-linux-tdep.c: Likewise.
1441 * mips-tdep.c: Likewise.
1443 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1446 * jv-exp.y (parse_number): Handle 64-bit integers.
1448 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1450 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1451 AC_STDC_HEADERS to AC_HEADER_STDC.
1452 * gdbserver/configure: Regenerated.
1454 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1456 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1458 * sparc-tdep.c (get_longjmp_target): Likewise.
1460 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1462 * News: Add news about ARM and Multi-arch. Mention the new target
1465 2002-02-19 Jim Blandy <jimb@redhat.com>
1467 * stabsread.c (error_type_complaint): Improve error message.
1469 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
1471 * gdbserver/README: Update documentation.
1472 * gdbserver/configure.in: Update configury to match documentation.
1473 * gdbserver/Makefile.in: Likewise.
1474 * gdbserver/configure: Regenerated.
1475 * gdbserver/aclocal.m4: New file, generated by aclocal.
1476 * gdbserver/config.in: New file, generated by autoheader.
1478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1480 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1485 * arm-tdep.h (enum arm_float_model): New enum.
1486 (struct gdbarch_tdep): Add fp_model.
1487 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1488 up floating-point conversions until we know the floating-point model
1489 in use by the inferior. Don't complain about being unable to
1490 determine the ABI of the inferior when we don't have one.
1491 (arm_extract_return_value): Support different floating-point models.
1492 (arm_store_return_value): Likewise.
1493 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
1495 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1497 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1499 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1500 of ``current_gdbarch''.
1502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1504 * armnbsd-nat.c : ANSIfy all function declarations.
1505 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1506 (fetch_inferior_registers): Re-implement in terms of above.
1507 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1508 (store_inferior_registers): Re-implement in terms of above.
1510 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1512 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
1514 * arm-linux-tdep.c: Likewise.
1515 * config/arm/tm-linux.h: Likewise.
1517 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1519 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1520 * config/arm/nbsd.mt (TM_FILE): Delete.
1521 * config/arm/tm-nbsd.h: Delete.
1523 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1525 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1526 Initialize CALL_DUMMY_LENGTH.
1528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1530 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1532 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
1533 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
1534 defines one thing and that is incorrect for this port.
1535 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1537 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1539 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1541 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1543 * win32-nat.c (display_selector): New function. Displays information
1544 about the information returned by GetThreadSelectorEntry API function.
1545 (display_selectors): New function. Displays the infomation of
1546 the selector given as argument, or of CS, DS ans FS selectors
1547 if no argument is given.
1548 ( _initialize_inftarg): Add "w32" as info prefix command.
1549 Add "info w32 selector" as command calling display_selectors.
1551 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1553 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1554 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1557 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1559 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1561 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1563 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1564 (arm_fix_call_dummy): Call it.
1565 (arm_call_dummy_breakpoint_offset): Delete.
1566 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1567 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1569 2002-02-18 Andrew Cagney <ac131313@redhat.com>
1571 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1572 Default to func_frame_chain_valid.
1573 * gdbarch.h, gdbarch.c: Re-generate.
1574 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1576 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
1578 * ppc-linux-nat.c: Update copyright.
1579 (fetch_register, store_register): Add tid parameter, don't compute
1581 (fetch_ppc_registers, store_ppc_registers): Add tid
1582 parameter. Pass it along to callees.
1583 (fetch_inferior_registers, store_inferior_registers): Compute tid
1584 here, and pass it to calleed functions.
1585 (fill_gregset, supply_fpregset): Clean up formatting.
1587 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1589 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1590 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1594 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1595 * gdbarch.c gdbarch.h: Regenerate.
1596 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1598 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1599 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1600 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1602 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1603 * arm-tdep.c (arm_get_longjmp_target): New function.
1604 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1605 this to a positive value register arm_get_longjmp_target as the
1607 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1608 (arm_linux_init_abi): Set up longjmp description in tdep.
1609 * armnbsd-nat.c (get_longjmp_target): Delete.
1610 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1611 description in tdep.
1612 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1613 (get_longjmp_target): Delete declaration.
1614 (GET_LONGJMP_TARGET): Delete.
1615 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1616 (GET_LONGJMP_TARGET): Delete.
1618 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1620 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1621 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1622 of ``current_gdbarch''.
1624 2002-02-17 Tom Tromey <tromey@redhat.com>
1626 * cli/cli-cmds.c (compare_strings): New function.
1627 (complete_command): Only print each unique item once.
1628 * completer.h (complete_line): Declare.
1629 * completer.c (complete_line): New function.
1630 (line_completion_function): Use it.
1632 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1634 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1635 * gdbarch.h, gdbarch.c: Re-generate.
1637 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1639 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1641 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1643 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1644 * valops.c (value_arg_coerce): Don't take the address of a reference
1645 to convert an argument to a reference.
1647 2002-02-15 Christopher Faylor <cgf@redhat.com>
1649 * win32-nat.c (get_image_name): New function.
1650 (handle_load_dll): Use get_image_name function.
1651 (get_child_debug_event): Avoid registering debug events until possibly
1652 execed process is started.
1653 (child_create_inferior): Allow invocation via shell so that command
1654 line redirection, etc. works ok.
1655 (_initialize_inftarg): Add new command: "set shell" to control whether
1656 a shell is used to start a process.
1658 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1660 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1661 instead of find_register_by_number.
1662 (cannot_store_register): Likewise.
1664 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1666 * dwarf2read.c: Replace fprintf (stderr, ...) by
1667 fprintf_unfiltered (gdb_stderr, ...).
1669 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1671 * gdbserver/gdbserver.1: Document --attach.
1673 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1675 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1677 * arm-tdep.c (arm_default_arm_le_breakpoint)
1678 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1679 (arm_default_thumb_be_breakpoint): New. Initialize them from
1680 traditional breakpoint defines.
1681 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1682 (arm_gdbarch_init): Initialize new breakpoint variables.
1683 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1684 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1685 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1686 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1688 (arm_netbsd_init_abi_common): ... here; new function.
1689 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1690 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1691 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1692 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1694 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1696 * arm-tdep.h (enum arm_abi): New enum.
1697 (struct gdbarch_tdep): New structure.
1698 (LOWEST_PC): Provide a default.
1699 (arm_gdbarch_register_os_abi): Declare new function.
1700 * arm-tdep.c (arm_abi_names): New array.
1701 (process_note_abi_tag_sections): New function.
1702 (get_elfosabi): New function.
1703 (arm_gdbarch_register_os_abi): New function.
1704 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1705 support for that ABI has been built in, then call the appropriate
1706 configuration routine. Use gdbarch_num_regs() to get the number
1708 (arm_dump_tdep): New function.
1709 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1710 place-holder functions.
1711 (_initialize_arm_tdep): Register them.
1712 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1714 * armnbsd-tdep.c: New file.
1715 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1716 * config/arm/nbsd.mt (TDEPFILES): Add it.
1717 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1719 * armnbsd-nat.c: Include regcache.h.
1720 * Makefile.in (armnbsd-nat.o): Update dependency list.
1722 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1724 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1726 * gdbserver/Makefile.in: Fix typos in target rules.
1728 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1730 Fix part of PR gdb/267.
1731 * linespec.c (find_methods): Handle constructors specially for now.
1733 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1735 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1737 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1738 standard_coerce_float_to_double().
1740 2002-02-14 Christopher Faylor <cgf@redhat.com>
1742 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1745 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1747 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1748 find_variant_by_name, because it confuses the multiarch
1749 framework. Return NULL if there isn't an architecture with the
1750 user supplied name, instead of forcing a different one without
1751 recording the change with the multiarch machinery.
1752 (find_variant_by_name): Delete.
1754 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1756 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1757 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1759 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1761 * stack.c (print_frame_info_base): When calling
1762 print_frame_info_listing_hook, set current_source_symtab.
1764 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1766 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1767 and remove unused $(INCLUDE_DIR).
1768 Add regcache.c to OBS.
1769 Add generated register protocol files to clean target.
1770 Update dependencies for new objects, obsolete old target code.
1772 * gdbserver/linux-low.c: Remove all platform-specific code to
1773 new files. Remove various dead code. Update to use regcache
1775 * gdbserver/remote-utils.c (fromhex): Add return statement
1777 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1779 (input_interrupt): Add integer parameter to match prototype
1780 of a signal handler.
1781 (outreg): Use register_data ().
1782 (prepare_resume_reply): Use gdbserver_expedite_regs.
1783 * gdbserver/server.c (main): Dynamically allocate own_buf because
1784 PBUFSIZ is no longer constant. Use registers_to_string () and
1785 registers_from_string ().
1786 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1787 for error (), fatal (), and warning (). Update definition of
1788 PBUFSIZ to use regcache functionality. Add include guard.
1789 * gdbserver/utils.c (fatal): Add missing ``const''.
1790 (warning): New function.
1792 * regformats/regdat.sh: Include "regcache.h" in generated files.
1793 Provide init_registers () function.
1794 * regformats/regdef.h: Add prototype for set_register_cache ().
1797 * gdbserver/linux-arm-low.c: New file.
1798 * gdbserver/linux-i386-low.c: New file.
1799 * gdbserver/linux-ia64-low.c: New file.
1800 * gdbserver/linux-m68k-low.c: New file.
1801 * gdbserver/linux-mips-low.c: New file.
1802 * gdbserver/linux-ppc-low.c: New file.
1803 * gdbserver/linux-sh-low.c: New file.
1805 * gdbserver/regcache.c: New file.
1806 * gdbserver/regcache.h: New file.
1808 * gdbserver/low-linux.c: Removed obsolete file.
1810 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1812 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1813 * config/i386/linux.mt: Likewise.
1814 * config/ia64/linux.mt: Likewise.
1815 * config/m68k/linux.mh: Likewise.
1816 * config/powerpc/linux.mh: Likewise.
1817 * config/mips/linux.mt: Likewise.
1819 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1821 * config/i386/i386lynx.mh: Mark gdbserver variables
1822 as (currently) obsolete for this target.
1823 * config/i386/nbsd.mt: Likewise.
1824 * config/i386/nbsdelf.mt: Likewise.
1825 * config/m32r/m32r.mt: Likewise.
1826 * config/m68k/m68klynx.mh: Likewise.
1827 * config/m68k/nbsd.mt: Likewise.
1828 * config/m68k/sun3os4.mh: Likewise.
1829 * config/mips/vr5000.mt: Likewise.
1830 * config/ns32k/nbsd.mt: Likewise.
1831 * config/pa/hppabsd.mh: Likewise.
1832 * config/pa/hppaosf.mh: Likewise.
1833 * config/powerpc/nbsd.mt: Likewise.
1834 * config/rs6000/rs6000lynx.mh: Likewise.
1835 * config/s390/s390.mt: Likewise.
1836 * config/s390/s390x.mt: Likewise.
1837 * config/sparc/sparclynx.mh: Likewise.
1838 * config/sparc/sun4os4.mh: Likewise.
1839 * config/i386/x86-64linux.mt: Likewise.
1840 * config/sparc/linux.mh: Likewise.
1842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1844 * configure.tgt: Configure gdbserver only for known working
1845 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1846 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1847 SUBDIRS if it is configured. Update comment for ${nativefile}.
1848 * configure: Regenerated.
1850 2002-02-13 Michael Snyder <msnyder@redhat.com>
1852 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
1854 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1855 (default_gcore_mach): Just return 0, work around a problem in bfd.
1856 (default_gcore_target): OK to return NULL if exec_bfd is null.
1857 (make_mem_sec): Use a cast, avoid a warning.
1859 * procfs.c (find_memory_regions_callback): Use a cast instead of
1860 calling host_pointer_to_address (which complains if
1861 sizeof (host pointer) != sizeof (target pointer)).
1862 (procfs_make_note_section): Avoid overflow in psargs string.
1864 * procfs.c (procfs_make_note_section): Make the default
1865 implementation return an error.
1867 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1869 * procfs.c (procfs_make_note_section): Provide a default definition
1870 (for alpha-dec-osf4.0f). Fix typos.
1872 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1874 * linux-proc.c: Add include of regcache.h.
1875 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1877 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1879 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1880 * memattr.c (create_mem_region): Disallow useless empty region.
1881 Regions are half-open intervals, so allow [A..B) [B..C) as
1884 2002-02-13 Michael Chastain <mec@shout.net>
1886 * defs.h: Kill CONST_PTR.
1887 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1888 * c-lang.c (c_builtin_types): Likewise.
1889 * ch-lang.c (ch_builtin_types): Likewise.
1890 * f-lang.c (f_builtin_types): Likewise.
1891 * language.c (unknown_builtin_types): Likewise.
1892 * m2-lang.c (m2_builtin_types): Likewise.
1893 * p-lang.c (pascal_builtin_types): Likewise.
1894 * scm-lang.c (c_builtin_types): Likewise.
1896 2002-02-13 Keith Seitz <keiths@redhat.com>
1898 * arm-tdep.h (arm_get_next_pc): Add declaration.
1900 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1902 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1903 with other related struct-returning functions.
1904 (arm_extract_struct_value_address): New function.
1905 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1906 initialize float_format, double_format and long_double_format as
1907 appropriate to the endianness of the target.
1908 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1909 (arm_use_struct_convention): Delete declaration.
1910 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1912 2002-02-13 Keith Seitz <keiths@redhat.com>
1914 * defs.h (core_addr_to_string_nz): New function.
1916 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1918 Apply missing bits of 2002-01-15 patch.
1919 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1920 (fill_fpregset): Use i387_fill_fsave.
1922 2002-02-12 Keith Seitz <keiths@redhat.com>
1924 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1925 (core_addr_to_string_nz): New function.
1927 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1929 * arm-linux-nat.c: Really include arm-tdep.h.
1930 * config/arm/tm-linux.h (struct type, struct value): Declare.
1932 2002-02-11 Michael Snyder <msnyder@redhat.com>
1934 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1935 (gcore section): Ifdef for Solaris and Unixware only.
1936 (procfs_do_thread_registers): Unixware needs one lwpstatus
1937 per thread (not one prstatus or pstatus).
1938 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1939 not over all gdb threads. For unixware, call elfcore_write_pstatus
1940 once before iterating over threads.
1942 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1944 * arm-tdep.h: New file.
1945 * arm-tdep.c: Include arm-tdep.h.
1946 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1947 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1948 (arm_print_float_info, arm_register_type, convert_to_extended)
1949 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1950 (arm_extract_return_value, arm_register_name): Make static.
1951 (arm_software_single_step): Similarly. Fix types in declaration.
1952 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1953 (arm_store_return_value, arm_store_struct_return): New functions.
1954 (arm_gdbarch_init): Register the above functions. Also register
1955 call_dummy_start_offset, sizeof_call_dummy_words,
1956 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1957 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1958 max_register_virtual_size, register_size. Set up
1959 prologue_cache.saved_regs here, rather than ...
1960 (_initialize_arm_tdep): ... here.
1961 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1963 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1964 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1965 (arm_print_float_info, arm_register_type, convert_to_extended)
1966 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1967 (arm_extract_return_value, arm_register_name): Delete declarations.
1968 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1969 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1970 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1971 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1972 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1973 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1974 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1975 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1976 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1977 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1978 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1979 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1981 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1982 * remote-rdi.c remote-rdp.c: Likewise.
1983 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1984 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1985 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1988 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1989 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1990 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1991 from non-ARM_ prefixed definitions.
1992 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1994 * remote-rdi.c remote-rdp.c: Likewise.
1995 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1997 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1999 * arm-tdep.c (arm_frameless_function_invocation)
2000 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2001 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2002 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2003 (arm_pop_frame, arm_get_next_pc): Make static.
2004 (arm_gdbarch_init): Register above in gdbarch structure.
2005 (arm_read_fp): Renamed from arm_target_read_fp.
2006 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2007 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2008 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2009 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2010 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2011 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2012 (arm_pc_is_thumb_dummy): Delete declarations.
2013 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2014 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2015 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2016 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2018 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2020 * symtab.c (compare_search_syms): New function.
2021 (sort_search_symbols): New function.
2022 (search_symbols): Sort symbols after searching rather than
2025 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2027 * NEWS: Linux -> GNU/Linux.
2029 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2031 * gdbarch.sh: For for level one methods, disallow a definition
2032 when partially multi-arched. Add comments explaining rationale.
2033 * gdbarch.h: Re-generate.
2035 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2037 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2042 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2044 * gdbarch.c: Re-generate.
2046 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2048 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2049 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2052 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2054 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2056 (PUSH_ARGUMENTS): Switch to using predefault.
2057 * gdbarch.c: Regenerate.
2059 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2061 * valops.c (PUSH_ARGUMENTS): Delete definition.
2062 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2063 partial. Default to default_push_arguments.
2064 * gdbarch.h, gdbarch.c: Regenerate.
2066 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2068 * defs.h (throw_exception): Rename return_to_top_level. Update
2070 * utils.c (error_stream, internal_verror, quit): Ditto.
2071 * top.c (throw_exception, catcher): Ditto.
2072 * sparclet-rom.c (sparclet_load): Ditto.
2073 * remote.c (interrupt_query, minitelnet): Ditto.
2074 * remote-sds.c (interrupt_query): Ditto.
2075 * remote-mips.c (mips_error, mips_kill): Ditto.
2076 * ocd.c (interrupt_query): Ditto.
2077 * monitor.c (monitor_interrupt_query): Ditto.
2078 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2079 * target.h: Update comment.
2081 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2083 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2085 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2086 default_double_format.
2087 * gdbarch.h, gdbarch.c: Re-generate.
2088 * findvar.c (floatformat_unknown): Delete variable definition.
2089 * doublest.h (floatformat_unknown): Delete variable declaration.
2091 2002-02-09 Jim Blandy <jimb@redhat.com>
2093 * stabsread.c (read_type): Add code to parse Sun's syntax for
2094 prototyped function types.
2096 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2098 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2099 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2101 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2103 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2104 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2105 now _initialize_xcoffsolib gets called again and overrides the
2106 commands from solib.c in a native configuration.
2108 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2110 * doublest.c (store_typed_floating): Don't try to return a value.
2113 2002-02-08 Jim Blandy <jimb@redhat.com>
2115 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2116 is prototyped and has no arguments, print its argument list as
2119 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2121 * MAINTAINERS (write-after-approval): Add myself.
2122 (paper-trail): I've escaped!
2124 2002-02-08 Christopher Faylor <cgf@redhat.com>
2126 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2128 (_initialize_check_for_gdb_ini): Ditto.
2130 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2132 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2133 xaprintf -> xasprintf.
2135 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2137 * win32-nat.c: Remove use of printf and sprintf functions.
2139 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2141 * arm-tdep.c (arm_frame_chain_valid): Make static.
2142 (arm_push_arguments): Likewise.
2143 (arm_gdbarch_init): New function.
2144 (_initialize_arm_tdep): Call it.
2145 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2146 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2147 (FRAME_CHAIN_VALID): Delete.
2148 (arm_frame_chain_valid): Delete declaration.
2149 (PUSH_ARGUMENTS): Delete.
2150 (arm_push_arguments): Delete declaration.
2151 (CALL_DUMMY_P): Delete.
2153 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2154 Corinna Vinschen <vinschen@redhat.com>
2156 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2157 on builtin float types.
2159 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2161 * utils.c: Include <curses.h> before "bfd.h".
2162 * tui/tui-hooks.c: Likewise.
2163 * tui/tui.c: Likewise.
2164 * tui/tuiCommand.c: Likewise.
2165 * tui/tuiData.c: Likewise.
2166 * tui/tuiDataWin.c: Likewise.
2167 * tui/tuiDisassem.c: Likewise.
2168 * tui/tuiGeneralWin.c: Likewise.
2169 * tui/tuiIO.c: Likewise.
2170 * tui/tuiLayout.c: Likewise.
2171 * tui/tuiRegs.c: Likewise.
2172 * tui/tuiSource.c: Likewise.
2173 * tui/tuiSourceWin.c: Likewise.
2174 * tui/tuiStack.c: Likewise.
2175 * tui/tuiWin.c: Likewise.
2177 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2179 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2180 to include space for pseudoregs as well. Update loops accordingly.
2181 (sh_fp_frame_init_saved_regs): Ditto.
2182 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2184 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2186 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2187 Add Richard Earnshaw to Arm maintainers.
2189 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2191 * defs.h (warning_begin): Delete declaration.
2193 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2196 2002-02-07 Michael Snyder <msnyder@redhat.com>
2198 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2199 Logic bug, remove misplaced else.
2201 2002-02-07 Klee Dienes <klee@apple.com>
2203 * fork-inferior.c (fork_inferior): Add '!' to the list of
2204 characters that need to be quoted when building a string for the
2205 shell. Quote '!' specifically with a backslash, since CSH chokes
2206 when trying to evaluate "str!str".
2208 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2210 * rdi-share/host.h: Only provide a typedef for bool if it is not
2213 2002-02-04 Michael Snyder <msnyder@redhat.com>
2215 * breakpoint.h (enum bptype): Add new overlay event bp type.
2216 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2218 * breakpoint.c (create_internal_breakpoint): New function.
2219 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2220 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2221 (create_thread_event_breakpoint): Ditto.
2222 (create_solib_event_breakpoint): Ditto.
2223 (create_overlay_event_breakpoint): New function.
2224 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2225 (update_breakpoints_after_exec): Delete and re-initialize
2226 overlay event breakpoints after an exec. Add FIXME comment
2227 about longjmp breakpoint.
2228 (print_it_typical): Ignore overlay event breakpoints.
2229 (print_one_breakpoint): Ditto.
2231 (bpstat_what): Do not stop for overlay event breakpoints.
2232 (delete_breakpoint): Don't delete overlay event breakpoints.
2233 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2234 (breakpoint_re_set): Re-create overlay event breakpoint.
2236 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2237 (overlay_manual_command): Disable overlay breakpoints.
2238 (overlay_off_command): Disable overlay breakpoints.
2240 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2242 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2243 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2244 to here from config/tm-arm.h.
2245 (coff_sym_is_thumb): Make static.
2246 (arm_elf_make_msymbol_special): New function.
2247 (arm_coff_make_msymbol_special): New function.
2248 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2249 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2250 (coff_sym_is_thumb): Delete declaration.
2251 (arm_elf_make_msymbol_special): Declare.
2252 (arm_coff_make_msymbol_special): Declare.
2253 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2254 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2256 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2258 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2260 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2262 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2263 * gdbarch.c gdbarch.h: Regenerate.
2264 * arch-utils.c (default_print_float_info): New function.
2265 * arch-utils.h (default_print_float_info): Prototype it.
2266 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2267 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2268 (PRINT_FLOAT_INFO): Document it.
2270 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2271 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2272 (PRINT_FLOAT_INFO): Define.
2274 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2276 * win32-nat.c (_initialize_check_for_gdb_ini):
2277 Add typecast to sprintf argument to suppress a warning.
2279 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2281 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2282 to allow easier handling of pass state.
2283 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2284 that gives exception name and address.
2285 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2286 and set last_sig value to ourstatus->value.sig. Some missing
2288 (child_continue): Correctly report continue_status.
2289 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2290 TARGET_SIGNAL_0 (new default value).
2291 (child_resume): consider sig argument passed to decide if
2292 the exception should be passed to debuggee or not.
2294 2002-02-05 Michael Snyder <msnyder@redhat.com>
2296 * regcache.c (fetch_register): Call target_fetch_register
2297 only if we don't call FETCH_PSEUDO_REGISTER.
2298 (store_register): Call target_store_register only if we
2299 don't call STORE_PSEUDO_REGISTER.
2301 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2303 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2304 ELF_MAKE_MSYMBOL_SPECIAL.
2305 * gdbarch.c, gdbarch.h: Regenerate.
2306 * arch-utils.c (default_make_msymbol_special): New function.
2307 * arch-utils.h (default_make_msymbol_special): Export.
2308 * elfread.c (elf_symtab_read): Compile use of
2309 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2311 * coffread.c (coff_symtab_read): Ditto, for
2312 COFF_MAKE_MSYMBOL_SPECIAL.
2314 2002-02-05 Jim Blandy <jimb@redhat.com>
2316 * solib-svr4.c (svr4_truncate_ptr): New function.
2317 (svr4_relocate_section_addresses): Do the address arithmetic with
2318 the appropriate truncation for target addresses, even when
2319 CORE_ADDR is larger than a target address.
2321 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2323 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2326 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2328 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2331 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2333 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2335 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2337 * gdbserver/linux-low.c: Remove unused include files.
2339 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2341 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2342 (read_inferior_memory): Use it.
2343 (write_inferior_memory): Likewise.
2345 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2347 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2348 grubbing through sys_errlist.
2350 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2352 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2354 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2355 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2357 2002-02-04 Andrew Cagney <ac131313@redhat.com>
2359 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2360 (do_sfunc, set_cmd_sfunc): New functions.
2362 * command.h (struct cmd_list_element): Add field func.
2363 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2364 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2365 * cli/cli-decode.h: Ditto.
2367 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2368 (help_all, help_cmd_list): Ditto.
2369 (find_cmd, complete_on_cmdlist): Ditto.
2370 * top.c (execute_command): Ditto.
2372 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2375 * infcmd.c (notice_args_read): Fix function signature.
2377 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2378 * cli/cli-decode.c (add_set_cmd): Ditto.
2379 * utils.c (initialize_utils): Ditto.
2380 * maint.c (_initialize_maint_cmds): Ditto.
2381 * infrun.c (_initialize_infrun): Ditto.
2382 * demangle.c (_initialize_demangler): Ditto.
2383 * remote.c (add_packet_config_cmd): Ditto.
2384 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2385 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2386 * proc-api.c (_initialize_proc_api): Ditto.
2387 * kod.c (_initialize_kod): Ditto.
2388 * valprint.c (_initialize_valprint): Ditto.
2389 * top.c (init_main): Ditto.
2390 * infcmd.c (_initialize_infcmd): Ditto.
2391 * corefile.c (_initialize_core): Ditto.
2392 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2393 * arch-utils.c (initialize_current_architecture): Ditto.
2394 (_initialize_gdbarch_utils): Ditto.
2395 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2397 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2398 * wince.c (_initialize_inftarg): Ditto.
2399 * symfile.c (_initialize_symfile): Ditto.
2400 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2401 * language.c (_initialize_language): Ditto.
2402 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2404 2002-02-04 Michael Snyder <msnyder@redhat.com>
2406 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2408 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2410 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2411 Add rules for building the register data files.
2413 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2415 * regformats/regdat.sh: Add braces to the definition of
2416 expedite_regs_${arch}.
2418 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2420 * regformats/regdef.h (struct reg): Add comment describing the
2421 requirements for offset and size fields.
2423 2002-02-04 Andreas Schwab <schwab@suse.de>
2425 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2426 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2428 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
2430 * gdbarch.sh (copyright): Update years in generated header.
2431 (SMASH_TEXT_ADDRESS): Add rule.
2432 * gdbarch.h, gdbarch.c: Re-generate.
2433 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2434 * dbxread.c: Likewise.
2435 * dwarfread.c: Likewise.
2436 * elfread.c: Likewise.
2437 * somread.c: Likewise.
2439 * arm-tdep.c (arm_smash_text_address): New function.
2440 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2442 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2444 Add support for hardware watchpoints on win32 native.
2445 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2446 CONTEXT_DEBUG_REGISTERS.
2447 (dr variable): New variable. Static array containing a local copy
2449 (debug_registers_changed): New variable. Reflects when debug registers
2450 are changed and need to be written to inferior.
2451 (debug_registers_used): New variable. Reflects when any debug register
2452 was set, used when new threads are created.
2453 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2455 (thread_rec): Set dr array if id is the thread of current_event .
2456 (child_continue, child_resume): Change the debug registers for all
2457 threads if debug_registers_changed.
2458 (child_add_thread): Change the debug registers if debug_registers_used.
2459 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2460 Link nm.h to new nm-cygwin.h file.
2461 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2462 of hardware registers.
2464 2002-02-03 Andrew Cagney <ac131313@redhat.com>
2466 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2467 Restore behavour broken by 2002-01-20 Andrew Cagney
2468 <ac131313@redhat.com> IEEE_FLOAT removal.
2470 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2472 * c-valprint.c (c_val_print): Pass a proper valaddr to
2473 cp_print_class_method.
2474 * valops.c (search_struct_method): If there is only one method
2475 and args is NULL, return that method.
2477 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2479 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2480 accessing tag_name directly.
2482 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2484 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2485 of accessing tag_name directly.
2487 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2490 * gdbtypes.c (replace_type): New function.
2491 * gdbtypes.h (replace_type): Add prototype.
2492 * stabsread.c (read_type): Use replace_type.
2494 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
2496 * Makefile.in (memattr.o): Add missing dependencies rule.
2498 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2500 * breakpoint.c (break_at_finish_command): Really export.
2501 (break_at_finish_at_depth_command): Ditto.
2502 (tbreak_at_finish_command): Ditto.
2503 * hppa-tdep.c: Include completer.h.
2504 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2505 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2507 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2509 * utils.c (do_write): New function.
2510 (error_stream): Rewrite combining the code from error_begin and
2512 (verror): Rewrite using error_stream.
2513 (error_begin): Delete function.
2515 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2517 * utils.c (error_begin): Make static.
2518 * defs.h (error_begin): Delete declaration.
2520 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2521 (decode_line_1): Use cplusplus_error instead of error_begin,
2522 cplusplus_hint and return_to_top_level.
2523 * coffread.c (coff_symfile_read): Use error instead of error_begin
2524 and return_to_top_level.
2525 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2527 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2529 * language.h (type_error, range_error): Make string parameter
2531 * language.c (warning_pre_print): Delete extern declaration.
2532 * dwarfread.c (warning_pre_print): Ditto.
2533 * language.c (type_error, range_error): Rewrite to use verror and
2534 vwarning instead of warning_begin.
2536 2002-02-01 Michael Snyder <msnyder@redhat.com>
2538 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2539 (set_ignore_count): Move misplaced comment back where it belongs.
2541 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2543 * command.h (NO_FUNCTION): Delete macro.
2544 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2545 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2546 * tracepoint.c (_initialize_tracepoint): Ditto.
2547 * cli/cli-decode.c (add_set_cmd): Ditto.
2548 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2550 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2552 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2553 Update ``this'' pointer when calling virtual functions.
2555 2002-02-01 Michael Snyder <msnyder@redhat.com>
2557 * breakpoint.c (create_temp_exception_breakpoint): Delete.
2558 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2560 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2562 * regformats/reg-arm.dat: New file.
2563 * regformats/reg-i386.dat: New file.
2564 * regformats/reg-ia64.dat: New file.
2565 * regformats/reg-m68k.dat: New file.
2566 * regformats/reg-mips.dat: New file.
2567 * regformats/reg-ppc.dat: New file.
2568 * regformats/reg-sh.dat: New file.
2569 * regformats/regdef.h: New file.
2570 * regformats/regdat.sh: New file.
2572 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
2574 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2575 (arm_frame_args_address, arm_frame_locals_address): New functions.
2576 (arm_frame_num_args): New function.
2577 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2578 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2579 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2581 2002-01-31 Michael Snyder <msnyder@redhat.com>
2583 * breakpoint.c (break_at_finish_command): Export.
2584 (break_at_finish_at_depth_command): Export.
2585 (tbreak_at_finish_command): Export.
2586 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2587 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2588 "tbreak" commands, which are HPPA specific.
2590 * printcmd.c (disassemble_command): Remove an ancient
2591 artifact of an old merge.
2593 * symfile.h (enum overlay_debugging_state):
2594 Define enum constant values for overlay mode.
2595 * symfile.c (overlay_debugging): Use enums instead of literals.
2596 (overlay_is_mapped, overlay_auto_command,
2597 overlay_manual_command): Ditto.
2599 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2600 breakpoint_here_p, breakpoint_inserted_here_p,
2601 breakpoint_thread_match, bpstat_stop_status,
2602 describe_other_breakpoints, check_duplicates, clear_command):
2603 Coding standard fixes.
2605 * target.c (target_xfer_memory): Add spaces, coding standard.
2606 (do_xfer_memory): Add missing line to trust-readonly
2607 code: check bfd SEC_READONLY flag for section.
2609 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2611 * PROBLEMS: Fix typo, 5.1->5.1.1.
2613 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2615 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2616 data symbols, since we search based on textlow and texthigh.
2617 (find_pc_sect_symtab): Likewise.
2619 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2621 * defs.h (vwarning): Declare.
2622 * utils.c (vwarning): New function.
2623 (warning): Call vwarning.
2624 (warning_begin): Delete function.
2626 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2627 the warning message.
2628 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2631 2002-01-30 Michael Snyder <msnyder@redhat.com>
2633 * NEWS: Mention "set trust-readonly-sections" command.
2634 Mention generate-core-file command.
2636 2002-01-15 Michael Snyder <msnyder@redhat.com>
2638 * target.c: New command, "set trust-readonly-sections on".
2639 (do_xfer_memory): Honor the suggestion to trust readonly sections
2640 by reading them from the object file instead of from the target.
2641 (initialize_targets): Register command "set trust-readonly-sections".
2643 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2645 * parse.c (target_map_name_to_register): Simplify, search regs and
2646 pseudo-regs using a single loop.
2648 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2650 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2652 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2654 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2655 * config/i386/i386v42mp.mh: Add i387-nat.o .
2656 * i386v4-nat.c: Include i387-nat.h.
2657 (supply_fpregset): Use i387_supply_fsave.
2658 (fill_fpregset): Use i387_fill_fsave.
2660 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2662 * arm-tdep.c (arm_call_dummy_words): Define.
2663 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2664 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2665 (CALL_DUMMY_WORDS): Define.
2666 (arm_call_dummy_words): Declare.
2667 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2668 (arm_linux_call_dummy_words): Declare.
2670 2002-01-30 Andreas Schwab <schwab@suse.de>
2672 * m68klinux-nat.c: Fix last change to use regcache_collect
2673 instead of referencing registers[] directly.
2675 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2677 * parse.c (target_map_name_to_register): Delete code wrapped in
2678 #ifdef REGISTER_NAME_ALIAS_HOOK.
2680 2002-01-28 Michael Snyder <msnyder@redhat.com>
2682 * regcache.c (legacy_read_register_gen): Need to be able to
2683 read pseudo-register as well as real register.
2684 (legacy_write_register_gen): Ditto.
2686 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2688 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2689 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2690 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2691 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2692 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2693 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2694 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2695 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2696 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2697 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2698 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2699 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2700 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2701 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2702 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2703 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2704 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2705 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2706 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2707 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2709 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2711 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2712 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2713 (initialize_current_architecture): Update target_byte_order using
2714 information from BFD.
2715 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2716 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2718 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2720 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2721 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2723 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2724 #ifdef INVALID_FLOAT.
2725 * infcmd.c (do_registers_info): Ditto.
2726 * values.c (unpack_double): Ditto. Add comment.
2728 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2729 already commented out.
2731 2002-01-26 Andreas Schwab <schwab@suse.de>
2733 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2734 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2735 registers and add support for PTRACE_GETREGS.
2737 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2739 GDB 5.1.1 released from 5.1 branch.
2740 * NEWS: Add 5.1.1 news.
2741 * README: Sync with 5.1 branch.
2743 2002-01-23 Fred Fish <fnf@redhat.com>
2745 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2746 stabstring on initial malloc. Reallocing will copy it for us,
2749 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2751 * Makefile.in (hpread_h): Delete.
2752 (HFILES_NO_SRCDIR): Remove hpread.h.
2753 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2754 (hpread.o): Update dependencies.
2755 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2757 * hp-psymtab-read.c: Remove file.
2758 * hp-symtab-read.c: Remove file.
2759 * hpread.h: Remove file.
2761 * hpread.c: Merge all contents of hp-psymtab-read.c,
2762 hp-symtab-read.c and hpread.h into this file, as it was prior to
2765 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2766 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2767 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2768 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2770 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2772 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2773 fill_gregset): Call gdbarch_tdep() just once, assign result to
2774 variable and use that, instead of calling the function several
2777 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2779 * configure.host: Accept sparcv9 as alias for sparc64.
2780 * configure.tgt: Likewise.
2782 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2784 * solib-aix5.c (build_so_list_from_mapfile)
2785 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2786 arguments is not reversed.
2787 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2788 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2790 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2792 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2793 modified version of obsolete sh_fetch_pseudo_register.
2794 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2795 (sh4_register_read): New function.
2796 (sh_pseudo_register_write): New function. Renamed and modified
2797 version of obsolete sh_store_pseudo_register.
2798 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2799 (sh4_register_write): New function.
2800 (sh_gdbarch_init): Remove setting of gdbarch function
2801 fetch_pseudo_register and store_pseudo_register. Remove setting of
2802 register_convert_to_raw, register_convert_to_virtual,
2803 register_convertible.
2804 (sh_sh4_register_convertible): Delete. No longer needed. All is
2805 taken care by architecture specific functions
2806 register_read/register_write.
2807 (sh_sh4_register_convert_to_virtual): Make static.
2808 (sh_sh4_register_convert_to_raw): Ditto.
2810 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2812 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2813 (floatformat_is_nan, floatformat_mantissa): Ditto.
2815 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2816 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2817 builtin_type_ieee_double_little,
2818 builtin_type_ieee_double_littlebyte_bigword,
2819 builtin_type_m68881_ext, builtin_type_i960_ext,
2820 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2821 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2822 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2823 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2825 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2827 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2828 parameter. Set frameless flag if it exists and depended of
2829 whether the scanned function is frameless or not.
2830 (xstormy16_skip_prologue): If function is frameless, return
2831 result of xstormy16_scan_prologue().
2832 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2835 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2837 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2838 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2839 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2840 sh_sh4_register_byte, sh_sh4_register_raw_size,
2841 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2842 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2843 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2844 sh_store_pseudo_register, sh_do_pseudo_register): Call
2845 gdbarch_tdep() just once, assign result to variable and use that,
2846 instead of calling the function several times.
2848 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2850 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2851 macros instead of LAST_FPU_CTRL_REGNUM.
2852 (store_register): Likewise.
2854 2002-01-21 Jim Blandy <jimb@redhat.com>
2856 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2857 is up-to-date before running the program, not just when a program
2860 2002-01-21 Fred Fish <fnf@redhat.com>
2862 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2863 when we have found all instructions we are looking for.
2865 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2867 * arm-tdep.c (arm_register_name): New function.
2868 (arm_registers_names): Make static.
2869 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2870 (arm_register_name): Declare.
2871 (REGISTER_NAME): Use it.
2873 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2874 Kevin Buettner <kevinb@redhat.com>
2876 Convert arm targets to new FRAME interface.
2877 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2878 (arm_frame_find_save_regs): Delete.
2879 (arm_frame_init_saved_regs): New.
2880 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2881 Allocate extra_info as required. Convert all uses of fsr.regs
2882 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2884 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2885 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2886 (check_prologue_cache, save_prologue_cache): Likewise.
2887 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2888 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2889 (FRAME_FIND_SAVED_REGS): Delete.
2890 (arm_frame_find_saved_regs): Delete prototype.
2891 (arm_frame_init_saved_regs): New prototype.
2892 (FRAME_INIT_SAVED_REGS): Define.
2894 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2896 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2898 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2900 From Jeff Law <law@redhat.com>:
2901 * infttrace.c: Include <sys/pstat.h>.
2902 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2903 exec file if the ttrace equivalent fails.
2905 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2907 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2908 (closeLogFile): Ditto.
2910 2002-01-20 Michael Chastain <mec@shout.net>
2912 * top.c (print_gdb_version): Bump copyright year to 2002.
2914 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2916 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2917 Zannoni and Eli Zaretskii.
2919 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2921 * buildsym.c: Update copyright years.
2922 * c-typeprint.c: Likewise.
2923 * dwarf2read.c: Likewise.
2924 * f-typeprint.c: Likewise.
2925 * gdbtypes.c: Likewise.
2926 * gdbtypes.h: Likewise.
2927 * hp-symtab-read.c: Likewise.
2928 * hpread.c: Likewise.
2929 * mdebugread.c: Likewise.
2930 * p-typeprint.c: Likewise.
2932 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2934 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2935 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2936 byte-order selectable.
2937 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2938 * arch-utils.c: Ditto.
2939 (set_endian): Ditto.
2940 (set_endian_from_file): Ditto.
2941 * gdbserver/low-sim.c (create_inferior): Ditto.
2942 * gdbarch.sh: Ditto.
2943 * gdbarch.h: Re-generate.
2944 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2945 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2946 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2947 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2948 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2949 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2950 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2951 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2953 * config/mips/tm-wince.h: Remove #undef of macro
2954 TARGET_BYTE_ORDER_SELECTABLE.
2955 * config/sh/tm-wince.h: Ditto.
2957 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2959 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2960 member function fields. Add accessor macro
2961 TYPE_FN_FIELD_ARTIFICIAL.
2962 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2963 * c-typeprint.c (c_type_print_base): Skip artificial member
2966 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2968 * f-typeprint.c: Delete unused function f_type_print_args.
2969 * p-typeprint.c: Delete unused function pascal_type_print_args.
2971 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2973 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2974 comment. Add ``artificial'' to ``union field_location''.
2976 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2978 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2979 * mdebugread.c (parse_symbol): Likewise.
2980 * stabsread.c (define_symbol): Likewise.
2981 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2982 initializing TYPE_FIELD_BITPOS to n (obsolete).
2983 (hpread_doc_function_type): Likewise.
2984 * hpread.c (hpread_function_type): Likewise.
2986 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2988 * configure.in (host_makefile_frag): Only require a host makefile
2989 fragment when a native build.
2990 * configure: Re-generate.
2992 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2994 * doublest.h (floatformat_from_type): Declare.
2995 * doublest.c (floatformat_from_type): New function.
2996 (convert_typed_floating): Use.
2998 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2999 call to function floatformat_from_type.
3001 * gdbarch.sh (IEEE_FLOAT): Delete.
3002 * gdbarch.h, gdbarch.c: Re-generate.
3003 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3004 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3005 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3006 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3007 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3008 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3009 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3010 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3011 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3012 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3013 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3014 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3016 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3017 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3018 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3019 * sh-tdep.c (sh_gdbarch_init): Ditto.
3020 * mips-tdep.c (mips_gdbarch_init): Ditto.
3021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3022 * cris-tdep.c (cris_gdbarch_init): Ditto.
3024 2002-01-20 Jiri Smid <smid@suse.cz>
3026 * configure.host, configure.tgt: Support x86-64.
3027 * NEWS: Note new target x86-64.
3029 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3030 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3031 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3032 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3033 x86-64-linux-nat.o): Fix dependencies.
3035 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3037 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3038 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3039 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3040 * config/sparc/xm-sun4os4.h: Delete file.
3041 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3043 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3045 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3046 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3047 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3048 * config/i386/i386lynx.mh (XM_FILE): Delete.
3049 * config/rs6000/xm-rs6000ly.h: Delete file.
3050 * config/sparc/xm-sparclynx.h: Delete file.
3051 * config/m68k/xm-m68klynx.h: Delete file.
3052 * config/i386/xm-i386lynx.h: Delete file.
3053 * config/xm-lynx.h: Delete file.
3054 * config/djgpp/fnchange.lst: Update.
3056 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3058 * alpha-tdep.c (alpha_register_byte): New function.
3059 (alpha_register_raw_size): Ditto.
3060 (alpha_register_virtual_size): Ditto.
3061 (alpha_skip_prologue_internal): Renamed from
3062 alpha_skip_prologue.
3063 (alpha_skip_prologue): New version that calls
3064 alpha_skip_prologue_internal.
3065 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3066 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3067 second argument from alpha_skip_prologue.
3068 (REGISTER_BYTE): Use alpha_register_byte.
3069 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3070 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3071 (FRAMELESS_FUNCTION_INVOCATION): Use
3072 generic_frameless_function_invocation_not.
3073 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3074 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3078 * config/mips/xm-news-mips.h: Delete file.
3079 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3081 * config/m88k/xm-m88k.h: Delete file.
3082 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3083 * config/m88k/xm-delta88v4.h: Ditto.
3084 * config/m88k/xm-delta88.h: Ditto.
3086 * config/alpha/xm-fbsd.h: Delete file.
3087 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3089 * config/sparc/xm-sparc.h: Delete file.
3090 * Makefile.in (xm-sun4os4.h): Delete dependency.
3091 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3092 * config/sparc/xm-sun4os4.h: Ditto.
3093 * config/sparc/xm-linux.h: Ditto.
3095 * config/i386/xm-windows.h: Delete file.
3097 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3099 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3100 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3102 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3104 * alpha-tdep.c (alpha_call_dummy_words): New.
3105 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3106 (CALL_DUMMY_P): Define.
3107 (CALL_DUMMY_WORDS): Define.
3108 (SIZEOF_CALL_DUMMY_WORDS): Define.
3110 2002-01-19 Per Bothner <per@bothner.com>
3112 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3113 isn't NULL, which can happen with some gcj-3.x-produced code.
3115 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3117 * alpha-tdep.c (alpha_register_virtual_type): New function.
3118 (alpha_init_frame_pc_first): Ditto.
3119 (alpha_fix_call_dummy): Ditto.
3120 (alpha_store_struct_return): Ditto.
3121 (alpha_extract_struct_value_address): Ditto.
3122 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3123 alpha_register_virtual_type.
3124 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3125 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3126 alpha_extract_struct_value_address.
3127 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3128 (INIT_FRAME_PC): Use init_frame_pc_noop.
3129 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3131 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3133 * i386gnu-nat.c: Include "i386-tdep.h".
3134 (fetch_fpregs): Simplify code dealing with uninitialized floating
3135 point states such that it doesn't require FP7_REGNUM.
3137 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3139 * alpha-tdep.c (frame_extra_info): New.
3140 (alpha_find_saved_regs): Make static. Use
3142 (alpha_frame_init_saved_regs): New function.
3143 (alpha_frame_saved_pc): Use frame->extra_info.
3144 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3145 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3146 (init_extra_frame_info): Rename to...
3147 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3148 (alpha_print_extra_frame_info): New function.
3149 (alpha_frame_locals_address): Ditto.
3150 (alpha_frame_args_address): Ditto.
3151 (alpha_pop_frame): Use frame->extra_info.
3152 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3153 alpha_frame_args_address.
3154 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3155 (alpha_find_saved_regs): Remove prototype.
3156 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3157 (EXTRA_FRAME_INFO): Remove.
3158 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3159 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3161 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3163 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3164 (alpha_cannot_fetch_register): Ditto.
3165 (alpha_cannot_store_register): Ditto.
3166 (alpha_register_convertible): Ditto.
3167 (alpha_use_struct_convention): Ditto.
3168 * config/alpha/tm-alpha.h: Update copyright years.
3169 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3170 (INNER_THAN): Use core_addr_lessthan.
3171 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3172 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3173 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3174 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3175 (FRAME_CHAIN): Remove unnecessary cast.
3177 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3179 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3182 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3184 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3185 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3186 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3187 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3188 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3189 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3190 * x86-64-linux-nat.c: Ditto.
3192 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3194 * alpha-tdep.c (alpha_register_name): New function.
3195 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3196 (REGISTER_NAME): Define.
3198 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3200 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3202 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3204 * alpha-tdep.c: Update copyright years.
3205 (alpha_next_pc): New function.
3206 (alpha_software_single_step): Ditto.
3207 * config/alpha/tm-alpha.h: Add prototype for
3208 alpha_software_single_step.
3210 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3212 * alphabsd-nat.c: Update copyright years.
3213 (fill_gregset): Use regcache_collect.
3214 (fill_fpregset): Likewise.
3215 (fetch_inferior_registers): Only fetch integer registers
3216 if requested to do so.
3217 (store_inferior_registers): Only store integer registers
3218 if requested to do so.
3220 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3222 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3223 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3224 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3225 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3226 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3227 * config/arm/linux.mh (XDEPFILES): Delete.
3228 * config/arm/nbsd.mh (XDEPFILES): Delete.
3229 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3230 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3231 * config/i386/i386m3.mh (XDEPFILES): Delete.
3232 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3233 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3234 * config/i386/fbsd.mh (XDEPFILES): Delete.
3235 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3236 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3237 * config/i386/i386v4.mh (XDEPFILES): Delete.
3238 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3239 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3240 * config/i386/i386aix.mh (XDEPFILES): Delete.
3241 * config/i386/go32.mh (XDEPFILES): Delete.
3242 * config/i386/cygwin.mh (XDEPFILES): Delete.
3243 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3244 * config/i386/i386mach.mh (XDEPFILES): Delete.
3245 * config/i386/i386v32.mh (XDEPFILES): Delete.
3246 * config/i386/linux.mh (XDEPFILES): Delete.
3247 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3248 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3249 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3250 * config/i386/i386sco.mh (XDEPFILES): Delete.
3251 * config/i386/i386v.mh (XDEPFILES): Delete.
3252 * config/i386/nbsd.mh (XDEPFILES): Delete.
3253 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3254 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3255 * config/i386/symmetry.mh (XDEPFILES): Delete.
3256 * config/i386/obsd.mh (XDEPFILES): Delete.
3257 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3258 * config/ia64/linux.mh (XDEPFILES): Delete.
3259 * config/ia64/aix.mh (XDEPFILES): Delete.
3260 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3261 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3262 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3263 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3264 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3265 * config/m68k/linux.mh (XDEPFILES): Delete.
3266 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3267 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3268 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3269 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3270 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3271 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3272 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3273 * config/m88k/delta88.mh (XDEPFILES): Delete.
3274 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3275 * config/m88k/m88k.mh (XDEPFILES): Delete.
3276 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3277 * config/mips/linux.mh (XDEPFILES): Delete.
3278 * config/mips/irix6.mh (XDEPFILES): Delete.
3279 * config/mips/irix5.mh (XDEPFILES): Delete.
3280 * config/mips/irix4.mh (XDEPFILES): Delete.
3281 * config/mips/irix3.mh (XDEPFILES): Delete.
3282 * config/mips/decstation.mh (XDEPFILES): Delete.
3283 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3284 (NATDEPFILES): Move core-aout.o to here.
3285 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3286 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3287 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3288 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3289 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3290 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3291 * config/pa/hpux11.mh (XDEPFILES): Delete.
3292 * config/powerpc/aix.mh (XDEPFILES): Delete.
3293 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3294 * config/powerpc/linux.mh (XDEPFILES): Delete.
3295 * config/romp/rtbsd.mh: Rename XDEPFILES.
3296 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3297 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3298 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3299 * config/s390/s390.mh (XDEPFILES): Delete.
3300 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3301 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3302 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3303 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3304 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3305 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3306 * config/sparc/linux.mh (XDEPFILES): Delete.
3307 * config/vax/vaxult.mh (XDEPFILES): Delete.
3308 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3309 * Makefile.in (DEPFILES): Remove XDEPFILES.
3311 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3313 * utils.c (internal_verror): Fix comments, default is yes not no.
3314 Update queries to match. Default to quit and dump core.
3316 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3318 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3320 * defs.h, event-top.c, gdbcmd.h: Ditto.
3321 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3322 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3323 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3324 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3325 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3326 * mi/mi-main.c:Ditto.
3328 * stack.c, symfile.c: Update copyright.
3330 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3332 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3333 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3334 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3335 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3337 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3339 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3340 * gdbserver/low-lynx.c (myattach): Likewise.
3341 * gdbserver/low-nbsd.c (myattach): Likewise.
3342 * gdbserver/low-sim.c (myattach): Likewise.
3343 * gdbserver/low-sparc.c (myattach): Likewise.
3344 * gdbserver/low-sun3.c (myattach): Likewise.
3346 * gdbserver/low-linux.c (myattach): New function.
3348 * gdbserver/server.c (attach_inferior): New function.
3349 (main): Handle "--attach".
3351 2002-01-16 Andrew Cagney <ac131313@redhat.com>
3353 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3356 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
3358 * c-typeprint.c (is_type_conversion_operator): Add additional
3359 check for non-conversion operators.
3361 2002-01-15 Michael Snyder <msnyder@redhat.com>
3363 * linux-proc.c: Add "info proc" command, a la procfs.c.
3364 (read_mapping): New function, abstract and re-use code.
3365 (linux_find_memory_regions): Use new func read_mapping.
3366 (linux_info_proc_cmd): New function, implement "info proc".
3367 (_initialize_linux_proc): Add new command "info proc".
3369 2002-01-15 Michael Snyder <msnyder@redhat.com>
3371 * symfile.c (generic_load): Use bfd_map_over_sections method
3372 instead of manipulating bfd structure members directly.
3373 (add_section_size_callback): New function, bfd sections callback
3374 used by generic_load.
3375 (load_sections_callback): New function, bfd sections callback
3376 used by generic_load.
3378 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
3380 [Based on work by Jim Blandy]
3381 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3382 (builtin_type_vec128): Export.
3383 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3385 (builtin_type_vec128): New builtin type for 128 bit vector
3387 (build_gdbtypes): Initialize builtin_type_v16qi and
3388 builtin_type_v8hi. Create the vec128 register builtin type
3390 (build_builtin_type_vec128): New function.
3391 (_initialize_gdbtypes): Register builtin_type_v16qi and
3392 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3393 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3394 AltiVec register to new builtin type.
3396 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3398 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3401 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3403 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3404 CLEAN_UP_REGISTER_VALUE.
3405 * regcache.c (supply_register): Update only call.
3407 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3409 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3410 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3411 a29k-*-vxworks* targets as obsolete.
3413 2002-01-14 Michael Snyder <msnyder@redhat.com>
3415 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3416 until we can resolve portability issues.
3417 * gregset.h: Remove references to fpxregs.
3418 * gcore.c (gcore_command): Initialize note_sec to NULL.
3420 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3422 * signals.c (target_signal_to_name): Rewrite. Only use
3423 signals[].name when in bounds and non-NULL.
3425 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3427 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3428 * signals.c (target_signal_to_name): Verify that SIG is within the
3429 bounds of the signals array.
3431 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3433 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3435 2002-01-13 Keith Seitz <keiths@redhat.com>
3437 * stack.c (print_frame_info_base): Print the frame's pc
3438 only if when print_frame_info_listing_hook is not defined.
3440 2002-01-13 Keith Seitz <keiths@redhat.com>
3442 * varobj.c (varobj_set_value): Make sure that there were no
3443 errors evaluating the object before attempting to set its
3445 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3446 so this offset adjustment is no longer necessary.
3447 (create_child): Don't set the error flag if the child is
3449 (value_of_child): If value_fetch_lazy fails, return NULL
3450 so that callers will be notified that an error occurred.
3451 (c_value_of_variable): Delay check of variable's validity
3452 until later. We actually want all structs and unions to have
3454 Do not return "???" for variables which could not be evaluated.
3455 This error condition must be returned to the caller so that it
3456 can get the error condition from gdb.
3457 (cplus_name_of_child): Adjust index for vptr before figuring
3458 out the name of the child.
3459 (cplus_value_of_child): If a child's (real) parent is not valid,
3460 don't even bother trying to give a value for it. Just return
3461 an error. Change all instances in this function.
3462 (cplus_type_of_child): If our parent is one of the "fake"
3463 parents, we need to get at the type of the real parent, and
3464 derive the child's true type using this information.
3466 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3468 From 2002-01-09 John Marshall <johnm@falch.net>:
3469 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3470 sources.redhat.com, and tweak some related URLs which had
3471 suffered from linkrot.
3473 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3476 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3477 structures passed in registers.
3479 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3481 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3482 white space which prevented compilation. Reported by DSK
3483 <dsk@student.unsw.edu.au>.
3485 2002-01-11 Michael Snyder <msnyder@redhat.com>
3487 * symfile.c (build_section_addr_info_from_section_tab):
3488 Use bfd access method instead of manipulating bfd directly.
3489 (syms_from_objfile): Ditto.
3490 (simple_overlay_update_1): Ditto.
3491 (simple_overlay_update): Ditto.
3492 (generic_load): Ditto.
3493 (overlay_unmapped_address): FIXME comment, bfd access methods.
3494 (sections_overlap): FIXME comment, bfd access methods.
3495 (pc_in_mapped_range): FIXME comment, bfd access methods.
3496 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3497 (section_is_mapped): FIXME comment, bfd access methods.
3498 (section_is_overlay): FIXME comment, bfd access methods.
3500 * symfile.c (generic_load): Whitespace and long line cleanups.
3501 Remove duplicate variable, change several local variables to
3502 more appropriate data types.
3503 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3505 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3508 * language.c (longest_local_hex_string_custom): Use phex_nz to
3509 convert NUM to a hex string.
3511 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3513 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3515 Update Copyright year.
3517 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3519 * language.c (longest_raw_hex_string): Delete unused function.
3521 2002-01-11 Petr Sorfa <petrs@caldera.com>
3523 * MAINTAINERS (write-after-approval): Add myself.
3524 * dwarf2read.c (read_tag_string_type): Handling of
3526 (read_tag_string_type): FORTRAN fix to prevent propagation of
3528 (set_cu_language): Handling of DW_LANG_Fortran95
3530 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3532 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3533 GETPID(inferior_ptid).
3534 (store_inferior_registers): Likewise.
3536 2002-01-10 Jason Merrill <jason@redhat.com>
3538 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3541 2002-01-10 Andrew Cagney <ac131313@redhat.com>
3543 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3544 and bfd/elf32-sh-nbsd.c.
3546 2002-01-10 Michael Snyder <msnyder@redhat.com>
3548 * NEWS: Mention --pid and corefile/proc-id behavior change.
3550 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3551 * gcore.c: Include cli/cli-decode.h instead of command.h.
3553 * main.c (captured_main): Add new command line option "--pid".
3554 If the second command line argument (following the symbol-file)
3555 begins with a digit, try to attach to it before trying to open
3557 (print_gdb_help): Document the "--pid" argument.
3559 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3561 * completer.c (command_completer): New function.
3563 * completer.h <command_completer>: Add prototype.
3565 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3566 completer for the "help" command.
3568 2002-01-09 Jason Merrill <jason@redhat.com>
3570 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3572 2002-01-09 Michael Snyder <msnyder@redhat.com>
3574 * i386-linux-nat.c (fill_fpxregset): Make global.
3575 (store_fpxregset): Ditto.
3577 * gregset.h (gdb_fpxregset_t): Define.
3578 (supply_fpxregset): Prototype.
3579 (fill_fpxregset): Prototype.
3581 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3583 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3585 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3586 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3587 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3589 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3591 * MAINTAINERS: Update target maintainer rules so that any
3592 Maintainer can approve a tested patch for a maintenance-only
3595 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3597 * MAINTAINERS (write-after-approval): Add myself.
3599 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3602 2002-01-08 Michael Snyder <msnyder@redhat.com>
3604 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3605 real name of the executable, rather than the /proc name.
3607 2002-01-03 Michael Snyder <msnyder@redhat.com>
3609 Implement a "generate-core-file" command in gdb, save target state.
3610 * gcore.c: New file. Implement new command 'generate-core-file'.
3611 Save a corefile image of the current state of the inferior.
3612 * linux-proc.c: Add linux-specific code for saving corefiles.
3613 * target.h (struct target_ops): Add new target vectors for saving
3614 corefiles; to_find_memory_regions and to_make_corefile_notes.
3615 (target_find_memory_regions): New macro.
3616 (target_make_corefile_notes): New macro.
3617 * target.c (update_current_target): Inherit new target methods.
3618 (dummy_find_memory_regions): New place-holder method.
3619 (dummy_make_corefile_notes): New place-holder method.
3620 (init_dummy_target): Initialize new dummy target vectors.
3621 * exec.c (exec_set_find_memory_regions): New function.
3622 Allow the exec_ops vector for memory regions to be taken over.
3623 (exec_make_note_section): New function, target vector method.
3624 * defs.h (exec_set_find_memory_regions): Export prototype.
3625 * procfs.c (proc_find_memory_regions): New function, corefile method.
3626 (procfs_make_note_section): New function, corefile method.
3627 (init_procfs_ops): Set new target vector pointers.
3628 (find_memory_regions_callback): New function.
3629 (procfs_do_thread_registers): New function.
3630 (procfs_corefile_thread_callback): New function.
3631 * sol-thread.c (sol_find_memory_regions): New function.
3632 (sol_make_note_section): New function.
3633 (init_sol_thread_ops): Initialize new target vectors.
3634 * inftarg.c (inftarg_set_find_memory_regions): New function.
3635 Allow to_find_memory_regions vector to be taken over.
3636 (inftarg_set_make_corefile_notes): New function.
3637 Allow to_make_corefile_notes vector to be taken over.
3638 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3639 interface layer if not target_has_execution (may be a corefile).
3640 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3641 * config/sparc/sun4sol2.mh: Ditto.
3642 * config/alpha/alpha-linux.mh: Ditto.
3643 * config/arm/linux.mh: Ditto.
3644 * config/i386/x86-64linux.mh: Ditto.
3645 * config/ia64/linux.mh: Ditto.
3646 * config/m68k/linux.mh: Ditto.
3647 * config/mips/linux.mh: Ditto.
3648 * config/powerpc/linux.mh: Ditto.
3649 * config/sparc/linux.mh: Ditto.
3651 2002-01-07 Michael Snyder <msnyder@redhat.com>
3653 * arm-linux-nat.c: Remove references to regcache.c internal data
3654 (registers[] and register_valid[]).
3656 2002-01-07 Michael Snyder <msnyder@redhat.com>
3658 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3659 so that attaching to a pid will automatically read the process's
3660 symbol file and shlibs.
3661 * Makefile.in: Add rule for linux-proc.o.
3662 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3663 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3664 * config/arm/linux.mh: Ditto.
3665 * config/i386/linux.mh: Ditto.
3666 * config/i386/x86-64linux.mh: Ditto.
3667 * config/ia64/linux.mh: Ditto.
3668 * config/m68k/linux.mh: Ditto.
3669 * config/mips/linux.mh: Ditto.
3670 * config/powerpc/linux.mh: Ditto.
3671 * config/sparc/linux.mh: Ditto.
3673 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3675 * win32-nat.c: Add i386-tdep.h dependency.
3677 2002-01-07 Michael Snyder <msnyder@redhat.com>
3679 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3680 instead of bfd_get_arch_size. Don't bail out just because
3681 there's no exec_bfd.
3683 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3684 * p-valprint.c (pascal_object_print_value): Ditto.
3685 * somread.c (som_symtab_read): Ditto.
3686 * symfile.c (simple_free_overlay_region_table): Ditto.
3687 * valops.c (value_assign): Ditto.
3689 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3690 use tilde_expand and strerror for opening save-tracepoints file.
3692 * thread-db.c (thread_db_new_objfile): Indendation fix.
3694 * infptrace.c (GDB_MAX_ALLOCA): New define.
3695 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3696 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3697 can be overridden with whatever value is appropriate to the host).
3698 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3699 alloca to allocate potentially large buffer.
3700 * rs6000-nat.c (child_xfer_memory): Ditto.
3701 * symm-nat.c (child_xfer_memory): Ditto.
3702 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3704 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3706 From Nick Clifton <nickc@redhat.com>
3707 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3709 2002-01-07 Michael Snyder <msnyder@redhat.com>
3711 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3712 Don't use exec_bfd if it's NULL.
3714 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3716 * valops.c (value_arg_coerce): Fix formatting.
3718 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3720 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3723 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3725 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3726 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3727 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3728 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3729 z8k-coff have not been multi-arched. Update z8k-coff build
3732 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3734 * MAINTAINERS: Mark a29k target as obsolete.
3735 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3736 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3738 * NEWS: Note that a29k targets are obsolete.
3739 * a29k-tdep.c: Mark as obsolete.
3740 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3741 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3742 a29k-*-vxworks* targets as obsolete.
3743 * remote-adapt.c: Obsolete.
3744 * remote-eb.c: Obsolete.
3745 * remote-mm.c: Obsolete.
3746 * remote-udi.c: Obsolete.
3747 * config/a29k/a29k-udi.mt: Obsolete.
3748 * config/a29k/a29k.mt: Obsolete.
3749 * config/a29k/tm-a29k.h: Obsolete.
3750 * config/a29k/tm-vx29k.h: Obsolete.
3751 * config/a29k/vx29k.mt: Obsolete.
3753 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3755 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3756 with BFD_ENDIAN_BIG.
3758 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3760 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3761 * configure, config.in: Re-generate.
3762 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3763 * defs.h: Do not include <endian.h>.
3765 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3767 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3768 * config.in: Regenerate.
3769 * configure.in: Update copyright years.
3770 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3771 * configure: Regenerate.
3772 * i386bsd-nat.c: Update copyright years.
3773 (fill_gregset): Use regcache_collect.
3774 (fetch_inferior_registers): Only fetch integer registers
3775 if requested to do so. Add support for XMM registers
3776 using PT_GETXMMREGS.
3777 (store_inferior_registers): Only store integer registers
3778 if requested to do so. Add support for XMM registers
3779 using PT_SETXMMREGS.
3780 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3781 (store_inferior_registers): Remove.
3782 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3783 (fetch_elfcore_registers): New function.
3784 (i386nbsd_elfcore_fns): New.
3785 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3786 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3788 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3789 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3790 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3791 * config/i386/tm-nbsd.h: Update copyright years.
3792 (HAVE_SSE_REGS): Define.
3793 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3794 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3795 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3796 (SIGCONTEXT_PC_OFFSET): Remove.
3797 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3799 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3801 * configure.tgt: Remove powerpc-*-macos* target.
3802 * config/m68k/xm-mpw.h: Delete file.
3803 * config/xm-mpw.h: Delete file.
3804 * ser-mac.c: Delete file.
3805 * mpw-make.sed: Delete file.
3806 * mpw-config.in: Delete file.
3807 * mac-xdep.c: Delete file.
3808 * mac-gdb.r: Delete file.
3809 * mac-defs.h: Delete file.
3810 * mac-nat.c: Delete file.
3811 * config/powerpc/macos.mh: Delete file.
3812 * config/powerpc/macos.mt: Delete file.
3813 * config/powerpc/nm-macos.h: Delete file.
3814 * config/powerpc/tm-macos.h: Delete file.
3815 * source.c (openp, open_source_file): Remove obsolete code.
3816 * top.c (gdb_readline): Ditto.
3817 * utils.c (query): Ditto.
3818 * event-top.c (display_gdb_prompt): Ditto.
3819 * Makefile.in (ser-mac.o): Delete obsolete target.
3822 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3824 * defs.h (BIG_ENDIAN): Delete macro definition.
3825 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3826 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3827 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3828 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3829 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3830 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3831 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3832 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3833 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3834 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3835 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3836 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3837 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3838 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3839 * gdbarch.c: Re-generate.
3841 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3843 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3846 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3848 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3850 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3852 * value.h (value_ptr): Delete typedef.
3854 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3856 * i386nbsd-nat.c: Update copyright years.
3857 Include i386-tdep.h.
3859 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3861 * stabsread.c: Update copyright years.
3863 From Debashis Mahata <debashis.mahata@wipro.com>:
3864 (read_struct_fields): Deal with Sun C compiler erroneous stab
3865 output for structs and unions.
3868 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3870 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3873 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3875 * cp-abi.c: Fix whitespace.
3876 (baseclass_offset): New wrapper function.
3877 * cp-abi.h (baseclass_offset): Add prototype.
3878 (struct cp_abi_ops): Add baseclass_offset pointer.
3880 * valops.c (vb_match): Move to...
3881 * gnu-v2-abi.c (vb_match): here.
3882 * valops.c (baseclass_offset): Move to...
3883 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3885 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3887 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3888 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3889 * hpacc-abi.c (init_hpacc_ops): Likewise.
3891 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3893 * valops.c (find_overload_match): Accept obj as a
3894 reference parameter. Update it before returning.
3895 * value.h (find_overload_match): Update prototype.
3896 * eval.c (evaluate_subexp_standard): Pass object to
3897 find_overload_match by reference.
3899 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3901 * valarith.c: Replace value_ptr with struct value pointer. Remove
3902 register attribute from value declarations.
3905 * scm-lang.c (scm_lookup_name): Ditto.
3907 2002-01-03 Michael Snyder <msnyder@redhat.com>
3909 Abstract the functionality of iterating over mapped memory
3910 regions into a general purpose iterator function.
3911 * procfs.c (iterate_over_mappings): New function, general purpose
3912 iterator for memory sections.
3913 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3914 (solib_mappings_callback): New function, callback for above.
3915 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3916 (info_mappings_callback): New function, callback for above.
3918 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3920 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3922 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3923 * i386-tdep.c: Include "elf-bfd.h".
3924 (process_note_abi_tag_sections): New function.
3925 (i386_gdbarch_init): Add code to recognize various OS/ABI
3928 * maint.c (_initialize_maint_cmds): Add missing \ in
3931 For older changes see ChangeLog-2001
3937 version-control: never