1 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3 * regcache.c (regcache_raw_write_signed,
4 regcache_raw_write_unsigned): New functions.
5 * regcache.h (regcache_raw_write_signed,
6 regcache_raw_write_unsigned): New prototypes.
8 2002-08-25 Andrew Cagney <ac131313@redhat.com>
10 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
11 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
12 source file dependencies. Cleanup corresponding generator rules.
14 2002-08-25 Andrew Cagney <ac131313@redhat.com>
16 * regcache.h (register_offset_hack): Declare.
17 (regcache_cooked_read_using_offset_hack): Declare.
18 (regcache_cooked_write_using_offset_hack): Declare.
20 * regcache.c (register_offset_hack): New function.
21 (regcache_cooked_read_using_offset_hack): New function.
22 (regcache_cooked_write_using_offset_hack): New function.
23 (regcache_dump): Check that the registers, according to their
24 offset, are packed hard against each other.
25 (cooked_xfer_using_offset_hack): New function.
27 2002-08-25 Andrew Cagney <ac131313@redhat.com>
29 * regcache.c (struct regcache_descr): Add field register_type.
30 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
32 (init_regcache_descr): Initialize register_type. Pass the descr
33 to init_legacy_regcache_descr. Use register_type instead of
34 REGISTER_VIRTUAL_TYPE.
35 (register_type): New function.
36 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
37 * regcache.h (register_type): Declare.
39 2002-08-25 Andrew Cagney <ac131313@redhat.com>
41 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
42 instead of deprecated_store_return_value. Fix fallout from
43 2002-08-23 Andrew Cagney <cagney@redhat.com>.
45 2002-08-25 Andrew Cagney <ac131313@redhat.com>
47 * regcache.c (max_register_size): New function.
48 (init_legacy_regcache_descr): Ensure that max_register_size is
49 large enough for REGISTER_VIRTUAL_SIZE.
50 * regcache.h (max_register_size): Declare.
52 2002-08-24 Andrew Cagney <ac131313@redhat.com>
54 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
56 (e500_extract_return_value): Change type of valbuf pointer to
59 2002-08-24 Mark Kettenis <kettenis@gnu.org>
61 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
64 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
65 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
66 long long) to prevent compiler warning on 64-bit systems.
68 2002-08-23 Andrew Cagney <cagney@redhat.com>
70 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
71 (DEPRECATED_STORE_RETURN_VALUE): New method.
72 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
73 * gdbarch.h, gdbarch.c: Re-generate.
75 * values.c (set_return_value): Pass current_regcache to
77 * arch-utils.h (legacy_store_return_value): Declare.
78 * arch-utils.c (legacy_store_return_value): New function.
79 (legacy_extract_return_value): Update parameters.
81 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
83 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
84 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
85 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
86 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
87 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
88 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
89 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
90 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
91 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
92 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
94 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
95 * i386-tdep.c (i386_extract_return_value): Update.
96 * arch-utils.c (legacy_extract_return_value): Update.
97 * frv-tdep.c (frv_gdbarch_init): Update.
98 * cris-tdep.c (cris_gdbarch_init): Update.
99 * d10v-tdep.c (d10v_gdbarch_init): Update.
100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
101 * m68k-tdep.c (m68k_gdbarch_init): Update.
102 * mcore-tdep.c (mcore_gdbarch_init): Update.
103 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
104 * s390-tdep.c (s390_gdbarch_init): Update.
105 * sparc-tdep.c (sparc_gdbarch_init): Update.
106 * sh-tdep.c (sh_gdbarch_init): Update.
107 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
108 * v850-tdep.c (v850_gdbarch_init): Update.
109 * avr-tdep.c (avr_gdbarch_init): Update.
110 * ia64-tdep.c (ia64_gdbarch_init): Update.
111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
112 * vax-tdep.c (vax_gdbarch_init): Update.
113 * alpha-tdep.c (alpha_gdbarch_init): Update.
114 * arm-tdep.c (arm_gdbarch_init): Update.
115 * mips-tdep.c (mips_gdbarch_init): Update.
116 * i386-tdep.c (i386_gdbarch_init): Update.
118 2002-08-23 Andrew Cagney <ac131313@redhat.com>
120 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
121 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
123 2002-08-24 Mark Kettenis <kettenis@gnu.org>
125 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
128 2002-08-23 Joel Brobecker <brobecker@gnat.com>
130 * infrun.c (handle_inferior_event): Move a comment outside of a
131 function call, in order to avoid indent reformatting this part
132 of the code in an unreadable way.
134 2002-08-23 Grace Sainsbury <graces@redhat.com>
136 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
137 when breakpoints fail. Move general breakpoint error messages to
139 * breakpoint.c (insert_breakpoints): Change warnings when
140 breakpoints are nto inserted to specify the type. Remove call to
141 memory_error when hardware breakpoints can't be inserted. Remove
142 multiple calls to warning so all messages are sent to the user at
144 (delete_breakpoints): Make insert error messsages more explicit.
146 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
148 * ChangeLog: Move gdbserver entries after GDB 5.2 to
151 2002-08-23 Mark Kettenis <kettenis@gnu.org>
153 * i386-tdep.c: Include "objfiles.h".
154 (i386_svr4_init_abi): Set in_solib_call_trampoline and
155 skip_trampoline_code.
156 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
157 (CPLUS_MARKER): Define to '.'.
159 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
161 (linux_corefile_thread_callback): Increase args->num_notes.
162 (linux_make_note_section): Initialize thread_args.num_notes, and
163 use it to determine whether notes for any threads were created.
165 2002-08-23 Donn Terry <dterry@microsoft.com>
167 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
168 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
170 (write_with_trace): Conditionalize out the switch branch handling
171 PCSHOLD if the corresponding macro is not defined. Likewise for
173 This change will be needed by the Interix port.
175 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
177 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
179 (skip_prologue): Add support for BookE/e500 instructions.
180 (e500_extract_return_value): New function.
181 (frame_get_saved_regs): Add support for saving ev registers and
183 (e500_store_return_value): New function.
184 (rs6000_gdbarch_init): Move up default intializations of
185 deprecated_extract_return_value and store_return_value. Overwrite
186 init of store_return_value with e500 specific version.
187 Set extract_return_value for e500.
189 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
191 * blockframe.c (generic_call_dummy_register_unwind): Use
192 regcache_cooked_read to catch cases in which the variable is
193 stored in a pseudo register.
195 2002-08-22 Andrew Cagney <cagney@redhat.com>
197 * NEWS: Mention that the i960 has been made obsolete.
198 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
200 (remote-nrom.o): Obsolete target.
201 (remote-nindy.o, i960-tdep.o): Ditto.
202 * remote-nrom.c: Make file obsolete.
203 * remote-nindy.c, remote-vx960.c: Ditto.
204 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
205 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
206 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
207 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
208 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
209 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
210 i960-*-vxworks* obsolete.
211 * MAINTAINERS: Note that the i960 is obsolete.
213 2002-08-21 Corinna Vinschen <vinschen@redhat.com
215 * aix-thread.c (aix_thread_detach): Disable thread debugging on
216 detach to allow reinitialization.
218 2002-08-22 Andrew Cagney <ac131313@redhat.com>
220 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
223 2002-08-22 Jim Blandy <jimb@redhat.com>
225 * coffread.c (coff_symfile_read): Don't try to read the line
226 number table from disk if the image file doesn't have a symbol
227 table; we'll never actually look at the info anyway, and Windows
228 ships DLL's with bogus file offsets for the line number data.
230 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
232 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
235 2002-08-21 Michael Snyder <msnyder@redhat.com>
237 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
238 (MSYMBOL_SIZE): Replace macro with function.
239 (DEFAULT_MIPS_TYPE): Delete unused macro.
240 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
241 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
243 2002-08-21 Jim Blandy <jimb@redhat.com>
245 * valops.c (value_cast): Simplify and correct logic for doing a
246 static cast from a pointer to a base class to a pointer to a
249 2002-08-21 Andrew Cagney <ac131313@redhat.com>
251 * infcmd.c (default_print_registers_info): Replace
253 (registers_info): Use gdbarch_print_registers_info instead of
255 * inferior.h (default_print_registers_info): Replace
257 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
258 (DO_REGISTERS_INFO): Change to a predicate function.
259 * gdbarch.h, gdbarch.c: Regenerate.
261 2002-08-21 Keith Seitz <keiths@redhat.com>
263 * gdb-events.sh: Add target-changed event.
264 * gdb-events.c: Regenerated.
265 * gdb-events.c: Regenerated.
266 * valops.c (value_assign): Add target-changed event notification
267 to inlval_register, lval_memory, and lval_reg_frame_relative.
269 2002-08-21 Joel Brobecker <brobecker@gnat.com>
271 * NEWS: Add an entry regarding the improvement of the next/step
272 operation on Alpha Tru64 multi-processor machines.
274 2002-08-21 Andrew Cagney <ac131313@redhat.com>
276 * Makefile.in: Update dependencies for mi/ cli/ and tui/
278 * Makefile.in: Update all _h macro definitions.
279 * Makefile.in (install-gdbtk): Move to install section.
280 (rdi-share/libangsd.a): Move to end of file.
282 2002-08-19 Andrew Cagney <ac131313@redhat.com>
284 * frame.c (frame_register_unwind): When a register, set addrp to
287 2002-08-20 Michael Snyder <msnyder@redhat.com>
289 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
290 used locally, so move them from the target machine header to here.
291 (mips_set_processor_type, mips_register_name, mips32_next_pc,
292 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
294 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
296 2002-08-20 Andrew Cagney <cagney@redhat.com>
298 * NEWS: Mention that the Apollo line was made obsolete.
299 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
300 m68*-hp-hpux* obsolete.
301 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
302 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
303 * buildsym.c (make_blockvector): Make static.
304 * buildsym.h (make_blockvector): Make extern declaration obsolete.
305 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
306 (ALLDEPFILES): Remove dstread.c.
307 (dstread.o): Obsolete make rule.
308 * dstread.c: Makefile obsolete.
310 * config/m68k/hp300hpux.mt: Ditto.
311 * config/m68k/hp300hpux.mh: Ditto.
312 * config/m68k/hp300bsd.mt: Ditto.
313 * config/m68k/hp300bsd.mh: Ditto.
314 * config/m68k/apollo68b.mt: Ditto.
315 * config/m68k/apollo68v.mh: Ditto.
316 * config/m68k/apollo68b.mh: Ditto.
318 2002-08-20 Michael Snyder <msnyder@redhat.com>
320 * mips-tdep.c (mips_in_return_stub): Make static.
321 (mips_gdbarch_init): Set in_solib_return_trampoline.
322 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
324 2002-08-20 Michael Snyder <msnyder@redhat.com>
326 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
327 * gdbarch.c, gdbarch.h: Regenerate.
328 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
330 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
332 2002-08-20 Michael Snyder <msnyder@redhat.com>
334 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
335 (mips_gdbarch_init): Set skip_trampoline_code,
336 in_solib_call_trampoline.
337 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
338 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
340 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
342 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
344 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
345 vector type for ev registers.
346 (e500_pseudo_register_read): New function.
347 (e500_pseudo_register_write): New function.
348 (e500_dwarf2_reg_to_regnum): New function.
349 (PPC_UISA_NOFP_SPRS): New macro.
350 (PPC_EV_REGS): New macro.
351 (PPC_GPRS_PSEUDO_REGS): New macro.
352 (registers_e500): New register set for e500.
353 (variants): Add e500 variant.
354 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
355 before setting architectural dependent variations. Initialize ev
356 registers numbers. Add case for e500 architecture. Set the
357 number of pseudo registers.
359 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
361 * rs6000-tdep.c: Clean up comments.
363 2002-08-20 Andrew Cagney <cagney@redhat.com>
365 * h8300-tdep.c: Re-indent file.
367 2002-08-20 Jim Blandy <jimb@redhat.com>
369 * Makefile.in (LDFLAGS): Allow the configure script to establish a
372 2002-08-20 Keith Seitz <keiths@redhat.com>
374 * breakpoints.c (watch_command_1): Use internal breakpoint
375 when setting a watchpoint_scope breakpoint.
377 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
379 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
380 (build_builtin_type_vec64i): Ditto.
381 (build_builtin_type_vec128): Ditto.
382 (build_builtin_type_vec128i): Ditto.
384 2002-08-19 Michael Snyder <msnyder@redhat.com>
386 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
387 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
388 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
389 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
390 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
391 CALL_DUMMY_ADDRESS): Delete.
392 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
393 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
394 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
395 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
397 (mips_register_raw_size, mips_eabi_use_struct_convention,
398 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
399 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
400 mips_init_extra_frame_info, mips_eabi_push_arguments,
401 mips_n32n64_push_arguments, mips_push_return_address,
402 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
403 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
405 2002-08-19 Michael Snyder <msnyder@redhat.com>
407 * mips-tdep.c (mips_frame_num_args): New function.
408 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
409 frame_saved_pc, frame_args_address, frame_locals_address,
410 frame_num_args, and frame_args_skip.
411 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
412 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
413 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
414 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
416 2002-08-20 Michael Snyder <msnyder@redhat.com>
418 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
419 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
420 * mips-tdep.c (mips_store_struct_return): New function.
421 (mips_extract_struct_value_address): New function.
422 (mips_gdbarch_init): Set store_struct_return and
423 extract_struct_value_address.
425 2002-08-20 David Carlton <carlton@math.stanford.edu>
427 * dwarf2read.c (dwarf2_build_psymtabs): Check that
428 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
429 (read_file_scope): Check that line_header is nonzero before
430 decoding macro information.
432 2002-08-20 Mark Kettenis <kettenis@gnu.org>
434 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
435 flag the general-purpose registers as floating-point on targets
436 that don't support the floating-point registers.
438 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
440 * rs6000-tdep.c (altivec_register_p): Delete.
441 (rs6000_do_altivec_registers): Delete.
442 (rs6000_altivec_registers_info): Delete.
443 (rs6000_do_registers_info): Delete.
444 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
445 (rs6000_gdbarch_init): Remove setting of do_registers_info.
447 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
449 * infcmd.c (do_registers_info): Print vector registers in hex
451 (print_vector_info): Check that printing registers
453 (print_float_info): Ditto.
455 2002-08-20 Andrew Cagney <ac131313@redhat.com>
457 * mips-tdep.c (mips_gdbarch_init): Update.
458 (mips_o32_extract_return_value): Rewrite.
459 (mips_o32_store_return_value): Rewrite.
460 (mips_o32_xfer_return_value): New function.
461 (mips_xfer_register): Tweak debug print message. Allow for
462 buf_offset when dumping the value transfered.
464 2002-08-20 Andrew Cagney <ac131313@redhat.com>
466 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
467 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
468 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
469 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
470 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
472 2002-08-14 Michael Snyder <msnyder@redhat.com>
474 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
476 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
478 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
480 (P): New macro to define a register as a pseudo register.
481 (R, R4, R8, R16, FR32, R64, R0): Updated.
482 (struct variant): Add new fields for number of pseudo registers
483 and number of total registers.
484 (tot_num_registers): New macro replacing....
485 (num_registers): ...deleted macro.
486 (num_registers): New function.
487 (num_pseudo_registers): New function.
488 (variants): Update all variants to intialize new fields correctly.
489 Postpone initialization of number of pseudo regs and real regs.
490 (init_variants): New function.
491 (rs6000_gdbarch_init): Initialize variants. Update calculation of
494 2002-08-19 David Carlton <carlton@math.stanford.edu>
496 * valops.c (search_struct_field): Change error message to treat
497 return value of 0 from value_static_field as meaning that field is
499 (value_struct_elt_for_reference): Ditto.
500 * values.c (value_static_field): Treat an unresolved location the
501 same as a nonexistent symbol. Fix PR gdb/635.
502 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
503 enclosed. Fix PR gdb/574.
504 * MAINTAINERS: Add self to Write After Approval list.
506 2002-08-19 Andrew Cagney <ac131313@redhat.com>
508 * mips-tdep.c (mips_xfer_register): New function.
509 (mips_n32n64_extract_return_value): Rewrite.
510 (mips_gdbarch_init): For N32 and N64, set extract_return_value
511 instead of deprecated_extract_return_value.
513 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
515 * rs6000-tdep.c (TDEP): Delete macro.
516 (branch_dest): Replace use of TDEP macro with its body.
517 (rs6000_pop_frame): Ditto.
518 (rs6000_push_arguments): Ditto.
519 (rs6000_skip_trampoline_code): Ditto.
520 (rs6000_frame_saved_pc): Ditto.
521 (rs6000_frame_chain): Ditto.
522 (rs6000_register_name): Ditto.
523 (rs6000_register_byte): Ditto.
524 (rs6000_register_raw_size): Ditto.
525 (rs6000_register_virtual_type): Ditto.
526 (rs6000_register_convertible): Ditto.
527 (rs6000_convert_from_func_ptr_addr): Ditto.
529 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
531 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
533 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
534 MIPS_LINUX_JB_ELEMENT_SIZE.
535 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
536 for MAX_REGISTER_RAW_SIZE arrays.
537 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
538 MIPS_LINUX_JB_ELEMENT_SIZE.
540 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
542 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
544 2002-08-19 Aidan Skinner <aidan@velvet.net>
546 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
547 ada-valprint.c ada-tasks.c.
548 (YYFILES): Add ada-exp.y.
549 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
550 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
551 (ada-exp.tab.o): New target.
553 2002-08-18 Andrew Cagney <ac131313@redhat.com>
555 * regcache.c (regcache_xfer_part): New function.
556 (regcache_raw_read_part): New function.
557 (regcache_raw_write_part): New function.
558 (regcache_cooked_read_part): New function.
559 (regcache_cooked_write_part): New function.
560 * regcache.h (regcache_raw_read_part): Declare.
561 (regcache_raw_write_part): Declare.
562 (regcache_cooked_read_part): Declare.
563 (regcache_cooked_write_part): Declare.
565 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
567 * remote.c (remote_open_1): Add async_p.
568 (remote_async_open_1): Delete.
569 (open_remote_target): Delete.
570 (remote_open, extended_remote_open): Update calls to remote_open_1.
571 (remote_async_open, extended_remote_async_open): Call
572 remote_open_1 instead of remote_async_open_1.
574 2002-08-19 Mark Kettenis <kettenis@gnu.org>
576 * blockframe.c: Fix a few coding standard violations.
578 2002-08-19 Mark Kettenis <kettenis@gnu.org>
580 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
582 * config/i386/tm-i386sco5.h: ... here. File removed.
583 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
585 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
586 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
587 (TM_FILE): Set to tm-i386.h.
588 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
589 * config/i386/tm-i386v.h: Remove file.
590 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
591 instead of "i386/tm-i386v.h".
592 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
593 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
595 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
596 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
599 2002-08-18 Mark Kettenis <kettenis@gnu.org>
601 * config/i386/nm-i386v.h: Add protection against
603 (i386_register_u_addr): Remove prototype.
604 (register_u_addr): New prototype.
605 (REGISTER_U_ADDR): Redefine accordingly.
606 * i386v-nat.c: Improve several comments.
607 (i386_register_u_addr): Change signature and rename to
608 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
611 2002-08-18 Andrew Cagney <ac131313@redhat.com>
613 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
614 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
615 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
616 deprecated_extract_return_value.
617 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
618 rename mips_o32o64_push_arguments.
619 (mips_gdbarch_init): Update.
620 (mips_extract_return_value): Delete.
621 (mips_o32_extract_return_value): Clone mips_extract_return_value.
622 (mips_o64_extract_return_value): Clone mips_extract_return_value.
623 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
624 (mips_n32n64_extract_return_value): Clone
625 mips_extract_return_value.
626 (mips_store_return_value): Delete.
627 (mips_o32_store_return_value): Clone mips_store_return_value.
628 (mips_o64_store_return_value): Clone mips_store_return_value.
629 (mips_eabi_store_return_value): Clone mips_store_return_value.
630 (mips_n32n64_store_return_value): Clone mips_store_return_value.
632 2002-08-18 Aidan Skinner <aidan@velvet.net>
634 * ada-lang.c: Use gdb_string.h instead of <string.h>.
635 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
637 2002-08-18 Aidan Skinner <aidan@velvet.net>
639 * ada-lang.c: Run through gdb_indent.sh.
640 * ada-lang.h: Run through gdb_indent.sh.
641 * ada-tasks.c: Run through gdb_indent.sh.
642 * ada-typeprint.c: Run through gdb_indent.sh.
643 * ada-valprint.c: Run through gdb_indent.sh.
645 2002-08-18 Andrew Cagney <ac131313@redhat.com>
647 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
650 2002-08-18 Mark Kettenis <kettenis@gnu.org>
652 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
654 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
655 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
657 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
658 write_register_gen instead of write_register_bytes.
660 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
661 i[3456]-*-osf1mk* configurations have been made obsolete.
662 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
663 i[3456]86-*-osf1mk* hosts obsolete.
664 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
666 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
667 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
668 config/i386/i386m3.mt, config/i386/nm-m3.h,
669 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
670 config/i386/i386mk.mh, config/i386/i386mk.mt,
671 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
673 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
674 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
675 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
677 2002-08-18 Andrew Cagney <ac131313@redhat.com>
679 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
680 (hppa_value_returned_from_stack): Declare.
681 (hppa_extract_return_value): Declare.
682 * config/pa/hppa.mt: New file.
683 * configure.tgt: Recognize hppa*-*-*.
684 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
686 2002-08-18 Mark Kettenis <kettenis@gnu.org>
688 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
691 2002-08-17 Mark Kettenis <kettenis@gnu.org>
693 * top.c (gdb_rl_operate_and_get_next): Make sure
694 operate-and-get-next functions correctly even when the history
695 list is completely filled.
697 2002-08-18 Andrew Cagney <ac131313@redhat.com>
699 * MAINTAINERS (Target Instruction Set Architectures): Rename
700 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
701 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
702 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
703 already listed under Host/Native.
705 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
706 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
709 2002-08-17 Andrew Cagney <ac131313@redhat.com>
711 * config/ia64/ia64.mt: New file.
712 * config/alpha/alpha.mt: New file.
713 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
714 ia64-linux-gnu. Mention that ia64-elf is broken.
715 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
717 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
719 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
720 generic_func_frame_valid instead of func_frame_valid.
722 2002-08-16 Joel Brobecker <brobecker@gnat.com>
724 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
725 procfs appears to be broken when debugging on multi-processor
726 machines. So enable software single stepping in order to avoid
727 using the procfs interface to do next/step operations, using
728 internal breakpoints instead.
730 * infrun.c (handle_inferior_event): Readjust the stop_pc by
731 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
732 make this pc address equal to the value it would have if the
733 system stepping capability was used. Also set a new flag used
734 to ensure that we don't readjust the PC one more time later.
736 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
737 address by DECR_PC_AFTER_BREAK when software single step is
738 in use for this architecture, as this has already been taken
739 care of in handle_inferior_event().
741 2002-08-16 Joel Brobecker <brobecker@gnat.com>
743 * infrun.c (handle_inferior_event): Minor reformatting, to make
744 a rather long condition expression easier to read.
746 2002-08-16 Andrew Cagney <ac131313@redhat.com>
748 * Makefile.in (gdbtk.o): Move to end of file.
749 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
750 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
751 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
752 (gdbtk-wrapper.o, gdbres.o): Ditto.
754 2002-08-16 Andrew Cagney <ac131313@redhat.com>
756 * Makefile.in (copying.o): Separate out compile rule.
757 (hpux-thread.o, procfs.o, signals.o): Ditto.
758 (v850ice.o, z8k-tdep.o): Ditto.
759 (tui-file.o): Move to TUI section.
760 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
761 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
763 2002-08-16 Joel Brobecker <brobecker@gnat.com>
765 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
766 skip_trampoline_code, for better namespace-proofing.
768 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
770 2002-08-16 Joel Brobecker <brobecker@gnat.com>
772 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
774 2002-08-16 Joel Brobecker <brobecker@gnat.com>
776 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
777 signal, check whether we hit a breakpoint before checking for a
778 single step breakpoint. Otherwise, GDB fails to notice that a
779 breakpoint has been hit when stepping onto a breakpoint.
781 2002-08-16 Keith Seitz <keiths@redhat.com>
783 * gdb-events.sh (clear_gdb_event_hooks): New function.
784 * gdb-events.c: Regenerate.
785 * gdb-events.h: Regenerate.
787 2002-08-16 Andrew Cagney <ac131313@redhat.com>
789 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
791 * breakpoint.h (bpstat_stop_status): Add parameter names.
793 2002-08-16 Grace Sainsbury <graces@redhat.com>
795 * remote.c (remote_insert_hw_breakpoint)
796 (remote_remove_hw_breakpoint): Fix calculation of length field
799 2002-08-15 Michael Snyder <msnyder@redhat.com>
801 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
802 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
803 (supply_fpregset): Ditto.
805 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
806 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
807 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
808 (TARGET_READ_SP): Delete.
809 (DO_REGISTERS_INFO): Delete.
810 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
812 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
813 from macros to functions.
815 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
816 (mips_register_convertible, mips_register_convert_to_virtual,
817 mips_register_convert_to_raw): Make static.
818 (mips_read_sp): New function.
819 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
820 (mips_do_registers_info): Make static.
821 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
822 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
823 (mips_register_convert_from_type, mips_register_convert_to_type):
825 (mips_gdbarch_init): Set up function_start_offset,
826 register_virtual_size, pc_in_sigtramp.
828 2002-08-15 Andrew Cagney <ac131313@redhat.com>
830 * infcmd.c (vector_info): New function.
831 (_initialize_infcmd): Add command "info vector".
832 (print_vector_info): New function.
834 * gdbarch.sh (PRINT_VECTOR_INFO): New method
835 * gdbarch.h, gdbarch.c: Regenerate.
837 2002-08-15 Andrew Cagney <ac131313@redhat.com>
839 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
840 ``print_all''. Only print vector registers when ``print_all''.
842 2002-08-15 Andrew Cagney <ac131313@redhat.com>
844 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
845 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
847 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
848 Add `args' parameter.
849 * gdbarch.h, gdbarch.c: Regenerate.
851 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
853 * infcmd.c (float_info): Call print_float_info.
854 (print_float_info): New function. By default, print the
855 floating-point registers.
857 * arch-utils.h (default_print_float_info): Delete declaration.
858 * arch-utils.c (default_print_float_info): Delete function.
860 2002-08-16 Mark Kettenis <kettenis@gnu.org>
862 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
865 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
868 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
869 * configure.host: Make i[3456]86-*-aix host obsolete.
870 * configure.tgt: Make i[3456]86-*-aix target obsolete.
871 * config/i386/i386aix.mh, config/i386/i386aix.mt,
872 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
873 config/i386/xm-i386aix.h: Make files obsolete.
874 * i386aix-nat.c: Make file obsolete.
875 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
876 (i386aix-nat.o): Make target obsolete.
878 * config/i386/nm-gnu.h: Removed.
879 * config/i386/nm-i386gnu.h: New file.
880 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
881 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
883 * config/i386/tm-i386gnu.h: ... here. Removed.
884 * config/i386/xm-i386gnu.h: Removed.
885 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
886 (NAT_FILE): Set to nm-i386gnu.h.
887 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
888 * i386-tdep.c: New file.
889 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
890 (i386gnu-tdep.o): Specify dependencies.
892 2002-08-15 Mark Kettenis <kettenis@gnu.org>
894 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
895 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
896 Adjust a few comments to reflect reality a bit closer.
897 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
898 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
899 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
900 target_insert_watchpoint, target_remove_watchpoint):
902 * config/i386/nm-i386sco5.h: ... here.
903 (kernel_u_size): Add prototype. Improve a few comments and add
904 protection against multiple inclusion.
906 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
909 * uw-thread.c (SP_ARG0): Define if not already defined.
910 * config/i386/tm-i386.h (SO_ARG0): Remove define.
912 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
914 * config/i386/tm-i386.h: Don't include "regcache.h".
916 * i387-tdep.h (i387_print_float_info): New prototype.
917 * i387-tdep.c (print_i387_value, print_i387_ext,
918 print_i387_status_word, print_i387_control_word): Add `struct
919 ui_file *' argument and use it for output.
920 (i387_print_float_info): Renamed from i387_float_info. Add
921 `struct gdbarch *' and `struct ui_file *' arguments and use the
923 * i386-tdep.c: Include "i387-tdep.h".
924 (i386_gdbarch_init): Set print_float_info.
925 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
926 (FLOAT_INFO): Remove define.
928 2002-08-13 Michael Snyder <msnyder@redhat.com>
930 * mips-tdep.c (mips_push_arguments): Rename to
931 mips_eabi_push_arguments, and tune for EABI.
932 (MIPS_REGS_HAVE_HOME_P): Delete.
933 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
934 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
935 Delete references to mips_regs_have_home_p.
937 2002-08-14 Keith Seitz <keiths@redhat.com>
939 * Makefile.in (install-gdbtk): Create insight plugin directory.
940 Install plugins.tcl file.
942 2002-08-14 Keith Seitz <keiths@redhat.com>
944 * configure.in: Move SUBDIRS to near top of the file so that
945 --enable options may add things to it.
946 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
947 * configure: Regenerate.
949 2002-08-13 Michael Snyder <msnyder@redhat.com>
951 * mips-tdep.c (mips_o32o64_push_arguments): New function,
952 cloned from mips_push_arguments, tuned for o32/o64 ABI.
953 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
955 2002-08-13 Andrew Cagney <ac131313@redhat.com>
957 * vax-tdep.c (vax_get_saved_register): Delete function.
958 (vax_gdbarch_init): Update.
959 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
960 (ns32k_gdbarch_init): Update.
961 * alpha-tdep.c (alpha_get_saved_register): Delete function.
962 (alpha_gdbarch_init): Update.
964 2002-08-13 Andrew Cagney <cagney@redhat.com>
966 * regcache.c (init_regcache_descr): Overallocate the
967 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
968 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
970 (set_register_cached): Add range checking assertions. Use
973 2002-08-13 Mark Kettenis <kettenis@gnu.org>
975 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
976 numbers for MMX registers.
978 2002-08-13 Andrew Cagney <cagney@redhat.com>
980 * i386-tdep.c (i386_gdbarch_init): Use
981 generic_unwind_get_saved_register.
983 2002-08-13 Kevin Buettner <kevinb@redhat.com>
985 * procfs.c (procfs_can_use_hw_breakpoint): New function.
986 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
988 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
989 Delete. Add comment regarding this now-deleted target method.
991 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
993 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
994 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
995 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
996 real PC and the page number (if it's within the memory bank window).
997 (m68hc11_pseudo_register_write): Likewise when saving.
998 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
999 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1000 (m68hc11_register_raw_size): And use 32-bit for it.
1001 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1002 16K memory bank is used by the prog; also use the virtual pc.
1004 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1006 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1007 (m68hc11_gdbarch_init): Install it in gdbarch.
1008 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1009 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1010 (MSYMBOL_SIZE): New for documentation.
1011 (insn_return_kind): Enum to specify how a function returns.
1012 (frame_extra_info): Cleanup and record the return mode.
1013 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1014 register in address computation.
1015 (m68hc11_get_return_insn): New to obtain the return instruction used
1017 (m68hc11_frame_init_saved_regs): Take into account the return
1018 instruction used by the function for far and interrupt functions.
1019 (m68hc11_init_extra_frame_info): Take into account page register.
1020 (m68hc11_frame_args_address): Adjust according to the return mode.
1021 (show_regs): Print page register only when it's used.
1023 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1025 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1026 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1027 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1029 (m68hc11_register_raw_size): Likewise.
1031 2002-08-13 Andrew Cagney <cagney@redhat.com>
1033 * i386-tdep.c (i386_register_name): Handle mmx registers.
1034 (mmx_regnum_p): New function.
1035 (i386_mmx_names): New array.
1036 (mmx_num_regs): New variable.
1037 (i386_pseudo_register_read): New function.
1038 (i386_pseudo_register_write): New function.
1039 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1041 * regcache.c (regcache_raw_read_unsigned): New function.
1042 (regcache_raw_read_signed): New function.
1043 * regcache.h (regcache_raw_read_unsigned): Declare.
1044 (regcache_raw_read_signed): Declare.
1046 2002-08-13 Andrew Cagney <cagney@redhat.com>
1048 * regcache.c (regcache_raw_read_as_address): Delete function.
1049 (regcache_cooked_read_signed): New function.
1050 (regcache_cooked_read_unsigned): New function.
1051 * regcache.h (regcache_cooked_read_signed): Declare.
1052 (regcache_cooked_read_unsigned): Declare.
1053 (regcache_raw_read_as_address): Delete declaration.
1055 * blockframe.c (generic_read_register_dummy): Use
1056 regcache_cooked_read_unsigned.
1057 * i386-tdep.c (i386_extract_struct_value_address): Use
1058 regcache_cooked_read_unsigned.
1060 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1063 double sizes according to ELF ABI flags.
1064 (gdbarch_tdep): Record elf_flags.
1066 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1068 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1069 (m6812_prolog): They can appear in 68HC12 function prologue.
1070 (m68hc11_frame_chain): Cleanup.
1072 2002-08-12 Andrew Cagney <cagney@redhat.com>
1074 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1076 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1077 (i386_linux_register_raw_size): Delete function.
1078 (i386_linux_init_abi): Update.
1079 * i386-tdep.c (i386_register_raw_size): Delete function.
1080 (i386_register_byte): Delete function.
1081 (i386_gdbarch_init): Update.
1082 (i386_register_size): Delete array.
1083 (i386_register_offset): Delete array.
1085 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1086 (REGISTER_RAW_SIZE): Delete macro.
1087 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1088 (REGISTER_BYTE): Delete macro.
1090 2002-08-11 Aidan Skinner <aidan@velvet.net>
1092 * ada-lang.c (ada_lookup_partial_symbol)
1093 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1094 prototype names so that grep ^func works properly.
1096 * ada-lang.c (ada_array_element_type)
1097 (ada_lookup_partial_symbol): Fix typos in parameter list.
1099 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1100 Fix prototype names so that grep ^func works properly.
1102 2002-08-10 Andrew Cagney <cagney@redhat.com>
1103 Elena Zannoni <ezannoni@redhat.com>
1104 Martin M. Hunt <hunt@redhat.com>
1106 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1107 (build_builtin_type_vec128i): Set the vector bit.
1108 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1109 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1110 (build_builtin_type_vec64): New function.
1111 (build_builtin_type_vec64i): New function.
1112 (build_gdbtypes): Initialize builtin_type_vec64 and
1113 builtin_type_vec64i.
1115 2002-08-09 Andrew Cagney <cagney@redhat.com>
1117 * regcache.c (regcache_dump): Compare the register offset
1119 * arch-utils.c (generic_register_byte): New function.
1120 * arch-utils.h (generic_register_byte): Declare.
1121 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1122 * gdbarch.h, gdbarch.c: Regenerate.
1124 2002-08-09 Andrew Cagney <cagney@redhat.com>
1126 * regcache.c: Include "gdbcmd.h"
1127 (_initialize_regcache): Add commands "maintenance print
1128 registers", "maintenance print raw-registers" and "maintenance
1129 print cooked-registers".
1130 (enum regcache_dump_what): Define.
1131 (dump_endian_bytes): New function.
1132 (regcache_dump): New function.
1133 (regcache_print): New function.
1134 (maintenance_print_registers): New function.
1135 (maintenance_print_raw_registers): New function.
1136 (maintenance_print_cooked_registers): New function.
1137 * Makefile.in (regcache.o): Update dependencies.
1139 2002-08-09 Michael Snyder <msnyder@redhat.com>
1141 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1142 (mips_push_arguments): Correct some comments. Use paddr_nz
1143 for printing addresses in debug output. Replace static
1144 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1145 (mips_n32n64_push_arguments): New function, cloned from
1146 mips_push_arguments and tuned for the n32/n64 ABI.
1147 (mips_push_register): Buffer needs dynamic allocation.
1148 (mips_print_register): Ditto.
1149 (do_gp_register_row): Ditto.
1150 (mips_store_return_value): Ditto.
1151 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1153 2002-08-09 Don Howard <dhoward@redhat.com>
1155 * memattr.c (mem_info_command): Print special case of upper bound
1156 as max CORE_ADDR + 1.
1158 2002-08-08 Michael Snyder <msnyder@redhat.com>
1160 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1161 returns structs by ref if they're too big to fit in two registers.
1163 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1165 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1167 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1168 mips_find_saved_regs().
1169 (mips_pop_frame): Likewise.
1171 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1173 * blockframe.c (frame_saved_regs_register_unwind): Revise
1174 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1177 2002-08-09 Grace Sainsbury <graces@redhat.com>
1179 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1180 T-packets; the 'a' is not taken as a register number.
1181 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1182 (remote_stopped_data_address): New functions; add to target
1184 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1185 prototypes to match other implementations of this
1186 function. replace integer argument with pointer -- the length
1187 field in the Z-packet is the length of what is pointed to or 1 if
1188 pointer is null. Add to target vector.
1189 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1193 * remote.c (remote_wait): Add support to extract optional
1194 watchpoint information from T-packet. Ignore unrecognized
1195 optional info in T-packet.
1196 (remote_async_wait): Ditto.
1198 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1200 * cli/cli-dump.c: Change fopen modes to use binary open modes
1201 as defined in include/fopen-bin.h throughout.
1203 2002-08-08 Michael Snyder <msnyder@redhat.com>
1205 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1207 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1209 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1210 assertion failure by returning early after a warning.
1212 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1214 * mips-tdep.c (mips_find_saved_regs): Make static.
1215 (mips_frame_init_saved_regs): New function.
1216 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1217 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1218 (mips_find_saved_regs): Delete declaration.
1220 2002-08-08 Grace Sainsbury <graces@redhat.com>
1222 * remote.c (remote_wait, remote_async_wait): Change
1223 thread_num from int to ULONGEST.
1224 (unpack_varlen_hex): Change result parameter from
1225 int * to ULONGEST *.
1227 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1229 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1230 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1232 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1234 2002-08-08 Andrew Cagney <cagney@redhat.com>
1236 * gcore.c (override_derive_stack_segment): Delete variable.
1237 (preempt_derive_stack_segment): Delete function.
1238 (derive_stack_segment): Delete function.
1239 (default_derive_stack_segment): Renamed to derive_stack_segment.
1240 (override_derive_heap_segment): Delete variable.
1241 (preempt_derive_heap_segment): Delete function.
1242 (derive_heap_segment): Delete function.
1243 (default_derive_heap_segment): Rename to derive_heap_segment.
1245 2002-08-06 Michael Snyder <msnyder@redhat.com>
1247 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1248 * mips-tdep.c (mips_EABI_use_struct_convention,
1249 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1250 New functions. (mips_use_struct_convention): Delete.
1251 (mips_gdbarch_init): set use_gdbarch_convention.
1253 2002-08-06 Michael Snyder <msnyder@redhat.com>
1255 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1256 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1257 mips_o32_reg_struct_has_addr): New functions.
1258 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1260 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1262 * regcache.c (pseudo_register): Delete function.
1263 (fetch_register): Delete function.
1264 (store_register): Delete function.
1265 (regcache_raw_read, legacy_read_register_gen): Use
1266 target_fetch_registers instead of fetch_register.
1267 (legacy_write_register_gen, regcache_raw_write): Use
1268 target_store_register instead of store_register.
1269 (write_register_bytes): Ditto.
1271 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1272 (STORE_PSEUDO_REGISTER): Delete.
1273 * gdbarch.h, gdbarch.c: Regenerate.
1275 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1277 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1278 write dump file binary.
1280 2002-08-05 Michael Snyder <msnyder@redhat.com>
1282 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1283 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1284 (mips_gdbarch_init): Set N32 target to be mips64.
1286 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1288 * frame.c (find_saved_register): Break out of loop once saved
1289 register address is found. Don't mention sparc in loop comment
1292 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1294 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1295 mips_default_saved_regsize to 8.
1297 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1299 * gcore.c: Do not include <sys/procfs.h>.
1300 * Makefile.in (gcore.o): Update dependencies.
1302 2002-08-06 Andrew Cagney <cagney@redhat.com>
1304 * configure.tgt: Make arc-*-* obsolete.
1305 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1306 * MAINTAINERS: Make arc-elf obsolete.
1307 * arc-tdep.c: Make file obsolete.
1308 * config/arc/arc.mt: Ditto.
1309 * config/arc/tm-arc.h: Ditto.
1311 2002-08-05 Theodore A. Roth <troth@verinet.com>
1313 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1315 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1317 * mcore-tdep.c (mcore_gdbarch_init): Use
1318 generic_unwind_get_saved_register instead of
1319 generic_get_saved_register.
1320 * v850-tdep.c (v850_gdbarch_init): Ditto.
1321 * frv-tdep.c (frv_gdbarch_init): Ditto.
1322 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1323 * s390-tdep.c (s390_gdbarch_init): Ditto.
1324 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1325 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1326 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1328 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1330 * objfiles.h: Add missing #include "symfile.h"
1332 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1334 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1336 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1337 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1340 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1342 * NEWS: Cleanup and nitpick.
1344 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1346 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1348 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1350 * Makefile.in (gdbtk-bp.o): Update dependencies.
1351 (gdbtk-register.o): Ditto.
1352 (gdbtk-varobj.o): Ditto.
1354 2002-08-03 Andrew Cagney <cagney@redhat.com>
1356 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1357 m68hc11_fetch_pseudo_register.
1358 (m68hc11_pseudo_register_write): Replace
1359 m68hc11_store_pseudo_register.
1360 (m68hc11_gdbarch_init): Update.
1362 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1364 * gdbarch.sh: Include "gdb_string.h".
1365 * gdbarch.c: Regenerate.
1367 * regcache.c: Include "gdb_string.h".
1368 * ax-general.c: Ditto.
1370 * std-regs.c: Ditto.
1371 * fbsd-proc.c: Ditto.
1374 * Makefile.in (regcache.o): Update dependencies.
1375 (thread.o, gdbarch.o): Ditto.
1376 (ax-general.o, gdbarch.o): Ditto.
1377 (varobj.o, std-regs.o): Ditto.
1378 (fbsd-proc.o): Specify dependencies.
1380 2002-08-02 Andrew Cagney <cagney@redhat.com>
1382 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1384 (regcache_cooked_write): Ditto.
1386 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1388 * regcache.c (regcache_cooked_read): New function.
1389 (regcache_cooked_write): New function.
1390 (read_register_gen): Rewrite using regcache_cooked_read.
1391 (write_register_gen): Rewrite using regcache_cooked_write.
1393 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1396 2002-08-02 Andrew Cagney <cagney@redhat.com>
1398 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1399 Replace the architecture methods register_read and register_write.
1400 * gdbarch.h, gdbarch.c: Regenerate.
1401 * regcache.c (init_regcache_descr): Update.
1402 (read_register_gen): Update.
1403 (write_register_gen): Update.
1404 (supply_register): Update comment.
1406 * sh-tdep.c (sh_gdbarch_init): Update.
1407 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1408 `regcache' and `gdbarch' parameters. Make `buffer' a void
1409 pointer. Update code.
1410 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1411 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1412 void pointer. Update code.
1413 (sh64_register_write): Delete.
1414 (sh4_register_read): Delete.
1415 (sh64_register_read): Delete.
1416 (sh4_register_write): Delete.
1417 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1418 void pointer, `to' parameter a void pointer.
1419 (sh_sh64_register_convert_to_raw): Ditto.
1421 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1423 * mips-tdep.c (mips_register_virtual_type): Use architecture
1424 invariant return values.
1426 2002-08-01 Andrew Cagney <cagney@redhat.com>
1428 * linux-proc.c: Include "gdb_string.h".
1429 * Makefile.in (linux-proc.o): Update dependency list.
1431 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1433 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1436 2002-08-01 Grace Sainsbury <graces@redhat.com>
1438 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1439 to_insert_watchpoint, to_remove_watchpoint,
1440 to_stopped_by_watchpoint, to_stopped_data_address,
1441 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1442 target vecctor. Define their corresponding macros so they call
1445 * target.c: Add default and debug versions of for
1446 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1447 to_insert_watchpoint, to_remove_watchpoint,
1448 to_stopped_by_watchpoint, to_stopped_data_address,
1449 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1451 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1453 * mips-tdep.c (mips_register_virtual_type): New function.
1454 (mips_gdbarch_init): Register mips_register_virtual_type()
1455 with gdbarch machinery.
1456 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1457 this file instead of tm-bigmips.h.
1458 (MIPS_REGSIZE): Delete this macro.
1459 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1460 multiarch version in mips-tdep.c will be found.
1462 2002-08-01 Andrew Cagney <cagney@redhat.com>
1464 * NEWS: Menion that CHILL has been made obsolete.
1466 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1467 * stabsread.c (read_range_type): Ditto.
1468 * gdbtypes.h: Ditto.
1469 * language.c (binop_type_check): Ditto.
1470 (binop_result_type): Ditto.
1471 (integral_type): Ditto.
1472 (character_type): Ditto.
1473 (string_type): Ditto.
1474 (boolean_type): Ditto.
1475 (structured_type): Ditto.
1476 (lang_bool_type): Ditto.
1477 (binop_type_check): Ditto.
1478 * language.h (_LANG_chill): Ditto.
1479 * dwarfread.c (set_cu_language): Ditto.
1480 * dwarfread.c (CHILL_PRODUCER): Ditto.
1481 * dwarfread.c (handle_producer): Ditto.
1482 * expression.h (enum exp_opcode): Ditto.
1483 * eval.c: Ditto for comments.
1484 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1485 * expprint.c (print_subexp): Ditto.
1486 (print_subexp): Ditto.
1487 * valops.c (value_cast): Ditto.
1488 (search_struct_field): Ditto.
1489 * value.h (COERCE_VARYING_ARRAY): Ditto.
1490 * symfile.c (init_filename_language_table): Ditto.
1491 (add_psymbol_with_dem_name_to_list): Ditto.
1492 * valarith.c (value_binop): Ditto.
1494 * valops.c (value_slice): Ditto.
1495 * symtab.h (union language_specific): Ditto.
1496 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1497 (SYMBOL_DEMANGLED_NAME): Ditto.
1498 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1499 * defs.h (enum language): Ditto.
1500 * symtab.c (got_symtab): Ditto.
1501 * utils.c (fprintf_symbol_filtered): Ditto.
1503 * ch-typeprint.c: Make file obsolete.
1504 * ch-valprint.c: Make file obsolete.
1505 * ch-lang.h: Make file obsolete.
1506 * ch-exp.c: Make file obsolete.
1507 * ch-lang.c: Make file obsolete.
1509 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1511 (TARGET_FLAGS_TO_PASS): Ditto.
1512 (CHILLFLAGS): Obsolete.
1514 (CHILL_FOR_TARGET): Obsolete.
1515 (CHILL_LIB): Obsolete.
1516 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1518 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1519 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1521 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1524 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1526 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1527 This does not change anything at the moment, but will be helpful
1528 later when full Ada support is integrated.
1530 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1532 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1535 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1537 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1538 and save it in a local variable. Use variable in later test.
1540 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1542 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1543 test. (Thanks to Daniel Jacobowitz.)
1545 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1547 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1548 (mips_abi_strings): Add "n64".
1549 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1551 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1553 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1554 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1556 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1558 * utils.c (host_pointer_to_address, address_to_host_pointer):
1559 Use gdb_assert() instead of explicit call to internal_error().
1561 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1563 * Makefile.in (rs6000-nat.o): Update dependencies.
1565 From Nicholas Duffek:
1566 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1567 (aix-thread.o): New rule.
1568 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1569 * config/powerpc/aix432.mh: New file.
1571 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1573 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1574 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1575 (fetch_core_registers, ppc_linux_supply_gregset)
1576 (ppc_linux_supply_fpregset): New functions.
1577 (ppc_linux_regset_core_fns): New.
1578 (_initialize_ppc_linux_tdep): Call add_core_fns.
1579 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1580 and ppc_linux_supply_gregset.
1581 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1582 (supply_fpregset): Call ppc_linux_supply_fpregset.
1583 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1585 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1587 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1589 * symtab.c (lookup_symbol): Demangle before lowercasing.
1591 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1593 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1595 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1596 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1597 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1598 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1600 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1601 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1602 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1603 (avr-tdep.o, mon960-rom.o): Ditto.
1604 (aout_stabs_gnu_h): Define.
1605 (symtab_h): Remove $(gdb_obstack_h).
1607 2002-07-30 Jim Blandy <jimb@redhat.com>
1609 Patch from David Carlton <carlton@math.stanford.edu>:
1610 * gdbinit.in: Move the `dir' commands that add GDB's own source
1611 directory to the search path to the end, so that the `gdb' source
1612 directory will be searched first.
1614 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1616 * gdb_obstack.h: New file.
1617 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1618 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1619 * objfiles.h: Include "gdb_obstack.h".
1620 * Makefile.in (gdb_obstack_h): Define.
1621 (symtab_h): Add $(gdb_obstack_h).
1622 (objfiles_h): Add $(gdb_obstack_h).
1624 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1625 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1626 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1627 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1628 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1629 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1630 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1631 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1633 * Makefile.in (bcache.o): Update dependencies.
1634 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1635 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1636 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1637 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1638 (stabsread.o, symfile.o, symmisc.o): Ditto.
1639 (symtab.o, typeprint.o, macroexp.o): Ditto.
1640 (macrotab.o, mdebugread.o): Ditto.
1641 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1642 (coff_ecoff_h, aout_aout64_h): Define.
1643 (aout_stabs_gnu_h, libaout_h): Define.
1645 2002-07-29 Andrew Cagney <cagney@redhat.com>
1647 * regcache.c (struct regcache_descr): Rename nr_registers to
1648 nr_cooked_registers. Revise comments describing the structure
1650 (init_regcache_descr): Update.
1651 (init_legacy_regcache_descr): Update.
1652 (read_register_gen, write_register_gen): When a cooked register in
1653 the raw register range, directly access the value from the raw
1656 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1658 * z8k-tdep.c: Do not include "obstack.h".
1659 * h8300-tdep.c, h8500-tdep.c: Ditto.
1660 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1661 * valprint.c, v850-tdep.c: Ditto.
1662 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1663 * mn10200-tdep.c: Ditto.
1665 * Makefile.in (z8k-tdep.o): Update dependencies.
1666 (m68hc11-tdep.o, valprint.o): Ditto.
1667 (v850-tdep.o, d10v-tdep.o): Ditto.
1668 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1669 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1670 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1671 (sh_opc_h, gdb_sim_sh_h): Define.
1672 (elf_sh_h, elf_bfd_h): Define.
1673 (opcode_m68hc11_h): Define.
1674 (OPCODES_SRC, OPCODES_DIR): define.
1675 (OPCODES): Use $(OPCODES_DIR).
1676 (gdb_sim_d10v_h): Rename sim_d10v_h.
1677 (gdb_sim_arm_h): Rename sim_arm_h.
1679 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1681 * utils.c (host_pointer_to_address, address_to_host_pointer):
1682 Change internal_error() message to indicate function responsible
1685 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1687 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1688 calls to local_hex_string_custom().
1690 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1692 * irix5-nat.c: Move IRIX shared library support from here...
1693 * solib-irix.c: ...to here. Revised substantially to work with
1694 generic solib framework.
1696 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1697 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1698 * mips-irix-tdep.c: New file.
1700 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1701 (mips-irix-tdep.o, solib-irix.o): New rules.
1702 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1704 * config/mips/irix6.mt (TDEPFILES): Likewise.
1705 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1707 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1709 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1710 disabled (via ``#if 0'') includes.
1712 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1714 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1715 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1716 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1717 Add support for the fpscr register.
1718 * rs6000-nat.c (regmap, fetch_inferior_registers)
1719 (store_inferior_registers, fetch_core_registers): Likewise.
1721 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1723 * rs6000-nat.c (language.h): Include.
1724 (special_regs): Delete this array.
1725 (regmap): New function.
1726 (fetch_register, store_register): Use regmap() to map gdb
1727 register numbers to ptrace register numbers. Also, use
1728 outputs from regmap() to make decisions regarding type of
1729 ptrace() call to make. In particular, don't compare against
1730 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1731 (fetch_inferior_registers, store_inferior_registers): Where
1732 possible, obtain register numbers from tdep struct. Don't
1733 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1734 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1735 (LAST_UISA_SP_REGNUM): Delete.
1737 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1739 * rs6000-nat.c (ppc-tdep.h): Include.
1740 (fetch_registers, store_register, fetch_core_registers): Don't
1741 access registers[] directly. Instead, use supply_register() or
1742 regcache_collect() as appropriate.
1743 (find_toc_address): Format hex address with local_hex_string().
1745 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1747 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1750 2002-07-24 Tom Tromey <tromey@redhat.com>
1752 * jv-exp.y: Marked all strings with _().
1753 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1755 (MethodInvocation, CastExpression, parse_number, yyerror,
1756 java_type_from_name, push_expression_name, yylex): Typo fixes.
1758 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1760 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1761 (tee_file_flush, tee_file_write, tee_file_fputs)
1762 (tee_file_isatty): New.
1763 * ui-file.h (tee_file_new): Add prototype.
1765 2002-07-24 Aidan Skinner <aidan@velvet.net>
1767 * ada-lang.c: Change k&r style function definitions to prototyped
1769 * ada-typeprint.c: Change k&r style function definitions to prototyped
1771 * ada-valprint.c: Change k&r style function definitions to prototyped
1774 2002-07-24 Andrew Cagney <cagney@redhat.com>
1776 * README: Remove reference to remote-bug.
1777 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1779 (m88k-nat.o): Delete rule.
1780 (m88k-tdep.o): Delete rule.
1781 (remote-bug.o): Delete rule.
1782 * MAINTAINERS: Mark as obsolete.
1783 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1784 * m88k-tdep.c: Make file obsolete.
1785 * config/m88k/m88k.mh: Ditto.
1786 * config/m88k/delta88v4.mh: Ditto.
1787 * config/m88k/delta88v4.mt: Ditto.
1788 * config/m88k/delta88.mt: Ditto.
1789 * config/m88k/delta88.mh: Ditto.
1790 * remote-bug.c: Ditto.
1791 * config/m88k/tm-delta88.h: Ditto.
1792 * config/m88k/nm-delta88v4.h: Ditto.
1793 * config/m88k/xm-delta88.h: Ditto.
1794 * config/m88k/xm-dgux.h: Ditto.
1795 * config/m88k/tm-m88k.h: Ditto.
1796 * config/m88k/nm-m88k.h: Ditto.
1797 * config/m88k/tm-delta88v4.h: Ditto.
1798 * m88k-nat.c: Ditto.
1799 * cxux-nat.c: Ditto.
1800 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1801 and m88*-*-* obsolete.
1802 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1805 2002-07-24 Andrew Cagney <cagney@redhat.com>
1807 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1808 constant. Same for local pointer variables.
1809 (extract_signed_integer): Ditto.
1810 * defs.h (extract_unsigned_integer): Update.
1811 (extract_signed_integer): Update.
1813 2002-07-24 Andrew Cagney <cagney@redhat.com>
1815 * regcache.c (regcache_raw_write): Change buf parameter to a
1816 constant void pointer.
1817 (regcache_raw_read): Change buf parameter to a void pointer.
1818 (legacy_write_register_gen): Change myaddr parameter a constant
1820 (supply_register): Change val parameter to a const void pointer.
1821 * regcache.h (regcache_raw_write): Update declaration.
1822 (regcache_raw_read): Update declaration.
1823 (supply_register): Update declaration.
1825 2002-07-24 Tom Tromey <tromey@redhat.com>
1827 * defs.h (gdb_readline_wrapper): Declare.
1828 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1829 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1830 * top.c (gdb_readline_wrapper): New function.
1831 (command_line_input): Use it.
1833 2002-07-24 Andrew Cagney <cagney@redhat.com>
1835 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1836 regcache_read and regcache_write.
1837 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1838 * regcache.c: Update.
1839 * sh-tdep.c (sh64_push_arguments): Update comment.
1840 (sh_pseudo_register_read): Update.
1841 (sh_pseudo_register_write): Update.
1842 (sh4_register_read): Update.
1843 (sh4_register_write): Update.
1844 (sh64_pseudo_register_read): Update.
1845 (sh64_pseudo_register_write): Update.
1846 (sh64_register_read): Update.
1847 (sh64_register_write): Update.
1848 * i386-tdep.c (i386_extract_return_value): Update.
1849 (i386_extract_struct_value_address): Update.
1850 (i386_extract_return_value): Update.
1851 * blockframe.c (generic_read_register_dummy): Update.
1852 (generic_call_dummy_register_unwind): Update
1853 * infrun.c (write_inferior_status_register): Update.
1855 2002-07-23 Jim Blandy <jimb@redhat.com>
1857 * parser-defs.h (expression_context_pc): Make this extern.
1858 (Thanks to Michael Snyder.)
1860 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1862 GDB 5.2.1 released from 5.2 branch.
1863 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1864 * README: Update to mention 5.2.1.
1866 2002-07-23 Mark Salter <msalter@redhat.com>
1868 * remote.c (remote_read_bytes): Fix check for error.
1870 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1872 * aix-thread.c (language.h): Include.
1873 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1874 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1875 Print newlines at end of debug messages.
1876 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1877 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1879 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1881 * aix-thread.c (ppc-tdep.h): Include.
1882 (special_register_p): New function.
1883 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1884 (store_regs_user_thread): Use register number information from
1885 gdbarch_tdep struct instead of hardcoded offsets relative to
1886 FIRST_UISA_SP_REGNUM.
1887 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1888 special_register_p() instead of using FPLAST_REGNUM and
1889 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1890 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1891 will be MQ's register number.
1893 2002-07-22 Michael Snyder <msnyder@redhat.com>
1895 * aix-thread.c (ops): Rename to aix_thread_ops.
1896 (base_ops): Rename to base_target.
1897 (ops_attach): Rename to aix_thread_attach.
1898 (ops_detach): Rename to aix_thread_detach.
1899 (ops_resume): Rename to aix_thread_detach.
1900 (ops_wait): Rename to aix_thread_wait.
1901 (ops_kill): Rename to aix_thread_kill.
1902 (init_ops): Rename to init_aix_thread_ops.
1903 (ops_fetch_register): Rename to aix_thread_fetch_register.
1904 (ops_store_register): Rename to aix_thread_store_register.
1905 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1906 (ops_thread_alive): Rename to aix_thread_thread_alive.
1907 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1908 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1909 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1910 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1911 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1912 (store_regs_lib): Rename to store_regs_user_thread.
1913 (store_regs_kern): Rename to store_regs_kernel_thread.
1915 2002-07-22 Michael Snyder <msnyder@redhat.com>
1917 * aix-thread.c (ops_prepare_to_store): Eliminate.
1918 (init_ops): Don't initialize ops.prepare_to_store.
1919 (store_regs_kern): Pre-fetch register buffers from child,
1920 because some registers may not be in the cache. Copy
1921 regs from register cache only if they are cached.
1922 (store_regs_lib): Copy regs from register cache only
1924 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1925 fill_gprs64): Ditto.
1927 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1929 * aix-thread.c (gdb_assert.h): Include.
1930 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1931 register sizes (from register cache) match size of buffer holding
1933 (fill_sprs32): Change parameter types to match those in the ptrace()
1935 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1936 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1938 2002-07-22 Michael Snyder <msnyder@redhat.com>
1940 * aix-thread.c (supply_sprs64): Cosmetic change.
1941 (supply_sprs32): Cosmetic change.
1942 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1943 (fill_sprs64): Use regcache_collect instead of read_register.
1944 (store_regs_lib): Use regcache_collect instead of
1945 read_register. Use fill_sprs32 instead of fill_sprs64,
1946 if debugging a 32-bit architecture.
1947 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1948 out of the register cache, instead of passing a pointer into
1949 the register cache directly to ptrace. Use regcache_collect
1950 insteaad of read_register.
1951 (ops_prepare_to_store): Use target_read_registers instead
1952 of read_register_bytes.
1954 2002-07-20 Aidan Skinner <aidan@velvet.net>
1956 * MAINTAINERS: Add self under write after approval.
1958 2002-07-20 Aidan Skinner <aidan@velvet.net>
1960 * ada-tasks.c: Change k&r style function definitions to prototyped
1963 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1965 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1966 * x86-64-tdep.c: Include "objfiles.h".
1967 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1968 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1970 2002-07-17 Michal Ludvig <michal@suse.cz>
1972 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1973 (update_context): Initialise cfa variable.
1975 2002-07-17 Michael Snyder <msnyder@redhat.com>
1977 * aix-thread.c: Shorten some long lines.
1978 Bring comments into line with code spec.
1980 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1982 * infrun.c: Re-indent using gdb_indent.sh.
1984 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1986 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1987 Leave the indentation temporarily untouched, to minimize the diffs.
1989 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1991 * stabsread.c: Make os9k sections of the code obsolete,
1993 * stabsread.h: Make os9k sections of the code obsolete.
1995 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1997 * linux-low.c (regsets_store_inferior_registers): Add free()
1998 at the end of a loop to prevent memory leak.
1999 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2000 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2001 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2003 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2005 2002-07-17 Jim Blandy <jimb@redhat.com>
2007 * macrocmd.c (info_macro_command): Remove newline from error
2010 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2012 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2013 (sh_gdbarch_init): Use it for sh-dsp.
2015 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2017 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2018 64-bit DWARF2 format.
2020 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2022 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2023 <sys/proc.h> when not available.
2025 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2027 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2028 * stabsread.c: Make os9k sections of the code obsolete.
2029 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2030 * config/i386/i386os9k.mt: Make file obsolete.
2031 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2032 (COMMON_OBS): Remove os9kread.o
2033 (SFILES): Remove os9kread.c.
2034 (os9kread.o, remote-os9k.o): Make target obsolete.
2035 * remote-os9k.c: Make file obsolete.
2036 * os9kread.c: Make file obsolete.
2039 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2041 * NEWS: Mention that the FR30 has been made obsolete.
2042 * fr30-tdep.c: Make file obsolete.
2043 * config/fr30/tm-fr30.h: Ditto.
2044 * config/fr30/fr30.mt: Ditto.
2045 * configure.tgt: Make fr30-*-elf obsolete.
2046 * MAINTAINERS: Make fr30-elf obsolete.
2048 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2050 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2051 found is not inside a section.
2053 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2055 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2057 (pdc_realloc): Use xrealloc() instead of realloc().
2059 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2061 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2062 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2063 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2066 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2068 * aix-thread.c (ptrace_check): Eliminate goto.
2069 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2072 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2074 * aix-thread.c (gdbcmd.h): Include.
2075 (DEBUG, DBG, DBG2, dbg): Eliminate.
2076 (debug_aix_thread): New static global.
2077 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2078 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2079 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2080 invocations to DBG and DBG2 macros to test against
2081 ``debug_aix_thread'' and call fprintf_unfiltered().
2082 (_initialize_aix_thread): Add new command "set debug aix-thread".
2084 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2086 From Gerhard Tonn <TON@de.ibm.com>:
2087 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2088 instead of supply_register.
2090 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2092 * dwarf2cfi.c: Include "gdb_assert.h".
2093 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2095 (update_context): Do not use __func__. Add missing ``break''.
2096 (update_context): Do not use __func__.
2098 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2100 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2101 and its setting. Set gdbarch instruction printing functions
2102 directly. For non-rs6000 case use new function
2103 gdb_print_insn_powerpc.
2104 (gdb_print_insn_powerpc): New function.
2106 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2108 * NEWS: Mention that the d30v has been marked obsolete.
2109 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2110 * configure.tgt: Mark d30v-*-* as obsolete.
2111 * d30v-tdep.c: Mark file as obsolete.
2112 * config/d30v/d30v.mt: Ditto.
2113 * config/d30v/tm-d30v.h: Ditto.
2115 2002-07-13 Aidan Skinner <aidan@velvet.net>
2117 * ada-tasks.c (add_task_entry): replace calls to
2118 malloc() with xmalloc
2119 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2121 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2122 ada_finish_decode_line_1, all_sals_for_line
2123 ada_breakpoint_rewrite): replace calls to free() with xfree()
2125 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2127 From Nicholas Duffek (with minor changes by Martin Hunt,
2128 Louis Hamilton, and Kevin Buettner):
2129 * aix-thread.c: New file.
2131 2002-07-12 Petr Sorfa <petrs@caldera.com>
2133 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2134 complaint for invalid attribute class or form.
2135 (read_func_scope): DW_AT_frame_base
2136 better handling of DW_AT_block*.
2137 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2138 better handling of DW_AT_block*.
2139 (read_common_block): DW_AT_location
2140 better handling of DW_AT_block*.
2141 (read_partial_die): DW_AT_location better handling
2143 (new_symbol): DW_AT_external better handling of
2144 DW_AT_block*. Proper initialization of variable
2146 (attr_form_is_block): New function that returns true
2147 if the attribute's form is of DW_FORM_block*.
2149 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2151 * valops.c (find_method_list): Remove comment about
2152 removed STATIC_MEMFUNCP argument.
2153 (value_find_oload_method_list): Likewise.
2155 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2157 From Nicholas Duffek:
2158 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2159 target_new_objfile_hook.
2161 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2163 From Nicholas Duffek:
2164 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2167 2002-07-12 Andrew Cagney <cagney@redhat.com>
2169 * MAINTAINERS: Mention --enable-sim-build-warnings.
2170 (m68hc11-elf): Disable sim build warnings.
2171 (m32r-elf): Mark as broken obsolete candidate.
2172 (x86_64-linux-gnu): Mark as buildable with -Werror.
2173 (arm-elf): Change -w to ``,'' which enables warnings but not
2176 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2178 * bcache.h: Update copyright.
2179 (struct bstring, struct bcache): Move definition to "bcache.c".
2180 Replaced by opaque declaration.
2181 (bcache_xfree): Replace free_bcache.
2182 (bcache_xmalloc, bcache_memory_used): Declare.
2184 * bcache.c: Update copyright.
2185 (struct bstring, struct bcache): Moved to here from "bcache.h".
2187 (bcache_xmalloc, bcache_memory_used): New functions.
2188 (bcache_xfree): Replace function free_bcache.
2190 * Makefile.in (objfiles.o): Add $(bcache_h).
2191 (objfiles_h): Remove $(bcache_h).
2192 (symfile.o): Add $(bcache_h).
2194 * symmisc.c: Update copyright.
2195 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2196 (print_objfile_statistics): Use bcache_memory_used.
2198 * symfile.c: Include "bcache.h".
2199 (reread_symbols): Use bcache_xfree.
2200 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2201 (add_psymbol_to_list): Pass psymbol_cache by value.
2202 (add_psymbol_with_dem_name_to_list): Ditto.
2204 * objfiles.h: Update copyright.
2205 (struct bcache): Declare opaque. Do not include "bcache.h".
2206 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2208 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2210 * objfiles.c: Include "bcache.h". Update copyright.
2211 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2213 (free_objfile): Use bcache_xfree.
2215 2002-07-11 Grace Sainsbury <graces@redhat.com>
2217 * monitor.c (monitor_fetch_register): Make name a constant.
2218 (monitor_store_register): Same.
2220 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2222 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2223 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2224 (finish_block) For non-function blocks, hash the symbol table. For
2225 function blocks, mark the symbol table as unhashed.
2226 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2227 (msymbol_hash_iw): Likewise.
2228 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2230 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2231 (lookup_minimal_symbol): Likewise for both.
2232 * symtab.h (struct block): Add `hashtable' flag. Comment the
2234 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2235 (ALL_BLOCK_SYMBOLS): Update.
2236 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2237 (struct symbol): Add `hash_next' pointer.
2238 * symtab.c (lookup_block_symbol): Search using the hash table when
2240 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2241 (search_symbols, find_addr_symbol): Likewise.
2243 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2244 (read_dst_symtab): Likewise.
2245 * jv-lang.c (get_java_class_symtab): Likewise.
2246 * mdebugread.c: Include "gdb_assert.h".
2247 (shrink_block): Assert that the block being modified is not hashed.
2248 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2249 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2251 (dump_symtab): Recognize hashed blocks.
2252 * printcmd.c (print_frame_args): Assert that function blocks do not
2253 have hashed symbol tables.
2254 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2255 (fill_in_ada_prototype, debug_print_block): Likewise.
2256 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2258 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2260 * stack.c (print_frame): Use result of frame_address_in_block()
2261 instead of fi->pc when evaluating symbols.
2262 (backtrace_command_1): Ditto.
2264 2002-07-11 Andrew Cagney <cagney@redhat.com>
2266 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2269 * arm-tdep.c (arm_register_name): Make return type constant.
2271 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2273 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2275 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2276 * s390-tdep.c (s390_fp_regnum): Ditto.
2277 (s390_read_fp): Ditto.
2278 (s390_pop_frame): Ditto.
2279 (_initialize_s390_tdep): Ditto.
2280 * remote.c (get_remote_state): Ditto.
2281 * procfs.c (mappingflags): Ditto.
2282 * memattr.c (_initialize_mem): Ditto.
2283 * mcore-tdep.c (mcore_pop_frame): Ditto.
2284 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2285 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2286 * language.c (set_case_str): Ditto.
2287 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2288 * frv-tdep.c (new_variant): Ditto.
2289 (frv_stopped_data_address): Ditto.
2290 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2291 (context_alloc): Ditto.
2292 (frame_state_alloc): Ditto.
2293 (unwind_tmp_obstack_init): Ditto.
2294 (unwind_tmp_obstack_free): Ditto.
2295 (cfi_read_fp): Ditto.
2296 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2297 (cris_pop_frame): Ditto.
2298 * c-lang.c (scanning_macro_expansion): Ditto.
2299 (finished_macro_expansion): Ditto.
2300 (c_preprocess_and_parse): Ditto.
2301 * gdbarch.sh: Ditto.
2302 * gdbarch.h, gdbarch.c: Regenerate.
2303 * config/mn10200/tm-mn10200.h: Adjust indentation.
2304 * target.c: Adjust indentation.
2305 * symtab.h: Adjust indentation.
2306 * stabsread.h: Adjust indentation.
2307 * remote-es.c: Adjust indentation.
2308 * os9kread.c: Adjust indentation.
2310 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2312 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2313 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2315 2002-07-10 Grace Sainsbury <graces@redhat.com>
2317 * NEWS: Mention m68k, mcore multi-arching.
2318 * MAINTAINERS: Change status of m68k, mcore to reflect
2321 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2323 * valops.c (find_overload_match): Free oload_syms.
2325 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2327 Define HAVE_SYS_PROC_H if sys/proc.h exists
2328 * configure.in: Add check for sys/proc.h
2329 * config.in: Regenerate.
2330 * configure: Regenerate.
2332 2002-07-09 Grace Sainsbury <graces@redhat.com>
2334 * config/m68k/tm-m68k.h: Remove macros wrapped in
2335 #if !GDB_MULTI_ARCH.
2337 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2339 * config.in, configure: Regenerate.
2341 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2343 * dwarf2cfi.c: Include "gcore.h".
2344 (execute_stack_op): Fix implementation of the
2345 DW_OP_deref and DW_OP_deref_size operators by letting do their
2346 lookup in the target.
2348 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2350 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2351 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2354 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2356 Fix PR gdb/595, gdb/602
2357 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2358 Don't call value_cast, just read the vtable pointer; update comments
2361 2002-07-05 Grace Sainsbury <graces@redhat.com>
2363 * config/mcore/tm-mcore.h: Remove file.
2364 * config/mcore/mcore.mt: Remove definition of TM_FILE
2365 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2367 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2369 * i386bsd-tdep.c: Include "gdb_string.h".
2371 2002-07-04 Grace Sainsbury <graces@redhat.com>
2373 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2374 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2376 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2377 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2378 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2379 (RETVAL_REGNUM): Move macros from tm-mcore.h
2380 (mcore_reg_struct_has_addr): New function.
2381 (mcore_gdbarch_init): Added initializations for the macros removed
2384 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2386 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2387 traditonal string branding within the ELF header.
2389 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2391 * symtab.c (remove_params): New function.
2392 (make_symbol_overload_list): Use it instead of cplus_demangle.
2393 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2395 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2397 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2399 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2401 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2402 and tdep->sigtramp_end.
2403 * i386obsd-nat.c: New file.
2404 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2406 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2407 Don't call get_current_frame().
2409 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2411 * i386-nat.c (child_post_startup_inferior): New function
2412 calling i386_cleanup_dregs if
2413 I386_USE_GENERIC_WATCHPOINTS is defined.
2414 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2415 conditional to acknowledge that i386-nat.c has its
2416 own child_post_startup_inferior function.
2418 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2420 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2421 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2422 instead of MAX_REGISTER_RAW_SIZE.
2423 (i386_extract_return_value, i386_extract_struct_value_address):
2424 Convert to use regcache.
2425 (i386_gdbarch_init): Set max_register_raw_size and
2426 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2427 Set extract_return_value and extract_struct_value_address instead
2428 of their deprecated variants.
2430 Convert i386 target to generic dummy frames.
2431 * i386-tdep.c: Include "symfile.h".
2432 (i386_frameless_signal_p): Consider a function to be frameless if
2433 the pc points at the first instruction of the function.
2434 (i386_frame_chain): Handle (generic) call dummies.
2435 (i386_frame_saved_pc): Likewise.
2436 (i386_frame_init_saved_regs): Remove code dealing with call
2437 dummies on the stack.
2438 (i386_push_dummy_frame): Removed.
2439 (i386_call_dummy_words): Removed.
2440 (i386_fix_call_dummy): Removed.
2441 (i386_push_return_address): New function.
2442 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2443 parameter, and don't call get_current_frame.
2444 (i386_pop_frame): New function.
2445 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2446 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2447 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2448 call_dummy_length to 0, set call_dummy_words to NULL, set
2449 sizeof_call_dummy_words to 0, set fix_call_dummy to
2450 generic_fix_call_dummy, set pc_in_call_dummy to
2451 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2452 generic_push_dummy_frame, set push_return_address to
2453 i386_push_return_address and set frame_chain_valid to
2454 generic_file_frame_chain_valid.
2456 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2458 * gdbarch.sh (struct regcache): Add opaque declaration.
2459 (EXTRACT_RETURN_VALUE): New architecture method.
2460 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2461 * gdbarch.h, gdbarch.c: Regenerate.
2462 * arch-utils.c (legacy_extract_return_value): New function.
2463 * arch-utils.h (legacy_extract_return_value): Declare.
2464 * values.c (value_being_returned): Re-enable code handling
2465 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2466 deprecated_grub_regcache_for_registers call to block handling
2467 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2468 (EXTRACT_RETURN_VALUE): Do not define.
2470 2002-07-03 Grace Sainsbury <graces@redhat.com>
2472 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2473 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2474 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2475 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2476 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2477 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2478 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2479 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2480 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2481 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2482 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2483 argument so the function fits the prototype in the architecture
2485 (mcore_pop_frame): Remove argument so the function fits the
2486 prototype. Use get_current_frame instead of the argument.
2487 (mcore_push_arguments): Change type of struct_return so the
2488 function can be used in the architecture vector.
2489 (mcore_store_struct_return): Add.
2490 (mcore_frame_init_saved_regs): Add.
2491 (mcore_gdbarch_init): Add function calls to replace the macros
2492 removed from tm-mcore.h
2494 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2496 * infcmd.c (print_return_value): Remove compatibility code calling
2497 deprecated_grub_regcache_for_registers.
2499 * values.c: Include "regcache.h".
2500 (value_being_returned): Update. Use
2501 deprecated_grub_regcache_for_registers to extract the register
2503 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2504 ``struct regcache''.
2505 * Makefile.in (values.o): Add dependency on $(regcache_h).
2507 * inferior.h (run_stack_dummy): Change type of second parameter to
2508 a ``struct regcache''.
2509 * valops.c (hand_function_call): Change type of retbuf to ``struct
2510 regcache''. Allocate using regcache_xmalloc, clean using
2511 make_cleanup_regcache_xfree.
2512 * infcmd.c (run_stack_dummy): Update. Use
2513 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2515 * regcache.c (do_regcache_xfree): New function.
2516 (make_cleanup_regcache_xfree): New function.
2517 * regcache.h (make_cleanup_regcache_xfree): Declare.
2519 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2521 * event-top.c (command_line_handler): Don't read past
2522 beginning of buffer.
2524 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2526 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2528 (varobj_create): Store frame_id for root.
2529 (varobj_gen_name): Use xasprintf.
2530 (varobj_update): Save and restore frame using get_frame_id() and
2532 (create_child): Use xasprintf.
2533 (new_root_variable): Initialize frame_id.
2534 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2535 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2536 to prevent memory leak.
2538 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2540 * valops.c (hand_function_call): Move declaration of retbuf to
2541 start of function, allocate using malloc, add a cleanup but before
2542 the inf_status cleanup, cleanup the buffer. Rename local variable
2543 old_chain to inf_status_cleanup.
2545 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2547 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2549 * cli/cli-decode.c (cmd_func_p): New function.
2550 (cmd_func): New function.
2552 * command.h: Add cmd_func() and cmd_func_p().
2554 2002-07-03 Grace Sainsbury <graces@redhat.com>
2556 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2557 (REGISTER_SIZE): Remove.
2558 (MAX_REGISTER_RAW_SIZE): Remove.
2559 (REGISTER_VIRTUAL_TYPE): Remove.
2560 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2561 (REGISTER_NAME): Remove.
2562 (USE_GENERIC_DUMMY_FRAMES): Remove.
2563 (CALL_DUMMY): Remove.
2564 (CALL_DUMMY_START_OFFSET): Remove.
2565 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2566 (CALL_DUMMY_LOCATION): Remove.
2567 (FIX_CALL_DUMMY): Remove.
2568 (CALL_DUMMY_ADDRESS): Remove.
2569 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2570 (SAVE_DUMMY_FRAME_TOS): Remove.
2571 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2572 (mcore_register_virtual_type): New function.
2573 (mcore_register_byte): New function.
2574 (mcore_register_size): New function.
2575 (mcore_register_name): New function.
2576 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2577 macros removed from tm-mcore.h.
2578 (mcore_dump_tdep): Add.
2579 (_initialize_mcore_tdep): Add gdbarch_register call.
2581 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2583 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2584 frameless_look_for_prologue, such that we actually call this
2587 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2589 * frame.h (frame_address_in_block): New function.
2591 * blockframe.c (frame_address_in_block): New function extracted
2592 from get_frame_block().
2593 (get_frame_block): Use frame_address_in_block().
2594 (block_innermost_frame): Use frame_address_in_block() to match
2595 the frame pc address against the block boundaries rather than
2596 the frame pc directly. This prevents a failure when a frame pc
2597 is actually a return-address pointing immediately after the end
2600 2002-07-02 Grace Sainsbury <graces@redhat.com>
2602 * MAINTAINERS: Add self under write after approval.
2604 2002-07-02 Grace Sainsbury <graces@redhat.com>
2606 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2607 used in architecture vector. The default is
2608 m68k_local_breakpoint_from_pc.
2609 (m68k_local_breakpoint_from_pc): Add.
2610 (enum): Add register numbers from tm-m68k.h.
2611 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2613 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2614 GDB_MULTI_ARCH_PARTIAL.
2615 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2616 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2618 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2619 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2620 to enum in m68k-tdep.c
2622 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2624 * solib-osf.c (open_map): Compute the list of shared libraries
2625 loaded by the inferior, rather than the list of libraries loaded
2626 by GDB itself. Otherwise, GDB ends up reading the symbols from
2627 the wrong shared libraries...
2629 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2631 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2632 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2634 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2636 (FRAMELESS_SIGNAL): Remove function.
2637 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2638 i386_linux_saved_pc_after_call): Removed.
2639 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2640 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2641 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2643 * i386-tdep.c (i386_frameless_signal_p): New function.
2644 (i386_frame_chain): Deal with frameless signals.
2645 (i386_sigtramp_saved_sp): New function.
2646 (i386_frame_saved_pc): Deal with frameless signals.
2647 (i386_saved_pc_after_call): Make sure the correct value is
2648 returned just after entry into a sigtramp.
2649 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2650 i386fbsd4_sc_sp_offset): New variables.
2651 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2652 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2653 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2654 similiar to what we already did for sc_pc_offset.
2655 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2658 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2660 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2662 * config/i386/tm-x86-64linux.h: New.
2663 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2665 * config/i386/nm-x86-64.h: Rename to ...
2666 * config/i386/nm-x86-64linux.h: ... this one.
2667 * config/i386/x86-64linux.mh: Reflect the above change.
2669 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2671 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2672 with sigcontext_addr. Add sc_sp_offset.
2673 (i386bsd_sigtramp_saved_pc): Remove prototype.
2674 (i386bsd_sicontext_addr): Add prototype.
2675 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2676 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2677 (i386_svr4_sigtramp_saved_pc): Removed.
2678 (i386_svr4_sigcontext_addr): New function.
2679 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2680 Initialize tdep->sigcontext_addr instead. Initialize
2681 tdep->sc_pc_offset and tdep->sc_sp_offset.
2682 (i386_gdbarch_init): Likewise.
2683 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2685 (i386bsd_sigtramp_saved_pc): Remove function.
2686 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2687 Initialize tdep->sigcontext_addr instead. Initialize
2689 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2690 of tdep->sigtramp_saved_pc.
2691 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2692 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2695 * i386-tdep.c (i386_frameless_function_invocation,
2696 i386_frame_num_args, i386_frame_init_saved_regs,
2697 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2698 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2699 i386_extract_return_value, i386_store_return_value,
2700 i386_extract_struct_value_address, i386_register_virtual_type,
2701 i386_register_convertible, i386_register_convert_to_virtual,
2702 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2703 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2706 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2708 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2710 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2711 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2712 this macro. Include "value.h".
2714 2002-06-30 Aidan Skinner <aidan@velvet.net>
2716 * ada-exp.tab.c: remove as it's a generated file
2717 * ada-lex.c: remove as it's a generated file
2719 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2721 * config/i386/tm-i386.h (struct frame_info, struct
2722 frame_saved_regs, struct value, struct type): Remove forward
2725 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2726 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2727 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2728 (FILL_FPXREGSET): Define.
2730 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2732 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2733 i[3456]86-*-netbsd* case.
2734 * config/i386/tm-obsd.h: Removed.
2735 * config/i386/obsd.mt: Removed.
2736 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2738 (MH_CFLAGS): Add -DYYDEBUG=0.
2740 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2741 i386nbsd_sc_pc_offset on OpenBSD too.
2743 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2744 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2745 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2747 * i386bsd-tdep.c: Include "arch-utils.h".
2748 (i386bsd_aout_in_solib_call_trampoline): New function.
2749 (i386bsd_init_abi): Set in_solib_call_trampoline to
2750 i386bsd_aout_in_solib_call_trampoline.
2751 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2752 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2754 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2756 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2757 (struct obstack, struct bcache): Add opaque declarations.
2758 * Makefile.in (macrotab_h): Update
2760 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2762 * blockframe.c (generic_find_dummy_frame): Change return type to
2763 ``struct regcache''.
2764 (struct dummy_frame): Replace field ``registers'' with regcache, a
2765 struct regcache object.
2766 (generic_find_dummy_frame): Update.
2767 (generic_push_dummy_frame): Update. Use regcache_xfree,
2768 regcache_xmalloc and regcache_cpy.
2769 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2771 (deprecated_generic_find_dummy_frame): Update.
2772 (generic_read_register_dummy): Update. Use
2773 regcache_read_as_address.
2774 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2775 (generic_get_saved_register): Update. Use regcache_read.
2777 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2779 * Makefile.in (objfiles_h): Add $(bcache_h).
2780 * objfiles.h: Include "bcache.h".
2782 * Makefile.in (symtab_h): Remove $(bcache_h).
2783 * symtab.h: Do not include "bcache.h".
2785 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2787 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2788 generic_func_frame_chain_valid.
2790 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2792 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2793 * config/i386/tm-fbsd.h: Likewise.
2795 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2797 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2798 generic_unwind_get_saved_register.
2800 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2802 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2803 * regcache.c (supply_register): Add missing argument to
2804 register_buffer call.
2806 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2808 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2809 Solaris /bin/grep does not not like it. From Peter Schauer.
2811 2002-06-26 Tom Tromey <tromey@redhat.com>
2813 * command.h (add_setshow_cmd): Declare.
2814 (add_setshow_cmd_full): Declare.
2815 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2816 returns void. Use add_setshow_cmd_full.
2817 (add_setshow_cmd_full): New function.
2818 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2819 (add_setshow_boolean_cmd): Likewise.
2821 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2823 * config/vax/tm-vax.h: Protect from multiple inclusion.
2824 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2825 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2826 * config/vax/tm-vaxbsd.h: ...here. New file.
2827 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2829 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2831 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2832 (BELIEVE_PCC_PROMOTION): Remove.
2833 (AP_REGNUM): Move to...
2834 * config/vax/nm-vax.h: ...here.
2835 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2836 (vax_breakpoint_from_pc): New function.
2837 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2838 and gdbarch_believe_pcc_promotion.
2840 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2842 * Makefile.in (vax_tdep_h): Define.
2843 (vax-tdep.o): Use $(vax_tdep_h).
2844 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2845 (vax_dump_tdep): New function.
2846 (_initialize_vax_tdep): Register vax_dump_tdep.
2847 * vax-tdep.h: Include osabi.h.
2848 (struct gdbarch_tdep): New.
2850 2002-06-26 Andrew Cagney <cagney@redhat.com>
2852 * frame.h (deprecated_generic_find_dummy_frame): Rename
2853 generic_find_dummy_frame.
2854 * blockframe.c (generic_find_dummy_frame): Make static.
2855 (deprecated_generic_find_dummy_frame): New function.
2856 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2857 generic_find_dummy_frame with deprecated_find_dummy_frame.
2858 (sh64_nofp_frame_init_saved_regs): Ditto.
2859 (sh_fp_frame_init_saved_regs): Ditto.
2860 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2861 (s390_frame_chain): Ditto.
2862 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2864 2002-06-26 Grace Sainsbury <graces@redhat.com>
2866 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2867 gdbarch vector are at the top.
2869 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2870 (FRAME_ARGS_ADDRESS): Remove.
2871 (FRAME_LOCALS_ADDRESS): Remove.
2872 (FRAME_NUM_ARGS): Remove.
2873 (FRAME_ARGS_SKIP): Remove.
2874 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2875 (m68k_gdbarch_init): Add gdbarch initializations for macros
2876 undefined in tm-m68k.h
2878 2002-06-26 Grace Sainsbury <graces@redhat.com>
2880 * monitor.h: Add the function regname to monitor_ops
2881 structure. This way NUM_REGS does not have to be a constant.
2882 * monitor.c (monitor_fetch_register): Added support for regname
2883 function. The function is called if the array regnames is NULL.
2884 (monitor_store_register): Same.
2885 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2887 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2888 cpu32bug_cmds.regname to point to new function.
2889 * abug-rom.c (abug_regname): Same as above.
2890 (init_abug_cmds): Same.
2891 * dbug-rom.c (dbug_regname): Same as above.
2892 (init_dbug_cmds): Same.
2893 * remote-est.c (est_regname): Same.
2894 (init_est_cmds): Same.
2895 * rom68k-rom.c (rom68k_regname): Same.
2896 (init_rom68k_cmds): Same.
2898 2002-06-25 Tom Tromey <tromey@redhat.com>
2900 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2902 2002-06-25 Andrew Cagney <cagney@redhat.com>
2904 * infrun.c (stop_registers): Change variable's type to ``struct
2906 (xmalloc_inferior_status): Delete function.
2907 (free_inferior_status): Delete function.
2908 (normal_stop): Use regcache_cpy.
2909 (struct inferior_status): Change type of fields ``stop_registers''
2910 and ``registers'' to ``struct regcache''.
2911 (write_inferior_status_register): Use regcache_write.
2912 (save_inferior_status): Instead of calling
2913 xmalloc_inferior_status, allocate the inf_status buffer directly.
2914 Use regcache_dup_no_passthrough and regcache_dup to save the
2916 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2917 Replace the stop_registers regcache instead of overriding it. Use
2918 regcache_xfree. Instead of calling free_inferior_status, xfree
2919 the buffer directly.
2920 (discard_inferior_status): Use regcache_xfree. Instead of calling
2921 free_inferior_status, xfree the buffer directly.
2922 (build_infrun): Use regcache_xmalloc.
2923 (_initialize_infrun): Delete redundant call to build_infrun.
2925 * Makefile.in (infcmd.o): Add $(regcache_h).
2927 * infcmd.c: Include "regcache.h".
2928 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2929 obtain the address of `stop_registers' register buffer.
2930 (print_return_value): Ditto.
2932 * inferior.h (struct regcache): Add opaque declaration.
2933 (stop_registers): Change variable's declared type to ``struct
2936 2002-06-24 Tom Tromey <tromey@redhat.com>
2938 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2939 * target.c (initialize_targets): Fixed typo in
2940 trust-readonly-sections `show' documentation.
2942 * main.c: Marked all strings with _().
2944 2002-06-24 Don Howard <dhoward@redhat.com>
2946 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2947 that means max CORE_ADDR+1.
2948 (lookup_mem_region): Ditto.
2949 (mem_info_command): Ditto.
2951 2002-06-24 Grace Sainsbury <graces@redhat.com>
2953 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2954 (REGISTER_BYTES_OK): Remove.
2955 (REGISTER_BYTES): Remove.
2956 (STORE_STRUCT_RETURN): Remove.
2957 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2958 (STORE_RETURN_VALUE): Remove.
2959 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2960 (FRAME_CHAIN): Remove.
2961 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2962 (FRAME_SAVED_PC): Remove.
2963 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2964 (m68k_store_struct_return): Add.
2965 (m68k_deprecated_extract_return_value): Add.
2966 (m68k_deprecated_extract_struct_value_address): Add.
2967 (m68k_store_return_value): Add.
2968 (m68k_frame_chain): Add.
2969 (m68k_frameless_function_invocation): Add.
2970 (m68k_frame_saved_pc): Add.
2971 (m68k_gdbarch_init): added set_gdbarch calls for new
2972 functions and deleted macros.
2974 2002-06-23 Tom Tromey <tromey@redhat.com>
2976 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2977 (ALLDEPFILES): Likewise.
2978 (udiheaders): Removed.
2979 (udip2soc.o): Likewise.
2980 (udi2go32.o): Likewise.
2982 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2984 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2986 * infrun.c (_initialize_infrun): Delete unnecessary call to
2989 * regcache.h: Update comments describing the regcache_cpy family
2991 (regcache_save, regcache_restore): Delete declaration.
2992 (regcache_save_no_passthrough): Delete declaration.
2993 (regcache_restore_no_passthrough): Delete declaration.
2994 * regcache.c (regcache_save): Delete function.
2995 (regcache_save_no_passthrough): Delete function.
2996 (regcache_restore): Delete function.
2997 (regcache_restore_no_passthrough): Delete function.
2999 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3001 * config/m68k/tm-m68k.h: Fix typo.
3002 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3003 (m68k_frame_init_saved_regs): Declare.
3005 2002-06-21 Jim Blandy <jimb@redhat.com>
3007 Remove some vestiges of Harris 88k support.
3008 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3009 register numbering quirk.
3010 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3011 odd symbols occurring in Harris 88k ELF targets.
3013 2002-06-21 Tom Tromey <tromey@redhat.com>
3015 * gdb_locale.h: New file.
3016 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3017 (defs_h): Added gdb_locale.h.
3018 * configure, config.in: Rebuilt.
3019 * configure.in (PACKAGE): Define.
3020 * defs.h: Include gdb_locale.h.
3021 * main.c (captured_main): Call setlocale, bindtextdomain,
3024 2002-06-21 Dave Brolley <brolley@redhat.com>
3026 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3027 * config/frv/frv.mt: New file.
3028 * config/frv/tm-frv.h: New file.
3029 * configure.tgt: Support frv-*-*.
3030 * Makefile.in (frv-tdep.o): New target.
3031 * frv-tdep.c: New file.
3032 * NEWS: Mention frv.
3034 2002-06-21 Dave Brolley <brolley@redhat.com>
3036 * MAINTAINERS: Add self to "Write After Approval" list.
3038 2002-06-21 Grace Sainsbury <graces@redhat.com>
3040 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3041 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3042 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3043 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3044 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3046 * m68k-tdep.c: Include arch-utils.h
3047 (m68k_register_raw_size): Add.
3048 (m68k_register_virtual_size): Add.
3049 (m68k_register_virtual_type): Add.
3050 (m68k_register_name): Add.
3051 (m68k_stack_align): Add.
3052 (m68k_register_byte): Add.
3053 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3056 2002-06-21 Grace Sainsbury <graces@redhat.com>
3058 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3059 m68k_find_saved_regs.
3060 (m68k_pop_frame): Removed saved_regs structure, and replaced
3061 references to it with frame->saved_regs.
3062 (m68k_gdbarch_init): Added function calls to initialize the
3064 (m68k_fix_call_dummy): Add.
3065 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3066 (CALL_DUMMY): Remove.
3067 (CALL_DUMMY_LENGTH): Remove.
3068 (CALL_DUMMY_START_OFFSET): Remove.
3069 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3070 (FIX_CALL_DUMMY): Remove.
3071 (PUSH_DUMMY_FRAME): Remove.
3072 (POP_FRAME): Remove.
3074 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3076 * parse.c (parse_fprintf): New function used to avoid calls to
3077 fprintf in bison parser generated debug code.
3078 * parser-defs.h: Declaration of new parse_fprintf function.
3079 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3080 Set YYDEBUG to 1 by default.
3081 Set YYFPRINTF as parse_fprintf.
3083 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3085 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3087 (pointer_encoding, enum ptr_encoding): New.
3088 (execute_cfa_program): Take care about pointer encoding.
3089 (dwarf2_build_frame_info): Only call parse_frame_info for
3090 .debug_frame and .eh_frame.
3091 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3092 fixed augmentation handling, added relative addressing,
3093 ignore duplicate FDEs. Added comments.
3094 * dwarf2cfi.c: Reindented.
3096 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3098 * event-top.c (command_handler): Don't use space_at_cmd_start
3099 unless there is sbrk() on the host. Assign time and space data
3100 to union fields of the appropriate length.
3102 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3104 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3105 x86_64_register_name. Return type changed to 'const char *'.
3106 (x86_64_register_name2nr): Rename to x86_64_register_number.
3107 (x86_64_gdbarch_init): Update to reflect the change.
3108 * x86-64-tdep.h: Ditto.
3109 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3110 (supply_fpregset): Ditto.
3112 2002-06-19 Andrew Cagney <cagney@redhat.com>
3114 * regcache.h: Update copyright.
3115 (struct regcache, struct gdbarch): Add opaque declarations.
3116 (current_regcache): Declare global variable.
3117 (regcache_read, regcache_write): Add gdbarch parameter.
3118 (regcache_save, regcache_save_no_passthrough)
3119 (regcache_restore, regcache_restore_no_passthrough)
3120 (regcache_dup, regcache_dup_no_passthrough)
3121 (regcache_cpy, regcache_cpy_no_passthrough)
3122 (deprecated_grub_regcache_for_registers)
3123 (deprecated_grub_regcache_for_register_valid)
3124 (regcache_valid_p): Add function declarations.
3126 * regcache.c: Update copyright.
3127 (regcache_descr_handle): New global variable.
3128 (struct regcache_descr): Define.
3129 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3130 (regcache_descr, xfree_regcache_descr): New functions.
3131 (struct regcache): Define.
3132 (regcache_xmalloc, regcache_xfree): New functions.
3133 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3134 (regcache_dup, regcache_dup_no_passthrough): New functions.
3135 (regcache_valid_p, regcache_read_as_address): New functions.
3136 (deprecated_grub_regcache_for_registers): New function.
3137 (deprecated_grub_regcache_for_register_valid): New function.
3138 (current_regcache): New global variable.
3139 (register_buffer): Add regcache parameter. Update calls.
3140 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3141 (read_register_gen, write_register_gen): Update register_buffer
3142 call. Test for legacy_p instead of gdbarch_register_read_p or
3143 gdbarch_register_write_p.
3144 (regcache_collect): Update register_buffer call.
3145 (build_regcache): Rewrite. Use deprecated grub functions.
3146 (regcache_save, regcache_save_no_passthrough): New functions.
3147 (regcache_restore, regcache_restore_no_passthrough): New
3149 (_initialize_regcache): Create the regcache_data_handle. Swap
3150 current_regcache global variable.
3152 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3153 parameter to regcache_read and regcache_write calls.
3154 (sh4_register_read): Ditto.
3155 (sh64_pseudo_register_read): Ditto.
3156 (sh64_register_read): Ditto.
3157 (sh_pseudo_register_write): Ditto.
3158 (sh4_register_write): Ditto.
3159 (sh64_pseudo_register_write): Ditto.
3160 (sh64_register_write): Ditto.
3162 * defs.h (XCALLOC): Define.
3164 2002-06-19 Grace Sainsbury <graces@redhat.com>
3166 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3167 * m68k-tdep.c (m68k_gdbarch_init): Added.
3168 (m68k_dump_tdep): Added.
3170 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3172 * ada-lang.c (fill_in_ada_prototype): Update comment.
3174 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3176 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3178 (mips_abi_string, mips_abi_strings): New.
3179 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3180 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3181 tdep->mips_abi_string. Honor mips_abi_string. Default to
3182 O32 if no ABI is found.
3183 (mips_dump_tdep): Use mips_abi_strings.
3184 (mips_abi_update): New function.
3185 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3186 ``set mips abi'' and ``show mips abi''. Check the size of
3189 2002-06-19 Andrew Cagney <cagney@redhat.com>
3191 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3194 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3196 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3197 current frame using only the first stack size adjustment. All
3198 subsequent size adjustments are not considered to be part of
3199 the "static" part of the current frame.
3200 Compute the address of the saved registers relative to the
3201 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3202 in use in this frame.
3204 2002-06-18 Don Howard <dhoward@redhat.com>
3206 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3207 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3208 suggesting this solution.
3210 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3212 * config/romp/xm-rtbsd.h: Delete file.
3213 * config/romp/rtbsd.mh: Delete file.
3215 2002-06-18 Keith Seitz <keiths@redhat.com>
3217 * breakpoint.c (condition_command): Post breakpoint_modify
3218 when a condition is added to an existing breakpoint.
3219 (commands_command): Likewise for commands.
3220 (set_ignore_count): Likewise for ignore counts.
3221 If no tty, do not simply return, still need to send event
3223 (ignore_command): Only print a newline if the command came
3225 Don't call breakpoints_changed, since this is now properly
3226 handled by set_ignore_count.
3228 2002-06-18 Andrew Cagney <cagney@redhat.com>
3230 * MAINTAINERS: Note that cris-elf target can be compiled with
3232 * cris-tdep.c (cris_register_name): Make return type constant.
3233 (cris_breakpoint_from_pc): Ditto.
3235 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3237 * frame.h (struct frame_info): Change type of context to
3240 2002-06-17 Andrew Cagney <cagney@redhat.com>
3242 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3244 * gdbarch.h, gdbarch.c: Regenerate.
3245 * config/mips/tm-mips.h (mips_register_name): Update.
3246 * i386-tdep.h (i386_register_name): Update.
3247 * mips-tdep.c (mips_register_name): Update
3248 * alpha-tdep.c (alpha_register_name): Update.
3249 * arch-utils.c (legacy_register_name): Update.
3250 * arch-utils.h (legacy_register_name): Update.
3251 * avr-tdep.c (avr_register_name): Update.
3252 * ia64-tdep.c (ia64_register_name): Update.
3253 * i386-tdep.c (i386_register_name): Update.
3254 * sparc-tdep.c (sparc32_register_name): Update.
3255 (sparc64_register_name): Update.
3256 (sparclite_register_name): Update.
3257 (sparclet_register_name): Update.
3258 * sh-tdep.c (sh_generic_register_name): Update.
3259 (sh_sh_register_name): Update.
3260 (sh_sh3_register_name): Update.
3261 (sh_sh3e_register_name): Update.
3262 (sh_sh_dsp_register_name): Update.
3263 (sh_sh3_dsp_register_name): Update.
3264 (sh_sh4_register_name): Update.
3265 (sh_sh64_register_name): Update.
3266 * s390-tdep.c (s390_register_name): Update.
3267 * rs6000-tdep.c (rs6000_register_name): Update.
3268 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3269 (ns32k_register_name_32382): Update.
3270 * d10v-tdep.c (d10v_ts2_register_name): Update.
3271 (d10v_ts3_register_name): Update.
3272 * xstormy16-tdep.c (xstormy16_register_name): Update.
3273 * vax-tdep.c (vax_register_name): Update.
3274 * v850-tdep.c (v850_register_name): Update.
3275 * m68hc11-tdep.c (m68hc11_register_name): Update.
3276 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3277 (am33_register_name): Update.
3279 2002-06-17 Grace Sainsbury <graces@redhat.com>
3281 * m68k-tdep.c: Reindented.
3283 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3285 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3286 list of predefined types.
3288 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3290 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3291 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3292 REGISTER_CONVERT_TO_RAW): Remove defines.
3293 (i386_register_virtual_type, i386_register_convertible,
3294 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3296 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3297 macros mentioned above.
3299 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3300 (i386lynx_saved_pc_after_call): Remove prototype.
3301 * i386ly-tdep.c: Include "i386-tdep.h".
3302 (i386lynx_saved_pc_after_call): Make static. Use
3303 read_memory_nobpt instead of read_memory. Use
3304 read_memory_unsigned_integer instead of read_memory_integer.
3305 (i386lynx_init_abi): New function.
3306 (i386lynx_coff_osabi_sniffer): New function.
3307 (_initialize_i386bsd_tdep): New function.
3309 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3310 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3311 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3312 (i386_fix_call_dummy): Remove prototype.
3313 * i386-tdep.c (i386_call_dummy_words): New variable.
3314 (i386_gdbarch_init): Adjust for removal of the
3315 macros mentioned above.
3317 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3319 * command.h (add_setshow_auto_boolean_cmd): Replace
3320 add_set_auto_boolean_cmd.
3321 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3322 add_set_auto_boolean_cmd.
3323 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3324 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3325 mask-address'' command.
3326 (show_mask_address): Add cmd parameter.
3327 * remote.c (add_packet_config_cmd): Update. Change type of
3328 set_func and show_func to cmd_sfunc_ftype.
3329 (_initialize_remote): Update `set remote Z-packet'
3330 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3331 (show_remote_protocol_e_packet_cmd): Ditto.
3332 (show_remote_protocol_E_packet_cmd): Ditto.
3333 (show_remote_protocol_P_packet_cmd): Ditto.
3334 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3335 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3336 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3337 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3338 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3339 (show_remote_protocol_Z_packet_cmd): Ditto.
3340 (show_remote_protocol_binary_download_cmd): Ditto.
3341 (show_remote_cmd): Pass NULL to all of above.
3343 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3345 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3346 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3347 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3348 POP_FRAME): Remove defines.
3349 (i386_push_arguments, i386_store_struct_return,
3350 i386_extract_return_value, i386_store_return_value,
3351 i386_extract_struct_value_address, i386_push_dummy_frame,
3352 i386_pop_frame): Renove prototypes.
3353 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3354 macros mentioned above.
3356 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3358 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3359 add_set_boolean_cmd.
3360 (add_setshow_cmd): New function.
3361 * command.h (add_setshow_boolean_cmd): Replace
3362 add_set_boolean_cmd.
3363 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3364 and ``set rdiromatzero''.
3365 * maint.c (_initialize_maint_cmds): Update commented out code.
3366 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3367 * target.c (initialize_targets): Update `set
3368 trust-readonly-sections'.
3369 * remote.c (_initialize_remote): Update `set remotebreak'.
3371 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3373 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3374 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3375 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3376 fit into multi-arch framework.
3377 (i386_breakpoint_from_pc): New function.
3378 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3381 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3382 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3383 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3384 (i386_frameless_function_invocation, i386_frame_num_args,
3385 i386_frame_init_saved_regs): Remove prototypes.
3386 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3387 macros mentioned above.
3389 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3391 * cli/cli-decode.c (set_cmd_cfunc): Update.
3392 (set_cmd_sfunc): Update.
3393 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3394 (set_cmd_sfunc, set_cmd_cfunc): Update.
3395 * cli/cli-decode.h: Update.
3397 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3399 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3400 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3402 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3404 * defs.h (auto_boolean): Declare enum.
3405 * command.h (cmd_auto_boolean): Delete enum.
3406 * mips-tdep.c (mask_address_var): Update.
3407 (mips_mask_address_p): Update.
3408 (show_mask_address): Update.
3409 * remote.c (struct packet_config): Update.
3410 (update_packet_config): Update.
3411 (show_packet_config_cmd): Update.
3412 (packet_ok): Update.
3413 (add_packet_config_cmd): Update.
3414 (_initialize_remote):
3415 * command.h: Update.
3416 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3417 (do_setshow_command): Update.
3418 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3419 * cli/cli-decode.h: Update.
3421 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3423 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3424 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3425 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3426 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3427 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3428 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3430 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3431 list of DJGPP COFF targets.
3433 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3434 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3435 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3436 (FP0_REGNUM): Remove define.
3437 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3438 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3439 (i386_register_virtual_size): Remove protoype.
3440 * i386-tdep.c (i386_register_virtual_size): Removed.
3441 (i386_extract_return_value, i386_store_return_value): Use
3442 FP0_REGNUM instead of NUM_FREGS to determine whether the
3443 floating-point registers are available.
3444 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3445 Adjust for removal of macros mentioned above.
3447 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3449 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3451 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3453 (supply_gregset, fill_gregset): Remove use of register keyword and
3454 remove declaration for regmap. Use I386_NUM_GREGS instead of
3455 NUM_REGS and NUM_FREGS.
3456 (FPREGSET_FSAVE_OFFSET): Remove.
3457 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3458 NUM_FREGS to determine whether the floating-point registers are
3461 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3462 gnu_store_registers): Replace usage of NUM_GREGS with
3465 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3466 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3467 usage of NUM_GREGS with I386_NUM_GREGS.
3469 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3471 * i386bsd-nat.c: Include "i386-tdep.h".
3472 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3475 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3476 and associated comment. They no longer make any sense, since we
3477 don't use this file anymore on Linux.
3479 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3480 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3481 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3482 elements in these arrays.
3483 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3486 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3488 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3489 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3491 2002-06-14 Andrew Cagney <cagney@redhat.com>
3493 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3494 EXTRACT_RETURN_VALUE.
3495 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3496 EXTRACT_STRUCT_VALUE_ADDRESS.
3497 * gdbarch.h, gdbarch.c: Regenerate.
3499 * values.c (value_being_returned): Handle
3500 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3501 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3503 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3504 * arm-tdep.c (arm_gdbarch_init): Update.
3505 * avr-tdep.c (avr_gdbarch_init): Update.
3506 * cris-tdep.c (cris_gdbarch_init): Update.
3507 * d10v-tdep.c (d10v_gdbarch_init): Update.
3508 * ia64-tdep.c (ia64_gdbarch_init): Update.
3509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3510 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3511 * s390-tdep.c (s390_gdbarch_init): Update.
3512 * sh-tdep.c (sh_gdbarch_init): Update.
3513 * s390-tdep.c (s390_gdbarch_init): Update.
3514 * sparc-tdep.c (sparc_gdbarch_init): Update.
3515 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3516 * v850-tdep.c (v850_gdbarch_init): Update.
3517 * vax-tdep.c (vax_gdbarch_init): Update.
3518 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3521 * config/arc/tm-arc.h: Update.
3522 * config/d30v/tm-d30v.h: Update.
3523 * config/fr30/tm-fr30.h: Update.
3524 * config/h8300/tm-h8300.h: Update.
3525 * config/h8500/tm-h8500.h: Update.
3526 * config/i386/tm-i386.h: Update.
3527 * config/i386/tm-ptx.h: Update.
3528 * config/i386/tm-symmetry.h: Update.
3529 * config/i960/tm-i960.h: Update.
3530 * config/m32r/tm-m32r.h: Update.
3531 * config/m68k/tm-delta68.h: Update.
3532 * config/m68k/tm-linux.h: Update.
3533 * config/m68k/tm-m68k.h: Update.
3534 * config/m88k/tm-m88k.h: Update.
3535 * config/mcore/tm-mcore.h: Update.
3536 * config/mips/tm-mips.h: Update.
3537 * config/mn10200/tm-mn10200.h: Update.
3538 * config/pa/tm-hppa.h: Update.
3539 * config/pa/tm-hppa64.h: Update.
3540 * config/sparc/tm-sp64.h: Update.
3541 * config/sparc/tm-sparc.h: Update.
3542 * config/sparc/tm-sparclet.h: Update.
3543 * config/z8k/tm-z8k.h: Update.
3545 2002-06-14 Andrew Cagney <cagney@redhat.com>
3547 * Makefile.in (i386_linux_tdep_h): Define.
3548 (i386_tdep_h, i387_tdep_h): Define.
3549 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3550 $(i386_tdep_h) and $(i387_tdep_h).
3551 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3553 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3555 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3556 Already covered by the default.
3558 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3559 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3560 (i386_gdbarch_init): Initialize long_double_format and long_double
3563 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3564 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3566 * config/i386/i386sol2.mh: ... here.
3567 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3568 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3569 (SIGCONTEXT_PC_OFFSET): Remove define.
3570 (IN_SIGTRAMP): Remove define.
3571 * i386-sol2-tdep.c: New file.
3573 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3574 * config/i386/tm-i386nw.h: Removed.
3576 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3577 USE_STRUCT_CONVENTION): Remove defines.
3578 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3579 (get_longjmp_target): Remove prototype.
3580 (IN_SIGTRAMP): Remove define.
3581 (i386bsd_in_sigtramp): Remove prototype.
3582 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3583 function. Update comment accordingly
3584 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3585 (FRAME_SAVED_PC): Remove define.
3586 (i386bsd_frame_saved_pc): Remove prototype.
3587 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3588 GET_LONGJMP_TARGET): Remove defines.
3589 (get_longjmp_target): Remove prototype.
3590 (IN_SIGTRAMP): Remove define.
3591 (i386bsd_in_sigtramp): Remove prototype.
3592 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3593 function. Update comment accordingly
3594 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3595 (FRAME_SAVED_PC): Remove define.
3596 (i386bsd_frame_saved_pc): Remove prototype.
3597 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3599 (USE_STRUCT_CONVENTION): Remove prototype.
3600 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3602 (_initialize_i386bsd_nat): Revise logic to determine some
3603 constants at compile time when compiling a native GDB. Warn if
3604 things don't match up with what we expect.
3605 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3607 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3608 to use date stored in `struct gdbarch_tdep'.
3609 (i386bsd_sigcontext_offset): Remove varaible.
3610 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3611 stored in `struct gdbarch_tdep'.
3612 (i386bsd_frame_saved_pc): Make static.
3613 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3614 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3615 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3616 i386fbsd4_sc_pc_offset): New variables.
3617 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3618 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3620 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3622 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3623 Modify the value of i386fbsd_sigtramp_start and
3624 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3625 i386fbsd_sigtramp_end.
3626 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3629 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3630 define to i386-linux-tdep.h.
3631 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3632 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3634 (i386_linux_register_name, i386_linux_register_byte,
3635 i386_linux_register_raw_size): Remove prototypes.
3636 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3637 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3638 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3639 TARGET_WRITE_PC): Remove defines.
3640 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3641 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3642 i386_linux_write_pc): Remove prototypes.
3643 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3644 (get_longjmp_target): Remove prototype.
3645 * i386-linux-tdep.h: New file.
3646 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3647 * i386-linux-tdep.c: Include "i386-tdep.h" and
3648 "i386-linux-tdep.h".
3649 (i386_linux_register_name, i386_linux_register_byte,
3650 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3651 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3653 (i386_linux_init_abi): New function.
3654 (_initialize_i386_linux_tdep): New function.
3656 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3657 (i386_saved_pc_after_call): Remove prototype.
3658 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3659 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3660 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3661 (i386_register_name, i386_stab_reg_to_regnum,
3662 i386_dwarf_reg_to_regnum): Remove prototypes.
3663 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3664 SIZEOF_SSE_REGS): Remove defines.
3665 (REGISTER_BYTES): Remove define.
3666 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3667 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3668 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3669 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3670 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3671 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3672 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3673 (get_longjmp_target): Remove prototype.
3674 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3675 (sigtramp_saved_pc): Remove define.
3676 (i386v4_sigtramp_saved_pc): Remove prototype.
3677 * config/i386/tm-go32.h (FRAME_CHAIN,
3678 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3679 (i386go32_frame_saved_pc): Remove prototype.
3680 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3681 (get_longjmp_target): Remove prototype.
3682 * i386-tdep.h: Include "osabi.h".
3683 (enum i386_abi): Removed.
3684 (enum struct_return): New enum.
3685 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3686 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3687 sc_pc_offset members.
3688 (i386_gdbarch_register_os_abi): Remove prototype.
3689 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3690 I386_SSE_NUM_REGS): New defines.
3691 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3692 I386_SSE_SIZEOF_REGS): New defines.
3693 (i386_register_name, i386_register_byte, i386_register_raw_size):
3695 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3696 (i386bsd_sigtramp_saved_pc): New prototype.
3697 * i386-tdep.c: Don't include "elf-bfd.h".
3698 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3699 i386_frame_chain, i386_saved_pc_after_call): Make static.
3700 (i386_frame_saved_pc): Rewrite to call architecture dependent
3701 function to deal with signal handlers. Make static.
3702 (i386go32_frame_saved_pc): Removed.
3703 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3705 (i386_get_longjmp_target): New function.
3706 (default_struct_convention, pcc_struct_convention,
3707 reg_struct_convention, valid_conventions, struct_convention): New
3709 (i386_use_struct_convention): New function.
3710 (i386v4_sigtramp_saved_pc): Renamed to
3711 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3712 (i386_pc_in_sigtramp): New function.
3713 (i386_abi_names): Removed.
3714 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3715 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3717 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3718 i386_gdbarch_register_os_abi): Removed.
3719 (struct i386_abi_handler): Removed.
3720 (i386_abi_handler_list): Removed.
3721 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3723 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3724 i386_nw_init_abi): New functions.
3725 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3726 Use set_gdbarch_xxx() calls instead of relying on macros for a
3728 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3729 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3730 Register the various architecture variants defined in this file.
3732 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3734 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3735 (struct main_type): Remove arg_types member. Update comments for
3737 (TYPE_ARG_TYPES): Remove.
3738 (TYPE_FN_FIELD_ARGS): Update.
3739 (smash_to_method_type): Update prototype.
3741 * c-typeprint.c (cp_type_print_method_args): Take method type
3742 instead of argument list. Use new argument layout. Simplify.
3743 (c_type_print_args): Use new argument layout. Simplify.
3744 (c_type_print_base): Update call to cp_type_print_method_args.
3745 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3746 argument; use die->type instead. Update call to
3747 smash_to_method_type.
3748 (read_structure_scope): Update call to dwarf2_add_member_fn.
3749 * gdbtypes.c (allocate_stub_method): Update comment.
3750 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3751 Use new argument layout.
3752 (check_stub_method): Use new argument layout. Don't count
3753 void as an argument.
3754 (print_arg_types): Update comments. Use new argument layout.
3755 (recursive_dump_type): Don't print arg_types member.
3756 * hpread.c (hpread_read_struct_type): Use new argument layout.
3757 (fixup_class_method_type): Likewise.
3758 (hpread_type_lookup): Likewise.
3759 * stabsread.c (read_type): Update calls to read_args and
3760 smash_to_method_type.
3761 (read_args): Use new argument layout. Simplify.
3762 * valops.c (typecmp): Use new argument layout. Update parameters
3763 and comments. Simplify.
3764 (hand_function_call): Use new argument layout.
3765 (search_struct_method): Update call to typecmp.
3766 (find_overload_match): Use new argument layout.
3768 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3770 * NEWS: Mention multithreaded debug support for gdbserver.
3772 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3774 * MAINTAINERS: Mention NEWS.
3776 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3778 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3779 (struct mips_objfile_private, compare_pdr_entries): New.
3780 (non_heuristic_proc_desc): Read the ".pdr" section if it
3783 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3785 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3786 (arm_debug): New static variable.
3787 (_initialize_arm_tdep): Add ``set debug arm'' command.
3789 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3791 * Makefile.in (sim_arm_h): Define.
3792 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3793 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3794 (arm_register_sim_regno): New function, map an internal REGNUM
3795 onto a simulator register number.
3796 (arm_gdbarch_init): Set register_sim_regno.
3798 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3800 * MAINTAINERS: Add self.
3802 2002-06-11 Jim Blandy <jimb@redhat.com>
3804 * source.c (source_info): Mention whether the symtab has
3805 information about preprocessor macros.
3807 Call the command `info macro', not `show macro'.
3808 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3810 (_initialize_macrocmd): Register `info_macro_command' in
3811 `infolist', not `showlist'.
3813 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3815 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3816 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3817 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3818 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3819 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3821 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3822 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3823 (_initialize_mips_tdep): Remove dead code.
3824 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3825 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3826 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3827 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3828 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3829 MIPS_LAST_FP_ARG_REGNUM): Remove.
3831 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3833 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3834 (unwind_tmp_obstack_free, parse_frame_info)
3835 (update_context, cfi_read_fp, cfi_write_fp)
3836 (cfi_frame_chain, cfi_init_extra_frame_info)
3837 (cfi_virtual_frame_pointer): Use the above function.
3838 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3840 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3842 * v850-tdep.c (v850_type_is_scalar): New function.
3843 (v850_use_struct_convention): Match current gcc implementation
3844 as close as possible.
3845 (v850_push_arguments): Fix stack_offset handling. Don't write
3846 struct_addr into register. This is done by v850_store_struct_return.
3847 (v850_extract_return_value): Care for structs.
3848 (v850_store_return_value): Ditto.
3849 (v850_store_struct_return): Actually write address.
3851 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3853 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3854 without debug information too.
3856 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3858 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3859 Make multi-arch pure.
3860 * gdbarch.h, gdbarch.c: Re-generate.
3861 * arm-tdep.c (arm_print_float_info): Update.
3862 * arch-utils.h (default_print_float_info): Update.
3863 * arch-utils.c (default_print_float_info): Update.
3864 * infcmd.c (float_info): Update call.
3866 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3868 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3869 the front of the initialize list.
3871 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3873 * infrun.c (struct inferior_status): Replace fields
3874 selected_frame_address and selected_level with field
3876 (save_inferior_status): Update. Use get_frame_id.
3877 (struct restore_selected_frame_args): Delete.
3878 (restore_selected_frame): Update. Use frame_find_by_id.
3879 (restore_inferior_status): Update.
3881 * breakpoint.h (struct breakpoint): Change type of
3882 watchpoint_frame to frame_id.
3883 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3884 call to get_current_frame.
3885 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3887 (watchpoint_check): Use frame_find_by_id.
3889 * frame.h (record_selected_frame): Delete declaration.
3890 * stack.c (record_selected_frame): Delete function.
3892 * frame.h (struct frame_id): Define.
3893 (get_frame_id): Declare.
3894 (frame_find_by_id): Declare.
3895 * frame.c (frame_find_by_id): New function.
3896 (get_frame_id): New function.
3898 2002-06-10 Andrey Volkov <avolkov@transas.com>
3900 * ser-e7kpc.c: Fix duplicated define and call of
3901 _initialize_ser_e7000pc
3903 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3905 * signals/signals.c (target_signal_from_host): Fix #ifdef
3907 (do_target_signal_to_host): Likewise.
3909 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3911 * mips-tdep.c (mips_find_abi_section): New function.
3912 (mips_gdbarch_init): Call it.
3914 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3916 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3917 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3918 after Andrew's 2002-06-08 gdbarch change.
3920 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3922 * i386-linux-nat.c (suppy_gregset): Don't supply
3923 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3925 (fill_gregset): Don't fetch it under the same circumstances.
3927 2002-06-09 Andrew Cagney <cagney@redhat.com>
3929 * Makefile.in (callback_h): Define.
3930 (remote_sim_h): Update path to remote-sim.h.
3931 (remote-rdp.o): Add $(callback_h).
3932 (remote-sim.o): Use $(callback_h).
3933 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3934 * remote-rdp.c: Include "gdb/callback.h".
3936 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3938 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3939 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3941 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3943 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3944 * rdi-share/serpardr.c: Ditto.
3945 * rdi-share/unixcomm.c: Ditto.
3946 * rdi-share/serdrv.c: Ditto.
3947 * rdi-share/hostchan.h: Ditto.
3948 * rdi-share/hostchan.c: Ditto.
3949 * rdi-share/host.h: Ditto.
3950 * rdi-share/devsw.c: Ditto.
3952 * objfiles.h: Change type of obj_private to void pointer.
3953 * pa64solib.c: Update copyright. Don't include "assert.h", use
3954 strcmp instead of STREQ, use LONGEST, do not use PTR
3955 * somsolib.c: Ditto.
3957 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3958 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3959 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3961 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3963 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3964 (default_get_saved_register): Delete function.
3965 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3966 generic_unwind_get_saved_register.
3967 * gdbarch.h, gdbarch.c: Re-generate.
3969 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3971 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3972 generic_func_frame_chain_valid.
3973 * gdbarch.h, gdbarch.c: Re-generate.
3974 * blockframe.c (generic_func_frame_chain_valid): Only check
3975 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3976 passing FP to PC_IN_CALL_DUMMY.
3979 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3981 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3982 (register_gdbarch_data): Initialize init_p.
3983 (gdbarch_data): Initialize data pointer using the init function.
3984 (init_gdbarch_data): Delete function.
3985 (gdbarch_update_p): Update.
3986 (initialize_non_multiarch): Update.
3987 (struct gdbarch): Add field initialized_p.
3988 * gdbarch.h, gdbarch.c: Re-generate.
3990 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3992 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3993 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3994 better do the things actually here.
3995 * x86-64-tdep.c (x86_64_register_name2nr): New.
3996 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3997 (x86_64_gdbarch_init): Respect the above change.
3998 * x86-64-tdep.h (x86_64_register_name2nr)
3999 (x86_64_register_nr2name): Add prototypes.
4000 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4002 2002-06-06 Michael Snyder <msnyder@redhat.com>
4004 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4005 Delete extra braces and re-indent.
4006 (d10v_store_return_value): Char return values
4007 must be shifted over by one byte in R0.
4008 (d10v_extract_return_value): Delete extra braces, re-indent.
4010 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4012 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4013 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4014 (d10v_integer_to_address): Rewrite.
4015 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4016 the d10v specific functions which take care of converting to the
4019 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4021 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4022 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4024 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4026 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4028 * config/tm-linux.h: Ditto.
4029 * config/alpha/tm-alphalinux.h: Ditto.
4030 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4031 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4032 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4033 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4034 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4035 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4036 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4037 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4038 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4039 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4040 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4041 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4042 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4043 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4044 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4045 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4046 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4047 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4048 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4049 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4050 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4051 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4052 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4053 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4054 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4055 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4056 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4057 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4058 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4059 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4060 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4061 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4062 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4063 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4064 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4065 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4066 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4068 2002-05-04 Aidan Skinner <aidan@velvet.net>
4070 * ada-exp.tab.c: New file
4071 * ada-exp.y: New file
4072 * ada-lang.c: New file
4073 * ada-lang.h: New file
4074 * ada-lex.c: New file
4075 * ada-lex.l: New file
4076 * ada-tasks.c: New file
4077 * ada-typeprint.c: New file
4078 * ada-valprint.c: New file
4080 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4082 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4083 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4085 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4087 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4088 insetead of ppc-linux-tdep.o.
4089 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4090 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4092 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4094 2002-05-07 Christian Groessler <chris@groessler.org>
4095 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4096 bit register contents for little endian hosts.
4098 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4100 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4103 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4105 * gdbarch.h: Regenerate.
4107 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4109 * MAINTAINERS: Add everyone to write-after-approval list.
4111 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4113 * stack.c (frame_info): Use frame_register_unwind instead of
4114 saved_regs. Mention when the SP is on the stack or in a register.
4116 * frame.h (frame_register_unwind_ftype): Define. Document.
4117 (struct frame_info): Add field register_unwind and
4118 register_unwind_cache.
4119 (frame_register_unwind): Declare.
4120 (generic_unwind_get_saved_register): Declare.
4122 * frame.c (frame_register_unwind): New function.
4123 (generic_unwind_get_saved_register): New function.
4125 * blockframe.c (generic_call_dummy_register_unwind): New function.
4126 (frame_saved_regs_register_unwind): New function.
4127 (set_unwind_by_pc): New function.
4128 (create_new_frame): New function.
4129 (get_prev_frame): New function.
4131 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4133 * a29k-share/: Delete directory.
4134 * remote-vx29k.c: Delete file.
4136 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4138 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4139 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4141 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4143 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4144 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4147 (sparcnbsd-tdep.o): New dependency lists.
4148 * NEWS: Note new UltraSPARC NetBSD native configuration.
4149 * configure.host (sparc64-*-netbsd*): New host.
4150 * configure.tgt (sparc-*-netbsdelf*)
4151 (sparc-*-netbsd*): Set gdb_target to nbsd.
4152 (sparc64-*-netbsd*): New target.
4153 * sparc64nbsd-nat.c: New file.
4154 * sparcnbsd-nat.c: New file.
4155 * sparcnbsd-tdep.c: New file.
4156 * sparcnbsd-tdep.h: New file.
4157 * config/sparc/nbsd.mt: New file.
4158 * config/sparc/nbsd64.mh: New file.
4159 * config/sparc/nbsd64.mt: New file.
4160 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4161 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4163 * config/sparc/nbsdaout.mt: Remove.
4164 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4165 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4167 * config/sparc/nbsdelf.mt: Remove.
4168 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4169 sparc-nat.c compatiblity defines.
4170 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4171 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4172 * config/sparc/tm-nbsd64.h: New file.
4173 * config/sparc/tm-nbsdaout.h: Remove.
4174 * config/sparc/xm-nbsd.h: Remove.
4176 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4178 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4179 * sparc-tdep.c: Include osabi.h.
4180 (gdbarch_tdep): Add osabi member.
4181 (_initialize_sparc_tdep): Use gdbarch_register.
4182 (sparc_gdbarch_init): Use generic OS ABI framework.
4183 (sparc_dump_tdep): New function.
4185 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4187 * corefile.c (do_captured_read_memory_integer): Return non-zero
4189 (safe_read_memory_integer): Copy result of memory read when
4190 status is non-zero. Also, add comments.
4192 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4194 * Makefile.in (ppc_tdep_h): Define.
4197 (rs6000-tdep.o): Use $(ppc_tdep_h).
4200 (ppcnbsd-tdep.o): New dependency lists.
4201 * ppc-tdep.h: Use generic OS ABI framework.
4202 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4203 (ppc_linux_init_abi): New functions.
4204 (ppc_sysv_abi_broken_use_struct_convention)
4205 (ppc_sysv_abi_use_struct_convention)
4206 (ppc_sysv_abi_push_arguments): Move to...
4207 * ppc-sysv-tdep.c: ...here.
4208 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4209 * rs6000-tdep.c (process_note_abi_tag_sections)
4210 (get_elfosabi): Remove.
4211 (rs6000_gdbarch_init): Use generic OS ABI framework.
4212 (rs6000_dump_tdep): New function.
4213 (_initialize_rs6000_tdep): Use gdbarch_register.
4214 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4215 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4216 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4217 of ppc-linux-tdep.o.
4218 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4219 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4220 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4221 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4222 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4223 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4225 2002-05-29 Jim Blandy <jimb@redhat.com>
4227 * macroscope.c (default_macro_scope): Put `void' in empty argument
4230 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4232 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4233 * arch-utils.c: Include "sim-regno.h".
4234 * gdbarch.sh: Don't include "sim-regno.h".
4235 * gdbarch.h, gdbarch.c: Regenerate.
4236 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4238 * arch-utils.h (legacy_register_sim_regno): To here.
4239 * remote-sim.c (legacy_register_sim_regno): Move function from
4241 * arch-utils.c (legacy_register_sim_regno): To here.
4243 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4245 * sim-regno.h: New file.
4246 * Makefile.in (sim_regno_h): Define.
4247 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4248 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4249 (legacy_register_sim_regno): New function.
4250 (one2one_register_sim_regno): New function.
4251 (gdbsim_fetch_register): Rewrite.
4252 (gdbsim_store_register): Only store a register when
4253 REGISTER_SIM_REGNO is valid.
4254 * d10v-tdep.c: Include "sim-regno.h".
4255 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4256 (d10v_ts3_register_sim_regno): Ditto.
4257 * gdbarch.sh: Include "sim-regno.h".
4258 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260 * arch-utils.h (default_register_sim_regno): Delete declaration.
4261 * arch-utils.c (default_register_sim_regno): Delete function.
4263 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4265 * ppcnbsd-nat.c: Rewrite.
4266 * ppcnbsd-tdep.c: New file.
4267 * ppcnbsd-tdep.h: New file.
4268 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4269 solib.o, and solib-svr4.o.
4270 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4271 nbsd-tdep.o, and corelow.o.
4273 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4275 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4276 `tr' and `sed'. Mention that `broken' targets are not expected to
4279 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4281 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4282 Let PC point right after the prologue before looking up symbols.
4284 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4286 * i386-tdep.c (i386_register_virtual_type): Return
4287 builtin_type_vec128i for SSE registers.
4289 * gdbtypes.h (builtin_type_vec128i): Declare.
4291 * gdbtypes.c (build_builtin_type_vec128i): New function.
4292 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4293 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4294 (build_gdbtypes): Initialize new builtin vector types.
4295 (_initialize_gdbtypes): Register new vector types with gdbarch.
4297 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4299 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4300 since it has been multi-arch'd.
4301 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4302 Move Alpha and VAX multi-arch news entries to same section
4303 as other multi-arch news.
4305 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4307 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4308 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4309 static. Rename some register numbers to put them in ns32k-tdep
4311 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4312 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4314 (_initialize_ns32k_tdep): Use gdbarch_register.
4315 * ns32k-tdep.h: New file.
4316 * ns32knbsd-tdep.c: New file.
4317 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4318 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4319 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4320 REGISTER_BYTES, REGISTER_BYTE): Remove.
4321 * config/ns32k/tm-ns32k.h: New file.
4322 * config/ns32k/tm-umax.h: Remove.
4324 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4326 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4327 ns32k_store_struct_return, ns32k_extract_return_value,
4328 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4330 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4331 ns32k_saved_pc_after_call.
4332 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4333 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4334 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4335 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4336 ns32k_extract_struct_value_address.
4338 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4340 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4341 ns32k_fix_call_dummy): New.
4342 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4343 ns32k_call_dummy_words.
4344 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4345 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4346 CALL_DUMMY_NARGS): Remove.
4347 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4349 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4351 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4352 ns32k_frame_saved_pc, ns32k_frame_args_address,
4353 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4354 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4355 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4356 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4357 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4358 (BREAKPOINT): Remove..
4359 (FRAME_CHAIN): Define as ns32k_frame_chain.
4360 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4361 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4362 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4363 (FRAME_FIND_SAVED_REGS): Remove.
4364 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4365 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4366 (POP_FRAME): Define as ns32k_pop_frame.
4368 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4370 * ns32k-tdep.c (ns32k_register_byte_32082,
4371 ns32k_register_byte_32382, ns32k_register_raw_size,
4372 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4374 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4375 ns32k_register_byte_32382.
4376 * config/ns32k/tm-umax.h: Update copyright years.
4377 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4378 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4379 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4380 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4381 (ns32k_get_enter_addr): Fix prototype.
4383 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4385 * ns32k-tdep.c: Update copyright years.
4386 (ns32k_register_name_32082): New function.
4387 (ns32k_register_name_32382): Ditto.
4388 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4389 (REGISTER_NAME): Define as ns32k_register_name_32382.
4390 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4391 (REGISTER_NAME): Define as ns32k_register_name_32082.
4393 2002-05-24 Jim Blandy <jimb@redhat.com>
4395 * dwarf2read.c (free_line_header): Use xfree, not free.
4397 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4399 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4400 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4402 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4404 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4406 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4408 From Ross Alexander at NEC Europe:
4409 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4411 2002-05-23 Michael Snyder <msnyder@redhat.com>
4413 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4414 for input, rather than parse_and_eval_address.
4416 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4418 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4419 * Makefile.in (sim_d10v_h): Update definition.
4421 2002-05-24 Andrew Cagney <cagney@redhat.com>
4423 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4424 change `2002-05-22 Michael Snyder' below.
4425 (d10v_push_arguments): Ditto.
4426 (d10v_extract_return_value): Ditto.
4428 2002-05-23 Jim Blandy <jimb@redhat.com>
4430 * macrotab.c (check_for_redefinition): Don't complain if the new
4431 definition is the same as the previous one. Take more arguments
4432 to allow the comparison.
4433 (macro_define_object, macro_define_function): Pass more arguments
4434 to check_for_redefinition.
4436 2002-05-22 Michael Snyder <msnyder@redhat.com>
4438 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4439 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4440 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4441 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4442 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4443 Add a temp variable to save a call (and a memory read).
4444 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4445 if possible (so that PC_IN_CALL_DUMMY will work).
4447 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4449 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4451 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4453 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4455 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4456 (dwarf2_build_frame_info): Add offset to fde->initial_location
4457 so that frames of shared libraries are mapped correctly.
4458 (execute_stack_op): Change type of 'result' from ULONGEST to
4461 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4463 * config/alpha/tm-nbsd.h: Include solib.h.
4465 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4467 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4468 assumptions about the host's byte order.
4470 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4472 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4474 * alphanbsd-tdep.c: Include solib-svr4.h.
4475 * shnbsd-tdep.c: Ditto.
4477 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4479 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4480 nbsd-tdep.h to dependency list.
4481 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4482 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4483 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4484 nbsdaout.mh and nbsdelf.mh consistently.
4485 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4486 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4487 nbsdaout.mt and nbsdelf.mh consistently.
4488 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4489 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4490 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4491 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4492 a.out shared library stuff from here...
4493 * config/nm-nbsdaout.h: ...to here.
4494 * config/tm-nbsd.h: Remove.
4495 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4496 * config/arm/nbsd.mh: Remove.
4497 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4499 * config/arm/nbsdaout.mh: New file.
4500 * config/arm/nbsdelf.mh: New file.
4501 * config/arm/nm-nbsdaout.h: New file.
4502 * config/i386/nbsd.mh: Remove.
4503 * config/i386/nbsd.mt: Remove.
4504 * config/i386/nbsdaout.mh: New file.
4505 * config/i386/nbsdaout.mt: New file.
4506 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4507 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4508 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4509 i386_register_u_addr): Remove.
4510 * config/i386/nm-nbsdaout.h: New file.
4511 * config/i386/nm-nbsdelf.h: Remove.
4512 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4513 (USE_STRUCT_CONVENTION): Remove.
4514 * config/i386/tm-nbsdaout.h: New file.
4515 * config/i386/tm-nbsdelf.h: Remove.
4516 * config/m68k/nbsd.mh: Remove.
4517 * config/m68k/nbsd.mt: Remove.
4518 * config/m68k/nbsdaout.mh: New file.
4519 * config/m68k/nbsdaout.mt: New file.
4520 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4521 * config/m68k/nm-nbsdaout.h: New file.
4522 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4523 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4524 * config/ns32k/nbsd.mh: Remove.
4525 * config/ns32k/nbsd.mt: Remove.
4526 * config/ns32k/nbsdaout.mh: New file.
4527 * config/ns32k/nbsdaout.mt: New file.
4528 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4529 * config/ns32k/nm-nbsdaout.h: New file.
4530 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4531 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4532 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4533 (SVR4_SHARED_LIBS): Remove.
4534 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4535 * config/sparc/nbsd.mh: Remove.
4536 * config/sparc/nbsd.mt: Remove.
4537 * config/sparc/nbsdaout.mh: New file.
4538 * config/sparc/nbsdaout.mt: New file.
4539 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4540 * config/sparc/nbsdelf.mt: New file.
4541 * config/sparc/nm-nbsdaout.h: New file.
4542 * config/sparc/nm-nbsdelf.h: Remove.
4543 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4544 * config/sparc/tm-nbsdaout.h: New file.
4546 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4548 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4550 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4552 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4554 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4556 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4558 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4560 * NEWS: Note new MIPS NetBSD native configuration.
4561 * configure.host (mips*-*-netbsd*): New host.
4562 * configure.tgt (mips*-*-netbsd*): New target.
4563 * mipsnbsd-nat.c: New file.
4564 * mipsnbsd-tdep.c: New file.
4565 * mipsnbsd-tdep.h: New file.
4566 * config/mips/nbsd.mh: New file.
4567 * config/mips/nbsd.mt: New file.
4568 * config/mips/nm-nbsd.h: New file.
4569 * config/mips/tm-nbsd.h: New file.
4571 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4573 * Makefile.in (SFILES): Add osabi.c.
4574 (COMMON_OBS): Add osabi.o.
4575 (osabi.o): New dependency list.
4576 * osabi.c: New file.
4577 * osabi.h: New file.
4578 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4580 * Makefile.in (alpha_tdep_h): Define and use instead of
4582 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4583 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4585 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4586 * alpha-tdep.h: Include osabi.h.
4587 (alpha_abi): Remove.
4588 (gdbarch_tdep): Use generic OS ABI framework.
4589 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4590 gdbarch_register_osabi.
4591 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4592 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4593 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4595 * Makefile.in (sh_tdep_h): Add osabi.h.
4596 * sh-tdep.h (sh_osabi): Remove.
4597 (gdbarch_tdep): Use generic OS ABI framework.
4598 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4599 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4600 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4601 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4603 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4604 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4605 gdbarch_register_osabi.
4606 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4607 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4608 (get_elfosabi): Rename to...
4609 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4610 ABI framework support routines.
4611 (arm_gdbarch_init): Use generic OS ABI framework.
4612 (arm_dump_tdep): Likewise.
4613 (_initialize_arm_tdep): Likewise.
4614 * arm-tdep.h: Include osabi.h.
4616 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4618 (arm_gdbarch_register_os_abi): Remove prototype.
4619 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4620 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4622 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4623 * mips-tdep.c: Include osabi.h.
4624 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4627 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4629 * h8300-tdep.c: Fix formatting.
4631 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4633 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4634 printing vector registers.
4636 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4638 From Fernando Nasser:
4639 * remote.c (remote_async_open_1): Re-throw the exception when the
4641 (remote_cisco_open): Ditto.
4642 (remote_open_1): Ditto.
4644 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4646 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4647 (remote_start_remote): Add uiout parameter. Pass through to
4648 remote_start_remote_dummy.
4649 (remote_open_1): Use catch_exception instead of catch_errors.
4650 (remote_async_open_1): Ditto.
4651 (remote_cisco_open): Ditto.
4653 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4655 * remote.c (remote_start_remote): Replace PTR with void pointer.
4656 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4659 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4661 * gdb_indent.sh: Allow the script to be run in the sim directory.
4663 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4665 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4666 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4668 * corelow.c (core_open): Only call set_gdbarch_from_file if
4671 2002-05-17 Andrey Volkov <avolkov@transas.com>
4673 * h8300-tdep.c: Add support of EXR register
4674 * config/h8300/tm-h8300.h: Ditto.
4676 2002-05-17 Andrey Volkov <avolkov@transas.com>
4678 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4680 2002-05-17 Andrey Volkov <avolkov@transas.com>
4682 * h8300-tdep.c: Change literal regnums to REGNO.
4684 2002-05-17 Jim Blandy <jimb@redhat.com>
4686 * NEWS: Note addition of macro support.
4688 Expand preprocessor macros in C expressions.
4689 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4690 (scan_macro_expansion, scanning_macro_expansion,
4691 finished_macro_expansion): New function declarations.
4692 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4693 variable declarations.
4694 * parser-defs.h (expression_context_pc): New declaration.
4695 * parse.c (expression_context_pc): New variable.
4696 (parse_exp_1): Set expression_context_pc, as well as
4697 expression_context_block.
4698 * c-exp.y (yylex): If we're not already reading the result of a
4699 macro expansion, try to macro-expand the next token. When we're
4700 done scanning a macro expansion, switch back to the mainline text.
4701 Commas and `if's in a macro's expansion don't terminate the input.
4702 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4703 (macro_original_text, macro_expanded_text,
4704 expression_macro_lookup_func, expression_macro_lookup_baton): New
4706 (scan_macro_expansion, scanning_macro_expansion,
4707 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4708 c_preprocess_and_parse): New functions.
4709 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4710 c_preprocess_and_parse, instead of c_parse.
4711 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4712 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4714 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4716 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4717 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4718 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4720 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4722 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4724 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4726 * Makefile.in (sh_tdep_h): Define and use.
4727 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4728 register enum): Move to...
4729 * * sh-tdep.h: ...here.
4730 * sh-tdep.c: Include sh-tdep.h.
4731 * sh3-rom.c: Likewise.
4732 * shnbsd-tdep.c: Likewise.
4734 2002-05-16 Michael Snyder <msnyder@redhat.com>
4736 * arm-tdep.c: Spelling fix in comment.
4738 2002-05-16 Jim Blandy <jimb@redhat.com>
4740 Add commands for manually expanding macros and showing their
4742 * macrocmd.c, macroscope.c, macroscope.h: New files.
4743 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4744 (macroscope_h): New variable.
4745 (HFILES_NO_SRCDIR): Add macroscope.h.
4746 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4747 (macroscope.o, macrocmd.o): New rules.
4749 Teach the Dwarf 2 reader to read macro information.
4750 * dwarf2read.c: #include "macrotab.h".
4751 (dwarf_macinfo_buffer): New variable.
4752 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4754 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4755 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4756 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4757 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4758 dwarf2_macro_spaces_in_definition): New complaints.
4759 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4760 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4761 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4762 the partial symbol table.
4763 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4764 from what's recorded in the partial symbol table.
4765 (read_file_scope): If the compilation unit has a
4766 `DW_AT_macro_info' attribute, read its macro information.
4767 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4769 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4772 * ser-tcp.c: Don't include <netinet/udp.h>.
4774 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4776 * MAINTAINERS: Update my email address.
4778 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4780 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4781 include file of the same name.
4783 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4785 * configure.tgt: Mark v850 as multi-arched.
4786 * config/v850/tm-v850.h: Remove file.
4787 * config/v850/v850.mt: Eliminate TM_FILE.
4789 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4791 * v850-tdep.c: Full multi-arch.
4792 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4793 Define GDB_MULTI_ARCH to 2.
4795 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4797 * p-exp.y (current_type): New static variable.
4798 Carries the type of the expression at the position that is parsed.
4799 (push_current_type, pop_current_type): Two new functions. Used
4800 to store/restore current_type in expression on specific tokens.
4801 (search_field): New static variable. Set to one after parsing a point
4802 as at that point only a FIELDNAME token should be searched.
4803 (FIELDNAME): New token. After a point only a token belonging to
4804 current_type type definition is allowed.
4805 (all over token rules): reset and change current_type according
4807 (exp '[' rule): insert implicit array index field if
4808 exp is a pascal string type.
4810 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4812 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4813 frame info. Use frame_info's saved_regs instead of matching member
4814 in extra_frame_info throughout.
4815 (v850_frame_init_saved_regs): New function.
4816 (v850_init_extra_frame_info): Move most functionality into
4817 v850_frame_init_saved_regs().
4818 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4819 (v850_frame_find_saved_regs): Remove declaration.
4820 (FRAME_FIND_SAVED_REGS): Remove definition.
4821 (v850_frame_init_saved_regs): Add declaration.
4822 (FRAME_INIT_SAVED_REGS): Add definition.
4824 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4826 * v850-tdep.c: Begin multi-arch'ing v850.
4827 (v850_target_architecture_hook): Remove function.
4828 (v850_gdbarch_init): New function. Add code previously in
4829 v850_target_architecture_hook().
4830 (_initialize_v850_tdep): Don't set target_architecture_hook.
4831 Call register_gdbarch_init() instead.
4833 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4835 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4836 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4837 (fixup_class_method_type): Likewise.
4839 2002-05-15 Jim Blandy <jimb@redhat.com>
4841 Add macro structures to GDB's symbol tables. Nobody puts anything
4843 * symtab.h (struct symtab): New member: `macro_table'.
4844 * buildsym.h (pending_macros): New global variable.
4845 * buildsym.c: #include "macrotab.h".
4846 (buildsym_init): Initialize `pending_macros'.
4847 (end_symtab): If we found macro information while reading a CU's
4848 debugging info, do build a symtab structure for it. Make the
4849 symtab point to the macro information, and clear the
4850 `pending_macros' pointer which held it while we were reading the
4852 (really_free_pendings): Free any pending macro table.
4853 * objfiles.h (struct objfile): New member: `macro_cache'.
4854 * objfiles.c (allocate_objfile): Set allocate and free functions
4855 for the macro cache's objstack.
4856 (free_objfile): Empty the macro cache's obstack.
4857 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4858 set new allocate and free functions for it.
4859 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4860 free functions for the macro cache's objstack. (Why is this
4861 function building its own objfile?)
4862 * symmisc.c (print_objfile_statistics): Print statistics on the
4864 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4866 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4868 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4869 (REGISTER_U_ADDR): Delete definition.
4870 (arm_register_u_addr): Delete declaration.
4872 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4874 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4875 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4877 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4879 * regcache.c (register_valid): Revise comments refering to "Not
4880 available" and "unavailable".
4881 * frame.c (frame_register_read): Ditto.
4882 * findvar.c (value_of_register): Ditto.
4884 2002-05-15 Andrew Cagney <cagney@redhat.com>
4886 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4887 (remote-sim.o): Update dependencies.
4888 (d10v-tdep.o): Specify dependencies.
4889 (sim_d10v_h): Define.
4891 2002-05-14 Jim Blandy <jimb@redhat.com>
4893 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4894 * macrotab.c (macro_lookup_inclusion, find_definition,
4895 new_macro_table): Same.
4897 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4898 not `! strcmp ()'. This is a dubious improvement.
4899 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4901 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4902 although it's not necessary, to avoid a warning.
4904 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4906 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4907 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4908 TYPE_INSTANCE_FLAGS.
4909 (struct main_type): New.
4910 (struct type): Move most members to struct main_type. Change
4911 cv_type and as_type to new type_chain member. Add instance_flags.
4912 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4913 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4914 (finish_cv_type): Remove prototype.
4915 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4917 (alloc_type_instance): New function.
4918 (smash_type): New function.
4919 (make_pointer_type, make_reference_type, make_function_type)
4920 (smash_to_member_type, smash_to_method_type): Call smash_type.
4921 (make_qualified_type): New function.
4922 (make_type_with_address_space): Call make_qualified_type.
4923 (make_cv_type): Likewise.
4924 (finish_cv_type): Remove unnecessary function.
4925 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4926 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4927 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4928 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4929 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4930 * hpread.c (hpread_read_struct_type): Likewise.
4931 * stabsread.c (read_struct_type): Likewise.
4933 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4935 * configure.tgt: Add a catch all sh* target, for cases like
4936 sh[2,3,4]-elf and sh-hms.
4938 2002-05-14 Keith Seitz <keiths@redhat.com>
4940 * event-loop.c (create_file_handler): Don't do anything but
4941 update data when we are given a fd which we are already
4944 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4946 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4947 (update_context): Use __func__ in warnings.
4949 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4951 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4952 and tcp_close to net_open and net_close.
4953 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4954 using UDP if requested. Don't try to disable Nagle on UDP
4956 * remote.c (remote_serial_open): New function. Warn about UDP.
4957 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4959 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4961 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4963 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4965 * configure.tgt: Remove sh-hms target.
4966 * MAINTAINERS: Don't list sh-hms as a separate target.
4968 2002-05-13 Jim Blandy <jimb@redhat.com>
4970 Add first preprocessor macro-expansion files.
4971 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4972 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4973 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4974 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4975 (COMMON_OBS): Add macrotab.o, macroexp.o.
4976 (macroexp.o, macrotab.o): New rules.
4978 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4980 * config/m88k/tm-m88k.h: Update copyright.
4981 (m88k_target_write_pc): Declare
4982 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4983 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4984 (SHIFT_INST_REGS): Update definition.
4985 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4986 using old definition of TARGET_WRITE_PC.
4987 * regcache.c (generic_target_write_pc): Delete code handling
4989 * gdbarch.sh (NNPC_REGNUM): Delete.
4990 * gdbarch.h, gdbarch.c: Regenerate.
4992 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4994 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4997 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4999 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5000 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5001 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5003 * c-typeprint.c (cp_type_print_method_args): Likewise.
5004 (c_type_print_args): Likewise.
5005 * d10v-tdep.c (d10v_push_arguments): Likewise.
5006 (d10v_extract_return_value): Likewise.
5007 * expprint.c (print_subexp): Likewise.
5008 * gdbtypes.c (lookup_primitive_typename): Likewise.
5009 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5010 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5011 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5012 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5013 (TYPE_VECTOR): Likewise.
5014 * hpread.c (hpread_read_struct_type)
5015 (fix_static_member_physnames, fixup_class_method_type)
5016 (hpread_type_lookup): Likewise.
5017 * mdebugread.c (parse_symbol, parse_type): Likewise.
5018 * p-lang.c (is_pascal_string_type): Likewise.
5019 * valops.c (hand_function_call): Likewise.
5020 * x86-64-tdep.c (classify_argument): Likewise.
5022 * hpread.c (hpread_read_function_type)
5023 (hpread_read_doc_function_type): Call replace_type.
5024 * dstread.c (create_new_type): Delete.
5025 (decode_dst_structure, process_dst_function): Call alloc_type.
5026 Use type access macros.
5028 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5030 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5031 the're not supported by the current architecture.
5032 (i387_fill_fxsave): Likewise.
5034 2002-05-12 Fred Fish <fnf@redhat.com>
5036 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5037 sect_index_xxx members to index the first slot in section_offsets
5038 if all of the section_offsets are zero.
5040 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5042 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5043 checked in with last change.
5045 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5047 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5048 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5051 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5053 * Makefile.in: Update dependencies.
5055 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5057 * language.c (local_hex_string_custom): Simplify. Do not depend
5058 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5060 * memattr.c (mem_info_command): Replace calls to
5061 longest_local_hex_string and longest_local_hex_string_custom.
5062 * buildsym.c (make_blockvector): Ditto.
5063 * solib.c (info_sharedlibrary_command): Ditto.
5064 * tracepoint.c (tracepoints_info): Ditto.
5065 * symtab.c (print_msymbol_info): Ditto.
5067 * language.c (local_hex_string): Delete.
5068 (local_hex_string_custom): Delete.
5069 (longest_local_hex_string): Rename to local_hex_string.
5070 (longest_local_hex_string_custom): Rename to
5071 local_hex_string_custom.
5072 * language.h (local_hex_string): Change parameter type to LONGEST.
5073 (local_hex_string_custom): Ditto.
5074 (longest_local_hex_string): Delete declaration.
5075 (longest_local_hex_string_custom): Ditto.
5077 * solib.c: Update copyright.
5078 * memattr.c: Update copyright.
5080 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5082 * arch-utils.h (legacy_register_to_value): Declare.
5083 (legacy_value_to_register): Declare.
5084 (legacy_convert_register_p): Declare.
5085 * arch-utils.c (legacy_register_to_value): New function.
5086 (legacy_value_to_register): New function.
5087 (legacy_convert_register_p): New function.
5089 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5090 (VALUE_TO_REGISTER): Define.
5091 (CONVERT_REGISTER_P): Define.
5092 * gdbarch.h, gdbarch.c: Regenerate.
5094 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5096 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5099 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5100 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5102 * Makefile.in: Update dependencies for valops.c.
5103 * valops.c: Include "gdb_assert.h".
5104 (typecmp): Skip THIS parameter to methods.
5105 (find_method_list): Remove static_memfuncp argument,
5106 update callers. Check for stub methods.
5107 (find_value_oload_method_list): Don't set *static_memfuncp.
5108 (find_overload_match): Don't check for stub methods. Assert
5109 that methods are not stubbed. Handle static methods.
5110 (value_find_oload_method_list): Remove static_memfuncp argument.
5111 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5112 to the argument list for static stub methods.
5113 * value.h (value_find_oload_method_list): Update prototype.
5115 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5117 * arch-utils.h (generic_register_size): Declare.
5118 (generic_register_raw_size, generic_register_virtual_size): Delete
5120 * arch-utils.c (generic_register_raw_size): Delete.
5121 (generic_register_size): New function.
5122 (generic_register_virtual_size): Delete.
5124 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5125 default generic_register_size.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5128 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5129 register_virtual_size.
5130 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5131 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5133 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5135 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5136 * gdbarch.h, gdbarch.c: Regenerate.
5137 * gnu-v3-abi.c: Update copyright.
5138 (vtable_address_point_offset): Update.
5139 (gnuv3_rtti_type): Update.
5140 (gnuv3_baseclass_offset): Update.
5141 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5142 (init_fetch_link_map_offsets): Update.
5143 * remote.c (get_remote_state): Update.
5145 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5147 * TODO: Remove value_headof/value_from_vtable_info comment.
5148 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5149 * values.c (value_headof, value_from_vtable_info): Delete.
5150 * value.h (value_from_vtable_info): Delete prototype.
5152 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5154 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5155 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5157 (gdb_assert_h): Define.
5158 (gdb_wait_h): Define.
5159 (gdb_regex_h): Define.
5161 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5163 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5164 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5166 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5168 * nbsd-tdep.c: Fix comment.
5170 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5172 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5173 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5174 (nbsd-tdep.o): New dependency list.
5175 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5177 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5178 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5179 * nbsd-tdep.c: New file.
5180 * nbsd-tdep.h: New file.
5181 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5183 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5184 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5185 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5186 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5188 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5190 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5191 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5192 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5193 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5194 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5195 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5197 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5199 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5200 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5201 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5202 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5203 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5204 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5205 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5207 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5209 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5210 fetch_elfcore_registers to...
5211 * i386nbsd-tdep.c: ...here.
5212 (i386nbsd_use_struct_convention): Rename to...
5213 (i386nbsd_aout_use_struct_convention): ...this.
5214 (i386nbsd_supply_reg): New function.
5215 (i386nbsd_fill_reg): New function.
5216 (fetch_core_registers): Use i386nbsd_supply_reg.
5217 (fetch_elfcore_registers): Likewise.
5218 (_initialize_i386nbsd_tdep): New function.
5219 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5220 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5221 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5222 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5223 (i386nbsd_aout_use_struct_convention): ...this.
5225 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5227 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5228 (store_inferior_registers): Use shnbsd_fill_reg.
5229 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5230 sh_nbsd_supply_register): Collapse into...
5231 (shnbsd_supply_reg): ...this.
5232 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5233 (shnbsd_fill_reg): ...this.
5234 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5235 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5236 (fetch_core_registers): Use shnbsd_supply_reg.
5237 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5238 (sh_nbsd_core_fns): Rename to...
5239 (shnbsd_core_fns): ...this.
5240 (sh_nbsd_elfcore_fns): Rename to...
5241 (shnbsd_elfcore_fns): ...this.
5242 (sh_nbsd_init_abi): Rename to...
5243 (shnbsd_init_abi): ...this.
5244 (_initialize_sh_nbsd_tdep): Rename to...
5245 (_initialize_shnbsd_tdep): ...this.
5246 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5247 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5248 sh_nbsd_fill_register): Remove prototypes.
5249 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5251 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5253 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5254 (i387-nat.o): Delete dependency list.
5255 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5256 (x86-64-linux-nat.o): Likewise.
5257 * i387-nat.c: Delete file, moving contents to...
5258 * i387-tdep.c: ...here.
5259 * i387-nat.h: Rename...
5260 * i387-tdep.h: ...to this.
5261 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5262 * i386-linux-nat.c: Likewise.
5263 * i386bsd-nat.c: Likewise.
5264 * i386gnu-nat.c: Likewise.
5265 * i386nbsd-nat.c: Likewise.
5266 * i386v4-nat.c: Likewise.
5267 * x86-64-linux-nat.c: Likewise.
5268 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5269 * config/i386/go32.mh (NATDEPFILES): Likewise.
5270 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5271 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5272 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5273 * config/i386/linux.mh (NATDEPFILES): Likewise.
5274 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5275 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5276 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5277 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5279 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5281 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5282 (alphanbsd-nat.o): Remove dependency list.
5283 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5284 * alphanbsd-nat.c: Delete. Contents moved to...
5285 * alphanbsd-tdep.c: ...here.
5286 (_initialize_alphanbsd_tdep): Register core functions.
5287 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5289 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5291 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5292 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5293 (alphanbsd-nat.o): Likewise.
5294 (alphabsd-tdep.o): New dependency list.
5295 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5296 (fill_gregset): Use alphabsd_fill_reg.
5297 (supply_fpregset): Use alphabsd_supply_fpreg.
5298 (fill_fpregset): Use alphabsd_fill_fpreg.
5299 (fetch_inferior_registers): Use struct reg and struct fpreg
5300 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5301 and alphabsd_supply_fpreg.
5302 (store_inferior_registers): Use struct reg and struct fpreg
5303 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5304 and alphabsd_fill_fpreg.
5305 * alphabsd-tdep.c: New file.
5306 * alphabsd-tdep.h: New file.
5307 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5308 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5309 alphabsd_supply_fpreg.
5310 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5311 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5313 2002-05-11 Eric Christopher <echristo@redhat.com>
5315 * mips-tdep.c (mips_double_register_type): Fix thinko.
5316 (mips_single_register_type): Ditto.
5317 * MAINTAINERS: Add self.
5319 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5321 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5322 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5323 right thing on architectures with different endianness and/or
5326 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5328 From Christian Limpach <chris@Pin.LU>
5329 * configure.in: Change sed expression which comments out
5330 NATDEPFILES to also comment out continuation lines.
5331 * configure: Regenerate.
5333 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5335 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5338 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5340 * sh-tdep.c: Include correct file.
5342 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5344 New support for sh64-elf (sh5) target.
5346 * configure.tgt: For sh64-elf target, default to sh-elf.
5348 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5349 (struct gdbarch_tdep): Add new fields for new registers and ABI
5352 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5353 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5354 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5355 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5356 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5357 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5358 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5359 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5360 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5361 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5362 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5363 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5364 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5365 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5366 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5367 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5368 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5369 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5370 sign_extend, sh64_nofp_frame_init_saved_regs,
5371 sh64_init_extra_frame_info, sh64_get_saved_register,
5372 sh64_extract_struct_value_address, sh64_pop_frame,
5373 sh64_push_arguments, sh64_extract_return_value,
5374 sh64_store_return_value, sh64_show_media_regs,
5375 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5376 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5377 sh_sh64_register_virtual_type,
5378 sh_sh64_register_convert_to_virtual,
5379 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5380 sh64_register_read, sh64_pseudo_register_write,
5381 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5382 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5383 sh64_do_pseudo_register, sh_compact_do_registers_info,
5384 sh64_do_registers_info, sh_gdbarch_init): New functions.
5386 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5388 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5390 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5392 * linespec.c (decode_line_1): Check for a double quote after
5393 a filename correctly.
5395 2002-05-10 Jim Blandy <jimb@redhat.com>
5397 Properly track the size of the current objfile's .debug_line section.
5398 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5399 (DWARF_LINE_SIZE): New macro.
5400 (dwarf2_build_psymtabs_hard): Record the line section's size in
5401 the partial symbol table.
5402 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5405 2002-05-10 Petr Sorfa <petrs@caldera.com>
5407 * ia64-tdep.c: Handle breakpoints on L instruction type
5408 in MLX instruction bundle by moving the breakpoint to
5409 the third slot (X instruction type) as L holds only data.
5411 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5413 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5414 (process_one_symbol): Complain about discarding local symbols
5415 due to a misplaced N_LBRAC entry.
5417 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5419 From Daniel Berlin <dan@cgsoftware.com>
5420 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5421 decrease the depth we are at, in the case of templates.
5423 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5425 * mips-tdep.c (mips_float_register_type): New function.
5426 (mips_double_register_type): New function.
5427 (mips_print_register): Use them.
5428 (do_fp_register_row): Likewise.
5430 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5432 * signals/signals.c (signals): Remove conditional compilation around
5433 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5434 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5436 2002-05-09 Michael Snyder <msnyder@redhat.com>
5438 * remote-rdp.c (remote_rdp_can_run): Remove.
5440 2002-05-09 Tom Tromey <tromey@redhat.com>
5442 * jv-valprint.c (java_val_print): Handle `char' as a special case
5445 2002-05-09 Michael Snyder <msnyder@redhat.com>
5447 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5448 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5449 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5450 str r(0123),[sp,#nn].
5451 (arm_skip_prologue): Ditto. Also make disassembly
5452 order-independent by placing it in a loop.
5454 2002-05-06 Michael Snyder <msnyder@redhat.com>
5456 * stabsread.c (read_type): Add recognition for new attribute:
5457 "@V;" means that an array type is actually a vector.
5458 This is analogous to the vector flag that's been added to dwarf2.
5460 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5462 * i386-tdep.h (i386_abi): New enum.
5463 (struct gdbarch_tdep): Replace os_ident member with abi.
5464 (i386_gdbarch_register_os_abi): New prototype.
5465 * i386-tdep.c (i386_abi_names): New array.
5466 (process_note_abi_tag_sections): Removed.
5467 (process_note_sections): New function.
5468 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5469 (struct i386_abi_handler): New struct.
5470 (i386_abi_handler_list): New variable.
5471 (i386_gdbarch_register_os_abi): New function.
5472 (i386_gdbarch_init): Adapt for the changes given above.
5474 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5476 * gregset.h: Say "GNU/Linux".
5478 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5480 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5481 (build_gdbtypes): Build builtin_type_v2_float.
5482 (_initialize_gdbtypes): Register new builtin type.
5484 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5486 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5487 (clear_gdbarch_swap): New function.
5488 (initialize_non_multiarch): Call.
5489 (gdbarch_update_p): Before calling init(), swap out and clear the
5490 existing architecture.
5491 * gdbarch.c: Regenerate.
5493 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5495 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5498 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5500 * sh-nbsd-nat.c: Rename to...
5501 * shnbsd-nat.c: ...this.
5502 * sh-nbsd-tdep.c: Rename to...
5503 * shnbsd-tdep.c: ...this.
5504 * sh-nbsd-tdep.h: Rename to...
5505 * shnbsd-tdep.h: ...this.
5506 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5507 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5509 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5511 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5512 concatenation for command help messages.
5514 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5516 * NEWS: Note new sh*-*-netbsdelf* configuration.
5517 * configure.host: Set gdb_host_cpu to sh for all sh*.
5518 (sh*-*-netbsdelf*): New host.
5519 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5520 (sh*-*-netbsdelf*): New target.
5521 * sh-nbsd-nat.c: New file.
5522 * sh-nbsd-tdep.c: New file.
5523 * sh-nbsd-tdep.h: New file.
5524 * config/sh/nbsd.mh: New file.
5525 * config/sh/nbsd.mt: New file.
5526 * config/sh/nm-nbsd.h: New file.
5527 * config/sh/tm-nbsd.h: New file.
5529 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5531 * sh-tdep.c (sh_osabi_names): Declare.
5532 (process_note_abi_tag_sections): New function.
5533 (get_elfosabi): Ditto.
5534 (sh_gdbarch_register_os_abi): Ditto.
5535 (sh_dump_tdep): Ditto.
5536 _initialize_sh_tdep): Use gdbarch_register to register
5537 sh_gdbarch_init and sh_dump_tdep.
5538 * config/sh/tm-sh.h (sh_osabi): Declare.
5539 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5541 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5543 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5544 (thumb_scan_prologue): Ditto.
5545 (arm_find_callers_reg): Ditto.
5546 (arm_frame_chain): Ditto.
5547 (arm_init_extra_frame_info): Ditto.
5548 (arm_frame_saved_pc): Ditto.
5549 (arm_pop_frame): Ditto.
5550 (arm_push_return_address): New function.
5551 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5552 call_dummy_location, call_dummy_breakpoint_offset_p,
5553 call_dummy_breakpoint_offset, call_dummy_p,
5554 call_dummy_stack_adjust_p, call_dummy_words,
5555 sizeof_call_dummy_words, call_dummy_start_offset,
5556 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5557 call_dummy_address, push_return_address and push_dummy_frame for
5558 generic dummy frames.
5560 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5562 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5563 size computation for alloca.
5564 (sh_fp_frame_init_saved_regs): Likewise.
5566 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5568 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5569 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5570 * arm-tdep.c (arm_store_return_value): Use them.
5571 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5572 * remote-rdp.c (remote_rdp_fetch_register): Use
5573 ARM_MAX_REGISTER_RAW_SIZE.
5574 (remote_rdp_store_register): Likewise.
5576 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5578 * dwarf2cfi.c: Code cleanup, removed unused variables,
5579 added default labels to switch {} statements.
5580 * x86-64-tdep.c: Ditto.
5581 * x86-64-linux-nat.c: Ditto.
5583 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5585 * solib.h: Protect against multiple inclusion.
5587 2002-05-06 Jim Blandy <jimb@redhat.com>
5589 Add first preprocessor macro-expansion files.
5590 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5591 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5592 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5593 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5594 (COMMON_OBS): Add macrotab.o, macroexp.o.
5595 (macroexp.o, macrotab.o): New rules.
5597 Separate the job of reading the line number info statement program
5598 header (...expialidocious) out into its own function.
5599 * dwarf2read.c (struct line_head, struct filenames, struct
5600 directories): Replace with...
5601 (struct line_header): New structure, containing the full
5602 contents of the statement program header, including the
5603 include directory and file name tables.
5604 (read_file_scope): If we have line number info, instead of just
5605 calling dwarf_decode_lines to do all the work, call
5606 dwarf_decode_line_header first to get a `struct line_header'
5607 containing the data in the statement program header, and then
5608 pass that to dwarf_decode_lines, which will pick up where that
5609 left off. Be sure to clean up the `struct line_header' object.
5610 (dwarf_decode_line_header, free_line_header, add_include_dir,
5611 add_file_name): New functions.
5612 (dwarf_decode_lines): Move all the code to read the statement
5613 program header into dwarf_decode_line_header. Take the line
5614 header it built as the first argument, instead of the offset to
5615 the compilation unit's line number info. Use the new `struct
5616 line_header' type instead of the old structures. No need to do
5617 cleanups here now, since we don't allocate anything.
5618 (dwarf2_statement_list_fits_in_line_number_section,
5619 dwarf2_line_header_too_long): New complaints.
5621 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5623 * gdbtypes.c (init_vector_type): New function.
5624 (build_builtin_type_vec128): Simplify the representation of SIMD
5626 (build_gdbtypes): Initialize new builtin vector types.
5627 (_initialize_gdbtypes): Register new vector types with gdbarch.
5628 (builtin_type_v4_float, builtin_type_v4_int32,
5629 builtin_type_v8_int16, builtin_type_v16_int8,
5630 builtin_type_v2_int32, builtin_type_v4_int16,
5631 builtin_type_v8_int8): New (renamed) SIMD types.
5633 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5635 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5636 (i387_fill_fxsave): Likewise.
5638 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5640 * alpha-tdep.c (alpha_extract_return_value): Don't use
5641 non-constant array size in prototype.
5643 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5645 From Brian Taylor <briant at model dot com>:
5646 * ui-out.c (ui_out_field_core_addr): Use the function
5647 longest_local_hex_string_custom'to format addresses > 32 bits
5650 * ui-out.c (ui_out_field_core_addr): Update comment.
5652 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5654 * stack.c (select_and_print_frame): Make static. Delete the
5656 (func_command): Update call.
5657 (select_frame_command): Delete code computing the frame level.
5658 * frame.h (select_and_print_frame): Delete declaration.
5660 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5662 * sparc-tdep.c (sparc_get_saved_register): Comment why
5663 get_prev_frame call is safe.
5665 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5667 * frame.h (select_frame): Delete level parameter.
5668 * stack.c (select_frame): Update. Use frame_relative_level to
5669 obtain the frame's level.
5670 (select_and_print_frame): Update call.
5671 (select_frame_command): Ditto.
5672 (up_silently_base): Ditto.
5673 (down_silently_base): Ditto.
5674 * ocd.c (ocd_start_remote): Ditto.
5675 * remote-rdp.c (remote_rdp_open): Ditto.
5676 * remote-mips.c (mips_initialize): Ditto.
5677 (common_open): Ditto.
5678 * remote-e7000.c (e7000_start_remote): Ditto.
5679 * m3-nat.c (select_thread): Ditto.
5680 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5681 (child_get_current_exception_event): Ditto.
5682 * varobj.c (varobj_create): Ditto.
5683 (varobj_update): Ditto.
5684 (c_value_of_root): Ditto.
5685 * tracepoint.c (finish_tfind_command): Ditto.
5686 * corelow.c (core_open): Ditto.
5687 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5688 * thread.c (info_threads_command): Ditto.
5689 (switch_to_thread): Ditto.
5690 * infrun.c (normal_stop): Ditto.
5691 (restore_selected_frame): Ditto.
5692 (restore_inferior_status): Ditto.
5693 * breakpoint.c (insert_breakpoints): Ditto.
5694 (watchpoint_check): Ditto.
5695 (bpstat_stop_status): Ditto.
5696 (do_enable_breakpoint): Ditto.
5697 * blockframe.c (flush_cached_frames): Ditto.
5698 (reinit_frame_cache): Ditto.
5700 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5702 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5705 2002-05-04 Jim Blandy <jimb@redhat.com>
5707 * gdbtypes.c (replace_type): Doc fix.
5709 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5711 * valprint.c (strcat_longest): Delete commented out function.
5714 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5716 * MAINTAINERS: Mark a29k as deleted.
5717 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5718 Move new configurations to the top.
5719 * configure.tgt: Remove a29k.
5720 * config/a29k/tm-vx29k.h: Delete.
5721 * config/a29k/vx29k.mt: Delete.
5722 * config/a29k/tm-a29k.h: Delete.
5723 * config/a29k/a29k-udi.mt: Delete.
5724 * config/a29k/a29k.mt: Delete.
5725 * a29k-tdep.c: Delete.
5726 * remote-udi.c: Delete.
5727 * remote-mm.c: Delete.
5728 * remote-eb.c: Delete.
5729 * remote-adapt.c: Delete.
5730 * Makefile.in: Remove obsolete code.
5731 * config/s390/s390x.mt: Ditto.
5732 * config/s390/s390.mt: Ditto.
5733 * config/sparc/sparclynx.mh: Ditto.
5734 * config/sparc/linux.mh: Ditto.
5735 * config/pa/hppaosf.mh: Ditto.
5736 * config/pa/hppabsd.mh: Ditto.
5737 * config/ns32k/nbsd.mt: Ditto.
5738 * config/mips/vr5000.mt: Ditto.
5739 * config/m68k/sun3os4.mh: Ditto.
5740 * config/m68k/nbsd.mt: Ditto.
5741 * config/m68k/m68klynx.mh: Ditto.
5742 * config/m32r/m32r.mt: Ditto.
5743 * config/i386/x86-64linux.mt: Ditto.
5744 * config/i386/nbsdelf.mt: Ditto.
5745 * config/i386/nbsd.mt: Ditto.
5746 * config/i386/i386lynx.mh: Ditto.
5748 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5750 * target.c (debug_print_register): New function. Handle oversize
5752 (debug_to_fetch_registers): Call.
5753 (debug_to_store_registers): Call.
5755 2002-05-03 Jim Blandy <jimb@redhat.com>
5757 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5758 (read_type): Doc fix.
5759 * gdbtypes.c (replace_type): Doc fix.
5761 * stabsread.c (multiply_defined_struct): New complaint.
5762 (read_struct_type): If the type we were passed isn't empty, or
5763 incomplete, don't read the new struct type into it; complain,
5764 and return the original type unchanged. Take a new `type_code'
5765 argument, which is the type code for the new type.
5766 (read_type): Rather than storing the type's type code here, pass
5767 it as an argument to read_struct_type, and let that take care of
5768 storing it. That way, we don't overwrite the original type code,
5769 so read_struct_type can use it to decide whether we're overwriting
5770 something we shouldn't.
5771 (complain_about_struct_wipeout): New function.
5773 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5775 * gdbarch.sh: Assert that gdbarch is non-NULL.
5776 * gdbarch.c: Regenerate.
5778 2002-05-03 Jason Merrill <jason@redhat.com>
5780 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5783 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5785 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5786 (x86_64_dwarf2gdb_regno_map_length),
5787 (x86_64_dwarf2_reg_to_regnum): Added.
5788 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5789 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5790 (_initialize_x86_64_tdep): Synced with the change above.
5791 (x86_64_skip_prologue): Reformulated message.
5793 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5795 * f-exp.y: Also use new prev_lexptr variable
5796 to improve error reporting. Based on Michael Snyder
5797 2002-04-24 dated patch to c-exp.y.
5798 * jv-exp.y: Likewise.
5799 * m2-exp.y: Likewise.
5801 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5803 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5804 we are dealing with vectors.
5806 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5808 * config/m68k/tm-nbsd.h: Obvious fix,
5809 correct machine name.
5811 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5813 * p-typeprint.c (pascal_type_print_base): Add support
5814 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5816 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5818 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5819 for fondamental pascal 'char' type.
5821 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5823 * p-lang.h (is_pascal_string_type): Declaration changed,
5824 new sixth argument of type char ** added.
5825 * p-lang.c (is_pascal_string_type): Implementation
5826 changed. Args length_pos, length_size, string_pos, char_size
5827 can now be NULL. New argument arrayname set to the field
5828 name of the char array. Return value set to char array
5829 field index plus one.
5830 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5831 is_pascal_string_type function.
5833 2002-05-02 Andrew Cagney <cagney@redhat.com>
5835 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5836 <cagney@redhat.com> change.
5837 * gdbarch.c: Regenerate.
5839 2002-05-02 Andrew Cagney <cagney@redhat.com>
5841 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5842 before probing for a new one. Detect errorenous gdbarch_init
5844 * gdbarch.c: Regenerate.
5846 2002-05-01 Andrew Cagney <cagney@redhat.com>
5848 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5849 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5850 * config/v850/tm-v850.h: Ditto. Update copyright.
5852 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5854 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5857 2002-04-30 Michael Snyder <msnyder@redhat.com>
5859 * arm-tdep.c: Whitespace clean-ups.
5860 (arm_skip_prologue): Fix thinko; two lines
5861 should have been removed as part of 4/24 change.
5863 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5865 * rs6000-tdep.c: Added comment describing how fpscr register
5866 numbers were chosen.
5868 2002-04-30 Michael Snyder <msnyder@redhat.com>
5870 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5872 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5874 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5875 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5876 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5878 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5880 From Louis Hamilton <hamilton@redhat.com>:
5881 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5882 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5883 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5884 not bfd-private xcoff data, to determine wordsize.
5885 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5887 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5889 GDB 5.2 released from 5.2 branch.
5891 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5893 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5894 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5895 (x86_64_register_info_table): Added comments with register numbers.
5897 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5899 * rs6000-tdep.c (rs6000_extract_return_value,
5900 rs6000_store_return_value): Handle returning vectors.
5901 (rs6000_gdbarch_init): Use
5902 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5903 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5905 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5907 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5908 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5910 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5912 * hpread.c (hpread_psymtab_to_symtab_1,
5913 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5914 with fprintf_unfiltered (gdb_stderr,...).
5916 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5918 * remote-array.c (printf_monitor, write_monitor,
5919 array_insert_breakpoint, array_remove_breakpoint ):
5920 Replace fprintf (stderr,...
5921 with fprintf_unfiltered (gdb_stderr,....
5922 * remote-es.c: Likewise.
5923 * remote-os9k.c: Likewise.
5924 * remote-st.c: Likewise.
5926 2002-04-28 Andreas Schwab <schwab@suse.de>
5928 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5929 linux-proc.o and gcore.o.
5931 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5933 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5934 code without frame pointers.
5936 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5938 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5941 2002-04-26 Ben Elliston <bje@redhat.com>
5943 * target.c (do_xfer_memory): Correct reference to the new option
5944 "trust-readonly-sections".
5946 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5948 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5949 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5950 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5952 (read_array_type): Record the fact that this array type is really a
5953 vector (i.e. are passed in by value).
5955 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5957 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5958 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5959 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5960 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5961 * alpha-linux-tdep.c: Include frame.h.
5962 (alpha_linux_sigcontext_addr): New function.
5963 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5964 alpha_linux_sigcontext_addr.
5965 * alpha-osf1-tdep.c: Include gdbcore.h.
5966 (alpha_osf1_sigcontext_addr): New function.
5967 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5968 alpha_osf1_sigcontext_addr.
5969 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5970 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5972 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5974 * stack.c (selected_frame_level):
5975 (select_frame): Do not set selected_frame_level.
5976 * frame.h (selected_frame_level): Delete declaration.
5978 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5980 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5981 convert_from_func_ptr-addr when AIX / PowerOpen.
5983 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5985 * valops.c (hand_function_call): Call
5986 generic_save_call_dummy_addr.
5987 * frame.h (generic_save_call_dummy_addr): Declare.
5988 * blockframe.c (struct dummy_frame): Add fields call_lo and
5990 (generic_find_dummy_frame): Check for PC in range call_lo to
5991 call_hi instead of entry_point_address.
5992 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5993 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5994 (generic_save_call_dummy_addr): New function.
5996 2002-04-24 David S. Miller <davem@redhat.com>
5998 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5999 sparc_skip_prologue.
6000 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6001 information to find prologue when possible.
6002 (sparc_prologue_frameless_p): Call examine_prologue directly.
6003 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6004 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6006 (SKIP_PROLOGUE): Likewise.
6008 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6010 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6011 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6012 indicate that the condition it was testing is always true.
6013 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6014 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6015 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6017 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6019 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6020 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6021 tdep->jb_pc and tdep->jb_elt_size.
6022 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6023 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6024 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6025 * alpha-nat.c (get_longjmp_target): Remove.
6026 (JB_ELEMENT_SIZE): Ditto.
6028 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6029 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6030 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6031 to alpha_get_longjmp_target.
6032 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6033 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6034 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6036 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6038 * README: Update to GDB 5.2.
6040 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6042 * gdbarch.sh (LC_ALL): Set to `c'.
6044 2002-04-25 Theodore A. Roth <troth@verinet.com>
6046 * avr-tdep.c: Ran through gdb_indent.sh.
6048 2002-04-25 Theodore A. Roth <troth@verinet.com>
6050 * MAINTAINERS: Add myself as AVR maintainer.
6051 * NEWS: Note new target avr.
6053 2002-04-25 Theodore A. Roth <troth@verinet.com>
6055 * Makefile.in: Add support for AVR target.
6056 * configure.tgt: Add support for AVR target.
6057 * avr-tdep.c: New file
6058 * config/avr/avr.mt: New file.
6060 2002-04-25 Theodore A. Roth <troth@verinet.com>
6062 * MAINTAINERS: Add myself to write-after-approval.
6064 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6066 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6067 with fprintf_unfiltered (gdb_stderr,....
6069 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6072 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6074 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6076 * p-exp.y: Also use new prev_lexptr variable
6077 to improve error reporting. Based on Michael Snyder
6078 2002-04-24 dated patch to c-exp.y.
6080 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6082 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6083 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6084 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6086 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6088 (FUNCTION_START_OFFSET): Remove.
6089 (BREAKPOINT): Ditto.
6091 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6093 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6096 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6098 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6099 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6100 alpha_linux_pc_in_sigtramp.
6101 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6102 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6103 alpha_osf1_pc_in_sigtramp.
6104 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6105 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6106 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6107 alphafbsd_pc_in_sigtramp.
6108 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6109 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6110 alphanbsd_pc_in_sigtramp.
6111 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6112 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6114 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6116 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6120 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6122 (alphanbsd-nat.o): New dependency list.
6123 (alphanbsd-tdep.o): Ditto.
6124 * NEWS: Note new native NetBSD/alpha configuration.
6125 * alphanbsd-nat.c: New file.
6126 * alphanbsd-tdep.c: Ditto.
6127 * configure.host (alpha*-*-netbsd*): New host.
6128 * configure.tgt (alpha*-*-netbsd*): New target.
6129 * config/alpha/nbsd.mh: New file.
6130 * config/alpha/nbsd.mt: Ditto.
6131 * config/alpha/nm-nbsd.h: Ditto.
6132 * config/alpha/tm-nbsd.h: Ditto.
6134 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6136 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6137 (alpha-osf1-tdep.o): New dependency list.
6138 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6139 and skip_sigtramp_frame members.
6140 * alpha-linux-tdep.c: Include gdbcore.h.
6141 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6142 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6143 * alpha-osf1-tdep.c: New file.
6144 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6146 (alpha_frame_past_sigtramp_frame): New function.
6147 (alpha_dynamic_sigtramp_offset): Ditto.
6148 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6149 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6150 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6151 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6152 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6153 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6154 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6155 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6156 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6157 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6158 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6159 to find_solib_trampoline_target.
6160 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6161 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6162 (SKIP_TRAMPOLINE_CODE): Remove.
6163 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6164 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6165 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6166 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6167 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6168 (PROC_SIGTRAMP_MAGIC): Ditto.
6169 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6170 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6171 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6172 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6173 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6175 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6177 * NEWS: Note that Alpha targets are now multi-arch.
6179 2002-04-24 Michael Snyder <msnyder@redhat.com>
6181 * parser-defs.h (prev_lexptr): New external variable.
6182 * parse.c (parse_exp_1): Set prev_lexptr to null before
6183 calling the language-specific parser.
6184 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6185 (yyerror): Use prev_lexptr in error reporting.
6187 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6189 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6190 * gregset.h: If FILL_FPXREGSET is defined, provide
6191 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6192 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6193 is defined, call fill_fpxregset.
6195 2002-04-24 Roland McGrath <roland@frob.com>
6197 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6198 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6199 (supply_gregset, supply_fpregset): New functions.
6201 * gnu-nat.c (gnu_find_memory_regions): New function.
6202 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6203 (gnu_xfer_memory): Add a cast.
6205 2002-04-24 Michael Snyder <msnyder@redhat.com>
6207 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6208 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6209 of argument regs ("str r(0123), [r11, #-nn"]).
6210 (arm_skip_prologue): Better handling for frameless functions.
6211 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6212 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6214 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6216 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6217 NUM_PSEUDO_REGS can be used.
6219 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6221 * arch-utils.h: Update copyright.
6223 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6224 * gdbarch.h, gdbarch.c: Re-generate.
6226 * inferior.h (IN_SIGTRAMP): Delete definition.
6227 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6228 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6230 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6231 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6232 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6233 (find_proc_framesize): Ditto.
6234 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6235 (alpha_init_extra_frame_info): Ditto.
6236 * infrun.c (handle_inferior_event): Ditto.
6237 (handle_inferior_event): Ditto.
6238 (check_sigtramp2): Ditto.
6239 * blockframe.c (create_new_frame): Ditto.
6240 (get_prev_frame): Ditto.
6241 * ppc-linux-tdep.c: Update comments.
6242 * i386-linux-tdep.c: Update comments.
6243 * breakpoint.c (bpstat_what): Update comment.
6245 2002-04-24 David S. Miller <davem@redhat.com>
6247 * i960-tdep.c (register_in_window_p): New function.
6248 (i960_find_saved_register): Use it instead of
6249 REGISTER_IN_WINDOW_P.
6250 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6252 * symtab.h (find_stab_function_addr): Kill extern.
6253 * minsyms.c (find_stab_function_addr): Remove from here...
6254 * dbxread.c: ... to here, and mark it static.
6256 2002-04-20 David S. Miller <davem@redhat.com>
6258 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6259 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6261 2002-04-21 David S. Miller <davem@redhat.com>
6263 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6264 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6265 (vx_write_register): Likewise.
6267 2002-04-23 J. Brobecker <brobecker@gnat.com>
6269 * source.c (is_regular_file): New function.
6270 (openp): Check wether file to open is a regular file
6271 to avoid opening directories.
6273 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6275 * findvar.c (extract_signed_integer): Cast printf argument
6276 to suppress format warning.
6277 (extract_unsigned_integer): Likewise.
6278 * infcmd.c (registers_info): Likewise.
6279 * top.c (get_prompt_1): Likewise.
6280 * valops.c (value_assign): Likewise.
6281 * valprint.c (print_decimal): Likewise.
6283 2002-04-22 H.J. Lu (hjl@gnu.org)
6285 * c-exp.y (typebase): Support
6287 [long|long long|short] [signed|unsigned] [int|]
6291 signed [long|long long|short] int
6293 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6295 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6297 * vax-tdep.h: New file.
6298 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6299 Make several routines static.
6300 (vax_get_saved_register): New function.
6301 (vax_gdbarch_init): New function.
6302 (_initialize_vax_tdep): Register vax_gdbarch_init.
6303 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6304 Remove macros now under the control of gdbarch.
6306 2002-04-22 Michael Snyder <msnyder@redhat.com>
6308 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6309 Some whitespace and coding standards tweaks.
6311 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6313 * vax-tdep.c: Include regcache.h.
6314 (vax_call_dummy_words): New.
6315 (sizeof_vax_call_dummy_words): New.
6316 (vax_fix_call_dummy): New function.
6317 (vax_saved_pc_after_call): Ditto.
6318 * config/vax/tm-vax.h: Don't include regcache.h.
6319 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6320 (CALL_DUMMY): Remove.
6321 (CALL_DUMMY_WORDS): Define.
6322 (SIZEOF_CALL_DUMMY_WORDS): Define.
6323 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6325 2002-04-18 Michael Snyder <msnyder@redhat.com>
6327 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6329 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6331 * vax-tdep.c (vax_frame_chain): New function.
6332 (vax_push_dummy_frame): Ditto.
6333 (vax_pop_frame): Ditto.
6334 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6335 (FRAMELESS_FUNCTION_INVOCATION): Use
6336 generic_frameless_function_invocation_not.
6337 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6338 (POP_FRAME): Use vax_pop_frame.
6340 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6342 * vax-tdep.c (vax_store_struct_return): New function.
6343 (vax_extract_return_value): Ditto.
6344 (vax_store_return_value): Ditto.
6345 (vax_extract_struct_value_address): Ditto.
6346 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6347 vax_store_struct_return.
6348 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6349 (STORE_RETURN_VALUE): Use vax_store_return_value.
6350 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6352 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6354 * vax-tdep.c (vax_frame_saved_pc): New function.
6355 (vax_frame_args_address_correct): Ditto.
6356 (vax_frame_args_address): Ditto.
6357 (vax_frame_locals_address): Ditto.
6358 (vax_frame_num_args): Move code to be in proximity to
6359 other frame-related functions.
6360 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6361 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6362 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6363 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6364 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6366 2002-04-22 H.J. Lu (hjl@gnu.org)
6368 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6371 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6373 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6374 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6375 (FRAME_INIT_SAVED_REGS): New macro.
6377 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6379 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6381 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6383 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6385 (fetch_osf_core_registers): Likewise.
6386 (supply_gregset): Likewise.
6388 2002-04-22 J. Brobecker <brobecker@gnat.com>
6390 * symfile.h (get_section_index): Define.
6391 * symfile.c (get_section_index): New function.
6392 * mdebugread.c (SC_IS_SBSS): New macro.
6393 (SC_IS_BSS): Return true for the scBss storage class only, as
6394 the scSBss storage class refers to the .sbss section.
6395 (parse_partial_symbols): Discard the symbols which associated
6396 section does not exist.
6397 Make sure to use the .sbss section index for symbols which
6398 storage class is scBss, rather than using the .bss section index.
6400 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6402 * vax-tdep.c: Update copyright years.
6403 (vax_register_name): New function.
6404 (vax_register_byte): Ditto.
6405 (vax_register_raw_size): Ditto.
6406 (vax_register_virtual_size): Ditto.
6407 (vax_register_virtual_type): Ditto.
6408 * config/vax/tm-vax.h: Update copyright years.
6409 (REGISTER_NAMES): Remove.
6410 (REGISTER_NAME): Define.
6411 (REGISTER_BYTE): Use vax_register_byte.
6412 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6413 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6414 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6416 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6418 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6420 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6422 2002-04-21 David S. Miller <davem@redhat.com>
6424 * arch-utils.c (generic_prologue_frameless_p): Kill
6425 SKIP_PROLOGUE_FRAMELESS_P code.
6426 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6428 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6429 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6430 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6432 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6433 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6434 (sparc_gdbarch_init): Pass it to
6435 set_gdbarch_prologue_frameless_p.
6437 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6439 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6440 (alphabsd-nat.o): New dependency list.
6442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6444 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6446 (alpha-linux-tdep.o): New dependency list.
6447 (alphafbsd-tdep.o): Likewise.
6449 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6451 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6453 * alpha-tdep.c: ...from here.
6454 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6456 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6458 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6459 prototype from here...
6460 * alpha-tdep.h: ...to here.
6462 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6464 * frame.h (selected_frame_level): Document as deprecated.
6465 (frame_relative_level): Declare.
6466 * stack.c (frame_relative_level): New function.
6467 (selected_frame_level): Document as deprecated.
6468 (select_frame): Do not set the selected_frame_level.
6470 * stack.c (frame_info, record_selected_frame): Update.
6471 (frame_command, current_frame_command): Update.
6472 (up_silently_base, up_command, down_silently_base): Update.
6473 (down_command): Update.
6474 * inflow.c (kill_command): Update.
6475 * tracepoint.c (finish_tfind_command): Update.
6476 * corelow.c (core_open): Update.
6477 * thread.c (info_threads_command): Update.
6478 (do_captured_thread_select): Update.
6479 * infcmd.c (finish_command): Update.
6480 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6482 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6484 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6486 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6488 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6491 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6493 * alphafbsd-tdep.c: Update copyright years. Include
6495 (alphafbsd_use_struct_convention): Make static.
6496 (alphafbsd_init_abi): New function.
6497 (_initialize_alphafbsd_tdep): New function.
6498 * config/alpha/tm-fbsd.h: Update copyright years.
6499 (USE_STRUCT_CONVENTION): Remove.
6501 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6503 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6504 an Alpha ABI variant.
6505 (alpha_abi_handler_list): Declare.
6506 (alpha_gdbarch_register_os_abi): New function.
6507 (alpha_gdbarch_init): Give registered ABI variant handlers a
6508 chance to tweak the gdbarch once we have set up defaults.
6509 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6511 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6513 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6514 to standard_coerce_float_to_double.
6515 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6517 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6519 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6520 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6521 from gdbarch_tdep rather than a constant.
6522 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6523 the default text address for all Alpha Unix ABIs.
6524 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6525 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6527 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6529 * alpha-tdep.h: New file. Includes several Alpha target constants
6531 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6532 let gdbarch deal with.
6533 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6534 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6536 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6537 Alpha target register names.
6538 * alphabsd-nat.c: Likewise.
6539 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6540 Alpha target register names. Make serveral routines static.
6541 (alpha_get_saved_register): New function.
6542 (alpha_abi_names): New.
6543 (process_note_abi_tag_sections): New function.
6544 (get_elfosabi): New function.
6545 (alpha_gdbarch_init): New function.
6546 (alpha_dump_tdep): New function.
6547 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6549 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6551 * frame.c (find_saved_register): Delete #ifdef
6552 HAVE_REGISTER_WINDOWS code.
6553 * config/sparc/tm-sparc.h: Update comments.
6554 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6556 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6558 * i960-tdep.c (i960_find_saved_register): New function.
6559 (i960_get_saved_register): New function.
6560 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6561 (i960_get_saved_register): Declare.
6562 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6564 2002-04-20 David S. Miller <davem@redhat.com>
6566 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6568 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6570 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6571 instead of NUM_PSEUDO_REGS.
6573 2002-04-20 David S. Miller <davem@redhat.com>
6575 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6576 GDB_MULTI_ARCH_PARTIAL
6577 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6578 define, let tm-sp64.h do it.
6580 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6582 * frame.c (find_saved_register): Avoid a NULL pointer
6583 dereference and actually walk the frame list.
6585 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6587 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6588 sorted in most most-recent-used order. Document.
6589 * gdbarch.h, gdbarch.c: Regenerate.
6591 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6593 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6595 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6596 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6597 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6600 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6603 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6604 (build_builtin_type_vec128): Ditto.
6605 (append_composite_type_field): Fix calculation of type length in
6608 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6610 * config/djgpp/README: Update.
6612 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6615 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6617 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6618 (alpha_setup_arbitrary_frame): ...to this.
6619 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6620 for alpha_setup_arbitrary_frame.
6622 2002-04-18 Andrew Cagney <cagney@redhat.com>
6624 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6625 * gdbarch.h, gdbarch.c: Regenerate.
6627 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6628 * target.h (memory_breakpoint_from_pc): Update declaration.
6629 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6631 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6632 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6633 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6634 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6635 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6636 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6637 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6638 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6639 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6640 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6641 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6642 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6644 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6646 * monitor.c (monitor_insert_breakpoint): Ditto.
6647 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6649 * config/mcore/tm-mcore.h: Update copyright.
6650 * mem-break.c: Ditto.
6651 * xstormy16-tdep.c: Ditto.
6653 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6655 * p-exp.y: Add precedence rule for '^' token.
6656 This removes the shift/reduce conflicts.
6657 Remove the comment concerning these shift/reduce conflicts.
6659 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6661 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6662 (registers_powerpc_nofp): New register set for processors
6663 without floating point unit.
6665 2002-04-18 David S. Miller <davem@redhat.com>
6667 * MAINTAINERS: Add myself to write-after-approval.
6669 2002-04-17 Michael Snyder <msnyder@redhat.com>
6671 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6673 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6675 * rs6000-tdep.c (frame_initial_stack_address): Use
6676 frame_register_read to read the alloca_reg.
6678 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6680 * frame.c (find_saved_register): Find saved registers in the next
6684 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6686 * gdbarch.sh (LANG): Set to ``c''.
6688 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6690 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6692 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6694 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6697 * hpread.c (hpread_get_lntt): Add declaration.
6698 Also fix PR gdb/391.
6700 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6702 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6703 * aclocal.m4, configure: Re-generate.
6706 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6708 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6709 instead of tm_print_insn.
6711 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6713 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6715 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6717 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6718 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6719 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6721 2002-04-12 Don Howard <dhoward@redhat.com>
6723 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6724 max_user_call_depth.
6725 (init_cmd_lists): Initialize the new value;
6726 * cli/cli-script.c (execute_user_command): Limit the call depth of
6727 user defined commands. This avoids a core-dump when user commands
6728 are infinitly recursive.
6730 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6732 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6733 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6734 from tdep struct instead of DEFAULT_LR_SAVE.
6735 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6736 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6737 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6739 2002-04-12 Michael Snyder <msnyder@redhat.com>
6741 * Remote.c: Spelling fix.
6742 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6743 If no symbol found for "sbrk", try "_sbrk".
6744 (make_output_phdrs): Use bfd_section_name.
6745 (gcore_copy_callback): Use bfd_section_name.
6746 * eval.c: Indentation fix-ups.
6747 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6748 in case it gets applied to an address that is already
6749 in the instruction space.
6750 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6751 * symfile.c: Fix indentation, long lines.
6752 * source.c: White space fix-up.
6754 2002-04-12 Andrew Cagney <cagney@redhat.com>
6756 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6757 * frame.c (frame_register_read): New function. Return non-zero on
6759 (read_relative_register_raw_bytes_for_frame): Delete.
6760 (read_relative_register_raw_bytes): Delete.
6761 * frame.h (frame_register_read): Declare.
6762 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6764 * infcmd.c (do_registers_info): Ditto.
6765 * hppa-tdep.c: Ditto.
6766 * rs6000-tdep.c: Ditto.
6767 * h8500-tdep.c: Ditto.
6768 * mips-tdep.c: Ditto.
6769 * h8300-tdep.c: Ditto.
6770 * z8k-tdep.c: Ditto.
6772 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6774 From Jimi X <jimix@watson.ibm.com>:
6775 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6778 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6780 From Jimi X <jimix@watson.ibm.com>:
6781 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6784 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6786 From Jimi X <jimix@watson.ibm.com>:
6787 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6788 register sets for these processor variants.
6790 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6792 * regformats/reg-ppc.dat: Support FPSCR.
6794 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6796 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6797 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6798 Add fpscr as an invalid/unfetchable register.
6799 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6800 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6801 (fill_fpregset): Add support for register fpscr.
6802 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6803 (fill_gregset): Account for the fact that register ``mq'' might
6805 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6806 (registers_power): Add fpscr to register set at slot 71.
6807 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6808 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6810 2002-04-11 Michael Snyder <msnyder@redhat.com>
6812 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6813 * configure: Regenerate.
6814 * config.in: Regenerate.
6815 * acconfig.h: Add define for _SYSCALL32.
6816 * core-sol2.c: Remove #define _SYSCALL32.
6817 * solib-legacy.c: Remove #define _SYSCALL32.
6819 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6821 * stack.c (select_frame): Cleanup internal error message, do not
6824 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6826 * stack.c (select_frame): Check that selected_frame and the
6827 specified level are as expected.
6828 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6830 * frame.h (struct frame_info): Add field `level'. Update
6832 Work-in-progress PR gdb/464.
6834 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6836 * maint.c (maint_print_section_info): Rename print_section_info.
6837 (print_bfd_section_info, print_objfile_section_info): Update.
6838 * inferior.h (struct gdbarch): Add opaque declaration.
6839 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6840 * gdbarch.h: Regenerate.
6842 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6844 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6845 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6846 (kernel_u_size): Added.
6847 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6848 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6850 2002-04-04 Jim Ingham <jingham@apple.com>
6852 * valarith.c (find_size_for_pointer_math): New function, either returns
6853 the size for a pointer's target, returns 1 for void *, or errors for
6855 (value_add, value_sub): use find_size_for_pointer_math.
6857 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6859 * linux-low.c (linux_look_up_symbols): New hook.
6860 (linux_target_ops): Add linux_look_up_symbols.
6861 * remote-utils.c (decode_address): New function.
6862 (look_up_one_symbol): New function.
6863 * server.c (handle_query): Call target look_up_symbols hook.
6864 * server.h (look_up_one_symbol): Add prototype.
6865 * target.h (struct target_ops): Add look_up_symbols hook.
6867 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6869 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6870 override FP_REGNUM with frame->fp. Update copyright.
6871 * parse.c (num_std_regs, std_regs): Delete.
6872 (target_map_name_to_register): Do not search std_regs. Update
6873 function description.
6874 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6875 declarations. Update copyright.
6878 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6880 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6881 after the last symbol in a block.
6883 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6885 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6886 is non zero as a found symbol.
6888 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6890 * findvar.c: Include "builtin-regs.h".
6891 (value_of_register): Call value_of_builtin_reg when applicable.
6892 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6893 (target_map_name_to_register): Call
6894 builtin_reg_map_name_to_regnum.
6895 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6896 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6897 (builtin_regs_h): Define.
6898 (builtin-regs.o): New target.
6899 (findvar.o): Add $(builtin_regs_h).
6900 * builtin-regs.c, builtin-regs.h: New files.
6901 * std-regs.c: New file.
6902 Partial fix for PR gdb/251.
6904 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6906 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6907 it's no longer required.
6909 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6911 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6913 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6915 From Jimi X <jimix@watson.ibm.com>:
6916 * rs6000-tdep.c (rs6000_software_single_step): Use
6917 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6918 and size. Use target_insert_breakpoint() and
6919 target_remove_breakpoint() to insert and remove breakpoints
6920 instead of explicit memory reads and writes.
6922 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6924 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6925 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6926 ELF_OBJECT_FORMAT ifdef.
6928 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6930 From Jimi X <jimix@watson.ibm.com>:
6931 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6933 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6935 From Jimi X <jimix@watson.ibm.com>:
6936 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6937 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6939 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6941 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6942 s/asprintf/xasprintf/.
6943 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6945 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6947 I believe Jeff Law denies responsability for this one:
6948 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6949 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6950 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6951 Work-around for PR gdb/366.
6953 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6955 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6956 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6957 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6959 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6961 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6962 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6965 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6967 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6970 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6972 * README (Reporting Bugs in GDB): Document the bug web page as the
6973 prefered way of submitting bugs.
6976 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6978 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6980 * gdbarch.h, gdbarch.c: Re-generate.
6982 2002-04-07 Andreas Schwab <schwab@suse.de>
6984 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6985 buffer to regcache_collect.
6987 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6989 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6990 * gdbarch.c, gdbarch.h: Re-generate.
6992 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6994 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6995 declaration. Fix -Werror.
6997 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6999 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7000 * gdbarch.c: Regenerate.
7002 2002-04-05 Michael Snyder <msnyder@redhat.com>
7004 * breakpoint.c (clear_command): Rewrite middle section to
7005 combine two loops with identical control conditions.
7006 Add a cleanup to eliminate a memory leak.
7007 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7009 2002-04-05 H.J. Lu (hjl@gnu.org)
7011 * solib-svr4.c (bkpt_names): Add "__start".
7013 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7015 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7016 as test for 64 bit target.
7018 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7020 * h8500-tdep.c (h8500_write_fp): Delete function.
7021 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7022 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7023 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7026 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7028 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7029 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7030 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7031 (d10v_write_fp): Delete function.
7032 * inferior.h (write_fp, generic_target_write_fp): Delete
7034 * regcache.c (generic_target_write_fp): Delete function.
7035 (write_fp): Delete function.
7036 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7037 * gdbarch.h, gdbarch.c: Regenerate.
7038 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7039 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7040 (sparc64_write_fp): Delete declaration.
7041 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7042 (h8500_write_fp): Delete declaration.
7044 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7046 * sparc-tdep.c (sparc64_write_fp): Delete.
7047 (sparc_push_dummy_frame): Replace write_fp call with code to store
7049 (sparc_gdbarch_init): Do not initialize write_fp.
7051 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7053 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7056 2002-03-29 Jim Blandy <jimb@redhat.com>
7058 * stack.c (get_selected_block): Add new argument `addr_in_block',
7059 used to return the exact code address we used to select the block,
7061 * blockframe.c (get_frame_block, get_current_block): Same.
7062 * frame.h (get_frame_block, get_current_block,
7063 get_selected_block): Update declarations.
7064 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7065 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7067 2002-04-05 Michael Snyder <msnyder@redhat.com>
7069 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7072 2002-04-05 J. Brobecker <brobecker@gnat.com>
7074 * utils.c (xfullpath): New function.
7075 * defs.h (xfullpath): Add declaration.
7076 * source.c (openp): Use xfullpath in place of gdb_realpath to
7077 avoid resolving the basename part of filenames when the
7078 associated file is a symbolic link. This fixes a potential
7079 inconsistency between the filenames known to GDB and the
7080 filenames it prints in the annotations.
7081 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7082 to be able to match a filename with either the real filename, or
7083 the name of any symbolic link to this file.
7084 (lookup_partial_symtab): Ditto.
7086 2002-04-04 Michael Snyder <msnyder@redhat.com>
7088 * breakpoint.c: Add support for hardware breakpoints in overlays.
7089 (overlay_events_enabled): New state variable.
7090 (insert_breakpoints): Use overlay_events_enabled to decide
7091 whether to attempt to set a breakpoint at the overlay load addr.
7092 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7093 (remove_breakpoint): Use overlay_events_enabled to decide
7094 whether breakpoints need to be removed from overlay load addr.
7095 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7096 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7097 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7098 disable_overlay_breakpoints): Update overlay_events_enabled.
7100 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7102 * dwarf2read.c (struct function_range): New.
7103 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7104 (check_cu_functions): New.
7105 (read_file_scope): Initialize global function lists.
7106 Call dwarf_decode_line after processing children.
7107 (read_func_scope): Add to global function list.
7108 (dwarf_decode_lines): Call check_cu_functions everywhere
7109 record_line is called. Call record_line with a linenumber
7110 of 0 to mark sequence ends.
7112 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7114 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7115 change sync with glibc.
7117 2002-04-03 Jim Blandy <jimb@redhat.com>
7119 * configure.in: Call AC_C_INLINE.
7120 * configure: Regenerated.
7122 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7124 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7125 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7127 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7129 * NEWS: Mention gcore support on FreeBSD/i386.
7131 * fbsd-proc.c: New file.
7132 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7133 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7135 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7138 2002-03-29 Jim Blandy <jimb@redhat.com>
7140 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7141 unescaped newlines in string literals, but newer ones don't. So
7144 2002-03-26 Michael Snyder <msnyder@redhat.com>
7145 Andrew Cagney <cagney@redhat.com>
7147 * cli/cli-dump.c: New file. Dump memory to file,
7148 restore file to memory.
7149 * cli/cli-dump.h: New file.
7150 * Makefile.in: Add rules, dependencies for cli-dump.o.
7151 * NEWS: Mention new commands.
7153 2002-03-28 Michael Snyder <msnyder@redhat.com>
7155 * symfile.c (symbol_file_add): Move test for null symbols to later.
7157 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7159 From veksler at il.ibm.com:
7160 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7161 the xstrduped original path.
7164 2002-03-27 Michael Snyder <msnyder@redhat.com>
7166 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7167 * infcmd.c (_initialize_infcmd): Ditto.
7168 * language.c (_initialize_language): Ditto.
7169 * symfile.c (_initialize_symfile): Ditto.
7170 * top.c (_init_main): Ditto.
7171 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7173 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7175 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7176 vector registers handling.
7177 (skip_prologue): Handle new AltiVec instructions. Fill in new
7178 fields of frame data.
7179 (frame_get_saved_regs): Fill in information for AltiVec registers.
7181 2002-03-27 Jim Blandy <jimb@redhat.com>
7183 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7184 a function; leave this macro here to invoke that function.
7185 (symbol_init_mangled_name): Declaration for that function.
7186 * symtab.c (symbol_init_mangled_name): New function.
7188 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7190 * valarith.c: Replace strerror with safe_strerror.
7191 * tracepoint.c: Ditto.
7193 * go32-nat.c: Ditto.
7197 2002-03-27 Andreas Schwab <schwab@suse.de>
7199 * event-top.c (command_line_handler): Remove useless if.
7201 2002-03-27 Andreas Jaeger <aj@suse.de>
7203 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7206 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7208 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7209 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7210 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7211 (x86_64_linux_dr_get_status, supply_gregset),
7212 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7213 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7214 (x86_64_register_info_table): Add.
7215 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7216 (x86_64_register_raw_size, x86_64_register_virtual_type),
7217 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7218 general x86_64_register_info_table.
7219 (i386_gdbarch_init): gdbarch_register_bytes is now set
7220 dynamicaly during initialization.
7221 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7222 * gdbserver/linux-x86-64-low.c: Ditto.
7224 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7226 * gdbserver/server.c (main): Call target_signal_to_host_p
7227 and target_signal_to_host on signals received from the remote.
7228 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7229 target_signal_from_host on signals sent to the remote.
7230 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7231 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7233 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7235 * signals/signals.c: Include "server.h" in gdbserver build.
7236 (target_signal_from_name): Don't use STREQ.
7237 (_initialize_signals): Likewise. Don't include function in
7240 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7242 * signals.c: Moved to...
7243 * signals/signals.c: Here.
7244 * Makefile (signals.o): Update.
7246 2002-03-26 Jeff Law (law@redhat.com)
7248 * somread.c (som_symtab_read): Remove some commented out code and
7249 updated related comments. Do not set the minimal symbol table to
7250 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7251 in a dynamic executable.
7252 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7253 where we are unable to find the minimal symbol for the given
7256 2002-03-25 Jeff Law (law@redhat.com)
7258 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7260 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7262 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7264 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7266 * command.h: Update copyright.
7267 (struct cmd_list_element): Replace definition with opaque
7269 (enum cmd_types): Document that it will eventually be moved to
7271 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7272 (MALLOCED_REPLACEMENT): Delete macro.
7273 * Makefile.in (cli_decode_h): Add $(command_h).
7274 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7275 * top.c: Include "cli/cli-decode.h".
7276 * completer.c: Include "cli/cli-decode.h".
7277 * maint.c: Include "cli/cli-decode.h".
7278 * cli/cli-decode.h: Include "command.h".
7279 (enum command_class): Delete.
7280 (enum cmd_types): Comment out.
7281 (enum cmd_auto_boolean): Delete.
7282 (enum var_types): Delete.
7284 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7286 * cli/cli-decode.c: Include "gdb_assert.h".
7287 (add_set_or_show_cmd): New static function.
7288 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7289 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7290 all fields, such as func, from the set command.
7292 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7294 * MAINTAINERS (sh-elf): Change warning flag to -w.
7296 2002-03-23 Andrew Cagney <cagney@redhat.com>
7298 * defs.h (error): Add printf format attribute.
7299 * thread-db.c (thread_from_lwp): Fix error format string.
7300 * stack.c (parse_frame_specification): Ditto.
7301 * cli/cli-decode.c (undef_cmd_error): Ditto.
7302 * scm-lang.c (scm_lookup_name): Ditto.
7303 * tracepoint.c (trace_error): Ditto.
7304 * remote-utils.c (usage): Ditto.
7305 * remote.c (compare_sections_command): Ditto.
7308 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7310 * gdbtypes.c (append_composite_type_field): New function.
7311 (init_composite_type): New function.
7312 * gdbtypes.h (append_composite_type_field): Declare.
7313 (init_composite_type): Ditto.
7315 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7317 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7319 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7320 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7321 structure returning convention for SYSV ABI case, but not
7322 for GNU/Linux, FreeBSD, or NetBSD.
7324 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7326 * symtab.h (lookup_block_symbol): Add mangled_name argument
7329 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7330 with new mangled_name argument.
7331 * linespec.c (decode_line_1): Likewise.
7332 * valops (value_of_this): Likewise.
7333 * symtab.c (lookup_transparent_type): Likewise.
7334 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7335 (lookup_symbol): If we are given a mangled name, pass it down
7336 to lookup_symbol_aux.
7337 (lookup_block_symbol): If we are given a mangled name to check
7338 against, only return symbols which match it.
7340 2002-03-22 Christopher Faylor <cgf@redhat.com>
7342 * win32-nat.c (child_create_inferior): Check for proper shell to use
7343 here, in case the user changes it on the fly.
7344 (_initialize_inftarg): Remove shell path considerations.
7346 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7348 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7349 for gdbarch_max_register_raw_size and max_register_virtual_size.
7350 Adjust copyright year.
7352 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7354 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7355 in a function to cover the entire beginning of the function
7356 as well if it does not already.
7358 2002-03-21 Tom Rix <trix@redhat.com>
7360 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7361 (rs6000_ptrace64): Renamed from ptrace64.
7363 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7365 * gdbserver/remote-utils.c (remote_open): Don't call
7366 getprotobyname, we're all using TCP here so just use
7368 * gdbserver/gdbreplay.c (remote_open): Ditto.
7370 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7372 * regcache.c (_initialize_regcache): No need to call
7373 build_regcache() at this time; it gets called whenever
7374 the gdbarch changes.
7376 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7378 * sparc-nat.c: Include sys/param.h where possible.
7380 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7383 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7384 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7385 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7387 * stabsread.c (rs6000_builtin_type): Likewise.
7388 (read_sun_floating_type): Likewise.
7390 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7392 * stabsread.c (read_member_functions): Remove skip code for duplicate
7393 constructor/destructor methods. Use standard parsing for these
7394 methods and just do not chain them to the list of methods after
7397 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7399 * coffread.c: Remove redundant static declarations. Replace
7400 occurrences of `PTR' with `void *'.
7401 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7402 * top.h (quit_cover): Likewise.
7403 * defs.h (catch_errors): Likewise.
7405 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7407 * defs.h (XMALLOC): Define.
7408 * gdb-events.sh (XMALLOC): Delete macro.
7409 * gdb-events.c, gdb-events.h: Regenerate.
7410 * gdbarch.sh (XMALLOC): Delete macro.
7411 * gdbarch.c: Regenerate.
7412 * serial.c (XMALLOC): Delete macro.
7413 * ui-file.c (XMALLOC): Ditto.
7414 * ser-unix.h (XMALLOC): Ditto.
7415 * sh-tdep.c (XMALLOC): Ditto.
7416 * ui-out.c (XMALLOC): Ditto.
7417 * utils.c (XMALLOC): Ditto.
7418 * i386-tdep.c (XMALLOC): Ditto.
7419 * gdb-events.c (XMALLOC): Ditto.
7420 * d10v-tdep.c (XMALLOC): Ditto.
7421 * cli-out.c (XMALLOC): Ditto.
7423 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7424 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7425 * ui-file.c, ui-out.c: Ditto.
7427 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7429 * command.h (struct cmd_list_element): Add field context.
7430 (set_cmd_context, get_cmd_context): Declare.
7431 * cli/cli-decode.h: Ditto.
7432 * cli/cli-decode.c (get_cmd_context): New function.
7433 (set_cmd_context): New function.
7434 (add_cmd): Initialize context.
7435 Part of fixing PR gdb/145 and PR gdb/146.
7437 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7439 * cli/cli-decode.c (cmd_type): New function.
7440 * command.h (cmd_type): Declare.
7441 * infrun.c (set_schedlock_func): Call function cmd_type.
7442 * kod.c (kod_set_os): Call cmd_type.
7443 * cris-tdep.c (cris_version_update): Use function cmd_type.
7444 (cris_mode_update, cris_abi_update): Ditto.
7446 * command.h: (execute_cmd_post_hook): Declare.
7447 (execute_cmd_pre_hook): Declare.
7448 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7449 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7450 functions. Execute pre/post hook while ensuring that afterwords
7452 * top.c (execute_command): Use execute_cmd_post_hook, and
7453 execute_cmd_pre_hook to execute pre/post commands.
7454 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7456 (hook_stop_stub): Call execute_cmd_pre_hook.
7458 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7460 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7461 set'' and this leads to a core dump. Move xstrdup of
7462 operating_system to after check that it is not NULL.
7464 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7466 * kod.c (kod_set_os): Remove unnecessary check that
7467 ``command->type'' is set_cmd.
7469 * valprint.c (set_input_radix): Use input_radix.
7470 (set_output_radix): Use output_radix.
7471 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7474 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7476 * value.h (struct value): Delete field ``substring_addr''. Change
7477 aligner fields to force_doublest_align, force_longest_align,
7478 force_core_addr_align and force_pointer_aligh.
7480 * value.h (struct value): Fix typo in above change.
7482 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7484 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7485 to fix internal_error from ``maintenance print architecture''.
7487 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7489 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7490 for gcc versions after gcc-2.8.1.
7492 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7494 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7495 for method resolution. Restore adjustment of ``this'' pointer after
7496 calling value_struct_elt, which was accidentally removed during the
7499 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7501 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7503 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7505 * value.h (value_of_register): Update.
7507 2002-03-14 Richard Henderson <rth@redhat.com>
7509 * configure.in: Detect declaration for canonicalize_file_name.
7510 * utils.c (canonicalize_file_name): Declare, if needed.
7511 (gdb_realpath): Prefer realpath if available and usable.
7512 * config.in, configure: Rebuild.
7514 2002-03-14 Richard Henderson <rth@redhat.com>
7516 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7517 a constant array bound.
7519 * MAINTAINERS: Add myself to write-after-approval.
7521 2002-03-14 Michael Snyder <msnyder@redhat.com>
7523 * symfile.c (syms_from_objfile): Return immediately if no syms.
7524 (symbol_file_add): Return immediately if no syms.
7525 (find_sym_fns): Return immediately if no syms.
7527 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7529 * gdbserver/remote-util.c (remote_open): Print remote-side's
7530 IP address when remote debugging over the network.
7532 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7534 * config/sparc/fbsd.mh: Fix copyright.
7535 * config/sparc/fbsd.mt: Likewise.
7537 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7539 * MAINTAINERS: Fix typo in name of gdb warnings option.
7540 (x86-64): Fix formating so that this can be parsed by awk.
7542 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7544 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7545 * defs.h: Include "gdb/signals.h".
7546 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7548 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7550 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7551 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7554 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7555 Don Howard <dhoward@redhat.com>
7557 * mips-tdep.c (ST0_FR): Define.
7558 (mips2_fp_compat): New function, temporarily disabled.
7559 (mips_read_fp_register_single): New function.
7560 (mips_read_fp_register_double): New function.
7561 (mips_print_register): Use them.
7562 (do_fp_register_row): Likewise.
7564 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7566 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7569 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7571 * stabsread.c (read_member_functions): Fix is_stub test for
7572 static member functions, improve comment.
7574 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7576 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7577 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7578 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7579 commands that set boolean values.
7580 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7581 (arm_rdi_resume): Always initialize PC.
7582 (arm_rdi_open): Don't use rslt as a boolean.
7583 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7584 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7585 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7586 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7588 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7590 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7591 * configure: Rebuilt.
7593 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7595 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7596 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7598 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7600 * cli/cli-decode.c (set_cmd_completer): New function.
7601 * command.h (set_cmd_completer): Declare.
7602 * cli/cli-decode.h (set_cmd_completer): Ditto.
7604 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7605 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7606 * win32-nat.c (_initialize_inftarg): Ditto.
7607 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7608 * proc-api.c (_initialize_proc_api): Ditto.
7609 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7610 * source.c (_initialize_source): Ditto.
7611 * exec.c (_initialize_exec): Ditto.
7612 * solib.c (_initialize_solib): Ditto.
7613 * top.c (init_main): Ditto.
7614 * tracepoint.c (_initialize_tracepoint): Ditto.
7615 * symfile.c (_initialize_symfile): Ditto.
7616 * printcmd.c (_initialize_printcmd): Ditto.
7617 * infcmd.c (_initialize_infcmd): Ditto.
7618 * corefile.c (_initialize_core): Ditto.
7620 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7622 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7624 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7626 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7628 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7630 * NEWS: Update headings, 5.2 has branched.
7632 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7634 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7635 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7636 (register_addr, REGISTER_RAW_SIZE): Likewise.
7637 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7638 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7640 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7642 * MAINTAINERS (x86-64): Add myself.
7643 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7644 changed value_ptr -> struct value *
7646 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7648 * configure.host (sparc64-*-freebsd): Add.
7649 * configure.tgt: Likewise.
7650 * config/sparc/fbsd.mh: New file.
7651 * config/sparc/fbsd.mt: Likewise.
7652 * config/sparc/nm-fbsd.h: Likewise.
7653 * config/sparc/tm-fbsd.h: Likewise.
7655 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7657 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7658 regformats/reg-s390x.dat.
7660 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7662 * utils.c: Add FIXME explaining true/false problem.
7664 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7666 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7668 2002-02-28 Michael Chastain <mec@shout.net>
7670 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7672 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7674 * gdbserver/linux-s390-low.c: New file.
7675 * regformats/reg-s390.dat: New file.
7676 * regformats/reg-s390x.dat: New file.
7677 * gdbserver/configure.srv: Add S/390.
7678 * gdbserver/Makefile.in: Add S/390.
7679 * configure.tgt: Enable gdbserver for S/390.
7681 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7683 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7684 first line of the doc string for "info dos", except at the end of
7685 the sentence, since the short help stops at the first period.
7687 2002-02-28 Jason Merrill <jason@redhat.com>
7689 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7691 2002-02-27 Fred Fish <fnf@redhat.com>
7693 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7694 comment (dumy -> dummy).
7696 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7698 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7700 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7702 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7704 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7706 * gdbserver/acconfig.h: New file.
7707 * gdbserver/i387-fp.c: New file.
7708 * gdbserver/i387-fp.h: New file.
7709 * gdbserver/linux-x86-64.c: New file.
7710 * regformats/reg-x86-64.dat: New file.
7711 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7712 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7713 * gdbserver/configure.in: Add support for regsets.
7714 * gdbserver/config.in: Regenerate.
7715 * gdbserver/configure: Regenerate.
7716 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7717 * gdbserver/linux-low.h: New file.
7718 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7720 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7721 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7722 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7723 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7724 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7725 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7726 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7727 "i387-fp.h". Add PTRACE_GETREGS and friends.
7728 * gdbserver/regcache.c (supply_register): New function.
7729 (supply_register_by_name): New function.
7730 (collect_register): New function.
7731 (collect_register_by_name): New function.
7733 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7735 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7736 (config.status): Add configure.srv dependency.
7737 (server_h): Add config.h dependency.
7739 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7741 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7742 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7743 * gdbserver/configure.srv: Change i386-*-linux* to use
7746 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7748 * x86-64-tdep.c: Re-indent. Update copyright date.
7750 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7752 From Michal Ludvig <mludvig@suse.cz>:
7753 * x86-64-tdep.c (value.h): Delete.
7754 (gdb_assert.h): Include.
7755 (x86_64_register_convert_to_virtual,
7756 x86_64_register_convert_to_raw ): Add check which lets only
7757 floating-point values to be converted.
7758 (value_push): Delete.
7759 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7760 (i386_gdbarch_init): Number of register_bytes fixed.
7762 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7764 * MAINTAINERS: Add x86-64 target.
7766 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7768 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7769 * osfsolib.c (solib_map_sections): Ditto.
7770 * irix5-nat.c (solib_map_sections): Ditto.
7771 * corelow.c (gdb_check_format): Ditto.
7772 * symfile.c (symfile_bfd_open): Ditto.
7773 * solib.c (solib_map_sections): Ditto.
7776 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7778 * remote.c (_initialize_remote): By default, disable ``e'' and
7779 ``E'' step out-of-range packets.
7781 2002-02-26 Andreas Schwab <schwab@suse.de>
7783 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7784 m68k_linux_frame_saved_pc.
7785 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7787 (SIGCONTEXT_PC_OFFSET): Remove.
7788 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7789 m68k_linux_sigtramp_saved_pc): New functions.
7790 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7791 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7792 (UCONTEXT_PC_OFFSET): Define.
7793 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7794 non-RT and RT signal trampolines.
7796 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7798 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7799 (TARGET_NBPG, STACK_END_ADDR): Delete
7800 (VARIABLES_INSIDE_BLOCK): Delete.
7802 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7804 * utils.c (perror_with_name): Make string parameter constant.
7805 (print_sys_errmsg): Ditto.
7807 * defs.h (perror_with_name): Update.
7808 (print_sys_errmsg): Update.
7811 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7813 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7814 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7816 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7818 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7819 if it already matches the current architecture from the exec file.
7820 Include arch-utils.h for gdbarch_info_init prototype.
7821 * Makefile.in (rs6000-nat.o): Update dependencies.
7823 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7825 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7826 list of exported variables.
7828 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7830 * gdbserver/configure.srv: New file.
7831 * gdbserver/configure.in: Use configure.srv instead
7832 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7834 * gdbserver/configure: Regenerated.
7835 * gdbserver/terminal.h: New file.
7836 * gdbserver/Makefile.in: Update for configure changes. Remove
7837 more unneeded include paths.
7839 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7841 From wiz at danbala:
7842 * config/sparc/tm-sp64.h: Fix grammar and typos.
7845 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7847 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7848 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7849 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7850 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7851 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7852 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7853 * s390-tdep.c: Ditto.
7854 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7855 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7856 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7857 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7858 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7859 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7860 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7861 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7862 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7863 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7866 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7868 * lin-thread.c: Delete file.
7869 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7870 to gdb_proc_service.h.
7871 * configure: Re-generate.
7873 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7874 * serial.c (serial_open): Delete check for "ocd".
7877 * Makefile.in (linux-thread.o): Delete target.
7878 * linux-thread.c: Delete file.
7880 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7881 renamed SH files to be consistent.
7883 * symtab.c (sort_search_symbols): Use xfree.
7885 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7887 * arm-linux-tdep.c (arm_linux_init_abi): Register
7888 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7889 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7890 definition with undef, since we don't want the sysvr4 definition.
7891 (SKIP_TRAMPOLINE_CODE): Likewise.
7893 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7895 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7897 * configure.in: (AC_CHECK_FUNCS) Added test for
7898 canonicalize_file_name Regenerated.
7899 * config.in, configure: Regenerated.
7900 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7901 defined use canonicalize_file_name.
7903 2002-02-23 Michael Chastain <mec@shout.net>
7905 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7907 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7909 * README: Remove references to cygnus.com.
7910 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7911 dot com'' form. Remove references to cygnus.com and sourceware.
7913 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7915 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7916 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7917 1003.1-2001 no longer allows "head -1".
7918 * gdb/Makefile.in (version.c): Likewise.
7919 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7920 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7921 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7923 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7925 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7926 * command.h (cmd_cfunc_eq): Declare.
7927 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7929 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7930 ``struct cmd_list_element *''.
7931 * cli/cli-cmds.c (is_complete_command): Update. Use
7933 * top.c (execute_command): Pass the command to
7934 is_complete_command.
7935 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7937 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7939 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7940 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7941 architecture defines.
7942 * s390-tdep.c (s390_gdbarch_init): Likewise.
7944 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7946 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7947 (arm_linux_push_arguments): Likewise.
7948 (arm_linux_init_abi): Register them. Also register linux-specific
7950 (find_minsym_and_objfile): Use strcmp, not STREQ.
7951 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7952 (arm_linux_call_dummy_words): Delete declaration.
7953 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7954 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7956 (LOWEST_PC): Delete.
7958 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7960 * maint.c (print_section_info): Do not prepend `0x' to filepos
7961 output, it will be handled by local_hex_string_custom.
7963 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7965 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7966 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7967 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7969 2002-02-22 Jim Blandy <jimb@redhat.com>
7971 Indicate that the bcache functions don't change the strings
7973 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7974 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7976 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7978 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7980 2002-02-21 Christopher Faylor <cgf@redhat.com>
7982 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7983 find the complete path to a loaded DLL.
7985 2002-02-21 Fred Fish <fnf@redhat.com>
7987 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7988 that marks the end of the range of a function, enter a line number
7989 entry that has a line number of zero and a PC offset that matches
7990 the end of the function. This starts a range of PC's for which no
7991 line number information is known.
7992 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7993 PC's for which no line number info is found (line number is zero)
7994 then we didn't find any valid line information.
7995 * symtab.h: Document use of zero line number entry.
7997 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7999 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8000 (have_ptrace_getvrregs): Define for run time checks.
8001 (gdb_vrregset_t): New type for Altivec register handling.
8002 (fetch_register, store_register): Fetch/store altivec register
8004 (fetch_altivec_register, store_altivec_register): New functions.
8005 (supply_vrregset, fill_vrregset): New functions.
8006 (fetch_altivec_registers, store_altivec_registers): New functions.
8007 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8010 2002-02-21 Jiri Smid <smid@suse.cz>
8012 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8014 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8016 * Makefile.in (armnbsd-nat.o): Update dependencies.
8017 * armnbsd-nat.c (supply_gregset): New function. Common code to
8018 supply the integer register set.
8019 (supply_fparegset): New function. Similar for FPA registers.
8020 (fetch_regs, fetch_fp_regs): Use them.
8021 (fetch_core_registers): Likewise.
8022 (fetch_elfcore_registers): New function.
8023 (arm_netbsd_elfcore_fns): New core-file type specification.
8024 (_initialize_arm_netbsd_nat): Register it.
8026 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8028 * armnbsd-nat.c: Include gdbcore.h.
8029 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8030 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8031 'void' to declaration, to shut up ARI.
8032 (fetch_core_registers): Make static. Rewrite using supply_register.
8033 (arm_netbsd_core_fns): New core-file type specification.
8034 (_initialize_arm_netbsd_nat): New function.
8036 2002-02-21 Christopher Faylor <cgf@redhat.com>
8038 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8041 2002-02-20 Christopher Faylor <cgf@redhat.com>
8043 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8046 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8048 * jv-exp.y (parse_number): Change type of implicit longs
8049 to builtin_type_uint64.
8051 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8053 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8054 to be an integer instead of a `union wait'.
8056 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8058 * mips-linux-nat.c: Call the operating system GNU/Linux.
8059 * mips-linux-tdep.c: Likewise.
8060 * mips-tdep.c: Likewise.
8062 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8065 * jv-exp.y (parse_number): Handle 64-bit integers.
8067 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8069 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8070 AC_STDC_HEADERS to AC_HEADER_STDC.
8071 * gdbserver/configure: Regenerated.
8073 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8075 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8077 * sparc-tdep.c (get_longjmp_target): Likewise.
8079 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8081 * News: Add news about ARM and Multi-arch. Mention the new target
8084 2002-02-19 Jim Blandy <jimb@redhat.com>
8086 * stabsread.c (error_type_complaint): Improve error message.
8088 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8090 * gdbserver/README: Update documentation.
8091 * gdbserver/configure.in: Update configury to match documentation.
8092 * gdbserver/Makefile.in: Likewise.
8093 * gdbserver/configure: Regenerated.
8094 * gdbserver/aclocal.m4: New file, generated by aclocal.
8095 * gdbserver/config.in: New file, generated by autoheader.
8097 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8099 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8102 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8104 * arm-tdep.h (enum arm_float_model): New enum.
8105 (struct gdbarch_tdep): Add fp_model.
8106 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8107 up floating-point conversions until we know the floating-point model
8108 in use by the inferior. Don't complain about being unable to
8109 determine the ABI of the inferior when we don't have one.
8110 (arm_extract_return_value): Support different floating-point models.
8111 (arm_store_return_value): Likewise.
8112 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8114 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8116 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8118 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8119 of ``current_gdbarch''.
8121 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8123 * armnbsd-nat.c : ANSIfy all function declarations.
8124 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8125 (fetch_inferior_registers): Re-implement in terms of above.
8126 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8127 (store_inferior_registers): Re-implement in terms of above.
8129 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8131 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8133 * arm-linux-tdep.c: Likewise.
8134 * config/arm/tm-linux.h: Likewise.
8136 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8138 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8139 * config/arm/nbsd.mt (TM_FILE): Delete.
8140 * config/arm/tm-nbsd.h: Delete.
8142 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8144 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8145 Initialize CALL_DUMMY_LENGTH.
8147 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8149 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8151 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8152 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8153 defines one thing and that is incorrect for this port.
8154 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8156 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8158 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8160 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8162 * win32-nat.c (display_selector): New function. Displays information
8163 about the information returned by GetThreadSelectorEntry API function.
8164 (display_selectors): New function. Displays the infomation of
8165 the selector given as argument, or of CS, DS ans FS selectors
8166 if no argument is given.
8167 ( _initialize_inftarg): Add "w32" as info prefix command.
8168 Add "info w32 selector" as command calling display_selectors.
8170 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8172 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8173 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8176 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8178 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8180 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8182 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8183 (arm_fix_call_dummy): Call it.
8184 (arm_call_dummy_breakpoint_offset): Delete.
8185 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8186 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8188 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8190 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8191 Default to func_frame_chain_valid.
8192 * gdbarch.h, gdbarch.c: Re-generate.
8193 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8195 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8197 * ppc-linux-nat.c: Update copyright.
8198 (fetch_register, store_register): Add tid parameter, don't compute
8200 (fetch_ppc_registers, store_ppc_registers): Add tid
8201 parameter. Pass it along to callees.
8202 (fetch_inferior_registers, store_inferior_registers): Compute tid
8203 here, and pass it to calleed functions.
8204 (fill_gregset, supply_fpregset): Clean up formatting.
8206 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8208 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8209 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8211 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8213 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8214 * gdbarch.c gdbarch.h: Regenerate.
8215 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8217 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8218 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8219 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8221 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8222 * arm-tdep.c (arm_get_longjmp_target): New function.
8223 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8224 this to a positive value register arm_get_longjmp_target as the
8226 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8227 (arm_linux_init_abi): Set up longjmp description in tdep.
8228 * armnbsd-nat.c (get_longjmp_target): Delete.
8229 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8230 description in tdep.
8231 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8232 (get_longjmp_target): Delete declaration.
8233 (GET_LONGJMP_TARGET): Delete.
8234 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8235 (GET_LONGJMP_TARGET): Delete.
8237 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8239 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8240 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8241 of ``current_gdbarch''.
8243 2002-02-17 Tom Tromey <tromey@redhat.com>
8245 * cli/cli-cmds.c (compare_strings): New function.
8246 (complete_command): Only print each unique item once.
8247 * completer.h (complete_line): Declare.
8248 * completer.c (complete_line): New function.
8249 (line_completion_function): Use it.
8251 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8253 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8254 * gdbarch.h, gdbarch.c: Re-generate.
8256 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8258 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8260 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8262 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8263 * valops.c (value_arg_coerce): Don't take the address of a reference
8264 to convert an argument to a reference.
8266 2002-02-15 Christopher Faylor <cgf@redhat.com>
8268 * win32-nat.c (get_image_name): New function.
8269 (handle_load_dll): Use get_image_name function.
8270 (get_child_debug_event): Avoid registering debug events until possibly
8271 execed process is started.
8272 (child_create_inferior): Allow invocation via shell so that command
8273 line redirection, etc. works ok.
8274 (_initialize_inftarg): Add new command: "set shell" to control whether
8275 a shell is used to start a process.
8277 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8279 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8280 instead of find_register_by_number.
8281 (cannot_store_register): Likewise.
8283 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8285 * dwarf2read.c: Replace fprintf (stderr, ...) by
8286 fprintf_unfiltered (gdb_stderr, ...).
8288 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8290 * gdbserver/gdbserver.1: Document --attach.
8292 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8294 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8296 * arm-tdep.c (arm_default_arm_le_breakpoint)
8297 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8298 (arm_default_thumb_be_breakpoint): New. Initialize them from
8299 traditional breakpoint defines.
8300 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8301 (arm_gdbarch_init): Initialize new breakpoint variables.
8302 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8303 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8304 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8305 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8307 (arm_netbsd_init_abi_common): ... here; new function.
8308 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8309 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8310 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8311 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8313 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8315 * arm-tdep.h (enum arm_abi): New enum.
8316 (struct gdbarch_tdep): New structure.
8317 (LOWEST_PC): Provide a default.
8318 (arm_gdbarch_register_os_abi): Declare new function.
8319 * arm-tdep.c (arm_abi_names): New array.
8320 (process_note_abi_tag_sections): New function.
8321 (get_elfosabi): New function.
8322 (arm_gdbarch_register_os_abi): New function.
8323 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8324 support for that ABI has been built in, then call the appropriate
8325 configuration routine. Use gdbarch_num_regs() to get the number
8327 (arm_dump_tdep): New function.
8328 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8329 place-holder functions.
8330 (_initialize_arm_tdep): Register them.
8331 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8333 * armnbsd-tdep.c: New file.
8334 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8335 * config/arm/nbsd.mt (TDEPFILES): Add it.
8336 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8338 * armnbsd-nat.c: Include regcache.h.
8339 * Makefile.in (armnbsd-nat.o): Update dependency list.
8341 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8343 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8345 * gdbserver/Makefile.in: Fix typos in target rules.
8347 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8349 Fix part of PR gdb/267.
8350 * linespec.c (find_methods): Handle constructors specially for now.
8352 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8354 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8356 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8357 standard_coerce_float_to_double().
8359 2002-02-14 Christopher Faylor <cgf@redhat.com>
8361 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8364 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8366 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8367 find_variant_by_name, because it confuses the multiarch
8368 framework. Return NULL if there isn't an architecture with the
8369 user supplied name, instead of forcing a different one without
8370 recording the change with the multiarch machinery.
8371 (find_variant_by_name): Delete.
8373 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8375 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8376 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8378 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8380 * stack.c (print_frame_info_base): When calling
8381 print_frame_info_listing_hook, set current_source_symtab.
8383 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8385 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8386 and remove unused $(INCLUDE_DIR).
8387 Add regcache.c to OBS.
8388 Add generated register protocol files to clean target.
8389 Update dependencies for new objects, obsolete old target code.
8391 * gdbserver/linux-low.c: Remove all platform-specific code to
8392 new files. Remove various dead code. Update to use regcache
8394 * gdbserver/remote-utils.c (fromhex): Add return statement
8396 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8398 (input_interrupt): Add integer parameter to match prototype
8399 of a signal handler.
8400 (outreg): Use register_data ().
8401 (prepare_resume_reply): Use gdbserver_expedite_regs.
8402 * gdbserver/server.c (main): Dynamically allocate own_buf because
8403 PBUFSIZ is no longer constant. Use registers_to_string () and
8404 registers_from_string ().
8405 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8406 for error (), fatal (), and warning (). Update definition of
8407 PBUFSIZ to use regcache functionality. Add include guard.
8408 * gdbserver/utils.c (fatal): Add missing ``const''.
8409 (warning): New function.
8411 * regformats/regdat.sh: Include "regcache.h" in generated files.
8412 Provide init_registers () function.
8413 * regformats/regdef.h: Add prototype for set_register_cache ().
8416 * gdbserver/linux-arm-low.c: New file.
8417 * gdbserver/linux-i386-low.c: New file.
8418 * gdbserver/linux-ia64-low.c: New file.
8419 * gdbserver/linux-m68k-low.c: New file.
8420 * gdbserver/linux-mips-low.c: New file.
8421 * gdbserver/linux-ppc-low.c: New file.
8422 * gdbserver/linux-sh-low.c: New file.
8424 * gdbserver/regcache.c: New file.
8425 * gdbserver/regcache.h: New file.
8427 * gdbserver/low-linux.c: Removed obsolete file.
8429 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8431 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8432 * config/i386/linux.mt: Likewise.
8433 * config/ia64/linux.mt: Likewise.
8434 * config/m68k/linux.mh: Likewise.
8435 * config/powerpc/linux.mh: Likewise.
8436 * config/mips/linux.mt: Likewise.
8438 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8440 * config/i386/i386lynx.mh: Mark gdbserver variables
8441 as (currently) obsolete for this target.
8442 * config/i386/nbsd.mt: Likewise.
8443 * config/i386/nbsdelf.mt: Likewise.
8444 * config/m32r/m32r.mt: Likewise.
8445 * config/m68k/m68klynx.mh: Likewise.
8446 * config/m68k/nbsd.mt: Likewise.
8447 * config/m68k/sun3os4.mh: Likewise.
8448 * config/mips/vr5000.mt: Likewise.
8449 * config/ns32k/nbsd.mt: Likewise.
8450 * config/pa/hppabsd.mh: Likewise.
8451 * config/pa/hppaosf.mh: Likewise.
8452 * config/powerpc/nbsd.mt: Likewise.
8453 * config/rs6000/rs6000lynx.mh: Likewise.
8454 * config/s390/s390.mt: Likewise.
8455 * config/s390/s390x.mt: Likewise.
8456 * config/sparc/sparclynx.mh: Likewise.
8457 * config/sparc/sun4os4.mh: Likewise.
8458 * config/i386/x86-64linux.mt: Likewise.
8459 * config/sparc/linux.mh: Likewise.
8461 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8463 * configure.tgt: Configure gdbserver only for known working
8464 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8465 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8466 SUBDIRS if it is configured. Update comment for ${nativefile}.
8467 * configure: Regenerated.
8469 2002-02-13 Michael Snyder <msnyder@redhat.com>
8471 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8473 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8474 (default_gcore_mach): Just return 0, work around a problem in bfd.
8475 (default_gcore_target): OK to return NULL if exec_bfd is null.
8476 (make_mem_sec): Use a cast, avoid a warning.
8478 * procfs.c (find_memory_regions_callback): Use a cast instead of
8479 calling host_pointer_to_address (which complains if
8480 sizeof (host pointer) != sizeof (target pointer)).
8481 (procfs_make_note_section): Avoid overflow in psargs string.
8483 * procfs.c (procfs_make_note_section): Make the default
8484 implementation return an error.
8486 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8488 * procfs.c (procfs_make_note_section): Provide a default definition
8489 (for alpha-dec-osf4.0f). Fix typos.
8491 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8493 * linux-proc.c: Add include of regcache.h.
8494 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8496 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8498 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8499 * memattr.c (create_mem_region): Disallow useless empty region.
8500 Regions are half-open intervals, so allow [A..B) [B..C) as
8503 2002-02-13 Michael Chastain <mec@shout.net>
8505 * defs.h: Kill CONST_PTR.
8506 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8507 * c-lang.c (c_builtin_types): Likewise.
8508 * ch-lang.c (ch_builtin_types): Likewise.
8509 * f-lang.c (f_builtin_types): Likewise.
8510 * language.c (unknown_builtin_types): Likewise.
8511 * m2-lang.c (m2_builtin_types): Likewise.
8512 * p-lang.c (pascal_builtin_types): Likewise.
8513 * scm-lang.c (c_builtin_types): Likewise.
8515 2002-02-13 Keith Seitz <keiths@redhat.com>
8517 * arm-tdep.h (arm_get_next_pc): Add declaration.
8519 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8521 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8522 with other related struct-returning functions.
8523 (arm_extract_struct_value_address): New function.
8524 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8525 initialize float_format, double_format and long_double_format as
8526 appropriate to the endianness of the target.
8527 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8528 (arm_use_struct_convention): Delete declaration.
8529 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8531 2002-02-13 Keith Seitz <keiths@redhat.com>
8533 * defs.h (core_addr_to_string_nz): New function.
8535 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8537 Apply missing bits of 2002-01-15 patch.
8538 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8539 (fill_fpregset): Use i387_fill_fsave.
8541 2002-02-12 Keith Seitz <keiths@redhat.com>
8543 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8544 (core_addr_to_string_nz): New function.
8546 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8548 * arm-linux-nat.c: Really include arm-tdep.h.
8549 * config/arm/tm-linux.h (struct type, struct value): Declare.
8551 2002-02-11 Michael Snyder <msnyder@redhat.com>
8553 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8554 (gcore section): Ifdef for Solaris and Unixware only.
8555 (procfs_do_thread_registers): Unixware needs one lwpstatus
8556 per thread (not one prstatus or pstatus).
8557 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8558 not over all gdb threads. For unixware, call elfcore_write_pstatus
8559 once before iterating over threads.
8561 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8563 * arm-tdep.h: New file.
8564 * arm-tdep.c: Include arm-tdep.h.
8565 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8566 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8567 (arm_print_float_info, arm_register_type, convert_to_extended)
8568 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8569 (arm_extract_return_value, arm_register_name): Make static.
8570 (arm_software_single_step): Similarly. Fix types in declaration.
8571 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8572 (arm_store_return_value, arm_store_struct_return): New functions.
8573 (arm_gdbarch_init): Register the above functions. Also register
8574 call_dummy_start_offset, sizeof_call_dummy_words,
8575 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8576 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8577 max_register_virtual_size, register_size. Set up
8578 prologue_cache.saved_regs here, rather than ...
8579 (_initialize_arm_tdep): ... here.
8580 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8582 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8583 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8584 (arm_print_float_info, arm_register_type, convert_to_extended)
8585 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8586 (arm_extract_return_value, arm_register_name): Delete declarations.
8587 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8588 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8589 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8590 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8591 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8592 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8593 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8594 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8595 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8596 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8597 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8598 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8600 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8601 * remote-rdi.c remote-rdp.c: Likewise.
8602 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8603 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8604 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8607 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8608 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8609 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8610 from non-ARM_ prefixed definitions.
8611 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8613 * remote-rdi.c remote-rdp.c: Likewise.
8614 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8616 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8618 * arm-tdep.c (arm_frameless_function_invocation)
8619 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8620 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8621 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8622 (arm_pop_frame, arm_get_next_pc): Make static.
8623 (arm_gdbarch_init): Register above in gdbarch structure.
8624 (arm_read_fp): Renamed from arm_target_read_fp.
8625 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8626 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8627 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8628 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8629 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8630 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8631 (arm_pc_is_thumb_dummy): Delete declarations.
8632 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8633 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8634 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8635 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8637 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8639 * symtab.c (compare_search_syms): New function.
8640 (sort_search_symbols): New function.
8641 (search_symbols): Sort symbols after searching rather than
8644 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8646 * NEWS: Linux -> GNU/Linux.
8648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8650 * gdbarch.sh: For for level one methods, disallow a definition
8651 when partially multi-arched. Add comments explaining rationale.
8652 * gdbarch.h: Re-generate.
8654 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8656 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8659 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8661 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8663 * gdbarch.c: Re-generate.
8665 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8667 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8668 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8671 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8673 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8675 (PUSH_ARGUMENTS): Switch to using predefault.
8676 * gdbarch.c: Regenerate.
8678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8680 * valops.c (PUSH_ARGUMENTS): Delete definition.
8681 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8682 partial. Default to default_push_arguments.
8683 * gdbarch.h, gdbarch.c: Regenerate.
8685 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8687 * defs.h (throw_exception): Rename return_to_top_level. Update
8689 * utils.c (error_stream, internal_verror, quit): Ditto.
8690 * top.c (throw_exception, catcher): Ditto.
8691 * sparclet-rom.c (sparclet_load): Ditto.
8692 * remote.c (interrupt_query, minitelnet): Ditto.
8693 * remote-sds.c (interrupt_query): Ditto.
8694 * remote-mips.c (mips_error, mips_kill): Ditto.
8695 * ocd.c (interrupt_query): Ditto.
8696 * monitor.c (monitor_interrupt_query): Ditto.
8697 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8698 * target.h: Update comment.
8700 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8702 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8704 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8705 default_double_format.
8706 * gdbarch.h, gdbarch.c: Re-generate.
8707 * findvar.c (floatformat_unknown): Delete variable definition.
8708 * doublest.h (floatformat_unknown): Delete variable declaration.
8710 2002-02-09 Jim Blandy <jimb@redhat.com>
8712 * stabsread.c (read_type): Add code to parse Sun's syntax for
8713 prototyped function types.
8715 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8717 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8718 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8720 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8722 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8723 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8724 now _initialize_xcoffsolib gets called again and overrides the
8725 commands from solib.c in a native configuration.
8727 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8729 * doublest.c (store_typed_floating): Don't try to return a value.
8732 2002-02-08 Jim Blandy <jimb@redhat.com>
8734 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8735 is prototyped and has no arguments, print its argument list as
8738 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8740 * MAINTAINERS (write-after-approval): Add myself.
8741 (paper-trail): I've escaped!
8743 2002-02-08 Christopher Faylor <cgf@redhat.com>
8745 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8747 (_initialize_check_for_gdb_ini): Ditto.
8749 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8751 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8752 xaprintf -> xasprintf.
8754 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8756 * win32-nat.c: Remove use of printf and sprintf functions.
8758 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8760 * arm-tdep.c (arm_frame_chain_valid): Make static.
8761 (arm_push_arguments): Likewise.
8762 (arm_gdbarch_init): New function.
8763 (_initialize_arm_tdep): Call it.
8764 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8765 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8766 (FRAME_CHAIN_VALID): Delete.
8767 (arm_frame_chain_valid): Delete declaration.
8768 (PUSH_ARGUMENTS): Delete.
8769 (arm_push_arguments): Delete declaration.
8770 (CALL_DUMMY_P): Delete.
8772 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8773 Corinna Vinschen <vinschen@redhat.com>
8775 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8776 on builtin float types.
8778 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8780 * utils.c: Include <curses.h> before "bfd.h".
8781 * tui/tui-hooks.c: Likewise.
8782 * tui/tui.c: Likewise.
8783 * tui/tuiCommand.c: Likewise.
8784 * tui/tuiData.c: Likewise.
8785 * tui/tuiDataWin.c: Likewise.
8786 * tui/tuiDisassem.c: Likewise.
8787 * tui/tuiGeneralWin.c: Likewise.
8788 * tui/tuiIO.c: Likewise.
8789 * tui/tuiLayout.c: Likewise.
8790 * tui/tuiRegs.c: Likewise.
8791 * tui/tuiSource.c: Likewise.
8792 * tui/tuiSourceWin.c: Likewise.
8793 * tui/tuiStack.c: Likewise.
8794 * tui/tuiWin.c: Likewise.
8796 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8798 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8799 to include space for pseudoregs as well. Update loops accordingly.
8800 (sh_fp_frame_init_saved_regs): Ditto.
8801 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8803 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8805 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8806 Add Richard Earnshaw to Arm maintainers.
8808 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8810 * defs.h (warning_begin): Delete declaration.
8812 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8815 2002-02-07 Michael Snyder <msnyder@redhat.com>
8817 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8818 Logic bug, remove misplaced else.
8820 2002-02-07 Klee Dienes <klee@apple.com>
8822 * fork-inferior.c (fork_inferior): Add '!' to the list of
8823 characters that need to be quoted when building a string for the
8824 shell. Quote '!' specifically with a backslash, since CSH chokes
8825 when trying to evaluate "str!str".
8827 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8829 * rdi-share/host.h: Only provide a typedef for bool if it is not
8832 2002-02-04 Michael Snyder <msnyder@redhat.com>
8834 * breakpoint.h (enum bptype): Add new overlay event bp type.
8835 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8837 * breakpoint.c (create_internal_breakpoint): New function.
8838 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8839 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8840 (create_thread_event_breakpoint): Ditto.
8841 (create_solib_event_breakpoint): Ditto.
8842 (create_overlay_event_breakpoint): New function.
8843 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8844 (update_breakpoints_after_exec): Delete and re-initialize
8845 overlay event breakpoints after an exec. Add FIXME comment
8846 about longjmp breakpoint.
8847 (print_it_typical): Ignore overlay event breakpoints.
8848 (print_one_breakpoint): Ditto.
8850 (bpstat_what): Do not stop for overlay event breakpoints.
8851 (delete_breakpoint): Don't delete overlay event breakpoints.
8852 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8853 (breakpoint_re_set): Re-create overlay event breakpoint.
8855 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8856 (overlay_manual_command): Disable overlay breakpoints.
8857 (overlay_off_command): Disable overlay breakpoints.
8859 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8861 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8862 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8863 to here from config/tm-arm.h.
8864 (coff_sym_is_thumb): Make static.
8865 (arm_elf_make_msymbol_special): New function.
8866 (arm_coff_make_msymbol_special): New function.
8867 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8868 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8869 (coff_sym_is_thumb): Delete declaration.
8870 (arm_elf_make_msymbol_special): Declare.
8871 (arm_coff_make_msymbol_special): Declare.
8872 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8873 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8875 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8877 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8879 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8881 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8882 * gdbarch.c gdbarch.h: Regenerate.
8883 * arch-utils.c (default_print_float_info): New function.
8884 * arch-utils.h (default_print_float_info): Prototype it.
8885 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8886 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8887 (PRINT_FLOAT_INFO): Document it.
8889 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8890 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8891 (PRINT_FLOAT_INFO): Define.
8893 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8895 * win32-nat.c (_initialize_check_for_gdb_ini):
8896 Add typecast to sprintf argument to suppress a warning.
8898 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8900 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8901 to allow easier handling of pass state.
8902 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8903 that gives exception name and address.
8904 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8905 and set last_sig value to ourstatus->value.sig. Some missing
8907 (child_continue): Correctly report continue_status.
8908 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8909 TARGET_SIGNAL_0 (new default value).
8910 (child_resume): consider sig argument passed to decide if
8911 the exception should be passed to debuggee or not.
8913 2002-02-05 Michael Snyder <msnyder@redhat.com>
8915 * regcache.c (fetch_register): Call target_fetch_register
8916 only if we don't call FETCH_PSEUDO_REGISTER.
8917 (store_register): Call target_store_register only if we
8918 don't call STORE_PSEUDO_REGISTER.
8920 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8922 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8923 ELF_MAKE_MSYMBOL_SPECIAL.
8924 * gdbarch.c, gdbarch.h: Regenerate.
8925 * arch-utils.c (default_make_msymbol_special): New function.
8926 * arch-utils.h (default_make_msymbol_special): Export.
8927 * elfread.c (elf_symtab_read): Compile use of
8928 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8930 * coffread.c (coff_symtab_read): Ditto, for
8931 COFF_MAKE_MSYMBOL_SPECIAL.
8933 2002-02-05 Jim Blandy <jimb@redhat.com>
8935 * solib-svr4.c (svr4_truncate_ptr): New function.
8936 (svr4_relocate_section_addresses): Do the address arithmetic with
8937 the appropriate truncation for target addresses, even when
8938 CORE_ADDR is larger than a target address.
8940 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8942 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8945 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8947 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8950 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8952 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8954 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8956 * gdbserver/linux-low.c: Remove unused include files.
8958 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8960 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8961 (read_inferior_memory): Use it.
8962 (write_inferior_memory): Likewise.
8964 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8966 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8967 grubbing through sys_errlist.
8969 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8971 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8973 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8974 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8976 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8978 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8979 (do_sfunc, set_cmd_sfunc): New functions.
8981 * command.h (struct cmd_list_element): Add field func.
8982 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8983 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8984 * cli/cli-decode.h: Ditto.
8986 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8987 (help_all, help_cmd_list): Ditto.
8988 (find_cmd, complete_on_cmdlist): Ditto.
8989 * top.c (execute_command): Ditto.
8991 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8994 * infcmd.c (notice_args_read): Fix function signature.
8996 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8997 * cli/cli-decode.c (add_set_cmd): Ditto.
8998 * utils.c (initialize_utils): Ditto.
8999 * maint.c (_initialize_maint_cmds): Ditto.
9000 * infrun.c (_initialize_infrun): Ditto.
9001 * demangle.c (_initialize_demangler): Ditto.
9002 * remote.c (add_packet_config_cmd): Ditto.
9003 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9004 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9005 * proc-api.c (_initialize_proc_api): Ditto.
9006 * kod.c (_initialize_kod): Ditto.
9007 * valprint.c (_initialize_valprint): Ditto.
9008 * top.c (init_main): Ditto.
9009 * infcmd.c (_initialize_infcmd): Ditto.
9010 * corefile.c (_initialize_core): Ditto.
9011 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9012 * arch-utils.c (initialize_current_architecture): Ditto.
9013 (_initialize_gdbarch_utils): Ditto.
9014 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9016 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9017 * wince.c (_initialize_inftarg): Ditto.
9018 * symfile.c (_initialize_symfile): Ditto.
9019 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9020 * language.c (_initialize_language): Ditto.
9021 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9023 2002-02-04 Michael Snyder <msnyder@redhat.com>
9025 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9027 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9029 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9030 Add rules for building the register data files.
9032 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9034 * regformats/regdat.sh: Add braces to the definition of
9035 expedite_regs_${arch}.
9037 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9039 * regformats/regdef.h (struct reg): Add comment describing the
9040 requirements for offset and size fields.
9042 2002-02-04 Andreas Schwab <schwab@suse.de>
9044 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9045 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9047 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9049 * gdbarch.sh (copyright): Update years in generated header.
9050 (SMASH_TEXT_ADDRESS): Add rule.
9051 * gdbarch.h, gdbarch.c: Re-generate.
9052 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9053 * dbxread.c: Likewise.
9054 * dwarfread.c: Likewise.
9055 * elfread.c: Likewise.
9056 * somread.c: Likewise.
9058 * arm-tdep.c (arm_smash_text_address): New function.
9059 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9061 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9063 Add support for hardware watchpoints on win32 native.
9064 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9065 CONTEXT_DEBUG_REGISTERS.
9066 (dr variable): New variable. Static array containing a local copy
9068 (debug_registers_changed): New variable. Reflects when debug registers
9069 are changed and need to be written to inferior.
9070 (debug_registers_used): New variable. Reflects when any debug register
9071 was set, used when new threads are created.
9072 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9074 (thread_rec): Set dr array if id is the thread of current_event .
9075 (child_continue, child_resume): Change the debug registers for all
9076 threads if debug_registers_changed.
9077 (child_add_thread): Change the debug registers if debug_registers_used.
9078 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9079 Link nm.h to new nm-cygwin.h file.
9080 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9081 of hardware registers.
9083 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9085 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9086 Restore behavour broken by 2002-01-20 Andrew Cagney
9087 <ac131313@redhat.com> IEEE_FLOAT removal.
9089 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9091 * c-valprint.c (c_val_print): Pass a proper valaddr to
9092 cp_print_class_method.
9093 * valops.c (search_struct_method): If there is only one method
9094 and args is NULL, return that method.
9096 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9098 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9099 accessing tag_name directly.
9101 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9103 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9104 of accessing tag_name directly.
9106 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9109 * gdbtypes.c (replace_type): New function.
9110 * gdbtypes.h (replace_type): Add prototype.
9111 * stabsread.c (read_type): Use replace_type.
9113 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9115 * Makefile.in (memattr.o): Add missing dependencies rule.
9117 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9119 * breakpoint.c (break_at_finish_command): Really export.
9120 (break_at_finish_at_depth_command): Ditto.
9121 (tbreak_at_finish_command): Ditto.
9122 * hppa-tdep.c: Include completer.h.
9123 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9124 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9126 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9128 * utils.c (do_write): New function.
9129 (error_stream): Rewrite combining the code from error_begin and
9131 (verror): Rewrite using error_stream.
9132 (error_begin): Delete function.
9134 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9136 * utils.c (error_begin): Make static.
9137 * defs.h (error_begin): Delete declaration.
9139 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9140 (decode_line_1): Use cplusplus_error instead of error_begin,
9141 cplusplus_hint and return_to_top_level.
9142 * coffread.c (coff_symfile_read): Use error instead of error_begin
9143 and return_to_top_level.
9144 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9146 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9148 * language.h (type_error, range_error): Make string parameter
9150 * language.c (warning_pre_print): Delete extern declaration.
9151 * dwarfread.c (warning_pre_print): Ditto.
9152 * language.c (type_error, range_error): Rewrite to use verror and
9153 vwarning instead of warning_begin.
9155 2002-02-01 Michael Snyder <msnyder@redhat.com>
9157 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9158 (set_ignore_count): Move misplaced comment back where it belongs.
9160 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9162 * command.h (NO_FUNCTION): Delete macro.
9163 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9164 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9165 * tracepoint.c (_initialize_tracepoint): Ditto.
9166 * cli/cli-decode.c (add_set_cmd): Ditto.
9167 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9169 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9171 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9172 Update ``this'' pointer when calling virtual functions.
9174 2002-02-01 Michael Snyder <msnyder@redhat.com>
9176 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9177 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9179 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9181 * regformats/reg-arm.dat: New file.
9182 * regformats/reg-i386.dat: New file.
9183 * regformats/reg-ia64.dat: New file.
9184 * regformats/reg-m68k.dat: New file.
9185 * regformats/reg-mips.dat: New file.
9186 * regformats/reg-ppc.dat: New file.
9187 * regformats/reg-sh.dat: New file.
9188 * regformats/regdef.h: New file.
9189 * regformats/regdat.sh: New file.
9191 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9193 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9194 (arm_frame_args_address, arm_frame_locals_address): New functions.
9195 (arm_frame_num_args): New function.
9196 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9197 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9198 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9200 2002-01-31 Michael Snyder <msnyder@redhat.com>
9202 * breakpoint.c (break_at_finish_command): Export.
9203 (break_at_finish_at_depth_command): Export.
9204 (tbreak_at_finish_command): Export.
9205 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9206 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9207 "tbreak" commands, which are HPPA specific.
9209 * printcmd.c (disassemble_command): Remove an ancient
9210 artifact of an old merge.
9212 * symfile.h (enum overlay_debugging_state):
9213 Define enum constant values for overlay mode.
9214 * symfile.c (overlay_debugging): Use enums instead of literals.
9215 (overlay_is_mapped, overlay_auto_command,
9216 overlay_manual_command): Ditto.
9218 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9219 breakpoint_here_p, breakpoint_inserted_here_p,
9220 breakpoint_thread_match, bpstat_stop_status,
9221 describe_other_breakpoints, check_duplicates, clear_command):
9222 Coding standard fixes.
9224 * target.c (target_xfer_memory): Add spaces, coding standard.
9225 (do_xfer_memory): Add missing line to trust-readonly
9226 code: check bfd SEC_READONLY flag for section.
9228 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9230 * PROBLEMS: Fix typo, 5.1->5.1.1.
9232 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9234 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9235 data symbols, since we search based on textlow and texthigh.
9236 (find_pc_sect_symtab): Likewise.
9238 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9240 * defs.h (vwarning): Declare.
9241 * utils.c (vwarning): New function.
9242 (warning): Call vwarning.
9243 (warning_begin): Delete function.
9245 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9246 the warning message.
9247 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9250 2002-01-30 Michael Snyder <msnyder@redhat.com>
9252 * NEWS: Mention "set trust-readonly-sections" command.
9253 Mention generate-core-file command.
9255 2002-01-15 Michael Snyder <msnyder@redhat.com>
9257 * target.c: New command, "set trust-readonly-sections on".
9258 (do_xfer_memory): Honor the suggestion to trust readonly sections
9259 by reading them from the object file instead of from the target.
9260 (initialize_targets): Register command "set trust-readonly-sections".
9262 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9264 * parse.c (target_map_name_to_register): Simplify, search regs and
9265 pseudo-regs using a single loop.
9267 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9269 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9271 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9273 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9274 * config/i386/i386v42mp.mh: Add i387-nat.o .
9275 * i386v4-nat.c: Include i387-nat.h.
9276 (supply_fpregset): Use i387_supply_fsave.
9277 (fill_fpregset): Use i387_fill_fsave.
9279 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9281 * arm-tdep.c (arm_call_dummy_words): Define.
9282 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9283 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9284 (CALL_DUMMY_WORDS): Define.
9285 (arm_call_dummy_words): Declare.
9286 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9287 (arm_linux_call_dummy_words): Declare.
9289 2002-01-30 Andreas Schwab <schwab@suse.de>
9291 * m68klinux-nat.c: Fix last change to use regcache_collect
9292 instead of referencing registers[] directly.
9294 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9296 * parse.c (target_map_name_to_register): Delete code wrapped in
9297 #ifdef REGISTER_NAME_ALIAS_HOOK.
9299 2002-01-28 Michael Snyder <msnyder@redhat.com>
9301 * regcache.c (legacy_read_register_gen): Need to be able to
9302 read pseudo-register as well as real register.
9303 (legacy_write_register_gen): Ditto.
9305 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9307 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9308 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9309 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9310 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9311 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9312 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9313 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9314 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9315 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9316 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9317 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9318 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9319 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9320 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9321 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9322 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9323 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9324 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9325 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9326 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9328 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9330 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9331 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9332 (initialize_current_architecture): Update target_byte_order using
9333 information from BFD.
9334 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9335 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9337 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9339 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9340 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9342 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9343 #ifdef INVALID_FLOAT.
9344 * infcmd.c (do_registers_info): Ditto.
9345 * values.c (unpack_double): Ditto. Add comment.
9347 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9348 already commented out.
9350 2002-01-26 Andreas Schwab <schwab@suse.de>
9352 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9353 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9354 registers and add support for PTRACE_GETREGS.
9356 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9358 GDB 5.1.1 released from 5.1 branch.
9359 * NEWS: Add 5.1.1 news.
9360 * README: Sync with 5.1 branch.
9362 2002-01-23 Fred Fish <fnf@redhat.com>
9364 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9365 stabstring on initial malloc. Reallocing will copy it for us,
9368 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9370 * Makefile.in (hpread_h): Delete.
9371 (HFILES_NO_SRCDIR): Remove hpread.h.
9372 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9373 (hpread.o): Update dependencies.
9374 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9376 * hp-psymtab-read.c: Remove file.
9377 * hp-symtab-read.c: Remove file.
9378 * hpread.h: Remove file.
9380 * hpread.c: Merge all contents of hp-psymtab-read.c,
9381 hp-symtab-read.c and hpread.h into this file, as it was prior to
9384 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9385 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9386 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9387 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9389 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9391 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9392 fill_gregset): Call gdbarch_tdep() just once, assign result to
9393 variable and use that, instead of calling the function several
9396 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9398 * configure.host: Accept sparcv9 as alias for sparc64.
9399 * configure.tgt: Likewise.
9401 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9403 * solib-aix5.c (build_so_list_from_mapfile)
9404 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9405 arguments is not reversed.
9406 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9407 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9409 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9411 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9412 modified version of obsolete sh_fetch_pseudo_register.
9413 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9414 (sh4_register_read): New function.
9415 (sh_pseudo_register_write): New function. Renamed and modified
9416 version of obsolete sh_store_pseudo_register.
9417 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9418 (sh4_register_write): New function.
9419 (sh_gdbarch_init): Remove setting of gdbarch function
9420 fetch_pseudo_register and store_pseudo_register. Remove setting of
9421 register_convert_to_raw, register_convert_to_virtual,
9422 register_convertible.
9423 (sh_sh4_register_convertible): Delete. No longer needed. All is
9424 taken care by architecture specific functions
9425 register_read/register_write.
9426 (sh_sh4_register_convert_to_virtual): Make static.
9427 (sh_sh4_register_convert_to_raw): Ditto.
9429 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9431 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9432 (floatformat_is_nan, floatformat_mantissa): Ditto.
9434 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9435 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9436 builtin_type_ieee_double_little,
9437 builtin_type_ieee_double_littlebyte_bigword,
9438 builtin_type_m68881_ext, builtin_type_i960_ext,
9439 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9440 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9441 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9442 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9444 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9446 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9447 parameter. Set frameless flag if it exists and depended of
9448 whether the scanned function is frameless or not.
9449 (xstormy16_skip_prologue): If function is frameless, return
9450 result of xstormy16_scan_prologue().
9451 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9454 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9456 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9457 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9458 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9459 sh_sh4_register_byte, sh_sh4_register_raw_size,
9460 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9461 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9462 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9463 sh_store_pseudo_register, sh_do_pseudo_register): Call
9464 gdbarch_tdep() just once, assign result to variable and use that,
9465 instead of calling the function several times.
9467 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9469 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9470 macros instead of LAST_FPU_CTRL_REGNUM.
9471 (store_register): Likewise.
9473 2002-01-21 Jim Blandy <jimb@redhat.com>
9475 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9476 is up-to-date before running the program, not just when a program
9479 2002-01-21 Fred Fish <fnf@redhat.com>
9481 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9482 when we have found all instructions we are looking for.
9484 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9486 * arm-tdep.c (arm_register_name): New function.
9487 (arm_registers_names): Make static.
9488 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9489 (arm_register_name): Declare.
9490 (REGISTER_NAME): Use it.
9492 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9493 Kevin Buettner <kevinb@redhat.com>
9495 Convert arm targets to new FRAME interface.
9496 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9497 (arm_frame_find_save_regs): Delete.
9498 (arm_frame_init_saved_regs): New.
9499 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9500 Allocate extra_info as required. Convert all uses of fsr.regs
9501 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9503 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9504 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9505 (check_prologue_cache, save_prologue_cache): Likewise.
9506 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9507 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9508 (FRAME_FIND_SAVED_REGS): Delete.
9509 (arm_frame_find_saved_regs): Delete prototype.
9510 (arm_frame_init_saved_regs): New prototype.
9511 (FRAME_INIT_SAVED_REGS): Define.
9513 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9515 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9517 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9519 From Jeff Law <law@redhat.com>:
9520 * infttrace.c: Include <sys/pstat.h>.
9521 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9522 exec file if the ttrace equivalent fails.
9524 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9526 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9527 (closeLogFile): Ditto.
9529 2002-01-20 Michael Chastain <mec@shout.net>
9531 * top.c (print_gdb_version): Bump copyright year to 2002.
9533 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9535 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9536 Zannoni and Eli Zaretskii.
9538 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9540 * buildsym.c: Update copyright years.
9541 * c-typeprint.c: Likewise.
9542 * dwarf2read.c: Likewise.
9543 * f-typeprint.c: Likewise.
9544 * gdbtypes.c: Likewise.
9545 * gdbtypes.h: Likewise.
9546 * hp-symtab-read.c: Likewise.
9547 * hpread.c: Likewise.
9548 * mdebugread.c: Likewise.
9549 * p-typeprint.c: Likewise.
9551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9553 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9554 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9555 byte-order selectable.
9556 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9557 * arch-utils.c: Ditto.
9558 (set_endian): Ditto.
9559 (set_endian_from_file): Ditto.
9560 * gdbserver/low-sim.c (create_inferior): Ditto.
9561 * gdbarch.sh: Ditto.
9562 * gdbarch.h: Re-generate.
9563 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9564 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9565 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9566 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9567 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9568 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9569 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9570 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9572 * config/mips/tm-wince.h: Remove #undef of macro
9573 TARGET_BYTE_ORDER_SELECTABLE.
9574 * config/sh/tm-wince.h: Ditto.
9576 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9578 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9579 member function fields. Add accessor macro
9580 TYPE_FN_FIELD_ARTIFICIAL.
9581 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9582 * c-typeprint.c (c_type_print_base): Skip artificial member
9585 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9587 * f-typeprint.c: Delete unused function f_type_print_args.
9588 * p-typeprint.c: Delete unused function pascal_type_print_args.
9590 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9592 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9593 comment. Add ``artificial'' to ``union field_location''.
9595 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9597 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9598 * mdebugread.c (parse_symbol): Likewise.
9599 * stabsread.c (define_symbol): Likewise.
9600 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9601 initializing TYPE_FIELD_BITPOS to n (obsolete).
9602 (hpread_doc_function_type): Likewise.
9603 * hpread.c (hpread_function_type): Likewise.
9605 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9607 * configure.in (host_makefile_frag): Only require a host makefile
9608 fragment when a native build.
9609 * configure: Re-generate.
9611 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9613 * doublest.h (floatformat_from_type): Declare.
9614 * doublest.c (floatformat_from_type): New function.
9615 (convert_typed_floating): Use.
9617 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9618 call to function floatformat_from_type.
9620 * gdbarch.sh (IEEE_FLOAT): Delete.
9621 * gdbarch.h, gdbarch.c: Re-generate.
9622 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9623 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9624 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9625 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9626 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9627 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9628 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9629 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9630 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9631 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9632 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9633 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9635 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9636 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9637 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9638 * sh-tdep.c (sh_gdbarch_init): Ditto.
9639 * mips-tdep.c (mips_gdbarch_init): Ditto.
9640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9641 * cris-tdep.c (cris_gdbarch_init): Ditto.
9643 2002-01-20 Jiri Smid <smid@suse.cz>
9645 * configure.host, configure.tgt: Support x86-64.
9646 * NEWS: Note new target x86-64.
9648 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9649 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9650 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9651 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9652 x86-64-linux-nat.o): Fix dependencies.
9654 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9656 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9657 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9658 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9659 * config/sparc/xm-sun4os4.h: Delete file.
9660 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9662 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9664 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9665 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9666 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9667 * config/i386/i386lynx.mh (XM_FILE): Delete.
9668 * config/rs6000/xm-rs6000ly.h: Delete file.
9669 * config/sparc/xm-sparclynx.h: Delete file.
9670 * config/m68k/xm-m68klynx.h: Delete file.
9671 * config/i386/xm-i386lynx.h: Delete file.
9672 * config/xm-lynx.h: Delete file.
9673 * config/djgpp/fnchange.lst: Update.
9675 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9677 * alpha-tdep.c (alpha_register_byte): New function.
9678 (alpha_register_raw_size): Ditto.
9679 (alpha_register_virtual_size): Ditto.
9680 (alpha_skip_prologue_internal): Renamed from
9681 alpha_skip_prologue.
9682 (alpha_skip_prologue): New version that calls
9683 alpha_skip_prologue_internal.
9684 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9685 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9686 second argument from alpha_skip_prologue.
9687 (REGISTER_BYTE): Use alpha_register_byte.
9688 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9689 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9690 (FRAMELESS_FUNCTION_INVOCATION): Use
9691 generic_frameless_function_invocation_not.
9692 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9693 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9695 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9697 * config/mips/xm-news-mips.h: Delete file.
9698 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9700 * config/m88k/xm-m88k.h: Delete file.
9701 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9702 * config/m88k/xm-delta88v4.h: Ditto.
9703 * config/m88k/xm-delta88.h: Ditto.
9705 * config/alpha/xm-fbsd.h: Delete file.
9706 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9708 * config/sparc/xm-sparc.h: Delete file.
9709 * Makefile.in (xm-sun4os4.h): Delete dependency.
9710 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9711 * config/sparc/xm-sun4os4.h: Ditto.
9712 * config/sparc/xm-linux.h: Ditto.
9714 * config/i386/xm-windows.h: Delete file.
9716 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9718 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9719 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9721 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9723 * alpha-tdep.c (alpha_call_dummy_words): New.
9724 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9725 (CALL_DUMMY_P): Define.
9726 (CALL_DUMMY_WORDS): Define.
9727 (SIZEOF_CALL_DUMMY_WORDS): Define.
9729 2002-01-19 Per Bothner <per@bothner.com>
9731 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9732 isn't NULL, which can happen with some gcj-3.x-produced code.
9734 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9736 * alpha-tdep.c (alpha_register_virtual_type): New function.
9737 (alpha_init_frame_pc_first): Ditto.
9738 (alpha_fix_call_dummy): Ditto.
9739 (alpha_store_struct_return): Ditto.
9740 (alpha_extract_struct_value_address): Ditto.
9741 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9742 alpha_register_virtual_type.
9743 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9744 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9745 alpha_extract_struct_value_address.
9746 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9747 (INIT_FRAME_PC): Use init_frame_pc_noop.
9748 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9750 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9752 * i386gnu-nat.c: Include "i386-tdep.h".
9753 (fetch_fpregs): Simplify code dealing with uninitialized floating
9754 point states such that it doesn't require FP7_REGNUM.
9756 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9758 * alpha-tdep.c (frame_extra_info): New.
9759 (alpha_find_saved_regs): Make static. Use
9761 (alpha_frame_init_saved_regs): New function.
9762 (alpha_frame_saved_pc): Use frame->extra_info.
9763 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9764 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9765 (init_extra_frame_info): Rename to...
9766 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9767 (alpha_print_extra_frame_info): New function.
9768 (alpha_frame_locals_address): Ditto.
9769 (alpha_frame_args_address): Ditto.
9770 (alpha_pop_frame): Use frame->extra_info.
9771 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9772 alpha_frame_args_address.
9773 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9774 (alpha_find_saved_regs): Remove prototype.
9775 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9776 (EXTRA_FRAME_INFO): Remove.
9777 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9778 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9780 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9782 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9783 (alpha_cannot_fetch_register): Ditto.
9784 (alpha_cannot_store_register): Ditto.
9785 (alpha_register_convertible): Ditto.
9786 (alpha_use_struct_convention): Ditto.
9787 * config/alpha/tm-alpha.h: Update copyright years.
9788 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9789 (INNER_THAN): Use core_addr_lessthan.
9790 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9791 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9792 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9793 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9794 (FRAME_CHAIN): Remove unnecessary cast.
9796 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9798 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9801 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9803 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9804 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9805 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9806 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9807 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9808 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9809 * x86-64-linux-nat.c: Ditto.
9811 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9813 * alpha-tdep.c (alpha_register_name): New function.
9814 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9815 (REGISTER_NAME): Define.
9817 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9819 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9821 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9823 * alpha-tdep.c: Update copyright years.
9824 (alpha_next_pc): New function.
9825 (alpha_software_single_step): Ditto.
9826 * config/alpha/tm-alpha.h: Add prototype for
9827 alpha_software_single_step.
9829 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9831 * alphabsd-nat.c: Update copyright years.
9832 (fill_gregset): Use regcache_collect.
9833 (fill_fpregset): Likewise.
9834 (fetch_inferior_registers): Only fetch integer registers
9835 if requested to do so.
9836 (store_inferior_registers): Only store integer registers
9837 if requested to do so.
9839 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9841 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9842 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9843 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9844 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9845 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9846 * config/arm/linux.mh (XDEPFILES): Delete.
9847 * config/arm/nbsd.mh (XDEPFILES): Delete.
9848 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9849 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9850 * config/i386/i386m3.mh (XDEPFILES): Delete.
9851 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9852 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9853 * config/i386/fbsd.mh (XDEPFILES): Delete.
9854 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9855 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9856 * config/i386/i386v4.mh (XDEPFILES): Delete.
9857 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9858 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9859 * config/i386/i386aix.mh (XDEPFILES): Delete.
9860 * config/i386/go32.mh (XDEPFILES): Delete.
9861 * config/i386/cygwin.mh (XDEPFILES): Delete.
9862 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9863 * config/i386/i386mach.mh (XDEPFILES): Delete.
9864 * config/i386/i386v32.mh (XDEPFILES): Delete.
9865 * config/i386/linux.mh (XDEPFILES): Delete.
9866 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9867 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9868 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9869 * config/i386/i386sco.mh (XDEPFILES): Delete.
9870 * config/i386/i386v.mh (XDEPFILES): Delete.
9871 * config/i386/nbsd.mh (XDEPFILES): Delete.
9872 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9873 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9874 * config/i386/symmetry.mh (XDEPFILES): Delete.
9875 * config/i386/obsd.mh (XDEPFILES): Delete.
9876 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9877 * config/ia64/linux.mh (XDEPFILES): Delete.
9878 * config/ia64/aix.mh (XDEPFILES): Delete.
9879 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9880 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9881 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9882 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9883 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9884 * config/m68k/linux.mh (XDEPFILES): Delete.
9885 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9886 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9887 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9888 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9889 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9890 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9891 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9892 * config/m88k/delta88.mh (XDEPFILES): Delete.
9893 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9894 * config/m88k/m88k.mh (XDEPFILES): Delete.
9895 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9896 * config/mips/linux.mh (XDEPFILES): Delete.
9897 * config/mips/irix6.mh (XDEPFILES): Delete.
9898 * config/mips/irix5.mh (XDEPFILES): Delete.
9899 * config/mips/irix4.mh (XDEPFILES): Delete.
9900 * config/mips/irix3.mh (XDEPFILES): Delete.
9901 * config/mips/decstation.mh (XDEPFILES): Delete.
9902 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9903 (NATDEPFILES): Move core-aout.o to here.
9904 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9905 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9906 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9907 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9908 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9909 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9910 * config/pa/hpux11.mh (XDEPFILES): Delete.
9911 * config/powerpc/aix.mh (XDEPFILES): Delete.
9912 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9913 * config/powerpc/linux.mh (XDEPFILES): Delete.
9914 * config/romp/rtbsd.mh: Rename XDEPFILES.
9915 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9916 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9917 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9918 * config/s390/s390.mh (XDEPFILES): Delete.
9919 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9920 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9921 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9922 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9923 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9924 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9925 * config/sparc/linux.mh (XDEPFILES): Delete.
9926 * config/vax/vaxult.mh (XDEPFILES): Delete.
9927 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9928 * Makefile.in (DEPFILES): Remove XDEPFILES.
9930 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9932 * utils.c (internal_verror): Fix comments, default is yes not no.
9933 Update queries to match. Default to quit and dump core.
9935 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9937 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9939 * defs.h, event-top.c, gdbcmd.h: Ditto.
9940 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9941 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9942 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9943 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9944 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9945 * mi/mi-main.c:Ditto.
9947 * stack.c, symfile.c: Update copyright.
9949 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9951 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9952 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9953 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9954 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9956 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9958 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9959 * gdbserver/low-lynx.c (myattach): Likewise.
9960 * gdbserver/low-nbsd.c (myattach): Likewise.
9961 * gdbserver/low-sim.c (myattach): Likewise.
9962 * gdbserver/low-sparc.c (myattach): Likewise.
9963 * gdbserver/low-sun3.c (myattach): Likewise.
9965 * gdbserver/low-linux.c (myattach): New function.
9967 * gdbserver/server.c (attach_inferior): New function.
9968 (main): Handle "--attach".
9970 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9972 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9975 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9977 * c-typeprint.c (is_type_conversion_operator): Add additional
9978 check for non-conversion operators.
9980 2002-01-15 Michael Snyder <msnyder@redhat.com>
9982 * linux-proc.c: Add "info proc" command, a la procfs.c.
9983 (read_mapping): New function, abstract and re-use code.
9984 (linux_find_memory_regions): Use new func read_mapping.
9985 (linux_info_proc_cmd): New function, implement "info proc".
9986 (_initialize_linux_proc): Add new command "info proc".
9988 2002-01-15 Michael Snyder <msnyder@redhat.com>
9990 * symfile.c (generic_load): Use bfd_map_over_sections method
9991 instead of manipulating bfd structure members directly.
9992 (add_section_size_callback): New function, bfd sections callback
9993 used by generic_load.
9994 (load_sections_callback): New function, bfd sections callback
9995 used by generic_load.
9997 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9999 [Based on work by Jim Blandy]
10000 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10001 (builtin_type_vec128): Export.
10002 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10004 (builtin_type_vec128): New builtin type for 128 bit vector
10006 (build_gdbtypes): Initialize builtin_type_v16qi and
10007 builtin_type_v8hi. Create the vec128 register builtin type
10009 (build_builtin_type_vec128): New function.
10010 (_initialize_gdbtypes): Register builtin_type_v16qi and
10011 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10012 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10013 AltiVec register to new builtin type.
10015 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10017 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10020 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10022 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10023 CLEAN_UP_REGISTER_VALUE.
10024 * regcache.c (supply_register): Update only call.
10026 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10028 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10029 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10030 a29k-*-vxworks* targets as obsolete.
10032 2002-01-14 Michael Snyder <msnyder@redhat.com>
10034 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10035 until we can resolve portability issues.
10036 * gregset.h: Remove references to fpxregs.
10037 * gcore.c (gcore_command): Initialize note_sec to NULL.
10039 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10041 * signals.c (target_signal_to_name): Rewrite. Only use
10042 signals[].name when in bounds and non-NULL.
10044 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10046 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10047 * signals.c (target_signal_to_name): Verify that SIG is within the
10048 bounds of the signals array.
10050 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10052 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10054 2002-01-13 Keith Seitz <keiths@redhat.com>
10056 * stack.c (print_frame_info_base): Print the frame's pc
10057 only if when print_frame_info_listing_hook is not defined.
10059 2002-01-13 Keith Seitz <keiths@redhat.com>
10061 * varobj.c (varobj_set_value): Make sure that there were no
10062 errors evaluating the object before attempting to set its
10064 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10065 so this offset adjustment is no longer necessary.
10066 (create_child): Don't set the error flag if the child is
10067 a CPLUS_FAKE_CHILD.
10068 (value_of_child): If value_fetch_lazy fails, return NULL
10069 so that callers will be notified that an error occurred.
10070 (c_value_of_variable): Delay check of variable's validity
10071 until later. We actually want all structs and unions to have
10073 Do not return "???" for variables which could not be evaluated.
10074 This error condition must be returned to the caller so that it
10075 can get the error condition from gdb.
10076 (cplus_name_of_child): Adjust index for vptr before figuring
10077 out the name of the child.
10078 (cplus_value_of_child): If a child's (real) parent is not valid,
10079 don't even bother trying to give a value for it. Just return
10080 an error. Change all instances in this function.
10081 (cplus_type_of_child): If our parent is one of the "fake"
10082 parents, we need to get at the type of the real parent, and
10083 derive the child's true type using this information.
10085 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10087 From 2002-01-09 John Marshall <johnm@falch.net>:
10088 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10089 sources.redhat.com, and tweak some related URLs which had
10090 suffered from linkrot.
10092 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10095 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10096 structures passed in registers.
10098 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10100 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10101 white space which prevented compilation. Reported by DSK
10102 <dsk@student.unsw.edu.au>.
10104 2002-01-11 Michael Snyder <msnyder@redhat.com>
10106 * symfile.c (build_section_addr_info_from_section_tab):
10107 Use bfd access method instead of manipulating bfd directly.
10108 (syms_from_objfile): Ditto.
10109 (simple_overlay_update_1): Ditto.
10110 (simple_overlay_update): Ditto.
10111 (generic_load): Ditto.
10112 (overlay_unmapped_address): FIXME comment, bfd access methods.
10113 (sections_overlap): FIXME comment, bfd access methods.
10114 (pc_in_mapped_range): FIXME comment, bfd access methods.
10115 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10116 (section_is_mapped): FIXME comment, bfd access methods.
10117 (section_is_overlay): FIXME comment, bfd access methods.
10119 * symfile.c (generic_load): Whitespace and long line cleanups.
10120 Remove duplicate variable, change several local variables to
10121 more appropriate data types.
10122 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10124 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10126 From Peter Schauer:
10127 * language.c (longest_local_hex_string_custom): Use phex_nz to
10128 convert NUM to a hex string.
10130 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10132 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10134 Update Copyright year.
10136 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10138 * language.c (longest_raw_hex_string): Delete unused function.
10140 2002-01-11 Petr Sorfa <petrs@caldera.com>
10142 * MAINTAINERS (write-after-approval): Add myself.
10143 * dwarf2read.c (read_tag_string_type): Handling of
10145 (read_tag_string_type): FORTRAN fix to prevent propagation of
10147 (set_cu_language): Handling of DW_LANG_Fortran95
10149 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10151 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10152 GETPID(inferior_ptid).
10153 (store_inferior_registers): Likewise.
10155 2002-01-10 Jason Merrill <jason@redhat.com>
10157 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10160 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10162 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10163 and bfd/elf32-sh-nbsd.c.
10165 2002-01-10 Michael Snyder <msnyder@redhat.com>
10167 * NEWS: Mention --pid and corefile/proc-id behavior change.
10169 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10170 * gcore.c: Include cli/cli-decode.h instead of command.h.
10172 * main.c (captured_main): Add new command line option "--pid".
10173 If the second command line argument (following the symbol-file)
10174 begins with a digit, try to attach to it before trying to open
10176 (print_gdb_help): Document the "--pid" argument.
10178 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10180 * completer.c (command_completer): New function.
10182 * completer.h <command_completer>: Add prototype.
10184 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10185 completer for the "help" command.
10187 2002-01-09 Jason Merrill <jason@redhat.com>
10189 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10191 2002-01-09 Michael Snyder <msnyder@redhat.com>
10193 * i386-linux-nat.c (fill_fpxregset): Make global.
10194 (store_fpxregset): Ditto.
10196 * gregset.h (gdb_fpxregset_t): Define.
10197 (supply_fpxregset): Prototype.
10198 (fill_fpxregset): Prototype.
10200 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10202 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10204 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10205 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10206 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10208 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10210 * MAINTAINERS: Update target maintainer rules so that any
10211 Maintainer can approve a tested patch for a maintenance-only
10214 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10216 * MAINTAINERS (write-after-approval): Add myself.
10218 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10221 2002-01-08 Michael Snyder <msnyder@redhat.com>
10223 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10224 real name of the executable, rather than the /proc name.
10226 2002-01-03 Michael Snyder <msnyder@redhat.com>
10228 Implement a "generate-core-file" command in gdb, save target state.
10229 * gcore.c: New file. Implement new command 'generate-core-file'.
10230 Save a corefile image of the current state of the inferior.
10231 * linux-proc.c: Add linux-specific code for saving corefiles.
10232 * target.h (struct target_ops): Add new target vectors for saving
10233 corefiles; to_find_memory_regions and to_make_corefile_notes.
10234 (target_find_memory_regions): New macro.
10235 (target_make_corefile_notes): New macro.
10236 * target.c (update_current_target): Inherit new target methods.
10237 (dummy_find_memory_regions): New place-holder method.
10238 (dummy_make_corefile_notes): New place-holder method.
10239 (init_dummy_target): Initialize new dummy target vectors.
10240 * exec.c (exec_set_find_memory_regions): New function.
10241 Allow the exec_ops vector for memory regions to be taken over.
10242 (exec_make_note_section): New function, target vector method.
10243 * defs.h (exec_set_find_memory_regions): Export prototype.
10244 * procfs.c (proc_find_memory_regions): New function, corefile method.
10245 (procfs_make_note_section): New function, corefile method.
10246 (init_procfs_ops): Set new target vector pointers.
10247 (find_memory_regions_callback): New function.
10248 (procfs_do_thread_registers): New function.
10249 (procfs_corefile_thread_callback): New function.
10250 * sol-thread.c (sol_find_memory_regions): New function.
10251 (sol_make_note_section): New function.
10252 (init_sol_thread_ops): Initialize new target vectors.
10253 * inftarg.c (inftarg_set_find_memory_regions): New function.
10254 Allow to_find_memory_regions vector to be taken over.
10255 (inftarg_set_make_corefile_notes): New function.
10256 Allow to_make_corefile_notes vector to be taken over.
10257 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10258 interface layer if not target_has_execution (may be a corefile).
10259 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10260 * config/sparc/sun4sol2.mh: Ditto.
10261 * config/alpha/alpha-linux.mh: Ditto.
10262 * config/arm/linux.mh: Ditto.
10263 * config/i386/x86-64linux.mh: Ditto.
10264 * config/ia64/linux.mh: Ditto.
10265 * config/m68k/linux.mh: Ditto.
10266 * config/mips/linux.mh: Ditto.
10267 * config/powerpc/linux.mh: Ditto.
10268 * config/sparc/linux.mh: Ditto.
10270 2002-01-07 Michael Snyder <msnyder@redhat.com>
10272 * arm-linux-nat.c: Remove references to regcache.c internal data
10273 (registers[] and register_valid[]).
10275 2002-01-07 Michael Snyder <msnyder@redhat.com>
10277 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10278 so that attaching to a pid will automatically read the process's
10279 symbol file and shlibs.
10280 * Makefile.in: Add rule for linux-proc.o.
10281 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10282 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10283 * config/arm/linux.mh: Ditto.
10284 * config/i386/linux.mh: Ditto.
10285 * config/i386/x86-64linux.mh: Ditto.
10286 * config/ia64/linux.mh: Ditto.
10287 * config/m68k/linux.mh: Ditto.
10288 * config/mips/linux.mh: Ditto.
10289 * config/powerpc/linux.mh: Ditto.
10290 * config/sparc/linux.mh: Ditto.
10292 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10294 * win32-nat.c: Add i386-tdep.h dependency.
10296 2002-01-07 Michael Snyder <msnyder@redhat.com>
10298 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10299 instead of bfd_get_arch_size. Don't bail out just because
10300 there's no exec_bfd.
10302 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10303 * p-valprint.c (pascal_object_print_value): Ditto.
10304 * somread.c (som_symtab_read): Ditto.
10305 * symfile.c (simple_free_overlay_region_table): Ditto.
10306 * valops.c (value_assign): Ditto.
10308 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10309 use tilde_expand and strerror for opening save-tracepoints file.
10311 * thread-db.c (thread_db_new_objfile): Indendation fix.
10313 * infptrace.c (GDB_MAX_ALLOCA): New define.
10314 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10315 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10316 can be overridden with whatever value is appropriate to the host).
10317 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10318 alloca to allocate potentially large buffer.
10319 * rs6000-nat.c (child_xfer_memory): Ditto.
10320 * symm-nat.c (child_xfer_memory): Ditto.
10321 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10323 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10325 From Nick Clifton <nickc@redhat.com>
10326 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10328 2002-01-07 Michael Snyder <msnyder@redhat.com>
10330 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10331 Don't use exec_bfd if it's NULL.
10333 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10335 * valops.c (value_arg_coerce): Fix formatting.
10337 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10339 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10340 * gnu-nat.c: Ditto.
10342 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10344 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10345 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10346 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10347 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10348 z8k-coff have not been multi-arched. Update z8k-coff build
10351 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10353 * MAINTAINERS: Mark a29k target as obsolete.
10354 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10355 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10357 * NEWS: Note that a29k targets are obsolete.
10358 * a29k-tdep.c: Mark as obsolete.
10359 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10360 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10361 a29k-*-vxworks* targets as obsolete.
10362 * remote-adapt.c: Obsolete.
10363 * remote-eb.c: Obsolete.
10364 * remote-mm.c: Obsolete.
10365 * remote-udi.c: Obsolete.
10366 * config/a29k/a29k-udi.mt: Obsolete.
10367 * config/a29k/a29k.mt: Obsolete.
10368 * config/a29k/tm-a29k.h: Obsolete.
10369 * config/a29k/tm-vx29k.h: Obsolete.
10370 * config/a29k/vx29k.mt: Obsolete.
10372 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10374 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10375 with BFD_ENDIAN_BIG.
10377 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10379 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10380 * configure, config.in: Re-generate.
10381 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10382 * defs.h: Do not include <endian.h>.
10384 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10386 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10387 * config.in: Regenerate.
10388 * configure.in: Update copyright years.
10389 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10390 * configure: Regenerate.
10391 * i386bsd-nat.c: Update copyright years.
10392 (fill_gregset): Use regcache_collect.
10393 (fetch_inferior_registers): Only fetch integer registers
10394 if requested to do so. Add support for XMM registers
10395 using PT_GETXMMREGS.
10396 (store_inferior_registers): Only store integer registers
10397 if requested to do so. Add support for XMM registers
10398 using PT_SETXMMREGS.
10399 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10400 (store_inferior_registers): Remove.
10401 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10402 (fetch_elfcore_registers): New function.
10403 (i386nbsd_elfcore_fns): New.
10404 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10405 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10407 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10408 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10409 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10410 * config/i386/tm-nbsd.h: Update copyright years.
10411 (HAVE_SSE_REGS): Define.
10412 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10413 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10414 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10415 (SIGCONTEXT_PC_OFFSET): Remove.
10416 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10418 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10420 * configure.tgt: Remove powerpc-*-macos* target.
10421 * config/m68k/xm-mpw.h: Delete file.
10422 * config/xm-mpw.h: Delete file.
10423 * ser-mac.c: Delete file.
10424 * mpw-make.sed: Delete file.
10425 * mpw-config.in: Delete file.
10426 * mac-xdep.c: Delete file.
10427 * mac-gdb.r: Delete file.
10428 * mac-defs.h: Delete file.
10429 * mac-nat.c: Delete file.
10430 * config/powerpc/macos.mh: Delete file.
10431 * config/powerpc/macos.mt: Delete file.
10432 * config/powerpc/nm-macos.h: Delete file.
10433 * config/powerpc/tm-macos.h: Delete file.
10434 * source.c (openp, open_source_file): Remove obsolete code.
10435 * top.c (gdb_readline): Ditto.
10436 * utils.c (query): Ditto.
10437 * event-top.c (display_gdb_prompt): Ditto.
10438 * Makefile.in (ser-mac.o): Delete obsolete target.
10441 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10443 * defs.h (BIG_ENDIAN): Delete macro definition.
10444 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10445 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10446 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10447 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10448 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10449 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10450 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10451 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10452 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10453 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10454 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10455 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10456 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10457 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10458 * gdbarch.c: Re-generate.
10460 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10462 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10465 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10467 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10469 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10471 * value.h (value_ptr): Delete typedef.
10473 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10475 * i386nbsd-nat.c: Update copyright years.
10476 Include i386-tdep.h.
10478 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10480 * stabsread.c: Update copyright years.
10482 From Debashis Mahata <debashis.mahata@wipro.com>:
10483 (read_struct_fields): Deal with Sun C compiler erroneous stab
10484 output for structs and unions.
10487 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10489 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10492 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10494 * cp-abi.c: Fix whitespace.
10495 (baseclass_offset): New wrapper function.
10496 * cp-abi.h (baseclass_offset): Add prototype.
10497 (struct cp_abi_ops): Add baseclass_offset pointer.
10499 * valops.c (vb_match): Move to...
10500 * gnu-v2-abi.c (vb_match): here.
10501 * valops.c (baseclass_offset): Move to...
10502 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10504 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10506 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10507 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10508 * hpacc-abi.c (init_hpacc_ops): Likewise.
10510 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10512 * valops.c (find_overload_match): Accept obj as a
10513 reference parameter. Update it before returning.
10514 * value.h (find_overload_match): Update prototype.
10515 * eval.c (evaluate_subexp_standard): Pass object to
10516 find_overload_match by reference.
10518 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10520 * valarith.c: Replace value_ptr with struct value pointer. Remove
10521 register attribute from value declarations.
10524 * scm-lang.c (scm_lookup_name): Ditto.
10526 2002-01-03 Michael Snyder <msnyder@redhat.com>
10528 Abstract the functionality of iterating over mapped memory
10529 regions into a general purpose iterator function.
10530 * procfs.c (iterate_over_mappings): New function, general purpose
10531 iterator for memory sections.
10532 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10533 (solib_mappings_callback): New function, callback for above.
10534 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10535 (info_mappings_callback): New function, callback for above.
10537 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10539 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10541 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10542 * i386-tdep.c: Include "elf-bfd.h".
10543 (process_note_abi_tag_sections): New function.
10544 (i386_gdbarch_init): Add code to recognize various OS/ABI
10547 * maint.c (_initialize_maint_cmds): Add missing \ in
10550 For older changes see ChangeLog-2001
10556 version-control: never