1 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3 * infcmd.c (print_return_value): Remove compatibility code calling
4 deprecated_grub_regcache_for_registers.
6 * values.c: Include "regcache.h".
7 (value_being_returned): Update. Use
8 deprecated_grub_regcache_for_registers to extract the register
10 * value.h (value_being_returned): Change ``retbuf'' parameter to a
12 * Makefile.in (values.o): Add dependency on $(regcache_h).
14 * inferior.h (run_stack_dummy): Change type of second parameter to
15 a ``struct regcache''.
16 * valops.c (hand_function_call): Change type of retbuf to ``struct
17 regcache''. Allocate using regcache_xmalloc, clean using
18 make_cleanup_regcache_xfree.
19 * infcmd.c (run_stack_dummy): Update. Use
20 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
22 * regcache.c (do_regcache_xfree): New function.
23 (make_cleanup_regcache_xfree): New function.
24 * regcache.h (make_cleanup_regcache_xfree): Declare.
26 2002-07-03 Martin M. Hunt <hunt@redhat.com>
28 * event-top.c (command_line_handler): Don't read past
31 2002-07-03 Martin M. Hunt <hunt@redhat.com>
33 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
35 (varobj_create): Store frame_id for root.
36 (varobj_gen_name): Use xasprintf.
37 (varobj_update): Save and restore frame using get_frame_id() and
39 (create_child): Use xasprintf.
40 (new_root_variable): Initialize frame_id.
41 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
42 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
43 to prevent memory leak.
45 2002-07-03 Andrew Cagney <ac131313@redhat.com>
47 * valops.c (hand_function_call): Move declaration of retbuf to
48 start of function, allocate using malloc, add a cleanup but before
49 the inf_status cleanup, cleanup the buffer. Rename local variable
50 old_chain to inf_status_cleanup.
52 2002-07-03 Martin M. Hunt <hunt@redhat.com>
54 * top.c (execute_command): Use cmd_func() and cmd_func_p().
56 * cli/cli-decode.c (cmd_func_p): New function.
57 (cmd_func): New function.
59 * command.h: Add cmd_func() and cmd_func_p().
61 2002-07-03 Grace Sainsbury <graces@redhat.com>
63 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
64 (REGISTER_SIZE): Remove.
65 (MAX_REGISTER_RAW_SIZE): Remove.
66 (REGISTER_VIRTUAL_TYPE): Remove.
67 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
68 (REGISTER_NAME): Remove.
69 (USE_GENERIC_DUMMY_FRAMES): Remove.
71 (CALL_DUMMY_START_OFFSET): Remove.
72 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
73 (CALL_DUMMY_LOCATION): Remove.
74 (FIX_CALL_DUMMY): Remove.
75 (CALL_DUMMY_ADDRESS): Remove.
76 (SIZEOF_CALL_DUMMY_WORDS): Remove.
77 (SAVE_DUMMY_FRAME_TOS): Remove.
78 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
79 (mcore_register_virtual_type): New function.
80 (mcore_register_byte): New function.
81 (mcore_register_size): New function.
82 (mcore_register_name): New function.
83 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
84 macros removed from tm-mcore.h.
85 (mcore_dump_tdep): Add.
86 (_initialize_mcore_tdep): Add gdbarch_register call.
88 2002-07-03 Mark Kettenis <kettenis@gnu.org>
90 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
91 frameless_look_for_prologue, such that we actually call this
94 2002-07-02 Joel Brobecker <brobecker@gnat.com>
96 * frame.h (frame_address_in_block): New function.
98 * blockframe.c (frame_address_in_block): New function extracted
99 from get_frame_block().
100 (get_frame_block): Use frame_address_in_block().
101 (block_innermost_frame): Use frame_address_in_block() to match
102 the frame pc address against the block boundaries rather than
103 the frame pc directly. This prevents a failure when a frame pc
104 is actually a return-address pointing immediately after the end
107 2002-07-02 Grace Sainsbury <graces@redhat.com>
109 * MAINTAINERS: Add self under write after approval.
111 2002-07-02 Grace Sainsbury <graces@redhat.com>
113 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
114 used in architecture vector. The default is
115 m68k_local_breakpoint_from_pc.
116 (m68k_local_breakpoint_from_pc): Add.
117 (enum): Add register numbers from tm-m68k.h.
118 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
120 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
121 GDB_MULTI_ARCH_PARTIAL.
122 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
123 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
125 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
126 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
127 to enum in m68k-tdep.c
129 2002-07-02 Joel Brobecker <brobecker@gnat.com>
131 * solib-osf.c (open_map): Compute the list of shared libraries
132 loaded by the inferior, rather than the list of libraries loaded
133 by GDB itself. Otherwise, GDB ends up reading the symbols from
134 the wrong shared libraries...
136 2002-07-02 Mark Kettenis <kettenis@gnu.org>
138 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
139 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
141 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
143 (FRAMELESS_SIGNAL): Remove function.
144 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
145 i386_linux_saved_pc_after_call): Removed.
146 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
147 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
148 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
150 * i386-tdep.c (i386_frameless_signal_p): New function.
151 (i386_frame_chain): Deal with frameless signals.
152 (i386_sigtramp_saved_sp): New function.
153 (i386_frame_saved_pc): Deal with frameless signals.
154 (i386_saved_pc_after_call): Make sure the correct value is
155 returned just after entry into a sigtramp.
156 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
157 i386fbsd4_sc_sp_offset): New variables.
158 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
159 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
160 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
161 similiar to what we already did for sc_pc_offset.
162 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
165 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
167 2002-07-02 Michal Ludvig <mludvig@suse.cz>
169 * config/i386/tm-x86-64linux.h: New.
170 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
172 * config/i386/nm-x86-64.h: Rename to ...
173 * config/i386/nm-x86-64linux.h: ... this one.
174 * config/i386/x86-64linux.mh: Reflect the above change.
176 2002-07-01 Mark Kettenis <kettenis@gnu.org>
178 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
179 with sigcontext_addr. Add sc_sp_offset.
180 (i386bsd_sigtramp_saved_pc): Remove prototype.
181 (i386bsd_sicontext_addr): Add prototype.
182 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
183 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
184 (i386_svr4_sigtramp_saved_pc): Removed.
185 (i386_svr4_sigcontext_addr): New function.
186 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
187 Initialize tdep->sigcontext_addr instead. Initialize
188 tdep->sc_pc_offset and tdep->sc_sp_offset.
189 (i386_gdbarch_init): Likewise.
190 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
192 (i386bsd_sigtramp_saved_pc): Remove function.
193 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
194 Initialize tdep->sigcontext_addr instead. Initialize
196 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
197 of tdep->sigtramp_saved_pc.
198 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
199 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
202 * i386-tdep.c (i386_frameless_function_invocation,
203 i386_frame_num_args, i386_frame_init_saved_regs,
204 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
205 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
206 i386_extract_return_value, i386_store_return_value,
207 i386_extract_struct_value_address, i386_register_virtual_type,
208 i386_register_convertible, i386_register_convert_to_virtual,
209 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
210 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
213 2002-07-01 Mark Kettenis <kettenis@gnu.org>
215 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
217 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
218 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
219 this macro. Include "value.h".
221 2002-06-30 Aidan Skinner <aidan@velvet.net>
223 * ada-exp.tab.c: remove as it's a generated file
224 * ada-lex.c: remove as it's a generated file
226 2002-06-30 Mark Kettenis <kettenis@gnu.org>
228 * config/i386/tm-i386.h (struct frame_info, struct
229 frame_saved_regs, struct value, struct type): Remove forward
232 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
233 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
234 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
235 (FILL_FPXREGSET): Define.
237 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
239 * configure.tgt (i[3456]86-*-openbsd*): Fold into
240 i[3456]86-*-netbsd* case.
241 * config/i386/tm-obsd.h: Removed.
242 * config/i386/obsd.mt: Removed.
243 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
245 (MH_CFLAGS): Add -DYYDEBUG=0.
247 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
248 i386nbsd_sc_pc_offset on OpenBSD too.
250 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
251 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
252 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
254 * i386bsd-tdep.c: Include "arch-utils.h".
255 (i386bsd_aout_in_solib_call_trampoline): New function.
256 (i386bsd_init_abi): Set in_solib_call_trampoline to
257 i386bsd_aout_in_solib_call_trampoline.
258 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
259 in_solib_call_trampoline to generic_in_solib_call_trampoline.
261 2002-06-28 Andrew Cagney <ac131313@redhat.com>
263 * macrotab.h: Do not include "obstack.h" or "bcache.h".
264 (struct obstack, struct bcache): Add opaque declarations.
265 * Makefile.in (macrotab_h): Update
267 2002-06-28 Andrew Cagney <ac131313@redhat.com>
269 * blockframe.c (generic_find_dummy_frame): Change return type to
271 (struct dummy_frame): Replace field ``registers'' with regcache, a
272 struct regcache object.
273 (generic_find_dummy_frame): Update.
274 (generic_push_dummy_frame): Update. Use regcache_xfree,
275 regcache_xmalloc and regcache_cpy.
276 (generic_pop_dummy_frame): Update. Use regcache_cpy and
278 (deprecated_generic_find_dummy_frame): Update.
279 (generic_read_register_dummy): Update. Use
280 regcache_read_as_address.
281 (generic_call_dummy_register_unwind): Update. Use regcache_read.
282 (generic_get_saved_register): Update. Use regcache_read.
284 2002-06-28 Andrew Cagney <ac131313@redhat.com>
286 * Makefile.in (objfiles_h): Add $(bcache_h).
287 * objfiles.h: Include "bcache.h".
289 * Makefile.in (symtab_h): Remove $(bcache_h).
290 * symtab.h: Do not include "bcache.h".
292 2002-06-28 Andrew Cagney <ac131313@redhat.com>
294 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
295 generic_func_frame_chain_valid.
297 2002-06-28 David O'Brien <obrien@FreeBSD.org>
299 * config/i386/nm-fbsd.h: Include <sys/param.h>.
300 * config/i386/tm-fbsd.h: Likewise.
302 2002-06-28 Andrew Cagney <ac131313@redhat.com>
304 * rs6000-tdep.c (rs6000_gdbarch_init): Use
305 generic_unwind_get_saved_register.
307 2002-06-27 Andrew Cagney <ac131313@redhat.com>
309 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
310 * regcache.c (supply_register): Add missing argument to
311 register_buffer call.
313 2002-06-27 Andrew Cagney <ac131313@redhat.com>
315 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
316 Solaris /bin/grep does not not like it. From Peter Schauer.
318 2002-06-26 Tom Tromey <tromey@redhat.com>
320 * command.h (add_setshow_cmd): Declare.
321 (add_setshow_cmd_full): Declare.
322 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
323 returns void. Use add_setshow_cmd_full.
324 (add_setshow_cmd_full): New function.
325 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
326 (add_setshow_boolean_cmd): Likewise.
328 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
330 * config/vax/tm-vax.h: Protect from multiple inclusion.
331 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
332 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
333 * config/vax/tm-vaxbsd.h: ...here. New file.
334 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
336 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
338 * config/vax/tm-vax.h (BREAKPOINT): Remove.
339 (BELIEVE_PCC_PROMOTION): Remove.
340 (AP_REGNUM): Move to...
341 * config/vax/nm-vax.h: ...here.
342 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
343 (vax_breakpoint_from_pc): New function.
344 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
345 and gdbarch_believe_pcc_promotion.
347 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
349 * Makefile.in (vax_tdep_h): Define.
350 (vax-tdep.o): Use $(vax_tdep_h).
351 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
352 (vax_dump_tdep): New function.
353 (_initialize_vax_tdep): Register vax_dump_tdep.
354 * vax-tdep.h: Include osabi.h.
355 (struct gdbarch_tdep): New.
357 2002-06-26 Andrew Cagney <cagney@redhat.com>
359 * frame.h (deprecated_generic_find_dummy_frame): Rename
360 generic_find_dummy_frame.
361 * blockframe.c (generic_find_dummy_frame): Make static.
362 (deprecated_generic_find_dummy_frame): New function.
363 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
364 generic_find_dummy_frame with deprecated_find_dummy_frame.
365 (sh64_nofp_frame_init_saved_regs): Ditto.
366 (sh_fp_frame_init_saved_regs): Ditto.
367 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
368 (s390_frame_chain): Ditto.
369 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
371 2002-06-26 Grace Sainsbury <graces@redhat.com>
373 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
374 gdbarch vector are at the top.
376 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
377 (FRAME_ARGS_ADDRESS): Remove.
378 (FRAME_LOCALS_ADDRESS): Remove.
379 (FRAME_NUM_ARGS): Remove.
380 (FRAME_ARGS_SKIP): Remove.
381 * m68k-tdep.c (enum): Add eumeration of special register numbers.
382 (m68k_gdbarch_init): Add gdbarch initializations for macros
383 undefined in tm-m68k.h
385 2002-06-26 Grace Sainsbury <graces@redhat.com>
387 * monitor.h: Add the function regname to monitor_ops
388 structure. This way NUM_REGS does not have to be a constant.
389 * monitor.c (monitor_fetch_register): Added support for regname
390 function. The function is called if the array regnames is NULL.
391 (monitor_store_register): Same.
392 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
394 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
395 cpu32bug_cmds.regname to point to new function.
396 * abug-rom.c (abug_regname): Same as above.
397 (init_abug_cmds): Same.
398 * dbug-rom.c (dbug_regname): Same as above.
399 (init_dbug_cmds): Same.
400 * remote-est.c (est_regname): Same.
401 (init_est_cmds): Same.
402 * rom68k-rom.c (rom68k_regname): Same.
403 (init_rom68k_cmds): Same.
405 2002-06-25 Tom Tromey <tromey@redhat.com>
407 * breakpoint.c (delete_command): Don't repeat `delete' commands.
409 2002-06-25 Andrew Cagney <cagney@redhat.com>
411 * infrun.c (stop_registers): Change variable's type to ``struct
413 (xmalloc_inferior_status): Delete function.
414 (free_inferior_status): Delete function.
415 (normal_stop): Use regcache_cpy.
416 (struct inferior_status): Change type of fields ``stop_registers''
417 and ``registers'' to ``struct regcache''.
418 (write_inferior_status_register): Use regcache_write.
419 (save_inferior_status): Instead of calling
420 xmalloc_inferior_status, allocate the inf_status buffer directly.
421 Use regcache_dup_no_passthrough and regcache_dup to save the
423 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
424 Replace the stop_registers regcache instead of overriding it. Use
425 regcache_xfree. Instead of calling free_inferior_status, xfree
427 (discard_inferior_status): Use regcache_xfree. Instead of calling
428 free_inferior_status, xfree the buffer directly.
429 (build_infrun): Use regcache_xmalloc.
430 (_initialize_infrun): Delete redundant call to build_infrun.
432 * Makefile.in (infcmd.o): Add $(regcache_h).
434 * infcmd.c: Include "regcache.h".
435 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
436 obtain the address of `stop_registers' register buffer.
437 (print_return_value): Ditto.
439 * inferior.h (struct regcache): Add opaque declaration.
440 (stop_registers): Change variable's declared type to ``struct
443 2002-06-24 Tom Tromey <tromey@redhat.com>
445 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
446 * target.c (initialize_targets): Fixed typo in
447 trust-readonly-sections `show' documentation.
449 * main.c: Marked all strings with _().
451 2002-06-24 Don Howard <dhoward@redhat.com>
453 * memattr.c (create_mem_region): Treat hi == 0 as a special case
454 that means max CORE_ADDR+1.
455 (lookup_mem_region): Ditto.
456 (mem_info_command): Ditto.
458 2002-06-24 Grace Sainsbury <graces@redhat.com>
460 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
461 (REGISTER_BYTES_OK): Remove.
462 (REGISTER_BYTES): Remove.
463 (STORE_STRUCT_RETURN): Remove.
464 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
465 (STORE_RETURN_VALUE): Remove.
466 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
467 (FRAME_CHAIN): Remove.
468 (FRAMELESS_FUNCTION_INVOCATION): Remove.
469 (FRAME_SAVED_PC): Remove.
470 * m68k-tdep.c (m68k_register_bytes_ok):Add.
471 (m68k_store_struct_return): Add.
472 (m68k_deprecated_extract_return_value): Add.
473 (m68k_deprecated_extract_struct_value_address): Add.
474 (m68k_store_return_value): Add.
475 (m68k_frame_chain): Add.
476 (m68k_frameless_function_invocation): Add.
477 (m68k_frame_saved_pc): Add.
478 (m68k_gdbarch_init): added set_gdbarch calls for new
479 functions and deleted macros.
481 2002-06-23 Tom Tromey <tromey@redhat.com>
483 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
484 (ALLDEPFILES): Likewise.
485 (udiheaders): Removed.
486 (udip2soc.o): Likewise.
487 (udi2go32.o): Likewise.
489 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
491 2002-06-22 Andrew Cagney <ac131313@redhat.com>
493 * infrun.c (_initialize_infrun): Delete unnecessary call to
496 * regcache.h: Update comments describing the regcache_cpy family
498 (regcache_save, regcache_restore): Delete declaration.
499 (regcache_save_no_passthrough): Delete declaration.
500 (regcache_restore_no_passthrough): Delete declaration.
501 * regcache.c (regcache_save): Delete function.
502 (regcache_save_no_passthrough): Delete function.
503 (regcache_restore): Delete function.
504 (regcache_restore_no_passthrough): Delete function.
506 2002-06-21 Andrew Cagney <ac131313@redhat.com>
508 * config/m68k/tm-m68k.h: Fix typo.
509 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
510 (m68k_frame_init_saved_regs): Declare.
512 2002-06-21 Jim Blandy <jimb@redhat.com>
514 Remove some vestiges of Harris 88k support.
515 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
516 register numbering quirk.
517 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
518 odd symbols occurring in Harris 88k ELF targets.
520 2002-06-21 Tom Tromey <tromey@redhat.com>
522 * gdb_locale.h: New file.
523 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
524 (defs_h): Added gdb_locale.h.
525 * configure, config.in: Rebuilt.
526 * configure.in (PACKAGE): Define.
527 * defs.h: Include gdb_locale.h.
528 * main.c (captured_main): Call setlocale, bindtextdomain,
531 2002-06-21 Dave Brolley <brolley@redhat.com>
533 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
534 * config/frv/frv.mt: New file.
535 * config/frv/tm-frv.h: New file.
536 * configure.tgt: Support frv-*-*.
537 * Makefile.in (frv-tdep.o): New target.
538 * frv-tdep.c: New file.
541 2002-06-21 Dave Brolley <brolley@redhat.com>
543 * MAINTAINERS: Add self to "Write After Approval" list.
545 2002-06-21 Grace Sainsbury <graces@redhat.com>
547 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
548 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
549 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
550 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
551 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
553 * m68k-tdep.c: Include arch-utils.h
554 (m68k_register_raw_size): Add.
555 (m68k_register_virtual_size): Add.
556 (m68k_register_virtual_type): Add.
557 (m68k_register_name): Add.
558 (m68k_stack_align): Add.
559 (m68k_register_byte): Add.
560 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
563 2002-06-21 Grace Sainsbury <graces@redhat.com>
565 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
566 m68k_find_saved_regs.
567 (m68k_pop_frame): Removed saved_regs structure, and replaced
568 references to it with frame->saved_regs.
569 (m68k_gdbarch_init): Added function calls to initialize the
571 (m68k_fix_call_dummy): Add.
572 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
573 (CALL_DUMMY): Remove.
574 (CALL_DUMMY_LENGTH): Remove.
575 (CALL_DUMMY_START_OFFSET): Remove.
576 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
577 (FIX_CALL_DUMMY): Remove.
578 (PUSH_DUMMY_FRAME): Remove.
581 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
583 * parse.c (parse_fprintf): New function used to avoid calls to
584 fprintf in bison parser generated debug code.
585 * parser-defs.h: Declaration of new parse_fprintf function.
586 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
587 Set YYDEBUG to 1 by default.
588 Set YYFPRINTF as parse_fprintf.
590 2002-06-21 Michal Ludvig <mludvig@suse.cz>
592 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
594 (pointer_encoding, enum ptr_encoding): New.
595 (execute_cfa_program): Take care about pointer encoding.
596 (dwarf2_build_frame_info): Only call parse_frame_info for
597 .debug_frame and .eh_frame.
598 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
599 fixed augmentation handling, added relative addressing,
600 ignore duplicate FDEs. Added comments.
601 * dwarf2cfi.c: Reindented.
603 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
605 * event-top.c (command_handler): Don't use space_at_cmd_start
606 unless there is sbrk() on the host. Assign time and space data
607 to union fields of the appropriate length.
609 2002-06-20 Michal Ludvig <mludvig@suse.cz>
611 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
612 x86_64_register_name. Return type changed to 'const char *'.
613 (x86_64_register_name2nr): Rename to x86_64_register_number.
614 (x86_64_gdbarch_init): Update to reflect the change.
615 * x86-64-tdep.h: Ditto.
616 * x86-64-linux-nat.c (x86_64_fxsave_offset)
617 (supply_fpregset): Ditto.
619 2002-06-19 Andrew Cagney <cagney@redhat.com>
621 * regcache.h: Update copyright.
622 (struct regcache, struct gdbarch): Add opaque declarations.
623 (current_regcache): Declare global variable.
624 (regcache_read, regcache_write): Add gdbarch parameter.
625 (regcache_save, regcache_save_no_passthrough)
626 (regcache_restore, regcache_restore_no_passthrough)
627 (regcache_dup, regcache_dup_no_passthrough)
628 (regcache_cpy, regcache_cpy_no_passthrough)
629 (deprecated_grub_regcache_for_registers)
630 (deprecated_grub_regcache_for_register_valid)
631 (regcache_valid_p): Add function declarations.
633 * regcache.c: Update copyright.
634 (regcache_descr_handle): New global variable.
635 (struct regcache_descr): Define.
636 (init_legacy_regcache_descr, init_regcache_descr): New functions.
637 (regcache_descr, xfree_regcache_descr): New functions.
638 (struct regcache): Define.
639 (regcache_xmalloc, regcache_xfree): New functions.
640 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
641 (regcache_dup, regcache_dup_no_passthrough): New functions.
642 (regcache_valid_p, regcache_read_as_address): New functions.
643 (deprecated_grub_regcache_for_registers): New function.
644 (deprecated_grub_regcache_for_register_valid): New function.
645 (current_regcache): New global variable.
646 (register_buffer): Add regcache parameter. Update calls.
647 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
648 (read_register_gen, write_register_gen): Update register_buffer
649 call. Test for legacy_p instead of gdbarch_register_read_p or
650 gdbarch_register_write_p.
651 (regcache_collect): Update register_buffer call.
652 (build_regcache): Rewrite. Use deprecated grub functions.
653 (regcache_save, regcache_save_no_passthrough): New functions.
654 (regcache_restore, regcache_restore_no_passthrough): New
656 (_initialize_regcache): Create the regcache_data_handle. Swap
657 current_regcache global variable.
659 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
660 parameter to regcache_read and regcache_write calls.
661 (sh4_register_read): Ditto.
662 (sh64_pseudo_register_read): Ditto.
663 (sh64_register_read): Ditto.
664 (sh_pseudo_register_write): Ditto.
665 (sh4_register_write): Ditto.
666 (sh64_pseudo_register_write): Ditto.
667 (sh64_register_write): Ditto.
669 * defs.h (XCALLOC): Define.
671 2002-06-19 Grace Sainsbury <graces@redhat.com>
673 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
674 * m68k-tdep.c (m68k_gdbarch_init): Added.
675 (m68k_dump_tdep): Added.
677 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
679 * ada-lang.c (fill_in_ada_prototype): Update comment.
681 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
683 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
685 (mips_abi_string, mips_abi_strings): New.
686 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
687 (mips_gdbarch_init): Set tdep->found_abi. Don't set
688 tdep->mips_abi_string. Honor mips_abi_string. Default to
689 O32 if no ABI is found.
690 (mips_dump_tdep): Use mips_abi_strings.
691 (mips_abi_update): New function.
692 (_initialize_mips_tdep): Initialize mips_abi_string. Add
693 ``set mips abi'' and ``show mips abi''. Check the size of
696 2002-06-19 Andrew Cagney <cagney@redhat.com>
698 * i386-linux-tdep.c (i386_linux_register_name): Make return type
701 2002-06-18 Joel Brobecker <brobecker@gnat.com>
703 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
704 current frame using only the first stack size adjustment. All
705 subsequent size adjustments are not considered to be part of
706 the "static" part of the current frame.
707 Compute the address of the saved registers relative to the
708 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
709 in use in this frame.
711 2002-06-18 Don Howard <dhoward@redhat.com>
713 * valops.c (value_ind): Use value_at_lazy() when dereferencing
714 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
715 suggesting this solution.
717 2002-06-18 Andrew Cagney <ac131313@redhat.com>
719 * config/romp/xm-rtbsd.h: Delete file.
720 * config/romp/rtbsd.mh: Delete file.
722 2002-06-18 Keith Seitz <keiths@redhat.com>
724 * breakpoint.c (condition_command): Post breakpoint_modify
725 when a condition is added to an existing breakpoint.
726 (commands_command): Likewise for commands.
727 (set_ignore_count): Likewise for ignore counts.
728 If no tty, do not simply return, still need to send event
730 (ignore_command): Only print a newline if the command came
732 Don't call breakpoints_changed, since this is now properly
733 handled by set_ignore_count.
735 2002-06-18 Andrew Cagney <cagney@redhat.com>
737 * MAINTAINERS: Note that cris-elf target can be compiled with
739 * cris-tdep.c (cris_register_name): Make return type constant.
740 (cris_breakpoint_from_pc): Ditto.
742 2002-06-18 Michal Ludvig <mludvig@suse.cz>
744 * frame.h (struct frame_info): Change type of context to
747 2002-06-17 Andrew Cagney <cagney@redhat.com>
749 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
751 * gdbarch.h, gdbarch.c: Regenerate.
752 * config/mips/tm-mips.h (mips_register_name): Update.
753 * i386-tdep.h (i386_register_name): Update.
754 * mips-tdep.c (mips_register_name): Update
755 * alpha-tdep.c (alpha_register_name): Update.
756 * arch-utils.c (legacy_register_name): Update.
757 * arch-utils.h (legacy_register_name): Update.
758 * avr-tdep.c (avr_register_name): Update.
759 * ia64-tdep.c (ia64_register_name): Update.
760 * i386-tdep.c (i386_register_name): Update.
761 * sparc-tdep.c (sparc32_register_name): Update.
762 (sparc64_register_name): Update.
763 (sparclite_register_name): Update.
764 (sparclet_register_name): Update.
765 * sh-tdep.c (sh_generic_register_name): Update.
766 (sh_sh_register_name): Update.
767 (sh_sh3_register_name): Update.
768 (sh_sh3e_register_name): Update.
769 (sh_sh_dsp_register_name): Update.
770 (sh_sh3_dsp_register_name): Update.
771 (sh_sh4_register_name): Update.
772 (sh_sh64_register_name): Update.
773 * s390-tdep.c (s390_register_name): Update.
774 * rs6000-tdep.c (rs6000_register_name): Update.
775 * ns32k-tdep.c (ns32k_register_name_32082): Update.
776 (ns32k_register_name_32382): Update.
777 * d10v-tdep.c (d10v_ts2_register_name): Update.
778 (d10v_ts3_register_name): Update.
779 * xstormy16-tdep.c (xstormy16_register_name): Update.
780 * vax-tdep.c (vax_register_name): Update.
781 * v850-tdep.c (v850_register_name): Update.
782 * m68hc11-tdep.c (m68hc11_register_name): Update.
783 * mn10300-tdep.c (mn10300_generic_register_name): Update.
784 (am33_register_name): Update.
786 2002-06-17 Grace Sainsbury <graces@redhat.com>
788 * m68k-tdep.c: Reindented.
790 2002-06-17 Andrew Cagney <ac131313@redhat.com>
792 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
793 list of predefined types.
795 2002-06-16 Mark Kettenis <kettenis@gnu.org>
797 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
798 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
799 REGISTER_CONVERT_TO_RAW): Remove defines.
800 (i386_register_virtual_type, i386_register_convertible,
801 i386_register_convert_to_virtual, i386_register_convert_to_raw):
803 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
804 macros mentioned above.
806 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
807 (i386lynx_saved_pc_after_call): Remove prototype.
808 * i386ly-tdep.c: Include "i386-tdep.h".
809 (i386lynx_saved_pc_after_call): Make static. Use
810 read_memory_nobpt instead of read_memory. Use
811 read_memory_unsigned_integer instead of read_memory_integer.
812 (i386lynx_init_abi): New function.
813 (i386lynx_coff_osabi_sniffer): New function.
814 (_initialize_i386bsd_tdep): New function.
816 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
817 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
818 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
819 (i386_fix_call_dummy): Remove prototype.
820 * i386-tdep.c (i386_call_dummy_words): New variable.
821 (i386_gdbarch_init): Adjust for removal of the
822 macros mentioned above.
824 2002-06-15 Andrew Cagney <ac131313@redhat.com>
826 * command.h (add_setshow_auto_boolean_cmd): Replace
827 add_set_auto_boolean_cmd.
828 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
829 add_set_auto_boolean_cmd.
830 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
831 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
832 mask-address'' command.
833 (show_mask_address): Add cmd parameter.
834 * remote.c (add_packet_config_cmd): Update. Change type of
835 set_func and show_func to cmd_sfunc_ftype.
836 (_initialize_remote): Update `set remote Z-packet'
837 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
838 (show_remote_protocol_e_packet_cmd): Ditto.
839 (show_remote_protocol_E_packet_cmd): Ditto.
840 (show_remote_protocol_P_packet_cmd): Ditto.
841 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
842 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
843 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
844 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
845 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
846 (show_remote_protocol_Z_packet_cmd): Ditto.
847 (show_remote_protocol_binary_download_cmd): Ditto.
848 (show_remote_cmd): Pass NULL to all of above.
850 2002-06-15 Mark Kettenis <kettenis@gnu.org>
852 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
853 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
854 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
855 POP_FRAME): Remove defines.
856 (i386_push_arguments, i386_store_struct_return,
857 i386_extract_return_value, i386_store_return_value,
858 i386_extract_struct_value_address, i386_push_dummy_frame,
859 i386_pop_frame): Renove prototypes.
860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
861 macros mentioned above.
863 2002-06-15 Andrew Cagney <ac131313@redhat.com>
865 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
867 (add_setshow_cmd): New function.
868 * command.h (add_setshow_boolean_cmd): Replace
870 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
871 and ``set rdiromatzero''.
872 * maint.c (_initialize_maint_cmds): Update commented out code.
873 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
874 * target.c (initialize_targets): Update `set
875 trust-readonly-sections'.
876 * remote.c (_initialize_remote): Update `set remotebreak'.
878 2002-06-15 Mark Kettenis <kettenis@gnu.org>
880 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
881 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
882 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
883 fit into multi-arch framework.
884 (i386_breakpoint_from_pc): New function.
885 (i386_gdbarch_init): Adjust for removal of the macros mentioned
888 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
889 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
890 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
891 (i386_frameless_function_invocation, i386_frame_num_args,
892 i386_frame_init_saved_regs): Remove prototypes.
893 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
894 macros mentioned above.
896 2002-06-15 Andrew Cagney <ac131313@redhat.com>
898 * cli/cli-decode.c (set_cmd_cfunc): Update.
899 (set_cmd_sfunc): Update.
900 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
901 (set_cmd_sfunc, set_cmd_cfunc): Update.
902 * cli/cli-decode.h: Update.
904 2002-06-15 Mark Kettenis <kettenis@gnu.org>
906 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
907 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
909 2002-06-15 Andrew Cagney <ac131313@redhat.com>
911 * defs.h (auto_boolean): Declare enum.
912 * command.h (cmd_auto_boolean): Delete enum.
913 * mips-tdep.c (mask_address_var): Update.
914 (mips_mask_address_p): Update.
915 (show_mask_address): Update.
916 * remote.c (struct packet_config): Update.
917 (update_packet_config): Update.
918 (show_packet_config_cmd): Update.
920 (add_packet_config_cmd): Update.
921 (_initialize_remote):
923 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
924 (do_setshow_command): Update.
925 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
926 * cli/cli-decode.h: Update.
928 2002-06-15 Mark Kettenis <kettenis@gnu.org>
930 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
931 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
932 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
933 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
934 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
935 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
937 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
938 list of DJGPP COFF targets.
940 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
941 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
942 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
943 (FP0_REGNUM): Remove define.
944 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
945 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
946 (i386_register_virtual_size): Remove protoype.
947 * i386-tdep.c (i386_register_virtual_size): Removed.
948 (i386_extract_return_value, i386_store_return_value): Use
949 FP0_REGNUM instead of NUM_FREGS to determine whether the
950 floating-point registers are available.
951 (i386_gdbarch_init): Tweak FIXME about FPU registers.
952 Adjust for removal of macros mentioned above.
954 2002-06-15 Mark Kettenis <kettenis@gnu.org>
956 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
958 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
960 (supply_gregset, fill_gregset): Remove use of register keyword and
961 remove declaration for regmap. Use I386_NUM_GREGS instead of
962 NUM_REGS and NUM_FREGS.
963 (FPREGSET_FSAVE_OFFSET): Remove.
964 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
965 NUM_FREGS to determine whether the floating-point registers are
968 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
969 gnu_store_registers): Replace usage of NUM_GREGS with
972 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
973 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
974 usage of NUM_GREGS with I386_NUM_GREGS.
976 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
978 * i386bsd-nat.c: Include "i386-tdep.h".
979 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
982 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
983 and associated comment. They no longer make any sense, since we
984 don't use this file anymore on Linux.
986 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
987 * i386-tdep.c (i386_register_offset, i386_register_size): Use
988 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
989 elements in these arrays.
990 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
993 2002-06-15 Mark Kettenis <kettenis@gnu.org>
995 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
996 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
998 2002-06-14 Andrew Cagney <cagney@redhat.com>
1000 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
1001 EXTRACT_RETURN_VALUE.
1002 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
1003 EXTRACT_STRUCT_VALUE_ADDRESS.
1004 * gdbarch.h, gdbarch.c: Regenerate.
1006 * values.c (value_being_returned): Handle
1007 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1008 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
1010 * arm-linux-tdep.c (arm_linux_init_abi): Update.
1011 * arm-tdep.c (arm_gdbarch_init): Update.
1012 * avr-tdep.c (avr_gdbarch_init): Update.
1013 * cris-tdep.c (cris_gdbarch_init): Update.
1014 * d10v-tdep.c (d10v_gdbarch_init): Update.
1015 * ia64-tdep.c (ia64_gdbarch_init): Update.
1016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1018 * s390-tdep.c (s390_gdbarch_init): Update.
1019 * sh-tdep.c (sh_gdbarch_init): Update.
1020 * s390-tdep.c (s390_gdbarch_init): Update.
1021 * sparc-tdep.c (sparc_gdbarch_init): Update.
1022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1023 * v850-tdep.c (v850_gdbarch_init): Update.
1024 * vax-tdep.c (vax_gdbarch_init): Update.
1025 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1028 * config/arc/tm-arc.h: Update.
1029 * config/d30v/tm-d30v.h: Update.
1030 * config/fr30/tm-fr30.h: Update.
1031 * config/h8300/tm-h8300.h: Update.
1032 * config/h8500/tm-h8500.h: Update.
1033 * config/i386/tm-i386.h: Update.
1034 * config/i386/tm-ptx.h: Update.
1035 * config/i386/tm-symmetry.h: Update.
1036 * config/i960/tm-i960.h: Update.
1037 * config/m32r/tm-m32r.h: Update.
1038 * config/m68k/tm-delta68.h: Update.
1039 * config/m68k/tm-linux.h: Update.
1040 * config/m68k/tm-m68k.h: Update.
1041 * config/m88k/tm-m88k.h: Update.
1042 * config/mcore/tm-mcore.h: Update.
1043 * config/mips/tm-mips.h: Update.
1044 * config/mn10200/tm-mn10200.h: Update.
1045 * config/pa/tm-hppa.h: Update.
1046 * config/pa/tm-hppa64.h: Update.
1047 * config/sparc/tm-sp64.h: Update.
1048 * config/sparc/tm-sparc.h: Update.
1049 * config/sparc/tm-sparclet.h: Update.
1050 * config/z8k/tm-z8k.h: Update.
1052 2002-06-14 Andrew Cagney <cagney@redhat.com>
1054 * Makefile.in (i386_linux_tdep_h): Define.
1055 (i386_tdep_h, i387_tdep_h): Define.
1056 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
1057 $(i386_tdep_h) and $(i387_tdep_h).
1058 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1060 2002-06-14 Mark Kettenis <kettenis@gnu.org>
1062 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
1063 Already covered by the default.
1065 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
1066 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
1067 (i386_gdbarch_init): Initialize long_double_format and long_double
1070 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
1071 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
1073 * config/i386/i386sol2.mh: ... here.
1074 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
1075 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
1076 (SIGCONTEXT_PC_OFFSET): Remove define.
1077 (IN_SIGTRAMP): Remove define.
1078 * i386-sol2-tdep.c: New file.
1080 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
1081 * config/i386/tm-i386nw.h: Removed.
1083 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
1084 USE_STRUCT_CONVENTION): Remove defines.
1085 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1086 (get_longjmp_target): Remove prototype.
1087 (IN_SIGTRAMP): Remove define.
1088 (i386bsd_in_sigtramp): Remove prototype.
1089 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1090 function. Update comment accordingly
1091 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1092 (FRAME_SAVED_PC): Remove define.
1093 (i386bsd_frame_saved_pc): Remove prototype.
1094 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1095 GET_LONGJMP_TARGET): Remove defines.
1096 (get_longjmp_target): Remove prototype.
1097 (IN_SIGTRAMP): Remove define.
1098 (i386bsd_in_sigtramp): Remove prototype.
1099 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1100 function. Update comment accordingly
1101 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1102 (FRAME_SAVED_PC): Remove define.
1103 (i386bsd_frame_saved_pc): Remove prototype.
1104 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1106 (USE_STRUCT_CONVENTION): Remove prototype.
1107 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1109 (_initialize_i386bsd_nat): Revise logic to determine some
1110 constants at compile time when compiling a native GDB. Warn if
1111 things don't match up with what we expect.
1112 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1114 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1115 to use date stored in `struct gdbarch_tdep'.
1116 (i386bsd_sigcontext_offset): Remove varaible.
1117 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1118 stored in `struct gdbarch_tdep'.
1119 (i386bsd_frame_saved_pc): Make static.
1120 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1121 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1122 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1123 i386fbsd4_sc_pc_offset): New variables.
1124 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1125 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1127 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1129 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1130 Modify the value of i386fbsd_sigtramp_start and
1131 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1132 i386fbsd_sigtramp_end.
1133 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1136 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1137 define to i386-linux-tdep.h.
1138 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1139 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1141 (i386_linux_register_name, i386_linux_register_byte,
1142 i386_linux_register_raw_size): Remove prototypes.
1143 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1144 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1145 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1146 TARGET_WRITE_PC): Remove defines.
1147 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1148 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1149 i386_linux_write_pc): Remove prototypes.
1150 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1151 (get_longjmp_target): Remove prototype.
1152 * i386-linux-tdep.h: New file.
1153 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1154 * i386-linux-tdep.c: Include "i386-tdep.h" and
1155 "i386-linux-tdep.h".
1156 (i386_linux_register_name, i386_linux_register_byte,
1157 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1158 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1160 (i386_linux_init_abi): New function.
1161 (_initialize_i386_linux_tdep): New function.
1163 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1164 (i386_saved_pc_after_call): Remove prototype.
1165 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1166 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1167 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1168 (i386_register_name, i386_stab_reg_to_regnum,
1169 i386_dwarf_reg_to_regnum): Remove prototypes.
1170 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1171 SIZEOF_SSE_REGS): Remove defines.
1172 (REGISTER_BYTES): Remove define.
1173 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1174 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1175 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1176 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1177 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1178 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1179 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1180 (get_longjmp_target): Remove prototype.
1181 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1182 (sigtramp_saved_pc): Remove define.
1183 (i386v4_sigtramp_saved_pc): Remove prototype.
1184 * config/i386/tm-go32.h (FRAME_CHAIN,
1185 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1186 (i386go32_frame_saved_pc): Remove prototype.
1187 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1188 (get_longjmp_target): Remove prototype.
1189 * i386-tdep.h: Include "osabi.h".
1190 (enum i386_abi): Removed.
1191 (enum struct_return): New enum.
1192 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1193 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1194 sc_pc_offset members.
1195 (i386_gdbarch_register_os_abi): Remove prototype.
1196 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1197 I386_SSE_NUM_REGS): New defines.
1198 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1199 I386_SSE_SIZEOF_REGS): New defines.
1200 (i386_register_name, i386_register_byte, i386_register_raw_size):
1202 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1203 (i386bsd_sigtramp_saved_pc): New prototype.
1204 * i386-tdep.c: Don't include "elf-bfd.h".
1205 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1206 i386_frame_chain, i386_saved_pc_after_call): Make static.
1207 (i386_frame_saved_pc): Rewrite to call architecture dependent
1208 function to deal with signal handlers. Make static.
1209 (i386go32_frame_saved_pc): Removed.
1210 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1212 (i386_get_longjmp_target): New function.
1213 (default_struct_convention, pcc_struct_convention,
1214 reg_struct_convention, valid_conventions, struct_convention): New
1216 (i386_use_struct_convention): New function.
1217 (i386v4_sigtramp_saved_pc): Renamed to
1218 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1219 (i386_pc_in_sigtramp): New function.
1220 (i386_abi_names): Removed.
1221 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1222 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1224 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1225 i386_gdbarch_register_os_abi): Removed.
1226 (struct i386_abi_handler): Removed.
1227 (i386_abi_handler_list): Removed.
1228 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1230 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1231 i386_nw_init_abi): New functions.
1232 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1233 Use set_gdbarch_xxx() calls instead of relying on macros for a
1235 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1236 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1237 Register the various architecture variants defined in this file.
1239 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
1241 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1242 (struct main_type): Remove arg_types member. Update comments for
1244 (TYPE_ARG_TYPES): Remove.
1245 (TYPE_FN_FIELD_ARGS): Update.
1246 (smash_to_method_type): Update prototype.
1248 * c-typeprint.c (cp_type_print_method_args): Take method type
1249 instead of argument list. Use new argument layout. Simplify.
1250 (c_type_print_args): Use new argument layout. Simplify.
1251 (c_type_print_base): Update call to cp_type_print_method_args.
1252 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1253 argument; use die->type instead. Update call to
1254 smash_to_method_type.
1255 (read_structure_scope): Update call to dwarf2_add_member_fn.
1256 * gdbtypes.c (allocate_stub_method): Update comment.
1257 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1258 Use new argument layout.
1259 (check_stub_method): Use new argument layout. Don't count
1260 void as an argument.
1261 (print_arg_types): Update comments. Use new argument layout.
1262 (recursive_dump_type): Don't print arg_types member.
1263 * hpread.c (hpread_read_struct_type): Use new argument layout.
1264 (fixup_class_method_type): Likewise.
1265 (hpread_type_lookup): Likewise.
1266 * stabsread.c (read_type): Update calls to read_args and
1267 smash_to_method_type.
1268 (read_args): Use new argument layout. Simplify.
1269 * valops.c (typecmp): Use new argument layout. Update parameters
1270 and comments. Simplify.
1271 (hand_function_call): Use new argument layout.
1272 (search_struct_method): Update call to typecmp.
1273 (find_overload_match): Use new argument layout.
1275 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1277 * NEWS: Mention multithreaded debug support for gdbserver.
1279 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1281 * MAINTAINERS: Mention NEWS.
1283 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1285 * gdbserver/regcache.c: Add comment.
1287 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
1289 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1290 (struct mips_objfile_private, compare_pdr_entries): New.
1291 (non_heuristic_proc_desc): Read the ".pdr" section if it
1294 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1296 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1297 (arm_debug): New static variable.
1298 (_initialize_arm_tdep): Add ``set debug arm'' command.
1300 2002-06-12 Andrew Cagney <ac131313@redhat.com>
1302 * Makefile.in (sim_arm_h): Define.
1303 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1304 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1305 (arm_register_sim_regno): New function, map an internal REGNUM
1306 onto a simulator register number.
1307 (arm_gdbarch_init): Set register_sim_regno.
1309 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
1311 * MAINTAINERS: Add self.
1313 2002-06-11 Jim Blandy <jimb@redhat.com>
1315 * source.c (source_info): Mention whether the symtab has
1316 information about preprocessor macros.
1318 Call the command `info macro', not `show macro'.
1319 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1321 (_initialize_macrocmd): Register `info_macro_command' in
1322 `infolist', not `showlist'.
1324 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1326 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1327 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1328 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1329 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1330 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1332 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1333 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1334 (_initialize_mips_tdep): Remove dead code.
1335 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1336 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1337 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1338 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1339 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1340 MIPS_LAST_FP_ARG_REGNUM): Remove.
1342 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
1344 * gdbserver/thread-db.c: New file.
1345 * gdbserver/proc-service.c: New file.
1346 * gdbserver/acinclude.m4: New file.
1347 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1348 proc-service.o, and thread-db.o.
1349 (linux-low.o): Add USE_THREAD_DB.
1350 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1351 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1352 * gdbserver/aclocal.m4: Regenerated.
1353 * gdbserver/config.in: Regenerated.
1354 * gdbserver/configure: Regenerated.
1355 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1356 thread_db.h, and linux/elf.h headrs.
1357 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1358 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1359 Check for -lthread_db and thread support.
1360 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1361 PowerPC, and SuperH.
1362 * gdbserver/i387-fp.c: Constify arguments.
1363 * gdbserver/i387-fp.h: Likewise.
1364 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1365 `struct inferior_info'. Remove PID member. Use generic inferior
1366 list header. All uses updated.
1367 (inferiors, signal_pid): Removed.
1368 (all_threads): New variable.
1369 (get_thread): Define.
1370 (add_inferior_to_list): New function.
1371 (for_each_inferior): New function.
1372 (change_inferior_id): New function.
1373 (add_inferior): Removed.
1374 (remove_inferior): New function.
1375 (add_thread): New function.
1376 (free_one_thread): New function.
1377 (remove_thread): New function.
1378 (clear_inferiors): Use for_each_inferior and free_one_thread.
1379 (find_inferior): New function.
1380 (find_inferior_id): New function.
1381 (inferior_target_data): Update argument type.
1382 (set_inferior_target_data): Likewise.
1383 (inferior_regcache_data): Likewise.
1384 (set_inferior_regcache_data): Likewise.
1385 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1386 (all_processes, stopping_threads, using_thrads)
1387 (struct pending_signals, debug_threads, pid_of): New.
1388 (inferior_pid): Replace with macro.
1389 (struct inferior_linux_data): Remove.
1390 (get_stop_pc, add_process): New functions.
1391 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1392 Use add_process and add_thread.
1393 (linux_attach_lwp): New function, based on old linux_attach. Use
1394 add_process and add_thread. Set stop_expected for new threads.
1395 (linux_attach): New function.
1396 (linux_kill_one_process): New function.
1397 (linux_kill): Kill all LWPs.
1398 (linux_thread_alive): Use find_inferior_id.
1399 (check_removed_breakpoints, status_pending_p): New functions.
1400 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1401 Update. Use WNOHANG. Wait for cloned processes also. Update process
1402 struct for the found process.
1403 (linux_wait_for_event): New function.
1404 (linux_wait): Use it. Support LWPs.
1405 (send_sigstop, wait_for_sigstop, stop_all_processes)
1406 (linux_resume_one_process, linux_continue_one_process): New functions.
1407 (linux_resume): Support LWPs.
1408 (REGISTER_RAW_SIZE): Remove.
1409 (fetch_register): Use register_size instead. Call supply_register.
1410 (usr_store_inferior_registers): Likewise. Call collect_register.
1412 (regsets_fetch_inferior_registers): Improve error message.
1413 (regsets_store_inferior_registers): Add debugging.
1414 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1415 (unstopped_p, linux_signal_pid): New functions.
1416 (linux_target_ops): Add linux_signal_pid.
1417 (linux_init_signals): New function.
1418 (initialize_low): Call it. Initialize using_threads.
1419 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1421 (get_regcache): Fetch registers lazily. Add fetch argument
1422 and update all callers.
1423 (regcache_invalidate_one, regcache_invalidate): New
1425 (new_register_cache): Renamed from create_register_cache.
1426 Return the new regcache.
1427 (free_register_cache): Change argument to a void *.
1428 (registers_to_string, registers_from_string): Call get_regcache
1429 with fetch flag set.
1430 (register_data): Make static. Pass fetch flag to get_regcache.
1431 (supply_register): Call get_regcache with fetch flag clear.
1432 (collect_register): Call get_regcache with fetch flag set.
1433 (collect_register_as_string): New function.
1434 * gdbserver/regcache.h: Update.
1435 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1437 Handle input interrupts while waiting for an ACK.
1438 (input_interrupt): Use signal_pid method.
1439 (getpkt): Flush after debug output and use stderr.
1440 (outreg): Use collect_register_as_string.
1441 (new_thread_notify, dead_thread_notify): New functions.
1442 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1444 (look_up_one_symbol): Flush after debug output.
1445 * gdbserver/server.c (step_thread, server_waiting): New variables.
1446 (start_inferior): Don't use signal_pid. Update call to mywait.
1447 (attach_inferior): Update call to mywait.
1448 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1449 (main): Don't fetch/store registers explicitly. Use
1450 set_desired_inferior. Support proposed ``Hs'' packet. Update
1452 * gdbserver/server.h: Update.
1453 (struct inferior_list, struct_inferior_list_entry): New.
1454 * gdbserver/target.c (set_desired_inferior): New.
1455 (write_inferior_memory): Constify.
1456 (mywait): New function.
1457 * gdbserver/target.h: Update.
1458 (struct target_ops): New signal_pid method.
1459 (mywait): Removed macro, added prototype.
1461 * gdbserver/linux-low.h (regset_func): Removed.
1462 (regset_fill_func, regset_store_func): New.
1463 (enum regset_type): New.
1464 (struct regset_info): Add type field. Use new operation types.
1465 (struct linux_target_ops): stop_pc renamed to get_pc.
1466 Add decr_pc_after_break and breakpoint_at.
1467 (get_process, get_thread_proess, get_process_thread)
1468 (strut process_info, all_processes, linux_attach_lwp)
1469 (thread_db_init): New.
1471 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1472 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1473 (the_low_target): Add new members.
1474 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1475 (i386_store_fpxregset): Constify.
1476 (target_regsets): Add new kind identifier.
1477 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1478 (i386_set_pc): Add debugging.
1479 (i386_breakpoint_at): New function.
1480 (the_low_target): Add new members.
1481 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1482 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1483 (mips_breakpoint_at): New.
1484 (the_low_target): Add new members.
1485 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1486 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1487 (the_low_target): Add new members.
1488 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1489 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1490 (the_low_target): Add new members.
1491 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1494 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1496 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1497 (unwind_tmp_obstack_free, parse_frame_info)
1498 (update_context, cfi_read_fp, cfi_write_fp)
1499 (cfi_frame_chain, cfi_init_extra_frame_info)
1500 (cfi_virtual_frame_pointer): Use the above function.
1501 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1503 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
1505 * v850-tdep.c (v850_type_is_scalar): New function.
1506 (v850_use_struct_convention): Match current gcc implementation
1507 as close as possible.
1508 (v850_push_arguments): Fix stack_offset handling. Don't write
1509 struct_addr into register. This is done by v850_store_struct_return.
1510 (v850_extract_return_value): Care for structs.
1511 (v850_store_return_value): Ditto.
1512 (v850_store_struct_return): Actually write address.
1514 2002-06-11 Michal Ludvig <mludvig@suse.cz>
1516 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1517 without debug information too.
1519 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1521 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1522 Make multi-arch pure.
1523 * gdbarch.h, gdbarch.c: Re-generate.
1524 * arm-tdep.c (arm_print_float_info): Update.
1525 * arch-utils.h (default_print_float_info): Update.
1526 * arch-utils.c (default_print_float_info): Update.
1527 * infcmd.c (float_info): Update call.
1529 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1531 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1532 the front of the initialize list.
1534 2002-06-10 Andrew Cagney <ac131313@redhat.com>
1536 * infrun.c (struct inferior_status): Replace fields
1537 selected_frame_address and selected_level with field
1539 (save_inferior_status): Update. Use get_frame_id.
1540 (struct restore_selected_frame_args): Delete.
1541 (restore_selected_frame): Update. Use frame_find_by_id.
1542 (restore_inferior_status): Update.
1544 * breakpoint.h (struct breakpoint): Change type of
1545 watchpoint_frame to frame_id.
1546 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1547 call to get_current_frame.
1548 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1550 (watchpoint_check): Use frame_find_by_id.
1552 * frame.h (record_selected_frame): Delete declaration.
1553 * stack.c (record_selected_frame): Delete function.
1555 * frame.h (struct frame_id): Define.
1556 (get_frame_id): Declare.
1557 (frame_find_by_id): Declare.
1558 * frame.c (frame_find_by_id): New function.
1559 (get_frame_id): New function.
1561 2002-06-10 Andrey Volkov <avolkov@transas.com>
1563 * ser-e7kpc.c: Fix duplicated define and call of
1564 _initialize_ser_e7000pc
1566 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1568 * signals/signals.c (target_signal_from_host): Fix #ifdef
1570 (do_target_signal_to_host): Likewise.
1572 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
1574 * mips-tdep.c (mips_find_abi_section): New function.
1575 (mips_gdbarch_init): Call it.
1577 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1579 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1580 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1581 after Andrew's 2002-06-08 gdbarch change.
1583 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1585 * i386-linux-nat.c (suppy_gregset): Don't supply
1586 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1588 (fill_gregset): Don't fetch it under the same circumstances.
1590 2002-06-09 Andrew Cagney <cagney@redhat.com>
1592 * Makefile.in (callback_h): Define.
1593 (remote_sim_h): Update path to remote-sim.h.
1594 (remote-rdp.o): Add $(callback_h).
1595 (remote-sim.o): Use $(callback_h).
1596 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1597 * remote-rdp.c: Include "gdb/callback.h".
1599 2002-06-09 Mark Kettenis <kettenis@gnu.org>
1601 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1602 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1604 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1606 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1607 * rdi-share/serpardr.c: Ditto.
1608 * rdi-share/unixcomm.c: Ditto.
1609 * rdi-share/serdrv.c: Ditto.
1610 * rdi-share/hostchan.h: Ditto.
1611 * rdi-share/hostchan.c: Ditto.
1612 * rdi-share/host.h: Ditto.
1613 * rdi-share/devsw.c: Ditto.
1615 * objfiles.h: Change type of obj_private to void pointer.
1616 * pa64solib.c: Update copyright. Don't include "assert.h", use
1617 strcmp instead of STREQ, use LONGEST, do not use PTR
1618 * somsolib.c: Ditto.
1620 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1621 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1622 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1624 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1626 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1627 (default_get_saved_register): Delete function.
1628 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1629 generic_unwind_get_saved_register.
1630 * gdbarch.h, gdbarch.c: Re-generate.
1632 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1634 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1635 generic_func_frame_chain_valid.
1636 * gdbarch.h, gdbarch.c: Re-generate.
1637 * blockframe.c (generic_func_frame_chain_valid): Only check
1638 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1639 passing FP to PC_IN_CALL_DUMMY.
1642 2002-06-08 Andrew Cagney <ac131313@redhat.com>
1644 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1645 (register_gdbarch_data): Initialize init_p.
1646 (gdbarch_data): Initialize data pointer using the init function.
1647 (init_gdbarch_data): Delete function.
1648 (gdbarch_update_p): Update.
1649 (initialize_non_multiarch): Update.
1650 (struct gdbarch): Add field initialized_p.
1651 * gdbarch.h, gdbarch.c: Re-generate.
1653 2002-06-07 Michal Ludvig <mludvig@suse.cz>
1655 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1656 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1657 better do the things actually here.
1658 * x86-64-tdep.c (x86_64_register_name2nr): New.
1659 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1660 (x86_64_gdbarch_init): Respect the above change.
1661 * x86-64-tdep.h (x86_64_register_name2nr)
1662 (x86_64_register_nr2name): Add prototypes.
1663 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1665 2002-06-06 Michael Snyder <msnyder@redhat.com>
1667 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1668 Delete extra braces and re-indent.
1669 (d10v_store_return_value): Char return values
1670 must be shifted over by one byte in R0.
1671 (d10v_extract_return_value): Delete extra braces, re-indent.
1673 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1675 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1676 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1677 (d10v_integer_to_address): Rewrite.
1678 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1679 the d10v specific functions which take care of converting to the
1682 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
1684 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1685 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1687 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1689 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1691 * config/tm-linux.h: Ditto.
1692 * config/alpha/tm-alphalinux.h: Ditto.
1693 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1694 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1695 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1696 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1697 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1698 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1699 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1700 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1701 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1702 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1703 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1704 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1705 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1706 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1707 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1708 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1709 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1710 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1711 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1712 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1713 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1714 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1715 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1716 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1717 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1718 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1719 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1720 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1721 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1722 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1723 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1724 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1725 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1726 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1727 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1728 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1729 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1731 2002-05-04 Aidan Skinner <aidan@velvet.net>
1733 * ada-exp.tab.c: New file
1734 * ada-exp.y: New file
1735 * ada-lang.c: New file
1736 * ada-lang.h: New file
1737 * ada-lex.c: New file
1738 * ada-lex.l: New file
1739 * ada-tasks.c: New file
1740 * ada-typeprint.c: New file
1741 * ada-valprint.c: New file
1743 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1745 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1746 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1748 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1750 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1751 insetead of ppc-linux-tdep.o.
1752 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1753 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1755 2002-06-02 Andrew Cagney <ac131313@redhat.com>
1757 2002-05-07 Christian Groessler <chris@groessler.org>
1758 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1759 bit register contents for little endian hosts.
1761 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1763 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1766 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1768 * gdbarch.h: Regenerate.
1770 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1772 * MAINTAINERS: Add everyone to write-after-approval list.
1774 2002-06-01 Andrew Cagney <ac131313@redhat.com>
1776 * stack.c (frame_info): Use frame_register_unwind instead of
1777 saved_regs. Mention when the SP is on the stack or in a register.
1779 * frame.h (frame_register_unwind_ftype): Define. Document.
1780 (struct frame_info): Add field register_unwind and
1781 register_unwind_cache.
1782 (frame_register_unwind): Declare.
1783 (generic_unwind_get_saved_register): Declare.
1785 * frame.c (frame_register_unwind): New function.
1786 (generic_unwind_get_saved_register): New function.
1788 * blockframe.c (generic_call_dummy_register_unwind): New function.
1789 (frame_saved_regs_register_unwind): New function.
1790 (set_unwind_by_pc): New function.
1791 (create_new_frame): New function.
1792 (get_prev_frame): New function.
1794 2002-05-30 Andrew Cagney <ac131313@redhat.com>
1796 * a29k-share/: Delete directory.
1797 * remote-vx29k.c: Delete file.
1799 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1801 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1802 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1804 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1806 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1807 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1810 (sparcnbsd-tdep.o): New dependency lists.
1811 * NEWS: Note new UltraSPARC NetBSD native configuration.
1812 * configure.host (sparc64-*-netbsd*): New host.
1813 * configure.tgt (sparc-*-netbsdelf*)
1814 (sparc-*-netbsd*): Set gdb_target to nbsd.
1815 (sparc64-*-netbsd*): New target.
1816 * sparc64nbsd-nat.c: New file.
1817 * sparcnbsd-nat.c: New file.
1818 * sparcnbsd-tdep.c: New file.
1819 * sparcnbsd-tdep.h: New file.
1820 * config/sparc/nbsd.mt: New file.
1821 * config/sparc/nbsd64.mh: New file.
1822 * config/sparc/nbsd64.mt: New file.
1823 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1824 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1826 * config/sparc/nbsdaout.mt: Remove.
1827 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1828 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1830 * config/sparc/nbsdelf.mt: Remove.
1831 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1832 sparc-nat.c compatiblity defines.
1833 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1834 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1835 * config/sparc/tm-nbsd64.h: New file.
1836 * config/sparc/tm-nbsdaout.h: Remove.
1837 * config/sparc/xm-nbsd.h: Remove.
1839 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1841 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1842 * sparc-tdep.c: Include osabi.h.
1843 (gdbarch_tdep): Add osabi member.
1844 (_initialize_sparc_tdep): Use gdbarch_register.
1845 (sparc_gdbarch_init): Use generic OS ABI framework.
1846 (sparc_dump_tdep): New function.
1848 2002-05-30 Kevin Buettner <kevinb@redhat.com>
1850 * corefile.c (do_captured_read_memory_integer): Return non-zero
1852 (safe_read_memory_integer): Copy result of memory read when
1853 status is non-zero. Also, add comments.
1855 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
1857 * Makefile.in (ppc_tdep_h): Define.
1860 (rs6000-tdep.o): Use $(ppc_tdep_h).
1863 (ppcnbsd-tdep.o): New dependency lists.
1864 * ppc-tdep.h: Use generic OS ABI framework.
1865 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1866 (ppc_linux_init_abi): New functions.
1867 (ppc_sysv_abi_broken_use_struct_convention)
1868 (ppc_sysv_abi_use_struct_convention)
1869 (ppc_sysv_abi_push_arguments): Move to...
1870 * ppc-sysv-tdep.c: ...here.
1871 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1872 * rs6000-tdep.c (process_note_abi_tag_sections)
1873 (get_elfosabi): Remove.
1874 (rs6000_gdbarch_init): Use generic OS ABI framework.
1875 (rs6000_dump_tdep): New function.
1876 (_initialize_rs6000_tdep): Use gdbarch_register.
1877 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1878 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1879 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1880 of ppc-linux-tdep.o.
1881 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1882 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1883 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1884 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1885 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1886 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1888 2002-05-29 Jim Blandy <jimb@redhat.com>
1890 * macroscope.c (default_macro_scope): Put `void' in empty argument
1893 2002-05-29 Andrew Cagney <ac131313@redhat.com>
1895 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1896 * arch-utils.c: Include "sim-regno.h".
1897 * gdbarch.sh: Don't include "sim-regno.h".
1898 * gdbarch.h, gdbarch.c: Regenerate.
1899 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1901 * arch-utils.h (legacy_register_sim_regno): To here.
1902 * remote-sim.c (legacy_register_sim_regno): Move function from
1904 * arch-utils.c (legacy_register_sim_regno): To here.
1906 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1908 * sim-regno.h: New file.
1909 * Makefile.in (sim_regno_h): Define.
1910 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1911 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1912 (legacy_register_sim_regno): New function.
1913 (one2one_register_sim_regno): New function.
1914 (gdbsim_fetch_register): Rewrite.
1915 (gdbsim_store_register): Only store a register when
1916 REGISTER_SIM_REGNO is valid.
1917 * d10v-tdep.c: Include "sim-regno.h".
1918 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1919 (d10v_ts3_register_sim_regno): Ditto.
1920 * gdbarch.sh: Include "sim-regno.h".
1921 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1922 * gdbarch.h, gdbarch.c: Regenerate.
1923 * arch-utils.h (default_register_sim_regno): Delete declaration.
1924 * arch-utils.c (default_register_sim_regno): Delete function.
1926 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1928 * ppcnbsd-nat.c: Rewrite.
1929 * ppcnbsd-tdep.c: New file.
1930 * ppcnbsd-tdep.h: New file.
1931 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1932 solib.o, and solib-svr4.o.
1933 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1934 nbsd-tdep.o, and corelow.o.
1936 2002-05-28 Andrew Cagney <ac131313@redhat.com>
1938 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1939 `tr' and `sed'. Mention that `broken' targets are not expected to
1942 2002-05-27 Michal Ludvig <mludvig@suse.cz>
1944 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1945 Let PC point right after the prologue before looking up symbols.
1947 2002-05-27 Martin M. Hunt <hunt@redhat.com>
1949 * i386-tdep.c (i386_register_virtual_type): Return
1950 builtin_type_vec128i for SSE registers.
1952 * gdbtypes.h (builtin_type_vec128i): Declare.
1954 * gdbtypes.c (build_builtin_type_vec128i): New function.
1955 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1956 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1957 (build_gdbtypes): Initialize new builtin vector types.
1958 (_initialize_gdbtypes): Register new vector types with gdbarch.
1960 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1962 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1963 since it has been multi-arch'd.
1964 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1965 Move Alpha and VAX multi-arch news entries to same section
1966 as other multi-arch news.
1968 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1970 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1971 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1972 static. Rename some register numbers to put them in ns32k-tdep
1974 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1975 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1977 (_initialize_ns32k_tdep): Use gdbarch_register.
1978 * ns32k-tdep.h: New file.
1979 * ns32knbsd-tdep.c: New file.
1980 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1981 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1982 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1983 REGISTER_BYTES, REGISTER_BYTE): Remove.
1984 * config/ns32k/tm-ns32k.h: New file.
1985 * config/ns32k/tm-umax.h: Remove.
1987 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1989 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1990 ns32k_store_struct_return, ns32k_extract_return_value,
1991 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1993 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1994 ns32k_saved_pc_after_call.
1995 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1996 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1997 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1998 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1999 ns32k_extract_struct_value_address.
2001 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2003 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
2004 ns32k_fix_call_dummy): New.
2005 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
2006 ns32k_call_dummy_words.
2007 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
2008 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
2009 CALL_DUMMY_NARGS): Remove.
2010 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
2012 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2014 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
2015 ns32k_frame_saved_pc, ns32k_frame_args_address,
2016 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
2017 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
2018 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
2019 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
2020 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
2021 (BREAKPOINT): Remove..
2022 (FRAME_CHAIN): Define as ns32k_frame_chain.
2023 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
2024 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
2025 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
2026 (FRAME_FIND_SAVED_REGS): Remove.
2027 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
2028 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
2029 (POP_FRAME): Define as ns32k_pop_frame.
2031 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2033 * ns32k-tdep.c (ns32k_register_byte_32082,
2034 ns32k_register_byte_32382, ns32k_register_raw_size,
2035 ns32k_register_virtual_size, ns32k_register_virtual_type): New
2037 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
2038 ns32k_register_byte_32382.
2039 * config/ns32k/tm-umax.h: Update copyright years.
2040 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
2041 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
2042 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
2043 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
2044 (ns32k_get_enter_addr): Fix prototype.
2046 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
2048 * ns32k-tdep.c: Update copyright years.
2049 (ns32k_register_name_32082): New function.
2050 (ns32k_register_name_32382): Ditto.
2051 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
2052 (REGISTER_NAME): Define as ns32k_register_name_32382.
2053 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
2054 (REGISTER_NAME): Define as ns32k_register_name_32082.
2056 2002-05-24 Jim Blandy <jimb@redhat.com>
2058 * dwarf2read.c (free_line_header): Use xfree, not free.
2060 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
2062 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
2063 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
2065 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2067 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
2069 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2071 From Ross Alexander at NEC Europe:
2072 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
2074 2002-05-23 Michael Snyder <msnyder@redhat.com>
2076 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
2077 for input, rather than parse_and_eval_address.
2079 2002-05-23 Andrew Cagney <ac131313@redhat.com>
2081 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
2082 * Makefile.in (sim_d10v_h): Update definition.
2084 2002-05-24 Andrew Cagney <cagney@redhat.com>
2086 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2087 change `2002-05-22 Michael Snyder' below.
2088 (d10v_push_arguments): Ditto.
2089 (d10v_extract_return_value): Ditto.
2091 2002-05-23 Jim Blandy <jimb@redhat.com>
2093 * macrotab.c (check_for_redefinition): Don't complain if the new
2094 definition is the same as the previous one. Take more arguments
2095 to allow the comparison.
2096 (macro_define_object, macro_define_function): Pass more arguments
2097 to check_for_redefinition.
2099 2002-05-22 Michael Snyder <msnyder@redhat.com>
2101 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2102 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2103 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2104 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2105 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2106 Add a temp variable to save a call (and a memory read).
2107 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2108 if possible (so that PC_IN_CALL_DUMMY will work).
2110 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
2112 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2114 2002-05-22 Michal Ludvig <mludvig@suse.cz>
2116 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2118 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2119 (dwarf2_build_frame_info): Add offset to fde->initial_location
2120 so that frames of shared libraries are mapped correctly.
2121 (execute_stack_op): Change type of 'result' from ULONGEST to
2124 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2126 * config/alpha/tm-nbsd.h: Include solib.h.
2128 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2130 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2131 assumptions about the host's byte order.
2133 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2135 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2137 * alphanbsd-tdep.c: Include solib-svr4.h.
2138 * shnbsd-tdep.c: Ditto.
2140 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2142 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2143 nbsd-tdep.h to dependency list.
2144 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2145 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2146 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2147 nbsdaout.mh and nbsdelf.mh consistently.
2148 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2149 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2150 nbsdaout.mt and nbsdelf.mh consistently.
2151 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2152 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2153 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2154 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2155 a.out shared library stuff from here...
2156 * config/nm-nbsdaout.h: ...to here.
2157 * config/tm-nbsd.h: Remove.
2158 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2159 * config/arm/nbsd.mh: Remove.
2160 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2162 * config/arm/nbsdaout.mh: New file.
2163 * config/arm/nbsdelf.mh: New file.
2164 * config/arm/nm-nbsdaout.h: New file.
2165 * config/i386/nbsd.mh: Remove.
2166 * config/i386/nbsd.mt: Remove.
2167 * config/i386/nbsdaout.mh: New file.
2168 * config/i386/nbsdaout.mt: New file.
2169 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2170 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2171 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2172 i386_register_u_addr): Remove.
2173 * config/i386/nm-nbsdaout.h: New file.
2174 * config/i386/nm-nbsdelf.h: Remove.
2175 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2176 (USE_STRUCT_CONVENTION): Remove.
2177 * config/i386/tm-nbsdaout.h: New file.
2178 * config/i386/tm-nbsdelf.h: Remove.
2179 * config/m68k/nbsd.mh: Remove.
2180 * config/m68k/nbsd.mt: Remove.
2181 * config/m68k/nbsdaout.mh: New file.
2182 * config/m68k/nbsdaout.mt: New file.
2183 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2184 * config/m68k/nm-nbsdaout.h: New file.
2185 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2186 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2187 * config/ns32k/nbsd.mh: Remove.
2188 * config/ns32k/nbsd.mt: Remove.
2189 * config/ns32k/nbsdaout.mh: New file.
2190 * config/ns32k/nbsdaout.mt: New file.
2191 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2192 * config/ns32k/nm-nbsdaout.h: New file.
2193 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2194 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2195 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2196 (SVR4_SHARED_LIBS): Remove.
2197 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2198 * config/sparc/nbsd.mh: Remove.
2199 * config/sparc/nbsd.mt: Remove.
2200 * config/sparc/nbsdaout.mh: New file.
2201 * config/sparc/nbsdaout.mt: New file.
2202 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2203 * config/sparc/nbsdelf.mt: New file.
2204 * config/sparc/nm-nbsdaout.h: New file.
2205 * config/sparc/nm-nbsdelf.h: Remove.
2206 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2207 * config/sparc/tm-nbsdaout.h: New file.
2209 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2211 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2213 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2215 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2217 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2219 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2221 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2223 * NEWS: Note new MIPS NetBSD native configuration.
2224 * configure.host (mips*-*-netbsd*): New host.
2225 * configure.tgt (mips*-*-netbsd*): New target.
2226 * mipsnbsd-nat.c: New file.
2227 * mipsnbsd-tdep.c: New file.
2228 * mipsnbsd-tdep.h: New file.
2229 * config/mips/nbsd.mh: New file.
2230 * config/mips/nbsd.mt: New file.
2231 * config/mips/nm-nbsd.h: New file.
2232 * config/mips/tm-nbsd.h: New file.
2234 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2236 * Makefile.in (SFILES): Add osabi.c.
2237 (COMMON_OBS): Add osabi.o.
2238 (osabi.o): New dependency list.
2239 * osabi.c: New file.
2240 * osabi.h: New file.
2241 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2243 * Makefile.in (alpha_tdep_h): Define and use instead of
2245 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2246 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2248 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2249 * alpha-tdep.h: Include osabi.h.
2250 (alpha_abi): Remove.
2251 (gdbarch_tdep): Use generic OS ABI framework.
2252 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2253 gdbarch_register_osabi.
2254 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2255 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2256 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2258 * Makefile.in (sh_tdep_h): Add osabi.h.
2259 * sh-tdep.h (sh_osabi): Remove.
2260 (gdbarch_tdep): Use generic OS ABI framework.
2261 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2262 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2263 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2264 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2266 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2267 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2268 gdbarch_register_osabi.
2269 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2270 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2271 (get_elfosabi): Rename to...
2272 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2273 ABI framework support routines.
2274 (arm_gdbarch_init): Use generic OS ABI framework.
2275 (arm_dump_tdep): Likewise.
2276 (_initialize_arm_tdep): Likewise.
2277 * arm-tdep.h: Include osabi.h.
2279 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2281 (arm_gdbarch_register_os_abi): Remove prototype.
2282 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2283 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2285 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2286 * mips-tdep.c: Include osabi.h.
2287 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2290 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2292 * h8300-tdep.c: Fix formatting.
2294 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
2296 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2297 printing vector registers.
2299 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2301 From Fernando Nasser:
2302 * remote.c (remote_async_open_1): Re-throw the exception when the
2304 (remote_cisco_open): Ditto.
2305 (remote_open_1): Ditto.
2307 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2309 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2310 (remote_start_remote): Add uiout parameter. Pass through to
2311 remote_start_remote_dummy.
2312 (remote_open_1): Use catch_exception instead of catch_errors.
2313 (remote_async_open_1): Ditto.
2314 (remote_cisco_open): Ditto.
2316 2002-05-19 Andrew Cagney <ac131313@redhat.com>
2318 * remote.c (remote_start_remote): Replace PTR with void pointer.
2319 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2322 2002-05-18 Andrew Cagney <ac131313@redhat.com>
2324 * gdb_indent.sh: Allow the script to be run in the sim directory.
2326 2002-05-18 Mark Kettenis <kettenis@gnu.org>
2328 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2329 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2331 * corelow.c (core_open): Only call set_gdbarch_from_file if
2334 2002-05-17 Andrey Volkov <avolkov@transas.com>
2336 * h8300-tdep.c: Add support of EXR register
2337 * config/h8300/tm-h8300.h: Ditto.
2339 2002-05-17 Andrey Volkov <avolkov@transas.com>
2341 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2343 2002-05-17 Andrey Volkov <avolkov@transas.com>
2345 * h8300-tdep.c: Change literal regnums to REGNO.
2347 2002-05-17 Jim Blandy <jimb@redhat.com>
2349 * NEWS: Note addition of macro support.
2351 Expand preprocessor macros in C expressions.
2352 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2353 (scan_macro_expansion, scanning_macro_expansion,
2354 finished_macro_expansion): New function declarations.
2355 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2356 variable declarations.
2357 * parser-defs.h (expression_context_pc): New declaration.
2358 * parse.c (expression_context_pc): New variable.
2359 (parse_exp_1): Set expression_context_pc, as well as
2360 expression_context_block.
2361 * c-exp.y (yylex): If we're not already reading the result of a
2362 macro expansion, try to macro-expand the next token. When we're
2363 done scanning a macro expansion, switch back to the mainline text.
2364 Commas and `if's in a macro's expansion don't terminate the input.
2365 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2366 (macro_original_text, macro_expanded_text,
2367 expression_macro_lookup_func, expression_macro_lookup_baton): New
2369 (scan_macro_expansion, scanning_macro_expansion,
2370 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2371 c_preprocess_and_parse): New functions.
2372 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2373 c_preprocess_and_parse, instead of c_parse.
2374 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2375 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2377 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2379 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2380 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2381 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2383 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
2385 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2387 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2389 * Makefile.in (sh_tdep_h): Define and use.
2390 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2391 register enum): Move to...
2392 * * sh-tdep.h: ...here.
2393 * sh-tdep.c: Include sh-tdep.h.
2394 * sh3-rom.c: Likewise.
2395 * shnbsd-tdep.c: Likewise.
2397 2002-05-16 Michael Snyder <msnyder@redhat.com>
2399 * arm-tdep.c: Spelling fix in comment.
2401 2002-05-16 Jim Blandy <jimb@redhat.com>
2403 Add commands for manually expanding macros and showing their
2405 * macrocmd.c, macroscope.c, macroscope.h: New files.
2406 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2407 (macroscope_h): New variable.
2408 (HFILES_NO_SRCDIR): Add macroscope.h.
2409 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2410 (macroscope.o, macrocmd.o): New rules.
2412 Teach the Dwarf 2 reader to read macro information.
2413 * dwarf2read.c: #include "macrotab.h".
2414 (dwarf_macinfo_buffer): New variable.
2415 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2417 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2418 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2419 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2420 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2421 dwarf2_macro_spaces_in_definition): New complaints.
2422 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2423 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2424 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2425 the partial symbol table.
2426 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2427 from what's recorded in the partial symbol table.
2428 (read_file_scope): If the compilation unit has a
2429 `DW_AT_macro_info' attribute, read its macro information.
2430 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2432 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2435 * ser-tcp.c: Don't include <netinet/udp.h>.
2437 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2439 * MAINTAINERS: Update my email address.
2441 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
2443 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2444 include file of the same name.
2446 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2448 * configure.tgt: Mark v850 as multi-arched.
2449 * config/v850/tm-v850.h: Remove file.
2450 * config/v850/v850.mt: Eliminate TM_FILE.
2452 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2454 * v850-tdep.c: Full multi-arch.
2455 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2456 Define GDB_MULTI_ARCH to 2.
2458 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2460 * p-exp.y (current_type): New static variable.
2461 Carries the type of the expression at the position that is parsed.
2462 (push_current_type, pop_current_type): Two new functions. Used
2463 to store/restore current_type in expression on specific tokens.
2464 (search_field): New static variable. Set to one after parsing a point
2465 as at that point only a FIELDNAME token should be searched.
2466 (FIELDNAME): New token. After a point only a token belonging to
2467 current_type type definition is allowed.
2468 (all over token rules): reset and change current_type according
2470 (exp '[' rule): insert implicit array index field if
2471 exp is a pascal string type.
2473 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2475 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2476 frame info. Use frame_info's saved_regs instead of matching member
2477 in extra_frame_info throughout.
2478 (v850_frame_init_saved_regs): New function.
2479 (v850_init_extra_frame_info): Move most functionality into
2480 v850_frame_init_saved_regs().
2481 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2482 (v850_frame_find_saved_regs): Remove declaration.
2483 (FRAME_FIND_SAVED_REGS): Remove definition.
2484 (v850_frame_init_saved_regs): Add declaration.
2485 (FRAME_INIT_SAVED_REGS): Add definition.
2487 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
2489 * v850-tdep.c: Begin multi-arch'ing v850.
2490 (v850_target_architecture_hook): Remove function.
2491 (v850_gdbarch_init): New function. Add code previously in
2492 v850_target_architecture_hook().
2493 (_initialize_v850_tdep): Don't set target_architecture_hook.
2494 Call register_gdbarch_init() instead.
2496 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
2498 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2499 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2500 (fixup_class_method_type): Likewise.
2502 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
2504 From Martin Pool <mbp@samba.org>:
2505 * gdbserver/server.c (gdbserver_usage): New function.
2508 2002-05-15 Jim Blandy <jimb@redhat.com>
2510 Add macro structures to GDB's symbol tables. Nobody puts anything
2512 * symtab.h (struct symtab): New member: `macro_table'.
2513 * buildsym.h (pending_macros): New global variable.
2514 * buildsym.c: #include "macrotab.h".
2515 (buildsym_init): Initialize `pending_macros'.
2516 (end_symtab): If we found macro information while reading a CU's
2517 debugging info, do build a symtab structure for it. Make the
2518 symtab point to the macro information, and clear the
2519 `pending_macros' pointer which held it while we were reading the
2521 (really_free_pendings): Free any pending macro table.
2522 * objfiles.h (struct objfile): New member: `macro_cache'.
2523 * objfiles.c (allocate_objfile): Set allocate and free functions
2524 for the macro cache's objstack.
2525 (free_objfile): Empty the macro cache's obstack.
2526 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2527 set new allocate and free functions for it.
2528 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2529 free functions for the macro cache's objstack. (Why is this
2530 function building its own objfile?)
2531 * symmisc.c (print_objfile_statistics): Print statistics on the
2533 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2535 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2537 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2538 (REGISTER_U_ADDR): Delete definition.
2539 (arm_register_u_addr): Delete declaration.
2541 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
2543 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2544 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2546 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2548 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2551 2002-05-14 Andrew Cagney <ac131313@redhat.com>
2553 * regcache.c (register_valid): Revise comments refering to "Not
2554 available" and "unavailable".
2555 * frame.c (frame_register_read): Ditto.
2556 * findvar.c (value_of_register): Ditto.
2558 2002-05-15 Andrew Cagney <cagney@redhat.com>
2560 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2561 (remote-sim.o): Update dependencies.
2562 (d10v-tdep.o): Specify dependencies.
2563 (sim_d10v_h): Define.
2565 2002-05-14 Jim Blandy <jimb@redhat.com>
2567 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2568 * macrotab.c (macro_lookup_inclusion, find_definition,
2569 new_macro_table): Same.
2571 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2572 not `! strcmp ()'. This is a dubious improvement.
2573 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2575 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2576 although it's not necessary, to avoid a warning.
2578 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2580 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2581 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2582 TYPE_INSTANCE_FLAGS.
2583 (struct main_type): New.
2584 (struct type): Move most members to struct main_type. Change
2585 cv_type and as_type to new type_chain member. Add instance_flags.
2586 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2587 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2588 (finish_cv_type): Remove prototype.
2589 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2591 (alloc_type_instance): New function.
2592 (smash_type): New function.
2593 (make_pointer_type, make_reference_type, make_function_type)
2594 (smash_to_member_type, smash_to_method_type): Call smash_type.
2595 (make_qualified_type): New function.
2596 (make_type_with_address_space): Call make_qualified_type.
2597 (make_cv_type): Likewise.
2598 (finish_cv_type): Remove unnecessary function.
2599 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2600 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2601 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2602 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2603 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2604 * hpread.c (hpread_read_struct_type): Likewise.
2605 * stabsread.c (read_struct_type): Likewise.
2607 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
2609 * configure.tgt: Add a catch all sh* target, for cases like
2610 sh[2,3,4]-elf and sh-hms.
2612 2002-05-14 Keith Seitz <keiths@redhat.com>
2614 * event-loop.c (create_file_handler): Don't do anything but
2615 update data when we are given a fd which we are already
2618 2002-05-14 Michal Ludvig <mludvig@suse.cz>
2620 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2621 (update_context): Use __func__ in warnings.
2623 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
2625 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2626 and tcp_close to net_open and net_close.
2627 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2628 using UDP if requested. Don't try to disable Nagle on UDP
2630 * remote.c (remote_serial_open): New function. Warn about UDP.
2631 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2633 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2635 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2637 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
2639 * configure.tgt: Remove sh-hms target.
2640 * MAINTAINERS: Don't list sh-hms as a separate target.
2642 2002-05-13 Jim Blandy <jimb@redhat.com>
2644 Add first preprocessor macro-expansion files.
2645 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2646 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2647 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2648 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2649 (COMMON_OBS): Add macrotab.o, macroexp.o.
2650 (macroexp.o, macrotab.o): New rules.
2652 2002-05-13 Andrew Cagney <ac131313@redhat.com>
2654 * config/m88k/tm-m88k.h: Update copyright.
2655 (m88k_target_write_pc): Declare
2656 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2657 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2658 (SHIFT_INST_REGS): Update definition.
2659 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2660 using old definition of TARGET_WRITE_PC.
2661 * regcache.c (generic_target_write_pc): Delete code handling
2663 * gdbarch.sh (NNPC_REGNUM): Delete.
2664 * gdbarch.h, gdbarch.c: Regenerate.
2666 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
2668 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2671 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
2673 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2674 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2675 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2677 * c-typeprint.c (cp_type_print_method_args): Likewise.
2678 (c_type_print_args): Likewise.
2679 * d10v-tdep.c (d10v_push_arguments): Likewise.
2680 (d10v_extract_return_value): Likewise.
2681 * expprint.c (print_subexp): Likewise.
2682 * gdbtypes.c (lookup_primitive_typename): Likewise.
2683 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2684 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2685 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2686 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2687 (TYPE_VECTOR): Likewise.
2688 * hpread.c (hpread_read_struct_type)
2689 (fix_static_member_physnames, fixup_class_method_type)
2690 (hpread_type_lookup): Likewise.
2691 * mdebugread.c (parse_symbol, parse_type): Likewise.
2692 * p-lang.c (is_pascal_string_type): Likewise.
2693 * valops.c (hand_function_call): Likewise.
2694 * x86-64-tdep.c (classify_argument): Likewise.
2696 * hpread.c (hpread_read_function_type)
2697 (hpread_read_doc_function_type): Call replace_type.
2698 * dstread.c (create_new_type): Delete.
2699 (decode_dst_structure, process_dst_function): Call alloc_type.
2700 Use type access macros.
2702 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2704 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2705 the're not supported by the current architecture.
2706 (i387_fill_fxsave): Likewise.
2708 2002-05-12 Fred Fish <fnf@redhat.com>
2710 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2711 sect_index_xxx members to index the first slot in section_offsets
2712 if all of the section_offsets are zero.
2714 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2716 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2717 checked in with last change.
2719 2002-05-12 Mark Kettenis <kettenis@gnu.org>
2721 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2722 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2725 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
2727 * Makefile.in: Update dependencies.
2729 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2731 * language.c (local_hex_string_custom): Simplify. Do not depend
2732 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2734 * memattr.c (mem_info_command): Replace calls to
2735 longest_local_hex_string and longest_local_hex_string_custom.
2736 * buildsym.c (make_blockvector): Ditto.
2737 * solib.c (info_sharedlibrary_command): Ditto.
2738 * tracepoint.c (tracepoints_info): Ditto.
2739 * symtab.c (print_msymbol_info): Ditto.
2741 * language.c (local_hex_string): Delete.
2742 (local_hex_string_custom): Delete.
2743 (longest_local_hex_string): Rename to local_hex_string.
2744 (longest_local_hex_string_custom): Rename to
2745 local_hex_string_custom.
2746 * language.h (local_hex_string): Change parameter type to LONGEST.
2747 (local_hex_string_custom): Ditto.
2748 (longest_local_hex_string): Delete declaration.
2749 (longest_local_hex_string_custom): Ditto.
2751 * solib.c: Update copyright.
2752 * memattr.c: Update copyright.
2754 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2756 * arch-utils.h (legacy_register_to_value): Declare.
2757 (legacy_value_to_register): Declare.
2758 (legacy_convert_register_p): Declare.
2759 * arch-utils.c (legacy_register_to_value): New function.
2760 (legacy_value_to_register): New function.
2761 (legacy_convert_register_p): New function.
2763 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2764 (VALUE_TO_REGISTER): Define.
2765 (CONVERT_REGISTER_P): Define.
2766 * gdbarch.h, gdbarch.c: Regenerate.
2768 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2770 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2773 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
2774 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2776 * Makefile.in: Update dependencies for valops.c.
2777 * valops.c: Include "gdb_assert.h".
2778 (typecmp): Skip THIS parameter to methods.
2779 (find_method_list): Remove static_memfuncp argument,
2780 update callers. Check for stub methods.
2781 (find_value_oload_method_list): Don't set *static_memfuncp.
2782 (find_overload_match): Don't check for stub methods. Assert
2783 that methods are not stubbed. Handle static methods.
2784 (value_find_oload_method_list): Remove static_memfuncp argument.
2785 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2786 to the argument list for static stub methods.
2787 * value.h (value_find_oload_method_list): Update prototype.
2789 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2791 * arch-utils.h (generic_register_size): Declare.
2792 (generic_register_raw_size, generic_register_virtual_size): Delete
2794 * arch-utils.c (generic_register_raw_size): Delete.
2795 (generic_register_size): New function.
2796 (generic_register_virtual_size): Delete.
2798 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2799 default generic_register_size.
2800 * gdbarch.h, gdbarch.c: Re-generate.
2802 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2803 register_virtual_size.
2804 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2805 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2807 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2809 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2810 * gdbarch.h, gdbarch.c: Regenerate.
2811 * gnu-v3-abi.c: Update copyright.
2812 (vtable_address_point_offset): Update.
2813 (gnuv3_rtti_type): Update.
2814 (gnuv3_baseclass_offset): Update.
2815 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2816 (init_fetch_link_map_offsets): Update.
2817 * remote.c (get_remote_state): Update.
2819 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2821 * TODO: Remove value_headof/value_from_vtable_info comment.
2822 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2823 * values.c (value_headof, value_from_vtable_info): Delete.
2824 * value.h (value_from_vtable_info): Delete prototype.
2826 2002-05-11 Andrew Cagney <ac131313@redhat.com>
2828 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2829 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2831 (gdb_assert_h): Define.
2832 (gdb_wait_h): Define.
2833 (gdb_regex_h): Define.
2835 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
2837 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2838 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2842 * nbsd-tdep.c: Fix comment.
2844 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2846 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2847 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2848 (nbsd-tdep.o): New dependency list.
2849 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2851 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2852 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2853 * nbsd-tdep.c: New file.
2854 * nbsd-tdep.h: New file.
2855 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2857 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2858 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2859 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2860 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2862 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2864 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2865 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2866 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2867 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2868 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2869 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2871 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2873 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2874 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2875 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2876 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2877 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2878 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2879 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2881 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2883 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2884 fetch_elfcore_registers to...
2885 * i386nbsd-tdep.c: ...here.
2886 (i386nbsd_use_struct_convention): Rename to...
2887 (i386nbsd_aout_use_struct_convention): ...this.
2888 (i386nbsd_supply_reg): New function.
2889 (i386nbsd_fill_reg): New function.
2890 (fetch_core_registers): Use i386nbsd_supply_reg.
2891 (fetch_elfcore_registers): Likewise.
2892 (_initialize_i386nbsd_tdep): New function.
2893 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2894 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2895 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2896 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2897 (i386nbsd_aout_use_struct_convention): ...this.
2899 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2901 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2902 (store_inferior_registers): Use shnbsd_fill_reg.
2903 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2904 sh_nbsd_supply_register): Collapse into...
2905 (shnbsd_supply_reg): ...this.
2906 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2907 (shnbsd_fill_reg): ...this.
2908 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2909 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2910 (fetch_core_registers): Use shnbsd_supply_reg.
2911 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2912 (sh_nbsd_core_fns): Rename to...
2913 (shnbsd_core_fns): ...this.
2914 (sh_nbsd_elfcore_fns): Rename to...
2915 (shnbsd_elfcore_fns): ...this.
2916 (sh_nbsd_init_abi): Rename to...
2917 (shnbsd_init_abi): ...this.
2918 (_initialize_sh_nbsd_tdep): Rename to...
2919 (_initialize_shnbsd_tdep): ...this.
2920 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2921 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2922 sh_nbsd_fill_register): Remove prototypes.
2923 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2925 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2927 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2928 (i387-nat.o): Delete dependency list.
2929 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2930 (x86-64-linux-nat.o): Likewise.
2931 * i387-nat.c: Delete file, moving contents to...
2932 * i387-tdep.c: ...here.
2933 * i387-nat.h: Rename...
2934 * i387-tdep.h: ...to this.
2935 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2936 * i386-linux-nat.c: Likewise.
2937 * i386bsd-nat.c: Likewise.
2938 * i386gnu-nat.c: Likewise.
2939 * i386nbsd-nat.c: Likewise.
2940 * i386v4-nat.c: Likewise.
2941 * x86-64-linux-nat.c: Likewise.
2942 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2943 * config/i386/go32.mh (NATDEPFILES): Likewise.
2944 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2945 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2946 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2947 * config/i386/linux.mh (NATDEPFILES): Likewise.
2948 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2949 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2950 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2951 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2953 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2955 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2956 (alphanbsd-nat.o): Remove dependency list.
2957 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2958 * alphanbsd-nat.c: Delete. Contents moved to...
2959 * alphanbsd-tdep.c: ...here.
2960 (_initialize_alphanbsd_tdep): Register core functions.
2961 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2963 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2965 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2966 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2967 (alphanbsd-nat.o): Likewise.
2968 (alphabsd-tdep.o): New dependency list.
2969 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2970 (fill_gregset): Use alphabsd_fill_reg.
2971 (supply_fpregset): Use alphabsd_supply_fpreg.
2972 (fill_fpregset): Use alphabsd_fill_fpreg.
2973 (fetch_inferior_registers): Use struct reg and struct fpreg
2974 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2975 and alphabsd_supply_fpreg.
2976 (store_inferior_registers): Use struct reg and struct fpreg
2977 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2978 and alphabsd_fill_fpreg.
2979 * alphabsd-tdep.c: New file.
2980 * alphabsd-tdep.h: New file.
2981 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2982 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2983 alphabsd_supply_fpreg.
2984 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2985 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2987 2002-05-11 Eric Christopher <echristo@redhat.com>
2989 * mips-tdep.c (mips_double_register_type): Fix thinko.
2990 (mips_single_register_type): Ditto.
2991 * MAINTAINERS: Add self.
2993 2002-05-11 Mark Kettenis <kettenis@gnu.org>
2995 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2996 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2997 right thing on architectures with different endianness and/or
3000 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
3002 From Christian Limpach <chris@Pin.LU>
3003 * configure.in: Change sed expression which comments out
3004 NATDEPFILES to also comment out continuation lines.
3005 * configure: Regenerate.
3007 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3009 * sh-tdep.c: Clean up code erroneously reintroduced by previous
3012 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3014 * sh-tdep.c: Include correct file.
3016 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3018 New support for sh64-elf (sh5) target.
3020 * configure.tgt: For sh64-elf target, default to sh-elf.
3022 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
3023 (struct gdbarch_tdep): Add new fields for new registers and ABI
3026 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
3027 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
3028 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
3029 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
3030 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
3031 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
3032 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
3033 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
3034 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
3035 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
3036 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
3037 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
3038 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
3039 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
3040 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
3041 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
3042 sh64_get_gdb_regnum, sh64_media_reg_base_num,
3043 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
3044 sign_extend, sh64_nofp_frame_init_saved_regs,
3045 sh64_init_extra_frame_info, sh64_get_saved_register,
3046 sh64_extract_struct_value_address, sh64_pop_frame,
3047 sh64_push_arguments, sh64_extract_return_value,
3048 sh64_store_return_value, sh64_show_media_regs,
3049 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
3050 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
3051 sh_sh64_register_virtual_type,
3052 sh_sh64_register_convert_to_virtual,
3053 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
3054 sh64_register_read, sh64_pseudo_register_write,
3055 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
3056 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
3057 sh64_do_pseudo_register, sh_compact_do_registers_info,
3058 sh64_do_registers_info, sh_gdbarch_init): New functions.
3060 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
3062 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
3064 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
3066 * linespec.c (decode_line_1): Check for a double quote after
3067 a filename correctly.
3069 2002-05-10 Jim Blandy <jimb@redhat.com>
3071 Properly track the size of the current objfile's .debug_line section.
3072 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
3073 (DWARF_LINE_SIZE): New macro.
3074 (dwarf2_build_psymtabs_hard): Record the line section's size in
3075 the partial symbol table.
3076 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
3079 2002-05-10 Petr Sorfa <petrs@caldera.com>
3081 * ia64-tdep.c: Handle breakpoints on L instruction type
3082 in MLX instruction bundle by moving the breakpoint to
3083 the third slot (X instruction type) as L holds only data.
3085 2002-05-10 Kevin Buettner <kevinb@redhat.com>
3087 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3088 (process_one_symbol): Complain about discarding local symbols
3089 due to a misplaced N_LBRAC entry.
3091 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
3093 From Daniel Berlin <dan@cgsoftware.com>
3094 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3095 decrease the depth we are at, in the case of templates.
3097 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3099 * mips-tdep.c (mips_float_register_type): New function.
3100 (mips_double_register_type): New function.
3101 (mips_print_register): Use them.
3102 (do_fp_register_row): Likewise.
3104 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3106 * signals/signals.c (signals): Remove conditional compilation around
3107 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
3108 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
3110 2002-05-09 Michael Snyder <msnyder@redhat.com>
3112 * remote-rdp.c (remote_rdp_can_run): Remove.
3114 2002-05-09 Tom Tromey <tromey@redhat.com>
3116 * jv-valprint.c (java_val_print): Handle `char' as a special case
3119 2002-05-09 Michael Snyder <msnyder@redhat.com>
3121 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3122 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
3123 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
3124 str r(0123),[sp,#nn].
3125 (arm_skip_prologue): Ditto. Also make disassembly
3126 order-independent by placing it in a loop.
3128 2002-05-06 Michael Snyder <msnyder@redhat.com>
3130 * stabsread.c (read_type): Add recognition for new attribute:
3131 "@V;" means that an array type is actually a vector.
3132 This is analogous to the vector flag that's been added to dwarf2.
3134 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3136 * i386-tdep.h (i386_abi): New enum.
3137 (struct gdbarch_tdep): Replace os_ident member with abi.
3138 (i386_gdbarch_register_os_abi): New prototype.
3139 * i386-tdep.c (i386_abi_names): New array.
3140 (process_note_abi_tag_sections): Removed.
3141 (process_note_sections): New function.
3142 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3143 (struct i386_abi_handler): New struct.
3144 (i386_abi_handler_list): New variable.
3145 (i386_gdbarch_register_os_abi): New function.
3146 (i386_gdbarch_init): Adapt for the changes given above.
3148 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
3150 * gregset.h: Say "GNU/Linux".
3152 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
3154 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3155 (build_gdbtypes): Build builtin_type_v2_float.
3156 (_initialize_gdbtypes): Register new builtin type.
3158 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3160 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3161 (clear_gdbarch_swap): New function.
3162 (initialize_non_multiarch): Call.
3163 (gdbarch_update_p): Before calling init(), swap out and clear the
3164 existing architecture.
3165 * gdbarch.c: Regenerate.
3167 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3169 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3172 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3174 * sh-nbsd-nat.c: Rename to...
3175 * shnbsd-nat.c: ...this.
3176 * sh-nbsd-tdep.c: Rename to...
3177 * shnbsd-tdep.c: ...this.
3178 * sh-nbsd-tdep.h: Rename to...
3179 * shnbsd-tdep.h: ...this.
3180 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3181 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3183 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
3185 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3186 concatenation for command help messages.
3188 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3190 * NEWS: Note new sh*-*-netbsdelf* configuration.
3191 * configure.host: Set gdb_host_cpu to sh for all sh*.
3192 (sh*-*-netbsdelf*): New host.
3193 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3194 (sh*-*-netbsdelf*): New target.
3195 * sh-nbsd-nat.c: New file.
3196 * sh-nbsd-tdep.c: New file.
3197 * sh-nbsd-tdep.h: New file.
3198 * config/sh/nbsd.mh: New file.
3199 * config/sh/nbsd.mt: New file.
3200 * config/sh/nm-nbsd.h: New file.
3201 * config/sh/tm-nbsd.h: New file.
3203 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3205 * sh-tdep.c (sh_osabi_names): Declare.
3206 (process_note_abi_tag_sections): New function.
3207 (get_elfosabi): Ditto.
3208 (sh_gdbarch_register_os_abi): Ditto.
3209 (sh_dump_tdep): Ditto.
3210 _initialize_sh_tdep): Use gdbarch_register to register
3211 sh_gdbarch_init and sh_dump_tdep.
3212 * config/sh/tm-sh.h (sh_osabi): Declare.
3213 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3215 2002-05-07 Andrew Cagney <ac131313@redhat.com>
3217 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3218 (thumb_scan_prologue): Ditto.
3219 (arm_find_callers_reg): Ditto.
3220 (arm_frame_chain): Ditto.
3221 (arm_init_extra_frame_info): Ditto.
3222 (arm_frame_saved_pc): Ditto.
3223 (arm_pop_frame): Ditto.
3224 (arm_push_return_address): New function.
3225 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3226 call_dummy_location, call_dummy_breakpoint_offset_p,
3227 call_dummy_breakpoint_offset, call_dummy_p,
3228 call_dummy_stack_adjust_p, call_dummy_words,
3229 sizeof_call_dummy_words, call_dummy_start_offset,
3230 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3231 call_dummy_address, push_return_address and push_dummy_frame for
3232 generic dummy frames.
3234 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3236 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3237 size computation for alloca.
3238 (sh_fp_frame_init_saved_regs): Likewise.
3240 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3242 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3243 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
3244 * arm-tdep.c (arm_store_return_value): Use them.
3245 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3246 * remote-rdp.c (remote_rdp_fetch_register): Use
3247 ARM_MAX_REGISTER_RAW_SIZE.
3248 (remote_rdp_store_register): Likewise.
3250 2002-05-07 Michal Ludvig <mludvig@suse.cz>
3252 * dwarf2cfi.c: Code cleanup, removed unused variables,
3253 added default labels to switch {} statements.
3254 * x86-64-tdep.c: Ditto.
3255 * x86-64-linux-nat.c: Ditto.
3257 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3259 * solib.h: Protect against multiple inclusion.
3261 2002-05-06 Jim Blandy <jimb@redhat.com>
3263 Add first preprocessor macro-expansion files.
3264 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3265 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3266 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3267 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3268 (COMMON_OBS): Add macrotab.o, macroexp.o.
3269 (macroexp.o, macrotab.o): New rules.
3271 Separate the job of reading the line number info statement program
3272 header (...expialidocious) out into its own function.
3273 * dwarf2read.c (struct line_head, struct filenames, struct
3274 directories): Replace with...
3275 (struct line_header): New structure, containing the full
3276 contents of the statement program header, including the
3277 include directory and file name tables.
3278 (read_file_scope): If we have line number info, instead of just
3279 calling dwarf_decode_lines to do all the work, call
3280 dwarf_decode_line_header first to get a `struct line_header'
3281 containing the data in the statement program header, and then
3282 pass that to dwarf_decode_lines, which will pick up where that
3283 left off. Be sure to clean up the `struct line_header' object.
3284 (dwarf_decode_line_header, free_line_header, add_include_dir,
3285 add_file_name): New functions.
3286 (dwarf_decode_lines): Move all the code to read the statement
3287 program header into dwarf_decode_line_header. Take the line
3288 header it built as the first argument, instead of the offset to
3289 the compilation unit's line number info. Use the new `struct
3290 line_header' type instead of the old structures. No need to do
3291 cleanups here now, since we don't allocate anything.
3292 (dwarf2_statement_list_fits_in_line_number_section,
3293 dwarf2_line_header_too_long): New complaints.
3295 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3297 * gdbtypes.c (init_vector_type): New function.
3298 (build_builtin_type_vec128): Simplify the representation of SIMD
3300 (build_gdbtypes): Initialize new builtin vector types.
3301 (_initialize_gdbtypes): Register new vector types with gdbarch.
3302 (builtin_type_v4_float, builtin_type_v4_int32,
3303 builtin_type_v8_int16, builtin_type_v16_int8,
3304 builtin_type_v2_int32, builtin_type_v4_int16,
3305 builtin_type_v8_int8): New (renamed) SIMD types.
3307 2002-05-06 Mark Kettenis <kettenis@gnu.org>
3309 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3310 (i387_fill_fxsave): Likewise.
3312 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
3314 * alpha-tdep.c (alpha_extract_return_value): Don't use
3315 non-constant array size in prototype.
3317 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3319 From Brian Taylor <briant at model dot com>:
3320 * ui-out.c (ui_out_field_core_addr): Use the function
3321 longest_local_hex_string_custom'to format addresses > 32 bits
3324 * ui-out.c (ui_out_field_core_addr): Update comment.
3326 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3328 * stack.c (select_and_print_frame): Make static. Delete the
3330 (func_command): Update call.
3331 (select_frame_command): Delete code computing the frame level.
3332 * frame.h (select_and_print_frame): Delete declaration.
3334 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3336 * sparc-tdep.c (sparc_get_saved_register): Comment why
3337 get_prev_frame call is safe.
3339 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3341 * frame.h (select_frame): Delete level parameter.
3342 * stack.c (select_frame): Update. Use frame_relative_level to
3343 obtain the frame's level.
3344 (select_and_print_frame): Update call.
3345 (select_frame_command): Ditto.
3346 (up_silently_base): Ditto.
3347 (down_silently_base): Ditto.
3348 * ocd.c (ocd_start_remote): Ditto.
3349 * remote-rdp.c (remote_rdp_open): Ditto.
3350 * remote-mips.c (mips_initialize): Ditto.
3351 (common_open): Ditto.
3352 * remote-e7000.c (e7000_start_remote): Ditto.
3353 * m3-nat.c (select_thread): Ditto.
3354 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3355 (child_get_current_exception_event): Ditto.
3356 * varobj.c (varobj_create): Ditto.
3357 (varobj_update): Ditto.
3358 (c_value_of_root): Ditto.
3359 * tracepoint.c (finish_tfind_command): Ditto.
3360 * corelow.c (core_open): Ditto.
3361 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3362 * thread.c (info_threads_command): Ditto.
3363 (switch_to_thread): Ditto.
3364 * infrun.c (normal_stop): Ditto.
3365 (restore_selected_frame): Ditto.
3366 (restore_inferior_status): Ditto.
3367 * breakpoint.c (insert_breakpoints): Ditto.
3368 (watchpoint_check): Ditto.
3369 (bpstat_stop_status): Ditto.
3370 (do_enable_breakpoint): Ditto.
3371 * blockframe.c (flush_cached_frames): Ditto.
3372 (reinit_frame_cache): Ditto.
3374 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3376 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3379 2002-05-04 Jim Blandy <jimb@redhat.com>
3381 * gdbtypes.c (replace_type): Doc fix.
3383 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3385 * valprint.c (strcat_longest): Delete commented out function.
3388 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3390 * MAINTAINERS: Mark a29k as deleted.
3391 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3392 Move new configurations to the top.
3393 * configure.tgt: Remove a29k.
3394 * config/a29k/tm-vx29k.h: Delete.
3395 * config/a29k/vx29k.mt: Delete.
3396 * config/a29k/tm-a29k.h: Delete.
3397 * config/a29k/a29k-udi.mt: Delete.
3398 * config/a29k/a29k.mt: Delete.
3399 * a29k-tdep.c: Delete.
3400 * remote-udi.c: Delete.
3401 * remote-mm.c: Delete.
3402 * remote-eb.c: Delete.
3403 * remote-adapt.c: Delete.
3404 * Makefile.in: Remove obsolete code.
3405 * gdbserver/Makefile.in: Ditto.
3406 * config/s390/s390x.mt: Ditto.
3407 * config/s390/s390.mt: Ditto.
3408 * config/sparc/sparclynx.mh: Ditto.
3409 * config/sparc/linux.mh: Ditto.
3410 * config/pa/hppaosf.mh: Ditto.
3411 * config/pa/hppabsd.mh: Ditto.
3412 * config/ns32k/nbsd.mt: Ditto.
3413 * config/mips/vr5000.mt: Ditto.
3414 * config/m68k/sun3os4.mh: Ditto.
3415 * config/m68k/nbsd.mt: Ditto.
3416 * config/m68k/m68klynx.mh: Ditto.
3417 * config/m32r/m32r.mt: Ditto.
3418 * config/i386/x86-64linux.mt: Ditto.
3419 * config/i386/nbsdelf.mt: Ditto.
3420 * config/i386/nbsd.mt: Ditto.
3421 * config/i386/i386lynx.mh: Ditto.
3423 2002-05-04 Andrew Cagney <ac131313@redhat.com>
3425 * target.c (debug_print_register): New function. Handle oversize
3427 (debug_to_fetch_registers): Call.
3428 (debug_to_store_registers): Call.
3430 2002-05-03 Jim Blandy <jimb@redhat.com>
3432 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3433 (read_type): Doc fix.
3434 * gdbtypes.c (replace_type): Doc fix.
3436 * stabsread.c (multiply_defined_struct): New complaint.
3437 (read_struct_type): If the type we were passed isn't empty, or
3438 incomplete, don't read the new struct type into it; complain,
3439 and return the original type unchanged. Take a new `type_code'
3440 argument, which is the type code for the new type.
3441 (read_type): Rather than storing the type's type code here, pass
3442 it as an argument to read_struct_type, and let that take care of
3443 storing it. That way, we don't overwrite the original type code,
3444 so read_struct_type can use it to decide whether we're overwriting
3445 something we shouldn't.
3446 (complain_about_struct_wipeout): New function.
3448 2002-05-03 Andrew Cagney <ac131313@redhat.com>
3450 * gdbarch.sh: Assert that gdbarch is non-NULL.
3451 * gdbarch.c: Regenerate.
3453 2002-05-03 Jason Merrill <jason@redhat.com>
3455 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3458 2002-05-03 Michal Ludvig <mludvig@suse.cz>
3460 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3461 (x86_64_dwarf2gdb_regno_map_length),
3462 (x86_64_dwarf2_reg_to_regnum): Added.
3463 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3464 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3465 (_initialize_x86_64_tdep): Synced with the change above.
3466 (x86_64_skip_prologue): Reformulated message.
3468 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3470 * f-exp.y: Also use new prev_lexptr variable
3471 to improve error reporting. Based on Michael Snyder
3472 2002-04-24 dated patch to c-exp.y.
3473 * jv-exp.y: Likewise.
3474 * m2-exp.y: Likewise.
3476 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
3478 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3479 we are dealing with vectors.
3481 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3483 * config/m68k/tm-nbsd.h: Obvious fix,
3484 correct machine name.
3486 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3488 * p-typeprint.c (pascal_type_print_base): Add support
3489 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3491 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3493 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3494 for fondamental pascal 'char' type.
3496 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3498 * p-lang.h (is_pascal_string_type): Declaration changed,
3499 new sixth argument of type char ** added.
3500 * p-lang.c (is_pascal_string_type): Implementation
3501 changed. Args length_pos, length_size, string_pos, char_size
3502 can now be NULL. New argument arrayname set to the field
3503 name of the char array. Return value set to char array
3504 field index plus one.
3505 * p-valprint.c (pascal_val_print): Adapt to new declaration of
3506 is_pascal_string_type function.
3508 2002-05-02 Andrew Cagney <cagney@redhat.com>
3510 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3511 <cagney@redhat.com> change.
3512 * gdbarch.c: Regenerate.
3514 2002-05-02 Andrew Cagney <cagney@redhat.com>
3516 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3517 before probing for a new one. Detect errorenous gdbarch_init
3519 * gdbarch.c: Regenerate.
3521 2002-05-01 Andrew Cagney <cagney@redhat.com>
3523 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3524 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3525 * config/v850/tm-v850.h: Ditto. Update copyright.
3527 2002-04-30 Andrew Cagney <ac131313@redhat.com>
3529 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3532 2002-04-30 Michael Snyder <msnyder@redhat.com>
3534 * arm-tdep.c: Whitespace clean-ups.
3535 (arm_skip_prologue): Fix thinko; two lines
3536 should have been removed as part of 4/24 change.
3538 2002-04-30 Kevin Buettner <kevinb@redhat.com>
3540 * rs6000-tdep.c: Added comment describing how fpscr register
3541 numbers were chosen.
3543 2002-04-30 Michael Snyder <msnyder@redhat.com>
3545 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3547 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3549 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3550 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3551 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3553 2002-04-29 Kevin Buettner <kevinb@redhat.com>
3555 From Louis Hamilton <hamilton@redhat.com>:
3556 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3557 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3559 not bfd-private xcoff data, to determine wordsize.
3560 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3562 2002-04-29 Andrew Cagney <ac131313@redhat.com>
3564 GDB 5.2 released from 5.2 branch.
3566 2002-04-29 Michal Ludvig <mludvig@suse.cz>
3568 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3569 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3570 (x86_64_register_info_table): Added comments with register numbers.
3572 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
3574 * rs6000-tdep.c (rs6000_extract_return_value,
3575 rs6000_store_return_value): Handle returning vectors.
3576 (rs6000_gdbarch_init): Use
3577 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3578 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3580 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3582 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3583 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3585 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3587 * hpread.c (hpread_psymtab_to_symtab_1,
3588 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3589 with fprintf_unfiltered (gdb_stderr,...).
3591 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3593 * remote-array.c (printf_monitor, write_monitor,
3594 array_insert_breakpoint, array_remove_breakpoint ):
3595 Replace fprintf (stderr,...
3596 with fprintf_unfiltered (gdb_stderr,....
3597 * remote-es.c: Likewise.
3598 * remote-os9k.c: Likewise.
3599 * remote-st.c: Likewise.
3601 2002-04-28 Andreas Schwab <schwab@suse.de>
3603 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3604 linux-proc.o and gcore.o.
3606 2002-04-26 Michal Ludvig <mludvig@suse.cz>
3608 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3609 code without frame pointers.
3611 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3613 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3616 2002-04-26 Ben Elliston <bje@redhat.com>
3618 * target.c (do_xfer_memory): Correct reference to the new option
3619 "trust-readonly-sections".
3621 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
3623 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3624 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3625 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3627 (read_array_type): Record the fact that this array type is really a
3628 vector (i.e. are passed in by value).
3630 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3632 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3633 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3634 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3635 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3636 * alpha-linux-tdep.c: Include frame.h.
3637 (alpha_linux_sigcontext_addr): New function.
3638 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3639 alpha_linux_sigcontext_addr.
3640 * alpha-osf1-tdep.c: Include gdbcore.h.
3641 (alpha_osf1_sigcontext_addr): New function.
3642 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3643 alpha_osf1_sigcontext_addr.
3644 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3645 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3647 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3649 * stack.c (selected_frame_level):
3650 (select_frame): Do not set selected_frame_level.
3651 * frame.h (selected_frame_level): Delete declaration.
3653 2002-04-26 Andrew Cagney <ac131313@redhat.com>
3655 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3656 convert_from_func_ptr-addr when AIX / PowerOpen.
3658 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3660 * valops.c (hand_function_call): Call
3661 generic_save_call_dummy_addr.
3662 * frame.h (generic_save_call_dummy_addr): Declare.
3663 * blockframe.c (struct dummy_frame): Add fields call_lo and
3665 (generic_find_dummy_frame): Check for PC in range call_lo to
3666 call_hi instead of entry_point_address.
3667 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3668 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3669 (generic_save_call_dummy_addr): New function.
3671 2002-04-24 David S. Miller <davem@redhat.com>
3673 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3674 sparc_skip_prologue.
3675 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3676 information to find prologue when possible.
3677 (sparc_prologue_frameless_p): Call examine_prologue directly.
3678 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3679 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3681 (SKIP_PROLOGUE): Likewise.
3683 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3685 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3686 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3687 indicate that the condition it was testing is always true.
3688 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3689 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3690 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3692 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3694 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3695 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3696 tdep->jb_pc and tdep->jb_elt_size.
3697 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3698 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3699 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3700 * alpha-nat.c (get_longjmp_target): Remove.
3701 (JB_ELEMENT_SIZE): Ditto.
3703 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3704 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3705 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3706 to alpha_get_longjmp_target.
3707 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3708 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3709 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3711 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3713 * README: Update to GDB 5.2.
3715 2002-04-25 Andrew Cagney <ac131313@redhat.com>
3717 * gdbarch.sh (LC_ALL): Set to `c'.
3719 2002-04-25 Theodore A. Roth <troth@verinet.com>
3721 * avr-tdep.c: Ran through gdb_indent.sh.
3723 2002-04-25 Theodore A. Roth <troth@verinet.com>
3725 * MAINTAINERS: Add myself as AVR maintainer.
3726 * NEWS: Note new target avr.
3728 2002-04-25 Theodore A. Roth <troth@verinet.com>
3730 * Makefile.in: Add support for AVR target.
3731 * configure.tgt: Add support for AVR target.
3732 * avr-tdep.c: New file
3733 * config/avr/avr.mt: New file.
3735 2002-04-25 Theodore A. Roth <troth@verinet.com>
3737 * MAINTAINERS: Add myself to write-after-approval.
3739 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3741 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3742 with fprintf_unfiltered (gdb_stderr,....
3744 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3747 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3749 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3751 * p-exp.y: Also use new prev_lexptr variable
3752 to improve error reporting. Based on Michael Snyder
3753 2002-04-24 dated patch to c-exp.y.
3755 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3757 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3758 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3759 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3761 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3763 (FUNCTION_START_OFFSET): Remove.
3764 (BREAKPOINT): Ditto.
3766 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3768 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3771 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3773 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3774 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3775 alpha_linux_pc_in_sigtramp.
3776 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3777 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3778 alpha_osf1_pc_in_sigtramp.
3779 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3780 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3781 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3782 alphafbsd_pc_in_sigtramp.
3783 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3784 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3785 alphanbsd_pc_in_sigtramp.
3786 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3787 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3789 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3791 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3793 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3795 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3797 (alphanbsd-nat.o): New dependency list.
3798 (alphanbsd-tdep.o): Ditto.
3799 * NEWS: Note new native NetBSD/alpha configuration.
3800 * alphanbsd-nat.c: New file.
3801 * alphanbsd-tdep.c: Ditto.
3802 * configure.host (alpha*-*-netbsd*): New host.
3803 * configure.tgt (alpha*-*-netbsd*): New target.
3804 * config/alpha/nbsd.mh: New file.
3805 * config/alpha/nbsd.mt: Ditto.
3806 * config/alpha/nm-nbsd.h: Ditto.
3807 * config/alpha/tm-nbsd.h: Ditto.
3809 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3811 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3812 (alpha-osf1-tdep.o): New dependency list.
3813 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3814 and skip_sigtramp_frame members.
3815 * alpha-linux-tdep.c: Include gdbcore.h.
3816 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3817 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3818 * alpha-osf1-tdep.c: New file.
3819 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3821 (alpha_frame_past_sigtramp_frame): New function.
3822 (alpha_dynamic_sigtramp_offset): Ditto.
3823 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3824 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3825 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3826 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3827 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3828 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3829 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3830 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3831 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3832 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3833 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3834 to find_solib_trampoline_target.
3835 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3836 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3837 (SKIP_TRAMPOLINE_CODE): Remove.
3838 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3839 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3840 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3841 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3842 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3843 (PROC_SIGTRAMP_MAGIC): Ditto.
3844 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3845 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3846 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3847 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3848 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3850 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3852 * NEWS: Note that Alpha targets are now multi-arch.
3854 2002-04-24 Michael Snyder <msnyder@redhat.com>
3856 * parser-defs.h (prev_lexptr): New external variable.
3857 * parse.c (parse_exp_1): Set prev_lexptr to null before
3858 calling the language-specific parser.
3859 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3860 (yyerror): Use prev_lexptr in error reporting.
3862 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
3864 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3865 * gregset.h: If FILL_FPXREGSET is defined, provide
3866 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3867 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3868 is defined, call fill_fpxregset.
3870 2002-04-24 Roland McGrath <roland@frob.com>
3872 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3873 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3874 (supply_gregset, supply_fpregset): New functions.
3876 * gnu-nat.c (gnu_find_memory_regions): New function.
3877 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3878 (gnu_xfer_memory): Add a cast.
3880 2002-04-24 Michael Snyder <msnyder@redhat.com>
3882 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3883 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3884 of argument regs ("str r(0123), [r11, #-nn"]).
3885 (arm_skip_prologue): Better handling for frameless functions.
3886 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3887 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3889 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
3891 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3892 NUM_PSEUDO_REGS can be used.
3894 2002-04-24 Andrew Cagney <ac131313@redhat.com>
3896 * arch-utils.h: Update copyright.
3898 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3899 * gdbarch.h, gdbarch.c: Re-generate.
3901 * inferior.h (IN_SIGTRAMP): Delete definition.
3902 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3903 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3905 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3906 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3907 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3908 (find_proc_framesize): Ditto.
3909 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3910 (alpha_init_extra_frame_info): Ditto.
3911 * infrun.c (handle_inferior_event): Ditto.
3912 (handle_inferior_event): Ditto.
3913 (check_sigtramp2): Ditto.
3914 * blockframe.c (create_new_frame): Ditto.
3915 (get_prev_frame): Ditto.
3916 * ppc-linux-tdep.c: Update comments.
3917 * i386-linux-tdep.c: Update comments.
3918 * breakpoint.c (bpstat_what): Update comment.
3920 2002-04-24 Michal Ludvig <mludvig@suse.cz>
3922 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3923 (regsets_store_inferior_registers): Removed cast to int from
3925 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3927 2002-04-24 David S. Miller <davem@redhat.com>
3929 * i960-tdep.c (register_in_window_p): New function.
3930 (i960_find_saved_register): Use it instead of
3931 REGISTER_IN_WINDOW_P.
3932 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3934 * symtab.h (find_stab_function_addr): Kill extern.
3935 * minsyms.c (find_stab_function_addr): Remove from here...
3936 * dbxread.c: ... to here, and mark it static.
3938 2002-04-20 David S. Miller <davem@redhat.com>
3940 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3941 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3943 2002-04-21 David S. Miller <davem@redhat.com>
3945 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3946 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3947 (vx_write_register): Likewise.
3949 2002-04-23 J. Brobecker <brobecker@gnat.com>
3951 * source.c (is_regular_file): New function.
3952 (openp): Check wether file to open is a regular file
3953 to avoid opening directories.
3955 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3957 * findvar.c (extract_signed_integer): Cast printf argument
3958 to suppress format warning.
3959 (extract_unsigned_integer): Likewise.
3960 * infcmd.c (registers_info): Likewise.
3961 * top.c (get_prompt_1): Likewise.
3962 * valops.c (value_assign): Likewise.
3963 * valprint.c (print_decimal): Likewise.
3965 2002-04-22 H.J. Lu (hjl@gnu.org)
3967 * c-exp.y (typebase): Support
3969 [long|long long|short] [signed|unsigned] [int|]
3973 signed [long|long long|short] int
3975 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3977 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3979 * vax-tdep.h: New file.
3980 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3981 Make several routines static.
3982 (vax_get_saved_register): New function.
3983 (vax_gdbarch_init): New function.
3984 (_initialize_vax_tdep): Register vax_gdbarch_init.
3985 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3986 Remove macros now under the control of gdbarch.
3988 2002-04-22 Michael Snyder <msnyder@redhat.com>
3990 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3991 Some whitespace and coding standards tweaks.
3993 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3995 * vax-tdep.c: Include regcache.h.
3996 (vax_call_dummy_words): New.
3997 (sizeof_vax_call_dummy_words): New.
3998 (vax_fix_call_dummy): New function.
3999 (vax_saved_pc_after_call): Ditto.
4000 * config/vax/tm-vax.h: Don't include regcache.h.
4001 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
4002 (CALL_DUMMY): Remove.
4003 (CALL_DUMMY_WORDS): Define.
4004 (SIZEOF_CALL_DUMMY_WORDS): Define.
4005 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
4007 2002-04-18 Michael Snyder <msnyder@redhat.com>
4009 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
4011 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4013 * vax-tdep.c (vax_frame_chain): New function.
4014 (vax_push_dummy_frame): Ditto.
4015 (vax_pop_frame): Ditto.
4016 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
4017 (FRAMELESS_FUNCTION_INVOCATION): Use
4018 generic_frameless_function_invocation_not.
4019 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
4020 (POP_FRAME): Use vax_pop_frame.
4022 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4024 * vax-tdep.c (vax_store_struct_return): New function.
4025 (vax_extract_return_value): Ditto.
4026 (vax_store_return_value): Ditto.
4027 (vax_extract_struct_value_address): Ditto.
4028 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
4029 vax_store_struct_return.
4030 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
4031 (STORE_RETURN_VALUE): Use vax_store_return_value.
4032 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
4034 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4036 * vax-tdep.c (vax_frame_saved_pc): New function.
4037 (vax_frame_args_address_correct): Ditto.
4038 (vax_frame_args_address): Ditto.
4039 (vax_frame_locals_address): Ditto.
4040 (vax_frame_num_args): Move code to be in proximity to
4041 other frame-related functions.
4042 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
4043 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
4044 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
4045 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
4046 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
4048 2002-04-22 H.J. Lu (hjl@gnu.org)
4050 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
4053 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4055 * vax-tdep.c (vax_frame_init_saved_regs): New function.
4056 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
4057 (FRAME_INIT_SAVED_REGS): New macro.
4059 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4061 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
4063 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4065 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
4067 (fetch_osf_core_registers): Likewise.
4068 (supply_gregset): Likewise.
4070 2002-04-22 J. Brobecker <brobecker@gnat.com>
4072 * symfile.h (get_section_index): Define.
4073 * symfile.c (get_section_index): New function.
4074 * mdebugread.c (SC_IS_SBSS): New macro.
4075 (SC_IS_BSS): Return true for the scBss storage class only, as
4076 the scSBss storage class refers to the .sbss section.
4077 (parse_partial_symbols): Discard the symbols which associated
4078 section does not exist.
4079 Make sure to use the .sbss section index for symbols which
4080 storage class is scBss, rather than using the .bss section index.
4082 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
4084 * vax-tdep.c: Update copyright years.
4085 (vax_register_name): New function.
4086 (vax_register_byte): Ditto.
4087 (vax_register_raw_size): Ditto.
4088 (vax_register_virtual_size): Ditto.
4089 (vax_register_virtual_type): Ditto.
4090 * config/vax/tm-vax.h: Update copyright years.
4091 (REGISTER_NAMES): Remove.
4092 (REGISTER_NAME): Define.
4093 (REGISTER_BYTE): Use vax_register_byte.
4094 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4095 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4096 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4098 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4100 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4102 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4104 2002-04-21 David S. Miller <davem@redhat.com>
4106 * arch-utils.c (generic_prologue_frameless_p): Kill
4107 SKIP_PROLOGUE_FRAMELESS_P code.
4108 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4110 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4111 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4112 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4114 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4115 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4116 (sparc_gdbarch_init): Pass it to
4117 set_gdbarch_prologue_frameless_p.
4119 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4121 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4122 (alphabsd-nat.o): New dependency list.
4124 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4126 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4128 (alpha-linux-tdep.o): New dependency list.
4129 (alphafbsd-tdep.o): Likewise.
4131 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4133 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4135 * alpha-tdep.c: ...from here.
4136 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4138 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4140 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4141 prototype from here...
4142 * alpha-tdep.h: ...to here.
4144 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4146 * frame.h (selected_frame_level): Document as deprecated.
4147 (frame_relative_level): Declare.
4148 * stack.c (frame_relative_level): New function.
4149 (selected_frame_level): Document as deprecated.
4150 (select_frame): Do not set the selected_frame_level.
4152 * stack.c (frame_info, record_selected_frame): Update.
4153 (frame_command, current_frame_command): Update.
4154 (up_silently_base, up_command, down_silently_base): Update.
4155 (down_command): Update.
4156 * inflow.c (kill_command): Update.
4157 * tracepoint.c (finish_tfind_command): Update.
4158 * corelow.c (core_open): Update.
4159 * thread.c (info_threads_command): Update.
4160 (do_captured_thread_select): Update.
4161 * infcmd.c (finish_command): Update.
4162 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4164 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4166 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4168 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4170 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4173 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4175 * alphafbsd-tdep.c: Update copyright years. Include
4177 (alphafbsd_use_struct_convention): Make static.
4178 (alphafbsd_init_abi): New function.
4179 (_initialize_alphafbsd_tdep): New function.
4180 * config/alpha/tm-fbsd.h: Update copyright years.
4181 (USE_STRUCT_CONVENTION): Remove.
4183 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4185 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4186 an Alpha ABI variant.
4187 (alpha_abi_handler_list): Declare.
4188 (alpha_gdbarch_register_os_abi): New function.
4189 (alpha_gdbarch_init): Give registered ABI variant handlers a
4190 chance to tweak the gdbarch once we have set up defaults.
4191 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4193 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4195 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4196 to standard_coerce_float_to_double.
4197 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4199 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4201 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4202 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4203 from gdbarch_tdep rather than a constant.
4204 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4205 the default text address for all Alpha Unix ABIs.
4206 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4207 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4209 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4211 * alpha-tdep.h: New file. Includes several Alpha target constants
4213 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4214 let gdbarch deal with.
4215 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4216 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4218 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4219 Alpha target register names.
4220 * alphabsd-nat.c: Likewise.
4221 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4222 Alpha target register names. Make serveral routines static.
4223 (alpha_get_saved_register): New function.
4224 (alpha_abi_names): New.
4225 (process_note_abi_tag_sections): New function.
4226 (get_elfosabi): New function.
4227 (alpha_gdbarch_init): New function.
4228 (alpha_dump_tdep): New function.
4229 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4231 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4233 * frame.c (find_saved_register): Delete #ifdef
4234 HAVE_REGISTER_WINDOWS code.
4235 * config/sparc/tm-sparc.h: Update comments.
4236 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4238 2002-04-21 Andrew Cagney <ac131313@redhat.com>
4240 * i960-tdep.c (i960_find_saved_register): New function.
4241 (i960_get_saved_register): New function.
4242 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4243 (i960_get_saved_register): Declare.
4244 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4246 2002-04-20 David S. Miller <davem@redhat.com>
4248 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4250 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4252 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4253 instead of NUM_PSEUDO_REGS.
4255 2002-04-20 David S. Miller <davem@redhat.com>
4257 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4258 GDB_MULTI_ARCH_PARTIAL
4259 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4260 define, let tm-sp64.h do it.
4262 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4264 * frame.c (find_saved_register): Avoid a NULL pointer
4265 dereference and actually walk the frame list.
4267 2002-04-20 Andrew Cagney <ac131313@redhat.com>
4269 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4270 sorted in most most-recent-used order. Document.
4271 * gdbarch.h, gdbarch.c: Regenerate.
4273 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4275 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4276 (add_inferior): Call create_register_cache.
4277 (clear_inferiors): Call free_register_cache.
4278 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4279 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4280 (registers): Remove.
4281 (get_regcache): New function.
4282 (create_register_cache, free_register_cache): New functions.
4283 (set_register_cache): Don't initialize the register cache here.
4284 (registers_to_string, registers_from_string, register_data): Call
4286 * gdbserver/regcache.h: Add prototypes.
4287 * gdbserver/server.h: Likewise.
4289 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
4291 * gdbserver/mem-break.c: New file.
4292 * gdbserver/mem-break.h: New file.
4293 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4295 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4297 (clear_inferiors): Free target_data member if set.
4298 (inferior_target_data, set_inferior_target_data): New functions.
4299 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4300 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4301 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4302 (struct inferior_linux_data): New.
4303 (linux_create_inferior): Use set_inferior_target_data.
4304 (linux_attach): Likewise. Call add_inferior.
4305 (linux_wait_for_one_inferior): New function.
4306 (linux_wait): Call it.
4307 (linux_write_memory): Add const.
4308 (initialize_low): Call set_breakpoint_data.
4309 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4311 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4313 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4315 * gdbserver/target.c (read_inferior_memory)
4316 (write_inferior_memory): New functions.
4317 * gdbserver/target.h (read_inferior_memory)
4318 (write_inferior_memory): Change macros to prototypes.
4319 (struct target_ops): Update comments. Add const to write_memory
4322 2002-04-19 Andrew Cagney <ac131313@redhat.com>
4324 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4326 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4327 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4328 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4331 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
4334 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4335 (build_builtin_type_vec128): Ditto.
4336 (append_composite_type_field): Fix calculation of type length in
4339 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4341 * config/djgpp/README: Update.
4343 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4346 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4348 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4349 (alpha_setup_arbitrary_frame): ...to this.
4350 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4351 for alpha_setup_arbitrary_frame.
4353 2002-04-18 Andrew Cagney <cagney@redhat.com>
4355 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4356 * gdbarch.h, gdbarch.c: Regenerate.
4358 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4359 * target.h (memory_breakpoint_from_pc): Update declaration.
4360 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4362 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4363 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4364 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4365 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4366 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4367 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4368 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4369 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4370 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4371 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4372 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4373 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4375 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4377 * monitor.c (monitor_insert_breakpoint): Ditto.
4378 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4380 * config/mcore/tm-mcore.h: Update copyright.
4381 * mem-break.c: Ditto.
4382 * xstormy16-tdep.c: Ditto.
4384 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4386 * p-exp.y: Add precedence rule for '^' token.
4387 This removes the shift/reduce conflicts.
4388 Remove the comment concerning these shift/reduce conflicts.
4390 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
4392 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4393 (registers_powerpc_nofp): New register set for processors
4394 without floating point unit.
4396 2002-04-18 David S. Miller <davem@redhat.com>
4398 * MAINTAINERS: Add myself to write-after-approval.
4400 2002-04-17 Michael Snyder <msnyder@redhat.com>
4402 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4404 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4406 * rs6000-tdep.c (frame_initial_stack_address): Use
4407 frame_register_read to read the alloca_reg.
4409 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4411 * frame.c (find_saved_register): Find saved registers in the next
4415 2002-04-17 Andrew Cagney <ac131313@redhat.com>
4417 * gdbarch.sh (LANG): Set to ``c''.
4419 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4421 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4423 2002-04-15 Andrew Cagney <ac131313@redhat.com>
4425 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4428 * hpread.c (hpread_get_lntt): Add declaration.
4429 Also fix PR gdb/391.
4431 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4433 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4434 * aclocal.m4, configure: Re-generate.
4437 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4439 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4440 instead of tm_print_insn.
4442 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
4444 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4446 2002-04-14 Andrew Cagney <ac131313@redhat.com>
4448 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4449 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4450 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4452 2002-04-12 Don Howard <dhoward@redhat.com>
4454 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4455 max_user_call_depth.
4456 (init_cmd_lists): Initialize the new value;
4457 * cli/cli-script.c (execute_user_command): Limit the call depth of
4458 user defined commands. This avoids a core-dump when user commands
4459 are infinitly recursive.
4461 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4463 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4464 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4465 from tdep struct instead of DEFAULT_LR_SAVE.
4466 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4467 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4468 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4470 2002-04-12 Michael Snyder <msnyder@redhat.com>
4472 * Remote.c: Spelling fix.
4473 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4474 If no symbol found for "sbrk", try "_sbrk".
4475 (make_output_phdrs): Use bfd_section_name.
4476 (gcore_copy_callback): Use bfd_section_name.
4477 * eval.c: Indentation fix-ups.
4478 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4479 in case it gets applied to an address that is already
4480 in the instruction space.
4481 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4482 * symfile.c: Fix indentation, long lines.
4483 * source.c: White space fix-up.
4485 2002-04-12 Andrew Cagney <cagney@redhat.com>
4487 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4488 * frame.c (frame_register_read): New function. Return non-zero on
4490 (read_relative_register_raw_bytes_for_frame): Delete.
4491 (read_relative_register_raw_bytes): Delete.
4492 * frame.h (frame_register_read): Declare.
4493 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4495 * infcmd.c (do_registers_info): Ditto.
4496 * hppa-tdep.c: Ditto.
4497 * rs6000-tdep.c: Ditto.
4498 * h8500-tdep.c: Ditto.
4499 * mips-tdep.c: Ditto.
4500 * h8300-tdep.c: Ditto.
4501 * z8k-tdep.c: Ditto.
4503 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4505 From Jimi X <jimix@watson.ibm.com>:
4506 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4509 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4511 From Jimi X <jimix@watson.ibm.com>:
4512 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4515 2002-04-12 Kevin Buettner <kevinb@redhat.com>
4517 From Jimi X <jimix@watson.ibm.com>:
4518 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4519 register sets for these processor variants.
4521 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
4523 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4524 registers which are allowed to fail to store.
4525 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4526 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4527 (ppc_cannot_store_register): FPSCR may not be storable.
4528 * regformats/reg-ppc.dat: Support FPSCR.
4530 2002-04-11 Kevin Buettner <kevinb@redhat.com>
4532 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4533 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4534 Add fpscr as an invalid/unfetchable register.
4535 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4536 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4537 (fill_fpregset): Add support for register fpscr.
4538 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4539 (fill_gregset): Account for the fact that register ``mq'' might
4541 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4542 (registers_power): Add fpscr to register set at slot 71.
4543 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4544 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4546 2002-04-11 Michael Snyder <msnyder@redhat.com>
4548 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4549 * configure: Regenerate.
4550 * config.in: Regenerate.
4551 * acconfig.h: Add define for _SYSCALL32.
4552 * core-sol2.c: Remove #define _SYSCALL32.
4553 * solib-legacy.c: Remove #define _SYSCALL32.
4555 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4557 * stack.c (select_frame): Cleanup internal error message, do not
4560 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4562 * stack.c (select_frame): Check that selected_frame and the
4563 specified level are as expected.
4564 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4566 * frame.h (struct frame_info): Add field `level'. Update
4568 Work-in-progress PR gdb/464.
4570 2002-04-10 Andrew Cagney <ac131313@redhat.com>
4572 * maint.c (maint_print_section_info): Rename print_section_info.
4573 (print_bfd_section_info, print_objfile_section_info): Update.
4574 * inferior.h (struct gdbarch): Add opaque declaration.
4575 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4576 * gdbarch.h: Regenerate.
4578 2002-04-10 Michal Ludvig <mludvig@suse.cz>
4580 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4581 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4582 (kernel_u_size): Added.
4583 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4584 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4586 2002-04-04 Jim Ingham <jingham@apple.com>
4588 * valarith.c (find_size_for_pointer_math): New function, either returns
4589 the size for a pointer's target, returns 1 for void *, or errors for
4591 (value_add, value_sub): use find_size_for_pointer_math.
4593 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4595 * linux-low.c (linux_look_up_symbols): New hook.
4596 (linux_target_ops): Add linux_look_up_symbols.
4597 * remote-utils.c (decode_address): New function.
4598 (look_up_one_symbol): New function.
4599 * server.c (handle_query): Call target look_up_symbols hook.
4600 * server.h (look_up_one_symbol): Add prototype.
4601 * target.h (struct target_ops): Add look_up_symbols hook.
4603 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4605 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4606 * ChangeLog: Correct paths in last ChangeLog entry.
4608 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4610 * gdbserver/linux-low.h: Remove obsolete prototypes.
4611 (struct linux_target_ops): New.
4612 (extern the_low_target): New.
4613 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
4614 (register_addr): Use the_low_target explicitly.
4615 (fetch_register): Likewise.
4616 (usr_fetch_inferior_registers): Likewise.
4617 (usr_store_inferior_registers): Likewise.
4618 * gdbserver/linux-arm-low.c (num_regs): Remove.
4619 (arm_num_regs): Define.
4620 (arm_regmap): Renamed from regmap, made static.
4621 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4623 (arm_cannot_store_register): Renamed from cannot_store_register,
4625 (the_low_target): New.
4626 * gdbserver/linux-i386-low.c (num_regs): Remove.
4627 (i386_num_regs): Define.
4628 (i386_regmap): Renamed from regmap, made static.
4629 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4631 (i386_cannot_store_register): Renamed from cannot_store_register,
4633 (the_low_target): New.
4634 * gdbserver/linux-ia64-low.c (num_regs): Remove.
4635 (ia64_num_regs): Define.
4636 (ia64_regmap): Renamed from regmap, made static.
4637 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4639 (ia64_cannot_store_register): Renamed from cannot_store_register,
4641 (the_low_target): New.
4642 * gdbserver/linux-m68k-low.c (num_regs): Remove.
4643 (m68k_num_regs): Define.
4644 (m68k_regmap): Renamed from regmap, made static.
4645 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4647 (m68k_cannot_store_register): Renamed from cannot_store_register,
4649 (the_low_target): New.
4650 * gdbserver/linux-mips-low.c (num_regs): Remove.
4651 (mips_num_regs): Define.
4652 (mips_regmap): Renamed from regmap, made static.
4653 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4655 (mips_cannot_store_register): Renamed from cannot_store_register,
4657 (the_low_target): New.
4658 * gdbserver/linux-ppc-low.c (num_regs): Remove.
4659 (ppc_num_regs): Define.
4660 (ppc_regmap): Renamed from regmap, made static.
4661 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4663 (ppc_cannot_store_register): Renamed from cannot_store_register,
4665 (the_low_target): New.
4666 * gdbserver/linux-s390-low.c (num_regs): Remove.
4667 (s390_num_regs): Define.
4668 (s390_regmap): Renamed from regmap, made static.
4669 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4671 (s390_cannot_store_register): Renamed from cannot_store_register,
4673 (the_low_target): New.
4674 * gdbserver/linux-sh-low.c (num_regs): Remove.
4675 (sh_num_regs): Define.
4676 (sh_regmap): Renamed from regmap, made static.
4677 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4679 (sh_cannot_store_register): Renamed from cannot_store_register,
4681 (the_low_target): New.
4682 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
4683 (the_low_target): New.
4685 2002-04-09 Andrew Cagney <ac131313@redhat.com>
4687 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4688 override FP_REGNUM with frame->fp. Update copyright.
4689 * parse.c (num_std_regs, std_regs): Delete.
4690 (target_map_name_to_register): Do not search std_regs. Update
4691 function description.
4692 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4693 declarations. Update copyright.
4696 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4698 * gdbserver/Makefile.in: Add stamp-h target.
4699 * gdbserver/configure.in: Create stamp-h.
4700 * gdbserver/configure: Regenerated.
4702 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4704 * gdbserver/inferiors.c: New file.
4705 * gdbserver/target.c: New file.
4706 * gdbserver/target.h: New file.
4707 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4709 * gdbserver/linux-low.c (inferior_pid): New static variable,
4710 moved from server.c.
4711 (linux_create_inferior): Renamed from create_inferior.
4712 Call add_inferior. Return 0 on success instead of a PID.
4713 (linux_attach): Renamed from myattach.
4714 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4715 (linux_thread_alive): Renamed from mythread_alive.
4716 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4718 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4719 (regsets_store_inferior_registers): Correct error message.
4720 Add missing ``return 0''.
4721 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4722 (linux_store_registers): Renamed from store_inferior_registers.
4723 (linux_read_memory): Renamed from read_inferior_memory.
4724 (linux_write_memory): Renamed from write_inferior_memory.
4725 (linux_target_ops): New structure.
4726 (initialize_low): Call set_target_ops ().
4727 * gdbserver/remote-utils.c (unhexify): New function.
4728 (hexify): New function.
4729 (input_interrupt): Send signals to ``signal_pid''.
4730 * gdbserver/server.c (inferior_pid): Remove.
4731 (start_inferior): Update create_inferior call.
4732 (attach_inferior): Call add_inferior.
4733 (handle_query): New function.
4734 (main): Call handle_query for `q' packets.
4735 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4736 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4738 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4740 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4742 * gdbserver/configure.in: Check for <string.h>
4743 * gdbserver/configure: Regenerate.
4744 * gdbserver/config.in: Regenerate.
4745 * gdbserver/gdbreplay.c: Include needed system headers.
4746 (remote_open): Remove strchr prototype.
4747 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4748 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4749 (supply_register_by_name): Likewise.
4750 (collect_register): Change buf argument to void *.
4751 (collect_register_by_name): Likewise.
4752 * gdbserver/regcache.h: Add missing prototypes.
4753 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4754 * gdbserver/server.c (handle_query): New function.
4755 (attached): New static variable, moved out of main.
4756 (main): Quiet longjmp clobber warnings.
4757 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4758 * gdbserver/utils.c (error): Remove NORETURN.
4761 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
4763 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4764 after the last symbol in a block.
4766 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4768 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4769 is non zero as a found symbol.
4771 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4773 * findvar.c: Include "builtin-regs.h".
4774 (value_of_register): Call value_of_builtin_reg when applicable.
4775 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4776 (target_map_name_to_register): Call
4777 builtin_reg_map_name_to_regnum.
4778 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4779 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4780 (builtin_regs_h): Define.
4781 (builtin-regs.o): New target.
4782 (findvar.o): Add $(builtin_regs_h).
4783 * builtin-regs.c, builtin-regs.h: New files.
4784 * std-regs.c: New file.
4785 Partial fix for PR gdb/251.
4787 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4789 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4790 it's no longer required.
4792 2002-04-08 Andrew Cagney <ac131313@redhat.com>
4794 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4796 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4798 From Jimi X <jimix@watson.ibm.com>:
4799 * rs6000-tdep.c (rs6000_software_single_step): Use
4800 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4801 and size. Use target_insert_breakpoint() and
4802 target_remove_breakpoint() to insert and remove breakpoints
4803 instead of explicit memory reads and writes.
4805 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4807 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4808 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4809 ELF_OBJECT_FORMAT ifdef.
4811 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4813 From Jimi X <jimix@watson.ibm.com>:
4814 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4816 2002-04-08 Kevin Buettner <kevinb@redhat.com>
4818 From Jimi X <jimix@watson.ibm.com>:
4819 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4820 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4822 2002-04-07 Mark Kettenis <kettenis@gnu.org>
4824 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4825 s/asprintf/xasprintf/.
4826 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4828 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4830 I believe Jeff Law denies responsability for this one:
4831 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4832 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4833 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4834 Work-around for PR gdb/366.
4836 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4838 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4839 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4840 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4842 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
4844 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4845 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4848 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4850 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4853 2002-04-07 Andrew Cagney <ac131313@redhat.com>
4855 * README (Reporting Bugs in GDB): Document the bug web page as the
4856 prefered way of submitting bugs.
4859 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4861 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4863 * gdbarch.h, gdbarch.c: Re-generate.
4865 2002-04-07 Andreas Schwab <schwab@suse.de>
4867 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4868 buffer to regcache_collect.
4870 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4872 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4873 * gdbarch.c, gdbarch.h: Re-generate.
4875 2002-04-06 Andrew Cagney <ac131313@redhat.com>
4877 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4878 declaration. Fix -Werror.
4880 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
4882 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4883 * gdbarch.c: Regenerate.
4885 2002-04-05 Michael Snyder <msnyder@redhat.com>
4887 * breakpoint.c (clear_command): Rewrite middle section to
4888 combine two loops with identical control conditions.
4889 Add a cleanup to eliminate a memory leak.
4890 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4892 2002-04-05 H.J. Lu (hjl@gnu.org)
4894 * solib-svr4.c (bkpt_names): Add "__start".
4896 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4898 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4899 as test for 64 bit target.
4901 2002-04-05 Andrew Cagney <ac131313@redhat.com>
4903 * h8500-tdep.c (h8500_write_fp): Delete function.
4904 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4905 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4906 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4908 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4909 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4911 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4912 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4913 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4914 (d10v_write_fp): Delete function.
4915 * inferior.h (write_fp, generic_target_write_fp): Delete
4917 * regcache.c (generic_target_write_fp): Delete function.
4918 (write_fp): Delete function.
4919 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4920 * gdbarch.h, gdbarch.c: Regenerate.
4921 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4922 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4923 (sparc64_write_fp): Delete declaration.
4924 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4925 (h8500_write_fp): Delete declaration.
4927 2002-04-04 Andrew Cagney <ac131313@redhat.com>
4929 * sparc-tdep.c (sparc64_write_fp): Delete.
4930 (sparc_push_dummy_frame): Replace write_fp call with code to store
4932 (sparc_gdbarch_init): Do not initialize write_fp.
4934 2002-04-05 Kevin Buettner <kevinb@redhat.com>
4936 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4939 2002-03-29 Jim Blandy <jimb@redhat.com>
4941 * stack.c (get_selected_block): Add new argument `addr_in_block',
4942 used to return the exact code address we used to select the block,
4944 * blockframe.c (get_frame_block, get_current_block): Same.
4945 * frame.h (get_frame_block, get_current_block,
4946 get_selected_block): Update declarations.
4947 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4948 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4950 2002-04-05 Michael Snyder <msnyder@redhat.com>
4952 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4955 2002-04-05 J. Brobecker <brobecker@gnat.com>
4957 * utils.c (xfullpath): New function.
4958 * defs.h (xfullpath): Add declaration.
4959 * source.c (openp): Use xfullpath in place of gdb_realpath to
4960 avoid resolving the basename part of filenames when the
4961 associated file is a symbolic link. This fixes a potential
4962 inconsistency between the filenames known to GDB and the
4963 filenames it prints in the annotations.
4964 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4965 to be able to match a filename with either the real filename, or
4966 the name of any symbolic link to this file.
4967 (lookup_partial_symtab): Ditto.
4969 2002-04-04 Michael Snyder <msnyder@redhat.com>
4971 * breakpoint.c: Add support for hardware breakpoints in overlays.
4972 (overlay_events_enabled): New state variable.
4973 (insert_breakpoints): Use overlay_events_enabled to decide
4974 whether to attempt to set a breakpoint at the overlay load addr.
4975 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4976 (remove_breakpoint): Use overlay_events_enabled to decide
4977 whether breakpoints need to be removed from overlay load addr.
4978 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4979 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4980 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4981 disable_overlay_breakpoints): Update overlay_events_enabled.
4983 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
4985 * dwarf2read.c (struct function_range): New.
4986 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4987 (check_cu_functions): New.
4988 (read_file_scope): Initialize global function lists.
4989 Call dwarf_decode_line after processing children.
4990 (read_func_scope): Add to global function list.
4991 (dwarf_decode_lines): Call check_cu_functions everywhere
4992 record_line is called. Call record_line with a linenumber
4993 of 0 to mark sequence ends.
4995 2002-04-04 Michal Ludvig <mludvig@suse.cz>
4997 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4998 change sync with glibc.
5000 2002-04-03 Jim Blandy <jimb@redhat.com>
5002 * configure.in: Call AC_C_INLINE.
5003 * configure: Regenerated.
5005 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
5007 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
5008 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
5010 2002-03-31 Mark Kettenis <kettenis@gnu.org>
5012 * NEWS: Mention gcore support on FreeBSD/i386.
5014 * fbsd-proc.c: New file.
5015 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
5016 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
5018 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
5021 2002-03-29 Jim Blandy <jimb@redhat.com>
5023 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
5024 unescaped newlines in string literals, but newer ones don't. So
5027 2002-03-26 Michael Snyder <msnyder@redhat.com>
5028 Andrew Cagney <cagney@redhat.com>
5030 * cli/cli-dump.c: New file. Dump memory to file,
5031 restore file to memory.
5032 * cli/cli-dump.h: New file.
5033 * Makefile.in: Add rules, dependencies for cli-dump.o.
5034 * NEWS: Mention new commands.
5036 2002-03-28 Michael Snyder <msnyder@redhat.com>
5038 * symfile.c (symbol_file_add): Move test for null symbols to later.
5040 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5042 From veksler at il.ibm.com:
5043 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
5044 the xstrduped original path.
5047 2002-03-27 Michael Snyder <msnyder@redhat.com>
5049 * breakpoint.c (_initialize_breakpoint): Clean up help string.
5050 * infcmd.c (_initialize_infcmd): Ditto.
5051 * language.c (_initialize_language): Ditto.
5052 * symfile.c (_initialize_symfile): Ditto.
5053 * top.c (_init_main): Ditto.
5054 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5056 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
5058 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
5059 vector registers handling.
5060 (skip_prologue): Handle new AltiVec instructions. Fill in new
5061 fields of frame data.
5062 (frame_get_saved_regs): Fill in information for AltiVec registers.
5064 2002-03-27 Jim Blandy <jimb@redhat.com>
5066 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
5067 a function; leave this macro here to invoke that function.
5068 (symbol_init_mangled_name): Declaration for that function.
5069 * symtab.c (symbol_init_mangled_name): New function.
5071 2002-03-27 Andrew Cagney <ac131313@redhat.com>
5073 * valarith.c: Replace strerror with safe_strerror.
5074 * tracepoint.c: Ditto.
5076 * go32-nat.c: Ditto.
5080 2002-03-27 Andreas Schwab <schwab@suse.de>
5082 * event-top.c (command_line_handler): Remove useless if.
5084 2002-03-27 Andreas Jaeger <aj@suse.de>
5086 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5089 2002-03-27 Michal Ludvig <mludvig@suse.cz>
5091 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5092 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5093 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5094 (x86_64_linux_dr_get_status, supply_gregset),
5095 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5096 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5097 (x86_64_register_info_table): Add.
5098 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5099 (x86_64_register_raw_size, x86_64_register_virtual_type),
5100 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5101 general x86_64_register_info_table.
5102 (i386_gdbarch_init): gdbarch_register_bytes is now set
5103 dynamicaly during initialization.
5104 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5105 * gdbserver/linux-x86-64-low.c: Ditto.
5107 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5109 * gdbserver/server.c (main): Call target_signal_to_host_p
5110 and target_signal_to_host on signals received from the remote.
5111 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5112 target_signal_from_host on signals sent to the remote.
5113 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5114 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5116 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5118 * signals/signals.c: Include "server.h" in gdbserver build.
5119 (target_signal_from_name): Don't use STREQ.
5120 (_initialize_signals): Likewise. Don't include function in
5123 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
5125 * signals.c: Moved to...
5126 * signals/signals.c: Here.
5127 * Makefile (signals.o): Update.
5129 2002-03-26 Jeff Law (law@redhat.com)
5131 * somread.c (som_symtab_read): Remove some commented out code and
5132 updated related comments. Do not set the minimal symbol table to
5133 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5134 in a dynamic executable.
5135 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5136 where we are unable to find the minimal symbol for the given
5139 2002-03-25 Jeff Law (law@redhat.com)
5141 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5143 2002-03-25 Michal Ludvig <mludvig@suse.cz>
5145 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5147 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5149 * command.h: Update copyright.
5150 (struct cmd_list_element): Replace definition with opaque
5152 (enum cmd_types): Document that it will eventually be moved to
5154 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5155 (MALLOCED_REPLACEMENT): Delete macro.
5156 * Makefile.in (cli_decode_h): Add $(command_h).
5157 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
5158 * top.c: Include "cli/cli-decode.h".
5159 * completer.c: Include "cli/cli-decode.h".
5160 * maint.c: Include "cli/cli-decode.h".
5161 * cli/cli-decode.h: Include "command.h".
5162 (enum command_class): Delete.
5163 (enum cmd_types): Comment out.
5164 (enum cmd_auto_boolean): Delete.
5165 (enum var_types): Delete.
5167 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5169 * cli/cli-decode.c: Include "gdb_assert.h".
5170 (add_set_or_show_cmd): New static function.
5171 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5172 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5173 all fields, such as func, from the set command.
5175 2002-03-23 Andrew Cagney <ac131313@redhat.com>
5177 * MAINTAINERS (sh-elf): Change warning flag to -w.
5179 2002-03-23 Andrew Cagney <cagney@redhat.com>
5181 * defs.h (error): Add printf format attribute.
5182 * thread-db.c (thread_from_lwp): Fix error format string.
5183 * stack.c (parse_frame_specification): Ditto.
5184 * cli/cli-decode.c (undef_cmd_error): Ditto.
5185 * scm-lang.c (scm_lookup_name): Ditto.
5186 * tracepoint.c (trace_error): Ditto.
5187 * remote-utils.c (usage): Ditto.
5188 * remote.c (compare_sections_command): Ditto.
5191 2002-03-22 Andrew Cagney <ac131313@redhat.com>
5193 * gdbtypes.c (append_composite_type_field): New function.
5194 (init_composite_type): New function.
5195 * gdbtypes.h (append_composite_type_field): Declare.
5196 (init_composite_type): Ditto.
5198 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
5200 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
5202 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5203 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5204 structure returning convention for SYSV ABI case, but not
5205 for GNU/Linux, FreeBSD, or NetBSD.
5207 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
5209 * symtab.h (lookup_block_symbol): Add mangled_name argument
5212 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5213 with new mangled_name argument.
5214 * linespec.c (decode_line_1): Likewise.
5215 * valops (value_of_this): Likewise.
5216 * symtab.c (lookup_transparent_type): Likewise.
5217 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5218 (lookup_symbol): If we are given a mangled name, pass it down
5219 to lookup_symbol_aux.
5220 (lookup_block_symbol): If we are given a mangled name to check
5221 against, only return symbols which match it.
5223 2002-03-22 Christopher Faylor <cgf@redhat.com>
5225 * win32-nat.c (child_create_inferior): Check for proper shell to use
5226 here, in case the user changes it on the fly.
5227 (_initialize_inftarg): Remove shell path considerations.
5229 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
5231 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5232 for gdbarch_max_register_raw_size and max_register_virtual_size.
5233 Adjust copyright year.
5235 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
5237 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5238 in a function to cover the entire beginning of the function
5239 as well if it does not already.
5241 2002-03-21 Tom Rix <trix@redhat.com>
5243 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5244 (rs6000_ptrace64): Renamed from ptrace64.
5246 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5248 * gdbserver/remote-utils.c (remote_open): Don't call
5249 getprotobyname, we're all using TCP here so just use
5251 * gdbserver/gdbreplay.c (remote_open): Ditto.
5253 2002-03-20 Martin M. Hunt <hunt@redhat.com>
5255 * regcache.c (_initialize_regcache): No need to call
5256 build_regcache() at this time; it gets called whenever
5257 the gdbarch changes.
5259 2002-03-20 David O'Brien <obrien@FreeBSD.org>
5261 * sparc-nat.c: Include sys/param.h where possible.
5263 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
5266 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5267 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5268 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5270 * stabsread.c (rs6000_builtin_type): Likewise.
5271 (read_sun_floating_type): Likewise.
5273 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5275 * stabsread.c (read_member_functions): Remove skip code for duplicate
5276 constructor/destructor methods. Use standard parsing for these
5277 methods and just do not chain them to the list of methods after
5280 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
5282 * coffread.c: Remove redundant static declarations. Replace
5283 occurrences of `PTR' with `void *'.
5284 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5285 * top.h (quit_cover): Likewise.
5286 * defs.h (catch_errors): Likewise.
5288 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5290 * defs.h (XMALLOC): Define.
5291 * gdb-events.sh (XMALLOC): Delete macro.
5292 * gdb-events.c, gdb-events.h: Regenerate.
5293 * gdbarch.sh (XMALLOC): Delete macro.
5294 * gdbarch.c: Regenerate.
5295 * serial.c (XMALLOC): Delete macro.
5296 * ui-file.c (XMALLOC): Ditto.
5297 * ser-unix.h (XMALLOC): Ditto.
5298 * sh-tdep.c (XMALLOC): Ditto.
5299 * ui-out.c (XMALLOC): Ditto.
5300 * utils.c (XMALLOC): Ditto.
5301 * i386-tdep.c (XMALLOC): Ditto.
5302 * gdb-events.c (XMALLOC): Ditto.
5303 * d10v-tdep.c (XMALLOC): Ditto.
5304 * cli-out.c (XMALLOC): Ditto.
5306 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5307 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5308 * ui-file.c, ui-out.c: Ditto.
5310 2002-03-18 Andrew Cagney <ac131313@redhat.com>
5312 * command.h (struct cmd_list_element): Add field context.
5313 (set_cmd_context, get_cmd_context): Declare.
5314 * cli/cli-decode.h: Ditto.
5315 * cli/cli-decode.c (get_cmd_context): New function.
5316 (set_cmd_context): New function.
5317 (add_cmd): Initialize context.
5318 Part of fixing PR gdb/145 and PR gdb/146.
5320 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5322 * cli/cli-decode.c (cmd_type): New function.
5323 * command.h (cmd_type): Declare.
5324 * infrun.c (set_schedlock_func): Call function cmd_type.
5325 * kod.c (kod_set_os): Call cmd_type.
5326 * cris-tdep.c (cris_version_update): Use function cmd_type.
5327 (cris_mode_update, cris_abi_update): Ditto.
5329 * command.h: (execute_cmd_post_hook): Declare.
5330 (execute_cmd_pre_hook): Declare.
5331 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5332 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5333 functions. Execute pre/post hook while ensuring that afterwords
5335 * top.c (execute_command): Use execute_cmd_post_hook, and
5336 execute_cmd_pre_hook to execute pre/post commands.
5337 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5339 (hook_stop_stub): Call execute_cmd_pre_hook.
5341 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5343 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5344 set'' and this leads to a core dump. Move xstrdup of
5345 operating_system to after check that it is not NULL.
5347 2002-03-17 Andrew Cagney <ac131313@redhat.com>
5349 * kod.c (kod_set_os): Remove unnecessary check that
5350 ``command->type'' is set_cmd.
5352 * valprint.c (set_input_radix): Use input_radix.
5353 (set_output_radix): Use output_radix.
5354 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5357 2002-03-16 Andrew Cagney <ac131313@redhat.com>
5359 * value.h (struct value): Delete field ``substring_addr''. Change
5360 aligner fields to force_doublest_align, force_longest_align,
5361 force_core_addr_align and force_pointer_aligh.
5363 * value.h (struct value): Fix typo in above change.
5365 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5367 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5368 to fix internal_error from ``maintenance print architecture''.
5370 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5372 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5373 for gcc versions after gcc-2.8.1.
5375 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5377 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5378 for method resolution. Restore adjustment of ``this'' pointer after
5379 calling value_struct_elt, which was accidentally removed during the
5382 2002-03-15 Andrew Cagney <ac131313@redhat.com>
5384 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5386 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5388 * value.h (value_of_register): Update.
5390 2002-03-14 Richard Henderson <rth@redhat.com>
5392 * configure.in: Detect declaration for canonicalize_file_name.
5393 * utils.c (canonicalize_file_name): Declare, if needed.
5394 (gdb_realpath): Prefer realpath if available and usable.
5395 * config.in, configure: Rebuild.
5397 2002-03-14 Richard Henderson <rth@redhat.com>
5399 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5400 a constant array bound.
5402 * MAINTAINERS: Add myself to write-after-approval.
5404 2002-03-14 Michael Snyder <msnyder@redhat.com>
5406 * symfile.c (syms_from_objfile): Return immediately if no syms.
5407 (symbol_file_add): Return immediately if no syms.
5408 (find_sym_fns): Return immediately if no syms.
5410 2002-03-13 Michal Ludvig <mludvig@suse.cz>
5412 * gdbserver/remote-util.c (remote_open): Print remote-side's
5413 IP address when remote debugging over the network.
5415 2002-03-12 David O'Brien <obrien@FreeBSD.org>
5417 * config/sparc/fbsd.mh: Fix copyright.
5418 * config/sparc/fbsd.mt: Likewise.
5420 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
5422 * MAINTAINERS: Fix typo in name of gdb warnings option.
5423 (x86-64): Fix formating so that this can be parsed by awk.
5425 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5427 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5428 * defs.h: Include "gdb/signals.h".
5429 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5431 2002-03-10 Michal Ludvig <mludvig@suse.cz>
5433 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5434 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5437 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
5438 Don Howard <dhoward@redhat.com>
5440 * mips-tdep.c (ST0_FR): Define.
5441 (mips2_fp_compat): New function, temporarily disabled.
5442 (mips_read_fp_register_single): New function.
5443 (mips_read_fp_register_double): New function.
5444 (mips_print_register): Use them.
5445 (do_fp_register_row): Likewise.
5447 2002-03-09 Andrew Cagney <ac131313@redhat.com>
5449 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5452 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5454 * stabsread.c (read_member_functions): Fix is_stub test for
5455 static member functions, improve comment.
5457 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5459 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5460 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5461 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5462 commands that set boolean values.
5463 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5464 (arm_rdi_resume): Always initialize PC.
5465 (arm_rdi_open): Don't use rslt as a boolean.
5466 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5467 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5468 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5469 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5471 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
5473 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5474 * configure: Rebuilt.
5476 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5478 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5479 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5481 2002-03-06 Andrew Cagney <ac131313@redhat.com>
5483 * cli/cli-decode.c (set_cmd_completer): New function.
5484 * command.h (set_cmd_completer): Declare.
5485 * cli/cli-decode.h (set_cmd_completer): Ditto.
5487 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5488 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5489 * win32-nat.c (_initialize_inftarg): Ditto.
5490 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5491 * proc-api.c (_initialize_proc_api): Ditto.
5492 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5493 * source.c (_initialize_source): Ditto.
5494 * exec.c (_initialize_exec): Ditto.
5495 * solib.c (_initialize_solib): Ditto.
5496 * top.c (init_main): Ditto.
5497 * tracepoint.c (_initialize_tracepoint): Ditto.
5498 * symfile.c (_initialize_symfile): Ditto.
5499 * printcmd.c (_initialize_printcmd): Ditto.
5500 * infcmd.c (_initialize_infcmd): Ditto.
5501 * corefile.c (_initialize_core): Ditto.
5503 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5505 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5507 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5509 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5511 2002-03-05 Andrew Cagney <ac131313@redhat.com>
5513 * NEWS: Update headings, 5.2 has branched.
5515 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
5517 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5518 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5519 (register_addr, REGISTER_RAW_SIZE): Likewise.
5520 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5521 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5523 2002-03-03 Michal Ludvig <mludvig@suse.cz>
5525 * MAINTAINERS (x86-64): Add myself.
5526 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5527 changed value_ptr -> struct value *
5529 2002-03-01 David O'Brien <obrien@FreeBSD.org>
5531 * configure.host (sparc64-*-freebsd): Add.
5532 * configure.tgt: Likewise.
5533 * config/sparc/fbsd.mh: New file.
5534 * config/sparc/fbsd.mt: Likewise.
5535 * config/sparc/nm-fbsd.h: Likewise.
5536 * config/sparc/tm-fbsd.h: Likewise.
5538 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
5540 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5541 regformats/reg-s390x.dat.
5543 2002-03-01 Andrew Cagney <ac131313@redhat.com>
5545 * utils.c: Add FIXME explaining true/false problem.
5547 2002-02-28 Andrew Cagney <ac131313@redhat.com>
5549 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5551 2002-02-28 Michael Chastain <mec@shout.net>
5553 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5555 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
5557 * gdbserver/linux-s390-low.c: New file.
5558 * regformats/reg-s390.dat: New file.
5559 * regformats/reg-s390x.dat: New file.
5560 * gdbserver/configure.srv: Add S/390.
5561 * gdbserver/Makefile.in: Add S/390.
5562 * configure.tgt: Enable gdbserver for S/390.
5564 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5566 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5567 first line of the doc string for "info dos", except at the end of
5568 the sentence, since the short help stops at the first period.
5570 2002-02-28 Jason Merrill <jason@redhat.com>
5572 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5574 2002-02-27 Fred Fish <fnf@redhat.com>
5576 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5577 comment (dumy -> dummy).
5579 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5581 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5583 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
5585 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5587 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5589 * gdbserver/acconfig.h: New file.
5590 * gdbserver/i387-fp.c: New file.
5591 * gdbserver/i387-fp.h: New file.
5592 * gdbserver/linux-x86-64.c: New file.
5593 * regformats/reg-x86-64.dat: New file.
5594 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5595 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5596 * gdbserver/configure.in: Add support for regsets.
5597 * gdbserver/config.in: Regenerate.
5598 * gdbserver/configure: Regenerate.
5599 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5600 * gdbserver/linux-low.h: New file.
5601 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5603 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5604 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5605 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5606 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5607 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5608 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5609 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5610 "i387-fp.h". Add PTRACE_GETREGS and friends.
5611 * gdbserver/regcache.c (supply_register): New function.
5612 (supply_register_by_name): New function.
5613 (collect_register): New function.
5614 (collect_register_by_name): New function.
5616 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5618 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5619 (config.status): Add configure.srv dependency.
5620 (server_h): Add config.h dependency.
5622 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
5624 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5625 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5626 * gdbserver/configure.srv: Change i386-*-linux* to use
5629 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5631 * x86-64-tdep.c: Re-indent. Update copyright date.
5633 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5635 From Michal Ludvig <mludvig@suse.cz>:
5636 * x86-64-tdep.c (value.h): Delete.
5637 (gdb_assert.h): Include.
5638 (x86_64_register_convert_to_virtual,
5639 x86_64_register_convert_to_raw ): Add check which lets only
5640 floating-point values to be converted.
5641 (value_push): Delete.
5642 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5643 (i386_gdbarch_init): Number of register_bytes fixed.
5645 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5647 * MAINTAINERS: Add x86-64 target.
5649 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5651 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5652 * osfsolib.c (solib_map_sections): Ditto.
5653 * irix5-nat.c (solib_map_sections): Ditto.
5654 * corelow.c (gdb_check_format): Ditto.
5655 * symfile.c (symfile_bfd_open): Ditto.
5656 * solib.c (solib_map_sections): Ditto.
5659 2002-02-26 Andrew Cagney <ac131313@redhat.com>
5661 * remote.c (_initialize_remote): By default, disable ``e'' and
5662 ``E'' step out-of-range packets.
5664 2002-02-26 Andreas Schwab <schwab@suse.de>
5666 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5667 m68k_linux_frame_saved_pc.
5668 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5670 (SIGCONTEXT_PC_OFFSET): Remove.
5671 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5672 m68k_linux_sigtramp_saved_pc): New functions.
5673 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5674 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5675 (UCONTEXT_PC_OFFSET): Define.
5676 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5677 non-RT and RT signal trampolines.
5679 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
5681 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5682 (TARGET_NBPG, STACK_END_ADDR): Delete
5683 (VARIABLES_INSIDE_BLOCK): Delete.
5685 2002-02-25 Andrew Cagney <ac131313@redhat.com>
5687 * utils.c (perror_with_name): Make string parameter constant.
5688 (print_sys_errmsg): Ditto.
5690 * defs.h (perror_with_name): Update.
5691 (print_sys_errmsg): Update.
5694 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
5696 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5697 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5699 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5701 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5702 if it already matches the current architecture from the exec file.
5703 Include arch-utils.h for gdbarch_info_init prototype.
5704 * Makefile.in (rs6000-nat.o): Update dependencies.
5706 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5708 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5709 list of exported variables.
5711 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
5713 * gdbserver/configure.srv: New file.
5714 * gdbserver/configure.in: Use configure.srv instead
5715 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5717 * gdbserver/configure: Regenerated.
5718 * gdbserver/terminal.h: New file.
5719 * gdbserver/Makefile.in: Update for configure changes. Remove
5720 more unneeded include paths.
5722 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5724 From wiz at danbala:
5725 * config/sparc/tm-sp64.h: Fix grammar and typos.
5728 2002-02-24 Andrew Cagney <ac131313@redhat.com>
5730 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
5731 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5732 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5733 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
5734 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5735 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5736 * s390-tdep.c: Ditto.
5737 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5738 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5739 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5740 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5741 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5742 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5743 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5744 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5745 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5746 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
5749 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5751 * lin-thread.c: Delete file.
5752 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5753 to gdb_proc_service.h.
5754 * configure: Re-generate.
5756 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5757 * serial.c (serial_open): Delete check for "ocd".
5760 * Makefile.in (linux-thread.o): Delete target.
5761 * linux-thread.c: Delete file.
5763 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5764 renamed SH files to be consistent.
5766 * symtab.c (sort_search_symbols): Use xfree.
5768 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5770 * arm-linux-tdep.c (arm_linux_init_abi): Register
5771 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5772 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5773 definition with undef, since we don't want the sysvr4 definition.
5774 (SKIP_TRAMPOLINE_CODE): Likewise.
5776 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5778 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5780 * configure.in: (AC_CHECK_FUNCS) Added test for
5781 canonicalize_file_name Regenerated.
5782 * config.in, configure: Regenerated.
5783 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5784 defined use canonicalize_file_name.
5786 2002-02-23 Michael Chastain <mec@shout.net>
5788 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5790 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5792 * README: Remove references to cygnus.com.
5793 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5794 dot com'' form. Remove references to cygnus.com and sourceware.
5796 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5798 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5799 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5800 1003.1-2001 no longer allows "head -1".
5801 * gdb/Makefile.in (version.c): Likewise.
5802 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5803 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5804 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5806 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5808 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5809 * command.h (cmd_cfunc_eq): Declare.
5810 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5812 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5813 ``struct cmd_list_element *''.
5814 * cli/cli-cmds.c (is_complete_command): Update. Use
5816 * top.c (execute_command): Pass the command to
5817 is_complete_command.
5818 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5820 2002-02-23 Andrew Cagney <ac131313@redhat.com>
5822 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5823 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5824 architecture defines.
5825 * s390-tdep.c (s390_gdbarch_init): Likewise.
5827 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5829 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5830 (arm_linux_push_arguments): Likewise.
5831 (arm_linux_init_abi): Register them. Also register linux-specific
5833 (find_minsym_and_objfile): Use strcmp, not STREQ.
5834 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5835 (arm_linux_call_dummy_words): Delete declaration.
5836 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5837 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5839 (LOWEST_PC): Delete.
5841 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5843 * maint.c (print_section_info): Do not prepend `0x' to filepos
5844 output, it will be handled by local_hex_string_custom.
5846 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
5848 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5849 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5850 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5852 2002-02-22 Jim Blandy <jimb@redhat.com>
5854 Indicate that the bcache functions don't change the strings
5856 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5857 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5859 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
5861 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5863 2002-02-21 Christopher Faylor <cgf@redhat.com>
5865 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5866 find the complete path to a loaded DLL.
5868 2002-02-21 Fred Fish <fnf@redhat.com>
5870 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5871 that marks the end of the range of a function, enter a line number
5872 entry that has a line number of zero and a PC offset that matches
5873 the end of the function. This starts a range of PC's for which no
5874 line number information is known.
5875 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5876 PC's for which no line number info is found (line number is zero)
5877 then we didn't find any valid line information.
5878 * symtab.h: Document use of zero line number entry.
5880 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
5882 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5883 (have_ptrace_getvrregs): Define for run time checks.
5884 (gdb_vrregset_t): New type for Altivec register handling.
5885 (fetch_register, store_register): Fetch/store altivec register
5887 (fetch_altivec_register, store_altivec_register): New functions.
5888 (supply_vrregset, fill_vrregset): New functions.
5889 (fetch_altivec_registers, store_altivec_registers): New functions.
5890 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5893 2002-02-21 Jiri Smid <smid@suse.cz>
5895 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5897 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5899 * Makefile.in (armnbsd-nat.o): Update dependencies.
5900 * armnbsd-nat.c (supply_gregset): New function. Common code to
5901 supply the integer register set.
5902 (supply_fparegset): New function. Similar for FPA registers.
5903 (fetch_regs, fetch_fp_regs): Use them.
5904 (fetch_core_registers): Likewise.
5905 (fetch_elfcore_registers): New function.
5906 (arm_netbsd_elfcore_fns): New core-file type specification.
5907 (_initialize_arm_netbsd_nat): Register it.
5909 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
5911 * armnbsd-nat.c: Include gdbcore.h.
5912 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5913 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5914 'void' to declaration, to shut up ARI.
5915 (fetch_core_registers): Make static. Rewrite using supply_register.
5916 (arm_netbsd_core_fns): New core-file type specification.
5917 (_initialize_arm_netbsd_nat): New function.
5919 2002-02-21 Christopher Faylor <cgf@redhat.com>
5921 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5924 2002-02-20 Christopher Faylor <cgf@redhat.com>
5926 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5929 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5931 * jv-exp.y (parse_number): Change type of implicit longs
5932 to builtin_type_uint64.
5934 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5936 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5937 to be an integer instead of a `union wait'.
5939 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5941 * mips-linux-nat.c: Call the operating system GNU/Linux.
5942 * mips-linux-tdep.c: Likewise.
5943 * mips-tdep.c: Likewise.
5945 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5948 * jv-exp.y (parse_number): Handle 64-bit integers.
5950 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5952 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5953 AC_STDC_HEADERS to AC_HEADER_STDC.
5954 * gdbserver/configure: Regenerated.
5956 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5958 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5960 * sparc-tdep.c (get_longjmp_target): Likewise.
5962 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
5964 * News: Add news about ARM and Multi-arch. Mention the new target
5967 2002-02-19 Jim Blandy <jimb@redhat.com>
5969 * stabsread.c (error_type_complaint): Improve error message.
5971 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
5973 * gdbserver/README: Update documentation.
5974 * gdbserver/configure.in: Update configury to match documentation.
5975 * gdbserver/Makefile.in: Likewise.
5976 * gdbserver/configure: Regenerated.
5977 * gdbserver/aclocal.m4: New file, generated by aclocal.
5978 * gdbserver/config.in: New file, generated by autoheader.
5980 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5982 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5985 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5987 * arm-tdep.h (enum arm_float_model): New enum.
5988 (struct gdbarch_tdep): Add fp_model.
5989 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5990 up floating-point conversions until we know the floating-point model
5991 in use by the inferior. Don't complain about being unable to
5992 determine the ABI of the inferior when we don't have one.
5993 (arm_extract_return_value): Support different floating-point models.
5994 (arm_store_return_value): Likewise.
5995 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5997 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5999 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6001 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
6002 of ``current_gdbarch''.
6004 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6006 * armnbsd-nat.c : ANSIfy all function declarations.
6007 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
6008 (fetch_inferior_registers): Re-implement in terms of above.
6009 (store_register, store_regs, store_fp_register, store_fp_regs): New.
6010 (store_inferior_registers): Re-implement in terms of above.
6012 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6014 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
6016 * arm-linux-tdep.c: Likewise.
6017 * config/arm/tm-linux.h: Likewise.
6019 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6021 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
6022 * config/arm/nbsd.mt (TM_FILE): Delete.
6023 * config/arm/tm-nbsd.h: Delete.
6025 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6027 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
6028 Initialize CALL_DUMMY_LENGTH.
6030 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
6032 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
6034 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
6035 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
6036 defines one thing and that is incorrect for this port.
6037 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
6039 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6041 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
6043 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6045 * win32-nat.c (display_selector): New function. Displays information
6046 about the information returned by GetThreadSelectorEntry API function.
6047 (display_selectors): New function. Displays the infomation of
6048 the selector given as argument, or of CS, DS ans FS selectors
6049 if no argument is given.
6050 ( _initialize_inftarg): Add "w32" as info prefix command.
6051 Add "info w32 selector" as command calling display_selectors.
6053 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
6055 * i386-tdep.c (get_longjmp_target): Fix compilation failure
6056 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
6059 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6061 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
6063 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6065 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
6066 (arm_fix_call_dummy): Call it.
6067 (arm_call_dummy_breakpoint_offset): Delete.
6068 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
6069 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6071 2002-02-18 Andrew Cagney <ac131313@redhat.com>
6073 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
6074 Default to func_frame_chain_valid.
6075 * gdbarch.h, gdbarch.c: Re-generate.
6076 * frame.h (FRAME_CHAIN_VALID): Delete definition.
6078 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
6080 * ppc-linux-nat.c: Update copyright.
6081 (fetch_register, store_register): Add tid parameter, don't compute
6083 (fetch_ppc_registers, store_ppc_registers): Add tid
6084 parameter. Pass it along to callees.
6085 (fetch_inferior_registers, store_inferior_registers): Compute tid
6086 here, and pass it to calleed functions.
6087 (fill_gregset, supply_fpregset): Clean up formatting.
6089 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6091 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6092 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6094 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
6096 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6097 * gdbarch.c gdbarch.h: Regenerate.
6098 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6100 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6101 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6102 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6104 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6105 * arm-tdep.c (arm_get_longjmp_target): New function.
6106 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6107 this to a positive value register arm_get_longjmp_target as the
6109 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6110 (arm_linux_init_abi): Set up longjmp description in tdep.
6111 * armnbsd-nat.c (get_longjmp_target): Delete.
6112 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6113 description in tdep.
6114 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6115 (get_longjmp_target): Delete declaration.
6116 (GET_LONGJMP_TARGET): Delete.
6117 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6118 (GET_LONGJMP_TARGET): Delete.
6120 2002-02-17 Kevin Buettner <kevinb@redhat.com>
6122 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6123 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6124 of ``current_gdbarch''.
6126 2002-02-17 Tom Tromey <tromey@redhat.com>
6128 * cli/cli-cmds.c (compare_strings): New function.
6129 (complete_command): Only print each unique item once.
6130 * completer.h (complete_line): Declare.
6131 * completer.c (complete_line): New function.
6132 (line_completion_function): Use it.
6134 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6136 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6137 * gdbarch.h, gdbarch.c: Re-generate.
6139 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6141 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6143 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
6145 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6146 * valops.c (value_arg_coerce): Don't take the address of a reference
6147 to convert an argument to a reference.
6149 2002-02-15 Christopher Faylor <cgf@redhat.com>
6151 * win32-nat.c (get_image_name): New function.
6152 (handle_load_dll): Use get_image_name function.
6153 (get_child_debug_event): Avoid registering debug events until possibly
6154 execed process is started.
6155 (child_create_inferior): Allow invocation via shell so that command
6156 line redirection, etc. works ok.
6157 (_initialize_inftarg): Add new command: "set shell" to control whether
6158 a shell is used to start a process.
6160 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6162 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6163 instead of find_register_by_number.
6164 (cannot_store_register): Likewise.
6166 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6168 * dwarf2read.c: Replace fprintf (stderr, ...) by
6169 fprintf_unfiltered (gdb_stderr, ...).
6171 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
6173 * gdbserver/gdbserver.1: Document --attach.
6175 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6177 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6179 * arm-tdep.c (arm_default_arm_le_breakpoint)
6180 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6181 (arm_default_thumb_be_breakpoint): New. Initialize them from
6182 traditional breakpoint defines.
6183 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6184 (arm_gdbarch_init): Initialize new breakpoint variables.
6185 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6186 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6187 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6188 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6190 (arm_netbsd_init_abi_common): ... here; new function.
6191 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6192 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6193 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6194 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6196 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
6198 * arm-tdep.h (enum arm_abi): New enum.
6199 (struct gdbarch_tdep): New structure.
6200 (LOWEST_PC): Provide a default.
6201 (arm_gdbarch_register_os_abi): Declare new function.
6202 * arm-tdep.c (arm_abi_names): New array.
6203 (process_note_abi_tag_sections): New function.
6204 (get_elfosabi): New function.
6205 (arm_gdbarch_register_os_abi): New function.
6206 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6207 support for that ABI has been built in, then call the appropriate
6208 configuration routine. Use gdbarch_num_regs() to get the number
6210 (arm_dump_tdep): New function.
6211 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6212 place-holder functions.
6213 (_initialize_arm_tdep): Register them.
6214 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6216 * armnbsd-tdep.c: New file.
6217 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6218 * config/arm/nbsd.mt (TDEPFILES): Add it.
6219 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6221 * armnbsd-nat.c: Include regcache.h.
6222 * Makefile.in (armnbsd-nat.o): Update dependency list.
6224 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6226 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6228 * gdbserver/Makefile.in: Fix typos in target rules.
6230 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6232 Fix part of PR gdb/267.
6233 * linespec.c (find_methods): Handle constructors specially for now.
6235 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
6237 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6239 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6240 standard_coerce_float_to_double().
6242 2002-02-14 Christopher Faylor <cgf@redhat.com>
6244 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6247 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
6249 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6250 find_variant_by_name, because it confuses the multiarch
6251 framework. Return NULL if there isn't an architecture with the
6252 user supplied name, instead of forcing a different one without
6253 recording the change with the multiarch machinery.
6254 (find_variant_by_name): Delete.
6256 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6258 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6259 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6261 2002-02-13 Martin M. Hunt <hunt@redhat.com>
6263 * stack.c (print_frame_info_base): When calling
6264 print_frame_info_listing_hook, set current_source_symtab.
6266 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6268 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6269 and remove unused $(INCLUDE_DIR).
6270 Add regcache.c to OBS.
6271 Add generated register protocol files to clean target.
6272 Update dependencies for new objects, obsolete old target code.
6274 * gdbserver/linux-low.c: Remove all platform-specific code to
6275 new files. Remove various dead code. Update to use regcache
6277 * gdbserver/remote-utils.c (fromhex): Add return statement
6279 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6281 (input_interrupt): Add integer parameter to match prototype
6282 of a signal handler.
6283 (outreg): Use register_data ().
6284 (prepare_resume_reply): Use gdbserver_expedite_regs.
6285 * gdbserver/server.c (main): Dynamically allocate own_buf because
6286 PBUFSIZ is no longer constant. Use registers_to_string () and
6287 registers_from_string ().
6288 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6289 for error (), fatal (), and warning (). Update definition of
6290 PBUFSIZ to use regcache functionality. Add include guard.
6291 * gdbserver/utils.c (fatal): Add missing ``const''.
6292 (warning): New function.
6294 * regformats/regdat.sh: Include "regcache.h" in generated files.
6295 Provide init_registers () function.
6296 * regformats/regdef.h: Add prototype for set_register_cache ().
6299 * gdbserver/linux-arm-low.c: New file.
6300 * gdbserver/linux-i386-low.c: New file.
6301 * gdbserver/linux-ia64-low.c: New file.
6302 * gdbserver/linux-m68k-low.c: New file.
6303 * gdbserver/linux-mips-low.c: New file.
6304 * gdbserver/linux-ppc-low.c: New file.
6305 * gdbserver/linux-sh-low.c: New file.
6307 * gdbserver/regcache.c: New file.
6308 * gdbserver/regcache.h: New file.
6310 * gdbserver/low-linux.c: Removed obsolete file.
6312 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6314 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6315 * config/i386/linux.mt: Likewise.
6316 * config/ia64/linux.mt: Likewise.
6317 * config/m68k/linux.mh: Likewise.
6318 * config/powerpc/linux.mh: Likewise.
6319 * config/mips/linux.mt: Likewise.
6321 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6323 * config/i386/i386lynx.mh: Mark gdbserver variables
6324 as (currently) obsolete for this target.
6325 * config/i386/nbsd.mt: Likewise.
6326 * config/i386/nbsdelf.mt: Likewise.
6327 * config/m32r/m32r.mt: Likewise.
6328 * config/m68k/m68klynx.mh: Likewise.
6329 * config/m68k/nbsd.mt: Likewise.
6330 * config/m68k/sun3os4.mh: Likewise.
6331 * config/mips/vr5000.mt: Likewise.
6332 * config/ns32k/nbsd.mt: Likewise.
6333 * config/pa/hppabsd.mh: Likewise.
6334 * config/pa/hppaosf.mh: Likewise.
6335 * config/powerpc/nbsd.mt: Likewise.
6336 * config/rs6000/rs6000lynx.mh: Likewise.
6337 * config/s390/s390.mt: Likewise.
6338 * config/s390/s390x.mt: Likewise.
6339 * config/sparc/sparclynx.mh: Likewise.
6340 * config/sparc/sun4os4.mh: Likewise.
6341 * config/i386/x86-64linux.mt: Likewise.
6342 * config/sparc/linux.mh: Likewise.
6344 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
6346 * configure.tgt: Configure gdbserver only for known working
6347 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6348 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6349 SUBDIRS if it is configured. Update comment for ${nativefile}.
6350 * configure: Regenerated.
6352 2002-02-13 Michael Snyder <msnyder@redhat.com>
6354 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6356 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6357 (default_gcore_mach): Just return 0, work around a problem in bfd.
6358 (default_gcore_target): OK to return NULL if exec_bfd is null.
6359 (make_mem_sec): Use a cast, avoid a warning.
6361 * procfs.c (find_memory_regions_callback): Use a cast instead of
6362 calling host_pointer_to_address (which complains if
6363 sizeof (host pointer) != sizeof (target pointer)).
6364 (procfs_make_note_section): Avoid overflow in psargs string.
6366 * procfs.c (procfs_make_note_section): Make the default
6367 implementation return an error.
6369 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
6371 * procfs.c (procfs_make_note_section): Provide a default definition
6372 (for alpha-dec-osf4.0f). Fix typos.
6374 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
6376 * linux-proc.c: Add include of regcache.h.
6377 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6379 2002-02-13 Andrew Cagney <ac131313@redhat.com>
6381 From 2002-01-18 Greg McGary <greg@mcgary.org>:
6382 * memattr.c (create_mem_region): Disallow useless empty region.
6383 Regions are half-open intervals, so allow [A..B) [B..C) as
6386 2002-02-13 Michael Chastain <mec@shout.net>
6388 * defs.h: Kill CONST_PTR.
6389 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6390 * c-lang.c (c_builtin_types): Likewise.
6391 * ch-lang.c (ch_builtin_types): Likewise.
6392 * f-lang.c (f_builtin_types): Likewise.
6393 * language.c (unknown_builtin_types): Likewise.
6394 * m2-lang.c (m2_builtin_types): Likewise.
6395 * p-lang.c (pascal_builtin_types): Likewise.
6396 * scm-lang.c (c_builtin_types): Likewise.
6398 2002-02-13 Keith Seitz <keiths@redhat.com>
6400 * arm-tdep.h (arm_get_next_pc): Add declaration.
6402 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
6404 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6405 with other related struct-returning functions.
6406 (arm_extract_struct_value_address): New function.
6407 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6408 initialize float_format, double_format and long_double_format as
6409 appropriate to the endianness of the target.
6410 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6411 (arm_use_struct_convention): Delete declaration.
6412 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6414 2002-02-13 Keith Seitz <keiths@redhat.com>
6416 * defs.h (core_addr_to_string_nz): New function.
6418 2002-02-13 Mark Kettenis <kettenis@gnu.org>
6420 Apply missing bits of 2002-01-15 patch.
6421 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6422 (fill_fpregset): Use i387_fill_fsave.
6424 2002-02-12 Keith Seitz <keiths@redhat.com>
6426 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6427 (core_addr_to_string_nz): New function.
6429 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6431 * arm-linux-nat.c: Really include arm-tdep.h.
6432 * config/arm/tm-linux.h (struct type, struct value): Declare.
6434 2002-02-11 Michael Snyder <msnyder@redhat.com>
6436 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6437 (gcore section): Ifdef for Solaris and Unixware only.
6438 (procfs_do_thread_registers): Unixware needs one lwpstatus
6439 per thread (not one prstatus or pstatus).
6440 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6441 not over all gdb threads. For unixware, call elfcore_write_pstatus
6442 once before iterating over threads.
6444 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6446 * arm-tdep.h: New file.
6447 * arm-tdep.c: Include arm-tdep.h.
6448 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6449 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6450 (arm_print_float_info, arm_register_type, convert_to_extended)
6451 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6452 (arm_extract_return_value, arm_register_name): Make static.
6453 (arm_software_single_step): Similarly. Fix types in declaration.
6454 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6455 (arm_store_return_value, arm_store_struct_return): New functions.
6456 (arm_gdbarch_init): Register the above functions. Also register
6457 call_dummy_start_offset, sizeof_call_dummy_words,
6458 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6459 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6460 max_register_virtual_size, register_size. Set up
6461 prologue_cache.saved_regs here, rather than ...
6462 (_initialize_arm_tdep): ... here.
6463 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6465 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6466 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6467 (arm_print_float_info, arm_register_type, convert_to_extended)
6468 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6469 (arm_extract_return_value, arm_register_name): Delete declarations.
6470 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6471 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6472 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6473 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6474 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6475 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6476 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6477 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6478 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6479 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6480 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6481 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6483 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6484 * remote-rdi.c remote-rdp.c: Likewise.
6485 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6486 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6487 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6490 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6491 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6492 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6493 from non-ARM_ prefixed definitions.
6494 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6496 * remote-rdi.c remote-rdp.c: Likewise.
6497 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6499 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
6501 * arm-tdep.c (arm_frameless_function_invocation)
6502 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6503 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6504 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6505 (arm_pop_frame, arm_get_next_pc): Make static.
6506 (arm_gdbarch_init): Register above in gdbarch structure.
6507 (arm_read_fp): Renamed from arm_target_read_fp.
6508 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6509 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6510 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6511 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6512 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6513 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6514 (arm_pc_is_thumb_dummy): Delete declarations.
6515 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6516 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6517 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6518 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6520 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
6522 * symtab.c (compare_search_syms): New function.
6523 (sort_search_symbols): New function.
6524 (search_symbols): Sort symbols after searching rather than
6527 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6529 * NEWS: Linux -> GNU/Linux.
6531 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6533 * gdbarch.sh: For for level one methods, disallow a definition
6534 when partially multi-arched. Add comments explaining rationale.
6535 * gdbarch.h: Re-generate.
6537 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6539 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6542 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6544 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6546 * gdbarch.c: Re-generate.
6548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6550 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6551 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6554 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6556 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6558 (PUSH_ARGUMENTS): Switch to using predefault.
6559 * gdbarch.c: Regenerate.
6561 2002-02-10 Andrew Cagney <ac131313@redhat.com>
6563 * valops.c (PUSH_ARGUMENTS): Delete definition.
6564 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6565 partial. Default to default_push_arguments.
6566 * gdbarch.h, gdbarch.c: Regenerate.
6568 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6570 * defs.h (throw_exception): Rename return_to_top_level. Update
6572 * utils.c (error_stream, internal_verror, quit): Ditto.
6573 * top.c (throw_exception, catcher): Ditto.
6574 * sparclet-rom.c (sparclet_load): Ditto.
6575 * remote.c (interrupt_query, minitelnet): Ditto.
6576 * remote-sds.c (interrupt_query): Ditto.
6577 * remote-mips.c (mips_error, mips_kill): Ditto.
6578 * ocd.c (interrupt_query): Ditto.
6579 * monitor.c (monitor_interrupt_query): Ditto.
6580 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6581 * target.h: Update comment.
6583 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6585 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6587 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6588 default_double_format.
6589 * gdbarch.h, gdbarch.c: Re-generate.
6590 * findvar.c (floatformat_unknown): Delete variable definition.
6591 * doublest.h (floatformat_unknown): Delete variable declaration.
6593 2002-02-09 Jim Blandy <jimb@redhat.com>
6595 * stabsread.c (read_type): Add code to parse Sun's syntax for
6596 prototyped function types.
6598 2002-02-09 Andrew Cagney <ac131313@redhat.com>
6600 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6601 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6603 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6605 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6606 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6607 now _initialize_xcoffsolib gets called again and overrides the
6608 commands from solib.c in a native configuration.
6610 2002-02-09 Mark Kettenis <kettenis@gnu.org>
6612 * doublest.c (store_typed_floating): Don't try to return a value.
6615 2002-02-08 Jim Blandy <jimb@redhat.com>
6617 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6618 is prototyped and has no arguments, print its argument list as
6621 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6623 * MAINTAINERS (write-after-approval): Add myself.
6624 (paper-trail): I've escaped!
6626 2002-02-08 Christopher Faylor <cgf@redhat.com>
6628 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6630 (_initialize_check_for_gdb_ini): Ditto.
6632 2002-02-08 Martin M. Hunt <hunt@redhat.com>
6634 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6635 xaprintf -> xasprintf.
6637 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6639 * win32-nat.c: Remove use of printf and sprintf functions.
6641 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
6643 * arm-tdep.c (arm_frame_chain_valid): Make static.
6644 (arm_push_arguments): Likewise.
6645 (arm_gdbarch_init): New function.
6646 (_initialize_arm_tdep): Call it.
6647 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6648 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6649 (FRAME_CHAIN_VALID): Delete.
6650 (arm_frame_chain_valid): Delete declaration.
6651 (PUSH_ARGUMENTS): Delete.
6652 (arm_push_arguments): Delete declaration.
6653 (CALL_DUMMY_P): Delete.
6655 2002-02-08 Andrew Cagney <ac131313@redhat.com>
6656 Corinna Vinschen <vinschen@redhat.com>
6658 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6659 on builtin float types.
6661 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
6663 * utils.c: Include <curses.h> before "bfd.h".
6664 * tui/tui-hooks.c: Likewise.
6665 * tui/tui.c: Likewise.
6666 * tui/tuiCommand.c: Likewise.
6667 * tui/tuiData.c: Likewise.
6668 * tui/tuiDataWin.c: Likewise.
6669 * tui/tuiDisassem.c: Likewise.
6670 * tui/tuiGeneralWin.c: Likewise.
6671 * tui/tuiIO.c: Likewise.
6672 * tui/tuiLayout.c: Likewise.
6673 * tui/tuiRegs.c: Likewise.
6674 * tui/tuiSource.c: Likewise.
6675 * tui/tuiSourceWin.c: Likewise.
6676 * tui/tuiStack.c: Likewise.
6677 * tui/tuiWin.c: Likewise.
6679 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
6681 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6682 to include space for pseudoregs as well. Update loops accordingly.
6683 (sh_fp_frame_init_saved_regs): Ditto.
6684 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6686 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6688 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6689 Add Richard Earnshaw to Arm maintainers.
6691 2002-02-07 Andrew Cagney <ac131313@redhat.com>
6693 * defs.h (warning_begin): Delete declaration.
6695 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6698 2002-02-07 Michael Snyder <msnyder@redhat.com>
6700 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6701 Logic bug, remove misplaced else.
6703 2002-02-07 Klee Dienes <klee@apple.com>
6705 * fork-inferior.c (fork_inferior): Add '!' to the list of
6706 characters that need to be quoted when building a string for the
6707 shell. Quote '!' specifically with a backslash, since CSH chokes
6708 when trying to evaluate "str!str".
6710 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6712 * rdi-share/host.h: Only provide a typedef for bool if it is not
6715 2002-02-04 Michael Snyder <msnyder@redhat.com>
6717 * breakpoint.h (enum bptype): Add new overlay event bp type.
6718 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
6720 * breakpoint.c (create_internal_breakpoint): New function.
6721 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6722 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6723 (create_thread_event_breakpoint): Ditto.
6724 (create_solib_event_breakpoint): Ditto.
6725 (create_overlay_event_breakpoint): New function.
6726 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6727 (update_breakpoints_after_exec): Delete and re-initialize
6728 overlay event breakpoints after an exec. Add FIXME comment
6729 about longjmp breakpoint.
6730 (print_it_typical): Ignore overlay event breakpoints.
6731 (print_one_breakpoint): Ditto.
6733 (bpstat_what): Do not stop for overlay event breakpoints.
6734 (delete_breakpoint): Don't delete overlay event breakpoints.
6735 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6736 (breakpoint_re_set): Re-create overlay event breakpoint.
6738 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6739 (overlay_manual_command): Disable overlay breakpoints.
6740 (overlay_off_command): Disable overlay breakpoints.
6742 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6744 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6745 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6746 to here from config/tm-arm.h.
6747 (coff_sym_is_thumb): Make static.
6748 (arm_elf_make_msymbol_special): New function.
6749 (arm_coff_make_msymbol_special): New function.
6750 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6751 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6752 (coff_sym_is_thumb): Delete declaration.
6753 (arm_elf_make_msymbol_special): Declare.
6754 (arm_coff_make_msymbol_special): Declare.
6755 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6756 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6758 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6760 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6762 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
6764 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6765 * gdbarch.c gdbarch.h: Regenerate.
6766 * arch-utils.c (default_print_float_info): New function.
6767 * arch-utils.h (default_print_float_info): Prototype it.
6768 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6769 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6770 (PRINT_FLOAT_INFO): Document it.
6772 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6773 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6774 (PRINT_FLOAT_INFO): Define.
6776 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6778 * win32-nat.c (_initialize_check_for_gdb_ini):
6779 Add typecast to sprintf argument to suppress a warning.
6781 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6783 * win32-nat.c (last_sig): Changed type of variable to target_signal,
6784 to allow easier handling of pass state.
6785 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6786 that gives exception name and address.
6787 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
6788 and set last_sig value to ourstatus->value.sig. Some missing
6790 (child_continue): Correctly report continue_status.
6791 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
6792 TARGET_SIGNAL_0 (new default value).
6793 (child_resume): consider sig argument passed to decide if
6794 the exception should be passed to debuggee or not.
6796 2002-02-05 Michael Snyder <msnyder@redhat.com>
6798 * regcache.c (fetch_register): Call target_fetch_register
6799 only if we don't call FETCH_PSEUDO_REGISTER.
6800 (store_register): Call target_store_register only if we
6801 don't call STORE_PSEUDO_REGISTER.
6803 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
6805 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6806 ELF_MAKE_MSYMBOL_SPECIAL.
6807 * gdbarch.c, gdbarch.h: Regenerate.
6808 * arch-utils.c (default_make_msymbol_special): New function.
6809 * arch-utils.h (default_make_msymbol_special): Export.
6810 * elfread.c (elf_symtab_read): Compile use of
6811 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6813 * coffread.c (coff_symtab_read): Ditto, for
6814 COFF_MAKE_MSYMBOL_SPECIAL.
6816 2002-02-05 Jim Blandy <jimb@redhat.com>
6818 * solib-svr4.c (svr4_truncate_ptr): New function.
6819 (svr4_relocate_section_addresses): Do the address arithmetic with
6820 the appropriate truncation for target addresses, even when
6821 CORE_ADDR is larger than a target address.
6823 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6825 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6830 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6833 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6835 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6837 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6839 * gdbserver/linux-low.c: Remove unused include files.
6841 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6843 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6844 (read_inferior_memory): Use it.
6845 (write_inferior_memory): Likewise.
6847 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6849 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6850 grubbing through sys_errlist.
6852 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
6854 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6856 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6857 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6859 2002-02-04 Andrew Cagney <ac131313@redhat.com>
6861 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6862 (do_sfunc, set_cmd_sfunc): New functions.
6864 * command.h (struct cmd_list_element): Add field func.
6865 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6866 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6867 * cli/cli-decode.h: Ditto.
6869 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6870 (help_all, help_cmd_list): Ditto.
6871 (find_cmd, complete_on_cmdlist): Ditto.
6872 * top.c (execute_command): Ditto.
6874 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6877 * infcmd.c (notice_args_read): Fix function signature.
6879 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6880 * cli/cli-decode.c (add_set_cmd): Ditto.
6881 * utils.c (initialize_utils): Ditto.
6882 * maint.c (_initialize_maint_cmds): Ditto.
6883 * infrun.c (_initialize_infrun): Ditto.
6884 * demangle.c (_initialize_demangler): Ditto.
6885 * remote.c (add_packet_config_cmd): Ditto.
6886 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6887 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6888 * proc-api.c (_initialize_proc_api): Ditto.
6889 * kod.c (_initialize_kod): Ditto.
6890 * valprint.c (_initialize_valprint): Ditto.
6891 * top.c (init_main): Ditto.
6892 * infcmd.c (_initialize_infcmd): Ditto.
6893 * corefile.c (_initialize_core): Ditto.
6894 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6895 * arch-utils.c (initialize_current_architecture): Ditto.
6896 (_initialize_gdbarch_utils): Ditto.
6897 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6899 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6900 * wince.c (_initialize_inftarg): Ditto.
6901 * symfile.c (_initialize_symfile): Ditto.
6902 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6903 * language.c (_initialize_language): Ditto.
6904 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6906 2002-02-04 Michael Snyder <msnyder@redhat.com>
6908 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6910 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6912 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6913 Add rules for building the register data files.
6915 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6917 * regformats/regdat.sh: Add braces to the definition of
6918 expedite_regs_${arch}.
6920 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
6922 * regformats/regdef.h (struct reg): Add comment describing the
6923 requirements for offset and size fields.
6925 2002-02-04 Andreas Schwab <schwab@suse.de>
6927 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6928 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6930 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
6932 * gdbarch.sh (copyright): Update years in generated header.
6933 (SMASH_TEXT_ADDRESS): Add rule.
6934 * gdbarch.h, gdbarch.c: Re-generate.
6935 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6936 * dbxread.c: Likewise.
6937 * dwarfread.c: Likewise.
6938 * elfread.c: Likewise.
6939 * somread.c: Likewise.
6941 * arm-tdep.c (arm_smash_text_address): New function.
6942 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6944 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6946 Add support for hardware watchpoints on win32 native.
6947 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6948 CONTEXT_DEBUG_REGISTERS.
6949 (dr variable): New variable. Static array containing a local copy
6951 (debug_registers_changed): New variable. Reflects when debug registers
6952 are changed and need to be written to inferior.
6953 (debug_registers_used): New variable. Reflects when any debug register
6954 was set, used when new threads are created.
6955 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6957 (thread_rec): Set dr array if id is the thread of current_event .
6958 (child_continue, child_resume): Change the debug registers for all
6959 threads if debug_registers_changed.
6960 (child_add_thread): Change the debug registers if debug_registers_used.
6961 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6962 Link nm.h to new nm-cygwin.h file.
6963 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6964 of hardware registers.
6966 2002-02-03 Andrew Cagney <ac131313@redhat.com>
6968 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6969 Restore behavour broken by 2002-01-20 Andrew Cagney
6970 <ac131313@redhat.com> IEEE_FLOAT removal.
6972 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6974 * c-valprint.c (c_val_print): Pass a proper valaddr to
6975 cp_print_class_method.
6976 * valops.c (search_struct_method): If there is only one method
6977 and args is NULL, return that method.
6979 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6981 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6982 accessing tag_name directly.
6984 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6986 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6987 of accessing tag_name directly.
6989 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6992 * gdbtypes.c (replace_type): New function.
6993 * gdbtypes.h (replace_type): Add prototype.
6994 * stabsread.c (read_type): Use replace_type.
6996 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
6998 * Makefile.in (memattr.o): Add missing dependencies rule.
7000 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7002 * breakpoint.c (break_at_finish_command): Really export.
7003 (break_at_finish_at_depth_command): Ditto.
7004 (tbreak_at_finish_command): Ditto.
7005 * hppa-tdep.c: Include completer.h.
7006 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
7007 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
7009 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7011 * utils.c (do_write): New function.
7012 (error_stream): Rewrite combining the code from error_begin and
7014 (verror): Rewrite using error_stream.
7015 (error_begin): Delete function.
7017 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7019 * utils.c (error_begin): Make static.
7020 * defs.h (error_begin): Delete declaration.
7022 * linespec.c (cplusplus_error): Replace cplusplus_hint.
7023 (decode_line_1): Use cplusplus_error instead of error_begin,
7024 cplusplus_hint and return_to_top_level.
7025 * coffread.c (coff_symfile_read): Use error instead of error_begin
7026 and return_to_top_level.
7027 * infrun.c (default_skip_permanent_breakpoint): Ditto.
7029 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7031 * language.h (type_error, range_error): Make string parameter
7033 * language.c (warning_pre_print): Delete extern declaration.
7034 * dwarfread.c (warning_pre_print): Ditto.
7035 * language.c (type_error, range_error): Rewrite to use verror and
7036 vwarning instead of warning_begin.
7038 2002-02-01 Michael Snyder <msnyder@redhat.com>
7040 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
7041 (set_ignore_count): Move misplaced comment back where it belongs.
7043 2002-02-01 Andrew Cagney <ac131313@redhat.com>
7045 * command.h (NO_FUNCTION): Delete macro.
7046 * cli/cli-decode.h (NO_FUNCTION): Ditto.
7047 * top.c (execute_command): Replace NO_FUNCTION with NULL.
7048 * tracepoint.c (_initialize_tracepoint): Ditto.
7049 * cli/cli-decode.c (add_set_cmd): Ditto.
7050 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7052 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7054 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
7055 Update ``this'' pointer when calling virtual functions.
7057 2002-02-01 Michael Snyder <msnyder@redhat.com>
7059 * breakpoint.c (create_temp_exception_breakpoint): Delete.
7060 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
7062 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
7064 * regformats/reg-arm.dat: New file.
7065 * regformats/reg-i386.dat: New file.
7066 * regformats/reg-ia64.dat: New file.
7067 * regformats/reg-m68k.dat: New file.
7068 * regformats/reg-mips.dat: New file.
7069 * regformats/reg-ppc.dat: New file.
7070 * regformats/reg-sh.dat: New file.
7071 * regformats/regdef.h: New file.
7072 * regformats/regdat.sh: New file.
7074 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
7076 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
7077 (arm_frame_args_address, arm_frame_locals_address): New functions.
7078 (arm_frame_num_args): New function.
7079 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
7080 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
7081 (FRMA_NUM_ARGS): Call arm_frame_num_args.
7083 2002-01-31 Michael Snyder <msnyder@redhat.com>
7085 * breakpoint.c (break_at_finish_command): Export.
7086 (break_at_finish_at_depth_command): Export.
7087 (tbreak_at_finish_command): Export.
7088 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7089 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7090 "tbreak" commands, which are HPPA specific.
7092 * printcmd.c (disassemble_command): Remove an ancient
7093 artifact of an old merge.
7095 * symfile.h (enum overlay_debugging_state):
7096 Define enum constant values for overlay mode.
7097 * symfile.c (overlay_debugging): Use enums instead of literals.
7098 (overlay_is_mapped, overlay_auto_command,
7099 overlay_manual_command): Ditto.
7101 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7102 breakpoint_here_p, breakpoint_inserted_here_p,
7103 breakpoint_thread_match, bpstat_stop_status,
7104 describe_other_breakpoints, check_duplicates, clear_command):
7105 Coding standard fixes.
7107 * target.c (target_xfer_memory): Add spaces, coding standard.
7108 (do_xfer_memory): Add missing line to trust-readonly
7109 code: check bfd SEC_READONLY flag for section.
7111 2002-01-31 Andrew Cagney <ac131313@redhat.com>
7113 * PROBLEMS: Fix typo, 5.1->5.1.1.
7115 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
7117 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7118 data symbols, since we search based on textlow and texthigh.
7119 (find_pc_sect_symtab): Likewise.
7121 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7123 * defs.h (vwarning): Declare.
7124 * utils.c (vwarning): New function.
7125 (warning): Call vwarning.
7126 (warning_begin): Delete function.
7128 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7129 the warning message.
7130 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7133 2002-01-30 Michael Snyder <msnyder@redhat.com>
7135 * NEWS: Mention "set trust-readonly-sections" command.
7136 Mention generate-core-file command.
7138 2002-01-15 Michael Snyder <msnyder@redhat.com>
7140 * target.c: New command, "set trust-readonly-sections on".
7141 (do_xfer_memory): Honor the suggestion to trust readonly sections
7142 by reading them from the object file instead of from the target.
7143 (initialize_targets): Register command "set trust-readonly-sections".
7145 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7147 * parse.c (target_map_name_to_register): Simplify, search regs and
7148 pseudo-regs using a single loop.
7150 2002-01-30 Andrew Cagney <ac131313@redhat.com>
7152 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7154 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
7156 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7157 * config/i386/i386v42mp.mh: Add i387-nat.o .
7158 * i386v4-nat.c: Include i387-nat.h.
7159 (supply_fpregset): Use i387_supply_fsave.
7160 (fill_fpregset): Use i387_fill_fsave.
7162 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
7164 * arm-tdep.c (arm_call_dummy_words): Define.
7165 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7166 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7167 (CALL_DUMMY_WORDS): Define.
7168 (arm_call_dummy_words): Declare.
7169 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7170 (arm_linux_call_dummy_words): Declare.
7172 2002-01-30 Andreas Schwab <schwab@suse.de>
7174 * m68klinux-nat.c: Fix last change to use regcache_collect
7175 instead of referencing registers[] directly.
7177 2002-01-29 Andrew Cagney <ac131313@redhat.com>
7179 * parse.c (target_map_name_to_register): Delete code wrapped in
7180 #ifdef REGISTER_NAME_ALIAS_HOOK.
7182 2002-01-28 Michael Snyder <msnyder@redhat.com>
7184 * regcache.c (legacy_read_register_gen): Need to be able to
7185 read pseudo-register as well as real register.
7186 (legacy_write_register_gen): Ditto.
7188 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7190 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7191 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7192 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7193 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7194 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7195 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7196 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7197 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7198 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7199 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7200 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7201 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7202 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7203 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7204 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7205 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7206 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7207 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7208 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7209 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7211 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7213 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7214 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7215 (initialize_current_architecture): Update target_byte_order using
7216 information from BFD.
7217 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
7218 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7220 2002-01-28 Andrew Cagney <ac131313@redhat.com>
7222 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7223 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7225 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7226 #ifdef INVALID_FLOAT.
7227 * infcmd.c (do_registers_info): Ditto.
7228 * values.c (unpack_double): Ditto. Add comment.
7230 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7231 already commented out.
7233 2002-01-26 Andreas Schwab <schwab@suse.de>
7235 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7236 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7237 registers and add support for PTRACE_GETREGS.
7239 2002-01-24 Andrew Cagney <ac131313@redhat.com>
7241 GDB 5.1.1 released from 5.1 branch.
7242 * NEWS: Add 5.1.1 news.
7243 * README: Sync with 5.1 branch.
7245 2002-01-23 Fred Fish <fnf@redhat.com>
7247 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7248 stabstring on initial malloc. Reallocing will copy it for us,
7251 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7253 * Makefile.in (hpread_h): Delete.
7254 (HFILES_NO_SRCDIR): Remove hpread.h.
7255 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7256 (hpread.o): Update dependencies.
7257 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7259 * hp-psymtab-read.c: Remove file.
7260 * hp-symtab-read.c: Remove file.
7261 * hpread.h: Remove file.
7263 * hpread.c: Merge all contents of hp-psymtab-read.c,
7264 hp-symtab-read.c and hpread.h into this file, as it was prior to
7267 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7268 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7269 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7270 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7272 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
7274 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7275 fill_gregset): Call gdbarch_tdep() just once, assign result to
7276 variable and use that, instead of calling the function several
7279 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7281 * configure.host: Accept sparcv9 as alias for sparc64.
7282 * configure.tgt: Likewise.
7284 2002-01-22 Kevin Buettner <kevinb@redhat.com>
7286 * solib-aix5.c (build_so_list_from_mapfile)
7287 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7288 arguments is not reversed.
7289 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7290 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7292 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
7294 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7295 modified version of obsolete sh_fetch_pseudo_register.
7296 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7297 (sh4_register_read): New function.
7298 (sh_pseudo_register_write): New function. Renamed and modified
7299 version of obsolete sh_store_pseudo_register.
7300 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7301 (sh4_register_write): New function.
7302 (sh_gdbarch_init): Remove setting of gdbarch function
7303 fetch_pseudo_register and store_pseudo_register. Remove setting of
7304 register_convert_to_raw, register_convert_to_virtual,
7305 register_convertible.
7306 (sh_sh4_register_convertible): Delete. No longer needed. All is
7307 taken care by architecture specific functions
7308 register_read/register_write.
7309 (sh_sh4_register_convert_to_virtual): Make static.
7310 (sh_sh4_register_convert_to_raw): Ditto.
7312 2002-01-22 Andrew Cagney <ac131313@redhat.com>
7314 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7315 (floatformat_is_nan, floatformat_mantissa): Ditto.
7317 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7318 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7319 builtin_type_ieee_double_little,
7320 builtin_type_ieee_double_littlebyte_bigword,
7321 builtin_type_m68881_ext, builtin_type_i960_ext,
7322 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7323 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7324 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7325 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7327 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
7329 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7330 parameter. Set frameless flag if it exists and depended of
7331 whether the scanned function is frameless or not.
7332 (xstormy16_skip_prologue): If function is frameless, return
7333 result of xstormy16_scan_prologue().
7334 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7337 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
7339 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7340 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7341 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7342 sh_sh4_register_byte, sh_sh4_register_raw_size,
7343 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7344 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7345 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7346 sh_store_pseudo_register, sh_do_pseudo_register): Call
7347 gdbarch_tdep() just once, assign result to variable and use that,
7348 instead of calling the function several times.
7350 2002-01-20 Mark Kettenis <kettenis@gnu.org>
7352 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7353 macros instead of LAST_FPU_CTRL_REGNUM.
7354 (store_register): Likewise.
7356 2002-01-21 Jim Blandy <jimb@redhat.com>
7358 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7359 is up-to-date before running the program, not just when a program
7362 2002-01-21 Fred Fish <fnf@redhat.com>
7364 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7365 when we have found all instructions we are looking for.
7367 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7369 * arm-tdep.c (arm_register_name): New function.
7370 (arm_registers_names): Make static.
7371 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7372 (arm_register_name): Declare.
7373 (REGISTER_NAME): Use it.
7375 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
7376 Kevin Buettner <kevinb@redhat.com>
7378 Convert arm targets to new FRAME interface.
7379 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7380 (arm_frame_find_save_regs): Delete.
7381 (arm_frame_init_saved_regs): New.
7382 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7383 Allocate extra_info as required. Convert all uses of fsr.regs
7384 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7386 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7387 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7388 (check_prologue_cache, save_prologue_cache): Likewise.
7389 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7390 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7391 (FRAME_FIND_SAVED_REGS): Delete.
7392 (arm_frame_find_saved_regs): Delete prototype.
7393 (arm_frame_init_saved_regs): New prototype.
7394 (FRAME_INIT_SAVED_REGS): Define.
7396 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7398 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7400 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7402 From Jeff Law <law@redhat.com>:
7403 * infttrace.c: Include <sys/pstat.h>.
7404 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7405 exec file if the ttrace equivalent fails.
7407 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7409 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7410 (closeLogFile): Ditto.
7412 2002-01-20 Michael Chastain <mec@shout.net>
7414 * top.c (print_gdb_version): Bump copyright year to 2002.
7416 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7418 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7419 Zannoni and Eli Zaretskii.
7421 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7423 * buildsym.c: Update copyright years.
7424 * c-typeprint.c: Likewise.
7425 * dwarf2read.c: Likewise.
7426 * f-typeprint.c: Likewise.
7427 * gdbtypes.c: Likewise.
7428 * gdbtypes.h: Likewise.
7429 * hp-symtab-read.c: Likewise.
7430 * hpread.c: Likewise.
7431 * mdebugread.c: Likewise.
7432 * p-typeprint.c: Likewise.
7434 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7436 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7437 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7438 byte-order selectable.
7439 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7440 * arch-utils.c: Ditto.
7441 (set_endian): Ditto.
7442 (set_endian_from_file): Ditto.
7443 * gdbserver/low-sim.c (create_inferior): Ditto.
7444 * gdbarch.sh: Ditto.
7445 * gdbarch.h: Re-generate.
7446 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7447 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7448 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7449 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7450 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7451 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7452 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7453 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7455 * config/mips/tm-wince.h: Remove #undef of macro
7456 TARGET_BYTE_ORDER_SELECTABLE.
7457 * config/sh/tm-wince.h: Ditto.
7459 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7461 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7462 member function fields. Add accessor macro
7463 TYPE_FN_FIELD_ARTIFICIAL.
7464 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7465 * c-typeprint.c (c_type_print_base): Skip artificial member
7468 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7470 * f-typeprint.c: Delete unused function f_type_print_args.
7471 * p-typeprint.c: Delete unused function pascal_type_print_args.
7473 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
7475 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7476 comment. Add ``artificial'' to ``union field_location''.
7478 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7480 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7481 * mdebugread.c (parse_symbol): Likewise.
7482 * stabsread.c (define_symbol): Likewise.
7483 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7484 initializing TYPE_FIELD_BITPOS to n (obsolete).
7485 (hpread_doc_function_type): Likewise.
7486 * hpread.c (hpread_function_type): Likewise.
7488 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7490 * configure.in (host_makefile_frag): Only require a host makefile
7491 fragment when a native build.
7492 * configure: Re-generate.
7494 2002-01-20 Andrew Cagney <ac131313@redhat.com>
7496 * doublest.h (floatformat_from_type): Declare.
7497 * doublest.c (floatformat_from_type): New function.
7498 (convert_typed_floating): Use.
7500 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7501 call to function floatformat_from_type.
7503 * gdbarch.sh (IEEE_FLOAT): Delete.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7506 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7507 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7508 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7509 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7510 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7511 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7512 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7513 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7514 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7515 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7516 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7518 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7519 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7520 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7521 * sh-tdep.c (sh_gdbarch_init): Ditto.
7522 * mips-tdep.c (mips_gdbarch_init): Ditto.
7523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7524 * cris-tdep.c (cris_gdbarch_init): Ditto.
7526 2002-01-20 Jiri Smid <smid@suse.cz>
7528 * configure.host, configure.tgt: Support x86-64.
7529 * NEWS: Note new target x86-64.
7531 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7532 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7533 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7534 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7535 x86-64-linux-nat.o): Fix dependencies.
7537 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7539 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7540 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7541 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7542 * config/sparc/xm-sun4os4.h: Delete file.
7543 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7545 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7547 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7548 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7549 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7550 * config/i386/i386lynx.mh (XM_FILE): Delete.
7551 * config/rs6000/xm-rs6000ly.h: Delete file.
7552 * config/sparc/xm-sparclynx.h: Delete file.
7553 * config/m68k/xm-m68klynx.h: Delete file.
7554 * config/i386/xm-i386lynx.h: Delete file.
7555 * config/xm-lynx.h: Delete file.
7556 * config/djgpp/fnchange.lst: Update.
7558 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7560 * alpha-tdep.c (alpha_register_byte): New function.
7561 (alpha_register_raw_size): Ditto.
7562 (alpha_register_virtual_size): Ditto.
7563 (alpha_skip_prologue_internal): Renamed from
7564 alpha_skip_prologue.
7565 (alpha_skip_prologue): New version that calls
7566 alpha_skip_prologue_internal.
7567 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7568 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7569 second argument from alpha_skip_prologue.
7570 (REGISTER_BYTE): Use alpha_register_byte.
7571 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7572 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7573 (FRAMELESS_FUNCTION_INVOCATION): Use
7574 generic_frameless_function_invocation_not.
7575 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7576 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7578 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7580 * config/mips/xm-news-mips.h: Delete file.
7581 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7583 * config/m88k/xm-m88k.h: Delete file.
7584 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7585 * config/m88k/xm-delta88v4.h: Ditto.
7586 * config/m88k/xm-delta88.h: Ditto.
7588 * config/alpha/xm-fbsd.h: Delete file.
7589 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7591 * config/sparc/xm-sparc.h: Delete file.
7592 * Makefile.in (xm-sun4os4.h): Delete dependency.
7593 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7594 * config/sparc/xm-sun4os4.h: Ditto.
7595 * config/sparc/xm-linux.h: Ditto.
7597 * config/i386/xm-windows.h: Delete file.
7599 2002-01-19 Andrew Cagney <ac131313@redhat.com>
7601 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7602 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7604 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7606 * alpha-tdep.c (alpha_call_dummy_words): New.
7607 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7608 (CALL_DUMMY_P): Define.
7609 (CALL_DUMMY_WORDS): Define.
7610 (SIZEOF_CALL_DUMMY_WORDS): Define.
7612 2002-01-19 Per Bothner <per@bothner.com>
7614 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7615 isn't NULL, which can happen with some gcj-3.x-produced code.
7617 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7619 * alpha-tdep.c (alpha_register_virtual_type): New function.
7620 (alpha_init_frame_pc_first): Ditto.
7621 (alpha_fix_call_dummy): Ditto.
7622 (alpha_store_struct_return): Ditto.
7623 (alpha_extract_struct_value_address): Ditto.
7624 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7625 alpha_register_virtual_type.
7626 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7627 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7628 alpha_extract_struct_value_address.
7629 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7630 (INIT_FRAME_PC): Use init_frame_pc_noop.
7631 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7633 2002-01-19 Mark Kettenis <kettenis@gnu.org>
7635 * i386gnu-nat.c: Include "i386-tdep.h".
7636 (fetch_fpregs): Simplify code dealing with uninitialized floating
7637 point states such that it doesn't require FP7_REGNUM.
7639 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7641 * alpha-tdep.c (frame_extra_info): New.
7642 (alpha_find_saved_regs): Make static. Use
7644 (alpha_frame_init_saved_regs): New function.
7645 (alpha_frame_saved_pc): Use frame->extra_info.
7646 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7647 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
7648 (init_extra_frame_info): Rename to...
7649 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
7650 (alpha_print_extra_frame_info): New function.
7651 (alpha_frame_locals_address): Ditto.
7652 (alpha_frame_args_address): Ditto.
7653 (alpha_pop_frame): Use frame->extra_info.
7654 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7655 alpha_frame_args_address.
7656 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
7657 (alpha_find_saved_regs): Remove prototype.
7658 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7659 (EXTRA_FRAME_INFO): Remove.
7660 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7661 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7663 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7665 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7666 (alpha_cannot_fetch_register): Ditto.
7667 (alpha_cannot_store_register): Ditto.
7668 (alpha_register_convertible): Ditto.
7669 (alpha_use_struct_convention): Ditto.
7670 * config/alpha/tm-alpha.h: Update copyright years.
7671 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7672 (INNER_THAN): Use core_addr_lessthan.
7673 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7674 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7675 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7676 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7677 (FRAME_CHAIN): Remove unnecessary cast.
7679 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7681 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7684 2002-01-18 Andrew Cagney <ac131313@redhat.com>
7686 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7687 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7688 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7689 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7690 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7691 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7692 * x86-64-linux-nat.c: Ditto.
7694 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7696 * alpha-tdep.c (alpha_register_name): New function.
7697 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7698 (REGISTER_NAME): Define.
7700 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7702 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7704 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7706 * alpha-tdep.c: Update copyright years.
7707 (alpha_next_pc): New function.
7708 (alpha_software_single_step): Ditto.
7709 * config/alpha/tm-alpha.h: Add prototype for
7710 alpha_software_single_step.
7712 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7714 * alphabsd-nat.c: Update copyright years.
7715 (fill_gregset): Use regcache_collect.
7716 (fill_fpregset): Likewise.
7717 (fetch_inferior_registers): Only fetch integer registers
7718 if requested to do so.
7719 (store_inferior_registers): Only store integer registers
7720 if requested to do so.
7722 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7724 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7725 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7726 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7727 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7728 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7729 * config/arm/linux.mh (XDEPFILES): Delete.
7730 * config/arm/nbsd.mh (XDEPFILES): Delete.
7731 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7732 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7733 * config/i386/i386m3.mh (XDEPFILES): Delete.
7734 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7735 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7736 * config/i386/fbsd.mh (XDEPFILES): Delete.
7737 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7738 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7739 * config/i386/i386v4.mh (XDEPFILES): Delete.
7740 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7741 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7742 * config/i386/i386aix.mh (XDEPFILES): Delete.
7743 * config/i386/go32.mh (XDEPFILES): Delete.
7744 * config/i386/cygwin.mh (XDEPFILES): Delete.
7745 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7746 * config/i386/i386mach.mh (XDEPFILES): Delete.
7747 * config/i386/i386v32.mh (XDEPFILES): Delete.
7748 * config/i386/linux.mh (XDEPFILES): Delete.
7749 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7750 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7751 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7752 * config/i386/i386sco.mh (XDEPFILES): Delete.
7753 * config/i386/i386v.mh (XDEPFILES): Delete.
7754 * config/i386/nbsd.mh (XDEPFILES): Delete.
7755 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7756 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7757 * config/i386/symmetry.mh (XDEPFILES): Delete.
7758 * config/i386/obsd.mh (XDEPFILES): Delete.
7759 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7760 * config/ia64/linux.mh (XDEPFILES): Delete.
7761 * config/ia64/aix.mh (XDEPFILES): Delete.
7762 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7763 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7764 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7765 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7766 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7767 * config/m68k/linux.mh (XDEPFILES): Delete.
7768 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7769 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7770 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7771 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7772 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7773 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7774 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7775 * config/m88k/delta88.mh (XDEPFILES): Delete.
7776 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7777 * config/m88k/m88k.mh (XDEPFILES): Delete.
7778 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7779 * config/mips/linux.mh (XDEPFILES): Delete.
7780 * config/mips/irix6.mh (XDEPFILES): Delete.
7781 * config/mips/irix5.mh (XDEPFILES): Delete.
7782 * config/mips/irix4.mh (XDEPFILES): Delete.
7783 * config/mips/irix3.mh (XDEPFILES): Delete.
7784 * config/mips/decstation.mh (XDEPFILES): Delete.
7785 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7786 (NATDEPFILES): Move core-aout.o to here.
7787 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7788 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7789 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7790 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7791 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7792 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7793 * config/pa/hpux11.mh (XDEPFILES): Delete.
7794 * config/powerpc/aix.mh (XDEPFILES): Delete.
7795 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7796 * config/powerpc/linux.mh (XDEPFILES): Delete.
7797 * config/romp/rtbsd.mh: Rename XDEPFILES.
7798 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7799 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7800 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7801 * config/s390/s390.mh (XDEPFILES): Delete.
7802 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7803 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7804 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7805 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7806 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7807 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7808 * config/sparc/linux.mh (XDEPFILES): Delete.
7809 * config/vax/vaxult.mh (XDEPFILES): Delete.
7810 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7811 * Makefile.in (DEPFILES): Remove XDEPFILES.
7813 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7815 * utils.c (internal_verror): Fix comments, default is yes not no.
7816 Update queries to match. Default to quit and dump core.
7818 2002-01-17 Andrew Cagney <ac131313@redhat.com>
7820 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7822 * defs.h, event-top.c, gdbcmd.h: Ditto.
7823 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7824 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7825 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7826 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7827 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7828 * mi/mi-main.c:Ditto.
7830 * stack.c, symfile.c: Update copyright.
7832 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7834 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7835 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7836 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7837 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7839 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
7841 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7842 * gdbserver/low-lynx.c (myattach): Likewise.
7843 * gdbserver/low-nbsd.c (myattach): Likewise.
7844 * gdbserver/low-sim.c (myattach): Likewise.
7845 * gdbserver/low-sparc.c (myattach): Likewise.
7846 * gdbserver/low-sun3.c (myattach): Likewise.
7848 * gdbserver/low-linux.c (myattach): New function.
7850 * gdbserver/server.c (attach_inferior): New function.
7851 (main): Handle "--attach".
7853 2002-01-16 Andrew Cagney <ac131313@redhat.com>
7855 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7858 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
7860 * c-typeprint.c (is_type_conversion_operator): Add additional
7861 check for non-conversion operators.
7863 2002-01-15 Michael Snyder <msnyder@redhat.com>
7865 * linux-proc.c: Add "info proc" command, a la procfs.c.
7866 (read_mapping): New function, abstract and re-use code.
7867 (linux_find_memory_regions): Use new func read_mapping.
7868 (linux_info_proc_cmd): New function, implement "info proc".
7869 (_initialize_linux_proc): Add new command "info proc".
7871 2002-01-15 Michael Snyder <msnyder@redhat.com>
7873 * symfile.c (generic_load): Use bfd_map_over_sections method
7874 instead of manipulating bfd structure members directly.
7875 (add_section_size_callback): New function, bfd sections callback
7876 used by generic_load.
7877 (load_sections_callback): New function, bfd sections callback
7878 used by generic_load.
7880 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
7882 [Based on work by Jim Blandy]
7883 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7884 (builtin_type_vec128): Export.
7885 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7887 (builtin_type_vec128): New builtin type for 128 bit vector
7889 (build_gdbtypes): Initialize builtin_type_v16qi and
7890 builtin_type_v8hi. Create the vec128 register builtin type
7892 (build_builtin_type_vec128): New function.
7893 (_initialize_gdbtypes): Register builtin_type_v16qi and
7894 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7895 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7896 AltiVec register to new builtin type.
7898 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
7900 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7903 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7905 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7906 CLEAN_UP_REGISTER_VALUE.
7907 * regcache.c (supply_register): Update only call.
7909 2002-01-14 Andrew Cagney <ac131313@redhat.com>
7911 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7912 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7913 a29k-*-vxworks* targets as obsolete.
7915 2002-01-14 Michael Snyder <msnyder@redhat.com>
7917 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7918 until we can resolve portability issues.
7919 * gregset.h: Remove references to fpxregs.
7920 * gcore.c (gcore_command): Initialize note_sec to NULL.
7922 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7924 * signals.c (target_signal_to_name): Rewrite. Only use
7925 signals[].name when in bounds and non-NULL.
7927 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7929 From Petr Ledvina <ledvinap@kae.zcu.cz>:
7930 * signals.c (target_signal_to_name): Verify that SIG is within the
7931 bounds of the signals array.
7933 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7935 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7937 2002-01-13 Keith Seitz <keiths@redhat.com>
7939 * stack.c (print_frame_info_base): Print the frame's pc
7940 only if when print_frame_info_listing_hook is not defined.
7942 2002-01-13 Keith Seitz <keiths@redhat.com>
7944 * varobj.c (varobj_set_value): Make sure that there were no
7945 errors evaluating the object before attempting to set its
7947 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7948 so this offset adjustment is no longer necessary.
7949 (create_child): Don't set the error flag if the child is
7951 (value_of_child): If value_fetch_lazy fails, return NULL
7952 so that callers will be notified that an error occurred.
7953 (c_value_of_variable): Delay check of variable's validity
7954 until later. We actually want all structs and unions to have
7956 Do not return "???" for variables which could not be evaluated.
7957 This error condition must be returned to the caller so that it
7958 can get the error condition from gdb.
7959 (cplus_name_of_child): Adjust index for vptr before figuring
7960 out the name of the child.
7961 (cplus_value_of_child): If a child's (real) parent is not valid,
7962 don't even bother trying to give a value for it. Just return
7963 an error. Change all instances in this function.
7964 (cplus_type_of_child): If our parent is one of the "fake"
7965 parents, we need to get at the type of the real parent, and
7966 derive the child's true type using this information.
7968 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7970 From 2002-01-09 John Marshall <johnm@falch.net>:
7971 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7972 sources.redhat.com, and tweak some related URLs which had
7973 suffered from linkrot.
7975 2002-01-13 Andrew Cagney <ac131313@redhat.com>
7978 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7979 structures passed in registers.
7981 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7983 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7984 white space which prevented compilation. Reported by DSK
7985 <dsk@student.unsw.edu.au>.
7987 2002-01-11 Michael Snyder <msnyder@redhat.com>
7989 * symfile.c (build_section_addr_info_from_section_tab):
7990 Use bfd access method instead of manipulating bfd directly.
7991 (syms_from_objfile): Ditto.
7992 (simple_overlay_update_1): Ditto.
7993 (simple_overlay_update): Ditto.
7994 (generic_load): Ditto.
7995 (overlay_unmapped_address): FIXME comment, bfd access methods.
7996 (sections_overlap): FIXME comment, bfd access methods.
7997 (pc_in_mapped_range): FIXME comment, bfd access methods.
7998 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7999 (section_is_mapped): FIXME comment, bfd access methods.
8000 (section_is_overlay): FIXME comment, bfd access methods.
8002 * symfile.c (generic_load): Whitespace and long line cleanups.
8003 Remove duplicate variable, change several local variables to
8004 more appropriate data types.
8005 (print_transfer_performance): Use %lu instead of %ld for ulongs.
8007 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8010 * language.c (longest_local_hex_string_custom): Use phex_nz to
8011 convert NUM to a hex string.
8013 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
8015 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
8017 Update Copyright year.
8019 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8021 * language.c (longest_raw_hex_string): Delete unused function.
8023 2002-01-11 Petr Sorfa <petrs@caldera.com>
8025 * MAINTAINERS (write-after-approval): Add myself.
8026 * dwarf2read.c (read_tag_string_type): Handling of
8028 (read_tag_string_type): FORTRAN fix to prevent propagation of
8030 (set_cu_language): Handling of DW_LANG_Fortran95
8032 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
8034 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
8035 GETPID(inferior_ptid).
8036 (store_inferior_registers): Likewise.
8038 2002-01-10 Jason Merrill <jason@redhat.com>
8040 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
8043 2002-01-10 Andrew Cagney <ac131313@redhat.com>
8045 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
8046 and bfd/elf32-sh-nbsd.c.
8048 2002-01-10 Michael Snyder <msnyder@redhat.com>
8050 * NEWS: Mention --pid and corefile/proc-id behavior change.
8052 * Makefile.in: Add rules for gcore.o and linux-proc.o.
8053 * gcore.c: Include cli/cli-decode.h instead of command.h.
8055 * main.c (captured_main): Add new command line option "--pid".
8056 If the second command line argument (following the symbol-file)
8057 begins with a digit, try to attach to it before trying to open
8059 (print_gdb_help): Document the "--pid" argument.
8061 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
8063 * completer.c (command_completer): New function.
8065 * completer.h <command_completer>: Add prototype.
8067 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
8068 completer for the "help" command.
8070 2002-01-09 Jason Merrill <jason@redhat.com>
8072 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
8074 2002-01-09 Michael Snyder <msnyder@redhat.com>
8076 * i386-linux-nat.c (fill_fpxregset): Make global.
8077 (store_fpxregset): Ditto.
8079 * gregset.h (gdb_fpxregset_t): Define.
8080 (supply_fpxregset): Prototype.
8081 (fill_fpxregset): Prototype.
8083 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
8085 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8087 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8088 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8089 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8091 2002-01-09 Andrew Cagney <ac131313@redhat.com>
8093 * MAINTAINERS: Update target maintainer rules so that any
8094 Maintainer can approve a tested patch for a maintenance-only
8097 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
8099 * MAINTAINERS (write-after-approval): Add myself.
8101 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
8104 2002-01-08 Michael Snyder <msnyder@redhat.com>
8106 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8107 real name of the executable, rather than the /proc name.
8109 2002-01-03 Michael Snyder <msnyder@redhat.com>
8111 Implement a "generate-core-file" command in gdb, save target state.
8112 * gcore.c: New file. Implement new command 'generate-core-file'.
8113 Save a corefile image of the current state of the inferior.
8114 * linux-proc.c: Add linux-specific code for saving corefiles.
8115 * target.h (struct target_ops): Add new target vectors for saving
8116 corefiles; to_find_memory_regions and to_make_corefile_notes.
8117 (target_find_memory_regions): New macro.
8118 (target_make_corefile_notes): New macro.
8119 * target.c (update_current_target): Inherit new target methods.
8120 (dummy_find_memory_regions): New place-holder method.
8121 (dummy_make_corefile_notes): New place-holder method.
8122 (init_dummy_target): Initialize new dummy target vectors.
8123 * exec.c (exec_set_find_memory_regions): New function.
8124 Allow the exec_ops vector for memory regions to be taken over.
8125 (exec_make_note_section): New function, target vector method.
8126 * defs.h (exec_set_find_memory_regions): Export prototype.
8127 * procfs.c (proc_find_memory_regions): New function, corefile method.
8128 (procfs_make_note_section): New function, corefile method.
8129 (init_procfs_ops): Set new target vector pointers.
8130 (find_memory_regions_callback): New function.
8131 (procfs_do_thread_registers): New function.
8132 (procfs_corefile_thread_callback): New function.
8133 * sol-thread.c (sol_find_memory_regions): New function.
8134 (sol_make_note_section): New function.
8135 (init_sol_thread_ops): Initialize new target vectors.
8136 * inftarg.c (inftarg_set_find_memory_regions): New function.
8137 Allow to_find_memory_regions vector to be taken over.
8138 (inftarg_set_make_corefile_notes): New function.
8139 Allow to_make_corefile_notes vector to be taken over.
8140 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8141 interface layer if not target_has_execution (may be a corefile).
8142 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8143 * config/sparc/sun4sol2.mh: Ditto.
8144 * config/alpha/alpha-linux.mh: Ditto.
8145 * config/arm/linux.mh: Ditto.
8146 * config/i386/x86-64linux.mh: Ditto.
8147 * config/ia64/linux.mh: Ditto.
8148 * config/m68k/linux.mh: Ditto.
8149 * config/mips/linux.mh: Ditto.
8150 * config/powerpc/linux.mh: Ditto.
8151 * config/sparc/linux.mh: Ditto.
8153 2002-01-07 Michael Snyder <msnyder@redhat.com>
8155 * arm-linux-nat.c: Remove references to regcache.c internal data
8156 (registers[] and register_valid[]).
8158 2002-01-07 Michael Snyder <msnyder@redhat.com>
8160 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8161 so that attaching to a pid will automatically read the process's
8162 symbol file and shlibs.
8163 * Makefile.in: Add rule for linux-proc.o.
8164 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8165 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8166 * config/arm/linux.mh: Ditto.
8167 * config/i386/linux.mh: Ditto.
8168 * config/i386/x86-64linux.mh: Ditto.
8169 * config/ia64/linux.mh: Ditto.
8170 * config/m68k/linux.mh: Ditto.
8171 * config/mips/linux.mh: Ditto.
8172 * config/powerpc/linux.mh: Ditto.
8173 * config/sparc/linux.mh: Ditto.
8175 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8177 * win32-nat.c: Add i386-tdep.h dependency.
8179 2002-01-07 Michael Snyder <msnyder@redhat.com>
8181 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8182 instead of bfd_get_arch_size. Don't bail out just because
8183 there's no exec_bfd.
8185 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8186 * p-valprint.c (pascal_object_print_value): Ditto.
8187 * somread.c (som_symtab_read): Ditto.
8188 * symfile.c (simple_free_overlay_region_table): Ditto.
8189 * valops.c (value_assign): Ditto.
8191 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8192 use tilde_expand and strerror for opening save-tracepoints file.
8194 * thread-db.c (thread_db_new_objfile): Indendation fix.
8196 * infptrace.c (GDB_MAX_ALLOCA): New define.
8197 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
8198 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
8199 can be overridden with whatever value is appropriate to the host).
8200 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8201 alloca to allocate potentially large buffer.
8202 * rs6000-nat.c (child_xfer_memory): Ditto.
8203 * symm-nat.c (child_xfer_memory): Ditto.
8204 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8206 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8208 From Nick Clifton <nickc@redhat.com>
8209 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8211 2002-01-07 Michael Snyder <msnyder@redhat.com>
8213 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8214 Don't use exec_bfd if it's NULL.
8216 2002-01-06 Mark Kettenis <kettenis@gnu.org>
8218 * valops.c (value_arg_coerce): Fix formatting.
8220 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8222 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8225 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8227 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8228 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8229 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8230 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8231 z8k-coff have not been multi-arched. Update z8k-coff build
8234 2002-01-06 Andrew Cagney <ac131313@redhat.com>
8236 * MAINTAINERS: Mark a29k target as obsolete.
8237 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8238 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8240 * NEWS: Note that a29k targets are obsolete.
8241 * a29k-tdep.c: Mark as obsolete.
8242 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8243 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8244 a29k-*-vxworks* targets as obsolete.
8245 * remote-adapt.c: Obsolete.
8246 * remote-eb.c: Obsolete.
8247 * remote-mm.c: Obsolete.
8248 * remote-udi.c: Obsolete.
8249 * config/a29k/a29k-udi.mt: Obsolete.
8250 * config/a29k/a29k.mt: Obsolete.
8251 * config/a29k/tm-a29k.h: Obsolete.
8252 * config/a29k/tm-vx29k.h: Obsolete.
8253 * config/a29k/vx29k.mt: Obsolete.
8255 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8257 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8258 with BFD_ENDIAN_BIG.
8260 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8262 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8263 * configure, config.in: Re-generate.
8264 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8265 * defs.h: Do not include <endian.h>.
8267 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8269 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8270 * config.in: Regenerate.
8271 * configure.in: Update copyright years.
8272 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8273 * configure: Regenerate.
8274 * i386bsd-nat.c: Update copyright years.
8275 (fill_gregset): Use regcache_collect.
8276 (fetch_inferior_registers): Only fetch integer registers
8277 if requested to do so. Add support for XMM registers
8278 using PT_GETXMMREGS.
8279 (store_inferior_registers): Only store integer registers
8280 if requested to do so. Add support for XMM registers
8281 using PT_SETXMMREGS.
8282 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8283 (store_inferior_registers): Remove.
8284 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8285 (fetch_elfcore_registers): New function.
8286 (i386nbsd_elfcore_fns): New.
8287 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8288 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8290 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8291 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8292 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8293 * config/i386/tm-nbsd.h: Update copyright years.
8294 (HAVE_SSE_REGS): Define.
8295 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8296 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8297 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8298 (SIGCONTEXT_PC_OFFSET): Remove.
8299 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8301 2002-01-05 Andrew Cagney <ac131313@redhat.com>
8303 * configure.tgt: Remove powerpc-*-macos* target.
8304 * config/m68k/xm-mpw.h: Delete file.
8305 * config/xm-mpw.h: Delete file.
8306 * ser-mac.c: Delete file.
8307 * mpw-make.sed: Delete file.
8308 * mpw-config.in: Delete file.
8309 * mac-xdep.c: Delete file.
8310 * mac-gdb.r: Delete file.
8311 * mac-defs.h: Delete file.
8312 * mac-nat.c: Delete file.
8313 * config/powerpc/macos.mh: Delete file.
8314 * config/powerpc/macos.mt: Delete file.
8315 * config/powerpc/nm-macos.h: Delete file.
8316 * config/powerpc/tm-macos.h: Delete file.
8317 * source.c (openp, open_source_file): Remove obsolete code.
8318 * top.c (gdb_readline): Ditto.
8319 * utils.c (query): Ditto.
8320 * event-top.c (display_gdb_prompt): Ditto.
8321 * Makefile.in (ser-mac.o): Delete obsolete target.
8324 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8326 * defs.h (BIG_ENDIAN): Delete macro definition.
8327 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8328 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8329 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8330 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8331 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8332 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8333 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8334 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8335 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8336 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8337 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8338 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8339 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8340 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8341 * gdbarch.c: Re-generate.
8343 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8345 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8348 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8350 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8352 2002-01-04 Andrew Cagney <ac131313@redhat.com>
8354 * value.h (value_ptr): Delete typedef.
8356 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8358 * i386nbsd-nat.c: Update copyright years.
8359 Include i386-tdep.h.
8361 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
8363 * stabsread.c: Update copyright years.
8365 From Debashis Mahata <debashis.mahata@wipro.com>:
8366 (read_struct_fields): Deal with Sun C compiler erroneous stab
8367 output for structs and unions.
8370 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8372 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8375 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8377 * cp-abi.c: Fix whitespace.
8378 (baseclass_offset): New wrapper function.
8379 * cp-abi.h (baseclass_offset): Add prototype.
8380 (struct cp_abi_ops): Add baseclass_offset pointer.
8382 * valops.c (vb_match): Move to...
8383 * gnu-v2-abi.c (vb_match): here.
8384 * valops.c (baseclass_offset): Move to...
8385 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8387 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8389 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8390 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8391 * hpacc-abi.c (init_hpacc_ops): Likewise.
8393 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
8395 * valops.c (find_overload_match): Accept obj as a
8396 reference parameter. Update it before returning.
8397 * value.h (find_overload_match): Update prototype.
8398 * eval.c (evaluate_subexp_standard): Pass object to
8399 find_overload_match by reference.
8401 2002-01-03 Andrew Cagney <ac131313@redhat.com>
8403 * valarith.c: Replace value_ptr with struct value pointer. Remove
8404 register attribute from value declarations.
8407 * scm-lang.c (scm_lookup_name): Ditto.
8409 2002-01-03 Michael Snyder <msnyder@redhat.com>
8411 Abstract the functionality of iterating over mapped memory
8412 regions into a general purpose iterator function.
8413 * procfs.c (iterate_over_mappings): New function, general purpose
8414 iterator for memory sections.
8415 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8416 (solib_mappings_callback): New function, callback for above.
8417 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8418 (info_mappings_callback): New function, callback for above.
8420 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8422 2002-01-01 Mark Kettenis <kettenis@gnu.org>
8424 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8425 * i386-tdep.c: Include "elf-bfd.h".
8426 (process_note_abi_tag_sections): New function.
8427 (i386_gdbarch_init): Add code to recognize various OS/ABI
8430 * maint.c (_initialize_maint_cmds): Add missing \ in
8433 For older changes see ChangeLog-2001
8439 version-control: never