1 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3 * ChangeLog: Move gdbserver entries after GDB 5.2 to
6 2002-08-23 Mark Kettenis <kettenis@gnu.org>
8 * i386-tdep.c: Include "objfiles.h".
9 (i386_svr4_init_abi): Set in_solib_call_trampoline and
11 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
12 (CPLUS_MARKER): Define to '.'.
14 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
16 (linux_corefile_thread_callback): Increase args->num_notes.
17 (linux_make_note_section): Initialize thread_args.num_notes, and
18 use it to determine whether notes for any threads were created.
20 2002-08-23 Donn Terry <dterry@microsoft.com>
22 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
23 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
25 (write_with_trace): Conditionalize out the switch branch handling
26 PCSHOLD if the corresponding macro is not defined. Likewise for
28 This change will be needed by the Interix port.
30 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
32 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
34 (skip_prologue): Add support for BookE/e500 instructions.
35 (e500_extract_return_value): New function.
36 (frame_get_saved_regs): Add support for saving ev registers and
38 (e500_store_return_value): New function.
39 (rs6000_gdbarch_init): Move up default intializations of
40 deprecated_extract_return_value and store_return_value. Overwrite
41 init of store_return_value with e500 specific version.
42 Set extract_return_value for e500.
44 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
46 * blockframe.c (generic_call_dummy_register_unwind): Use
47 regcache_cooked_read to catch cases in which the variable is
48 stored in a pseudo register.
50 2002-08-22 Andrew Cagney <cagney@redhat.com>
52 * NEWS: Mention that the i960 has been made obsolete.
53 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
55 (remote-nrom.o): Obsolete target.
56 (remote-nindy.o, i960-tdep.o): Ditto.
57 * remote-nrom.c: Make file obsolete.
58 * remote-nindy.c, remote-vx960.c: Ditto.
59 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
60 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
61 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
62 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
63 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
64 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
65 i960-*-vxworks* obsolete.
66 * MAINTAINERS: Note that the i960 is obsolete.
68 2002-08-21 Corinna Vinschen <vinschen@redhat.com
70 * aix-thread.c (aix_thread_detach): Disable thread debugging on
71 detach to allow reinitialization.
73 2002-08-22 Andrew Cagney <ac131313@redhat.com>
75 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
78 2002-08-22 Jim Blandy <jimb@redhat.com>
80 * coffread.c (coff_symfile_read): Don't try to read the line
81 number table from disk if the image file doesn't have a symbol
82 table; we'll never actually look at the info anyway, and Windows
83 ships DLL's with bogus file offsets for the line number data.
85 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
87 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
90 2002-08-21 Michael Snyder <msnyder@redhat.com>
92 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
93 (MSYMBOL_SIZE): Replace macro with function.
94 (DEFAULT_MIPS_TYPE): Delete unused macro.
95 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
96 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
98 2002-08-21 Jim Blandy <jimb@redhat.com>
100 * valops.c (value_cast): Simplify and correct logic for doing a
101 static cast from a pointer to a base class to a pointer to a
104 2002-08-21 Andrew Cagney <ac131313@redhat.com>
106 * infcmd.c (default_print_registers_info): Replace
108 (registers_info): Use gdbarch_print_registers_info instead of
110 * inferior.h (default_print_registers_info): Replace
112 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
113 (DO_REGISTERS_INFO): Change to a predicate function.
114 * gdbarch.h, gdbarch.c: Regenerate.
116 2002-08-21 Keith Seitz <keiths@redhat.com>
118 * gdb-events.sh: Add target-changed event.
119 * gdb-events.c: Regenerated.
120 * gdb-events.c: Regenerated.
121 * valops.c (value_assign): Add target-changed event notification
122 to inlval_register, lval_memory, and lval_reg_frame_relative.
124 2002-08-21 Joel Brobecker <brobecker@gnat.com>
126 * NEWS: Add an entry regarding the improvement of the next/step
127 operation on Alpha Tru64 multi-processor machines.
129 2002-08-21 Andrew Cagney <ac131313@redhat.com>
131 * Makefile.in: Update dependencies for mi/ cli/ and tui/
133 * Makefile.in: Update all _h macro definitions.
134 * Makefile.in (install-gdbtk): Move to install section.
135 (rdi-share/libangsd.a): Move to end of file.
137 2002-08-19 Andrew Cagney <ac131313@redhat.com>
139 * frame.c (frame_register_unwind): When a register, set addrp to
142 2002-08-20 Michael Snyder <msnyder@redhat.com>
144 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
145 used locally, so move them from the target machine header to here.
146 (mips_set_processor_type, mips_register_name, mips32_next_pc,
147 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
149 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
151 2002-08-20 Andrew Cagney <cagney@redhat.com>
153 * NEWS: Mention that the Apollo line was made obsolete.
154 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
155 m68*-hp-hpux* obsolete.
156 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
157 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
158 * buildsym.c (make_blockvector): Make static.
159 * buildsym.h (make_blockvector): Make extern declaration obsolete.
160 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
161 (ALLDEPFILES): Remove dstread.c.
162 (dstread.o): Obsolete make rule.
163 * dstread.c: Makefile obsolete.
165 * config/m68k/hp300hpux.mt: Ditto.
166 * config/m68k/hp300hpux.mh: Ditto.
167 * config/m68k/hp300bsd.mt: Ditto.
168 * config/m68k/hp300bsd.mh: Ditto.
169 * config/m68k/apollo68b.mt: Ditto.
170 * config/m68k/apollo68v.mh: Ditto.
171 * config/m68k/apollo68b.mh: Ditto.
173 2002-08-20 Michael Snyder <msnyder@redhat.com>
175 * mips-tdep.c (mips_in_return_stub): Make static.
176 (mips_gdbarch_init): Set in_solib_return_trampoline.
177 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
179 2002-08-20 Michael Snyder <msnyder@redhat.com>
181 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
182 * gdbarch.c, gdbarch.h: Regenerate.
183 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
185 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
187 2002-08-20 Michael Snyder <msnyder@redhat.com>
189 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
190 (mips_gdbarch_init): Set skip_trampoline_code,
191 in_solib_call_trampoline.
192 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
193 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
195 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
197 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
199 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
200 vector type for ev registers.
201 (e500_pseudo_register_read): New function.
202 (e500_pseudo_register_write): New function.
203 (e500_dwarf2_reg_to_regnum): New function.
204 (PPC_UISA_NOFP_SPRS): New macro.
205 (PPC_EV_REGS): New macro.
206 (PPC_GPRS_PSEUDO_REGS): New macro.
207 (registers_e500): New register set for e500.
208 (variants): Add e500 variant.
209 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
210 before setting architectural dependent variations. Initialize ev
211 registers numbers. Add case for e500 architecture. Set the
212 number of pseudo registers.
214 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
216 * rs6000-tdep.c: Clean up comments.
218 2002-08-20 Andrew Cagney <cagney@redhat.com>
220 * h8300-tdep.c: Re-indent file.
222 2002-08-20 Jim Blandy <jimb@redhat.com>
224 * Makefile.in (LDFLAGS): Allow the configure script to establish a
227 2002-08-20 Keith Seitz <keiths@redhat.com>
229 * breakpoints.c (watch_command_1): Use internal breakpoint
230 when setting a watchpoint_scope breakpoint.
232 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
234 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
235 (build_builtin_type_vec64i): Ditto.
236 (build_builtin_type_vec128): Ditto.
237 (build_builtin_type_vec128i): Ditto.
239 2002-08-19 Michael Snyder <msnyder@redhat.com>
241 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
242 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
243 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
244 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
245 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
246 CALL_DUMMY_ADDRESS): Delete.
247 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
248 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
249 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
250 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
252 (mips_register_raw_size, mips_eabi_use_struct_convention,
253 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
254 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
255 mips_init_extra_frame_info, mips_eabi_push_arguments,
256 mips_n32n64_push_arguments, mips_push_return_address,
257 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
258 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
260 2002-08-19 Michael Snyder <msnyder@redhat.com>
262 * mips-tdep.c (mips_frame_num_args): New function.
263 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
264 frame_saved_pc, frame_args_address, frame_locals_address,
265 frame_num_args, and frame_args_skip.
266 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
267 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
268 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
269 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
271 2002-08-20 Michael Snyder <msnyder@redhat.com>
273 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
274 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
275 * mips-tdep.c (mips_store_struct_return): New function.
276 (mips_extract_struct_value_address): New function.
277 (mips_gdbarch_init): Set store_struct_return and
278 extract_struct_value_address.
280 2002-08-20 David Carlton <carlton@math.stanford.edu>
282 * dwarf2read.c (dwarf2_build_psymtabs): Check that
283 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
284 (read_file_scope): Check that line_header is nonzero before
285 decoding macro information.
287 2002-08-20 Mark Kettenis <kettenis@gnu.org>
289 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
290 flag the general-purpose registers as floating-point on targets
291 that don't support the floating-point registers.
293 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
295 * rs6000-tdep.c (altivec_register_p): Delete.
296 (rs6000_do_altivec_registers): Delete.
297 (rs6000_altivec_registers_info): Delete.
298 (rs6000_do_registers_info): Delete.
299 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
300 (rs6000_gdbarch_init): Remove setting of do_registers_info.
302 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
304 * infcmd.c (do_registers_info): Print vector registers in hex
306 (print_vector_info): Check that printing registers
308 (print_float_info): Ditto.
310 2002-08-20 Andrew Cagney <ac131313@redhat.com>
312 * mips-tdep.c (mips_gdbarch_init): Update.
313 (mips_o32_extract_return_value): Rewrite.
314 (mips_o32_store_return_value): Rewrite.
315 (mips_o32_xfer_return_value): New function.
316 (mips_xfer_register): Tweak debug print message. Allow for
317 buf_offset when dumping the value transfered.
319 2002-08-20 Andrew Cagney <ac131313@redhat.com>
321 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
322 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
323 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
324 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
325 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
327 2002-08-14 Michael Snyder <msnyder@redhat.com>
329 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
331 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
333 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
335 (P): New macro to define a register as a pseudo register.
336 (R, R4, R8, R16, FR32, R64, R0): Updated.
337 (struct variant): Add new fields for number of pseudo registers
338 and number of total registers.
339 (tot_num_registers): New macro replacing....
340 (num_registers): ...deleted macro.
341 (num_registers): New function.
342 (num_pseudo_registers): New function.
343 (variants): Update all variants to intialize new fields correctly.
344 Postpone initialization of number of pseudo regs and real regs.
345 (init_variants): New function.
346 (rs6000_gdbarch_init): Initialize variants. Update calculation of
349 2002-08-19 David Carlton <carlton@math.stanford.edu>
351 * valops.c (search_struct_field): Change error message to treat
352 return value of 0 from value_static_field as meaning that field is
354 (value_struct_elt_for_reference): Ditto.
355 * values.c (value_static_field): Treat an unresolved location the
356 same as a nonexistent symbol. Fix PR gdb/635.
357 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
358 enclosed. Fix PR gdb/574.
359 * MAINTAINERS: Add self to Write After Approval list.
361 2002-08-19 Andrew Cagney <ac131313@redhat.com>
363 * mips-tdep.c (mips_xfer_register): New function.
364 (mips_n32n64_extract_return_value): Rewrite.
365 (mips_gdbarch_init): For N32 and N64, set extract_return_value
366 instead of deprecated_extract_return_value.
368 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
370 * rs6000-tdep.c (TDEP): Delete macro.
371 (branch_dest): Replace use of TDEP macro with its body.
372 (rs6000_pop_frame): Ditto.
373 (rs6000_push_arguments): Ditto.
374 (rs6000_skip_trampoline_code): Ditto.
375 (rs6000_frame_saved_pc): Ditto.
376 (rs6000_frame_chain): Ditto.
377 (rs6000_register_name): Ditto.
378 (rs6000_register_byte): Ditto.
379 (rs6000_register_raw_size): Ditto.
380 (rs6000_register_virtual_type): Ditto.
381 (rs6000_register_convertible): Ditto.
382 (rs6000_convert_from_func_ptr_addr): Ditto.
384 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
386 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
388 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
389 MIPS_LINUX_JB_ELEMENT_SIZE.
390 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
391 for MAX_REGISTER_RAW_SIZE arrays.
392 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
393 MIPS_LINUX_JB_ELEMENT_SIZE.
395 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
397 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
399 2002-08-19 Aidan Skinner <aidan@velvet.net>
401 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
402 ada-valprint.c ada-tasks.c.
403 (YYFILES): Add ada-exp.y.
404 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
405 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
406 (ada-exp.tab.o): New target.
408 2002-08-18 Andrew Cagney <ac131313@redhat.com>
410 * regcache.c (regcache_xfer_part): New function.
411 (regcache_raw_read_part): New function.
412 (regcache_raw_write_part): New function.
413 (regcache_cooked_read_part): New function.
414 (regcache_cooked_write_part): New function.
415 * regcache.h (regcache_raw_read_part): Declare.
416 (regcache_raw_write_part): Declare.
417 (regcache_cooked_read_part): Declare.
418 (regcache_cooked_write_part): Declare.
420 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
422 * remote.c (remote_open_1): Add async_p.
423 (remote_async_open_1): Delete.
424 (open_remote_target): Delete.
425 (remote_open, extended_remote_open): Update calls to remote_open_1.
426 (remote_async_open, extended_remote_async_open): Call
427 remote_open_1 instead of remote_async_open_1.
429 2002-08-19 Mark Kettenis <kettenis@gnu.org>
431 * blockframe.c: Fix a few coding standard violations.
433 2002-08-19 Mark Kettenis <kettenis@gnu.org>
435 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
437 * config/i386/tm-i386sco5.h: ... here. File removed.
438 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
440 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
441 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
442 (TM_FILE): Set to tm-i386.h.
443 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
444 * config/i386/tm-i386v.h: Remove file.
445 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
446 instead of "i386/tm-i386v.h".
447 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
448 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
450 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
451 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
454 2002-08-18 Mark Kettenis <kettenis@gnu.org>
456 * config/i386/nm-i386v.h: Add protection against
458 (i386_register_u_addr): Remove prototype.
459 (register_u_addr): New prototype.
460 (REGISTER_U_ADDR): Redefine accordingly.
461 * i386v-nat.c: Improve several comments.
462 (i386_register_u_addr): Change signature and rename to
463 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
466 2002-08-18 Andrew Cagney <ac131313@redhat.com>
468 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
469 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
470 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
471 deprecated_extract_return_value.
472 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
473 rename mips_o32o64_push_arguments.
474 (mips_gdbarch_init): Update.
475 (mips_extract_return_value): Delete.
476 (mips_o32_extract_return_value): Clone mips_extract_return_value.
477 (mips_o64_extract_return_value): Clone mips_extract_return_value.
478 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
479 (mips_n32n64_extract_return_value): Clone
480 mips_extract_return_value.
481 (mips_store_return_value): Delete.
482 (mips_o32_store_return_value): Clone mips_store_return_value.
483 (mips_o64_store_return_value): Clone mips_store_return_value.
484 (mips_eabi_store_return_value): Clone mips_store_return_value.
485 (mips_n32n64_store_return_value): Clone mips_store_return_value.
487 2002-08-18 Aidan Skinner <aidan@velvet.net>
489 * ada-lang.c: Use gdb_string.h instead of <string.h>.
490 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
492 2002-08-18 Aidan Skinner <aidan@velvet.net>
494 * ada-lang.c: Run through gdb_indent.sh.
495 * ada-lang.h: Run through gdb_indent.sh.
496 * ada-tasks.c: Run through gdb_indent.sh.
497 * ada-typeprint.c: Run through gdb_indent.sh.
498 * ada-valprint.c: Run through gdb_indent.sh.
500 2002-08-18 Andrew Cagney <ac131313@redhat.com>
502 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
505 2002-08-18 Mark Kettenis <kettenis@gnu.org>
507 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
509 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
510 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
512 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
513 write_register_gen instead of write_register_bytes.
515 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
516 i[3456]-*-osf1mk* configurations have been made obsolete.
517 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
518 i[3456]86-*-osf1mk* hosts obsolete.
519 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
521 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
522 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
523 config/i386/i386m3.mt, config/i386/nm-m3.h,
524 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
525 config/i386/i386mk.mh, config/i386/i386mk.mt,
526 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
528 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
529 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
530 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
532 2002-08-18 Andrew Cagney <ac131313@redhat.com>
534 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
535 (hppa_value_returned_from_stack): Declare.
536 (hppa_extract_return_value): Declare.
537 * config/pa/hppa.mt: New file.
538 * configure.tgt: Recognize hppa*-*-*.
539 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
541 2002-08-18 Mark Kettenis <kettenis@gnu.org>
543 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
546 2002-08-17 Mark Kettenis <kettenis@gnu.org>
548 * top.c (gdb_rl_operate_and_get_next): Make sure
549 operate-and-get-next functions correctly even when the history
550 list is completely filled.
552 2002-08-18 Andrew Cagney <ac131313@redhat.com>
554 * MAINTAINERS (Target Instruction Set Architectures): Rename
555 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
556 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
557 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
558 already listed under Host/Native.
560 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
561 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
564 2002-08-17 Andrew Cagney <ac131313@redhat.com>
566 * config/ia64/ia64.mt: New file.
567 * config/alpha/alpha.mt: New file.
568 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
569 ia64-linux-gnu. Mention that ia64-elf is broken.
570 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
572 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
574 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
575 generic_func_frame_valid instead of func_frame_valid.
577 2002-08-16 Joel Brobecker <brobecker@gnat.com>
579 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
580 procfs appears to be broken when debugging on multi-processor
581 machines. So enable software single stepping in order to avoid
582 using the procfs interface to do next/step operations, using
583 internal breakpoints instead.
585 * infrun.c (handle_inferior_event): Readjust the stop_pc by
586 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
587 make this pc address equal to the value it would have if the
588 system stepping capability was used. Also set a new flag used
589 to ensure that we don't readjust the PC one more time later.
591 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
592 address by DECR_PC_AFTER_BREAK when software single step is
593 in use for this architecture, as this has already been taken
594 care of in handle_inferior_event().
596 2002-08-16 Joel Brobecker <brobecker@gnat.com>
598 * infrun.c (handle_inferior_event): Minor reformatting, to make
599 a rather long condition expression easier to read.
601 2002-08-16 Andrew Cagney <ac131313@redhat.com>
603 * Makefile.in (gdbtk.o): Move to end of file.
604 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
605 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
606 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
607 (gdbtk-wrapper.o, gdbres.o): Ditto.
609 2002-08-16 Andrew Cagney <ac131313@redhat.com>
611 * Makefile.in (copying.o): Separate out compile rule.
612 (hpux-thread.o, procfs.o, signals.o): Ditto.
613 (v850ice.o, z8k-tdep.o): Ditto.
614 (tui-file.o): Move to TUI section.
615 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
616 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
618 2002-08-16 Joel Brobecker <brobecker@gnat.com>
620 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
621 skip_trampoline_code, for better namespace-proofing.
623 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
625 2002-08-16 Joel Brobecker <brobecker@gnat.com>
627 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
629 2002-08-16 Joel Brobecker <brobecker@gnat.com>
631 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
632 signal, check whether we hit a breakpoint before checking for a
633 single step breakpoint. Otherwise, GDB fails to notice that a
634 breakpoint has been hit when stepping onto a breakpoint.
636 2002-08-16 Keith Seitz <keiths@redhat.com>
638 * gdb-events.sh (clear_gdb_event_hooks): New function.
639 * gdb-events.c: Regenerate.
640 * gdb-events.h: Regenerate.
642 2002-08-16 Andrew Cagney <ac131313@redhat.com>
644 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
646 * breakpoint.h (bpstat_stop_status): Add parameter names.
648 2002-08-16 Grace Sainsbury <graces@redhat.com>
650 * remote.c (remote_insert_hw_breakpoint)
651 (remote_remove_hw_breakpoint): Fix calculation of length field
654 2002-08-15 Michael Snyder <msnyder@redhat.com>
656 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
657 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
658 (supply_fpregset): Ditto.
660 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
661 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
662 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
663 (TARGET_READ_SP): Delete.
664 (DO_REGISTERS_INFO): Delete.
665 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
667 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
668 from macros to functions.
670 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
671 (mips_register_convertible, mips_register_convert_to_virtual,
672 mips_register_convert_to_raw): Make static.
673 (mips_read_sp): New function.
674 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
675 (mips_do_registers_info): Make static.
676 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
677 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
678 (mips_register_convert_from_type, mips_register_convert_to_type):
680 (mips_gdbarch_init): Set up function_start_offset,
681 register_virtual_size, pc_in_sigtramp.
683 2002-08-15 Andrew Cagney <ac131313@redhat.com>
685 * infcmd.c (vector_info): New function.
686 (_initialize_infcmd): Add command "info vector".
687 (print_vector_info): New function.
689 * gdbarch.sh (PRINT_VECTOR_INFO): New method
690 * gdbarch.h, gdbarch.c: Regenerate.
692 2002-08-15 Andrew Cagney <ac131313@redhat.com>
694 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
695 ``print_all''. Only print vector registers when ``print_all''.
697 2002-08-15 Andrew Cagney <ac131313@redhat.com>
699 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
700 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
702 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
703 Add `args' parameter.
704 * gdbarch.h, gdbarch.c: Regenerate.
706 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
708 * infcmd.c (float_info): Call print_float_info.
709 (print_float_info): New function. By default, print the
710 floating-point registers.
712 * arch-utils.h (default_print_float_info): Delete declaration.
713 * arch-utils.c (default_print_float_info): Delete function.
715 2002-08-16 Mark Kettenis <kettenis@gnu.org>
717 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
720 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
723 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
724 * configure.host: Make i[3456]86-*-aix host obsolete.
725 * configure.tgt: Make i[3456]86-*-aix target obsolete.
726 * config/i386/i386aix.mh, config/i386/i386aix.mt,
727 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
728 config/i386/xm-i386aix.h: Make files obsolete.
729 * i386aix-nat.c: Make file obsolete.
730 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
731 (i386aix-nat.o): Make target obsolete.
733 * config/i386/nm-gnu.h: Removed.
734 * config/i386/nm-i386gnu.h: New file.
735 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
736 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
738 * config/i386/tm-i386gnu.h: ... here. Removed.
739 * config/i386/xm-i386gnu.h: Removed.
740 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
741 (NAT_FILE): Set to nm-i386gnu.h.
742 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
743 * i386-tdep.c: New file.
744 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
745 (i386gnu-tdep.o): Specify dependencies.
747 2002-08-15 Mark Kettenis <kettenis@gnu.org>
749 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
750 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
751 Adjust a few comments to reflect reality a bit closer.
752 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
753 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
754 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
755 target_insert_watchpoint, target_remove_watchpoint):
757 * config/i386/nm-i386sco5.h: ... here.
758 (kernel_u_size): Add prototype. Improve a few comments and add
759 protection against multiple inclusion.
761 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
764 * uw-thread.c (SP_ARG0): Define if not already defined.
765 * config/i386/tm-i386.h (SO_ARG0): Remove define.
767 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
769 * config/i386/tm-i386.h: Don't include "regcache.h".
771 * i387-tdep.h (i387_print_float_info): New prototype.
772 * i387-tdep.c (print_i387_value, print_i387_ext,
773 print_i387_status_word, print_i387_control_word): Add `struct
774 ui_file *' argument and use it for output.
775 (i387_print_float_info): Renamed from i387_float_info. Add
776 `struct gdbarch *' and `struct ui_file *' arguments and use the
778 * i386-tdep.c: Include "i387-tdep.h".
779 (i386_gdbarch_init): Set print_float_info.
780 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
781 (FLOAT_INFO): Remove define.
783 2002-08-13 Michael Snyder <msnyder@redhat.com>
785 * mips-tdep.c (mips_push_arguments): Rename to
786 mips_eabi_push_arguments, and tune for EABI.
787 (MIPS_REGS_HAVE_HOME_P): Delete.
788 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
789 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
790 Delete references to mips_regs_have_home_p.
792 2002-08-14 Keith Seitz <keiths@redhat.com>
794 * Makefile.in (install-gdbtk): Create insight plugin directory.
795 Install plugins.tcl file.
797 2002-08-14 Keith Seitz <keiths@redhat.com>
799 * configure.in: Move SUBDIRS to near top of the file so that
800 --enable options may add things to it.
801 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
802 * configure: Regenerate.
804 2002-08-13 Michael Snyder <msnyder@redhat.com>
806 * mips-tdep.c (mips_o32o64_push_arguments): New function,
807 cloned from mips_push_arguments, tuned for o32/o64 ABI.
808 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
810 2002-08-13 Andrew Cagney <ac131313@redhat.com>
812 * vax-tdep.c (vax_get_saved_register): Delete function.
813 (vax_gdbarch_init): Update.
814 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
815 (ns32k_gdbarch_init): Update.
816 * alpha-tdep.c (alpha_get_saved_register): Delete function.
817 (alpha_gdbarch_init): Update.
819 2002-08-13 Andrew Cagney <cagney@redhat.com>
821 * regcache.c (init_regcache_descr): Overallocate the
822 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
823 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
825 (set_register_cached): Add range checking assertions. Use
828 2002-08-13 Mark Kettenis <kettenis@gnu.org>
830 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
831 numbers for MMX registers.
833 2002-08-13 Andrew Cagney <cagney@redhat.com>
835 * i386-tdep.c (i386_gdbarch_init): Use
836 generic_unwind_get_saved_register.
838 2002-08-13 Kevin Buettner <kevinb@redhat.com>
840 * procfs.c (procfs_can_use_hw_breakpoint): New function.
841 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
843 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
844 Delete. Add comment regarding this now-deleted target method.
846 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
848 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
849 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
850 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
851 real PC and the page number (if it's within the memory bank window).
852 (m68hc11_pseudo_register_write): Likewise when saving.
853 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
854 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
855 (m68hc11_register_raw_size): And use 32-bit for it.
856 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
857 16K memory bank is used by the prog; also use the virtual pc.
859 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
861 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
862 (m68hc11_gdbarch_init): Install it in gdbarch.
863 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
864 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
865 (MSYMBOL_SIZE): New for documentation.
866 (insn_return_kind): Enum to specify how a function returns.
867 (frame_extra_info): Cleanup and record the return mode.
868 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
869 register in address computation.
870 (m68hc11_get_return_insn): New to obtain the return instruction used
872 (m68hc11_frame_init_saved_regs): Take into account the return
873 instruction used by the function for far and interrupt functions.
874 (m68hc11_init_extra_frame_info): Take into account page register.
875 (m68hc11_frame_args_address): Adjust according to the return mode.
876 (show_regs): Print page register only when it's used.
878 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
880 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
881 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
882 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
884 (m68hc11_register_raw_size): Likewise.
886 2002-08-13 Andrew Cagney <cagney@redhat.com>
888 * i386-tdep.c (i386_register_name): Handle mmx registers.
889 (mmx_regnum_p): New function.
890 (i386_mmx_names): New array.
891 (mmx_num_regs): New variable.
892 (i386_pseudo_register_read): New function.
893 (i386_pseudo_register_write): New function.
894 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
896 * regcache.c (regcache_raw_read_unsigned): New function.
897 (regcache_raw_read_signed): New function.
898 * regcache.h (regcache_raw_read_unsigned): Declare.
899 (regcache_raw_read_signed): Declare.
901 2002-08-13 Andrew Cagney <cagney@redhat.com>
903 * regcache.c (regcache_raw_read_as_address): Delete function.
904 (regcache_cooked_read_signed): New function.
905 (regcache_cooked_read_unsigned): New function.
906 * regcache.h (regcache_cooked_read_signed): Declare.
907 (regcache_cooked_read_unsigned): Declare.
908 (regcache_raw_read_as_address): Delete declaration.
910 * blockframe.c (generic_read_register_dummy): Use
911 regcache_cooked_read_unsigned.
912 * i386-tdep.c (i386_extract_struct_value_address): Use
913 regcache_cooked_read_unsigned.
915 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
918 double sizes according to ELF ABI flags.
919 (gdbarch_tdep): Record elf_flags.
921 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
923 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
924 (m6812_prolog): They can appear in 68HC12 function prologue.
925 (m68hc11_frame_chain): Cleanup.
927 2002-08-12 Andrew Cagney <cagney@redhat.com>
929 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
931 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
932 (i386_linux_register_raw_size): Delete function.
933 (i386_linux_init_abi): Update.
934 * i386-tdep.c (i386_register_raw_size): Delete function.
935 (i386_register_byte): Delete function.
936 (i386_gdbarch_init): Update.
937 (i386_register_size): Delete array.
938 (i386_register_offset): Delete array.
940 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
941 (REGISTER_RAW_SIZE): Delete macro.
942 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
943 (REGISTER_BYTE): Delete macro.
945 2002-08-11 Aidan Skinner <aidan@velvet.net>
947 * ada-lang.c (ada_lookup_partial_symbol)
948 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
949 prototype names so that grep ^func works properly.
951 * ada-lang.c (ada_array_element_type)
952 (ada_lookup_partial_symbol): Fix typos in parameter list.
954 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
955 Fix prototype names so that grep ^func works properly.
957 2002-08-10 Andrew Cagney <cagney@redhat.com>
958 Elena Zannoni <ezannoni@redhat.com>
959 Martin M. Hunt <hunt@redhat.com>
961 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
962 (build_builtin_type_vec128i): Set the vector bit.
963 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
964 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
965 (build_builtin_type_vec64): New function.
966 (build_builtin_type_vec64i): New function.
967 (build_gdbtypes): Initialize builtin_type_vec64 and
970 2002-08-09 Andrew Cagney <cagney@redhat.com>
972 * regcache.c (regcache_dump): Compare the register offset
974 * arch-utils.c (generic_register_byte): New function.
975 * arch-utils.h (generic_register_byte): Declare.
976 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
977 * gdbarch.h, gdbarch.c: Regenerate.
979 2002-08-09 Andrew Cagney <cagney@redhat.com>
981 * regcache.c: Include "gdbcmd.h"
982 (_initialize_regcache): Add commands "maintenance print
983 registers", "maintenance print raw-registers" and "maintenance
984 print cooked-registers".
985 (enum regcache_dump_what): Define.
986 (dump_endian_bytes): New function.
987 (regcache_dump): New function.
988 (regcache_print): New function.
989 (maintenance_print_registers): New function.
990 (maintenance_print_raw_registers): New function.
991 (maintenance_print_cooked_registers): New function.
992 * Makefile.in (regcache.o): Update dependencies.
994 2002-08-09 Michael Snyder <msnyder@redhat.com>
996 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
997 (mips_push_arguments): Correct some comments. Use paddr_nz
998 for printing addresses in debug output. Replace static
999 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1000 (mips_n32n64_push_arguments): New function, cloned from
1001 mips_push_arguments and tuned for the n32/n64 ABI.
1002 (mips_push_register): Buffer needs dynamic allocation.
1003 (mips_print_register): Ditto.
1004 (do_gp_register_row): Ditto.
1005 (mips_store_return_value): Ditto.
1006 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1008 2002-08-09 Don Howard <dhoward@redhat.com>
1010 * memattr.c (mem_info_command): Print special case of upper bound
1011 as max CORE_ADDR + 1.
1013 2002-08-08 Michael Snyder <msnyder@redhat.com>
1015 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1016 returns structs by ref if they're too big to fit in two registers.
1018 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1020 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1022 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1023 mips_find_saved_regs().
1024 (mips_pop_frame): Likewise.
1026 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1028 * blockframe.c (frame_saved_regs_register_unwind): Revise
1029 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1032 2002-08-09 Grace Sainsbury <graces@redhat.com>
1034 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1035 T-packets; the 'a' is not taken as a register number.
1036 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1037 (remote_stopped_data_address): New functions; add to target
1039 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1040 prototypes to match other implementations of this
1041 function. replace integer argument with pointer -- the length
1042 field in the Z-packet is the length of what is pointed to or 1 if
1043 pointer is null. Add to target vector.
1044 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1048 * remote.c (remote_wait): Add support to extract optional
1049 watchpoint information from T-packet. Ignore unrecognized
1050 optional info in T-packet.
1051 (remote_async_wait): Ditto.
1053 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1055 * cli/cli-dump.c: Change fopen modes to use binary open modes
1056 as defined in include/fopen-bin.h throughout.
1058 2002-08-08 Michael Snyder <msnyder@redhat.com>
1060 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1062 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1064 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1065 assertion failure by returning early after a warning.
1067 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1069 * mips-tdep.c (mips_find_saved_regs): Make static.
1070 (mips_frame_init_saved_regs): New function.
1071 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1072 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1073 (mips_find_saved_regs): Delete declaration.
1075 2002-08-08 Grace Sainsbury <graces@redhat.com>
1077 * remote.c (remote_wait, remote_async_wait): Change
1078 thread_num from int to ULONGEST.
1079 (unpack_varlen_hex): Change result parameter from
1080 int * to ULONGEST *.
1082 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1084 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1085 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1087 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1089 2002-08-08 Andrew Cagney <cagney@redhat.com>
1091 * gcore.c (override_derive_stack_segment): Delete variable.
1092 (preempt_derive_stack_segment): Delete function.
1093 (derive_stack_segment): Delete function.
1094 (default_derive_stack_segment): Renamed to derive_stack_segment.
1095 (override_derive_heap_segment): Delete variable.
1096 (preempt_derive_heap_segment): Delete function.
1097 (derive_heap_segment): Delete function.
1098 (default_derive_heap_segment): Rename to derive_heap_segment.
1100 2002-08-06 Michael Snyder <msnyder@redhat.com>
1102 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1103 * mips-tdep.c (mips_EABI_use_struct_convention,
1104 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1105 New functions. (mips_use_struct_convention): Delete.
1106 (mips_gdbarch_init): set use_gdbarch_convention.
1108 2002-08-06 Michael Snyder <msnyder@redhat.com>
1110 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1111 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1112 mips_o32_reg_struct_has_addr): New functions.
1113 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1115 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1117 * regcache.c (pseudo_register): Delete function.
1118 (fetch_register): Delete function.
1119 (store_register): Delete function.
1120 (regcache_raw_read, legacy_read_register_gen): Use
1121 target_fetch_registers instead of fetch_register.
1122 (legacy_write_register_gen, regcache_raw_write): Use
1123 target_store_register instead of store_register.
1124 (write_register_bytes): Ditto.
1126 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1127 (STORE_PSEUDO_REGISTER): Delete.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1130 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1132 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1133 write dump file binary.
1135 2002-08-05 Michael Snyder <msnyder@redhat.com>
1137 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1138 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1139 (mips_gdbarch_init): Set N32 target to be mips64.
1141 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1143 * frame.c (find_saved_register): Break out of loop once saved
1144 register address is found. Don't mention sparc in loop comment
1147 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1149 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1150 mips_default_saved_regsize to 8.
1152 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1154 * gcore.c: Do not include <sys/procfs.h>.
1155 * Makefile.in (gcore.o): Update dependencies.
1157 2002-08-06 Andrew Cagney <cagney@redhat.com>
1159 * configure.tgt: Make arc-*-* obsolete.
1160 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1161 * MAINTAINERS: Make arc-elf obsolete.
1162 * arc-tdep.c: Make file obsolete.
1163 * config/arc/arc.mt: Ditto.
1164 * config/arc/tm-arc.h: Ditto.
1166 2002-08-05 Theodore A. Roth <troth@verinet.com>
1168 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1170 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1172 * mcore-tdep.c (mcore_gdbarch_init): Use
1173 generic_unwind_get_saved_register instead of
1174 generic_get_saved_register.
1175 * v850-tdep.c (v850_gdbarch_init): Ditto.
1176 * frv-tdep.c (frv_gdbarch_init): Ditto.
1177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1178 * s390-tdep.c (s390_gdbarch_init): Ditto.
1179 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1180 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1181 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1183 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1185 * objfiles.h: Add missing #include "symfile.h"
1187 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1189 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1191 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1192 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1195 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1197 * NEWS: Cleanup and nitpick.
1199 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1201 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1203 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1205 * Makefile.in (gdbtk-bp.o): Update dependencies.
1206 (gdbtk-register.o): Ditto.
1207 (gdbtk-varobj.o): Ditto.
1209 2002-08-03 Andrew Cagney <cagney@redhat.com>
1211 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1212 m68hc11_fetch_pseudo_register.
1213 (m68hc11_pseudo_register_write): Replace
1214 m68hc11_store_pseudo_register.
1215 (m68hc11_gdbarch_init): Update.
1217 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1219 * gdbarch.sh: Include "gdb_string.h".
1220 * gdbarch.c: Regenerate.
1222 * regcache.c: Include "gdb_string.h".
1223 * ax-general.c: Ditto.
1225 * std-regs.c: Ditto.
1226 * fbsd-proc.c: Ditto.
1229 * Makefile.in (regcache.o): Update dependencies.
1230 (thread.o, gdbarch.o): Ditto.
1231 (ax-general.o, gdbarch.o): Ditto.
1232 (varobj.o, std-regs.o): Ditto.
1233 (fbsd-proc.o): Specify dependencies.
1235 2002-08-02 Andrew Cagney <cagney@redhat.com>
1237 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1239 (regcache_cooked_write): Ditto.
1241 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1243 * regcache.c (regcache_cooked_read): New function.
1244 (regcache_cooked_write): New function.
1245 (read_register_gen): Rewrite using regcache_cooked_read.
1246 (write_register_gen): Rewrite using regcache_cooked_write.
1248 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1251 2002-08-02 Andrew Cagney <cagney@redhat.com>
1253 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1254 Replace the architecture methods register_read and register_write.
1255 * gdbarch.h, gdbarch.c: Regenerate.
1256 * regcache.c (init_regcache_descr): Update.
1257 (read_register_gen): Update.
1258 (write_register_gen): Update.
1259 (supply_register): Update comment.
1261 * sh-tdep.c (sh_gdbarch_init): Update.
1262 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1263 `regcache' and `gdbarch' parameters. Make `buffer' a void
1264 pointer. Update code.
1265 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1266 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1267 void pointer. Update code.
1268 (sh64_register_write): Delete.
1269 (sh4_register_read): Delete.
1270 (sh64_register_read): Delete.
1271 (sh4_register_write): Delete.
1272 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1273 void pointer, `to' parameter a void pointer.
1274 (sh_sh64_register_convert_to_raw): Ditto.
1276 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1278 * mips-tdep.c (mips_register_virtual_type): Use architecture
1279 invariant return values.
1281 2002-08-01 Andrew Cagney <cagney@redhat.com>
1283 * linux-proc.c: Include "gdb_string.h".
1284 * Makefile.in (linux-proc.o): Update dependency list.
1286 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1288 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1291 2002-08-01 Grace Sainsbury <graces@redhat.com>
1293 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1294 to_insert_watchpoint, to_remove_watchpoint,
1295 to_stopped_by_watchpoint, to_stopped_data_address,
1296 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1297 target vecctor. Define their corresponding macros so they call
1300 * target.c: Add default and debug versions of for
1301 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1302 to_insert_watchpoint, to_remove_watchpoint,
1303 to_stopped_by_watchpoint, to_stopped_data_address,
1304 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1306 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1308 * mips-tdep.c (mips_register_virtual_type): New function.
1309 (mips_gdbarch_init): Register mips_register_virtual_type()
1310 with gdbarch machinery.
1311 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1312 this file instead of tm-bigmips.h.
1313 (MIPS_REGSIZE): Delete this macro.
1314 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1315 multiarch version in mips-tdep.c will be found.
1317 2002-08-01 Andrew Cagney <cagney@redhat.com>
1319 * NEWS: Menion that CHILL has been made obsolete.
1321 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1322 * stabsread.c (read_range_type): Ditto.
1323 * gdbtypes.h: Ditto.
1324 * language.c (binop_type_check): Ditto.
1325 (binop_result_type): Ditto.
1326 (integral_type): Ditto.
1327 (character_type): Ditto.
1328 (string_type): Ditto.
1329 (boolean_type): Ditto.
1330 (structured_type): Ditto.
1331 (lang_bool_type): Ditto.
1332 (binop_type_check): Ditto.
1333 * language.h (_LANG_chill): Ditto.
1334 * dwarfread.c (set_cu_language): Ditto.
1335 * dwarfread.c (CHILL_PRODUCER): Ditto.
1336 * dwarfread.c (handle_producer): Ditto.
1337 * expression.h (enum exp_opcode): Ditto.
1338 * eval.c: Ditto for comments.
1339 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1340 * expprint.c (print_subexp): Ditto.
1341 (print_subexp): Ditto.
1342 * valops.c (value_cast): Ditto.
1343 (search_struct_field): Ditto.
1344 * value.h (COERCE_VARYING_ARRAY): Ditto.
1345 * symfile.c (init_filename_language_table): Ditto.
1346 (add_psymbol_with_dem_name_to_list): Ditto.
1347 * valarith.c (value_binop): Ditto.
1349 * valops.c (value_slice): Ditto.
1350 * symtab.h (union language_specific): Ditto.
1351 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1352 (SYMBOL_DEMANGLED_NAME): Ditto.
1353 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1354 * defs.h (enum language): Ditto.
1355 * symtab.c (got_symtab): Ditto.
1356 * utils.c (fprintf_symbol_filtered): Ditto.
1358 * ch-typeprint.c: Make file obsolete.
1359 * ch-valprint.c: Make file obsolete.
1360 * ch-lang.h: Make file obsolete.
1361 * ch-exp.c: Make file obsolete.
1362 * ch-lang.c: Make file obsolete.
1364 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1366 (TARGET_FLAGS_TO_PASS): Ditto.
1367 (CHILLFLAGS): Obsolete.
1369 (CHILL_FOR_TARGET): Obsolete.
1370 (CHILL_LIB): Obsolete.
1371 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1373 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1374 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1376 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1379 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1381 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1382 This does not change anything at the moment, but will be helpful
1383 later when full Ada support is integrated.
1385 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1387 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1390 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1392 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1393 and save it in a local variable. Use variable in later test.
1395 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1397 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1398 test. (Thanks to Daniel Jacobowitz.)
1400 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1402 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1403 (mips_abi_strings): Add "n64".
1404 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1406 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1408 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1409 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1411 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1413 * utils.c (host_pointer_to_address, address_to_host_pointer):
1414 Use gdb_assert() instead of explicit call to internal_error().
1416 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1418 * Makefile.in (rs6000-nat.o): Update dependencies.
1420 From Nicholas Duffek:
1421 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1422 (aix-thread.o): New rule.
1423 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1424 * config/powerpc/aix432.mh: New file.
1426 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1428 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1429 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1430 (fetch_core_registers, ppc_linux_supply_gregset)
1431 (ppc_linux_supply_fpregset): New functions.
1432 (ppc_linux_regset_core_fns): New.
1433 (_initialize_ppc_linux_tdep): Call add_core_fns.
1434 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1435 and ppc_linux_supply_gregset.
1436 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1437 (supply_fpregset): Call ppc_linux_supply_fpregset.
1438 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1440 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1442 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1444 * symtab.c (lookup_symbol): Demangle before lowercasing.
1446 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1448 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1450 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1451 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1452 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1453 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1455 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1456 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1457 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1458 (avr-tdep.o, mon960-rom.o): Ditto.
1459 (aout_stabs_gnu_h): Define.
1460 (symtab_h): Remove $(gdb_obstack_h).
1462 2002-07-30 Jim Blandy <jimb@redhat.com>
1464 Patch from David Carlton <carlton@math.stanford.edu>:
1465 * gdbinit.in: Move the `dir' commands that add GDB's own source
1466 directory to the search path to the end, so that the `gdb' source
1467 directory will be searched first.
1469 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1471 * gdb_obstack.h: New file.
1472 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1473 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1474 * objfiles.h: Include "gdb_obstack.h".
1475 * Makefile.in (gdb_obstack_h): Define.
1476 (symtab_h): Add $(gdb_obstack_h).
1477 (objfiles_h): Add $(gdb_obstack_h).
1479 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1480 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1481 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1482 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1483 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1484 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1485 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1486 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1488 * Makefile.in (bcache.o): Update dependencies.
1489 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1490 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1491 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1492 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1493 (stabsread.o, symfile.o, symmisc.o): Ditto.
1494 (symtab.o, typeprint.o, macroexp.o): Ditto.
1495 (macrotab.o, mdebugread.o): Ditto.
1496 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1497 (coff_ecoff_h, aout_aout64_h): Define.
1498 (aout_stabs_gnu_h, libaout_h): Define.
1500 2002-07-29 Andrew Cagney <cagney@redhat.com>
1502 * regcache.c (struct regcache_descr): Rename nr_registers to
1503 nr_cooked_registers. Revise comments describing the structure
1505 (init_regcache_descr): Update.
1506 (init_legacy_regcache_descr): Update.
1507 (read_register_gen, write_register_gen): When a cooked register in
1508 the raw register range, directly access the value from the raw
1511 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1513 * z8k-tdep.c: Do not include "obstack.h".
1514 * h8300-tdep.c, h8500-tdep.c: Ditto.
1515 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1516 * valprint.c, v850-tdep.c: Ditto.
1517 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1518 * mn10200-tdep.c: Ditto.
1520 * Makefile.in (z8k-tdep.o): Update dependencies.
1521 (m68hc11-tdep.o, valprint.o): Ditto.
1522 (v850-tdep.o, d10v-tdep.o): Ditto.
1523 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1524 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1525 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1526 (sh_opc_h, gdb_sim_sh_h): Define.
1527 (elf_sh_h, elf_bfd_h): Define.
1528 (opcode_m68hc11_h): Define.
1529 (OPCODES_SRC, OPCODES_DIR): define.
1530 (OPCODES): Use $(OPCODES_DIR).
1531 (gdb_sim_d10v_h): Rename sim_d10v_h.
1532 (gdb_sim_arm_h): Rename sim_arm_h.
1534 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1536 * utils.c (host_pointer_to_address, address_to_host_pointer):
1537 Change internal_error() message to indicate function responsible
1540 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1542 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1543 calls to local_hex_string_custom().
1545 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1547 * irix5-nat.c: Move IRIX shared library support from here...
1548 * solib-irix.c: ...to here. Revised substantially to work with
1549 generic solib framework.
1551 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1552 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1553 * mips-irix-tdep.c: New file.
1555 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1556 (mips-irix-tdep.o, solib-irix.o): New rules.
1557 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1559 * config/mips/irix6.mt (TDEPFILES): Likewise.
1560 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1562 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1564 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1565 disabled (via ``#if 0'') includes.
1567 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1569 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1570 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1571 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1572 Add support for the fpscr register.
1573 * rs6000-nat.c (regmap, fetch_inferior_registers)
1574 (store_inferior_registers, fetch_core_registers): Likewise.
1576 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1578 * rs6000-nat.c (language.h): Include.
1579 (special_regs): Delete this array.
1580 (regmap): New function.
1581 (fetch_register, store_register): Use regmap() to map gdb
1582 register numbers to ptrace register numbers. Also, use
1583 outputs from regmap() to make decisions regarding type of
1584 ptrace() call to make. In particular, don't compare against
1585 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1586 (fetch_inferior_registers, store_inferior_registers): Where
1587 possible, obtain register numbers from tdep struct. Don't
1588 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1589 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1590 (LAST_UISA_SP_REGNUM): Delete.
1592 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1594 * rs6000-nat.c (ppc-tdep.h): Include.
1595 (fetch_registers, store_register, fetch_core_registers): Don't
1596 access registers[] directly. Instead, use supply_register() or
1597 regcache_collect() as appropriate.
1598 (find_toc_address): Format hex address with local_hex_string().
1600 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1602 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1605 2002-07-24 Tom Tromey <tromey@redhat.com>
1607 * jv-exp.y: Marked all strings with _().
1608 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1610 (MethodInvocation, CastExpression, parse_number, yyerror,
1611 java_type_from_name, push_expression_name, yylex): Typo fixes.
1613 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1615 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1616 (tee_file_flush, tee_file_write, tee_file_fputs)
1617 (tee_file_isatty): New.
1618 * ui-file.h (tee_file_new): Add prototype.
1620 2002-07-24 Aidan Skinner <aidan@velvet.net>
1622 * ada-lang.c: Change k&r style function definitions to prototyped
1624 * ada-typeprint.c: Change k&r style function definitions to prototyped
1626 * ada-valprint.c: Change k&r style function definitions to prototyped
1629 2002-07-24 Andrew Cagney <cagney@redhat.com>
1631 * README: Remove reference to remote-bug.
1632 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1634 (m88k-nat.o): Delete rule.
1635 (m88k-tdep.o): Delete rule.
1636 (remote-bug.o): Delete rule.
1637 * MAINTAINERS: Mark as obsolete.
1638 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1639 * m88k-tdep.c: Make file obsolete.
1640 * config/m88k/m88k.mh: Ditto.
1641 * config/m88k/delta88v4.mh: Ditto.
1642 * config/m88k/delta88v4.mt: Ditto.
1643 * config/m88k/delta88.mt: Ditto.
1644 * config/m88k/delta88.mh: Ditto.
1645 * remote-bug.c: Ditto.
1646 * config/m88k/tm-delta88.h: Ditto.
1647 * config/m88k/nm-delta88v4.h: Ditto.
1648 * config/m88k/xm-delta88.h: Ditto.
1649 * config/m88k/xm-dgux.h: Ditto.
1650 * config/m88k/tm-m88k.h: Ditto.
1651 * config/m88k/nm-m88k.h: Ditto.
1652 * config/m88k/tm-delta88v4.h: Ditto.
1653 * m88k-nat.c: Ditto.
1654 * cxux-nat.c: Ditto.
1655 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1656 and m88*-*-* obsolete.
1657 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1660 2002-07-24 Andrew Cagney <cagney@redhat.com>
1662 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1663 constant. Same for local pointer variables.
1664 (extract_signed_integer): Ditto.
1665 * defs.h (extract_unsigned_integer): Update.
1666 (extract_signed_integer): Update.
1668 2002-07-24 Andrew Cagney <cagney@redhat.com>
1670 * regcache.c (regcache_raw_write): Change buf parameter to a
1671 constant void pointer.
1672 (regcache_raw_read): Change buf parameter to a void pointer.
1673 (legacy_write_register_gen): Change myaddr parameter a constant
1675 (supply_register): Change val parameter to a const void pointer.
1676 * regcache.h (regcache_raw_write): Update declaration.
1677 (regcache_raw_read): Update declaration.
1678 (supply_register): Update declaration.
1680 2002-07-24 Tom Tromey <tromey@redhat.com>
1682 * defs.h (gdb_readline_wrapper): Declare.
1683 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1684 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1685 * top.c (gdb_readline_wrapper): New function.
1686 (command_line_input): Use it.
1688 2002-07-24 Andrew Cagney <cagney@redhat.com>
1690 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1691 regcache_read and regcache_write.
1692 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1693 * regcache.c: Update.
1694 * sh-tdep.c (sh64_push_arguments): Update comment.
1695 (sh_pseudo_register_read): Update.
1696 (sh_pseudo_register_write): Update.
1697 (sh4_register_read): Update.
1698 (sh4_register_write): Update.
1699 (sh64_pseudo_register_read): Update.
1700 (sh64_pseudo_register_write): Update.
1701 (sh64_register_read): Update.
1702 (sh64_register_write): Update.
1703 * i386-tdep.c (i386_extract_return_value): Update.
1704 (i386_extract_struct_value_address): Update.
1705 (i386_extract_return_value): Update.
1706 * blockframe.c (generic_read_register_dummy): Update.
1707 (generic_call_dummy_register_unwind): Update
1708 * infrun.c (write_inferior_status_register): Update.
1710 2002-07-23 Jim Blandy <jimb@redhat.com>
1712 * parser-defs.h (expression_context_pc): Make this extern.
1713 (Thanks to Michael Snyder.)
1715 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1717 GDB 5.2.1 released from 5.2 branch.
1718 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1719 * README: Update to mention 5.2.1.
1721 2002-07-23 Mark Salter <msalter@redhat.com>
1723 * remote.c (remote_read_bytes): Fix check for error.
1725 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1727 * aix-thread.c (language.h): Include.
1728 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1729 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1730 Print newlines at end of debug messages.
1731 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1732 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1734 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1736 * aix-thread.c (ppc-tdep.h): Include.
1737 (special_register_p): New function.
1738 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1739 (store_regs_user_thread): Use register number information from
1740 gdbarch_tdep struct instead of hardcoded offsets relative to
1741 FIRST_UISA_SP_REGNUM.
1742 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1743 special_register_p() instead of using FPLAST_REGNUM and
1744 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1745 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1746 will be MQ's register number.
1748 2002-07-22 Michael Snyder <msnyder@redhat.com>
1750 * aix-thread.c (ops): Rename to aix_thread_ops.
1751 (base_ops): Rename to base_target.
1752 (ops_attach): Rename to aix_thread_attach.
1753 (ops_detach): Rename to aix_thread_detach.
1754 (ops_resume): Rename to aix_thread_detach.
1755 (ops_wait): Rename to aix_thread_wait.
1756 (ops_kill): Rename to aix_thread_kill.
1757 (init_ops): Rename to init_aix_thread_ops.
1758 (ops_fetch_register): Rename to aix_thread_fetch_register.
1759 (ops_store_register): Rename to aix_thread_store_register.
1760 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1761 (ops_thread_alive): Rename to aix_thread_thread_alive.
1762 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1763 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1764 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1765 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1766 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1767 (store_regs_lib): Rename to store_regs_user_thread.
1768 (store_regs_kern): Rename to store_regs_kernel_thread.
1770 2002-07-22 Michael Snyder <msnyder@redhat.com>
1772 * aix-thread.c (ops_prepare_to_store): Eliminate.
1773 (init_ops): Don't initialize ops.prepare_to_store.
1774 (store_regs_kern): Pre-fetch register buffers from child,
1775 because some registers may not be in the cache. Copy
1776 regs from register cache only if they are cached.
1777 (store_regs_lib): Copy regs from register cache only
1779 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1780 fill_gprs64): Ditto.
1782 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1784 * aix-thread.c (gdb_assert.h): Include.
1785 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1786 register sizes (from register cache) match size of buffer holding
1788 (fill_sprs32): Change parameter types to match those in the ptrace()
1790 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1791 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1793 2002-07-22 Michael Snyder <msnyder@redhat.com>
1795 * aix-thread.c (supply_sprs64): Cosmetic change.
1796 (supply_sprs32): Cosmetic change.
1797 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1798 (fill_sprs64): Use regcache_collect instead of read_register.
1799 (store_regs_lib): Use regcache_collect instead of
1800 read_register. Use fill_sprs32 instead of fill_sprs64,
1801 if debugging a 32-bit architecture.
1802 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1803 out of the register cache, instead of passing a pointer into
1804 the register cache directly to ptrace. Use regcache_collect
1805 insteaad of read_register.
1806 (ops_prepare_to_store): Use target_read_registers instead
1807 of read_register_bytes.
1809 2002-07-20 Aidan Skinner <aidan@velvet.net>
1811 * MAINTAINERS: Add self under write after approval.
1813 2002-07-20 Aidan Skinner <aidan@velvet.net>
1815 * ada-tasks.c: Change k&r style function definitions to prototyped
1818 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1820 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1821 * x86-64-tdep.c: Include "objfiles.h".
1822 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1823 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1825 2002-07-17 Michal Ludvig <michal@suse.cz>
1827 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1828 (update_context): Initialise cfa variable.
1830 2002-07-17 Michael Snyder <msnyder@redhat.com>
1832 * aix-thread.c: Shorten some long lines.
1833 Bring comments into line with code spec.
1835 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1837 * infrun.c: Re-indent using gdb_indent.sh.
1839 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1841 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1842 Leave the indentation temporarily untouched, to minimize the diffs.
1844 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1846 * stabsread.c: Make os9k sections of the code obsolete,
1848 * stabsread.h: Make os9k sections of the code obsolete.
1850 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1852 * linux-low.c (regsets_store_inferior_registers): Add free()
1853 at the end of a loop to prevent memory leak.
1854 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1855 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1856 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1858 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1860 2002-07-17 Jim Blandy <jimb@redhat.com>
1862 * macrocmd.c (info_macro_command): Remove newline from error
1865 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1867 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1868 (sh_gdbarch_init): Use it for sh-dsp.
1870 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1872 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1873 64-bit DWARF2 format.
1875 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1877 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1878 <sys/proc.h> when not available.
1880 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1882 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1883 * stabsread.c: Make os9k sections of the code obsolete.
1884 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1885 * config/i386/i386os9k.mt: Make file obsolete.
1886 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1887 (COMMON_OBS): Remove os9kread.o
1888 (SFILES): Remove os9kread.c.
1889 (os9kread.o, remote-os9k.o): Make target obsolete.
1890 * remote-os9k.c: Make file obsolete.
1891 * os9kread.c: Make file obsolete.
1894 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1896 * NEWS: Mention that the FR30 has been made obsolete.
1897 * fr30-tdep.c: Make file obsolete.
1898 * config/fr30/tm-fr30.h: Ditto.
1899 * config/fr30/fr30.mt: Ditto.
1900 * configure.tgt: Make fr30-*-elf obsolete.
1901 * MAINTAINERS: Make fr30-elf obsolete.
1903 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1905 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1906 found is not inside a section.
1908 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1910 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1912 (pdc_realloc): Use xrealloc() instead of realloc().
1914 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1916 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1917 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1918 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1921 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1923 * aix-thread.c (ptrace_check): Eliminate goto.
1924 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1927 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1929 * aix-thread.c (gdbcmd.h): Include.
1930 (DEBUG, DBG, DBG2, dbg): Eliminate.
1931 (debug_aix_thread): New static global.
1932 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1933 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1934 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1935 invocations to DBG and DBG2 macros to test against
1936 ``debug_aix_thread'' and call fprintf_unfiltered().
1937 (_initialize_aix_thread): Add new command "set debug aix-thread".
1939 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1941 From Gerhard Tonn <TON@de.ibm.com>:
1942 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1943 instead of supply_register.
1945 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1947 * dwarf2cfi.c: Include "gdb_assert.h".
1948 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1950 (update_context): Do not use __func__. Add missing ``break''.
1951 (update_context): Do not use __func__.
1953 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1955 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1956 and its setting. Set gdbarch instruction printing functions
1957 directly. For non-rs6000 case use new function
1958 gdb_print_insn_powerpc.
1959 (gdb_print_insn_powerpc): New function.
1961 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1963 * NEWS: Mention that the d30v has been marked obsolete.
1964 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1965 * configure.tgt: Mark d30v-*-* as obsolete.
1966 * d30v-tdep.c: Mark file as obsolete.
1967 * config/d30v/d30v.mt: Ditto.
1968 * config/d30v/tm-d30v.h: Ditto.
1970 2002-07-13 Aidan Skinner <aidan@velvet.net>
1972 * ada-tasks.c (add_task_entry): replace calls to
1973 malloc() with xmalloc
1974 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1976 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1977 ada_finish_decode_line_1, all_sals_for_line
1978 ada_breakpoint_rewrite): replace calls to free() with xfree()
1980 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1982 From Nicholas Duffek (with minor changes by Martin Hunt,
1983 Louis Hamilton, and Kevin Buettner):
1984 * aix-thread.c: New file.
1986 2002-07-12 Petr Sorfa <petrs@caldera.com>
1988 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1989 complaint for invalid attribute class or form.
1990 (read_func_scope): DW_AT_frame_base
1991 better handling of DW_AT_block*.
1992 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1993 better handling of DW_AT_block*.
1994 (read_common_block): DW_AT_location
1995 better handling of DW_AT_block*.
1996 (read_partial_die): DW_AT_location better handling
1998 (new_symbol): DW_AT_external better handling of
1999 DW_AT_block*. Proper initialization of variable
2001 (attr_form_is_block): New function that returns true
2002 if the attribute's form is of DW_FORM_block*.
2004 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2006 * valops.c (find_method_list): Remove comment about
2007 removed STATIC_MEMFUNCP argument.
2008 (value_find_oload_method_list): Likewise.
2010 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2012 From Nicholas Duffek:
2013 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2014 target_new_objfile_hook.
2016 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2018 From Nicholas Duffek:
2019 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2022 2002-07-12 Andrew Cagney <cagney@redhat.com>
2024 * MAINTAINERS: Mention --enable-sim-build-warnings.
2025 (m68hc11-elf): Disable sim build warnings.
2026 (m32r-elf): Mark as broken obsolete candidate.
2027 (x86_64-linux-gnu): Mark as buildable with -Werror.
2028 (arm-elf): Change -w to ``,'' which enables warnings but not
2031 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2033 * bcache.h: Update copyright.
2034 (struct bstring, struct bcache): Move definition to "bcache.c".
2035 Replaced by opaque declaration.
2036 (bcache_xfree): Replace free_bcache.
2037 (bcache_xmalloc, bcache_memory_used): Declare.
2039 * bcache.c: Update copyright.
2040 (struct bstring, struct bcache): Moved to here from "bcache.h".
2042 (bcache_xmalloc, bcache_memory_used): New functions.
2043 (bcache_xfree): Replace function free_bcache.
2045 * Makefile.in (objfiles.o): Add $(bcache_h).
2046 (objfiles_h): Remove $(bcache_h).
2047 (symfile.o): Add $(bcache_h).
2049 * symmisc.c: Update copyright.
2050 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2051 (print_objfile_statistics): Use bcache_memory_used.
2053 * symfile.c: Include "bcache.h".
2054 (reread_symbols): Use bcache_xfree.
2055 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2056 (add_psymbol_to_list): Pass psymbol_cache by value.
2057 (add_psymbol_with_dem_name_to_list): Ditto.
2059 * objfiles.h: Update copyright.
2060 (struct bcache): Declare opaque. Do not include "bcache.h".
2061 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2063 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2065 * objfiles.c: Include "bcache.h". Update copyright.
2066 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2068 (free_objfile): Use bcache_xfree.
2070 2002-07-11 Grace Sainsbury <graces@redhat.com>
2072 * monitor.c (monitor_fetch_register): Make name a constant.
2073 (monitor_store_register): Same.
2075 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2077 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2078 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2079 (finish_block) For non-function blocks, hash the symbol table. For
2080 function blocks, mark the symbol table as unhashed.
2081 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2082 (msymbol_hash_iw): Likewise.
2083 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2085 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2086 (lookup_minimal_symbol): Likewise for both.
2087 * symtab.h (struct block): Add `hashtable' flag. Comment the
2089 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2090 (ALL_BLOCK_SYMBOLS): Update.
2091 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2092 (struct symbol): Add `hash_next' pointer.
2093 * symtab.c (lookup_block_symbol): Search using the hash table when
2095 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2096 (search_symbols, find_addr_symbol): Likewise.
2098 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2099 (read_dst_symtab): Likewise.
2100 * jv-lang.c (get_java_class_symtab): Likewise.
2101 * mdebugread.c: Include "gdb_assert.h".
2102 (shrink_block): Assert that the block being modified is not hashed.
2103 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2104 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2106 (dump_symtab): Recognize hashed blocks.
2107 * printcmd.c (print_frame_args): Assert that function blocks do not
2108 have hashed symbol tables.
2109 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2110 (fill_in_ada_prototype, debug_print_block): Likewise.
2111 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2113 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2115 * stack.c (print_frame): Use result of frame_address_in_block()
2116 instead of fi->pc when evaluating symbols.
2117 (backtrace_command_1): Ditto.
2119 2002-07-11 Andrew Cagney <cagney@redhat.com>
2121 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2124 * arm-tdep.c (arm_register_name): Make return type constant.
2126 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2128 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2130 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2131 * s390-tdep.c (s390_fp_regnum): Ditto.
2132 (s390_read_fp): Ditto.
2133 (s390_pop_frame): Ditto.
2134 (_initialize_s390_tdep): Ditto.
2135 * remote.c (get_remote_state): Ditto.
2136 * procfs.c (mappingflags): Ditto.
2137 * memattr.c (_initialize_mem): Ditto.
2138 * mcore-tdep.c (mcore_pop_frame): Ditto.
2139 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2140 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2141 * language.c (set_case_str): Ditto.
2142 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2143 * frv-tdep.c (new_variant): Ditto.
2144 (frv_stopped_data_address): Ditto.
2145 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2146 (context_alloc): Ditto.
2147 (frame_state_alloc): Ditto.
2148 (unwind_tmp_obstack_init): Ditto.
2149 (unwind_tmp_obstack_free): Ditto.
2150 (cfi_read_fp): Ditto.
2151 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2152 (cris_pop_frame): Ditto.
2153 * c-lang.c (scanning_macro_expansion): Ditto.
2154 (finished_macro_expansion): Ditto.
2155 (c_preprocess_and_parse): Ditto.
2156 * gdbarch.sh: Ditto.
2157 * gdbarch.h, gdbarch.c: Regenerate.
2158 * config/mn10200/tm-mn10200.h: Adjust indentation.
2159 * target.c: Adjust indentation.
2160 * symtab.h: Adjust indentation.
2161 * stabsread.h: Adjust indentation.
2162 * remote-es.c: Adjust indentation.
2163 * os9kread.c: Adjust indentation.
2165 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2167 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2168 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2170 2002-07-10 Grace Sainsbury <graces@redhat.com>
2172 * NEWS: Mention m68k, mcore multi-arching.
2173 * MAINTAINERS: Change status of m68k, mcore to reflect
2176 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2178 * valops.c (find_overload_match): Free oload_syms.
2180 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2182 Define HAVE_SYS_PROC_H if sys/proc.h exists
2183 * configure.in: Add check for sys/proc.h
2184 * config.in: Regenerate.
2185 * configure: Regenerate.
2187 2002-07-09 Grace Sainsbury <graces@redhat.com>
2189 * config/m68k/tm-m68k.h: Remove macros wrapped in
2190 #if !GDB_MULTI_ARCH.
2192 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2194 * config.in, configure: Regenerate.
2196 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2198 * dwarf2cfi.c: Include "gcore.h".
2199 (execute_stack_op): Fix implementation of the
2200 DW_OP_deref and DW_OP_deref_size operators by letting do their
2201 lookup in the target.
2203 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2205 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2206 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2209 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2211 Fix PR gdb/595, gdb/602
2212 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2213 Don't call value_cast, just read the vtable pointer; update comments
2216 2002-07-05 Grace Sainsbury <graces@redhat.com>
2218 * config/mcore/tm-mcore.h: Remove file.
2219 * config/mcore/mcore.mt: Remove definition of TM_FILE
2220 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2222 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2224 * i386bsd-tdep.c: Include "gdb_string.h".
2226 2002-07-04 Grace Sainsbury <graces@redhat.com>
2228 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2229 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2231 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2232 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2233 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2234 (RETVAL_REGNUM): Move macros from tm-mcore.h
2235 (mcore_reg_struct_has_addr): New function.
2236 (mcore_gdbarch_init): Added initializations for the macros removed
2239 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2241 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2242 traditonal string branding within the ELF header.
2244 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2246 * symtab.c (remove_params): New function.
2247 (make_symbol_overload_list): Use it instead of cplus_demangle.
2248 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2250 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2252 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2254 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2256 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2257 and tdep->sigtramp_end.
2258 * i386obsd-nat.c: New file.
2259 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2261 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2262 Don't call get_current_frame().
2264 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2266 * i386-nat.c (child_post_startup_inferior): New function
2267 calling i386_cleanup_dregs if
2268 I386_USE_GENERIC_WATCHPOINTS is defined.
2269 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2270 conditional to acknowledge that i386-nat.c has its
2271 own child_post_startup_inferior function.
2273 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2275 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2276 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2277 instead of MAX_REGISTER_RAW_SIZE.
2278 (i386_extract_return_value, i386_extract_struct_value_address):
2279 Convert to use regcache.
2280 (i386_gdbarch_init): Set max_register_raw_size and
2281 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2282 Set extract_return_value and extract_struct_value_address instead
2283 of their deprecated variants.
2285 Convert i386 target to generic dummy frames.
2286 * i386-tdep.c: Include "symfile.h".
2287 (i386_frameless_signal_p): Consider a function to be frameless if
2288 the pc points at the first instruction of the function.
2289 (i386_frame_chain): Handle (generic) call dummies.
2290 (i386_frame_saved_pc): Likewise.
2291 (i386_frame_init_saved_regs): Remove code dealing with call
2292 dummies on the stack.
2293 (i386_push_dummy_frame): Removed.
2294 (i386_call_dummy_words): Removed.
2295 (i386_fix_call_dummy): Removed.
2296 (i386_push_return_address): New function.
2297 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2298 parameter, and don't call get_current_frame.
2299 (i386_pop_frame): New function.
2300 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2301 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2302 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2303 call_dummy_length to 0, set call_dummy_words to NULL, set
2304 sizeof_call_dummy_words to 0, set fix_call_dummy to
2305 generic_fix_call_dummy, set pc_in_call_dummy to
2306 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2307 generic_push_dummy_frame, set push_return_address to
2308 i386_push_return_address and set frame_chain_valid to
2309 generic_file_frame_chain_valid.
2311 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2313 * gdbarch.sh (struct regcache): Add opaque declaration.
2314 (EXTRACT_RETURN_VALUE): New architecture method.
2315 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2316 * gdbarch.h, gdbarch.c: Regenerate.
2317 * arch-utils.c (legacy_extract_return_value): New function.
2318 * arch-utils.h (legacy_extract_return_value): Declare.
2319 * values.c (value_being_returned): Re-enable code handling
2320 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2321 deprecated_grub_regcache_for_registers call to block handling
2322 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2323 (EXTRACT_RETURN_VALUE): Do not define.
2325 2002-07-03 Grace Sainsbury <graces@redhat.com>
2327 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2328 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2329 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2330 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2331 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2332 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2333 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2334 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2335 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2336 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2337 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2338 argument so the function fits the prototype in the architecture
2340 (mcore_pop_frame): Remove argument so the function fits the
2341 prototype. Use get_current_frame instead of the argument.
2342 (mcore_push_arguments): Change type of struct_return so the
2343 function can be used in the architecture vector.
2344 (mcore_store_struct_return): Add.
2345 (mcore_frame_init_saved_regs): Add.
2346 (mcore_gdbarch_init): Add function calls to replace the macros
2347 removed from tm-mcore.h
2349 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2351 * infcmd.c (print_return_value): Remove compatibility code calling
2352 deprecated_grub_regcache_for_registers.
2354 * values.c: Include "regcache.h".
2355 (value_being_returned): Update. Use
2356 deprecated_grub_regcache_for_registers to extract the register
2358 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2359 ``struct regcache''.
2360 * Makefile.in (values.o): Add dependency on $(regcache_h).
2362 * inferior.h (run_stack_dummy): Change type of second parameter to
2363 a ``struct regcache''.
2364 * valops.c (hand_function_call): Change type of retbuf to ``struct
2365 regcache''. Allocate using regcache_xmalloc, clean using
2366 make_cleanup_regcache_xfree.
2367 * infcmd.c (run_stack_dummy): Update. Use
2368 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2370 * regcache.c (do_regcache_xfree): New function.
2371 (make_cleanup_regcache_xfree): New function.
2372 * regcache.h (make_cleanup_regcache_xfree): Declare.
2374 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2376 * event-top.c (command_line_handler): Don't read past
2377 beginning of buffer.
2379 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2381 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2383 (varobj_create): Store frame_id for root.
2384 (varobj_gen_name): Use xasprintf.
2385 (varobj_update): Save and restore frame using get_frame_id() and
2387 (create_child): Use xasprintf.
2388 (new_root_variable): Initialize frame_id.
2389 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2390 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2391 to prevent memory leak.
2393 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2395 * valops.c (hand_function_call): Move declaration of retbuf to
2396 start of function, allocate using malloc, add a cleanup but before
2397 the inf_status cleanup, cleanup the buffer. Rename local variable
2398 old_chain to inf_status_cleanup.
2400 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2402 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2404 * cli/cli-decode.c (cmd_func_p): New function.
2405 (cmd_func): New function.
2407 * command.h: Add cmd_func() and cmd_func_p().
2409 2002-07-03 Grace Sainsbury <graces@redhat.com>
2411 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2412 (REGISTER_SIZE): Remove.
2413 (MAX_REGISTER_RAW_SIZE): Remove.
2414 (REGISTER_VIRTUAL_TYPE): Remove.
2415 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2416 (REGISTER_NAME): Remove.
2417 (USE_GENERIC_DUMMY_FRAMES): Remove.
2418 (CALL_DUMMY): Remove.
2419 (CALL_DUMMY_START_OFFSET): Remove.
2420 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2421 (CALL_DUMMY_LOCATION): Remove.
2422 (FIX_CALL_DUMMY): Remove.
2423 (CALL_DUMMY_ADDRESS): Remove.
2424 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2425 (SAVE_DUMMY_FRAME_TOS): Remove.
2426 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2427 (mcore_register_virtual_type): New function.
2428 (mcore_register_byte): New function.
2429 (mcore_register_size): New function.
2430 (mcore_register_name): New function.
2431 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2432 macros removed from tm-mcore.h.
2433 (mcore_dump_tdep): Add.
2434 (_initialize_mcore_tdep): Add gdbarch_register call.
2436 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2438 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2439 frameless_look_for_prologue, such that we actually call this
2442 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2444 * frame.h (frame_address_in_block): New function.
2446 * blockframe.c (frame_address_in_block): New function extracted
2447 from get_frame_block().
2448 (get_frame_block): Use frame_address_in_block().
2449 (block_innermost_frame): Use frame_address_in_block() to match
2450 the frame pc address against the block boundaries rather than
2451 the frame pc directly. This prevents a failure when a frame pc
2452 is actually a return-address pointing immediately after the end
2455 2002-07-02 Grace Sainsbury <graces@redhat.com>
2457 * MAINTAINERS: Add self under write after approval.
2459 2002-07-02 Grace Sainsbury <graces@redhat.com>
2461 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2462 used in architecture vector. The default is
2463 m68k_local_breakpoint_from_pc.
2464 (m68k_local_breakpoint_from_pc): Add.
2465 (enum): Add register numbers from tm-m68k.h.
2466 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2468 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2469 GDB_MULTI_ARCH_PARTIAL.
2470 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2471 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2473 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2474 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2475 to enum in m68k-tdep.c
2477 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2479 * solib-osf.c (open_map): Compute the list of shared libraries
2480 loaded by the inferior, rather than the list of libraries loaded
2481 by GDB itself. Otherwise, GDB ends up reading the symbols from
2482 the wrong shared libraries...
2484 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2486 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2487 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2489 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2491 (FRAMELESS_SIGNAL): Remove function.
2492 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2493 i386_linux_saved_pc_after_call): Removed.
2494 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2495 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2496 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2498 * i386-tdep.c (i386_frameless_signal_p): New function.
2499 (i386_frame_chain): Deal with frameless signals.
2500 (i386_sigtramp_saved_sp): New function.
2501 (i386_frame_saved_pc): Deal with frameless signals.
2502 (i386_saved_pc_after_call): Make sure the correct value is
2503 returned just after entry into a sigtramp.
2504 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2505 i386fbsd4_sc_sp_offset): New variables.
2506 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2507 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2508 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2509 similiar to what we already did for sc_pc_offset.
2510 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2513 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2515 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2517 * config/i386/tm-x86-64linux.h: New.
2518 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2520 * config/i386/nm-x86-64.h: Rename to ...
2521 * config/i386/nm-x86-64linux.h: ... this one.
2522 * config/i386/x86-64linux.mh: Reflect the above change.
2524 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2526 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2527 with sigcontext_addr. Add sc_sp_offset.
2528 (i386bsd_sigtramp_saved_pc): Remove prototype.
2529 (i386bsd_sicontext_addr): Add prototype.
2530 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2531 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2532 (i386_svr4_sigtramp_saved_pc): Removed.
2533 (i386_svr4_sigcontext_addr): New function.
2534 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2535 Initialize tdep->sigcontext_addr instead. Initialize
2536 tdep->sc_pc_offset and tdep->sc_sp_offset.
2537 (i386_gdbarch_init): Likewise.
2538 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2540 (i386bsd_sigtramp_saved_pc): Remove function.
2541 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2542 Initialize tdep->sigcontext_addr instead. Initialize
2544 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2545 of tdep->sigtramp_saved_pc.
2546 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2547 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2550 * i386-tdep.c (i386_frameless_function_invocation,
2551 i386_frame_num_args, i386_frame_init_saved_regs,
2552 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2553 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2554 i386_extract_return_value, i386_store_return_value,
2555 i386_extract_struct_value_address, i386_register_virtual_type,
2556 i386_register_convertible, i386_register_convert_to_virtual,
2557 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2558 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2561 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2563 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2565 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2566 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2567 this macro. Include "value.h".
2569 2002-06-30 Aidan Skinner <aidan@velvet.net>
2571 * ada-exp.tab.c: remove as it's a generated file
2572 * ada-lex.c: remove as it's a generated file
2574 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2576 * config/i386/tm-i386.h (struct frame_info, struct
2577 frame_saved_regs, struct value, struct type): Remove forward
2580 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2581 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2582 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2583 (FILL_FPXREGSET): Define.
2585 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2587 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2588 i[3456]86-*-netbsd* case.
2589 * config/i386/tm-obsd.h: Removed.
2590 * config/i386/obsd.mt: Removed.
2591 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2593 (MH_CFLAGS): Add -DYYDEBUG=0.
2595 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2596 i386nbsd_sc_pc_offset on OpenBSD too.
2598 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2599 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2600 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2602 * i386bsd-tdep.c: Include "arch-utils.h".
2603 (i386bsd_aout_in_solib_call_trampoline): New function.
2604 (i386bsd_init_abi): Set in_solib_call_trampoline to
2605 i386bsd_aout_in_solib_call_trampoline.
2606 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2607 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2609 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2611 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2612 (struct obstack, struct bcache): Add opaque declarations.
2613 * Makefile.in (macrotab_h): Update
2615 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2617 * blockframe.c (generic_find_dummy_frame): Change return type to
2618 ``struct regcache''.
2619 (struct dummy_frame): Replace field ``registers'' with regcache, a
2620 struct regcache object.
2621 (generic_find_dummy_frame): Update.
2622 (generic_push_dummy_frame): Update. Use regcache_xfree,
2623 regcache_xmalloc and regcache_cpy.
2624 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2626 (deprecated_generic_find_dummy_frame): Update.
2627 (generic_read_register_dummy): Update. Use
2628 regcache_read_as_address.
2629 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2630 (generic_get_saved_register): Update. Use regcache_read.
2632 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2634 * Makefile.in (objfiles_h): Add $(bcache_h).
2635 * objfiles.h: Include "bcache.h".
2637 * Makefile.in (symtab_h): Remove $(bcache_h).
2638 * symtab.h: Do not include "bcache.h".
2640 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2642 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2643 generic_func_frame_chain_valid.
2645 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2647 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2648 * config/i386/tm-fbsd.h: Likewise.
2650 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2652 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2653 generic_unwind_get_saved_register.
2655 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2657 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2658 * regcache.c (supply_register): Add missing argument to
2659 register_buffer call.
2661 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2663 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2664 Solaris /bin/grep does not not like it. From Peter Schauer.
2666 2002-06-26 Tom Tromey <tromey@redhat.com>
2668 * command.h (add_setshow_cmd): Declare.
2669 (add_setshow_cmd_full): Declare.
2670 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2671 returns void. Use add_setshow_cmd_full.
2672 (add_setshow_cmd_full): New function.
2673 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2674 (add_setshow_boolean_cmd): Likewise.
2676 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2678 * config/vax/tm-vax.h: Protect from multiple inclusion.
2679 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2680 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2681 * config/vax/tm-vaxbsd.h: ...here. New file.
2682 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2684 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2686 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2687 (BELIEVE_PCC_PROMOTION): Remove.
2688 (AP_REGNUM): Move to...
2689 * config/vax/nm-vax.h: ...here.
2690 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2691 (vax_breakpoint_from_pc): New function.
2692 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2693 and gdbarch_believe_pcc_promotion.
2695 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2697 * Makefile.in (vax_tdep_h): Define.
2698 (vax-tdep.o): Use $(vax_tdep_h).
2699 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2700 (vax_dump_tdep): New function.
2701 (_initialize_vax_tdep): Register vax_dump_tdep.
2702 * vax-tdep.h: Include osabi.h.
2703 (struct gdbarch_tdep): New.
2705 2002-06-26 Andrew Cagney <cagney@redhat.com>
2707 * frame.h (deprecated_generic_find_dummy_frame): Rename
2708 generic_find_dummy_frame.
2709 * blockframe.c (generic_find_dummy_frame): Make static.
2710 (deprecated_generic_find_dummy_frame): New function.
2711 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2712 generic_find_dummy_frame with deprecated_find_dummy_frame.
2713 (sh64_nofp_frame_init_saved_regs): Ditto.
2714 (sh_fp_frame_init_saved_regs): Ditto.
2715 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2716 (s390_frame_chain): Ditto.
2717 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2719 2002-06-26 Grace Sainsbury <graces@redhat.com>
2721 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2722 gdbarch vector are at the top.
2724 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2725 (FRAME_ARGS_ADDRESS): Remove.
2726 (FRAME_LOCALS_ADDRESS): Remove.
2727 (FRAME_NUM_ARGS): Remove.
2728 (FRAME_ARGS_SKIP): Remove.
2729 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2730 (m68k_gdbarch_init): Add gdbarch initializations for macros
2731 undefined in tm-m68k.h
2733 2002-06-26 Grace Sainsbury <graces@redhat.com>
2735 * monitor.h: Add the function regname to monitor_ops
2736 structure. This way NUM_REGS does not have to be a constant.
2737 * monitor.c (monitor_fetch_register): Added support for regname
2738 function. The function is called if the array regnames is NULL.
2739 (monitor_store_register): Same.
2740 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2742 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2743 cpu32bug_cmds.regname to point to new function.
2744 * abug-rom.c (abug_regname): Same as above.
2745 (init_abug_cmds): Same.
2746 * dbug-rom.c (dbug_regname): Same as above.
2747 (init_dbug_cmds): Same.
2748 * remote-est.c (est_regname): Same.
2749 (init_est_cmds): Same.
2750 * rom68k-rom.c (rom68k_regname): Same.
2751 (init_rom68k_cmds): Same.
2753 2002-06-25 Tom Tromey <tromey@redhat.com>
2755 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2757 2002-06-25 Andrew Cagney <cagney@redhat.com>
2759 * infrun.c (stop_registers): Change variable's type to ``struct
2761 (xmalloc_inferior_status): Delete function.
2762 (free_inferior_status): Delete function.
2763 (normal_stop): Use regcache_cpy.
2764 (struct inferior_status): Change type of fields ``stop_registers''
2765 and ``registers'' to ``struct regcache''.
2766 (write_inferior_status_register): Use regcache_write.
2767 (save_inferior_status): Instead of calling
2768 xmalloc_inferior_status, allocate the inf_status buffer directly.
2769 Use regcache_dup_no_passthrough and regcache_dup to save the
2771 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2772 Replace the stop_registers regcache instead of overriding it. Use
2773 regcache_xfree. Instead of calling free_inferior_status, xfree
2774 the buffer directly.
2775 (discard_inferior_status): Use regcache_xfree. Instead of calling
2776 free_inferior_status, xfree the buffer directly.
2777 (build_infrun): Use regcache_xmalloc.
2778 (_initialize_infrun): Delete redundant call to build_infrun.
2780 * Makefile.in (infcmd.o): Add $(regcache_h).
2782 * infcmd.c: Include "regcache.h".
2783 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2784 obtain the address of `stop_registers' register buffer.
2785 (print_return_value): Ditto.
2787 * inferior.h (struct regcache): Add opaque declaration.
2788 (stop_registers): Change variable's declared type to ``struct
2791 2002-06-24 Tom Tromey <tromey@redhat.com>
2793 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2794 * target.c (initialize_targets): Fixed typo in
2795 trust-readonly-sections `show' documentation.
2797 * main.c: Marked all strings with _().
2799 2002-06-24 Don Howard <dhoward@redhat.com>
2801 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2802 that means max CORE_ADDR+1.
2803 (lookup_mem_region): Ditto.
2804 (mem_info_command): Ditto.
2806 2002-06-24 Grace Sainsbury <graces@redhat.com>
2808 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2809 (REGISTER_BYTES_OK): Remove.
2810 (REGISTER_BYTES): Remove.
2811 (STORE_STRUCT_RETURN): Remove.
2812 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2813 (STORE_RETURN_VALUE): Remove.
2814 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2815 (FRAME_CHAIN): Remove.
2816 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2817 (FRAME_SAVED_PC): Remove.
2818 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2819 (m68k_store_struct_return): Add.
2820 (m68k_deprecated_extract_return_value): Add.
2821 (m68k_deprecated_extract_struct_value_address): Add.
2822 (m68k_store_return_value): Add.
2823 (m68k_frame_chain): Add.
2824 (m68k_frameless_function_invocation): Add.
2825 (m68k_frame_saved_pc): Add.
2826 (m68k_gdbarch_init): added set_gdbarch calls for new
2827 functions and deleted macros.
2829 2002-06-23 Tom Tromey <tromey@redhat.com>
2831 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2832 (ALLDEPFILES): Likewise.
2833 (udiheaders): Removed.
2834 (udip2soc.o): Likewise.
2835 (udi2go32.o): Likewise.
2837 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2839 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2841 * infrun.c (_initialize_infrun): Delete unnecessary call to
2844 * regcache.h: Update comments describing the regcache_cpy family
2846 (regcache_save, regcache_restore): Delete declaration.
2847 (regcache_save_no_passthrough): Delete declaration.
2848 (regcache_restore_no_passthrough): Delete declaration.
2849 * regcache.c (regcache_save): Delete function.
2850 (regcache_save_no_passthrough): Delete function.
2851 (regcache_restore): Delete function.
2852 (regcache_restore_no_passthrough): Delete function.
2854 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2856 * config/m68k/tm-m68k.h: Fix typo.
2857 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2858 (m68k_frame_init_saved_regs): Declare.
2860 2002-06-21 Jim Blandy <jimb@redhat.com>
2862 Remove some vestiges of Harris 88k support.
2863 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2864 register numbering quirk.
2865 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2866 odd symbols occurring in Harris 88k ELF targets.
2868 2002-06-21 Tom Tromey <tromey@redhat.com>
2870 * gdb_locale.h: New file.
2871 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2872 (defs_h): Added gdb_locale.h.
2873 * configure, config.in: Rebuilt.
2874 * configure.in (PACKAGE): Define.
2875 * defs.h: Include gdb_locale.h.
2876 * main.c (captured_main): Call setlocale, bindtextdomain,
2879 2002-06-21 Dave Brolley <brolley@redhat.com>
2881 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2882 * config/frv/frv.mt: New file.
2883 * config/frv/tm-frv.h: New file.
2884 * configure.tgt: Support frv-*-*.
2885 * Makefile.in (frv-tdep.o): New target.
2886 * frv-tdep.c: New file.
2887 * NEWS: Mention frv.
2889 2002-06-21 Dave Brolley <brolley@redhat.com>
2891 * MAINTAINERS: Add self to "Write After Approval" list.
2893 2002-06-21 Grace Sainsbury <graces@redhat.com>
2895 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2896 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2897 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2898 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2899 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2901 * m68k-tdep.c: Include arch-utils.h
2902 (m68k_register_raw_size): Add.
2903 (m68k_register_virtual_size): Add.
2904 (m68k_register_virtual_type): Add.
2905 (m68k_register_name): Add.
2906 (m68k_stack_align): Add.
2907 (m68k_register_byte): Add.
2908 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2911 2002-06-21 Grace Sainsbury <graces@redhat.com>
2913 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2914 m68k_find_saved_regs.
2915 (m68k_pop_frame): Removed saved_regs structure, and replaced
2916 references to it with frame->saved_regs.
2917 (m68k_gdbarch_init): Added function calls to initialize the
2919 (m68k_fix_call_dummy): Add.
2920 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2921 (CALL_DUMMY): Remove.
2922 (CALL_DUMMY_LENGTH): Remove.
2923 (CALL_DUMMY_START_OFFSET): Remove.
2924 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2925 (FIX_CALL_DUMMY): Remove.
2926 (PUSH_DUMMY_FRAME): Remove.
2927 (POP_FRAME): Remove.
2929 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2931 * parse.c (parse_fprintf): New function used to avoid calls to
2932 fprintf in bison parser generated debug code.
2933 * parser-defs.h: Declaration of new parse_fprintf function.
2934 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2935 Set YYDEBUG to 1 by default.
2936 Set YYFPRINTF as parse_fprintf.
2938 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2940 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2942 (pointer_encoding, enum ptr_encoding): New.
2943 (execute_cfa_program): Take care about pointer encoding.
2944 (dwarf2_build_frame_info): Only call parse_frame_info for
2945 .debug_frame and .eh_frame.
2946 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2947 fixed augmentation handling, added relative addressing,
2948 ignore duplicate FDEs. Added comments.
2949 * dwarf2cfi.c: Reindented.
2951 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2953 * event-top.c (command_handler): Don't use space_at_cmd_start
2954 unless there is sbrk() on the host. Assign time and space data
2955 to union fields of the appropriate length.
2957 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2959 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2960 x86_64_register_name. Return type changed to 'const char *'.
2961 (x86_64_register_name2nr): Rename to x86_64_register_number.
2962 (x86_64_gdbarch_init): Update to reflect the change.
2963 * x86-64-tdep.h: Ditto.
2964 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2965 (supply_fpregset): Ditto.
2967 2002-06-19 Andrew Cagney <cagney@redhat.com>
2969 * regcache.h: Update copyright.
2970 (struct regcache, struct gdbarch): Add opaque declarations.
2971 (current_regcache): Declare global variable.
2972 (regcache_read, regcache_write): Add gdbarch parameter.
2973 (regcache_save, regcache_save_no_passthrough)
2974 (regcache_restore, regcache_restore_no_passthrough)
2975 (regcache_dup, regcache_dup_no_passthrough)
2976 (regcache_cpy, regcache_cpy_no_passthrough)
2977 (deprecated_grub_regcache_for_registers)
2978 (deprecated_grub_regcache_for_register_valid)
2979 (regcache_valid_p): Add function declarations.
2981 * regcache.c: Update copyright.
2982 (regcache_descr_handle): New global variable.
2983 (struct regcache_descr): Define.
2984 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2985 (regcache_descr, xfree_regcache_descr): New functions.
2986 (struct regcache): Define.
2987 (regcache_xmalloc, regcache_xfree): New functions.
2988 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2989 (regcache_dup, regcache_dup_no_passthrough): New functions.
2990 (regcache_valid_p, regcache_read_as_address): New functions.
2991 (deprecated_grub_regcache_for_registers): New function.
2992 (deprecated_grub_regcache_for_register_valid): New function.
2993 (current_regcache): New global variable.
2994 (register_buffer): Add regcache parameter. Update calls.
2995 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2996 (read_register_gen, write_register_gen): Update register_buffer
2997 call. Test for legacy_p instead of gdbarch_register_read_p or
2998 gdbarch_register_write_p.
2999 (regcache_collect): Update register_buffer call.
3000 (build_regcache): Rewrite. Use deprecated grub functions.
3001 (regcache_save, regcache_save_no_passthrough): New functions.
3002 (regcache_restore, regcache_restore_no_passthrough): New
3004 (_initialize_regcache): Create the regcache_data_handle. Swap
3005 current_regcache global variable.
3007 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3008 parameter to regcache_read and regcache_write calls.
3009 (sh4_register_read): Ditto.
3010 (sh64_pseudo_register_read): Ditto.
3011 (sh64_register_read): Ditto.
3012 (sh_pseudo_register_write): Ditto.
3013 (sh4_register_write): Ditto.
3014 (sh64_pseudo_register_write): Ditto.
3015 (sh64_register_write): Ditto.
3017 * defs.h (XCALLOC): Define.
3019 2002-06-19 Grace Sainsbury <graces@redhat.com>
3021 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3022 * m68k-tdep.c (m68k_gdbarch_init): Added.
3023 (m68k_dump_tdep): Added.
3025 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3027 * ada-lang.c (fill_in_ada_prototype): Update comment.
3029 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3031 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3033 (mips_abi_string, mips_abi_strings): New.
3034 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3035 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3036 tdep->mips_abi_string. Honor mips_abi_string. Default to
3037 O32 if no ABI is found.
3038 (mips_dump_tdep): Use mips_abi_strings.
3039 (mips_abi_update): New function.
3040 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3041 ``set mips abi'' and ``show mips abi''. Check the size of
3044 2002-06-19 Andrew Cagney <cagney@redhat.com>
3046 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3049 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3051 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3052 current frame using only the first stack size adjustment. All
3053 subsequent size adjustments are not considered to be part of
3054 the "static" part of the current frame.
3055 Compute the address of the saved registers relative to the
3056 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3057 in use in this frame.
3059 2002-06-18 Don Howard <dhoward@redhat.com>
3061 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3062 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3063 suggesting this solution.
3065 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3067 * config/romp/xm-rtbsd.h: Delete file.
3068 * config/romp/rtbsd.mh: Delete file.
3070 2002-06-18 Keith Seitz <keiths@redhat.com>
3072 * breakpoint.c (condition_command): Post breakpoint_modify
3073 when a condition is added to an existing breakpoint.
3074 (commands_command): Likewise for commands.
3075 (set_ignore_count): Likewise for ignore counts.
3076 If no tty, do not simply return, still need to send event
3078 (ignore_command): Only print a newline if the command came
3080 Don't call breakpoints_changed, since this is now properly
3081 handled by set_ignore_count.
3083 2002-06-18 Andrew Cagney <cagney@redhat.com>
3085 * MAINTAINERS: Note that cris-elf target can be compiled with
3087 * cris-tdep.c (cris_register_name): Make return type constant.
3088 (cris_breakpoint_from_pc): Ditto.
3090 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3092 * frame.h (struct frame_info): Change type of context to
3095 2002-06-17 Andrew Cagney <cagney@redhat.com>
3097 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3099 * gdbarch.h, gdbarch.c: Regenerate.
3100 * config/mips/tm-mips.h (mips_register_name): Update.
3101 * i386-tdep.h (i386_register_name): Update.
3102 * mips-tdep.c (mips_register_name): Update
3103 * alpha-tdep.c (alpha_register_name): Update.
3104 * arch-utils.c (legacy_register_name): Update.
3105 * arch-utils.h (legacy_register_name): Update.
3106 * avr-tdep.c (avr_register_name): Update.
3107 * ia64-tdep.c (ia64_register_name): Update.
3108 * i386-tdep.c (i386_register_name): Update.
3109 * sparc-tdep.c (sparc32_register_name): Update.
3110 (sparc64_register_name): Update.
3111 (sparclite_register_name): Update.
3112 (sparclet_register_name): Update.
3113 * sh-tdep.c (sh_generic_register_name): Update.
3114 (sh_sh_register_name): Update.
3115 (sh_sh3_register_name): Update.
3116 (sh_sh3e_register_name): Update.
3117 (sh_sh_dsp_register_name): Update.
3118 (sh_sh3_dsp_register_name): Update.
3119 (sh_sh4_register_name): Update.
3120 (sh_sh64_register_name): Update.
3121 * s390-tdep.c (s390_register_name): Update.
3122 * rs6000-tdep.c (rs6000_register_name): Update.
3123 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3124 (ns32k_register_name_32382): Update.
3125 * d10v-tdep.c (d10v_ts2_register_name): Update.
3126 (d10v_ts3_register_name): Update.
3127 * xstormy16-tdep.c (xstormy16_register_name): Update.
3128 * vax-tdep.c (vax_register_name): Update.
3129 * v850-tdep.c (v850_register_name): Update.
3130 * m68hc11-tdep.c (m68hc11_register_name): Update.
3131 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3132 (am33_register_name): Update.
3134 2002-06-17 Grace Sainsbury <graces@redhat.com>
3136 * m68k-tdep.c: Reindented.
3138 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3140 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3141 list of predefined types.
3143 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3145 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3146 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3147 REGISTER_CONVERT_TO_RAW): Remove defines.
3148 (i386_register_virtual_type, i386_register_convertible,
3149 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3151 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3152 macros mentioned above.
3154 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3155 (i386lynx_saved_pc_after_call): Remove prototype.
3156 * i386ly-tdep.c: Include "i386-tdep.h".
3157 (i386lynx_saved_pc_after_call): Make static. Use
3158 read_memory_nobpt instead of read_memory. Use
3159 read_memory_unsigned_integer instead of read_memory_integer.
3160 (i386lynx_init_abi): New function.
3161 (i386lynx_coff_osabi_sniffer): New function.
3162 (_initialize_i386bsd_tdep): New function.
3164 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3165 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3166 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3167 (i386_fix_call_dummy): Remove prototype.
3168 * i386-tdep.c (i386_call_dummy_words): New variable.
3169 (i386_gdbarch_init): Adjust for removal of the
3170 macros mentioned above.
3172 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3174 * command.h (add_setshow_auto_boolean_cmd): Replace
3175 add_set_auto_boolean_cmd.
3176 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3177 add_set_auto_boolean_cmd.
3178 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3179 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3180 mask-address'' command.
3181 (show_mask_address): Add cmd parameter.
3182 * remote.c (add_packet_config_cmd): Update. Change type of
3183 set_func and show_func to cmd_sfunc_ftype.
3184 (_initialize_remote): Update `set remote Z-packet'
3185 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3186 (show_remote_protocol_e_packet_cmd): Ditto.
3187 (show_remote_protocol_E_packet_cmd): Ditto.
3188 (show_remote_protocol_P_packet_cmd): Ditto.
3189 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3190 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3191 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3192 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3193 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3194 (show_remote_protocol_Z_packet_cmd): Ditto.
3195 (show_remote_protocol_binary_download_cmd): Ditto.
3196 (show_remote_cmd): Pass NULL to all of above.
3198 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3200 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3201 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3202 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3203 POP_FRAME): Remove defines.
3204 (i386_push_arguments, i386_store_struct_return,
3205 i386_extract_return_value, i386_store_return_value,
3206 i386_extract_struct_value_address, i386_push_dummy_frame,
3207 i386_pop_frame): Renove prototypes.
3208 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3209 macros mentioned above.
3211 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3213 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3214 add_set_boolean_cmd.
3215 (add_setshow_cmd): New function.
3216 * command.h (add_setshow_boolean_cmd): Replace
3217 add_set_boolean_cmd.
3218 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3219 and ``set rdiromatzero''.
3220 * maint.c (_initialize_maint_cmds): Update commented out code.
3221 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3222 * target.c (initialize_targets): Update `set
3223 trust-readonly-sections'.
3224 * remote.c (_initialize_remote): Update `set remotebreak'.
3226 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3228 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3229 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3230 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3231 fit into multi-arch framework.
3232 (i386_breakpoint_from_pc): New function.
3233 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3236 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3237 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3238 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3239 (i386_frameless_function_invocation, i386_frame_num_args,
3240 i386_frame_init_saved_regs): Remove prototypes.
3241 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3242 macros mentioned above.
3244 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3246 * cli/cli-decode.c (set_cmd_cfunc): Update.
3247 (set_cmd_sfunc): Update.
3248 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3249 (set_cmd_sfunc, set_cmd_cfunc): Update.
3250 * cli/cli-decode.h: Update.
3252 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3254 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3255 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3257 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3259 * defs.h (auto_boolean): Declare enum.
3260 * command.h (cmd_auto_boolean): Delete enum.
3261 * mips-tdep.c (mask_address_var): Update.
3262 (mips_mask_address_p): Update.
3263 (show_mask_address): Update.
3264 * remote.c (struct packet_config): Update.
3265 (update_packet_config): Update.
3266 (show_packet_config_cmd): Update.
3267 (packet_ok): Update.
3268 (add_packet_config_cmd): Update.
3269 (_initialize_remote):
3270 * command.h: Update.
3271 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3272 (do_setshow_command): Update.
3273 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3274 * cli/cli-decode.h: Update.
3276 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3278 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3279 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3280 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3281 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3282 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3283 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3285 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3286 list of DJGPP COFF targets.
3288 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3289 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3290 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3291 (FP0_REGNUM): Remove define.
3292 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3293 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3294 (i386_register_virtual_size): Remove protoype.
3295 * i386-tdep.c (i386_register_virtual_size): Removed.
3296 (i386_extract_return_value, i386_store_return_value): Use
3297 FP0_REGNUM instead of NUM_FREGS to determine whether the
3298 floating-point registers are available.
3299 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3300 Adjust for removal of macros mentioned above.
3302 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3304 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3306 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3308 (supply_gregset, fill_gregset): Remove use of register keyword and
3309 remove declaration for regmap. Use I386_NUM_GREGS instead of
3310 NUM_REGS and NUM_FREGS.
3311 (FPREGSET_FSAVE_OFFSET): Remove.
3312 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3313 NUM_FREGS to determine whether the floating-point registers are
3316 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3317 gnu_store_registers): Replace usage of NUM_GREGS with
3320 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3321 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3322 usage of NUM_GREGS with I386_NUM_GREGS.
3324 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3326 * i386bsd-nat.c: Include "i386-tdep.h".
3327 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3330 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3331 and associated comment. They no longer make any sense, since we
3332 don't use this file anymore on Linux.
3334 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3335 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3336 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3337 elements in these arrays.
3338 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3341 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3343 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3344 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3346 2002-06-14 Andrew Cagney <cagney@redhat.com>
3348 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3349 EXTRACT_RETURN_VALUE.
3350 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3351 EXTRACT_STRUCT_VALUE_ADDRESS.
3352 * gdbarch.h, gdbarch.c: Regenerate.
3354 * values.c (value_being_returned): Handle
3355 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3356 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3358 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3359 * arm-tdep.c (arm_gdbarch_init): Update.
3360 * avr-tdep.c (avr_gdbarch_init): Update.
3361 * cris-tdep.c (cris_gdbarch_init): Update.
3362 * d10v-tdep.c (d10v_gdbarch_init): Update.
3363 * ia64-tdep.c (ia64_gdbarch_init): Update.
3364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3365 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3366 * s390-tdep.c (s390_gdbarch_init): Update.
3367 * sh-tdep.c (sh_gdbarch_init): Update.
3368 * s390-tdep.c (s390_gdbarch_init): Update.
3369 * sparc-tdep.c (sparc_gdbarch_init): Update.
3370 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3371 * v850-tdep.c (v850_gdbarch_init): Update.
3372 * vax-tdep.c (vax_gdbarch_init): Update.
3373 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3376 * config/arc/tm-arc.h: Update.
3377 * config/d30v/tm-d30v.h: Update.
3378 * config/fr30/tm-fr30.h: Update.
3379 * config/h8300/tm-h8300.h: Update.
3380 * config/h8500/tm-h8500.h: Update.
3381 * config/i386/tm-i386.h: Update.
3382 * config/i386/tm-ptx.h: Update.
3383 * config/i386/tm-symmetry.h: Update.
3384 * config/i960/tm-i960.h: Update.
3385 * config/m32r/tm-m32r.h: Update.
3386 * config/m68k/tm-delta68.h: Update.
3387 * config/m68k/tm-linux.h: Update.
3388 * config/m68k/tm-m68k.h: Update.
3389 * config/m88k/tm-m88k.h: Update.
3390 * config/mcore/tm-mcore.h: Update.
3391 * config/mips/tm-mips.h: Update.
3392 * config/mn10200/tm-mn10200.h: Update.
3393 * config/pa/tm-hppa.h: Update.
3394 * config/pa/tm-hppa64.h: Update.
3395 * config/sparc/tm-sp64.h: Update.
3396 * config/sparc/tm-sparc.h: Update.
3397 * config/sparc/tm-sparclet.h: Update.
3398 * config/z8k/tm-z8k.h: Update.
3400 2002-06-14 Andrew Cagney <cagney@redhat.com>
3402 * Makefile.in (i386_linux_tdep_h): Define.
3403 (i386_tdep_h, i387_tdep_h): Define.
3404 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3405 $(i386_tdep_h) and $(i387_tdep_h).
3406 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3408 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3410 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3411 Already covered by the default.
3413 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3414 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3415 (i386_gdbarch_init): Initialize long_double_format and long_double
3418 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3419 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3421 * config/i386/i386sol2.mh: ... here.
3422 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3423 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3424 (SIGCONTEXT_PC_OFFSET): Remove define.
3425 (IN_SIGTRAMP): Remove define.
3426 * i386-sol2-tdep.c: New file.
3428 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3429 * config/i386/tm-i386nw.h: Removed.
3431 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3432 USE_STRUCT_CONVENTION): Remove defines.
3433 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3434 (get_longjmp_target): Remove prototype.
3435 (IN_SIGTRAMP): Remove define.
3436 (i386bsd_in_sigtramp): Remove prototype.
3437 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3438 function. Update comment accordingly
3439 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3440 (FRAME_SAVED_PC): Remove define.
3441 (i386bsd_frame_saved_pc): Remove prototype.
3442 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3443 GET_LONGJMP_TARGET): Remove defines.
3444 (get_longjmp_target): Remove prototype.
3445 (IN_SIGTRAMP): Remove define.
3446 (i386bsd_in_sigtramp): Remove prototype.
3447 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3448 function. Update comment accordingly
3449 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3450 (FRAME_SAVED_PC): Remove define.
3451 (i386bsd_frame_saved_pc): Remove prototype.
3452 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3454 (USE_STRUCT_CONVENTION): Remove prototype.
3455 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3457 (_initialize_i386bsd_nat): Revise logic to determine some
3458 constants at compile time when compiling a native GDB. Warn if
3459 things don't match up with what we expect.
3460 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3462 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3463 to use date stored in `struct gdbarch_tdep'.
3464 (i386bsd_sigcontext_offset): Remove varaible.
3465 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3466 stored in `struct gdbarch_tdep'.
3467 (i386bsd_frame_saved_pc): Make static.
3468 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3469 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3470 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3471 i386fbsd4_sc_pc_offset): New variables.
3472 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3473 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3475 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3477 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3478 Modify the value of i386fbsd_sigtramp_start and
3479 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3480 i386fbsd_sigtramp_end.
3481 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3484 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3485 define to i386-linux-tdep.h.
3486 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3487 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3489 (i386_linux_register_name, i386_linux_register_byte,
3490 i386_linux_register_raw_size): Remove prototypes.
3491 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3492 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3493 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3494 TARGET_WRITE_PC): Remove defines.
3495 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3496 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3497 i386_linux_write_pc): Remove prototypes.
3498 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3499 (get_longjmp_target): Remove prototype.
3500 * i386-linux-tdep.h: New file.
3501 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3502 * i386-linux-tdep.c: Include "i386-tdep.h" and
3503 "i386-linux-tdep.h".
3504 (i386_linux_register_name, i386_linux_register_byte,
3505 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3506 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3508 (i386_linux_init_abi): New function.
3509 (_initialize_i386_linux_tdep): New function.
3511 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3512 (i386_saved_pc_after_call): Remove prototype.
3513 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3514 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3515 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3516 (i386_register_name, i386_stab_reg_to_regnum,
3517 i386_dwarf_reg_to_regnum): Remove prototypes.
3518 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3519 SIZEOF_SSE_REGS): Remove defines.
3520 (REGISTER_BYTES): Remove define.
3521 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3522 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3523 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3524 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3525 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3526 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3527 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3528 (get_longjmp_target): Remove prototype.
3529 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3530 (sigtramp_saved_pc): Remove define.
3531 (i386v4_sigtramp_saved_pc): Remove prototype.
3532 * config/i386/tm-go32.h (FRAME_CHAIN,
3533 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3534 (i386go32_frame_saved_pc): Remove prototype.
3535 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3536 (get_longjmp_target): Remove prototype.
3537 * i386-tdep.h: Include "osabi.h".
3538 (enum i386_abi): Removed.
3539 (enum struct_return): New enum.
3540 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3541 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3542 sc_pc_offset members.
3543 (i386_gdbarch_register_os_abi): Remove prototype.
3544 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3545 I386_SSE_NUM_REGS): New defines.
3546 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3547 I386_SSE_SIZEOF_REGS): New defines.
3548 (i386_register_name, i386_register_byte, i386_register_raw_size):
3550 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3551 (i386bsd_sigtramp_saved_pc): New prototype.
3552 * i386-tdep.c: Don't include "elf-bfd.h".
3553 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3554 i386_frame_chain, i386_saved_pc_after_call): Make static.
3555 (i386_frame_saved_pc): Rewrite to call architecture dependent
3556 function to deal with signal handlers. Make static.
3557 (i386go32_frame_saved_pc): Removed.
3558 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3560 (i386_get_longjmp_target): New function.
3561 (default_struct_convention, pcc_struct_convention,
3562 reg_struct_convention, valid_conventions, struct_convention): New
3564 (i386_use_struct_convention): New function.
3565 (i386v4_sigtramp_saved_pc): Renamed to
3566 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3567 (i386_pc_in_sigtramp): New function.
3568 (i386_abi_names): Removed.
3569 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3570 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3572 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3573 i386_gdbarch_register_os_abi): Removed.
3574 (struct i386_abi_handler): Removed.
3575 (i386_abi_handler_list): Removed.
3576 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3578 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3579 i386_nw_init_abi): New functions.
3580 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3581 Use set_gdbarch_xxx() calls instead of relying on macros for a
3583 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3584 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3585 Register the various architecture variants defined in this file.
3587 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3589 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3590 (struct main_type): Remove arg_types member. Update comments for
3592 (TYPE_ARG_TYPES): Remove.
3593 (TYPE_FN_FIELD_ARGS): Update.
3594 (smash_to_method_type): Update prototype.
3596 * c-typeprint.c (cp_type_print_method_args): Take method type
3597 instead of argument list. Use new argument layout. Simplify.
3598 (c_type_print_args): Use new argument layout. Simplify.
3599 (c_type_print_base): Update call to cp_type_print_method_args.
3600 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3601 argument; use die->type instead. Update call to
3602 smash_to_method_type.
3603 (read_structure_scope): Update call to dwarf2_add_member_fn.
3604 * gdbtypes.c (allocate_stub_method): Update comment.
3605 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3606 Use new argument layout.
3607 (check_stub_method): Use new argument layout. Don't count
3608 void as an argument.
3609 (print_arg_types): Update comments. Use new argument layout.
3610 (recursive_dump_type): Don't print arg_types member.
3611 * hpread.c (hpread_read_struct_type): Use new argument layout.
3612 (fixup_class_method_type): Likewise.
3613 (hpread_type_lookup): Likewise.
3614 * stabsread.c (read_type): Update calls to read_args and
3615 smash_to_method_type.
3616 (read_args): Use new argument layout. Simplify.
3617 * valops.c (typecmp): Use new argument layout. Update parameters
3618 and comments. Simplify.
3619 (hand_function_call): Use new argument layout.
3620 (search_struct_method): Update call to typecmp.
3621 (find_overload_match): Use new argument layout.
3623 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3625 * NEWS: Mention multithreaded debug support for gdbserver.
3627 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3629 * MAINTAINERS: Mention NEWS.
3631 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3633 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3634 (struct mips_objfile_private, compare_pdr_entries): New.
3635 (non_heuristic_proc_desc): Read the ".pdr" section if it
3638 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3640 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3641 (arm_debug): New static variable.
3642 (_initialize_arm_tdep): Add ``set debug arm'' command.
3644 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3646 * Makefile.in (sim_arm_h): Define.
3647 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3648 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3649 (arm_register_sim_regno): New function, map an internal REGNUM
3650 onto a simulator register number.
3651 (arm_gdbarch_init): Set register_sim_regno.
3653 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3655 * MAINTAINERS: Add self.
3657 2002-06-11 Jim Blandy <jimb@redhat.com>
3659 * source.c (source_info): Mention whether the symtab has
3660 information about preprocessor macros.
3662 Call the command `info macro', not `show macro'.
3663 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3665 (_initialize_macrocmd): Register `info_macro_command' in
3666 `infolist', not `showlist'.
3668 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3670 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3671 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3672 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3673 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3674 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3676 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3677 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3678 (_initialize_mips_tdep): Remove dead code.
3679 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3680 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3681 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3682 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3683 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3684 MIPS_LAST_FP_ARG_REGNUM): Remove.
3686 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3688 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3689 (unwind_tmp_obstack_free, parse_frame_info)
3690 (update_context, cfi_read_fp, cfi_write_fp)
3691 (cfi_frame_chain, cfi_init_extra_frame_info)
3692 (cfi_virtual_frame_pointer): Use the above function.
3693 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3695 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3697 * v850-tdep.c (v850_type_is_scalar): New function.
3698 (v850_use_struct_convention): Match current gcc implementation
3699 as close as possible.
3700 (v850_push_arguments): Fix stack_offset handling. Don't write
3701 struct_addr into register. This is done by v850_store_struct_return.
3702 (v850_extract_return_value): Care for structs.
3703 (v850_store_return_value): Ditto.
3704 (v850_store_struct_return): Actually write address.
3706 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3708 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3709 without debug information too.
3711 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3713 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3714 Make multi-arch pure.
3715 * gdbarch.h, gdbarch.c: Re-generate.
3716 * arm-tdep.c (arm_print_float_info): Update.
3717 * arch-utils.h (default_print_float_info): Update.
3718 * arch-utils.c (default_print_float_info): Update.
3719 * infcmd.c (float_info): Update call.
3721 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3723 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3724 the front of the initialize list.
3726 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3728 * infrun.c (struct inferior_status): Replace fields
3729 selected_frame_address and selected_level with field
3731 (save_inferior_status): Update. Use get_frame_id.
3732 (struct restore_selected_frame_args): Delete.
3733 (restore_selected_frame): Update. Use frame_find_by_id.
3734 (restore_inferior_status): Update.
3736 * breakpoint.h (struct breakpoint): Change type of
3737 watchpoint_frame to frame_id.
3738 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3739 call to get_current_frame.
3740 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3742 (watchpoint_check): Use frame_find_by_id.
3744 * frame.h (record_selected_frame): Delete declaration.
3745 * stack.c (record_selected_frame): Delete function.
3747 * frame.h (struct frame_id): Define.
3748 (get_frame_id): Declare.
3749 (frame_find_by_id): Declare.
3750 * frame.c (frame_find_by_id): New function.
3751 (get_frame_id): New function.
3753 2002-06-10 Andrey Volkov <avolkov@transas.com>
3755 * ser-e7kpc.c: Fix duplicated define and call of
3756 _initialize_ser_e7000pc
3758 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3760 * signals/signals.c (target_signal_from_host): Fix #ifdef
3762 (do_target_signal_to_host): Likewise.
3764 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3766 * mips-tdep.c (mips_find_abi_section): New function.
3767 (mips_gdbarch_init): Call it.
3769 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3771 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3772 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3773 after Andrew's 2002-06-08 gdbarch change.
3775 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3777 * i386-linux-nat.c (suppy_gregset): Don't supply
3778 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3780 (fill_gregset): Don't fetch it under the same circumstances.
3782 2002-06-09 Andrew Cagney <cagney@redhat.com>
3784 * Makefile.in (callback_h): Define.
3785 (remote_sim_h): Update path to remote-sim.h.
3786 (remote-rdp.o): Add $(callback_h).
3787 (remote-sim.o): Use $(callback_h).
3788 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3789 * remote-rdp.c: Include "gdb/callback.h".
3791 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3793 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3794 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3796 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3798 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3799 * rdi-share/serpardr.c: Ditto.
3800 * rdi-share/unixcomm.c: Ditto.
3801 * rdi-share/serdrv.c: Ditto.
3802 * rdi-share/hostchan.h: Ditto.
3803 * rdi-share/hostchan.c: Ditto.
3804 * rdi-share/host.h: Ditto.
3805 * rdi-share/devsw.c: Ditto.
3807 * objfiles.h: Change type of obj_private to void pointer.
3808 * pa64solib.c: Update copyright. Don't include "assert.h", use
3809 strcmp instead of STREQ, use LONGEST, do not use PTR
3810 * somsolib.c: Ditto.
3812 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3813 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3814 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3816 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3818 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3819 (default_get_saved_register): Delete function.
3820 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3821 generic_unwind_get_saved_register.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3824 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3826 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3827 generic_func_frame_chain_valid.
3828 * gdbarch.h, gdbarch.c: Re-generate.
3829 * blockframe.c (generic_func_frame_chain_valid): Only check
3830 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3831 passing FP to PC_IN_CALL_DUMMY.
3834 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3836 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3837 (register_gdbarch_data): Initialize init_p.
3838 (gdbarch_data): Initialize data pointer using the init function.
3839 (init_gdbarch_data): Delete function.
3840 (gdbarch_update_p): Update.
3841 (initialize_non_multiarch): Update.
3842 (struct gdbarch): Add field initialized_p.
3843 * gdbarch.h, gdbarch.c: Re-generate.
3845 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3847 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3848 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3849 better do the things actually here.
3850 * x86-64-tdep.c (x86_64_register_name2nr): New.
3851 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3852 (x86_64_gdbarch_init): Respect the above change.
3853 * x86-64-tdep.h (x86_64_register_name2nr)
3854 (x86_64_register_nr2name): Add prototypes.
3855 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3857 2002-06-06 Michael Snyder <msnyder@redhat.com>
3859 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3860 Delete extra braces and re-indent.
3861 (d10v_store_return_value): Char return values
3862 must be shifted over by one byte in R0.
3863 (d10v_extract_return_value): Delete extra braces, re-indent.
3865 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3867 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3868 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3869 (d10v_integer_to_address): Rewrite.
3870 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3871 the d10v specific functions which take care of converting to the
3874 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3876 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3877 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3879 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3881 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3883 * config/tm-linux.h: Ditto.
3884 * config/alpha/tm-alphalinux.h: Ditto.
3885 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3886 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3887 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3888 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3889 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3890 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3891 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3892 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3893 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3894 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3895 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3896 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3897 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3898 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3899 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3900 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3901 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3902 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3903 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3904 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3905 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3906 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3907 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3908 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3909 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3910 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3911 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3912 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3913 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3914 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3915 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3916 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3917 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3918 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3919 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3920 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3921 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3923 2002-05-04 Aidan Skinner <aidan@velvet.net>
3925 * ada-exp.tab.c: New file
3926 * ada-exp.y: New file
3927 * ada-lang.c: New file
3928 * ada-lang.h: New file
3929 * ada-lex.c: New file
3930 * ada-lex.l: New file
3931 * ada-tasks.c: New file
3932 * ada-typeprint.c: New file
3933 * ada-valprint.c: New file
3935 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3937 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3938 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3940 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3942 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3943 insetead of ppc-linux-tdep.o.
3944 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3945 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3947 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3949 2002-05-07 Christian Groessler <chris@groessler.org>
3950 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3951 bit register contents for little endian hosts.
3953 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3955 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3958 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3960 * gdbarch.h: Regenerate.
3962 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3964 * MAINTAINERS: Add everyone to write-after-approval list.
3966 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3968 * stack.c (frame_info): Use frame_register_unwind instead of
3969 saved_regs. Mention when the SP is on the stack or in a register.
3971 * frame.h (frame_register_unwind_ftype): Define. Document.
3972 (struct frame_info): Add field register_unwind and
3973 register_unwind_cache.
3974 (frame_register_unwind): Declare.
3975 (generic_unwind_get_saved_register): Declare.
3977 * frame.c (frame_register_unwind): New function.
3978 (generic_unwind_get_saved_register): New function.
3980 * blockframe.c (generic_call_dummy_register_unwind): New function.
3981 (frame_saved_regs_register_unwind): New function.
3982 (set_unwind_by_pc): New function.
3983 (create_new_frame): New function.
3984 (get_prev_frame): New function.
3986 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3988 * a29k-share/: Delete directory.
3989 * remote-vx29k.c: Delete file.
3991 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3993 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3994 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3996 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3998 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3999 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4002 (sparcnbsd-tdep.o): New dependency lists.
4003 * NEWS: Note new UltraSPARC NetBSD native configuration.
4004 * configure.host (sparc64-*-netbsd*): New host.
4005 * configure.tgt (sparc-*-netbsdelf*)
4006 (sparc-*-netbsd*): Set gdb_target to nbsd.
4007 (sparc64-*-netbsd*): New target.
4008 * sparc64nbsd-nat.c: New file.
4009 * sparcnbsd-nat.c: New file.
4010 * sparcnbsd-tdep.c: New file.
4011 * sparcnbsd-tdep.h: New file.
4012 * config/sparc/nbsd.mt: New file.
4013 * config/sparc/nbsd64.mh: New file.
4014 * config/sparc/nbsd64.mt: New file.
4015 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4016 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4018 * config/sparc/nbsdaout.mt: Remove.
4019 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4020 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4022 * config/sparc/nbsdelf.mt: Remove.
4023 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4024 sparc-nat.c compatiblity defines.
4025 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4026 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4027 * config/sparc/tm-nbsd64.h: New file.
4028 * config/sparc/tm-nbsdaout.h: Remove.
4029 * config/sparc/xm-nbsd.h: Remove.
4031 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4033 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4034 * sparc-tdep.c: Include osabi.h.
4035 (gdbarch_tdep): Add osabi member.
4036 (_initialize_sparc_tdep): Use gdbarch_register.
4037 (sparc_gdbarch_init): Use generic OS ABI framework.
4038 (sparc_dump_tdep): New function.
4040 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4042 * corefile.c (do_captured_read_memory_integer): Return non-zero
4044 (safe_read_memory_integer): Copy result of memory read when
4045 status is non-zero. Also, add comments.
4047 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4049 * Makefile.in (ppc_tdep_h): Define.
4052 (rs6000-tdep.o): Use $(ppc_tdep_h).
4055 (ppcnbsd-tdep.o): New dependency lists.
4056 * ppc-tdep.h: Use generic OS ABI framework.
4057 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4058 (ppc_linux_init_abi): New functions.
4059 (ppc_sysv_abi_broken_use_struct_convention)
4060 (ppc_sysv_abi_use_struct_convention)
4061 (ppc_sysv_abi_push_arguments): Move to...
4062 * ppc-sysv-tdep.c: ...here.
4063 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4064 * rs6000-tdep.c (process_note_abi_tag_sections)
4065 (get_elfosabi): Remove.
4066 (rs6000_gdbarch_init): Use generic OS ABI framework.
4067 (rs6000_dump_tdep): New function.
4068 (_initialize_rs6000_tdep): Use gdbarch_register.
4069 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4070 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4071 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4072 of ppc-linux-tdep.o.
4073 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4074 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4075 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4076 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4077 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4078 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4080 2002-05-29 Jim Blandy <jimb@redhat.com>
4082 * macroscope.c (default_macro_scope): Put `void' in empty argument
4085 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4087 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4088 * arch-utils.c: Include "sim-regno.h".
4089 * gdbarch.sh: Don't include "sim-regno.h".
4090 * gdbarch.h, gdbarch.c: Regenerate.
4091 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4093 * arch-utils.h (legacy_register_sim_regno): To here.
4094 * remote-sim.c (legacy_register_sim_regno): Move function from
4096 * arch-utils.c (legacy_register_sim_regno): To here.
4098 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4100 * sim-regno.h: New file.
4101 * Makefile.in (sim_regno_h): Define.
4102 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4103 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4104 (legacy_register_sim_regno): New function.
4105 (one2one_register_sim_regno): New function.
4106 (gdbsim_fetch_register): Rewrite.
4107 (gdbsim_store_register): Only store a register when
4108 REGISTER_SIM_REGNO is valid.
4109 * d10v-tdep.c: Include "sim-regno.h".
4110 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4111 (d10v_ts3_register_sim_regno): Ditto.
4112 * gdbarch.sh: Include "sim-regno.h".
4113 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4114 * gdbarch.h, gdbarch.c: Regenerate.
4115 * arch-utils.h (default_register_sim_regno): Delete declaration.
4116 * arch-utils.c (default_register_sim_regno): Delete function.
4118 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4120 * ppcnbsd-nat.c: Rewrite.
4121 * ppcnbsd-tdep.c: New file.
4122 * ppcnbsd-tdep.h: New file.
4123 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4124 solib.o, and solib-svr4.o.
4125 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4126 nbsd-tdep.o, and corelow.o.
4128 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4130 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4131 `tr' and `sed'. Mention that `broken' targets are not expected to
4134 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4136 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4137 Let PC point right after the prologue before looking up symbols.
4139 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4141 * i386-tdep.c (i386_register_virtual_type): Return
4142 builtin_type_vec128i for SSE registers.
4144 * gdbtypes.h (builtin_type_vec128i): Declare.
4146 * gdbtypes.c (build_builtin_type_vec128i): New function.
4147 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4148 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4149 (build_gdbtypes): Initialize new builtin vector types.
4150 (_initialize_gdbtypes): Register new vector types with gdbarch.
4152 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4154 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4155 since it has been multi-arch'd.
4156 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4157 Move Alpha and VAX multi-arch news entries to same section
4158 as other multi-arch news.
4160 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4162 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4163 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4164 static. Rename some register numbers to put them in ns32k-tdep
4166 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4167 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4169 (_initialize_ns32k_tdep): Use gdbarch_register.
4170 * ns32k-tdep.h: New file.
4171 * ns32knbsd-tdep.c: New file.
4172 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4173 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4174 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4175 REGISTER_BYTES, REGISTER_BYTE): Remove.
4176 * config/ns32k/tm-ns32k.h: New file.
4177 * config/ns32k/tm-umax.h: Remove.
4179 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4181 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4182 ns32k_store_struct_return, ns32k_extract_return_value,
4183 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4185 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4186 ns32k_saved_pc_after_call.
4187 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4188 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4189 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4190 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4191 ns32k_extract_struct_value_address.
4193 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4195 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4196 ns32k_fix_call_dummy): New.
4197 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4198 ns32k_call_dummy_words.
4199 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4200 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4201 CALL_DUMMY_NARGS): Remove.
4202 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4204 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4206 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4207 ns32k_frame_saved_pc, ns32k_frame_args_address,
4208 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4209 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4210 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4211 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4212 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4213 (BREAKPOINT): Remove..
4214 (FRAME_CHAIN): Define as ns32k_frame_chain.
4215 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4216 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4217 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4218 (FRAME_FIND_SAVED_REGS): Remove.
4219 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4220 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4221 (POP_FRAME): Define as ns32k_pop_frame.
4223 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4225 * ns32k-tdep.c (ns32k_register_byte_32082,
4226 ns32k_register_byte_32382, ns32k_register_raw_size,
4227 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4229 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4230 ns32k_register_byte_32382.
4231 * config/ns32k/tm-umax.h: Update copyright years.
4232 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4233 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4234 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4235 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4236 (ns32k_get_enter_addr): Fix prototype.
4238 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4240 * ns32k-tdep.c: Update copyright years.
4241 (ns32k_register_name_32082): New function.
4242 (ns32k_register_name_32382): Ditto.
4243 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4244 (REGISTER_NAME): Define as ns32k_register_name_32382.
4245 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4246 (REGISTER_NAME): Define as ns32k_register_name_32082.
4248 2002-05-24 Jim Blandy <jimb@redhat.com>
4250 * dwarf2read.c (free_line_header): Use xfree, not free.
4252 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4254 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4255 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4257 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4259 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4261 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4263 From Ross Alexander at NEC Europe:
4264 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4266 2002-05-23 Michael Snyder <msnyder@redhat.com>
4268 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4269 for input, rather than parse_and_eval_address.
4271 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4273 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4274 * Makefile.in (sim_d10v_h): Update definition.
4276 2002-05-24 Andrew Cagney <cagney@redhat.com>
4278 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4279 change `2002-05-22 Michael Snyder' below.
4280 (d10v_push_arguments): Ditto.
4281 (d10v_extract_return_value): Ditto.
4283 2002-05-23 Jim Blandy <jimb@redhat.com>
4285 * macrotab.c (check_for_redefinition): Don't complain if the new
4286 definition is the same as the previous one. Take more arguments
4287 to allow the comparison.
4288 (macro_define_object, macro_define_function): Pass more arguments
4289 to check_for_redefinition.
4291 2002-05-22 Michael Snyder <msnyder@redhat.com>
4293 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4294 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4295 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4296 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4297 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4298 Add a temp variable to save a call (and a memory read).
4299 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4300 if possible (so that PC_IN_CALL_DUMMY will work).
4302 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4304 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4306 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4308 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4310 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4311 (dwarf2_build_frame_info): Add offset to fde->initial_location
4312 so that frames of shared libraries are mapped correctly.
4313 (execute_stack_op): Change type of 'result' from ULONGEST to
4316 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4318 * config/alpha/tm-nbsd.h: Include solib.h.
4320 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4322 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4323 assumptions about the host's byte order.
4325 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4327 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4329 * alphanbsd-tdep.c: Include solib-svr4.h.
4330 * shnbsd-tdep.c: Ditto.
4332 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4334 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4335 nbsd-tdep.h to dependency list.
4336 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4337 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4338 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4339 nbsdaout.mh and nbsdelf.mh consistently.
4340 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4341 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4342 nbsdaout.mt and nbsdelf.mh consistently.
4343 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4344 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4345 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4346 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4347 a.out shared library stuff from here...
4348 * config/nm-nbsdaout.h: ...to here.
4349 * config/tm-nbsd.h: Remove.
4350 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4351 * config/arm/nbsd.mh: Remove.
4352 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4354 * config/arm/nbsdaout.mh: New file.
4355 * config/arm/nbsdelf.mh: New file.
4356 * config/arm/nm-nbsdaout.h: New file.
4357 * config/i386/nbsd.mh: Remove.
4358 * config/i386/nbsd.mt: Remove.
4359 * config/i386/nbsdaout.mh: New file.
4360 * config/i386/nbsdaout.mt: New file.
4361 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4362 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4363 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4364 i386_register_u_addr): Remove.
4365 * config/i386/nm-nbsdaout.h: New file.
4366 * config/i386/nm-nbsdelf.h: Remove.
4367 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4368 (USE_STRUCT_CONVENTION): Remove.
4369 * config/i386/tm-nbsdaout.h: New file.
4370 * config/i386/tm-nbsdelf.h: Remove.
4371 * config/m68k/nbsd.mh: Remove.
4372 * config/m68k/nbsd.mt: Remove.
4373 * config/m68k/nbsdaout.mh: New file.
4374 * config/m68k/nbsdaout.mt: New file.
4375 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4376 * config/m68k/nm-nbsdaout.h: New file.
4377 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4378 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4379 * config/ns32k/nbsd.mh: Remove.
4380 * config/ns32k/nbsd.mt: Remove.
4381 * config/ns32k/nbsdaout.mh: New file.
4382 * config/ns32k/nbsdaout.mt: New file.
4383 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4384 * config/ns32k/nm-nbsdaout.h: New file.
4385 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4386 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4387 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4388 (SVR4_SHARED_LIBS): Remove.
4389 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4390 * config/sparc/nbsd.mh: Remove.
4391 * config/sparc/nbsd.mt: Remove.
4392 * config/sparc/nbsdaout.mh: New file.
4393 * config/sparc/nbsdaout.mt: New file.
4394 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4395 * config/sparc/nbsdelf.mt: New file.
4396 * config/sparc/nm-nbsdaout.h: New file.
4397 * config/sparc/nm-nbsdelf.h: Remove.
4398 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4399 * config/sparc/tm-nbsdaout.h: New file.
4401 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4403 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4405 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4407 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4409 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4411 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4413 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4415 * NEWS: Note new MIPS NetBSD native configuration.
4416 * configure.host (mips*-*-netbsd*): New host.
4417 * configure.tgt (mips*-*-netbsd*): New target.
4418 * mipsnbsd-nat.c: New file.
4419 * mipsnbsd-tdep.c: New file.
4420 * mipsnbsd-tdep.h: New file.
4421 * config/mips/nbsd.mh: New file.
4422 * config/mips/nbsd.mt: New file.
4423 * config/mips/nm-nbsd.h: New file.
4424 * config/mips/tm-nbsd.h: New file.
4426 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4428 * Makefile.in (SFILES): Add osabi.c.
4429 (COMMON_OBS): Add osabi.o.
4430 (osabi.o): New dependency list.
4431 * osabi.c: New file.
4432 * osabi.h: New file.
4433 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4435 * Makefile.in (alpha_tdep_h): Define and use instead of
4437 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4438 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4440 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4441 * alpha-tdep.h: Include osabi.h.
4442 (alpha_abi): Remove.
4443 (gdbarch_tdep): Use generic OS ABI framework.
4444 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4445 gdbarch_register_osabi.
4446 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4447 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4448 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4450 * Makefile.in (sh_tdep_h): Add osabi.h.
4451 * sh-tdep.h (sh_osabi): Remove.
4452 (gdbarch_tdep): Use generic OS ABI framework.
4453 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4454 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4455 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4456 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4458 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4459 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4460 gdbarch_register_osabi.
4461 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4462 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4463 (get_elfosabi): Rename to...
4464 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4465 ABI framework support routines.
4466 (arm_gdbarch_init): Use generic OS ABI framework.
4467 (arm_dump_tdep): Likewise.
4468 (_initialize_arm_tdep): Likewise.
4469 * arm-tdep.h: Include osabi.h.
4471 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4473 (arm_gdbarch_register_os_abi): Remove prototype.
4474 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4475 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4477 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4478 * mips-tdep.c: Include osabi.h.
4479 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4482 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4484 * h8300-tdep.c: Fix formatting.
4486 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4488 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4489 printing vector registers.
4491 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4493 From Fernando Nasser:
4494 * remote.c (remote_async_open_1): Re-throw the exception when the
4496 (remote_cisco_open): Ditto.
4497 (remote_open_1): Ditto.
4499 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4501 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4502 (remote_start_remote): Add uiout parameter. Pass through to
4503 remote_start_remote_dummy.
4504 (remote_open_1): Use catch_exception instead of catch_errors.
4505 (remote_async_open_1): Ditto.
4506 (remote_cisco_open): Ditto.
4508 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4510 * remote.c (remote_start_remote): Replace PTR with void pointer.
4511 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4514 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4516 * gdb_indent.sh: Allow the script to be run in the sim directory.
4518 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4520 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4521 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4523 * corelow.c (core_open): Only call set_gdbarch_from_file if
4526 2002-05-17 Andrey Volkov <avolkov@transas.com>
4528 * h8300-tdep.c: Add support of EXR register
4529 * config/h8300/tm-h8300.h: Ditto.
4531 2002-05-17 Andrey Volkov <avolkov@transas.com>
4533 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4535 2002-05-17 Andrey Volkov <avolkov@transas.com>
4537 * h8300-tdep.c: Change literal regnums to REGNO.
4539 2002-05-17 Jim Blandy <jimb@redhat.com>
4541 * NEWS: Note addition of macro support.
4543 Expand preprocessor macros in C expressions.
4544 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4545 (scan_macro_expansion, scanning_macro_expansion,
4546 finished_macro_expansion): New function declarations.
4547 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4548 variable declarations.
4549 * parser-defs.h (expression_context_pc): New declaration.
4550 * parse.c (expression_context_pc): New variable.
4551 (parse_exp_1): Set expression_context_pc, as well as
4552 expression_context_block.
4553 * c-exp.y (yylex): If we're not already reading the result of a
4554 macro expansion, try to macro-expand the next token. When we're
4555 done scanning a macro expansion, switch back to the mainline text.
4556 Commas and `if's in a macro's expansion don't terminate the input.
4557 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4558 (macro_original_text, macro_expanded_text,
4559 expression_macro_lookup_func, expression_macro_lookup_baton): New
4561 (scan_macro_expansion, scanning_macro_expansion,
4562 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4563 c_preprocess_and_parse): New functions.
4564 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4565 c_preprocess_and_parse, instead of c_parse.
4566 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4567 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4569 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4571 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4572 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4573 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4575 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4577 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4579 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4581 * Makefile.in (sh_tdep_h): Define and use.
4582 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4583 register enum): Move to...
4584 * * sh-tdep.h: ...here.
4585 * sh-tdep.c: Include sh-tdep.h.
4586 * sh3-rom.c: Likewise.
4587 * shnbsd-tdep.c: Likewise.
4589 2002-05-16 Michael Snyder <msnyder@redhat.com>
4591 * arm-tdep.c: Spelling fix in comment.
4593 2002-05-16 Jim Blandy <jimb@redhat.com>
4595 Add commands for manually expanding macros and showing their
4597 * macrocmd.c, macroscope.c, macroscope.h: New files.
4598 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4599 (macroscope_h): New variable.
4600 (HFILES_NO_SRCDIR): Add macroscope.h.
4601 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4602 (macroscope.o, macrocmd.o): New rules.
4604 Teach the Dwarf 2 reader to read macro information.
4605 * dwarf2read.c: #include "macrotab.h".
4606 (dwarf_macinfo_buffer): New variable.
4607 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4609 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4610 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4611 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4612 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4613 dwarf2_macro_spaces_in_definition): New complaints.
4614 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4615 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4616 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4617 the partial symbol table.
4618 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4619 from what's recorded in the partial symbol table.
4620 (read_file_scope): If the compilation unit has a
4621 `DW_AT_macro_info' attribute, read its macro information.
4622 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4624 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4627 * ser-tcp.c: Don't include <netinet/udp.h>.
4629 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4631 * MAINTAINERS: Update my email address.
4633 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4635 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4636 include file of the same name.
4638 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4640 * configure.tgt: Mark v850 as multi-arched.
4641 * config/v850/tm-v850.h: Remove file.
4642 * config/v850/v850.mt: Eliminate TM_FILE.
4644 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4646 * v850-tdep.c: Full multi-arch.
4647 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4648 Define GDB_MULTI_ARCH to 2.
4650 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4652 * p-exp.y (current_type): New static variable.
4653 Carries the type of the expression at the position that is parsed.
4654 (push_current_type, pop_current_type): Two new functions. Used
4655 to store/restore current_type in expression on specific tokens.
4656 (search_field): New static variable. Set to one after parsing a point
4657 as at that point only a FIELDNAME token should be searched.
4658 (FIELDNAME): New token. After a point only a token belonging to
4659 current_type type definition is allowed.
4660 (all over token rules): reset and change current_type according
4662 (exp '[' rule): insert implicit array index field if
4663 exp is a pascal string type.
4665 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4667 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4668 frame info. Use frame_info's saved_regs instead of matching member
4669 in extra_frame_info throughout.
4670 (v850_frame_init_saved_regs): New function.
4671 (v850_init_extra_frame_info): Move most functionality into
4672 v850_frame_init_saved_regs().
4673 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4674 (v850_frame_find_saved_regs): Remove declaration.
4675 (FRAME_FIND_SAVED_REGS): Remove definition.
4676 (v850_frame_init_saved_regs): Add declaration.
4677 (FRAME_INIT_SAVED_REGS): Add definition.
4679 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4681 * v850-tdep.c: Begin multi-arch'ing v850.
4682 (v850_target_architecture_hook): Remove function.
4683 (v850_gdbarch_init): New function. Add code previously in
4684 v850_target_architecture_hook().
4685 (_initialize_v850_tdep): Don't set target_architecture_hook.
4686 Call register_gdbarch_init() instead.
4688 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4690 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4691 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4692 (fixup_class_method_type): Likewise.
4694 2002-05-15 Jim Blandy <jimb@redhat.com>
4696 Add macro structures to GDB's symbol tables. Nobody puts anything
4698 * symtab.h (struct symtab): New member: `macro_table'.
4699 * buildsym.h (pending_macros): New global variable.
4700 * buildsym.c: #include "macrotab.h".
4701 (buildsym_init): Initialize `pending_macros'.
4702 (end_symtab): If we found macro information while reading a CU's
4703 debugging info, do build a symtab structure for it. Make the
4704 symtab point to the macro information, and clear the
4705 `pending_macros' pointer which held it while we were reading the
4707 (really_free_pendings): Free any pending macro table.
4708 * objfiles.h (struct objfile): New member: `macro_cache'.
4709 * objfiles.c (allocate_objfile): Set allocate and free functions
4710 for the macro cache's objstack.
4711 (free_objfile): Empty the macro cache's obstack.
4712 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4713 set new allocate and free functions for it.
4714 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4715 free functions for the macro cache's objstack. (Why is this
4716 function building its own objfile?)
4717 * symmisc.c (print_objfile_statistics): Print statistics on the
4719 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4721 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4723 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4724 (REGISTER_U_ADDR): Delete definition.
4725 (arm_register_u_addr): Delete declaration.
4727 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4729 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4730 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4732 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4734 * regcache.c (register_valid): Revise comments refering to "Not
4735 available" and "unavailable".
4736 * frame.c (frame_register_read): Ditto.
4737 * findvar.c (value_of_register): Ditto.
4739 2002-05-15 Andrew Cagney <cagney@redhat.com>
4741 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4742 (remote-sim.o): Update dependencies.
4743 (d10v-tdep.o): Specify dependencies.
4744 (sim_d10v_h): Define.
4746 2002-05-14 Jim Blandy <jimb@redhat.com>
4748 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4749 * macrotab.c (macro_lookup_inclusion, find_definition,
4750 new_macro_table): Same.
4752 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4753 not `! strcmp ()'. This is a dubious improvement.
4754 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4756 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4757 although it's not necessary, to avoid a warning.
4759 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4761 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4762 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4763 TYPE_INSTANCE_FLAGS.
4764 (struct main_type): New.
4765 (struct type): Move most members to struct main_type. Change
4766 cv_type and as_type to new type_chain member. Add instance_flags.
4767 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4768 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4769 (finish_cv_type): Remove prototype.
4770 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4772 (alloc_type_instance): New function.
4773 (smash_type): New function.
4774 (make_pointer_type, make_reference_type, make_function_type)
4775 (smash_to_member_type, smash_to_method_type): Call smash_type.
4776 (make_qualified_type): New function.
4777 (make_type_with_address_space): Call make_qualified_type.
4778 (make_cv_type): Likewise.
4779 (finish_cv_type): Remove unnecessary function.
4780 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4781 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4782 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4783 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4784 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4785 * hpread.c (hpread_read_struct_type): Likewise.
4786 * stabsread.c (read_struct_type): Likewise.
4788 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4790 * configure.tgt: Add a catch all sh* target, for cases like
4791 sh[2,3,4]-elf and sh-hms.
4793 2002-05-14 Keith Seitz <keiths@redhat.com>
4795 * event-loop.c (create_file_handler): Don't do anything but
4796 update data when we are given a fd which we are already
4799 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4801 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4802 (update_context): Use __func__ in warnings.
4804 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4806 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4807 and tcp_close to net_open and net_close.
4808 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4809 using UDP if requested. Don't try to disable Nagle on UDP
4811 * remote.c (remote_serial_open): New function. Warn about UDP.
4812 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4814 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4816 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4818 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4820 * configure.tgt: Remove sh-hms target.
4821 * MAINTAINERS: Don't list sh-hms as a separate target.
4823 2002-05-13 Jim Blandy <jimb@redhat.com>
4825 Add first preprocessor macro-expansion files.
4826 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4827 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4828 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4829 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4830 (COMMON_OBS): Add macrotab.o, macroexp.o.
4831 (macroexp.o, macrotab.o): New rules.
4833 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4835 * config/m88k/tm-m88k.h: Update copyright.
4836 (m88k_target_write_pc): Declare
4837 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4838 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4839 (SHIFT_INST_REGS): Update definition.
4840 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4841 using old definition of TARGET_WRITE_PC.
4842 * regcache.c (generic_target_write_pc): Delete code handling
4844 * gdbarch.sh (NNPC_REGNUM): Delete.
4845 * gdbarch.h, gdbarch.c: Regenerate.
4847 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4849 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4852 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4854 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4855 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4856 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4858 * c-typeprint.c (cp_type_print_method_args): Likewise.
4859 (c_type_print_args): Likewise.
4860 * d10v-tdep.c (d10v_push_arguments): Likewise.
4861 (d10v_extract_return_value): Likewise.
4862 * expprint.c (print_subexp): Likewise.
4863 * gdbtypes.c (lookup_primitive_typename): Likewise.
4864 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4865 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4866 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4867 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4868 (TYPE_VECTOR): Likewise.
4869 * hpread.c (hpread_read_struct_type)
4870 (fix_static_member_physnames, fixup_class_method_type)
4871 (hpread_type_lookup): Likewise.
4872 * mdebugread.c (parse_symbol, parse_type): Likewise.
4873 * p-lang.c (is_pascal_string_type): Likewise.
4874 * valops.c (hand_function_call): Likewise.
4875 * x86-64-tdep.c (classify_argument): Likewise.
4877 * hpread.c (hpread_read_function_type)
4878 (hpread_read_doc_function_type): Call replace_type.
4879 * dstread.c (create_new_type): Delete.
4880 (decode_dst_structure, process_dst_function): Call alloc_type.
4881 Use type access macros.
4883 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4885 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4886 the're not supported by the current architecture.
4887 (i387_fill_fxsave): Likewise.
4889 2002-05-12 Fred Fish <fnf@redhat.com>
4891 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4892 sect_index_xxx members to index the first slot in section_offsets
4893 if all of the section_offsets are zero.
4895 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4897 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4898 checked in with last change.
4900 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4902 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4903 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4906 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4908 * Makefile.in: Update dependencies.
4910 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4912 * language.c (local_hex_string_custom): Simplify. Do not depend
4913 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4915 * memattr.c (mem_info_command): Replace calls to
4916 longest_local_hex_string and longest_local_hex_string_custom.
4917 * buildsym.c (make_blockvector): Ditto.
4918 * solib.c (info_sharedlibrary_command): Ditto.
4919 * tracepoint.c (tracepoints_info): Ditto.
4920 * symtab.c (print_msymbol_info): Ditto.
4922 * language.c (local_hex_string): Delete.
4923 (local_hex_string_custom): Delete.
4924 (longest_local_hex_string): Rename to local_hex_string.
4925 (longest_local_hex_string_custom): Rename to
4926 local_hex_string_custom.
4927 * language.h (local_hex_string): Change parameter type to LONGEST.
4928 (local_hex_string_custom): Ditto.
4929 (longest_local_hex_string): Delete declaration.
4930 (longest_local_hex_string_custom): Ditto.
4932 * solib.c: Update copyright.
4933 * memattr.c: Update copyright.
4935 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4937 * arch-utils.h (legacy_register_to_value): Declare.
4938 (legacy_value_to_register): Declare.
4939 (legacy_convert_register_p): Declare.
4940 * arch-utils.c (legacy_register_to_value): New function.
4941 (legacy_value_to_register): New function.
4942 (legacy_convert_register_p): New function.
4944 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4945 (VALUE_TO_REGISTER): Define.
4946 (CONVERT_REGISTER_P): Define.
4947 * gdbarch.h, gdbarch.c: Regenerate.
4949 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4951 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4954 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4955 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4957 * Makefile.in: Update dependencies for valops.c.
4958 * valops.c: Include "gdb_assert.h".
4959 (typecmp): Skip THIS parameter to methods.
4960 (find_method_list): Remove static_memfuncp argument,
4961 update callers. Check for stub methods.
4962 (find_value_oload_method_list): Don't set *static_memfuncp.
4963 (find_overload_match): Don't check for stub methods. Assert
4964 that methods are not stubbed. Handle static methods.
4965 (value_find_oload_method_list): Remove static_memfuncp argument.
4966 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4967 to the argument list for static stub methods.
4968 * value.h (value_find_oload_method_list): Update prototype.
4970 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4972 * arch-utils.h (generic_register_size): Declare.
4973 (generic_register_raw_size, generic_register_virtual_size): Delete
4975 * arch-utils.c (generic_register_raw_size): Delete.
4976 (generic_register_size): New function.
4977 (generic_register_virtual_size): Delete.
4979 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4980 default generic_register_size.
4981 * gdbarch.h, gdbarch.c: Re-generate.
4983 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4984 register_virtual_size.
4985 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4986 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4988 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4990 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4991 * gdbarch.h, gdbarch.c: Regenerate.
4992 * gnu-v3-abi.c: Update copyright.
4993 (vtable_address_point_offset): Update.
4994 (gnuv3_rtti_type): Update.
4995 (gnuv3_baseclass_offset): Update.
4996 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4997 (init_fetch_link_map_offsets): Update.
4998 * remote.c (get_remote_state): Update.
5000 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5002 * TODO: Remove value_headof/value_from_vtable_info comment.
5003 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5004 * values.c (value_headof, value_from_vtable_info): Delete.
5005 * value.h (value_from_vtable_info): Delete prototype.
5007 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5009 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5010 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5012 (gdb_assert_h): Define.
5013 (gdb_wait_h): Define.
5014 (gdb_regex_h): Define.
5016 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5018 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5019 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5021 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5023 * nbsd-tdep.c: Fix comment.
5025 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5027 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5028 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5029 (nbsd-tdep.o): New dependency list.
5030 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5032 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5033 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5034 * nbsd-tdep.c: New file.
5035 * nbsd-tdep.h: New file.
5036 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5038 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5039 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5040 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5041 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5043 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5045 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5046 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5047 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5048 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5049 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5050 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5052 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5054 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5055 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5056 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5057 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5058 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5059 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5060 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5062 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5064 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5065 fetch_elfcore_registers to...
5066 * i386nbsd-tdep.c: ...here.
5067 (i386nbsd_use_struct_convention): Rename to...
5068 (i386nbsd_aout_use_struct_convention): ...this.
5069 (i386nbsd_supply_reg): New function.
5070 (i386nbsd_fill_reg): New function.
5071 (fetch_core_registers): Use i386nbsd_supply_reg.
5072 (fetch_elfcore_registers): Likewise.
5073 (_initialize_i386nbsd_tdep): New function.
5074 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5075 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5076 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5077 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5078 (i386nbsd_aout_use_struct_convention): ...this.
5080 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5082 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5083 (store_inferior_registers): Use shnbsd_fill_reg.
5084 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5085 sh_nbsd_supply_register): Collapse into...
5086 (shnbsd_supply_reg): ...this.
5087 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5088 (shnbsd_fill_reg): ...this.
5089 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5090 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5091 (fetch_core_registers): Use shnbsd_supply_reg.
5092 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5093 (sh_nbsd_core_fns): Rename to...
5094 (shnbsd_core_fns): ...this.
5095 (sh_nbsd_elfcore_fns): Rename to...
5096 (shnbsd_elfcore_fns): ...this.
5097 (sh_nbsd_init_abi): Rename to...
5098 (shnbsd_init_abi): ...this.
5099 (_initialize_sh_nbsd_tdep): Rename to...
5100 (_initialize_shnbsd_tdep): ...this.
5101 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5102 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5103 sh_nbsd_fill_register): Remove prototypes.
5104 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5106 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5108 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5109 (i387-nat.o): Delete dependency list.
5110 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5111 (x86-64-linux-nat.o): Likewise.
5112 * i387-nat.c: Delete file, moving contents to...
5113 * i387-tdep.c: ...here.
5114 * i387-nat.h: Rename...
5115 * i387-tdep.h: ...to this.
5116 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5117 * i386-linux-nat.c: Likewise.
5118 * i386bsd-nat.c: Likewise.
5119 * i386gnu-nat.c: Likewise.
5120 * i386nbsd-nat.c: Likewise.
5121 * i386v4-nat.c: Likewise.
5122 * x86-64-linux-nat.c: Likewise.
5123 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5124 * config/i386/go32.mh (NATDEPFILES): Likewise.
5125 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5126 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5127 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5128 * config/i386/linux.mh (NATDEPFILES): Likewise.
5129 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5130 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5131 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5132 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5134 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5136 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5137 (alphanbsd-nat.o): Remove dependency list.
5138 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5139 * alphanbsd-nat.c: Delete. Contents moved to...
5140 * alphanbsd-tdep.c: ...here.
5141 (_initialize_alphanbsd_tdep): Register core functions.
5142 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5144 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5146 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5147 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5148 (alphanbsd-nat.o): Likewise.
5149 (alphabsd-tdep.o): New dependency list.
5150 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5151 (fill_gregset): Use alphabsd_fill_reg.
5152 (supply_fpregset): Use alphabsd_supply_fpreg.
5153 (fill_fpregset): Use alphabsd_fill_fpreg.
5154 (fetch_inferior_registers): Use struct reg and struct fpreg
5155 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5156 and alphabsd_supply_fpreg.
5157 (store_inferior_registers): Use struct reg and struct fpreg
5158 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5159 and alphabsd_fill_fpreg.
5160 * alphabsd-tdep.c: New file.
5161 * alphabsd-tdep.h: New file.
5162 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5163 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5164 alphabsd_supply_fpreg.
5165 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5166 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5168 2002-05-11 Eric Christopher <echristo@redhat.com>
5170 * mips-tdep.c (mips_double_register_type): Fix thinko.
5171 (mips_single_register_type): Ditto.
5172 * MAINTAINERS: Add self.
5174 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5176 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5177 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5178 right thing on architectures with different endianness and/or
5181 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5183 From Christian Limpach <chris@Pin.LU>
5184 * configure.in: Change sed expression which comments out
5185 NATDEPFILES to also comment out continuation lines.
5186 * configure: Regenerate.
5188 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5190 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5193 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5195 * sh-tdep.c: Include correct file.
5197 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5199 New support for sh64-elf (sh5) target.
5201 * configure.tgt: For sh64-elf target, default to sh-elf.
5203 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5204 (struct gdbarch_tdep): Add new fields for new registers and ABI
5207 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5208 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5209 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5210 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5211 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5212 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5213 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5214 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5215 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5216 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5217 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5218 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5219 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5220 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5221 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5222 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5223 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5224 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5225 sign_extend, sh64_nofp_frame_init_saved_regs,
5226 sh64_init_extra_frame_info, sh64_get_saved_register,
5227 sh64_extract_struct_value_address, sh64_pop_frame,
5228 sh64_push_arguments, sh64_extract_return_value,
5229 sh64_store_return_value, sh64_show_media_regs,
5230 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5231 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5232 sh_sh64_register_virtual_type,
5233 sh_sh64_register_convert_to_virtual,
5234 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5235 sh64_register_read, sh64_pseudo_register_write,
5236 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5237 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5238 sh64_do_pseudo_register, sh_compact_do_registers_info,
5239 sh64_do_registers_info, sh_gdbarch_init): New functions.
5241 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5243 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5245 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5247 * linespec.c (decode_line_1): Check for a double quote after
5248 a filename correctly.
5250 2002-05-10 Jim Blandy <jimb@redhat.com>
5252 Properly track the size of the current objfile's .debug_line section.
5253 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5254 (DWARF_LINE_SIZE): New macro.
5255 (dwarf2_build_psymtabs_hard): Record the line section's size in
5256 the partial symbol table.
5257 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5260 2002-05-10 Petr Sorfa <petrs@caldera.com>
5262 * ia64-tdep.c: Handle breakpoints on L instruction type
5263 in MLX instruction bundle by moving the breakpoint to
5264 the third slot (X instruction type) as L holds only data.
5266 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5268 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5269 (process_one_symbol): Complain about discarding local symbols
5270 due to a misplaced N_LBRAC entry.
5272 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5274 From Daniel Berlin <dan@cgsoftware.com>
5275 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5276 decrease the depth we are at, in the case of templates.
5278 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5280 * mips-tdep.c (mips_float_register_type): New function.
5281 (mips_double_register_type): New function.
5282 (mips_print_register): Use them.
5283 (do_fp_register_row): Likewise.
5285 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5287 * signals/signals.c (signals): Remove conditional compilation around
5288 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5289 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5291 2002-05-09 Michael Snyder <msnyder@redhat.com>
5293 * remote-rdp.c (remote_rdp_can_run): Remove.
5295 2002-05-09 Tom Tromey <tromey@redhat.com>
5297 * jv-valprint.c (java_val_print): Handle `char' as a special case
5300 2002-05-09 Michael Snyder <msnyder@redhat.com>
5302 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5303 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5304 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5305 str r(0123),[sp,#nn].
5306 (arm_skip_prologue): Ditto. Also make disassembly
5307 order-independent by placing it in a loop.
5309 2002-05-06 Michael Snyder <msnyder@redhat.com>
5311 * stabsread.c (read_type): Add recognition for new attribute:
5312 "@V;" means that an array type is actually a vector.
5313 This is analogous to the vector flag that's been added to dwarf2.
5315 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5317 * i386-tdep.h (i386_abi): New enum.
5318 (struct gdbarch_tdep): Replace os_ident member with abi.
5319 (i386_gdbarch_register_os_abi): New prototype.
5320 * i386-tdep.c (i386_abi_names): New array.
5321 (process_note_abi_tag_sections): Removed.
5322 (process_note_sections): New function.
5323 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5324 (struct i386_abi_handler): New struct.
5325 (i386_abi_handler_list): New variable.
5326 (i386_gdbarch_register_os_abi): New function.
5327 (i386_gdbarch_init): Adapt for the changes given above.
5329 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5331 * gregset.h: Say "GNU/Linux".
5333 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5335 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5336 (build_gdbtypes): Build builtin_type_v2_float.
5337 (_initialize_gdbtypes): Register new builtin type.
5339 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5341 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5342 (clear_gdbarch_swap): New function.
5343 (initialize_non_multiarch): Call.
5344 (gdbarch_update_p): Before calling init(), swap out and clear the
5345 existing architecture.
5346 * gdbarch.c: Regenerate.
5348 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5350 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5353 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5355 * sh-nbsd-nat.c: Rename to...
5356 * shnbsd-nat.c: ...this.
5357 * sh-nbsd-tdep.c: Rename to...
5358 * shnbsd-tdep.c: ...this.
5359 * sh-nbsd-tdep.h: Rename to...
5360 * shnbsd-tdep.h: ...this.
5361 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5362 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5364 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5366 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5367 concatenation for command help messages.
5369 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5371 * NEWS: Note new sh*-*-netbsdelf* configuration.
5372 * configure.host: Set gdb_host_cpu to sh for all sh*.
5373 (sh*-*-netbsdelf*): New host.
5374 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5375 (sh*-*-netbsdelf*): New target.
5376 * sh-nbsd-nat.c: New file.
5377 * sh-nbsd-tdep.c: New file.
5378 * sh-nbsd-tdep.h: New file.
5379 * config/sh/nbsd.mh: New file.
5380 * config/sh/nbsd.mt: New file.
5381 * config/sh/nm-nbsd.h: New file.
5382 * config/sh/tm-nbsd.h: New file.
5384 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5386 * sh-tdep.c (sh_osabi_names): Declare.
5387 (process_note_abi_tag_sections): New function.
5388 (get_elfosabi): Ditto.
5389 (sh_gdbarch_register_os_abi): Ditto.
5390 (sh_dump_tdep): Ditto.
5391 _initialize_sh_tdep): Use gdbarch_register to register
5392 sh_gdbarch_init and sh_dump_tdep.
5393 * config/sh/tm-sh.h (sh_osabi): Declare.
5394 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5396 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5398 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5399 (thumb_scan_prologue): Ditto.
5400 (arm_find_callers_reg): Ditto.
5401 (arm_frame_chain): Ditto.
5402 (arm_init_extra_frame_info): Ditto.
5403 (arm_frame_saved_pc): Ditto.
5404 (arm_pop_frame): Ditto.
5405 (arm_push_return_address): New function.
5406 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5407 call_dummy_location, call_dummy_breakpoint_offset_p,
5408 call_dummy_breakpoint_offset, call_dummy_p,
5409 call_dummy_stack_adjust_p, call_dummy_words,
5410 sizeof_call_dummy_words, call_dummy_start_offset,
5411 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5412 call_dummy_address, push_return_address and push_dummy_frame for
5413 generic dummy frames.
5415 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5417 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5418 size computation for alloca.
5419 (sh_fp_frame_init_saved_regs): Likewise.
5421 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5423 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5424 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5425 * arm-tdep.c (arm_store_return_value): Use them.
5426 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5427 * remote-rdp.c (remote_rdp_fetch_register): Use
5428 ARM_MAX_REGISTER_RAW_SIZE.
5429 (remote_rdp_store_register): Likewise.
5431 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5433 * dwarf2cfi.c: Code cleanup, removed unused variables,
5434 added default labels to switch {} statements.
5435 * x86-64-tdep.c: Ditto.
5436 * x86-64-linux-nat.c: Ditto.
5438 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5440 * solib.h: Protect against multiple inclusion.
5442 2002-05-06 Jim Blandy <jimb@redhat.com>
5444 Add first preprocessor macro-expansion files.
5445 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5446 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5447 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5448 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5449 (COMMON_OBS): Add macrotab.o, macroexp.o.
5450 (macroexp.o, macrotab.o): New rules.
5452 Separate the job of reading the line number info statement program
5453 header (...expialidocious) out into its own function.
5454 * dwarf2read.c (struct line_head, struct filenames, struct
5455 directories): Replace with...
5456 (struct line_header): New structure, containing the full
5457 contents of the statement program header, including the
5458 include directory and file name tables.
5459 (read_file_scope): If we have line number info, instead of just
5460 calling dwarf_decode_lines to do all the work, call
5461 dwarf_decode_line_header first to get a `struct line_header'
5462 containing the data in the statement program header, and then
5463 pass that to dwarf_decode_lines, which will pick up where that
5464 left off. Be sure to clean up the `struct line_header' object.
5465 (dwarf_decode_line_header, free_line_header, add_include_dir,
5466 add_file_name): New functions.
5467 (dwarf_decode_lines): Move all the code to read the statement
5468 program header into dwarf_decode_line_header. Take the line
5469 header it built as the first argument, instead of the offset to
5470 the compilation unit's line number info. Use the new `struct
5471 line_header' type instead of the old structures. No need to do
5472 cleanups here now, since we don't allocate anything.
5473 (dwarf2_statement_list_fits_in_line_number_section,
5474 dwarf2_line_header_too_long): New complaints.
5476 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5478 * gdbtypes.c (init_vector_type): New function.
5479 (build_builtin_type_vec128): Simplify the representation of SIMD
5481 (build_gdbtypes): Initialize new builtin vector types.
5482 (_initialize_gdbtypes): Register new vector types with gdbarch.
5483 (builtin_type_v4_float, builtin_type_v4_int32,
5484 builtin_type_v8_int16, builtin_type_v16_int8,
5485 builtin_type_v2_int32, builtin_type_v4_int16,
5486 builtin_type_v8_int8): New (renamed) SIMD types.
5488 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5490 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5491 (i387_fill_fxsave): Likewise.
5493 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5495 * alpha-tdep.c (alpha_extract_return_value): Don't use
5496 non-constant array size in prototype.
5498 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5500 From Brian Taylor <briant at model dot com>:
5501 * ui-out.c (ui_out_field_core_addr): Use the function
5502 longest_local_hex_string_custom'to format addresses > 32 bits
5505 * ui-out.c (ui_out_field_core_addr): Update comment.
5507 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5509 * stack.c (select_and_print_frame): Make static. Delete the
5511 (func_command): Update call.
5512 (select_frame_command): Delete code computing the frame level.
5513 * frame.h (select_and_print_frame): Delete declaration.
5515 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5517 * sparc-tdep.c (sparc_get_saved_register): Comment why
5518 get_prev_frame call is safe.
5520 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5522 * frame.h (select_frame): Delete level parameter.
5523 * stack.c (select_frame): Update. Use frame_relative_level to
5524 obtain the frame's level.
5525 (select_and_print_frame): Update call.
5526 (select_frame_command): Ditto.
5527 (up_silently_base): Ditto.
5528 (down_silently_base): Ditto.
5529 * ocd.c (ocd_start_remote): Ditto.
5530 * remote-rdp.c (remote_rdp_open): Ditto.
5531 * remote-mips.c (mips_initialize): Ditto.
5532 (common_open): Ditto.
5533 * remote-e7000.c (e7000_start_remote): Ditto.
5534 * m3-nat.c (select_thread): Ditto.
5535 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5536 (child_get_current_exception_event): Ditto.
5537 * varobj.c (varobj_create): Ditto.
5538 (varobj_update): Ditto.
5539 (c_value_of_root): Ditto.
5540 * tracepoint.c (finish_tfind_command): Ditto.
5541 * corelow.c (core_open): Ditto.
5542 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5543 * thread.c (info_threads_command): Ditto.
5544 (switch_to_thread): Ditto.
5545 * infrun.c (normal_stop): Ditto.
5546 (restore_selected_frame): Ditto.
5547 (restore_inferior_status): Ditto.
5548 * breakpoint.c (insert_breakpoints): Ditto.
5549 (watchpoint_check): Ditto.
5550 (bpstat_stop_status): Ditto.
5551 (do_enable_breakpoint): Ditto.
5552 * blockframe.c (flush_cached_frames): Ditto.
5553 (reinit_frame_cache): Ditto.
5555 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5557 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5560 2002-05-04 Jim Blandy <jimb@redhat.com>
5562 * gdbtypes.c (replace_type): Doc fix.
5564 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5566 * valprint.c (strcat_longest): Delete commented out function.
5569 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5571 * MAINTAINERS: Mark a29k as deleted.
5572 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5573 Move new configurations to the top.
5574 * configure.tgt: Remove a29k.
5575 * config/a29k/tm-vx29k.h: Delete.
5576 * config/a29k/vx29k.mt: Delete.
5577 * config/a29k/tm-a29k.h: Delete.
5578 * config/a29k/a29k-udi.mt: Delete.
5579 * config/a29k/a29k.mt: Delete.
5580 * a29k-tdep.c: Delete.
5581 * remote-udi.c: Delete.
5582 * remote-mm.c: Delete.
5583 * remote-eb.c: Delete.
5584 * remote-adapt.c: Delete.
5585 * Makefile.in: Remove obsolete code.
5586 * config/s390/s390x.mt: Ditto.
5587 * config/s390/s390.mt: Ditto.
5588 * config/sparc/sparclynx.mh: Ditto.
5589 * config/sparc/linux.mh: Ditto.
5590 * config/pa/hppaosf.mh: Ditto.
5591 * config/pa/hppabsd.mh: Ditto.
5592 * config/ns32k/nbsd.mt: Ditto.
5593 * config/mips/vr5000.mt: Ditto.
5594 * config/m68k/sun3os4.mh: Ditto.
5595 * config/m68k/nbsd.mt: Ditto.
5596 * config/m68k/m68klynx.mh: Ditto.
5597 * config/m32r/m32r.mt: Ditto.
5598 * config/i386/x86-64linux.mt: Ditto.
5599 * config/i386/nbsdelf.mt: Ditto.
5600 * config/i386/nbsd.mt: Ditto.
5601 * config/i386/i386lynx.mh: Ditto.
5603 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5605 * target.c (debug_print_register): New function. Handle oversize
5607 (debug_to_fetch_registers): Call.
5608 (debug_to_store_registers): Call.
5610 2002-05-03 Jim Blandy <jimb@redhat.com>
5612 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5613 (read_type): Doc fix.
5614 * gdbtypes.c (replace_type): Doc fix.
5616 * stabsread.c (multiply_defined_struct): New complaint.
5617 (read_struct_type): If the type we were passed isn't empty, or
5618 incomplete, don't read the new struct type into it; complain,
5619 and return the original type unchanged. Take a new `type_code'
5620 argument, which is the type code for the new type.
5621 (read_type): Rather than storing the type's type code here, pass
5622 it as an argument to read_struct_type, and let that take care of
5623 storing it. That way, we don't overwrite the original type code,
5624 so read_struct_type can use it to decide whether we're overwriting
5625 something we shouldn't.
5626 (complain_about_struct_wipeout): New function.
5628 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5630 * gdbarch.sh: Assert that gdbarch is non-NULL.
5631 * gdbarch.c: Regenerate.
5633 2002-05-03 Jason Merrill <jason@redhat.com>
5635 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5638 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5640 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5641 (x86_64_dwarf2gdb_regno_map_length),
5642 (x86_64_dwarf2_reg_to_regnum): Added.
5643 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5644 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5645 (_initialize_x86_64_tdep): Synced with the change above.
5646 (x86_64_skip_prologue): Reformulated message.
5648 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5650 * f-exp.y: Also use new prev_lexptr variable
5651 to improve error reporting. Based on Michael Snyder
5652 2002-04-24 dated patch to c-exp.y.
5653 * jv-exp.y: Likewise.
5654 * m2-exp.y: Likewise.
5656 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5658 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5659 we are dealing with vectors.
5661 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5663 * config/m68k/tm-nbsd.h: Obvious fix,
5664 correct machine name.
5666 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5668 * p-typeprint.c (pascal_type_print_base): Add support
5669 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5671 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5673 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5674 for fondamental pascal 'char' type.
5676 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5678 * p-lang.h (is_pascal_string_type): Declaration changed,
5679 new sixth argument of type char ** added.
5680 * p-lang.c (is_pascal_string_type): Implementation
5681 changed. Args length_pos, length_size, string_pos, char_size
5682 can now be NULL. New argument arrayname set to the field
5683 name of the char array. Return value set to char array
5684 field index plus one.
5685 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5686 is_pascal_string_type function.
5688 2002-05-02 Andrew Cagney <cagney@redhat.com>
5690 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5691 <cagney@redhat.com> change.
5692 * gdbarch.c: Regenerate.
5694 2002-05-02 Andrew Cagney <cagney@redhat.com>
5696 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5697 before probing for a new one. Detect errorenous gdbarch_init
5699 * gdbarch.c: Regenerate.
5701 2002-05-01 Andrew Cagney <cagney@redhat.com>
5703 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5704 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5705 * config/v850/tm-v850.h: Ditto. Update copyright.
5707 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5709 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5712 2002-04-30 Michael Snyder <msnyder@redhat.com>
5714 * arm-tdep.c: Whitespace clean-ups.
5715 (arm_skip_prologue): Fix thinko; two lines
5716 should have been removed as part of 4/24 change.
5718 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5720 * rs6000-tdep.c: Added comment describing how fpscr register
5721 numbers were chosen.
5723 2002-04-30 Michael Snyder <msnyder@redhat.com>
5725 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5727 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5729 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5730 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5731 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5733 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5735 From Louis Hamilton <hamilton@redhat.com>:
5736 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5737 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5738 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5739 not bfd-private xcoff data, to determine wordsize.
5740 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5742 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5744 GDB 5.2 released from 5.2 branch.
5746 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5748 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5749 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5750 (x86_64_register_info_table): Added comments with register numbers.
5752 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5754 * rs6000-tdep.c (rs6000_extract_return_value,
5755 rs6000_store_return_value): Handle returning vectors.
5756 (rs6000_gdbarch_init): Use
5757 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5758 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5760 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5762 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5763 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5765 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5767 * hpread.c (hpread_psymtab_to_symtab_1,
5768 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5769 with fprintf_unfiltered (gdb_stderr,...).
5771 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5773 * remote-array.c (printf_monitor, write_monitor,
5774 array_insert_breakpoint, array_remove_breakpoint ):
5775 Replace fprintf (stderr,...
5776 with fprintf_unfiltered (gdb_stderr,....
5777 * remote-es.c: Likewise.
5778 * remote-os9k.c: Likewise.
5779 * remote-st.c: Likewise.
5781 2002-04-28 Andreas Schwab <schwab@suse.de>
5783 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5784 linux-proc.o and gcore.o.
5786 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5788 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5789 code without frame pointers.
5791 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5793 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5796 2002-04-26 Ben Elliston <bje@redhat.com>
5798 * target.c (do_xfer_memory): Correct reference to the new option
5799 "trust-readonly-sections".
5801 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5803 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5804 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5805 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5807 (read_array_type): Record the fact that this array type is really a
5808 vector (i.e. are passed in by value).
5810 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5812 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5813 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5814 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5815 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5816 * alpha-linux-tdep.c: Include frame.h.
5817 (alpha_linux_sigcontext_addr): New function.
5818 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5819 alpha_linux_sigcontext_addr.
5820 * alpha-osf1-tdep.c: Include gdbcore.h.
5821 (alpha_osf1_sigcontext_addr): New function.
5822 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5823 alpha_osf1_sigcontext_addr.
5824 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5825 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5827 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5829 * stack.c (selected_frame_level):
5830 (select_frame): Do not set selected_frame_level.
5831 * frame.h (selected_frame_level): Delete declaration.
5833 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5835 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5836 convert_from_func_ptr-addr when AIX / PowerOpen.
5838 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5840 * valops.c (hand_function_call): Call
5841 generic_save_call_dummy_addr.
5842 * frame.h (generic_save_call_dummy_addr): Declare.
5843 * blockframe.c (struct dummy_frame): Add fields call_lo and
5845 (generic_find_dummy_frame): Check for PC in range call_lo to
5846 call_hi instead of entry_point_address.
5847 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5848 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5849 (generic_save_call_dummy_addr): New function.
5851 2002-04-24 David S. Miller <davem@redhat.com>
5853 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5854 sparc_skip_prologue.
5855 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5856 information to find prologue when possible.
5857 (sparc_prologue_frameless_p): Call examine_prologue directly.
5858 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5859 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5861 (SKIP_PROLOGUE): Likewise.
5863 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5865 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5866 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5867 indicate that the condition it was testing is always true.
5868 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5869 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5870 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5872 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5874 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5875 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5876 tdep->jb_pc and tdep->jb_elt_size.
5877 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5878 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5879 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5880 * alpha-nat.c (get_longjmp_target): Remove.
5881 (JB_ELEMENT_SIZE): Ditto.
5883 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5884 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5885 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5886 to alpha_get_longjmp_target.
5887 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5888 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5889 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5891 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5893 * README: Update to GDB 5.2.
5895 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5897 * gdbarch.sh (LC_ALL): Set to `c'.
5899 2002-04-25 Theodore A. Roth <troth@verinet.com>
5901 * avr-tdep.c: Ran through gdb_indent.sh.
5903 2002-04-25 Theodore A. Roth <troth@verinet.com>
5905 * MAINTAINERS: Add myself as AVR maintainer.
5906 * NEWS: Note new target avr.
5908 2002-04-25 Theodore A. Roth <troth@verinet.com>
5910 * Makefile.in: Add support for AVR target.
5911 * configure.tgt: Add support for AVR target.
5912 * avr-tdep.c: New file
5913 * config/avr/avr.mt: New file.
5915 2002-04-25 Theodore A. Roth <troth@verinet.com>
5917 * MAINTAINERS: Add myself to write-after-approval.
5919 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5921 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5922 with fprintf_unfiltered (gdb_stderr,....
5924 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5927 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5929 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5931 * p-exp.y: Also use new prev_lexptr variable
5932 to improve error reporting. Based on Michael Snyder
5933 2002-04-24 dated patch to c-exp.y.
5935 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5937 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5938 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5939 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5941 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5943 (FUNCTION_START_OFFSET): Remove.
5944 (BREAKPOINT): Ditto.
5946 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5948 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5951 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5953 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5954 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5955 alpha_linux_pc_in_sigtramp.
5956 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5957 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5958 alpha_osf1_pc_in_sigtramp.
5959 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5960 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5961 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5962 alphafbsd_pc_in_sigtramp.
5963 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5964 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5965 alphanbsd_pc_in_sigtramp.
5966 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5967 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5969 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5971 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5973 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5975 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5977 (alphanbsd-nat.o): New dependency list.
5978 (alphanbsd-tdep.o): Ditto.
5979 * NEWS: Note new native NetBSD/alpha configuration.
5980 * alphanbsd-nat.c: New file.
5981 * alphanbsd-tdep.c: Ditto.
5982 * configure.host (alpha*-*-netbsd*): New host.
5983 * configure.tgt (alpha*-*-netbsd*): New target.
5984 * config/alpha/nbsd.mh: New file.
5985 * config/alpha/nbsd.mt: Ditto.
5986 * config/alpha/nm-nbsd.h: Ditto.
5987 * config/alpha/tm-nbsd.h: Ditto.
5989 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5991 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5992 (alpha-osf1-tdep.o): New dependency list.
5993 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5994 and skip_sigtramp_frame members.
5995 * alpha-linux-tdep.c: Include gdbcore.h.
5996 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5997 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5998 * alpha-osf1-tdep.c: New file.
5999 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6001 (alpha_frame_past_sigtramp_frame): New function.
6002 (alpha_dynamic_sigtramp_offset): Ditto.
6003 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6004 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6005 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6006 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6007 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6008 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6009 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6010 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6011 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6012 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6013 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6014 to find_solib_trampoline_target.
6015 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6016 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6017 (SKIP_TRAMPOLINE_CODE): Remove.
6018 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6019 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6020 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6021 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6022 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6023 (PROC_SIGTRAMP_MAGIC): Ditto.
6024 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6025 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6026 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6027 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6028 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6030 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6032 * NEWS: Note that Alpha targets are now multi-arch.
6034 2002-04-24 Michael Snyder <msnyder@redhat.com>
6036 * parser-defs.h (prev_lexptr): New external variable.
6037 * parse.c (parse_exp_1): Set prev_lexptr to null before
6038 calling the language-specific parser.
6039 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6040 (yyerror): Use prev_lexptr in error reporting.
6042 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6044 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6045 * gregset.h: If FILL_FPXREGSET is defined, provide
6046 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6047 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6048 is defined, call fill_fpxregset.
6050 2002-04-24 Roland McGrath <roland@frob.com>
6052 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6053 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6054 (supply_gregset, supply_fpregset): New functions.
6056 * gnu-nat.c (gnu_find_memory_regions): New function.
6057 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6058 (gnu_xfer_memory): Add a cast.
6060 2002-04-24 Michael Snyder <msnyder@redhat.com>
6062 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6063 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6064 of argument regs ("str r(0123), [r11, #-nn"]).
6065 (arm_skip_prologue): Better handling for frameless functions.
6066 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6067 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6069 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6071 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6072 NUM_PSEUDO_REGS can be used.
6074 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6076 * arch-utils.h: Update copyright.
6078 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6079 * gdbarch.h, gdbarch.c: Re-generate.
6081 * inferior.h (IN_SIGTRAMP): Delete definition.
6082 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6083 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6085 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6086 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6087 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6088 (find_proc_framesize): Ditto.
6089 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6090 (alpha_init_extra_frame_info): Ditto.
6091 * infrun.c (handle_inferior_event): Ditto.
6092 (handle_inferior_event): Ditto.
6093 (check_sigtramp2): Ditto.
6094 * blockframe.c (create_new_frame): Ditto.
6095 (get_prev_frame): Ditto.
6096 * ppc-linux-tdep.c: Update comments.
6097 * i386-linux-tdep.c: Update comments.
6098 * breakpoint.c (bpstat_what): Update comment.
6100 2002-04-24 David S. Miller <davem@redhat.com>
6102 * i960-tdep.c (register_in_window_p): New function.
6103 (i960_find_saved_register): Use it instead of
6104 REGISTER_IN_WINDOW_P.
6105 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6107 * symtab.h (find_stab_function_addr): Kill extern.
6108 * minsyms.c (find_stab_function_addr): Remove from here...
6109 * dbxread.c: ... to here, and mark it static.
6111 2002-04-20 David S. Miller <davem@redhat.com>
6113 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6114 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6116 2002-04-21 David S. Miller <davem@redhat.com>
6118 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6119 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6120 (vx_write_register): Likewise.
6122 2002-04-23 J. Brobecker <brobecker@gnat.com>
6124 * source.c (is_regular_file): New function.
6125 (openp): Check wether file to open is a regular file
6126 to avoid opening directories.
6128 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6130 * findvar.c (extract_signed_integer): Cast printf argument
6131 to suppress format warning.
6132 (extract_unsigned_integer): Likewise.
6133 * infcmd.c (registers_info): Likewise.
6134 * top.c (get_prompt_1): Likewise.
6135 * valops.c (value_assign): Likewise.
6136 * valprint.c (print_decimal): Likewise.
6138 2002-04-22 H.J. Lu (hjl@gnu.org)
6140 * c-exp.y (typebase): Support
6142 [long|long long|short] [signed|unsigned] [int|]
6146 signed [long|long long|short] int
6148 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6150 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6152 * vax-tdep.h: New file.
6153 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6154 Make several routines static.
6155 (vax_get_saved_register): New function.
6156 (vax_gdbarch_init): New function.
6157 (_initialize_vax_tdep): Register vax_gdbarch_init.
6158 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6159 Remove macros now under the control of gdbarch.
6161 2002-04-22 Michael Snyder <msnyder@redhat.com>
6163 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6164 Some whitespace and coding standards tweaks.
6166 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6168 * vax-tdep.c: Include regcache.h.
6169 (vax_call_dummy_words): New.
6170 (sizeof_vax_call_dummy_words): New.
6171 (vax_fix_call_dummy): New function.
6172 (vax_saved_pc_after_call): Ditto.
6173 * config/vax/tm-vax.h: Don't include regcache.h.
6174 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6175 (CALL_DUMMY): Remove.
6176 (CALL_DUMMY_WORDS): Define.
6177 (SIZEOF_CALL_DUMMY_WORDS): Define.
6178 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6180 2002-04-18 Michael Snyder <msnyder@redhat.com>
6182 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6184 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6186 * vax-tdep.c (vax_frame_chain): New function.
6187 (vax_push_dummy_frame): Ditto.
6188 (vax_pop_frame): Ditto.
6189 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6190 (FRAMELESS_FUNCTION_INVOCATION): Use
6191 generic_frameless_function_invocation_not.
6192 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6193 (POP_FRAME): Use vax_pop_frame.
6195 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6197 * vax-tdep.c (vax_store_struct_return): New function.
6198 (vax_extract_return_value): Ditto.
6199 (vax_store_return_value): Ditto.
6200 (vax_extract_struct_value_address): Ditto.
6201 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6202 vax_store_struct_return.
6203 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6204 (STORE_RETURN_VALUE): Use vax_store_return_value.
6205 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6207 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6209 * vax-tdep.c (vax_frame_saved_pc): New function.
6210 (vax_frame_args_address_correct): Ditto.
6211 (vax_frame_args_address): Ditto.
6212 (vax_frame_locals_address): Ditto.
6213 (vax_frame_num_args): Move code to be in proximity to
6214 other frame-related functions.
6215 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6216 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6217 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6218 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6219 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6221 2002-04-22 H.J. Lu (hjl@gnu.org)
6223 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6226 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6228 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6229 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6230 (FRAME_INIT_SAVED_REGS): New macro.
6232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6234 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6236 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6238 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6240 (fetch_osf_core_registers): Likewise.
6241 (supply_gregset): Likewise.
6243 2002-04-22 J. Brobecker <brobecker@gnat.com>
6245 * symfile.h (get_section_index): Define.
6246 * symfile.c (get_section_index): New function.
6247 * mdebugread.c (SC_IS_SBSS): New macro.
6248 (SC_IS_BSS): Return true for the scBss storage class only, as
6249 the scSBss storage class refers to the .sbss section.
6250 (parse_partial_symbols): Discard the symbols which associated
6251 section does not exist.
6252 Make sure to use the .sbss section index for symbols which
6253 storage class is scBss, rather than using the .bss section index.
6255 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6257 * vax-tdep.c: Update copyright years.
6258 (vax_register_name): New function.
6259 (vax_register_byte): Ditto.
6260 (vax_register_raw_size): Ditto.
6261 (vax_register_virtual_size): Ditto.
6262 (vax_register_virtual_type): Ditto.
6263 * config/vax/tm-vax.h: Update copyright years.
6264 (REGISTER_NAMES): Remove.
6265 (REGISTER_NAME): Define.
6266 (REGISTER_BYTE): Use vax_register_byte.
6267 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6268 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6269 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6271 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6273 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6275 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6277 2002-04-21 David S. Miller <davem@redhat.com>
6279 * arch-utils.c (generic_prologue_frameless_p): Kill
6280 SKIP_PROLOGUE_FRAMELESS_P code.
6281 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6283 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6284 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6285 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6287 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6288 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6289 (sparc_gdbarch_init): Pass it to
6290 set_gdbarch_prologue_frameless_p.
6292 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6294 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6295 (alphabsd-nat.o): New dependency list.
6297 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6299 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6301 (alpha-linux-tdep.o): New dependency list.
6302 (alphafbsd-tdep.o): Likewise.
6304 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6306 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6308 * alpha-tdep.c: ...from here.
6309 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6311 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6313 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6314 prototype from here...
6315 * alpha-tdep.h: ...to here.
6317 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6319 * frame.h (selected_frame_level): Document as deprecated.
6320 (frame_relative_level): Declare.
6321 * stack.c (frame_relative_level): New function.
6322 (selected_frame_level): Document as deprecated.
6323 (select_frame): Do not set the selected_frame_level.
6325 * stack.c (frame_info, record_selected_frame): Update.
6326 (frame_command, current_frame_command): Update.
6327 (up_silently_base, up_command, down_silently_base): Update.
6328 (down_command): Update.
6329 * inflow.c (kill_command): Update.
6330 * tracepoint.c (finish_tfind_command): Update.
6331 * corelow.c (core_open): Update.
6332 * thread.c (info_threads_command): Update.
6333 (do_captured_thread_select): Update.
6334 * infcmd.c (finish_command): Update.
6335 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6337 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6339 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6341 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6343 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6346 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6348 * alphafbsd-tdep.c: Update copyright years. Include
6350 (alphafbsd_use_struct_convention): Make static.
6351 (alphafbsd_init_abi): New function.
6352 (_initialize_alphafbsd_tdep): New function.
6353 * config/alpha/tm-fbsd.h: Update copyright years.
6354 (USE_STRUCT_CONVENTION): Remove.
6356 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6358 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6359 an Alpha ABI variant.
6360 (alpha_abi_handler_list): Declare.
6361 (alpha_gdbarch_register_os_abi): New function.
6362 (alpha_gdbarch_init): Give registered ABI variant handlers a
6363 chance to tweak the gdbarch once we have set up defaults.
6364 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6366 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6368 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6369 to standard_coerce_float_to_double.
6370 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6372 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6374 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6375 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6376 from gdbarch_tdep rather than a constant.
6377 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6378 the default text address for all Alpha Unix ABIs.
6379 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6380 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6382 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6384 * alpha-tdep.h: New file. Includes several Alpha target constants
6386 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6387 let gdbarch deal with.
6388 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6389 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6391 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6392 Alpha target register names.
6393 * alphabsd-nat.c: Likewise.
6394 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6395 Alpha target register names. Make serveral routines static.
6396 (alpha_get_saved_register): New function.
6397 (alpha_abi_names): New.
6398 (process_note_abi_tag_sections): New function.
6399 (get_elfosabi): New function.
6400 (alpha_gdbarch_init): New function.
6401 (alpha_dump_tdep): New function.
6402 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6404 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6406 * frame.c (find_saved_register): Delete #ifdef
6407 HAVE_REGISTER_WINDOWS code.
6408 * config/sparc/tm-sparc.h: Update comments.
6409 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6411 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6413 * i960-tdep.c (i960_find_saved_register): New function.
6414 (i960_get_saved_register): New function.
6415 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6416 (i960_get_saved_register): Declare.
6417 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6419 2002-04-20 David S. Miller <davem@redhat.com>
6421 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6423 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6425 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6426 instead of NUM_PSEUDO_REGS.
6428 2002-04-20 David S. Miller <davem@redhat.com>
6430 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6431 GDB_MULTI_ARCH_PARTIAL
6432 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6433 define, let tm-sp64.h do it.
6435 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6437 * frame.c (find_saved_register): Avoid a NULL pointer
6438 dereference and actually walk the frame list.
6440 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6442 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6443 sorted in most most-recent-used order. Document.
6444 * gdbarch.h, gdbarch.c: Regenerate.
6446 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6448 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6450 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6451 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6452 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6455 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6458 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6459 (build_builtin_type_vec128): Ditto.
6460 (append_composite_type_field): Fix calculation of type length in
6463 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6465 * config/djgpp/README: Update.
6467 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6470 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6472 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6473 (alpha_setup_arbitrary_frame): ...to this.
6474 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6475 for alpha_setup_arbitrary_frame.
6477 2002-04-18 Andrew Cagney <cagney@redhat.com>
6479 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6480 * gdbarch.h, gdbarch.c: Regenerate.
6482 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6483 * target.h (memory_breakpoint_from_pc): Update declaration.
6484 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6486 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6487 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6488 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6489 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6490 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6491 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6492 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6493 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6494 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6495 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6496 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6497 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6499 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6501 * monitor.c (monitor_insert_breakpoint): Ditto.
6502 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6504 * config/mcore/tm-mcore.h: Update copyright.
6505 * mem-break.c: Ditto.
6506 * xstormy16-tdep.c: Ditto.
6508 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6510 * p-exp.y: Add precedence rule for '^' token.
6511 This removes the shift/reduce conflicts.
6512 Remove the comment concerning these shift/reduce conflicts.
6514 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6516 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6517 (registers_powerpc_nofp): New register set for processors
6518 without floating point unit.
6520 2002-04-18 David S. Miller <davem@redhat.com>
6522 * MAINTAINERS: Add myself to write-after-approval.
6524 2002-04-17 Michael Snyder <msnyder@redhat.com>
6526 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6528 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6530 * rs6000-tdep.c (frame_initial_stack_address): Use
6531 frame_register_read to read the alloca_reg.
6533 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6535 * frame.c (find_saved_register): Find saved registers in the next
6539 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6541 * gdbarch.sh (LANG): Set to ``c''.
6543 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6545 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6547 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6549 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6552 * hpread.c (hpread_get_lntt): Add declaration.
6553 Also fix PR gdb/391.
6555 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6557 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6558 * aclocal.m4, configure: Re-generate.
6561 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6563 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6564 instead of tm_print_insn.
6566 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6568 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6570 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6572 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6573 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6574 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6576 2002-04-12 Don Howard <dhoward@redhat.com>
6578 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6579 max_user_call_depth.
6580 (init_cmd_lists): Initialize the new value;
6581 * cli/cli-script.c (execute_user_command): Limit the call depth of
6582 user defined commands. This avoids a core-dump when user commands
6583 are infinitly recursive.
6585 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6587 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6588 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6589 from tdep struct instead of DEFAULT_LR_SAVE.
6590 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6591 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6592 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6594 2002-04-12 Michael Snyder <msnyder@redhat.com>
6596 * Remote.c: Spelling fix.
6597 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6598 If no symbol found for "sbrk", try "_sbrk".
6599 (make_output_phdrs): Use bfd_section_name.
6600 (gcore_copy_callback): Use bfd_section_name.
6601 * eval.c: Indentation fix-ups.
6602 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6603 in case it gets applied to an address that is already
6604 in the instruction space.
6605 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6606 * symfile.c: Fix indentation, long lines.
6607 * source.c: White space fix-up.
6609 2002-04-12 Andrew Cagney <cagney@redhat.com>
6611 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6612 * frame.c (frame_register_read): New function. Return non-zero on
6614 (read_relative_register_raw_bytes_for_frame): Delete.
6615 (read_relative_register_raw_bytes): Delete.
6616 * frame.h (frame_register_read): Declare.
6617 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6619 * infcmd.c (do_registers_info): Ditto.
6620 * hppa-tdep.c: Ditto.
6621 * rs6000-tdep.c: Ditto.
6622 * h8500-tdep.c: Ditto.
6623 * mips-tdep.c: Ditto.
6624 * h8300-tdep.c: Ditto.
6625 * z8k-tdep.c: Ditto.
6627 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6629 From Jimi X <jimix@watson.ibm.com>:
6630 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6633 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6635 From Jimi X <jimix@watson.ibm.com>:
6636 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6639 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6641 From Jimi X <jimix@watson.ibm.com>:
6642 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6643 register sets for these processor variants.
6645 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6647 * regformats/reg-ppc.dat: Support FPSCR.
6649 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6651 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6652 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6653 Add fpscr as an invalid/unfetchable register.
6654 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6655 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6656 (fill_fpregset): Add support for register fpscr.
6657 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6658 (fill_gregset): Account for the fact that register ``mq'' might
6660 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6661 (registers_power): Add fpscr to register set at slot 71.
6662 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6663 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6665 2002-04-11 Michael Snyder <msnyder@redhat.com>
6667 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6668 * configure: Regenerate.
6669 * config.in: Regenerate.
6670 * acconfig.h: Add define for _SYSCALL32.
6671 * core-sol2.c: Remove #define _SYSCALL32.
6672 * solib-legacy.c: Remove #define _SYSCALL32.
6674 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6676 * stack.c (select_frame): Cleanup internal error message, do not
6679 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6681 * stack.c (select_frame): Check that selected_frame and the
6682 specified level are as expected.
6683 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6685 * frame.h (struct frame_info): Add field `level'. Update
6687 Work-in-progress PR gdb/464.
6689 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6691 * maint.c (maint_print_section_info): Rename print_section_info.
6692 (print_bfd_section_info, print_objfile_section_info): Update.
6693 * inferior.h (struct gdbarch): Add opaque declaration.
6694 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6695 * gdbarch.h: Regenerate.
6697 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6699 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6700 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6701 (kernel_u_size): Added.
6702 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6703 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6705 2002-04-04 Jim Ingham <jingham@apple.com>
6707 * valarith.c (find_size_for_pointer_math): New function, either returns
6708 the size for a pointer's target, returns 1 for void *, or errors for
6710 (value_add, value_sub): use find_size_for_pointer_math.
6712 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6714 * linux-low.c (linux_look_up_symbols): New hook.
6715 (linux_target_ops): Add linux_look_up_symbols.
6716 * remote-utils.c (decode_address): New function.
6717 (look_up_one_symbol): New function.
6718 * server.c (handle_query): Call target look_up_symbols hook.
6719 * server.h (look_up_one_symbol): Add prototype.
6720 * target.h (struct target_ops): Add look_up_symbols hook.
6722 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6724 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6725 override FP_REGNUM with frame->fp. Update copyright.
6726 * parse.c (num_std_regs, std_regs): Delete.
6727 (target_map_name_to_register): Do not search std_regs. Update
6728 function description.
6729 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6730 declarations. Update copyright.
6733 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6735 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6736 after the last symbol in a block.
6738 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6740 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6741 is non zero as a found symbol.
6743 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6745 * findvar.c: Include "builtin-regs.h".
6746 (value_of_register): Call value_of_builtin_reg when applicable.
6747 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6748 (target_map_name_to_register): Call
6749 builtin_reg_map_name_to_regnum.
6750 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6751 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6752 (builtin_regs_h): Define.
6753 (builtin-regs.o): New target.
6754 (findvar.o): Add $(builtin_regs_h).
6755 * builtin-regs.c, builtin-regs.h: New files.
6756 * std-regs.c: New file.
6757 Partial fix for PR gdb/251.
6759 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6761 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6762 it's no longer required.
6764 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6766 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6768 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6770 From Jimi X <jimix@watson.ibm.com>:
6771 * rs6000-tdep.c (rs6000_software_single_step): Use
6772 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6773 and size. Use target_insert_breakpoint() and
6774 target_remove_breakpoint() to insert and remove breakpoints
6775 instead of explicit memory reads and writes.
6777 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6779 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6780 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6781 ELF_OBJECT_FORMAT ifdef.
6783 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6785 From Jimi X <jimix@watson.ibm.com>:
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6788 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6790 From Jimi X <jimix@watson.ibm.com>:
6791 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6792 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6794 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6796 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6797 s/asprintf/xasprintf/.
6798 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6800 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6802 I believe Jeff Law denies responsability for this one:
6803 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6804 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6805 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6806 Work-around for PR gdb/366.
6808 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6810 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6811 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6812 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6814 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6816 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6817 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6820 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6822 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6825 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6827 * README (Reporting Bugs in GDB): Document the bug web page as the
6828 prefered way of submitting bugs.
6831 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6833 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6835 * gdbarch.h, gdbarch.c: Re-generate.
6837 2002-04-07 Andreas Schwab <schwab@suse.de>
6839 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6840 buffer to regcache_collect.
6842 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6844 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6845 * gdbarch.c, gdbarch.h: Re-generate.
6847 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6849 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6850 declaration. Fix -Werror.
6852 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6854 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6855 * gdbarch.c: Regenerate.
6857 2002-04-05 Michael Snyder <msnyder@redhat.com>
6859 * breakpoint.c (clear_command): Rewrite middle section to
6860 combine two loops with identical control conditions.
6861 Add a cleanup to eliminate a memory leak.
6862 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6864 2002-04-05 H.J. Lu (hjl@gnu.org)
6866 * solib-svr4.c (bkpt_names): Add "__start".
6868 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6870 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6871 as test for 64 bit target.
6873 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6875 * h8500-tdep.c (h8500_write_fp): Delete function.
6876 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6877 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6878 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6880 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6881 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6883 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6884 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6885 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6886 (d10v_write_fp): Delete function.
6887 * inferior.h (write_fp, generic_target_write_fp): Delete
6889 * regcache.c (generic_target_write_fp): Delete function.
6890 (write_fp): Delete function.
6891 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6892 * gdbarch.h, gdbarch.c: Regenerate.
6893 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6894 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6895 (sparc64_write_fp): Delete declaration.
6896 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6897 (h8500_write_fp): Delete declaration.
6899 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6901 * sparc-tdep.c (sparc64_write_fp): Delete.
6902 (sparc_push_dummy_frame): Replace write_fp call with code to store
6904 (sparc_gdbarch_init): Do not initialize write_fp.
6906 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6908 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6911 2002-03-29 Jim Blandy <jimb@redhat.com>
6913 * stack.c (get_selected_block): Add new argument `addr_in_block',
6914 used to return the exact code address we used to select the block,
6916 * blockframe.c (get_frame_block, get_current_block): Same.
6917 * frame.h (get_frame_block, get_current_block,
6918 get_selected_block): Update declarations.
6919 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6920 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6922 2002-04-05 Michael Snyder <msnyder@redhat.com>
6924 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6927 2002-04-05 J. Brobecker <brobecker@gnat.com>
6929 * utils.c (xfullpath): New function.
6930 * defs.h (xfullpath): Add declaration.
6931 * source.c (openp): Use xfullpath in place of gdb_realpath to
6932 avoid resolving the basename part of filenames when the
6933 associated file is a symbolic link. This fixes a potential
6934 inconsistency between the filenames known to GDB and the
6935 filenames it prints in the annotations.
6936 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6937 to be able to match a filename with either the real filename, or
6938 the name of any symbolic link to this file.
6939 (lookup_partial_symtab): Ditto.
6941 2002-04-04 Michael Snyder <msnyder@redhat.com>
6943 * breakpoint.c: Add support for hardware breakpoints in overlays.
6944 (overlay_events_enabled): New state variable.
6945 (insert_breakpoints): Use overlay_events_enabled to decide
6946 whether to attempt to set a breakpoint at the overlay load addr.
6947 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6948 (remove_breakpoint): Use overlay_events_enabled to decide
6949 whether breakpoints need to be removed from overlay load addr.
6950 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6951 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6952 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6953 disable_overlay_breakpoints): Update overlay_events_enabled.
6955 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
6957 * dwarf2read.c (struct function_range): New.
6958 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6959 (check_cu_functions): New.
6960 (read_file_scope): Initialize global function lists.
6961 Call dwarf_decode_line after processing children.
6962 (read_func_scope): Add to global function list.
6963 (dwarf_decode_lines): Call check_cu_functions everywhere
6964 record_line is called. Call record_line with a linenumber
6965 of 0 to mark sequence ends.
6967 2002-04-04 Michal Ludvig <mludvig@suse.cz>
6969 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6970 change sync with glibc.
6972 2002-04-03 Jim Blandy <jimb@redhat.com>
6974 * configure.in: Call AC_C_INLINE.
6975 * configure: Regenerated.
6977 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
6979 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6980 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6982 2002-03-31 Mark Kettenis <kettenis@gnu.org>
6984 * NEWS: Mention gcore support on FreeBSD/i386.
6986 * fbsd-proc.c: New file.
6987 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6988 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6990 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6993 2002-03-29 Jim Blandy <jimb@redhat.com>
6995 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6996 unescaped newlines in string literals, but newer ones don't. So
6999 2002-03-26 Michael Snyder <msnyder@redhat.com>
7000 Andrew Cagney <cagney@redhat.com>
7002 * cli/cli-dump.c: New file. Dump memory to file,
7003 restore file to memory.
7004 * cli/cli-dump.h: New file.
7005 * Makefile.in: Add rules, dependencies for cli-dump.o.
7006 * NEWS: Mention new commands.
7008 2002-03-28 Michael Snyder <msnyder@redhat.com>
7010 * symfile.c (symbol_file_add): Move test for null symbols to later.
7012 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7014 From veksler at il.ibm.com:
7015 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7016 the xstrduped original path.
7019 2002-03-27 Michael Snyder <msnyder@redhat.com>
7021 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7022 * infcmd.c (_initialize_infcmd): Ditto.
7023 * language.c (_initialize_language): Ditto.
7024 * symfile.c (_initialize_symfile): Ditto.
7025 * top.c (_init_main): Ditto.
7026 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7028 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7030 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7031 vector registers handling.
7032 (skip_prologue): Handle new AltiVec instructions. Fill in new
7033 fields of frame data.
7034 (frame_get_saved_regs): Fill in information for AltiVec registers.
7036 2002-03-27 Jim Blandy <jimb@redhat.com>
7038 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7039 a function; leave this macro here to invoke that function.
7040 (symbol_init_mangled_name): Declaration for that function.
7041 * symtab.c (symbol_init_mangled_name): New function.
7043 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7045 * valarith.c: Replace strerror with safe_strerror.
7046 * tracepoint.c: Ditto.
7048 * go32-nat.c: Ditto.
7052 2002-03-27 Andreas Schwab <schwab@suse.de>
7054 * event-top.c (command_line_handler): Remove useless if.
7056 2002-03-27 Andreas Jaeger <aj@suse.de>
7058 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7061 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7063 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7064 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7065 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7066 (x86_64_linux_dr_get_status, supply_gregset),
7067 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7068 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7069 (x86_64_register_info_table): Add.
7070 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7071 (x86_64_register_raw_size, x86_64_register_virtual_type),
7072 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7073 general x86_64_register_info_table.
7074 (i386_gdbarch_init): gdbarch_register_bytes is now set
7075 dynamicaly during initialization.
7076 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7077 * gdbserver/linux-x86-64-low.c: Ditto.
7079 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7081 * gdbserver/server.c (main): Call target_signal_to_host_p
7082 and target_signal_to_host on signals received from the remote.
7083 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7084 target_signal_from_host on signals sent to the remote.
7085 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7086 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7088 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7090 * signals/signals.c: Include "server.h" in gdbserver build.
7091 (target_signal_from_name): Don't use STREQ.
7092 (_initialize_signals): Likewise. Don't include function in
7095 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7097 * signals.c: Moved to...
7098 * signals/signals.c: Here.
7099 * Makefile (signals.o): Update.
7101 2002-03-26 Jeff Law (law@redhat.com)
7103 * somread.c (som_symtab_read): Remove some commented out code and
7104 updated related comments. Do not set the minimal symbol table to
7105 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7106 in a dynamic executable.
7107 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7108 where we are unable to find the minimal symbol for the given
7111 2002-03-25 Jeff Law (law@redhat.com)
7113 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7115 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7117 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7119 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7121 * command.h: Update copyright.
7122 (struct cmd_list_element): Replace definition with opaque
7124 (enum cmd_types): Document that it will eventually be moved to
7126 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7127 (MALLOCED_REPLACEMENT): Delete macro.
7128 * Makefile.in (cli_decode_h): Add $(command_h).
7129 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7130 * top.c: Include "cli/cli-decode.h".
7131 * completer.c: Include "cli/cli-decode.h".
7132 * maint.c: Include "cli/cli-decode.h".
7133 * cli/cli-decode.h: Include "command.h".
7134 (enum command_class): Delete.
7135 (enum cmd_types): Comment out.
7136 (enum cmd_auto_boolean): Delete.
7137 (enum var_types): Delete.
7139 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7141 * cli/cli-decode.c: Include "gdb_assert.h".
7142 (add_set_or_show_cmd): New static function.
7143 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7144 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7145 all fields, such as func, from the set command.
7147 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7149 * MAINTAINERS (sh-elf): Change warning flag to -w.
7151 2002-03-23 Andrew Cagney <cagney@redhat.com>
7153 * defs.h (error): Add printf format attribute.
7154 * thread-db.c (thread_from_lwp): Fix error format string.
7155 * stack.c (parse_frame_specification): Ditto.
7156 * cli/cli-decode.c (undef_cmd_error): Ditto.
7157 * scm-lang.c (scm_lookup_name): Ditto.
7158 * tracepoint.c (trace_error): Ditto.
7159 * remote-utils.c (usage): Ditto.
7160 * remote.c (compare_sections_command): Ditto.
7163 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7165 * gdbtypes.c (append_composite_type_field): New function.
7166 (init_composite_type): New function.
7167 * gdbtypes.h (append_composite_type_field): Declare.
7168 (init_composite_type): Ditto.
7170 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7172 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7174 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7175 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7176 structure returning convention for SYSV ABI case, but not
7177 for GNU/Linux, FreeBSD, or NetBSD.
7179 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7181 * symtab.h (lookup_block_symbol): Add mangled_name argument
7184 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7185 with new mangled_name argument.
7186 * linespec.c (decode_line_1): Likewise.
7187 * valops (value_of_this): Likewise.
7188 * symtab.c (lookup_transparent_type): Likewise.
7189 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7190 (lookup_symbol): If we are given a mangled name, pass it down
7191 to lookup_symbol_aux.
7192 (lookup_block_symbol): If we are given a mangled name to check
7193 against, only return symbols which match it.
7195 2002-03-22 Christopher Faylor <cgf@redhat.com>
7197 * win32-nat.c (child_create_inferior): Check for proper shell to use
7198 here, in case the user changes it on the fly.
7199 (_initialize_inftarg): Remove shell path considerations.
7201 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7203 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7204 for gdbarch_max_register_raw_size and max_register_virtual_size.
7205 Adjust copyright year.
7207 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7209 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7210 in a function to cover the entire beginning of the function
7211 as well if it does not already.
7213 2002-03-21 Tom Rix <trix@redhat.com>
7215 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7216 (rs6000_ptrace64): Renamed from ptrace64.
7218 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7220 * gdbserver/remote-utils.c (remote_open): Don't call
7221 getprotobyname, we're all using TCP here so just use
7223 * gdbserver/gdbreplay.c (remote_open): Ditto.
7225 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7227 * regcache.c (_initialize_regcache): No need to call
7228 build_regcache() at this time; it gets called whenever
7229 the gdbarch changes.
7231 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7233 * sparc-nat.c: Include sys/param.h where possible.
7235 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7238 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7239 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7240 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7242 * stabsread.c (rs6000_builtin_type): Likewise.
7243 (read_sun_floating_type): Likewise.
7245 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7247 * stabsread.c (read_member_functions): Remove skip code for duplicate
7248 constructor/destructor methods. Use standard parsing for these
7249 methods and just do not chain them to the list of methods after
7252 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7254 * coffread.c: Remove redundant static declarations. Replace
7255 occurrences of `PTR' with `void *'.
7256 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7257 * top.h (quit_cover): Likewise.
7258 * defs.h (catch_errors): Likewise.
7260 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7262 * defs.h (XMALLOC): Define.
7263 * gdb-events.sh (XMALLOC): Delete macro.
7264 * gdb-events.c, gdb-events.h: Regenerate.
7265 * gdbarch.sh (XMALLOC): Delete macro.
7266 * gdbarch.c: Regenerate.
7267 * serial.c (XMALLOC): Delete macro.
7268 * ui-file.c (XMALLOC): Ditto.
7269 * ser-unix.h (XMALLOC): Ditto.
7270 * sh-tdep.c (XMALLOC): Ditto.
7271 * ui-out.c (XMALLOC): Ditto.
7272 * utils.c (XMALLOC): Ditto.
7273 * i386-tdep.c (XMALLOC): Ditto.
7274 * gdb-events.c (XMALLOC): Ditto.
7275 * d10v-tdep.c (XMALLOC): Ditto.
7276 * cli-out.c (XMALLOC): Ditto.
7278 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7279 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7280 * ui-file.c, ui-out.c: Ditto.
7282 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7284 * command.h (struct cmd_list_element): Add field context.
7285 (set_cmd_context, get_cmd_context): Declare.
7286 * cli/cli-decode.h: Ditto.
7287 * cli/cli-decode.c (get_cmd_context): New function.
7288 (set_cmd_context): New function.
7289 (add_cmd): Initialize context.
7290 Part of fixing PR gdb/145 and PR gdb/146.
7292 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7294 * cli/cli-decode.c (cmd_type): New function.
7295 * command.h (cmd_type): Declare.
7296 * infrun.c (set_schedlock_func): Call function cmd_type.
7297 * kod.c (kod_set_os): Call cmd_type.
7298 * cris-tdep.c (cris_version_update): Use function cmd_type.
7299 (cris_mode_update, cris_abi_update): Ditto.
7301 * command.h: (execute_cmd_post_hook): Declare.
7302 (execute_cmd_pre_hook): Declare.
7303 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7304 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7305 functions. Execute pre/post hook while ensuring that afterwords
7307 * top.c (execute_command): Use execute_cmd_post_hook, and
7308 execute_cmd_pre_hook to execute pre/post commands.
7309 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7311 (hook_stop_stub): Call execute_cmd_pre_hook.
7313 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7315 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7316 set'' and this leads to a core dump. Move xstrdup of
7317 operating_system to after check that it is not NULL.
7319 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7321 * kod.c (kod_set_os): Remove unnecessary check that
7322 ``command->type'' is set_cmd.
7324 * valprint.c (set_input_radix): Use input_radix.
7325 (set_output_radix): Use output_radix.
7326 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7329 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7331 * value.h (struct value): Delete field ``substring_addr''. Change
7332 aligner fields to force_doublest_align, force_longest_align,
7333 force_core_addr_align and force_pointer_aligh.
7335 * value.h (struct value): Fix typo in above change.
7337 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7339 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7340 to fix internal_error from ``maintenance print architecture''.
7342 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7344 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7345 for gcc versions after gcc-2.8.1.
7347 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7349 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7350 for method resolution. Restore adjustment of ``this'' pointer after
7351 calling value_struct_elt, which was accidentally removed during the
7354 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7356 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7358 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7360 * value.h (value_of_register): Update.
7362 2002-03-14 Richard Henderson <rth@redhat.com>
7364 * configure.in: Detect declaration for canonicalize_file_name.
7365 * utils.c (canonicalize_file_name): Declare, if needed.
7366 (gdb_realpath): Prefer realpath if available and usable.
7367 * config.in, configure: Rebuild.
7369 2002-03-14 Richard Henderson <rth@redhat.com>
7371 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7372 a constant array bound.
7374 * MAINTAINERS: Add myself to write-after-approval.
7376 2002-03-14 Michael Snyder <msnyder@redhat.com>
7378 * symfile.c (syms_from_objfile): Return immediately if no syms.
7379 (symbol_file_add): Return immediately if no syms.
7380 (find_sym_fns): Return immediately if no syms.
7382 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7384 * gdbserver/remote-util.c (remote_open): Print remote-side's
7385 IP address when remote debugging over the network.
7387 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7389 * config/sparc/fbsd.mh: Fix copyright.
7390 * config/sparc/fbsd.mt: Likewise.
7392 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7394 * MAINTAINERS: Fix typo in name of gdb warnings option.
7395 (x86-64): Fix formating so that this can be parsed by awk.
7397 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7399 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7400 * defs.h: Include "gdb/signals.h".
7401 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7403 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7405 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7406 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7409 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7410 Don Howard <dhoward@redhat.com>
7412 * mips-tdep.c (ST0_FR): Define.
7413 (mips2_fp_compat): New function, temporarily disabled.
7414 (mips_read_fp_register_single): New function.
7415 (mips_read_fp_register_double): New function.
7416 (mips_print_register): Use them.
7417 (do_fp_register_row): Likewise.
7419 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7421 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7424 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7426 * stabsread.c (read_member_functions): Fix is_stub test for
7427 static member functions, improve comment.
7429 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7431 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7432 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7433 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7434 commands that set boolean values.
7435 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7436 (arm_rdi_resume): Always initialize PC.
7437 (arm_rdi_open): Don't use rslt as a boolean.
7438 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7439 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7440 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7441 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7443 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7445 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7446 * configure: Rebuilt.
7448 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7450 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7451 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7453 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7455 * cli/cli-decode.c (set_cmd_completer): New function.
7456 * command.h (set_cmd_completer): Declare.
7457 * cli/cli-decode.h (set_cmd_completer): Ditto.
7459 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7460 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7461 * win32-nat.c (_initialize_inftarg): Ditto.
7462 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7463 * proc-api.c (_initialize_proc_api): Ditto.
7464 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7465 * source.c (_initialize_source): Ditto.
7466 * exec.c (_initialize_exec): Ditto.
7467 * solib.c (_initialize_solib): Ditto.
7468 * top.c (init_main): Ditto.
7469 * tracepoint.c (_initialize_tracepoint): Ditto.
7470 * symfile.c (_initialize_symfile): Ditto.
7471 * printcmd.c (_initialize_printcmd): Ditto.
7472 * infcmd.c (_initialize_infcmd): Ditto.
7473 * corefile.c (_initialize_core): Ditto.
7475 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7477 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7479 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7481 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7483 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7485 * NEWS: Update headings, 5.2 has branched.
7487 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7489 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7490 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7491 (register_addr, REGISTER_RAW_SIZE): Likewise.
7492 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7493 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7495 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7497 * MAINTAINERS (x86-64): Add myself.
7498 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7499 changed value_ptr -> struct value *
7501 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7503 * configure.host (sparc64-*-freebsd): Add.
7504 * configure.tgt: Likewise.
7505 * config/sparc/fbsd.mh: New file.
7506 * config/sparc/fbsd.mt: Likewise.
7507 * config/sparc/nm-fbsd.h: Likewise.
7508 * config/sparc/tm-fbsd.h: Likewise.
7510 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7512 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7513 regformats/reg-s390x.dat.
7515 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7517 * utils.c: Add FIXME explaining true/false problem.
7519 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7521 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7523 2002-02-28 Michael Chastain <mec@shout.net>
7525 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7527 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7529 * gdbserver/linux-s390-low.c: New file.
7530 * regformats/reg-s390.dat: New file.
7531 * regformats/reg-s390x.dat: New file.
7532 * gdbserver/configure.srv: Add S/390.
7533 * gdbserver/Makefile.in: Add S/390.
7534 * configure.tgt: Enable gdbserver for S/390.
7536 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7538 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7539 first line of the doc string for "info dos", except at the end of
7540 the sentence, since the short help stops at the first period.
7542 2002-02-28 Jason Merrill <jason@redhat.com>
7544 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7546 2002-02-27 Fred Fish <fnf@redhat.com>
7548 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7549 comment (dumy -> dummy).
7551 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7553 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7555 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7557 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7559 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7561 * gdbserver/acconfig.h: New file.
7562 * gdbserver/i387-fp.c: New file.
7563 * gdbserver/i387-fp.h: New file.
7564 * gdbserver/linux-x86-64.c: New file.
7565 * regformats/reg-x86-64.dat: New file.
7566 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7567 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7568 * gdbserver/configure.in: Add support for regsets.
7569 * gdbserver/config.in: Regenerate.
7570 * gdbserver/configure: Regenerate.
7571 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7572 * gdbserver/linux-low.h: New file.
7573 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7575 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7576 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7577 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7578 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7579 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7580 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7581 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7582 "i387-fp.h". Add PTRACE_GETREGS and friends.
7583 * gdbserver/regcache.c (supply_register): New function.
7584 (supply_register_by_name): New function.
7585 (collect_register): New function.
7586 (collect_register_by_name): New function.
7588 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7590 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7591 (config.status): Add configure.srv dependency.
7592 (server_h): Add config.h dependency.
7594 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7596 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7597 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7598 * gdbserver/configure.srv: Change i386-*-linux* to use
7601 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7603 * x86-64-tdep.c: Re-indent. Update copyright date.
7605 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7607 From Michal Ludvig <mludvig@suse.cz>:
7608 * x86-64-tdep.c (value.h): Delete.
7609 (gdb_assert.h): Include.
7610 (x86_64_register_convert_to_virtual,
7611 x86_64_register_convert_to_raw ): Add check which lets only
7612 floating-point values to be converted.
7613 (value_push): Delete.
7614 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7615 (i386_gdbarch_init): Number of register_bytes fixed.
7617 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7619 * MAINTAINERS: Add x86-64 target.
7621 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7623 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7624 * osfsolib.c (solib_map_sections): Ditto.
7625 * irix5-nat.c (solib_map_sections): Ditto.
7626 * corelow.c (gdb_check_format): Ditto.
7627 * symfile.c (symfile_bfd_open): Ditto.
7628 * solib.c (solib_map_sections): Ditto.
7631 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7633 * remote.c (_initialize_remote): By default, disable ``e'' and
7634 ``E'' step out-of-range packets.
7636 2002-02-26 Andreas Schwab <schwab@suse.de>
7638 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7639 m68k_linux_frame_saved_pc.
7640 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7642 (SIGCONTEXT_PC_OFFSET): Remove.
7643 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7644 m68k_linux_sigtramp_saved_pc): New functions.
7645 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7646 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7647 (UCONTEXT_PC_OFFSET): Define.
7648 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7649 non-RT and RT signal trampolines.
7651 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7653 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7654 (TARGET_NBPG, STACK_END_ADDR): Delete
7655 (VARIABLES_INSIDE_BLOCK): Delete.
7657 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7659 * utils.c (perror_with_name): Make string parameter constant.
7660 (print_sys_errmsg): Ditto.
7662 * defs.h (perror_with_name): Update.
7663 (print_sys_errmsg): Update.
7666 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7668 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7669 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7671 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7673 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7674 if it already matches the current architecture from the exec file.
7675 Include arch-utils.h for gdbarch_info_init prototype.
7676 * Makefile.in (rs6000-nat.o): Update dependencies.
7678 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7680 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7681 list of exported variables.
7683 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7685 * gdbserver/configure.srv: New file.
7686 * gdbserver/configure.in: Use configure.srv instead
7687 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7689 * gdbserver/configure: Regenerated.
7690 * gdbserver/terminal.h: New file.
7691 * gdbserver/Makefile.in: Update for configure changes. Remove
7692 more unneeded include paths.
7694 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7696 From wiz at danbala:
7697 * config/sparc/tm-sp64.h: Fix grammar and typos.
7700 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7702 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7703 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7704 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7705 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7706 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7707 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7708 * s390-tdep.c: Ditto.
7709 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7710 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7711 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7712 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7713 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7714 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7715 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7716 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7717 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7718 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7721 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7723 * lin-thread.c: Delete file.
7724 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7725 to gdb_proc_service.h.
7726 * configure: Re-generate.
7728 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7729 * serial.c (serial_open): Delete check for "ocd".
7732 * Makefile.in (linux-thread.o): Delete target.
7733 * linux-thread.c: Delete file.
7735 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7736 renamed SH files to be consistent.
7738 * symtab.c (sort_search_symbols): Use xfree.
7740 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7742 * arm-linux-tdep.c (arm_linux_init_abi): Register
7743 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7744 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7745 definition with undef, since we don't want the sysvr4 definition.
7746 (SKIP_TRAMPOLINE_CODE): Likewise.
7748 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7750 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7752 * configure.in: (AC_CHECK_FUNCS) Added test for
7753 canonicalize_file_name Regenerated.
7754 * config.in, configure: Regenerated.
7755 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7756 defined use canonicalize_file_name.
7758 2002-02-23 Michael Chastain <mec@shout.net>
7760 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7762 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7764 * README: Remove references to cygnus.com.
7765 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7766 dot com'' form. Remove references to cygnus.com and sourceware.
7768 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7770 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7771 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7772 1003.1-2001 no longer allows "head -1".
7773 * gdb/Makefile.in (version.c): Likewise.
7774 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7775 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7776 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7778 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7780 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7781 * command.h (cmd_cfunc_eq): Declare.
7782 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7784 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7785 ``struct cmd_list_element *''.
7786 * cli/cli-cmds.c (is_complete_command): Update. Use
7788 * top.c (execute_command): Pass the command to
7789 is_complete_command.
7790 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7792 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7794 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7795 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7796 architecture defines.
7797 * s390-tdep.c (s390_gdbarch_init): Likewise.
7799 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7801 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7802 (arm_linux_push_arguments): Likewise.
7803 (arm_linux_init_abi): Register them. Also register linux-specific
7805 (find_minsym_and_objfile): Use strcmp, not STREQ.
7806 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7807 (arm_linux_call_dummy_words): Delete declaration.
7808 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7809 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7811 (LOWEST_PC): Delete.
7813 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7815 * maint.c (print_section_info): Do not prepend `0x' to filepos
7816 output, it will be handled by local_hex_string_custom.
7818 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7820 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7821 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7822 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7824 2002-02-22 Jim Blandy <jimb@redhat.com>
7826 Indicate that the bcache functions don't change the strings
7828 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7829 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7831 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7833 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7835 2002-02-21 Christopher Faylor <cgf@redhat.com>
7837 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7838 find the complete path to a loaded DLL.
7840 2002-02-21 Fred Fish <fnf@redhat.com>
7842 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7843 that marks the end of the range of a function, enter a line number
7844 entry that has a line number of zero and a PC offset that matches
7845 the end of the function. This starts a range of PC's for which no
7846 line number information is known.
7847 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7848 PC's for which no line number info is found (line number is zero)
7849 then we didn't find any valid line information.
7850 * symtab.h: Document use of zero line number entry.
7852 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7854 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7855 (have_ptrace_getvrregs): Define for run time checks.
7856 (gdb_vrregset_t): New type for Altivec register handling.
7857 (fetch_register, store_register): Fetch/store altivec register
7859 (fetch_altivec_register, store_altivec_register): New functions.
7860 (supply_vrregset, fill_vrregset): New functions.
7861 (fetch_altivec_registers, store_altivec_registers): New functions.
7862 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7865 2002-02-21 Jiri Smid <smid@suse.cz>
7867 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7869 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7871 * Makefile.in (armnbsd-nat.o): Update dependencies.
7872 * armnbsd-nat.c (supply_gregset): New function. Common code to
7873 supply the integer register set.
7874 (supply_fparegset): New function. Similar for FPA registers.
7875 (fetch_regs, fetch_fp_regs): Use them.
7876 (fetch_core_registers): Likewise.
7877 (fetch_elfcore_registers): New function.
7878 (arm_netbsd_elfcore_fns): New core-file type specification.
7879 (_initialize_arm_netbsd_nat): Register it.
7881 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7883 * armnbsd-nat.c: Include gdbcore.h.
7884 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7885 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7886 'void' to declaration, to shut up ARI.
7887 (fetch_core_registers): Make static. Rewrite using supply_register.
7888 (arm_netbsd_core_fns): New core-file type specification.
7889 (_initialize_arm_netbsd_nat): New function.
7891 2002-02-21 Christopher Faylor <cgf@redhat.com>
7893 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7896 2002-02-20 Christopher Faylor <cgf@redhat.com>
7898 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7901 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7903 * jv-exp.y (parse_number): Change type of implicit longs
7904 to builtin_type_uint64.
7906 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7908 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7909 to be an integer instead of a `union wait'.
7911 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7913 * mips-linux-nat.c: Call the operating system GNU/Linux.
7914 * mips-linux-tdep.c: Likewise.
7915 * mips-tdep.c: Likewise.
7917 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7920 * jv-exp.y (parse_number): Handle 64-bit integers.
7922 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7924 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7925 AC_STDC_HEADERS to AC_HEADER_STDC.
7926 * gdbserver/configure: Regenerated.
7928 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7930 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7932 * sparc-tdep.c (get_longjmp_target): Likewise.
7934 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7936 * News: Add news about ARM and Multi-arch. Mention the new target
7939 2002-02-19 Jim Blandy <jimb@redhat.com>
7941 * stabsread.c (error_type_complaint): Improve error message.
7943 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7945 * gdbserver/README: Update documentation.
7946 * gdbserver/configure.in: Update configury to match documentation.
7947 * gdbserver/Makefile.in: Likewise.
7948 * gdbserver/configure: Regenerated.
7949 * gdbserver/aclocal.m4: New file, generated by aclocal.
7950 * gdbserver/config.in: New file, generated by autoheader.
7952 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7954 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7957 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7959 * arm-tdep.h (enum arm_float_model): New enum.
7960 (struct gdbarch_tdep): Add fp_model.
7961 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7962 up floating-point conversions until we know the floating-point model
7963 in use by the inferior. Don't complain about being unable to
7964 determine the ABI of the inferior when we don't have one.
7965 (arm_extract_return_value): Support different floating-point models.
7966 (arm_store_return_value): Likewise.
7967 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7969 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7971 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7973 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7974 of ``current_gdbarch''.
7976 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7978 * armnbsd-nat.c : ANSIfy all function declarations.
7979 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7980 (fetch_inferior_registers): Re-implement in terms of above.
7981 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7982 (store_inferior_registers): Re-implement in terms of above.
7984 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7986 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7988 * arm-linux-tdep.c: Likewise.
7989 * config/arm/tm-linux.h: Likewise.
7991 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7993 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7994 * config/arm/nbsd.mt (TM_FILE): Delete.
7995 * config/arm/tm-nbsd.h: Delete.
7997 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7999 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8000 Initialize CALL_DUMMY_LENGTH.
8002 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8004 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8006 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8007 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8008 defines one thing and that is incorrect for this port.
8009 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8011 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8013 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8015 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8017 * win32-nat.c (display_selector): New function. Displays information
8018 about the information returned by GetThreadSelectorEntry API function.
8019 (display_selectors): New function. Displays the infomation of
8020 the selector given as argument, or of CS, DS ans FS selectors
8021 if no argument is given.
8022 ( _initialize_inftarg): Add "w32" as info prefix command.
8023 Add "info w32 selector" as command calling display_selectors.
8025 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8027 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8028 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8031 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8033 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8035 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8037 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8038 (arm_fix_call_dummy): Call it.
8039 (arm_call_dummy_breakpoint_offset): Delete.
8040 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8041 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8043 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8045 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8046 Default to func_frame_chain_valid.
8047 * gdbarch.h, gdbarch.c: Re-generate.
8048 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8050 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8052 * ppc-linux-nat.c: Update copyright.
8053 (fetch_register, store_register): Add tid parameter, don't compute
8055 (fetch_ppc_registers, store_ppc_registers): Add tid
8056 parameter. Pass it along to callees.
8057 (fetch_inferior_registers, store_inferior_registers): Compute tid
8058 here, and pass it to calleed functions.
8059 (fill_gregset, supply_fpregset): Clean up formatting.
8061 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8063 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8064 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8066 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8068 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8069 * gdbarch.c gdbarch.h: Regenerate.
8070 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8072 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8073 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8074 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8076 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8077 * arm-tdep.c (arm_get_longjmp_target): New function.
8078 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8079 this to a positive value register arm_get_longjmp_target as the
8081 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8082 (arm_linux_init_abi): Set up longjmp description in tdep.
8083 * armnbsd-nat.c (get_longjmp_target): Delete.
8084 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8085 description in tdep.
8086 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8087 (get_longjmp_target): Delete declaration.
8088 (GET_LONGJMP_TARGET): Delete.
8089 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8090 (GET_LONGJMP_TARGET): Delete.
8092 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8094 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8095 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8096 of ``current_gdbarch''.
8098 2002-02-17 Tom Tromey <tromey@redhat.com>
8100 * cli/cli-cmds.c (compare_strings): New function.
8101 (complete_command): Only print each unique item once.
8102 * completer.h (complete_line): Declare.
8103 * completer.c (complete_line): New function.
8104 (line_completion_function): Use it.
8106 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8108 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8109 * gdbarch.h, gdbarch.c: Re-generate.
8111 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8113 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8115 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8117 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8118 * valops.c (value_arg_coerce): Don't take the address of a reference
8119 to convert an argument to a reference.
8121 2002-02-15 Christopher Faylor <cgf@redhat.com>
8123 * win32-nat.c (get_image_name): New function.
8124 (handle_load_dll): Use get_image_name function.
8125 (get_child_debug_event): Avoid registering debug events until possibly
8126 execed process is started.
8127 (child_create_inferior): Allow invocation via shell so that command
8128 line redirection, etc. works ok.
8129 (_initialize_inftarg): Add new command: "set shell" to control whether
8130 a shell is used to start a process.
8132 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8134 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8135 instead of find_register_by_number.
8136 (cannot_store_register): Likewise.
8138 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8140 * dwarf2read.c: Replace fprintf (stderr, ...) by
8141 fprintf_unfiltered (gdb_stderr, ...).
8143 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8145 * gdbserver/gdbserver.1: Document --attach.
8147 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8149 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8151 * arm-tdep.c (arm_default_arm_le_breakpoint)
8152 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8153 (arm_default_thumb_be_breakpoint): New. Initialize them from
8154 traditional breakpoint defines.
8155 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8156 (arm_gdbarch_init): Initialize new breakpoint variables.
8157 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8158 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8159 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8160 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8162 (arm_netbsd_init_abi_common): ... here; new function.
8163 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8164 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8165 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8166 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8168 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8170 * arm-tdep.h (enum arm_abi): New enum.
8171 (struct gdbarch_tdep): New structure.
8172 (LOWEST_PC): Provide a default.
8173 (arm_gdbarch_register_os_abi): Declare new function.
8174 * arm-tdep.c (arm_abi_names): New array.
8175 (process_note_abi_tag_sections): New function.
8176 (get_elfosabi): New function.
8177 (arm_gdbarch_register_os_abi): New function.
8178 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8179 support for that ABI has been built in, then call the appropriate
8180 configuration routine. Use gdbarch_num_regs() to get the number
8182 (arm_dump_tdep): New function.
8183 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8184 place-holder functions.
8185 (_initialize_arm_tdep): Register them.
8186 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8188 * armnbsd-tdep.c: New file.
8189 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8190 * config/arm/nbsd.mt (TDEPFILES): Add it.
8191 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8193 * armnbsd-nat.c: Include regcache.h.
8194 * Makefile.in (armnbsd-nat.o): Update dependency list.
8196 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8198 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8200 * gdbserver/Makefile.in: Fix typos in target rules.
8202 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8204 Fix part of PR gdb/267.
8205 * linespec.c (find_methods): Handle constructors specially for now.
8207 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8209 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8211 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8212 standard_coerce_float_to_double().
8214 2002-02-14 Christopher Faylor <cgf@redhat.com>
8216 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8219 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8221 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8222 find_variant_by_name, because it confuses the multiarch
8223 framework. Return NULL if there isn't an architecture with the
8224 user supplied name, instead of forcing a different one without
8225 recording the change with the multiarch machinery.
8226 (find_variant_by_name): Delete.
8228 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8230 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8231 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8233 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8235 * stack.c (print_frame_info_base): When calling
8236 print_frame_info_listing_hook, set current_source_symtab.
8238 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8240 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8241 and remove unused $(INCLUDE_DIR).
8242 Add regcache.c to OBS.
8243 Add generated register protocol files to clean target.
8244 Update dependencies for new objects, obsolete old target code.
8246 * gdbserver/linux-low.c: Remove all platform-specific code to
8247 new files. Remove various dead code. Update to use regcache
8249 * gdbserver/remote-utils.c (fromhex): Add return statement
8251 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8253 (input_interrupt): Add integer parameter to match prototype
8254 of a signal handler.
8255 (outreg): Use register_data ().
8256 (prepare_resume_reply): Use gdbserver_expedite_regs.
8257 * gdbserver/server.c (main): Dynamically allocate own_buf because
8258 PBUFSIZ is no longer constant. Use registers_to_string () and
8259 registers_from_string ().
8260 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8261 for error (), fatal (), and warning (). Update definition of
8262 PBUFSIZ to use regcache functionality. Add include guard.
8263 * gdbserver/utils.c (fatal): Add missing ``const''.
8264 (warning): New function.
8266 * regformats/regdat.sh: Include "regcache.h" in generated files.
8267 Provide init_registers () function.
8268 * regformats/regdef.h: Add prototype for set_register_cache ().
8271 * gdbserver/linux-arm-low.c: New file.
8272 * gdbserver/linux-i386-low.c: New file.
8273 * gdbserver/linux-ia64-low.c: New file.
8274 * gdbserver/linux-m68k-low.c: New file.
8275 * gdbserver/linux-mips-low.c: New file.
8276 * gdbserver/linux-ppc-low.c: New file.
8277 * gdbserver/linux-sh-low.c: New file.
8279 * gdbserver/regcache.c: New file.
8280 * gdbserver/regcache.h: New file.
8282 * gdbserver/low-linux.c: Removed obsolete file.
8284 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8286 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8287 * config/i386/linux.mt: Likewise.
8288 * config/ia64/linux.mt: Likewise.
8289 * config/m68k/linux.mh: Likewise.
8290 * config/powerpc/linux.mh: Likewise.
8291 * config/mips/linux.mt: Likewise.
8293 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8295 * config/i386/i386lynx.mh: Mark gdbserver variables
8296 as (currently) obsolete for this target.
8297 * config/i386/nbsd.mt: Likewise.
8298 * config/i386/nbsdelf.mt: Likewise.
8299 * config/m32r/m32r.mt: Likewise.
8300 * config/m68k/m68klynx.mh: Likewise.
8301 * config/m68k/nbsd.mt: Likewise.
8302 * config/m68k/sun3os4.mh: Likewise.
8303 * config/mips/vr5000.mt: Likewise.
8304 * config/ns32k/nbsd.mt: Likewise.
8305 * config/pa/hppabsd.mh: Likewise.
8306 * config/pa/hppaosf.mh: Likewise.
8307 * config/powerpc/nbsd.mt: Likewise.
8308 * config/rs6000/rs6000lynx.mh: Likewise.
8309 * config/s390/s390.mt: Likewise.
8310 * config/s390/s390x.mt: Likewise.
8311 * config/sparc/sparclynx.mh: Likewise.
8312 * config/sparc/sun4os4.mh: Likewise.
8313 * config/i386/x86-64linux.mt: Likewise.
8314 * config/sparc/linux.mh: Likewise.
8316 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8318 * configure.tgt: Configure gdbserver only for known working
8319 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8320 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8321 SUBDIRS if it is configured. Update comment for ${nativefile}.
8322 * configure: Regenerated.
8324 2002-02-13 Michael Snyder <msnyder@redhat.com>
8326 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8328 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8329 (default_gcore_mach): Just return 0, work around a problem in bfd.
8330 (default_gcore_target): OK to return NULL if exec_bfd is null.
8331 (make_mem_sec): Use a cast, avoid a warning.
8333 * procfs.c (find_memory_regions_callback): Use a cast instead of
8334 calling host_pointer_to_address (which complains if
8335 sizeof (host pointer) != sizeof (target pointer)).
8336 (procfs_make_note_section): Avoid overflow in psargs string.
8338 * procfs.c (procfs_make_note_section): Make the default
8339 implementation return an error.
8341 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8343 * procfs.c (procfs_make_note_section): Provide a default definition
8344 (for alpha-dec-osf4.0f). Fix typos.
8346 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8348 * linux-proc.c: Add include of regcache.h.
8349 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8351 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8353 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8354 * memattr.c (create_mem_region): Disallow useless empty region.
8355 Regions are half-open intervals, so allow [A..B) [B..C) as
8358 2002-02-13 Michael Chastain <mec@shout.net>
8360 * defs.h: Kill CONST_PTR.
8361 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8362 * c-lang.c (c_builtin_types): Likewise.
8363 * ch-lang.c (ch_builtin_types): Likewise.
8364 * f-lang.c (f_builtin_types): Likewise.
8365 * language.c (unknown_builtin_types): Likewise.
8366 * m2-lang.c (m2_builtin_types): Likewise.
8367 * p-lang.c (pascal_builtin_types): Likewise.
8368 * scm-lang.c (c_builtin_types): Likewise.
8370 2002-02-13 Keith Seitz <keiths@redhat.com>
8372 * arm-tdep.h (arm_get_next_pc): Add declaration.
8374 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8376 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8377 with other related struct-returning functions.
8378 (arm_extract_struct_value_address): New function.
8379 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8380 initialize float_format, double_format and long_double_format as
8381 appropriate to the endianness of the target.
8382 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8383 (arm_use_struct_convention): Delete declaration.
8384 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8386 2002-02-13 Keith Seitz <keiths@redhat.com>
8388 * defs.h (core_addr_to_string_nz): New function.
8390 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8392 Apply missing bits of 2002-01-15 patch.
8393 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8394 (fill_fpregset): Use i387_fill_fsave.
8396 2002-02-12 Keith Seitz <keiths@redhat.com>
8398 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8399 (core_addr_to_string_nz): New function.
8401 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8403 * arm-linux-nat.c: Really include arm-tdep.h.
8404 * config/arm/tm-linux.h (struct type, struct value): Declare.
8406 2002-02-11 Michael Snyder <msnyder@redhat.com>
8408 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8409 (gcore section): Ifdef for Solaris and Unixware only.
8410 (procfs_do_thread_registers): Unixware needs one lwpstatus
8411 per thread (not one prstatus or pstatus).
8412 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8413 not over all gdb threads. For unixware, call elfcore_write_pstatus
8414 once before iterating over threads.
8416 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8418 * arm-tdep.h: New file.
8419 * arm-tdep.c: Include arm-tdep.h.
8420 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8421 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8422 (arm_print_float_info, arm_register_type, convert_to_extended)
8423 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8424 (arm_extract_return_value, arm_register_name): Make static.
8425 (arm_software_single_step): Similarly. Fix types in declaration.
8426 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8427 (arm_store_return_value, arm_store_struct_return): New functions.
8428 (arm_gdbarch_init): Register the above functions. Also register
8429 call_dummy_start_offset, sizeof_call_dummy_words,
8430 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8431 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8432 max_register_virtual_size, register_size. Set up
8433 prologue_cache.saved_regs here, rather than ...
8434 (_initialize_arm_tdep): ... here.
8435 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8437 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8438 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8439 (arm_print_float_info, arm_register_type, convert_to_extended)
8440 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8441 (arm_extract_return_value, arm_register_name): Delete declarations.
8442 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8443 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8444 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8445 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8446 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8447 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8448 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8449 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8450 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8451 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8452 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8453 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8455 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8456 * remote-rdi.c remote-rdp.c: Likewise.
8457 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8458 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8459 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8462 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8463 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8464 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8465 from non-ARM_ prefixed definitions.
8466 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8468 * remote-rdi.c remote-rdp.c: Likewise.
8469 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8471 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8473 * arm-tdep.c (arm_frameless_function_invocation)
8474 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8475 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8476 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8477 (arm_pop_frame, arm_get_next_pc): Make static.
8478 (arm_gdbarch_init): Register above in gdbarch structure.
8479 (arm_read_fp): Renamed from arm_target_read_fp.
8480 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8481 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8482 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8483 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8484 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8485 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8486 (arm_pc_is_thumb_dummy): Delete declarations.
8487 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8488 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8489 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8490 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8492 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8494 * symtab.c (compare_search_syms): New function.
8495 (sort_search_symbols): New function.
8496 (search_symbols): Sort symbols after searching rather than
8499 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8501 * NEWS: Linux -> GNU/Linux.
8503 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8505 * gdbarch.sh: For for level one methods, disallow a definition
8506 when partially multi-arched. Add comments explaining rationale.
8507 * gdbarch.h: Re-generate.
8509 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8511 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8514 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8516 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8518 * gdbarch.c: Re-generate.
8520 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8522 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8523 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8526 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8528 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8530 (PUSH_ARGUMENTS): Switch to using predefault.
8531 * gdbarch.c: Regenerate.
8533 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8535 * valops.c (PUSH_ARGUMENTS): Delete definition.
8536 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8537 partial. Default to default_push_arguments.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8540 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8542 * defs.h (throw_exception): Rename return_to_top_level. Update
8544 * utils.c (error_stream, internal_verror, quit): Ditto.
8545 * top.c (throw_exception, catcher): Ditto.
8546 * sparclet-rom.c (sparclet_load): Ditto.
8547 * remote.c (interrupt_query, minitelnet): Ditto.
8548 * remote-sds.c (interrupt_query): Ditto.
8549 * remote-mips.c (mips_error, mips_kill): Ditto.
8550 * ocd.c (interrupt_query): Ditto.
8551 * monitor.c (monitor_interrupt_query): Ditto.
8552 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8553 * target.h: Update comment.
8555 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8557 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8559 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8560 default_double_format.
8561 * gdbarch.h, gdbarch.c: Re-generate.
8562 * findvar.c (floatformat_unknown): Delete variable definition.
8563 * doublest.h (floatformat_unknown): Delete variable declaration.
8565 2002-02-09 Jim Blandy <jimb@redhat.com>
8567 * stabsread.c (read_type): Add code to parse Sun's syntax for
8568 prototyped function types.
8570 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8572 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8573 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8575 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8577 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8578 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8579 now _initialize_xcoffsolib gets called again and overrides the
8580 commands from solib.c in a native configuration.
8582 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8584 * doublest.c (store_typed_floating): Don't try to return a value.
8587 2002-02-08 Jim Blandy <jimb@redhat.com>
8589 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8590 is prototyped and has no arguments, print its argument list as
8593 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8595 * MAINTAINERS (write-after-approval): Add myself.
8596 (paper-trail): I've escaped!
8598 2002-02-08 Christopher Faylor <cgf@redhat.com>
8600 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8602 (_initialize_check_for_gdb_ini): Ditto.
8604 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8606 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8607 xaprintf -> xasprintf.
8609 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8611 * win32-nat.c: Remove use of printf and sprintf functions.
8613 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8615 * arm-tdep.c (arm_frame_chain_valid): Make static.
8616 (arm_push_arguments): Likewise.
8617 (arm_gdbarch_init): New function.
8618 (_initialize_arm_tdep): Call it.
8619 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8620 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8621 (FRAME_CHAIN_VALID): Delete.
8622 (arm_frame_chain_valid): Delete declaration.
8623 (PUSH_ARGUMENTS): Delete.
8624 (arm_push_arguments): Delete declaration.
8625 (CALL_DUMMY_P): Delete.
8627 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8628 Corinna Vinschen <vinschen@redhat.com>
8630 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8631 on builtin float types.
8633 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8635 * utils.c: Include <curses.h> before "bfd.h".
8636 * tui/tui-hooks.c: Likewise.
8637 * tui/tui.c: Likewise.
8638 * tui/tuiCommand.c: Likewise.
8639 * tui/tuiData.c: Likewise.
8640 * tui/tuiDataWin.c: Likewise.
8641 * tui/tuiDisassem.c: Likewise.
8642 * tui/tuiGeneralWin.c: Likewise.
8643 * tui/tuiIO.c: Likewise.
8644 * tui/tuiLayout.c: Likewise.
8645 * tui/tuiRegs.c: Likewise.
8646 * tui/tuiSource.c: Likewise.
8647 * tui/tuiSourceWin.c: Likewise.
8648 * tui/tuiStack.c: Likewise.
8649 * tui/tuiWin.c: Likewise.
8651 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8653 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8654 to include space for pseudoregs as well. Update loops accordingly.
8655 (sh_fp_frame_init_saved_regs): Ditto.
8656 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8658 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8660 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8661 Add Richard Earnshaw to Arm maintainers.
8663 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8665 * defs.h (warning_begin): Delete declaration.
8667 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8670 2002-02-07 Michael Snyder <msnyder@redhat.com>
8672 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8673 Logic bug, remove misplaced else.
8675 2002-02-07 Klee Dienes <klee@apple.com>
8677 * fork-inferior.c (fork_inferior): Add '!' to the list of
8678 characters that need to be quoted when building a string for the
8679 shell. Quote '!' specifically with a backslash, since CSH chokes
8680 when trying to evaluate "str!str".
8682 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8684 * rdi-share/host.h: Only provide a typedef for bool if it is not
8687 2002-02-04 Michael Snyder <msnyder@redhat.com>
8689 * breakpoint.h (enum bptype): Add new overlay event bp type.
8690 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8692 * breakpoint.c (create_internal_breakpoint): New function.
8693 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8694 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8695 (create_thread_event_breakpoint): Ditto.
8696 (create_solib_event_breakpoint): Ditto.
8697 (create_overlay_event_breakpoint): New function.
8698 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8699 (update_breakpoints_after_exec): Delete and re-initialize
8700 overlay event breakpoints after an exec. Add FIXME comment
8701 about longjmp breakpoint.
8702 (print_it_typical): Ignore overlay event breakpoints.
8703 (print_one_breakpoint): Ditto.
8705 (bpstat_what): Do not stop for overlay event breakpoints.
8706 (delete_breakpoint): Don't delete overlay event breakpoints.
8707 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8708 (breakpoint_re_set): Re-create overlay event breakpoint.
8710 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8711 (overlay_manual_command): Disable overlay breakpoints.
8712 (overlay_off_command): Disable overlay breakpoints.
8714 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8716 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8717 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8718 to here from config/tm-arm.h.
8719 (coff_sym_is_thumb): Make static.
8720 (arm_elf_make_msymbol_special): New function.
8721 (arm_coff_make_msymbol_special): New function.
8722 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8723 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8724 (coff_sym_is_thumb): Delete declaration.
8725 (arm_elf_make_msymbol_special): Declare.
8726 (arm_coff_make_msymbol_special): Declare.
8727 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8728 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8730 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8732 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8734 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8736 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8737 * gdbarch.c gdbarch.h: Regenerate.
8738 * arch-utils.c (default_print_float_info): New function.
8739 * arch-utils.h (default_print_float_info): Prototype it.
8740 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8741 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8742 (PRINT_FLOAT_INFO): Document it.
8744 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8745 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8746 (PRINT_FLOAT_INFO): Define.
8748 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8750 * win32-nat.c (_initialize_check_for_gdb_ini):
8751 Add typecast to sprintf argument to suppress a warning.
8753 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8755 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8756 to allow easier handling of pass state.
8757 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8758 that gives exception name and address.
8759 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8760 and set last_sig value to ourstatus->value.sig. Some missing
8762 (child_continue): Correctly report continue_status.
8763 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8764 TARGET_SIGNAL_0 (new default value).
8765 (child_resume): consider sig argument passed to decide if
8766 the exception should be passed to debuggee or not.
8768 2002-02-05 Michael Snyder <msnyder@redhat.com>
8770 * regcache.c (fetch_register): Call target_fetch_register
8771 only if we don't call FETCH_PSEUDO_REGISTER.
8772 (store_register): Call target_store_register only if we
8773 don't call STORE_PSEUDO_REGISTER.
8775 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8777 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8778 ELF_MAKE_MSYMBOL_SPECIAL.
8779 * gdbarch.c, gdbarch.h: Regenerate.
8780 * arch-utils.c (default_make_msymbol_special): New function.
8781 * arch-utils.h (default_make_msymbol_special): Export.
8782 * elfread.c (elf_symtab_read): Compile use of
8783 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8785 * coffread.c (coff_symtab_read): Ditto, for
8786 COFF_MAKE_MSYMBOL_SPECIAL.
8788 2002-02-05 Jim Blandy <jimb@redhat.com>
8790 * solib-svr4.c (svr4_truncate_ptr): New function.
8791 (svr4_relocate_section_addresses): Do the address arithmetic with
8792 the appropriate truncation for target addresses, even when
8793 CORE_ADDR is larger than a target address.
8795 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8797 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8800 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8802 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8805 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8807 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8809 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8811 * gdbserver/linux-low.c: Remove unused include files.
8813 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8815 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8816 (read_inferior_memory): Use it.
8817 (write_inferior_memory): Likewise.
8819 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8821 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8822 grubbing through sys_errlist.
8824 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8826 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8828 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8829 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8831 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8833 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8834 (do_sfunc, set_cmd_sfunc): New functions.
8836 * command.h (struct cmd_list_element): Add field func.
8837 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8838 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8839 * cli/cli-decode.h: Ditto.
8841 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8842 (help_all, help_cmd_list): Ditto.
8843 (find_cmd, complete_on_cmdlist): Ditto.
8844 * top.c (execute_command): Ditto.
8846 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8849 * infcmd.c (notice_args_read): Fix function signature.
8851 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8852 * cli/cli-decode.c (add_set_cmd): Ditto.
8853 * utils.c (initialize_utils): Ditto.
8854 * maint.c (_initialize_maint_cmds): Ditto.
8855 * infrun.c (_initialize_infrun): Ditto.
8856 * demangle.c (_initialize_demangler): Ditto.
8857 * remote.c (add_packet_config_cmd): Ditto.
8858 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8859 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8860 * proc-api.c (_initialize_proc_api): Ditto.
8861 * kod.c (_initialize_kod): Ditto.
8862 * valprint.c (_initialize_valprint): Ditto.
8863 * top.c (init_main): Ditto.
8864 * infcmd.c (_initialize_infcmd): Ditto.
8865 * corefile.c (_initialize_core): Ditto.
8866 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8867 * arch-utils.c (initialize_current_architecture): Ditto.
8868 (_initialize_gdbarch_utils): Ditto.
8869 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8871 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8872 * wince.c (_initialize_inftarg): Ditto.
8873 * symfile.c (_initialize_symfile): Ditto.
8874 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8875 * language.c (_initialize_language): Ditto.
8876 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8878 2002-02-04 Michael Snyder <msnyder@redhat.com>
8880 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8882 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8884 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8885 Add rules for building the register data files.
8887 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8889 * regformats/regdat.sh: Add braces to the definition of
8890 expedite_regs_${arch}.
8892 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8894 * regformats/regdef.h (struct reg): Add comment describing the
8895 requirements for offset and size fields.
8897 2002-02-04 Andreas Schwab <schwab@suse.de>
8899 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8900 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8902 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8904 * gdbarch.sh (copyright): Update years in generated header.
8905 (SMASH_TEXT_ADDRESS): Add rule.
8906 * gdbarch.h, gdbarch.c: Re-generate.
8907 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8908 * dbxread.c: Likewise.
8909 * dwarfread.c: Likewise.
8910 * elfread.c: Likewise.
8911 * somread.c: Likewise.
8913 * arm-tdep.c (arm_smash_text_address): New function.
8914 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8916 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8918 Add support for hardware watchpoints on win32 native.
8919 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8920 CONTEXT_DEBUG_REGISTERS.
8921 (dr variable): New variable. Static array containing a local copy
8923 (debug_registers_changed): New variable. Reflects when debug registers
8924 are changed and need to be written to inferior.
8925 (debug_registers_used): New variable. Reflects when any debug register
8926 was set, used when new threads are created.
8927 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8929 (thread_rec): Set dr array if id is the thread of current_event .
8930 (child_continue, child_resume): Change the debug registers for all
8931 threads if debug_registers_changed.
8932 (child_add_thread): Change the debug registers if debug_registers_used.
8933 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8934 Link nm.h to new nm-cygwin.h file.
8935 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8936 of hardware registers.
8938 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8940 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8941 Restore behavour broken by 2002-01-20 Andrew Cagney
8942 <ac131313@redhat.com> IEEE_FLOAT removal.
8944 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8946 * c-valprint.c (c_val_print): Pass a proper valaddr to
8947 cp_print_class_method.
8948 * valops.c (search_struct_method): If there is only one method
8949 and args is NULL, return that method.
8951 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8953 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8954 accessing tag_name directly.
8956 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8958 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8959 of accessing tag_name directly.
8961 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8964 * gdbtypes.c (replace_type): New function.
8965 * gdbtypes.h (replace_type): Add prototype.
8966 * stabsread.c (read_type): Use replace_type.
8968 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
8970 * Makefile.in (memattr.o): Add missing dependencies rule.
8972 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8974 * breakpoint.c (break_at_finish_command): Really export.
8975 (break_at_finish_at_depth_command): Ditto.
8976 (tbreak_at_finish_command): Ditto.
8977 * hppa-tdep.c: Include completer.h.
8978 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8979 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8981 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8983 * utils.c (do_write): New function.
8984 (error_stream): Rewrite combining the code from error_begin and
8986 (verror): Rewrite using error_stream.
8987 (error_begin): Delete function.
8989 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8991 * utils.c (error_begin): Make static.
8992 * defs.h (error_begin): Delete declaration.
8994 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8995 (decode_line_1): Use cplusplus_error instead of error_begin,
8996 cplusplus_hint and return_to_top_level.
8997 * coffread.c (coff_symfile_read): Use error instead of error_begin
8998 and return_to_top_level.
8999 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9001 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9003 * language.h (type_error, range_error): Make string parameter
9005 * language.c (warning_pre_print): Delete extern declaration.
9006 * dwarfread.c (warning_pre_print): Ditto.
9007 * language.c (type_error, range_error): Rewrite to use verror and
9008 vwarning instead of warning_begin.
9010 2002-02-01 Michael Snyder <msnyder@redhat.com>
9012 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9013 (set_ignore_count): Move misplaced comment back where it belongs.
9015 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9017 * command.h (NO_FUNCTION): Delete macro.
9018 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9019 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9020 * tracepoint.c (_initialize_tracepoint): Ditto.
9021 * cli/cli-decode.c (add_set_cmd): Ditto.
9022 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9024 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9026 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9027 Update ``this'' pointer when calling virtual functions.
9029 2002-02-01 Michael Snyder <msnyder@redhat.com>
9031 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9032 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9034 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9036 * regformats/reg-arm.dat: New file.
9037 * regformats/reg-i386.dat: New file.
9038 * regformats/reg-ia64.dat: New file.
9039 * regformats/reg-m68k.dat: New file.
9040 * regformats/reg-mips.dat: New file.
9041 * regformats/reg-ppc.dat: New file.
9042 * regformats/reg-sh.dat: New file.
9043 * regformats/regdef.h: New file.
9044 * regformats/regdat.sh: New file.
9046 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9048 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9049 (arm_frame_args_address, arm_frame_locals_address): New functions.
9050 (arm_frame_num_args): New function.
9051 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9052 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9053 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9055 2002-01-31 Michael Snyder <msnyder@redhat.com>
9057 * breakpoint.c (break_at_finish_command): Export.
9058 (break_at_finish_at_depth_command): Export.
9059 (tbreak_at_finish_command): Export.
9060 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9061 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9062 "tbreak" commands, which are HPPA specific.
9064 * printcmd.c (disassemble_command): Remove an ancient
9065 artifact of an old merge.
9067 * symfile.h (enum overlay_debugging_state):
9068 Define enum constant values for overlay mode.
9069 * symfile.c (overlay_debugging): Use enums instead of literals.
9070 (overlay_is_mapped, overlay_auto_command,
9071 overlay_manual_command): Ditto.
9073 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9074 breakpoint_here_p, breakpoint_inserted_here_p,
9075 breakpoint_thread_match, bpstat_stop_status,
9076 describe_other_breakpoints, check_duplicates, clear_command):
9077 Coding standard fixes.
9079 * target.c (target_xfer_memory): Add spaces, coding standard.
9080 (do_xfer_memory): Add missing line to trust-readonly
9081 code: check bfd SEC_READONLY flag for section.
9083 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9085 * PROBLEMS: Fix typo, 5.1->5.1.1.
9087 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9089 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9090 data symbols, since we search based on textlow and texthigh.
9091 (find_pc_sect_symtab): Likewise.
9093 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9095 * defs.h (vwarning): Declare.
9096 * utils.c (vwarning): New function.
9097 (warning): Call vwarning.
9098 (warning_begin): Delete function.
9100 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9101 the warning message.
9102 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9105 2002-01-30 Michael Snyder <msnyder@redhat.com>
9107 * NEWS: Mention "set trust-readonly-sections" command.
9108 Mention generate-core-file command.
9110 2002-01-15 Michael Snyder <msnyder@redhat.com>
9112 * target.c: New command, "set trust-readonly-sections on".
9113 (do_xfer_memory): Honor the suggestion to trust readonly sections
9114 by reading them from the object file instead of from the target.
9115 (initialize_targets): Register command "set trust-readonly-sections".
9117 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9119 * parse.c (target_map_name_to_register): Simplify, search regs and
9120 pseudo-regs using a single loop.
9122 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9124 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9126 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9128 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9129 * config/i386/i386v42mp.mh: Add i387-nat.o .
9130 * i386v4-nat.c: Include i387-nat.h.
9131 (supply_fpregset): Use i387_supply_fsave.
9132 (fill_fpregset): Use i387_fill_fsave.
9134 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9136 * arm-tdep.c (arm_call_dummy_words): Define.
9137 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9138 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9139 (CALL_DUMMY_WORDS): Define.
9140 (arm_call_dummy_words): Declare.
9141 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9142 (arm_linux_call_dummy_words): Declare.
9144 2002-01-30 Andreas Schwab <schwab@suse.de>
9146 * m68klinux-nat.c: Fix last change to use regcache_collect
9147 instead of referencing registers[] directly.
9149 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9151 * parse.c (target_map_name_to_register): Delete code wrapped in
9152 #ifdef REGISTER_NAME_ALIAS_HOOK.
9154 2002-01-28 Michael Snyder <msnyder@redhat.com>
9156 * regcache.c (legacy_read_register_gen): Need to be able to
9157 read pseudo-register as well as real register.
9158 (legacy_write_register_gen): Ditto.
9160 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9162 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9163 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9164 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9165 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9166 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9167 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9168 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9169 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9170 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9171 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9172 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9173 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9174 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9175 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9176 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9177 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9178 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9179 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9180 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9181 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9183 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9185 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9186 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9187 (initialize_current_architecture): Update target_byte_order using
9188 information from BFD.
9189 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9190 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9192 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9194 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9195 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9197 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9198 #ifdef INVALID_FLOAT.
9199 * infcmd.c (do_registers_info): Ditto.
9200 * values.c (unpack_double): Ditto. Add comment.
9202 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9203 already commented out.
9205 2002-01-26 Andreas Schwab <schwab@suse.de>
9207 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9208 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9209 registers and add support for PTRACE_GETREGS.
9211 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9213 GDB 5.1.1 released from 5.1 branch.
9214 * NEWS: Add 5.1.1 news.
9215 * README: Sync with 5.1 branch.
9217 2002-01-23 Fred Fish <fnf@redhat.com>
9219 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9220 stabstring on initial malloc. Reallocing will copy it for us,
9223 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9225 * Makefile.in (hpread_h): Delete.
9226 (HFILES_NO_SRCDIR): Remove hpread.h.
9227 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9228 (hpread.o): Update dependencies.
9229 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9231 * hp-psymtab-read.c: Remove file.
9232 * hp-symtab-read.c: Remove file.
9233 * hpread.h: Remove file.
9235 * hpread.c: Merge all contents of hp-psymtab-read.c,
9236 hp-symtab-read.c and hpread.h into this file, as it was prior to
9239 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9240 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9241 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9242 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9244 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9246 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9247 fill_gregset): Call gdbarch_tdep() just once, assign result to
9248 variable and use that, instead of calling the function several
9251 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9253 * configure.host: Accept sparcv9 as alias for sparc64.
9254 * configure.tgt: Likewise.
9256 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9258 * solib-aix5.c (build_so_list_from_mapfile)
9259 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9260 arguments is not reversed.
9261 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9262 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9264 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9266 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9267 modified version of obsolete sh_fetch_pseudo_register.
9268 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9269 (sh4_register_read): New function.
9270 (sh_pseudo_register_write): New function. Renamed and modified
9271 version of obsolete sh_store_pseudo_register.
9272 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9273 (sh4_register_write): New function.
9274 (sh_gdbarch_init): Remove setting of gdbarch function
9275 fetch_pseudo_register and store_pseudo_register. Remove setting of
9276 register_convert_to_raw, register_convert_to_virtual,
9277 register_convertible.
9278 (sh_sh4_register_convertible): Delete. No longer needed. All is
9279 taken care by architecture specific functions
9280 register_read/register_write.
9281 (sh_sh4_register_convert_to_virtual): Make static.
9282 (sh_sh4_register_convert_to_raw): Ditto.
9284 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9286 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9287 (floatformat_is_nan, floatformat_mantissa): Ditto.
9289 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9290 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9291 builtin_type_ieee_double_little,
9292 builtin_type_ieee_double_littlebyte_bigword,
9293 builtin_type_m68881_ext, builtin_type_i960_ext,
9294 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9295 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9296 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9297 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9299 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9301 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9302 parameter. Set frameless flag if it exists and depended of
9303 whether the scanned function is frameless or not.
9304 (xstormy16_skip_prologue): If function is frameless, return
9305 result of xstormy16_scan_prologue().
9306 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9309 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9311 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9312 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9313 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9314 sh_sh4_register_byte, sh_sh4_register_raw_size,
9315 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9316 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9317 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9318 sh_store_pseudo_register, sh_do_pseudo_register): Call
9319 gdbarch_tdep() just once, assign result to variable and use that,
9320 instead of calling the function several times.
9322 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9324 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9325 macros instead of LAST_FPU_CTRL_REGNUM.
9326 (store_register): Likewise.
9328 2002-01-21 Jim Blandy <jimb@redhat.com>
9330 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9331 is up-to-date before running the program, not just when a program
9334 2002-01-21 Fred Fish <fnf@redhat.com>
9336 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9337 when we have found all instructions we are looking for.
9339 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9341 * arm-tdep.c (arm_register_name): New function.
9342 (arm_registers_names): Make static.
9343 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9344 (arm_register_name): Declare.
9345 (REGISTER_NAME): Use it.
9347 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9348 Kevin Buettner <kevinb@redhat.com>
9350 Convert arm targets to new FRAME interface.
9351 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9352 (arm_frame_find_save_regs): Delete.
9353 (arm_frame_init_saved_regs): New.
9354 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9355 Allocate extra_info as required. Convert all uses of fsr.regs
9356 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9358 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9359 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9360 (check_prologue_cache, save_prologue_cache): Likewise.
9361 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9362 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9363 (FRAME_FIND_SAVED_REGS): Delete.
9364 (arm_frame_find_saved_regs): Delete prototype.
9365 (arm_frame_init_saved_regs): New prototype.
9366 (FRAME_INIT_SAVED_REGS): Define.
9368 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9370 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9372 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9374 From Jeff Law <law@redhat.com>:
9375 * infttrace.c: Include <sys/pstat.h>.
9376 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9377 exec file if the ttrace equivalent fails.
9379 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9381 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9382 (closeLogFile): Ditto.
9384 2002-01-20 Michael Chastain <mec@shout.net>
9386 * top.c (print_gdb_version): Bump copyright year to 2002.
9388 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9390 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9391 Zannoni and Eli Zaretskii.
9393 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9395 * buildsym.c: Update copyright years.
9396 * c-typeprint.c: Likewise.
9397 * dwarf2read.c: Likewise.
9398 * f-typeprint.c: Likewise.
9399 * gdbtypes.c: Likewise.
9400 * gdbtypes.h: Likewise.
9401 * hp-symtab-read.c: Likewise.
9402 * hpread.c: Likewise.
9403 * mdebugread.c: Likewise.
9404 * p-typeprint.c: Likewise.
9406 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9408 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9409 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9410 byte-order selectable.
9411 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9412 * arch-utils.c: Ditto.
9413 (set_endian): Ditto.
9414 (set_endian_from_file): Ditto.
9415 * gdbserver/low-sim.c (create_inferior): Ditto.
9416 * gdbarch.sh: Ditto.
9417 * gdbarch.h: Re-generate.
9418 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9419 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9420 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9421 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9422 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9423 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9424 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9425 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9427 * config/mips/tm-wince.h: Remove #undef of macro
9428 TARGET_BYTE_ORDER_SELECTABLE.
9429 * config/sh/tm-wince.h: Ditto.
9431 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9433 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9434 member function fields. Add accessor macro
9435 TYPE_FN_FIELD_ARTIFICIAL.
9436 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9437 * c-typeprint.c (c_type_print_base): Skip artificial member
9440 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9442 * f-typeprint.c: Delete unused function f_type_print_args.
9443 * p-typeprint.c: Delete unused function pascal_type_print_args.
9445 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9447 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9448 comment. Add ``artificial'' to ``union field_location''.
9450 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9452 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9453 * mdebugread.c (parse_symbol): Likewise.
9454 * stabsread.c (define_symbol): Likewise.
9455 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9456 initializing TYPE_FIELD_BITPOS to n (obsolete).
9457 (hpread_doc_function_type): Likewise.
9458 * hpread.c (hpread_function_type): Likewise.
9460 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9462 * configure.in (host_makefile_frag): Only require a host makefile
9463 fragment when a native build.
9464 * configure: Re-generate.
9466 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9468 * doublest.h (floatformat_from_type): Declare.
9469 * doublest.c (floatformat_from_type): New function.
9470 (convert_typed_floating): Use.
9472 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9473 call to function floatformat_from_type.
9475 * gdbarch.sh (IEEE_FLOAT): Delete.
9476 * gdbarch.h, gdbarch.c: Re-generate.
9477 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9478 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9479 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9480 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9481 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9482 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9483 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9484 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9485 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9486 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9487 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9488 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9490 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9491 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9492 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9493 * sh-tdep.c (sh_gdbarch_init): Ditto.
9494 * mips-tdep.c (mips_gdbarch_init): Ditto.
9495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9496 * cris-tdep.c (cris_gdbarch_init): Ditto.
9498 2002-01-20 Jiri Smid <smid@suse.cz>
9500 * configure.host, configure.tgt: Support x86-64.
9501 * NEWS: Note new target x86-64.
9503 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9504 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9505 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9506 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9507 x86-64-linux-nat.o): Fix dependencies.
9509 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9511 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9512 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9513 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9514 * config/sparc/xm-sun4os4.h: Delete file.
9515 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9517 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9519 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9520 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9521 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9522 * config/i386/i386lynx.mh (XM_FILE): Delete.
9523 * config/rs6000/xm-rs6000ly.h: Delete file.
9524 * config/sparc/xm-sparclynx.h: Delete file.
9525 * config/m68k/xm-m68klynx.h: Delete file.
9526 * config/i386/xm-i386lynx.h: Delete file.
9527 * config/xm-lynx.h: Delete file.
9528 * config/djgpp/fnchange.lst: Update.
9530 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9532 * alpha-tdep.c (alpha_register_byte): New function.
9533 (alpha_register_raw_size): Ditto.
9534 (alpha_register_virtual_size): Ditto.
9535 (alpha_skip_prologue_internal): Renamed from
9536 alpha_skip_prologue.
9537 (alpha_skip_prologue): New version that calls
9538 alpha_skip_prologue_internal.
9539 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9540 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9541 second argument from alpha_skip_prologue.
9542 (REGISTER_BYTE): Use alpha_register_byte.
9543 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9544 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9545 (FRAMELESS_FUNCTION_INVOCATION): Use
9546 generic_frameless_function_invocation_not.
9547 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9548 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9550 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9552 * config/mips/xm-news-mips.h: Delete file.
9553 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9555 * config/m88k/xm-m88k.h: Delete file.
9556 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9557 * config/m88k/xm-delta88v4.h: Ditto.
9558 * config/m88k/xm-delta88.h: Ditto.
9560 * config/alpha/xm-fbsd.h: Delete file.
9561 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9563 * config/sparc/xm-sparc.h: Delete file.
9564 * Makefile.in (xm-sun4os4.h): Delete dependency.
9565 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9566 * config/sparc/xm-sun4os4.h: Ditto.
9567 * config/sparc/xm-linux.h: Ditto.
9569 * config/i386/xm-windows.h: Delete file.
9571 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9573 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9574 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9576 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9578 * alpha-tdep.c (alpha_call_dummy_words): New.
9579 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9580 (CALL_DUMMY_P): Define.
9581 (CALL_DUMMY_WORDS): Define.
9582 (SIZEOF_CALL_DUMMY_WORDS): Define.
9584 2002-01-19 Per Bothner <per@bothner.com>
9586 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9587 isn't NULL, which can happen with some gcj-3.x-produced code.
9589 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9591 * alpha-tdep.c (alpha_register_virtual_type): New function.
9592 (alpha_init_frame_pc_first): Ditto.
9593 (alpha_fix_call_dummy): Ditto.
9594 (alpha_store_struct_return): Ditto.
9595 (alpha_extract_struct_value_address): Ditto.
9596 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9597 alpha_register_virtual_type.
9598 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9599 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9600 alpha_extract_struct_value_address.
9601 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9602 (INIT_FRAME_PC): Use init_frame_pc_noop.
9603 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9605 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9607 * i386gnu-nat.c: Include "i386-tdep.h".
9608 (fetch_fpregs): Simplify code dealing with uninitialized floating
9609 point states such that it doesn't require FP7_REGNUM.
9611 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9613 * alpha-tdep.c (frame_extra_info): New.
9614 (alpha_find_saved_regs): Make static. Use
9616 (alpha_frame_init_saved_regs): New function.
9617 (alpha_frame_saved_pc): Use frame->extra_info.
9618 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9619 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9620 (init_extra_frame_info): Rename to...
9621 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9622 (alpha_print_extra_frame_info): New function.
9623 (alpha_frame_locals_address): Ditto.
9624 (alpha_frame_args_address): Ditto.
9625 (alpha_pop_frame): Use frame->extra_info.
9626 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9627 alpha_frame_args_address.
9628 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9629 (alpha_find_saved_regs): Remove prototype.
9630 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9631 (EXTRA_FRAME_INFO): Remove.
9632 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9633 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9635 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9637 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9638 (alpha_cannot_fetch_register): Ditto.
9639 (alpha_cannot_store_register): Ditto.
9640 (alpha_register_convertible): Ditto.
9641 (alpha_use_struct_convention): Ditto.
9642 * config/alpha/tm-alpha.h: Update copyright years.
9643 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9644 (INNER_THAN): Use core_addr_lessthan.
9645 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9646 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9647 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9648 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9649 (FRAME_CHAIN): Remove unnecessary cast.
9651 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9653 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9656 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9658 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9659 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9660 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9661 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9662 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9663 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9664 * x86-64-linux-nat.c: Ditto.
9666 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9668 * alpha-tdep.c (alpha_register_name): New function.
9669 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9670 (REGISTER_NAME): Define.
9672 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9674 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9676 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9678 * alpha-tdep.c: Update copyright years.
9679 (alpha_next_pc): New function.
9680 (alpha_software_single_step): Ditto.
9681 * config/alpha/tm-alpha.h: Add prototype for
9682 alpha_software_single_step.
9684 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9686 * alphabsd-nat.c: Update copyright years.
9687 (fill_gregset): Use regcache_collect.
9688 (fill_fpregset): Likewise.
9689 (fetch_inferior_registers): Only fetch integer registers
9690 if requested to do so.
9691 (store_inferior_registers): Only store integer registers
9692 if requested to do so.
9694 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9696 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9697 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9698 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9699 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9700 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9701 * config/arm/linux.mh (XDEPFILES): Delete.
9702 * config/arm/nbsd.mh (XDEPFILES): Delete.
9703 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9704 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9705 * config/i386/i386m3.mh (XDEPFILES): Delete.
9706 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9707 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9708 * config/i386/fbsd.mh (XDEPFILES): Delete.
9709 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9710 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9711 * config/i386/i386v4.mh (XDEPFILES): Delete.
9712 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9713 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9714 * config/i386/i386aix.mh (XDEPFILES): Delete.
9715 * config/i386/go32.mh (XDEPFILES): Delete.
9716 * config/i386/cygwin.mh (XDEPFILES): Delete.
9717 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9718 * config/i386/i386mach.mh (XDEPFILES): Delete.
9719 * config/i386/i386v32.mh (XDEPFILES): Delete.
9720 * config/i386/linux.mh (XDEPFILES): Delete.
9721 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9722 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9723 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9724 * config/i386/i386sco.mh (XDEPFILES): Delete.
9725 * config/i386/i386v.mh (XDEPFILES): Delete.
9726 * config/i386/nbsd.mh (XDEPFILES): Delete.
9727 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9728 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9729 * config/i386/symmetry.mh (XDEPFILES): Delete.
9730 * config/i386/obsd.mh (XDEPFILES): Delete.
9731 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9732 * config/ia64/linux.mh (XDEPFILES): Delete.
9733 * config/ia64/aix.mh (XDEPFILES): Delete.
9734 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9735 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9736 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9737 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9738 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9739 * config/m68k/linux.mh (XDEPFILES): Delete.
9740 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9741 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9742 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9743 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9744 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9745 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9746 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9747 * config/m88k/delta88.mh (XDEPFILES): Delete.
9748 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9749 * config/m88k/m88k.mh (XDEPFILES): Delete.
9750 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9751 * config/mips/linux.mh (XDEPFILES): Delete.
9752 * config/mips/irix6.mh (XDEPFILES): Delete.
9753 * config/mips/irix5.mh (XDEPFILES): Delete.
9754 * config/mips/irix4.mh (XDEPFILES): Delete.
9755 * config/mips/irix3.mh (XDEPFILES): Delete.
9756 * config/mips/decstation.mh (XDEPFILES): Delete.
9757 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9758 (NATDEPFILES): Move core-aout.o to here.
9759 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9760 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9761 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9762 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9763 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9764 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9765 * config/pa/hpux11.mh (XDEPFILES): Delete.
9766 * config/powerpc/aix.mh (XDEPFILES): Delete.
9767 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9768 * config/powerpc/linux.mh (XDEPFILES): Delete.
9769 * config/romp/rtbsd.mh: Rename XDEPFILES.
9770 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9771 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9772 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9773 * config/s390/s390.mh (XDEPFILES): Delete.
9774 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9775 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9776 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9777 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9778 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9779 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9780 * config/sparc/linux.mh (XDEPFILES): Delete.
9781 * config/vax/vaxult.mh (XDEPFILES): Delete.
9782 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9783 * Makefile.in (DEPFILES): Remove XDEPFILES.
9785 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9787 * utils.c (internal_verror): Fix comments, default is yes not no.
9788 Update queries to match. Default to quit and dump core.
9790 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9792 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9794 * defs.h, event-top.c, gdbcmd.h: Ditto.
9795 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9796 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9797 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9798 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9799 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9800 * mi/mi-main.c:Ditto.
9802 * stack.c, symfile.c: Update copyright.
9804 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9806 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9807 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9808 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9809 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9811 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9813 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9814 * gdbserver/low-lynx.c (myattach): Likewise.
9815 * gdbserver/low-nbsd.c (myattach): Likewise.
9816 * gdbserver/low-sim.c (myattach): Likewise.
9817 * gdbserver/low-sparc.c (myattach): Likewise.
9818 * gdbserver/low-sun3.c (myattach): Likewise.
9820 * gdbserver/low-linux.c (myattach): New function.
9822 * gdbserver/server.c (attach_inferior): New function.
9823 (main): Handle "--attach".
9825 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9827 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9830 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9832 * c-typeprint.c (is_type_conversion_operator): Add additional
9833 check for non-conversion operators.
9835 2002-01-15 Michael Snyder <msnyder@redhat.com>
9837 * linux-proc.c: Add "info proc" command, a la procfs.c.
9838 (read_mapping): New function, abstract and re-use code.
9839 (linux_find_memory_regions): Use new func read_mapping.
9840 (linux_info_proc_cmd): New function, implement "info proc".
9841 (_initialize_linux_proc): Add new command "info proc".
9843 2002-01-15 Michael Snyder <msnyder@redhat.com>
9845 * symfile.c (generic_load): Use bfd_map_over_sections method
9846 instead of manipulating bfd structure members directly.
9847 (add_section_size_callback): New function, bfd sections callback
9848 used by generic_load.
9849 (load_sections_callback): New function, bfd sections callback
9850 used by generic_load.
9852 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9854 [Based on work by Jim Blandy]
9855 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9856 (builtin_type_vec128): Export.
9857 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9859 (builtin_type_vec128): New builtin type for 128 bit vector
9861 (build_gdbtypes): Initialize builtin_type_v16qi and
9862 builtin_type_v8hi. Create the vec128 register builtin type
9864 (build_builtin_type_vec128): New function.
9865 (_initialize_gdbtypes): Register builtin_type_v16qi and
9866 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9867 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9868 AltiVec register to new builtin type.
9870 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9872 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9875 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9877 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9878 CLEAN_UP_REGISTER_VALUE.
9879 * regcache.c (supply_register): Update only call.
9881 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9883 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9884 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9885 a29k-*-vxworks* targets as obsolete.
9887 2002-01-14 Michael Snyder <msnyder@redhat.com>
9889 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9890 until we can resolve portability issues.
9891 * gregset.h: Remove references to fpxregs.
9892 * gcore.c (gcore_command): Initialize note_sec to NULL.
9894 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9896 * signals.c (target_signal_to_name): Rewrite. Only use
9897 signals[].name when in bounds and non-NULL.
9899 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9901 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9902 * signals.c (target_signal_to_name): Verify that SIG is within the
9903 bounds of the signals array.
9905 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9907 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9909 2002-01-13 Keith Seitz <keiths@redhat.com>
9911 * stack.c (print_frame_info_base): Print the frame's pc
9912 only if when print_frame_info_listing_hook is not defined.
9914 2002-01-13 Keith Seitz <keiths@redhat.com>
9916 * varobj.c (varobj_set_value): Make sure that there were no
9917 errors evaluating the object before attempting to set its
9919 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9920 so this offset adjustment is no longer necessary.
9921 (create_child): Don't set the error flag if the child is
9923 (value_of_child): If value_fetch_lazy fails, return NULL
9924 so that callers will be notified that an error occurred.
9925 (c_value_of_variable): Delay check of variable's validity
9926 until later. We actually want all structs and unions to have
9928 Do not return "???" for variables which could not be evaluated.
9929 This error condition must be returned to the caller so that it
9930 can get the error condition from gdb.
9931 (cplus_name_of_child): Adjust index for vptr before figuring
9932 out the name of the child.
9933 (cplus_value_of_child): If a child's (real) parent is not valid,
9934 don't even bother trying to give a value for it. Just return
9935 an error. Change all instances in this function.
9936 (cplus_type_of_child): If our parent is one of the "fake"
9937 parents, we need to get at the type of the real parent, and
9938 derive the child's true type using this information.
9940 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9942 From 2002-01-09 John Marshall <johnm@falch.net>:
9943 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9944 sources.redhat.com, and tweak some related URLs which had
9945 suffered from linkrot.
9947 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9950 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9951 structures passed in registers.
9953 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9955 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9956 white space which prevented compilation. Reported by DSK
9957 <dsk@student.unsw.edu.au>.
9959 2002-01-11 Michael Snyder <msnyder@redhat.com>
9961 * symfile.c (build_section_addr_info_from_section_tab):
9962 Use bfd access method instead of manipulating bfd directly.
9963 (syms_from_objfile): Ditto.
9964 (simple_overlay_update_1): Ditto.
9965 (simple_overlay_update): Ditto.
9966 (generic_load): Ditto.
9967 (overlay_unmapped_address): FIXME comment, bfd access methods.
9968 (sections_overlap): FIXME comment, bfd access methods.
9969 (pc_in_mapped_range): FIXME comment, bfd access methods.
9970 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9971 (section_is_mapped): FIXME comment, bfd access methods.
9972 (section_is_overlay): FIXME comment, bfd access methods.
9974 * symfile.c (generic_load): Whitespace and long line cleanups.
9975 Remove duplicate variable, change several local variables to
9976 more appropriate data types.
9977 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9979 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9982 * language.c (longest_local_hex_string_custom): Use phex_nz to
9983 convert NUM to a hex string.
9985 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
9987 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9989 Update Copyright year.
9991 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9993 * language.c (longest_raw_hex_string): Delete unused function.
9995 2002-01-11 Petr Sorfa <petrs@caldera.com>
9997 * MAINTAINERS (write-after-approval): Add myself.
9998 * dwarf2read.c (read_tag_string_type): Handling of
10000 (read_tag_string_type): FORTRAN fix to prevent propagation of
10002 (set_cu_language): Handling of DW_LANG_Fortran95
10004 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10006 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10007 GETPID(inferior_ptid).
10008 (store_inferior_registers): Likewise.
10010 2002-01-10 Jason Merrill <jason@redhat.com>
10012 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10015 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10017 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10018 and bfd/elf32-sh-nbsd.c.
10020 2002-01-10 Michael Snyder <msnyder@redhat.com>
10022 * NEWS: Mention --pid and corefile/proc-id behavior change.
10024 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10025 * gcore.c: Include cli/cli-decode.h instead of command.h.
10027 * main.c (captured_main): Add new command line option "--pid".
10028 If the second command line argument (following the symbol-file)
10029 begins with a digit, try to attach to it before trying to open
10031 (print_gdb_help): Document the "--pid" argument.
10033 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10035 * completer.c (command_completer): New function.
10037 * completer.h <command_completer>: Add prototype.
10039 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10040 completer for the "help" command.
10042 2002-01-09 Jason Merrill <jason@redhat.com>
10044 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10046 2002-01-09 Michael Snyder <msnyder@redhat.com>
10048 * i386-linux-nat.c (fill_fpxregset): Make global.
10049 (store_fpxregset): Ditto.
10051 * gregset.h (gdb_fpxregset_t): Define.
10052 (supply_fpxregset): Prototype.
10053 (fill_fpxregset): Prototype.
10055 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10057 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10059 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10060 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10061 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10063 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10065 * MAINTAINERS: Update target maintainer rules so that any
10066 Maintainer can approve a tested patch for a maintenance-only
10069 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10071 * MAINTAINERS (write-after-approval): Add myself.
10073 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10076 2002-01-08 Michael Snyder <msnyder@redhat.com>
10078 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10079 real name of the executable, rather than the /proc name.
10081 2002-01-03 Michael Snyder <msnyder@redhat.com>
10083 Implement a "generate-core-file" command in gdb, save target state.
10084 * gcore.c: New file. Implement new command 'generate-core-file'.
10085 Save a corefile image of the current state of the inferior.
10086 * linux-proc.c: Add linux-specific code for saving corefiles.
10087 * target.h (struct target_ops): Add new target vectors for saving
10088 corefiles; to_find_memory_regions and to_make_corefile_notes.
10089 (target_find_memory_regions): New macro.
10090 (target_make_corefile_notes): New macro.
10091 * target.c (update_current_target): Inherit new target methods.
10092 (dummy_find_memory_regions): New place-holder method.
10093 (dummy_make_corefile_notes): New place-holder method.
10094 (init_dummy_target): Initialize new dummy target vectors.
10095 * exec.c (exec_set_find_memory_regions): New function.
10096 Allow the exec_ops vector for memory regions to be taken over.
10097 (exec_make_note_section): New function, target vector method.
10098 * defs.h (exec_set_find_memory_regions): Export prototype.
10099 * procfs.c (proc_find_memory_regions): New function, corefile method.
10100 (procfs_make_note_section): New function, corefile method.
10101 (init_procfs_ops): Set new target vector pointers.
10102 (find_memory_regions_callback): New function.
10103 (procfs_do_thread_registers): New function.
10104 (procfs_corefile_thread_callback): New function.
10105 * sol-thread.c (sol_find_memory_regions): New function.
10106 (sol_make_note_section): New function.
10107 (init_sol_thread_ops): Initialize new target vectors.
10108 * inftarg.c (inftarg_set_find_memory_regions): New function.
10109 Allow to_find_memory_regions vector to be taken over.
10110 (inftarg_set_make_corefile_notes): New function.
10111 Allow to_make_corefile_notes vector to be taken over.
10112 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10113 interface layer if not target_has_execution (may be a corefile).
10114 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10115 * config/sparc/sun4sol2.mh: Ditto.
10116 * config/alpha/alpha-linux.mh: Ditto.
10117 * config/arm/linux.mh: Ditto.
10118 * config/i386/x86-64linux.mh: Ditto.
10119 * config/ia64/linux.mh: Ditto.
10120 * config/m68k/linux.mh: Ditto.
10121 * config/mips/linux.mh: Ditto.
10122 * config/powerpc/linux.mh: Ditto.
10123 * config/sparc/linux.mh: Ditto.
10125 2002-01-07 Michael Snyder <msnyder@redhat.com>
10127 * arm-linux-nat.c: Remove references to regcache.c internal data
10128 (registers[] and register_valid[]).
10130 2002-01-07 Michael Snyder <msnyder@redhat.com>
10132 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10133 so that attaching to a pid will automatically read the process's
10134 symbol file and shlibs.
10135 * Makefile.in: Add rule for linux-proc.o.
10136 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10137 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10138 * config/arm/linux.mh: Ditto.
10139 * config/i386/linux.mh: Ditto.
10140 * config/i386/x86-64linux.mh: Ditto.
10141 * config/ia64/linux.mh: Ditto.
10142 * config/m68k/linux.mh: Ditto.
10143 * config/mips/linux.mh: Ditto.
10144 * config/powerpc/linux.mh: Ditto.
10145 * config/sparc/linux.mh: Ditto.
10147 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10149 * win32-nat.c: Add i386-tdep.h dependency.
10151 2002-01-07 Michael Snyder <msnyder@redhat.com>
10153 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10154 instead of bfd_get_arch_size. Don't bail out just because
10155 there's no exec_bfd.
10157 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10158 * p-valprint.c (pascal_object_print_value): Ditto.
10159 * somread.c (som_symtab_read): Ditto.
10160 * symfile.c (simple_free_overlay_region_table): Ditto.
10161 * valops.c (value_assign): Ditto.
10163 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10164 use tilde_expand and strerror for opening save-tracepoints file.
10166 * thread-db.c (thread_db_new_objfile): Indendation fix.
10168 * infptrace.c (GDB_MAX_ALLOCA): New define.
10169 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10170 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10171 can be overridden with whatever value is appropriate to the host).
10172 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10173 alloca to allocate potentially large buffer.
10174 * rs6000-nat.c (child_xfer_memory): Ditto.
10175 * symm-nat.c (child_xfer_memory): Ditto.
10176 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10178 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10180 From Nick Clifton <nickc@redhat.com>
10181 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10183 2002-01-07 Michael Snyder <msnyder@redhat.com>
10185 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10186 Don't use exec_bfd if it's NULL.
10188 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10190 * valops.c (value_arg_coerce): Fix formatting.
10192 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10194 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10195 * gnu-nat.c: Ditto.
10197 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10199 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10200 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10201 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10202 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10203 z8k-coff have not been multi-arched. Update z8k-coff build
10206 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10208 * MAINTAINERS: Mark a29k target as obsolete.
10209 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10210 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10212 * NEWS: Note that a29k targets are obsolete.
10213 * a29k-tdep.c: Mark as obsolete.
10214 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10215 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10216 a29k-*-vxworks* targets as obsolete.
10217 * remote-adapt.c: Obsolete.
10218 * remote-eb.c: Obsolete.
10219 * remote-mm.c: Obsolete.
10220 * remote-udi.c: Obsolete.
10221 * config/a29k/a29k-udi.mt: Obsolete.
10222 * config/a29k/a29k.mt: Obsolete.
10223 * config/a29k/tm-a29k.h: Obsolete.
10224 * config/a29k/tm-vx29k.h: Obsolete.
10225 * config/a29k/vx29k.mt: Obsolete.
10227 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10229 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10230 with BFD_ENDIAN_BIG.
10232 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10234 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10235 * configure, config.in: Re-generate.
10236 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10237 * defs.h: Do not include <endian.h>.
10239 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10241 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10242 * config.in: Regenerate.
10243 * configure.in: Update copyright years.
10244 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10245 * configure: Regenerate.
10246 * i386bsd-nat.c: Update copyright years.
10247 (fill_gregset): Use regcache_collect.
10248 (fetch_inferior_registers): Only fetch integer registers
10249 if requested to do so. Add support for XMM registers
10250 using PT_GETXMMREGS.
10251 (store_inferior_registers): Only store integer registers
10252 if requested to do so. Add support for XMM registers
10253 using PT_SETXMMREGS.
10254 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10255 (store_inferior_registers): Remove.
10256 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10257 (fetch_elfcore_registers): New function.
10258 (i386nbsd_elfcore_fns): New.
10259 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10260 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10262 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10263 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10264 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10265 * config/i386/tm-nbsd.h: Update copyright years.
10266 (HAVE_SSE_REGS): Define.
10267 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10268 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10269 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10270 (SIGCONTEXT_PC_OFFSET): Remove.
10271 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10273 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10275 * configure.tgt: Remove powerpc-*-macos* target.
10276 * config/m68k/xm-mpw.h: Delete file.
10277 * config/xm-mpw.h: Delete file.
10278 * ser-mac.c: Delete file.
10279 * mpw-make.sed: Delete file.
10280 * mpw-config.in: Delete file.
10281 * mac-xdep.c: Delete file.
10282 * mac-gdb.r: Delete file.
10283 * mac-defs.h: Delete file.
10284 * mac-nat.c: Delete file.
10285 * config/powerpc/macos.mh: Delete file.
10286 * config/powerpc/macos.mt: Delete file.
10287 * config/powerpc/nm-macos.h: Delete file.
10288 * config/powerpc/tm-macos.h: Delete file.
10289 * source.c (openp, open_source_file): Remove obsolete code.
10290 * top.c (gdb_readline): Ditto.
10291 * utils.c (query): Ditto.
10292 * event-top.c (display_gdb_prompt): Ditto.
10293 * Makefile.in (ser-mac.o): Delete obsolete target.
10296 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10298 * defs.h (BIG_ENDIAN): Delete macro definition.
10299 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10300 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10301 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10302 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10303 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10304 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10305 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10306 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10307 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10308 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10309 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10310 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10311 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10312 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10313 * gdbarch.c: Re-generate.
10315 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10317 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10320 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10322 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10324 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10326 * value.h (value_ptr): Delete typedef.
10328 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10330 * i386nbsd-nat.c: Update copyright years.
10331 Include i386-tdep.h.
10333 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10335 * stabsread.c: Update copyright years.
10337 From Debashis Mahata <debashis.mahata@wipro.com>:
10338 (read_struct_fields): Deal with Sun C compiler erroneous stab
10339 output for structs and unions.
10342 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10344 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10347 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10349 * cp-abi.c: Fix whitespace.
10350 (baseclass_offset): New wrapper function.
10351 * cp-abi.h (baseclass_offset): Add prototype.
10352 (struct cp_abi_ops): Add baseclass_offset pointer.
10354 * valops.c (vb_match): Move to...
10355 * gnu-v2-abi.c (vb_match): here.
10356 * valops.c (baseclass_offset): Move to...
10357 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10359 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10361 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10362 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10363 * hpacc-abi.c (init_hpacc_ops): Likewise.
10365 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10367 * valops.c (find_overload_match): Accept obj as a
10368 reference parameter. Update it before returning.
10369 * value.h (find_overload_match): Update prototype.
10370 * eval.c (evaluate_subexp_standard): Pass object to
10371 find_overload_match by reference.
10373 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10375 * valarith.c: Replace value_ptr with struct value pointer. Remove
10376 register attribute from value declarations.
10379 * scm-lang.c (scm_lookup_name): Ditto.
10381 2002-01-03 Michael Snyder <msnyder@redhat.com>
10383 Abstract the functionality of iterating over mapped memory
10384 regions into a general purpose iterator function.
10385 * procfs.c (iterate_over_mappings): New function, general purpose
10386 iterator for memory sections.
10387 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10388 (solib_mappings_callback): New function, callback for above.
10389 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10390 (info_mappings_callback): New function, callback for above.
10392 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10394 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10396 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10397 * i386-tdep.c: Include "elf-bfd.h".
10398 (process_note_abi_tag_sections): New function.
10399 (i386_gdbarch_init): Add code to recognize various OS/ABI
10402 * maint.c (_initialize_maint_cmds): Add missing \ in
10405 For older changes see ChangeLog-2001
10411 version-control: never