1 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5 * Makefile.in: Update all _h macro definitions.
6 * Makefile.in (install-gdbtk): Move to install section.
7 (rdi-share/libangsd.a): Move to end of file.
9 2002-08-19 Andrew Cagney <ac131313@redhat.com>
11 * frame.c (frame_register_unwind): When a register, set addrp to
14 2002-08-20 Michael Snyder <msnyder@redhat.com>
16 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
17 used locally, so move them from the target machine header to here.
18 (mips_set_processor_type, mips_register_name, mips32_next_pc,
19 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
21 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
23 2002-08-20 Andrew Cagney <cagney@redhat.com>
25 * NEWS: Mention that the Apollo line was made obsolete.
26 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
27 m68*-hp-hpux* obsolete.
28 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
29 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
30 * buildsym.c (make_blockvector): Make static.
31 * buildsym.h (make_blockvector): Make extern declaration obsolete.
32 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
33 (ALLDEPFILES): Remove dstread.c.
34 (dstread.o): Obsolete make rule.
35 * dstread.c: Makefile obsolete.
37 * config/m68k/hp300hpux.mt: Ditto.
38 * config/m68k/hp300hpux.mh: Ditto.
39 * config/m68k/hp300bsd.mt: Ditto.
40 * config/m68k/hp300bsd.mh: Ditto.
41 * config/m68k/apollo68b.mt: Ditto.
42 * config/m68k/apollo68v.mh: Ditto.
43 * config/m68k/apollo68b.mh: Ditto.
45 2002-08-20 Michael Snyder <msnyder@redhat.com>
47 * mips-tdep.c (mips_in_return_stub): Make static.
48 (mips_gdbarch_init): Set in_solib_return_trampoline.
49 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
51 2002-08-20 Michael Snyder <msnyder@redhat.com>
53 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
54 * gdbarch.c, gdbarch.h: Regenerate.
55 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
57 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
59 2002-08-20 Michael Snyder <msnyder@redhat.com>
61 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
62 (mips_gdbarch_init): Set skip_trampoline_code,
63 in_solib_call_trampoline.
64 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
65 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
67 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
69 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
71 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
72 vector type for ev registers.
73 (e500_pseudo_register_read): New function.
74 (e500_pseudo_register_write): New function.
75 (e500_dwarf2_reg_to_regnum): New function.
76 (PPC_UISA_NOFP_SPRS): New macro.
77 (PPC_EV_REGS): New macro.
78 (PPC_GPRS_PSEUDO_REGS): New macro.
79 (registers_e500): New register set for e500.
80 (variants): Add e500 variant.
81 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
82 before setting architectural dependent variations. Initialize ev
83 registers numbers. Add case for e500 architecture. Set the
84 number of pseudo registers.
86 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
88 * rs6000-tdep.c: Clean up comments.
90 2002-08-20 Andrew Cagney <cagney@redhat.com>
92 * h8300-tdep.c: Re-indent file.
94 2002-08-20 Jim Blandy <jimb@redhat.com>
96 * Makefile.in (LDFLAGS): Allow the configure script to establish a
98 * gdbserver/Makefile.in (LDFLAGS): Same.
100 2002-08-20 Keith Seitz <keiths@redhat.com>
102 * breakpoints.c (watch_command_1): Use internal breakpoint
103 when setting a watchpoint_scope breakpoint.
105 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
107 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
108 (build_builtin_type_vec64i): Ditto.
109 (build_builtin_type_vec128): Ditto.
110 (build_builtin_type_vec128i): Ditto.
112 2002-08-19 Michael Snyder <msnyder@redhat.com>
114 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
115 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
116 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
117 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
118 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
119 CALL_DUMMY_ADDRESS): Delete.
120 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
121 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
122 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
123 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
125 (mips_register_raw_size, mips_eabi_use_struct_convention,
126 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
127 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
128 mips_init_extra_frame_info, mips_eabi_push_arguments,
129 mips_n32n64_push_arguments, mips_push_return_address,
130 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
131 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
133 2002-08-19 Michael Snyder <msnyder@redhat.com>
135 * mips-tdep.c (mips_frame_num_args): New function.
136 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
137 frame_saved_pc, frame_args_address, frame_locals_address,
138 frame_num_args, and frame_args_skip.
139 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
140 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
141 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
142 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
144 2002-08-20 Michael Snyder <msnyder@redhat.com>
146 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
147 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
148 * mips-tdep.c (mips_store_struct_return): New function.
149 (mips_extract_struct_value_address): New function.
150 (mips_gdbarch_init): Set store_struct_return and
151 extract_struct_value_address.
153 2002-08-20 David Carlton <carlton@math.stanford.edu>
155 * dwarf2read.c (dwarf2_build_psymtabs): Check that
156 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
157 (read_file_scope): Check that line_header is nonzero before
158 decoding macro information.
160 2002-08-20 Mark Kettenis <kettenis@gnu.org>
162 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
163 flag the general-purpose registers as floating-point on targets
164 that don't support the floating-point registers.
166 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
168 * rs6000-tdep.c (altivec_register_p): Delete.
169 (rs6000_do_altivec_registers): Delete.
170 (rs6000_altivec_registers_info): Delete.
171 (rs6000_do_registers_info): Delete.
172 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
173 (rs6000_gdbarch_init): Remove setting of do_registers_info.
175 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
177 * infcmd.c (do_registers_info): Print vector registers in hex
179 (print_vector_info): Check that printing registers
181 (print_float_info): Ditto.
183 2002-08-20 Andrew Cagney <ac131313@redhat.com>
185 * mips-tdep.c (mips_gdbarch_init): Update.
186 (mips_o32_extract_return_value): Rewrite.
187 (mips_o32_store_return_value): Rewrite.
188 (mips_o32_xfer_return_value): New function.
189 (mips_xfer_register): Tweak debug print message. Allow for
190 buf_offset when dumping the value transfered.
192 2002-08-20 Andrew Cagney <ac131313@redhat.com>
194 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
195 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
196 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
197 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
198 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
200 2002-08-14 Michael Snyder <msnyder@redhat.com>
202 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
204 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
206 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
208 (P): New macro to define a register as a pseudo register.
209 (R, R4, R8, R16, FR32, R64, R0): Updated.
210 (struct variant): Add new fields for number of pseudo registers
211 and number of total registers.
212 (tot_num_registers): New macro replacing....
213 (num_registers): ...deleted macro.
214 (num_registers): New function.
215 (num_pseudo_registers): New function.
216 (variants): Update all variants to intialize new fields correctly.
217 Postpone initialization of number of pseudo regs and real regs.
218 (init_variants): New function.
219 (rs6000_gdbarch_init): Initialize variants. Update calculation of
222 2002-08-19 David Carlton <carlton@math.stanford.edu>
224 * valops.c (search_struct_field): Change error message to treat
225 return value of 0 from value_static_field as meaning that field is
227 (value_struct_elt_for_reference): Ditto.
228 * values.c (value_static_field): Treat an unresolved location the
229 same as a nonexistent symbol. Fix PR gdb/635.
230 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
231 enclosed. Fix PR gdb/574.
232 * MAINTAINERS: Add self to Write After Approval list.
234 2002-08-19 Andrew Cagney <ac131313@redhat.com>
236 * mips-tdep.c (mips_xfer_register): New function.
237 (mips_n32n64_extract_return_value): Rewrite.
238 (mips_gdbarch_init): For N32 and N64, set extract_return_value
239 instead of deprecated_extract_return_value.
241 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
243 * rs6000-tdep.c (TDEP): Delete macro.
244 (branch_dest): Replace use of TDEP macro with its body.
245 (rs6000_pop_frame): Ditto.
246 (rs6000_push_arguments): Ditto.
247 (rs6000_skip_trampoline_code): Ditto.
248 (rs6000_frame_saved_pc): Ditto.
249 (rs6000_frame_chain): Ditto.
250 (rs6000_register_name): Ditto.
251 (rs6000_register_byte): Ditto.
252 (rs6000_register_raw_size): Ditto.
253 (rs6000_register_virtual_type): Ditto.
254 (rs6000_register_convertible): Ditto.
255 (rs6000_convert_from_func_ptr_addr): Ditto.
257 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
259 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
261 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
262 MIPS_LINUX_JB_ELEMENT_SIZE.
263 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
264 for MAX_REGISTER_RAW_SIZE arrays.
265 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
266 MIPS_LINUX_JB_ELEMENT_SIZE.
268 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
270 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
272 2002-08-19 Aidan Skinner <aidan@velvet.net>
274 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
275 ada-valprint.c ada-tasks.c.
276 (YYFILES): Add ada-exp.y.
277 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
278 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
279 (ada-exp.tab.o): New target.
281 2002-08-18 Andrew Cagney <ac131313@redhat.com>
283 * regcache.c (regcache_xfer_part): New function.
284 (regcache_raw_read_part): New function.
285 (regcache_raw_write_part): New function.
286 (regcache_cooked_read_part): New function.
287 (regcache_cooked_write_part): New function.
288 * regcache.h (regcache_raw_read_part): Declare.
289 (regcache_raw_write_part): Declare.
290 (regcache_cooked_read_part): Declare.
291 (regcache_cooked_write_part): Declare.
293 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
295 * remote.c (remote_open_1): Add async_p.
296 (remote_async_open_1): Delete.
297 (open_remote_target): Delete.
298 (remote_open, extended_remote_open): Update calls to remote_open_1.
299 (remote_async_open, extended_remote_async_open): Call
300 remote_open_1 instead of remote_async_open_1.
302 2002-08-19 Mark Kettenis <kettenis@gnu.org>
304 * blockframe.c: Fix a few coding standard violations.
306 2002-08-19 Mark Kettenis <kettenis@gnu.org>
308 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
310 * config/i386/tm-i386sco5.h: ... here. File removed.
311 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
313 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
314 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
315 (TM_FILE): Set to tm-i386.h.
316 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
317 * config/i386/tm-i386v.h: Remove file.
318 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
319 instead of "i386/tm-i386v.h".
320 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
321 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
323 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
324 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
327 2002-08-18 Mark Kettenis <kettenis@gnu.org>
329 * config/i386/nm-i386v.h: Add protection against
331 (i386_register_u_addr): Remove prototype.
332 (register_u_addr): New prototype.
333 (REGISTER_U_ADDR): Redefine accordingly.
334 * i386v-nat.c: Improve several comments.
335 (i386_register_u_addr): Change signature and rename to
336 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
339 2002-08-18 Andrew Cagney <ac131313@redhat.com>
341 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
342 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
343 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
344 deprecated_extract_return_value.
345 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
346 rename mips_o32o64_push_arguments.
347 (mips_gdbarch_init): Update.
348 (mips_extract_return_value): Delete.
349 (mips_o32_extract_return_value): Clone mips_extract_return_value.
350 (mips_o64_extract_return_value): Clone mips_extract_return_value.
351 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
352 (mips_n32n64_extract_return_value): Clone
353 mips_extract_return_value.
354 (mips_store_return_value): Delete.
355 (mips_o32_store_return_value): Clone mips_store_return_value.
356 (mips_o64_store_return_value): Clone mips_store_return_value.
357 (mips_eabi_store_return_value): Clone mips_store_return_value.
358 (mips_n32n64_store_return_value): Clone mips_store_return_value.
360 2002-08-18 Aidan Skinner <aidan@velvet.net>
362 * ada-lang.c: Use gdb_string.h instead of <string.h>.
363 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
365 2002-08-18 Aidan Skinner <aidan@velvet.net>
367 * ada-lang.c: Run through gdb_indent.sh.
368 * ada-lang.h: Run through gdb_indent.sh.
369 * ada-tasks.c: Run through gdb_indent.sh.
370 * ada-typeprint.c: Run through gdb_indent.sh.
371 * ada-valprint.c: Run through gdb_indent.sh.
373 2002-08-18 Andrew Cagney <ac131313@redhat.com>
375 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
378 2002-08-18 Mark Kettenis <kettenis@gnu.org>
380 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
382 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
383 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
385 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
386 write_register_gen instead of write_register_bytes.
388 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
389 i[3456]-*-osf1mk* configurations have been made obsolete.
390 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
391 i[3456]86-*-osf1mk* hosts obsolete.
392 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
394 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
395 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
396 config/i386/i386m3.mt, config/i386/nm-m3.h,
397 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
398 config/i386/i386mk.mh, config/i386/i386mk.mt,
399 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
401 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
402 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
403 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
405 2002-08-18 Andrew Cagney <ac131313@redhat.com>
407 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
408 (hppa_value_returned_from_stack): Declare.
409 (hppa_extract_return_value): Declare.
410 * config/pa/hppa.mt: New file.
411 * configure.tgt: Recognize hppa*-*-*.
412 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
414 2002-08-18 Mark Kettenis <kettenis@gnu.org>
416 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
419 2002-08-17 Mark Kettenis <kettenis@gnu.org>
421 * top.c (gdb_rl_operate_and_get_next): Make sure
422 operate-and-get-next functions correctly even when the history
423 list is completely filled.
425 2002-08-18 Andrew Cagney <ac131313@redhat.com>
427 * MAINTAINERS (Target Instruction Set Architectures): Rename
428 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
429 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
430 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
431 already listed under Host/Native.
433 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
434 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
437 2002-08-17 Andrew Cagney <ac131313@redhat.com>
439 * config/ia64/ia64.mt: New file.
440 * config/alpha/alpha.mt: New file.
441 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
442 ia64-linux-gnu. Mention that ia64-elf is broken.
443 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
445 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
447 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
448 generic_func_frame_valid instead of func_frame_valid.
450 2002-08-16 Joel Brobecker <brobecker@gnat.com>
452 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
453 procfs appears to be broken when debugging on multi-processor
454 machines. So enable software single stepping in order to avoid
455 using the procfs interface to do next/step operations, using
456 internal breakpoints instead.
458 * infrun.c (handle_inferior_event): Readjust the stop_pc by
459 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
460 make this pc address equal to the value it would have if the
461 system stepping capability was used. Also set a new flag used
462 to ensure that we don't readjust the PC one more time later.
464 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
465 address by DECR_PC_AFTER_BREAK when software single step is
466 in use for this architecture, as this has already been taken
467 care of in handle_inferior_event().
469 2002-08-16 Joel Brobecker <brobecker@gnat.com>
471 * infrun.c (handle_inferior_event): Minor reformatting, to make
472 a rather long condition expression easier to read.
474 2002-08-16 Andrew Cagney <ac131313@redhat.com>
476 * Makefile.in (gdbtk.o): Move to end of file.
477 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
478 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
479 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
480 (gdbtk-wrapper.o, gdbres.o): Ditto.
482 2002-08-16 Andrew Cagney <ac131313@redhat.com>
484 * Makefile.in (copying.o): Separate out compile rule.
485 (hpux-thread.o, procfs.o, signals.o): Ditto.
486 (v850ice.o, z8k-tdep.o): Ditto.
487 (tui-file.o): Move to TUI section.
488 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
489 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
491 2002-08-16 Joel Brobecker <brobecker@gnat.com>
493 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
494 skip_trampoline_code, for better namespace-proofing.
496 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
498 2002-08-16 Joel Brobecker <brobecker@gnat.com>
500 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
502 2002-08-16 Joel Brobecker <brobecker@gnat.com>
504 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
505 signal, check whether we hit a breakpoint before checking for a
506 single step breakpoint. Otherwise, GDB fails to notice that a
507 breakpoint has been hit when stepping onto a breakpoint.
509 2002-08-16 Keith Seitz <keiths@redhat.com>
511 * gdb-events.sh (clear_gdb_event_hooks): New function.
512 * gdb-events.c: Regenerate.
513 * gdb-events.h: Regenerate.
515 2002-08-16 Andrew Cagney <ac131313@redhat.com>
517 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
519 * breakpoint.h (bpstat_stop_status): Add parameter names.
521 2002-08-16 Grace Sainsbury <graces@redhat.com>
523 * remote.c (remote_insert_hw_breakpoint)
524 (remote_remove_hw_breakpoint): Fix calculation of length field
527 2002-08-15 Michael Snyder <msnyder@redhat.com>
529 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
530 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
531 (supply_fpregset): Ditto.
533 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
534 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
535 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
536 (TARGET_READ_SP): Delete.
537 (DO_REGISTERS_INFO): Delete.
538 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
540 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
541 from macros to functions.
543 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
544 (mips_register_convertible, mips_register_convert_to_virtual,
545 mips_register_convert_to_raw): Make static.
546 (mips_read_sp): New function.
547 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
548 (mips_do_registers_info): Make static.
549 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
550 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
551 (mips_register_convert_from_type, mips_register_convert_to_type):
553 (mips_gdbarch_init): Set up function_start_offset,
554 register_virtual_size, pc_in_sigtramp.
556 2002-08-15 Andrew Cagney <ac131313@redhat.com>
558 * infcmd.c (vector_info): New function.
559 (_initialize_infcmd): Add command "info vector".
560 (print_vector_info): New function.
562 * gdbarch.sh (PRINT_VECTOR_INFO): New method
563 * gdbarch.h, gdbarch.c: Regenerate.
565 2002-08-15 Andrew Cagney <ac131313@redhat.com>
567 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
568 ``print_all''. Only print vector registers when ``print_all''.
570 2002-08-15 Andrew Cagney <ac131313@redhat.com>
572 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
573 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
575 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
576 Add `args' parameter.
577 * gdbarch.h, gdbarch.c: Regenerate.
579 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
581 * infcmd.c (float_info): Call print_float_info.
582 (print_float_info): New function. By default, print the
583 floating-point registers.
585 * arch-utils.h (default_print_float_info): Delete declaration.
586 * arch-utils.c (default_print_float_info): Delete function.
588 2002-08-16 Mark Kettenis <kettenis@gnu.org>
590 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
593 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
596 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
597 * configure.host: Make i[3456]86-*-aix host obsolete.
598 * configure.tgt: Make i[3456]86-*-aix target obsolete.
599 * config/i386/i386aix.mh, config/i386/i386aix.mt,
600 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
601 config/i386/xm-i386aix.h: Make files obsolete.
602 * i386aix-nat.c: Make file obsolete.
603 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
604 (i386aix-nat.o): Make target obsolete.
606 * config/i386/nm-gnu.h: Removed.
607 * config/i386/nm-i386gnu.h: New file.
608 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
609 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
611 * config/i386/tm-i386gnu.h: ... here. Removed.
612 * config/i386/xm-i386gnu.h: Removed.
613 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
614 (NAT_FILE): Set to nm-i386gnu.h.
615 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
616 * i386-tdep.c: New file.
617 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
618 (i386gnu-tdep.o): Specify dependencies.
620 2002-08-15 Mark Kettenis <kettenis@gnu.org>
622 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
623 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
624 Adjust a few comments to reflect reality a bit closer.
625 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
626 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
627 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
628 target_insert_watchpoint, target_remove_watchpoint):
630 * config/i386/nm-i386sco5.h: ... here.
631 (kernel_u_size): Add prototype. Improve a few comments and add
632 protection against multiple inclusion.
634 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
637 * uw-thread.c (SP_ARG0): Define if not already defined.
638 * config/i386/tm-i386.h (SO_ARG0): Remove define.
640 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
642 * config/i386/tm-i386.h: Don't include "regcache.h".
644 * i387-tdep.h (i387_print_float_info): New prototype.
645 * i387-tdep.c (print_i387_value, print_i387_ext,
646 print_i387_status_word, print_i387_control_word): Add `struct
647 ui_file *' argument and use it for output.
648 (i387_print_float_info): Renamed from i387_float_info. Add
649 `struct gdbarch *' and `struct ui_file *' arguments and use the
651 * i386-tdep.c: Include "i387-tdep.h".
652 (i386_gdbarch_init): Set print_float_info.
653 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
654 (FLOAT_INFO): Remove define.
656 2002-08-13 Michael Snyder <msnyder@redhat.com>
658 * mips-tdep.c (mips_push_arguments): Rename to
659 mips_eabi_push_arguments, and tune for EABI.
660 (MIPS_REGS_HAVE_HOME_P): Delete.
661 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
662 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
663 Delete references to mips_regs_have_home_p.
665 2002-08-14 Keith Seitz <keiths@redhat.com>
667 * Makefile.in (install-gdbtk): Create insight plugin directory.
668 Install plugins.tcl file.
670 2002-08-14 Keith Seitz <keiths@redhat.com>
672 * configure.in: Move SUBDIRS to near top of the file so that
673 --enable options may add things to it.
674 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
675 * configure: Regenerate.
677 2002-08-13 Michael Snyder <msnyder@redhat.com>
679 * mips-tdep.c (mips_o32o64_push_arguments): New function,
680 cloned from mips_push_arguments, tuned for o32/o64 ABI.
681 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
683 2002-08-13 Andrew Cagney <ac131313@redhat.com>
685 * vax-tdep.c (vax_get_saved_register): Delete function.
686 (vax_gdbarch_init): Update.
687 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
688 (ns32k_gdbarch_init): Update.
689 * alpha-tdep.c (alpha_get_saved_register): Delete function.
690 (alpha_gdbarch_init): Update.
692 2002-08-13 Andrew Cagney <cagney@redhat.com>
694 * regcache.c (init_regcache_descr): Overallocate the
695 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
696 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
698 (set_register_cached): Add range checking assertions. Use
701 2002-08-13 Mark Kettenis <kettenis@gnu.org>
703 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
704 numbers for MMX registers.
706 2002-08-13 Andrew Cagney <cagney@redhat.com>
708 * i386-tdep.c (i386_gdbarch_init): Use
709 generic_unwind_get_saved_register.
711 2002-08-13 Kevin Buettner <kevinb@redhat.com>
713 * procfs.c (procfs_can_use_hw_breakpoint): New function.
714 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
716 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
717 Delete. Add comment regarding this now-deleted target method.
719 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
721 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
722 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
723 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
724 real PC and the page number (if it's within the memory bank window).
725 (m68hc11_pseudo_register_write): Likewise when saving.
726 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
727 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
728 (m68hc11_register_raw_size): And use 32-bit for it.
729 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
730 16K memory bank is used by the prog; also use the virtual pc.
732 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
734 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
735 (m68hc11_gdbarch_init): Install it in gdbarch.
736 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
737 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
738 (MSYMBOL_SIZE): New for documentation.
739 (insn_return_kind): Enum to specify how a function returns.
740 (frame_extra_info): Cleanup and record the return mode.
741 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
742 register in address computation.
743 (m68hc11_get_return_insn): New to obtain the return instruction used
745 (m68hc11_frame_init_saved_regs): Take into account the return
746 instruction used by the function for far and interrupt functions.
747 (m68hc11_init_extra_frame_info): Take into account page register.
748 (m68hc11_frame_args_address): Adjust according to the return mode.
749 (show_regs): Print page register only when it's used.
751 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
753 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
754 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
755 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
757 (m68hc11_register_raw_size): Likewise.
759 2002-08-13 Andrew Cagney <cagney@redhat.com>
761 * i386-tdep.c (i386_register_name): Handle mmx registers.
762 (mmx_regnum_p): New function.
763 (i386_mmx_names): New array.
764 (mmx_num_regs): New variable.
765 (i386_pseudo_register_read): New function.
766 (i386_pseudo_register_write): New function.
767 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
769 * regcache.c (regcache_raw_read_unsigned): New function.
770 (regcache_raw_read_signed): New function.
771 * regcache.h (regcache_raw_read_unsigned): Declare.
772 (regcache_raw_read_signed): Declare.
774 2002-08-13 Andrew Cagney <cagney@redhat.com>
776 * regcache.c (regcache_raw_read_as_address): Delete function.
777 (regcache_cooked_read_signed): New function.
778 (regcache_cooked_read_unsigned): New function.
779 * regcache.h (regcache_cooked_read_signed): Declare.
780 (regcache_cooked_read_unsigned): Declare.
781 (regcache_raw_read_as_address): Delete declaration.
783 * blockframe.c (generic_read_register_dummy): Use
784 regcache_cooked_read_unsigned.
785 * i386-tdep.c (i386_extract_struct_value_address): Use
786 regcache_cooked_read_unsigned.
788 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
791 double sizes according to ELF ABI flags.
792 (gdbarch_tdep): Record elf_flags.
794 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
796 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
797 (m6812_prolog): They can appear in 68HC12 function prologue.
798 (m68hc11_frame_chain): Cleanup.
800 2002-08-12 Andrew Cagney <cagney@redhat.com>
802 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
804 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
805 (i386_linux_register_raw_size): Delete function.
806 (i386_linux_init_abi): Update.
807 * i386-tdep.c (i386_register_raw_size): Delete function.
808 (i386_register_byte): Delete function.
809 (i386_gdbarch_init): Update.
810 (i386_register_size): Delete array.
811 (i386_register_offset): Delete array.
813 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
814 (REGISTER_RAW_SIZE): Delete macro.
815 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
816 (REGISTER_BYTE): Delete macro.
818 2002-08-11 Aidan Skinner <aidan@velvet.net>
820 * ada-lang.c (ada_lookup_partial_symbol)
821 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
822 prototype names so that grep ^func works properly.
824 * ada-lang.c (ada_array_element_type)
825 (ada_lookup_partial_symbol): Fix typos in parameter list.
827 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
828 Fix prototype names so that grep ^func works properly.
830 2002-08-10 Andrew Cagney <cagney@redhat.com>
831 Elena Zannoni <ezannoni@redhat.com>
832 Martin M. Hunt <hunt@redhat.com>
834 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
835 (build_builtin_type_vec128i): Set the vector bit.
836 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
837 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
838 (build_builtin_type_vec64): New function.
839 (build_builtin_type_vec64i): New function.
840 (build_gdbtypes): Initialize builtin_type_vec64 and
843 2002-08-09 Andrew Cagney <cagney@redhat.com>
845 * regcache.c (regcache_dump): Compare the register offset
847 * arch-utils.c (generic_register_byte): New function.
848 * arch-utils.h (generic_register_byte): Declare.
849 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
850 * gdbarch.h, gdbarch.c: Regenerate.
852 2002-08-09 Andrew Cagney <cagney@redhat.com>
854 * regcache.c: Include "gdbcmd.h"
855 (_initialize_regcache): Add commands "maintenance print
856 registers", "maintenance print raw-registers" and "maintenance
857 print cooked-registers".
858 (enum regcache_dump_what): Define.
859 (dump_endian_bytes): New function.
860 (regcache_dump): New function.
861 (regcache_print): New function.
862 (maintenance_print_registers): New function.
863 (maintenance_print_raw_registers): New function.
864 (maintenance_print_cooked_registers): New function.
865 * Makefile.in (regcache.o): Update dependencies.
867 2002-08-09 Michael Snyder <msnyder@redhat.com>
869 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
870 (mips_push_arguments): Correct some comments. Use paddr_nz
871 for printing addresses in debug output. Replace static
872 allocation using MAX_REGISTER_RAW_SIZE with alloca.
873 (mips_n32n64_push_arguments): New function, cloned from
874 mips_push_arguments and tuned for the n32/n64 ABI.
875 (mips_push_register): Buffer needs dynamic allocation.
876 (mips_print_register): Ditto.
877 (do_gp_register_row): Ditto.
878 (mips_store_return_value): Ditto.
879 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
881 2002-08-09 Don Howard <dhoward@redhat.com>
883 * memattr.c (mem_info_command): Print special case of upper bound
884 as max CORE_ADDR + 1.
886 2002-08-08 Michael Snyder <msnyder@redhat.com>
888 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
889 returns structs by ref if they're too big to fit in two registers.
891 2002-08-09 Kevin Buettner <kevinb@redhat.com>
893 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
895 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
896 mips_find_saved_regs().
897 (mips_pop_frame): Likewise.
899 2002-08-09 Kevin Buettner <kevinb@redhat.com>
901 * blockframe.c (frame_saved_regs_register_unwind): Revise
902 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
905 2002-08-09 Grace Sainsbury <graces@redhat.com>
907 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
908 T-packets; the 'a' is not taken as a register number.
909 (remote_check_watch_resources, remote_stopped_by_watchpoint)
910 (remote_stopped_data_address): New functions; add to target
912 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
913 prototypes to match other implementations of this
914 function. replace integer argument with pointer -- the length
915 field in the Z-packet is the length of what is pointed to or 1 if
916 pointer is null. Add to target vector.
917 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
921 * remote.c (remote_wait): Add support to extract optional
922 watchpoint information from T-packet. Ignore unrecognized
923 optional info in T-packet.
924 (remote_async_wait): Ditto.
926 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
928 * cli/cli-dump.c: Change fopen modes to use binary open modes
929 as defined in include/fopen-bin.h throughout.
931 2002-08-08 Michael Snyder <msnyder@redhat.com>
933 * mips-tdep.c: Minor whitespace and indentation clean-ups.
935 2002-08-08 Kevin Buettner <kevinb@redhat.com>
937 * doublest.c (store_floating): Avoid floatformat_from_doublest()
938 assertion failure by returning early after a warning.
940 2002-08-08 Kevin Buettner <kevinb@redhat.com>
942 * mips-tdep.c (mips_find_saved_regs): Make static.
943 (mips_frame_init_saved_regs): New function.
944 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
945 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
946 (mips_find_saved_regs): Delete declaration.
948 2002-08-08 Grace Sainsbury <graces@redhat.com>
950 * remote.c (remote_wait, remote_async_wait): Change
951 thread_num from int to ULONGEST.
952 (unpack_varlen_hex): Change result parameter from
955 2002-08-08 Andrew Cagney <ac131313@redhat.com>
957 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
958 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
960 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
962 2002-08-08 Andrew Cagney <cagney@redhat.com>
964 * gcore.c (override_derive_stack_segment): Delete variable.
965 (preempt_derive_stack_segment): Delete function.
966 (derive_stack_segment): Delete function.
967 (default_derive_stack_segment): Renamed to derive_stack_segment.
968 (override_derive_heap_segment): Delete variable.
969 (preempt_derive_heap_segment): Delete function.
970 (derive_heap_segment): Delete function.
971 (default_derive_heap_segment): Rename to derive_heap_segment.
973 2002-08-06 Michael Snyder <msnyder@redhat.com>
975 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
976 * mips-tdep.c (mips_EABI_use_struct_convention,
977 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
978 New functions. (mips_use_struct_convention): Delete.
979 (mips_gdbarch_init): set use_gdbarch_convention.
981 2002-08-06 Michael Snyder <msnyder@redhat.com>
983 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
984 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
985 mips_o32_reg_struct_has_addr): New functions.
986 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
988 2002-08-07 Andrew Cagney <ac131313@redhat.com>
990 * regcache.c (pseudo_register): Delete function.
991 (fetch_register): Delete function.
992 (store_register): Delete function.
993 (regcache_raw_read, legacy_read_register_gen): Use
994 target_fetch_registers instead of fetch_register.
995 (legacy_write_register_gen, regcache_raw_write): Use
996 target_store_register instead of store_register.
997 (write_register_bytes): Ditto.
999 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1000 (STORE_PSEUDO_REGISTER): Delete.
1001 * gdbarch.h, gdbarch.c: Regenerate.
1003 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1005 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1006 write dump file binary.
1008 2002-08-05 Michael Snyder <msnyder@redhat.com>
1010 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1011 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1012 (mips_gdbarch_init): Set N32 target to be mips64.
1014 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1016 * frame.c (find_saved_register): Break out of loop once saved
1017 register address is found. Don't mention sparc in loop comment
1020 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1022 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1023 mips_default_saved_regsize to 8.
1025 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1027 * gcore.c: Do not include <sys/procfs.h>.
1028 * Makefile.in (gcore.o): Update dependencies.
1030 2002-08-06 Andrew Cagney <cagney@redhat.com>
1032 * configure.tgt: Make arc-*-* obsolete.
1033 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1034 * MAINTAINERS: Make arc-elf obsolete.
1035 * arc-tdep.c: Make file obsolete.
1036 * config/arc/arc.mt: Ditto.
1037 * config/arc/tm-arc.h: Ditto.
1039 2002-08-05 Theodore A. Roth <troth@verinet.com>
1041 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1043 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1045 * mcore-tdep.c (mcore_gdbarch_init): Use
1046 generic_unwind_get_saved_register instead of
1047 generic_get_saved_register.
1048 * v850-tdep.c (v850_gdbarch_init): Ditto.
1049 * frv-tdep.c (frv_gdbarch_init): Ditto.
1050 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1051 * s390-tdep.c (s390_gdbarch_init): Ditto.
1052 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1053 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1054 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1056 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1058 * objfiles.h: Add missing #include "symfile.h"
1060 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1062 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1064 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1065 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1068 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1070 * NEWS: Cleanup and nitpick.
1072 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1074 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1076 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1078 * Makefile.in (gdbtk-bp.o): Update dependencies.
1079 (gdbtk-register.o): Ditto.
1080 (gdbtk-varobj.o): Ditto.
1082 2002-08-03 Andrew Cagney <cagney@redhat.com>
1084 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1085 m68hc11_fetch_pseudo_register.
1086 (m68hc11_pseudo_register_write): Replace
1087 m68hc11_store_pseudo_register.
1088 (m68hc11_gdbarch_init): Update.
1090 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1092 * gdbarch.sh: Include "gdb_string.h".
1093 * gdbarch.c: Regenerate.
1095 * regcache.c: Include "gdb_string.h".
1096 * ax-general.c: Ditto.
1098 * std-regs.c: Ditto.
1099 * fbsd-proc.c: Ditto.
1102 * Makefile.in (regcache.o): Update dependencies.
1103 (thread.o, gdbarch.o): Ditto.
1104 (ax-general.o, gdbarch.o): Ditto.
1105 (varobj.o, std-regs.o): Ditto.
1106 (fbsd-proc.o): Specify dependencies.
1108 2002-08-02 Andrew Cagney <cagney@redhat.com>
1110 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1112 (regcache_cooked_write): Ditto.
1114 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1116 * regcache.c (regcache_cooked_read): New function.
1117 (regcache_cooked_write): New function.
1118 (read_register_gen): Rewrite using regcache_cooked_read.
1119 (write_register_gen): Rewrite using regcache_cooked_write.
1121 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1124 2002-08-02 Andrew Cagney <cagney@redhat.com>
1126 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1127 Replace the architecture methods register_read and register_write.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1129 * regcache.c (init_regcache_descr): Update.
1130 (read_register_gen): Update.
1131 (write_register_gen): Update.
1132 (supply_register): Update comment.
1134 * sh-tdep.c (sh_gdbarch_init): Update.
1135 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1136 `regcache' and `gdbarch' parameters. Make `buffer' a void
1137 pointer. Update code.
1138 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1139 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1140 void pointer. Update code.
1141 (sh64_register_write): Delete.
1142 (sh4_register_read): Delete.
1143 (sh64_register_read): Delete.
1144 (sh4_register_write): Delete.
1145 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1146 void pointer, `to' parameter a void pointer.
1147 (sh_sh64_register_convert_to_raw): Ditto.
1149 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1151 * mips-tdep.c (mips_register_virtual_type): Use architecture
1152 invariant return values.
1154 2002-08-01 Andrew Cagney <cagney@redhat.com>
1156 * linux-proc.c: Include "gdb_string.h".
1157 * Makefile.in (linux-proc.o): Update dependency list.
1159 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1161 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1164 2002-08-01 Grace Sainsbury <graces@redhat.com>
1166 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1167 to_insert_watchpoint, to_remove_watchpoint,
1168 to_stopped_by_watchpoint, to_stopped_data_address,
1169 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1170 target vecctor. Define their corresponding macros so they call
1173 * target.c: Add default and debug versions of for
1174 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1175 to_insert_watchpoint, to_remove_watchpoint,
1176 to_stopped_by_watchpoint, to_stopped_data_address,
1177 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1179 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1181 * mips-tdep.c (mips_register_virtual_type): New function.
1182 (mips_gdbarch_init): Register mips_register_virtual_type()
1183 with gdbarch machinery.
1184 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1185 this file instead of tm-bigmips.h.
1186 (MIPS_REGSIZE): Delete this macro.
1187 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1188 multiarch version in mips-tdep.c will be found.
1190 2002-08-01 Andrew Cagney <cagney@redhat.com>
1192 * NEWS: Menion that CHILL has been made obsolete.
1194 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1195 * gdbserver/Makefile.in: Ditto.
1196 * stabsread.c (read_range_type): Ditto.
1197 * gdbtypes.h: Ditto.
1198 * language.c (binop_type_check): Ditto.
1199 (binop_result_type): Ditto.
1200 (integral_type): Ditto.
1201 (character_type): Ditto.
1202 (string_type): Ditto.
1203 (boolean_type): Ditto.
1204 (structured_type): Ditto.
1205 (lang_bool_type): Ditto.
1206 (binop_type_check): Ditto.
1207 * language.h (_LANG_chill): Ditto.
1208 * dwarfread.c (set_cu_language): Ditto.
1209 * dwarfread.c (CHILL_PRODUCER): Ditto.
1210 * dwarfread.c (handle_producer): Ditto.
1211 * expression.h (enum exp_opcode): Ditto.
1212 * eval.c: Ditto for comments.
1213 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1214 * expprint.c (print_subexp): Ditto.
1215 (print_subexp): Ditto.
1216 * valops.c (value_cast): Ditto.
1217 (search_struct_field): Ditto.
1218 * value.h (COERCE_VARYING_ARRAY): Ditto.
1219 * symfile.c (init_filename_language_table): Ditto.
1220 (add_psymbol_with_dem_name_to_list): Ditto.
1221 * valarith.c (value_binop): Ditto.
1223 * valops.c (value_slice): Ditto.
1224 * symtab.h (union language_specific): Ditto.
1225 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1226 (SYMBOL_DEMANGLED_NAME): Ditto.
1227 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1228 * defs.h (enum language): Ditto.
1229 * symtab.c (got_symtab): Ditto.
1230 * utils.c (fprintf_symbol_filtered): Ditto.
1232 * ch-typeprint.c: Make file obsolete.
1233 * ch-valprint.c: Make file obsolete.
1234 * ch-lang.h: Make file obsolete.
1235 * ch-exp.c: Make file obsolete.
1236 * ch-lang.c: Make file obsolete.
1238 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1240 (TARGET_FLAGS_TO_PASS): Ditto.
1241 (CHILLFLAGS): Obsolete.
1243 (CHILL_FOR_TARGET): Obsolete.
1244 (CHILL_LIB): Obsolete.
1245 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1247 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1248 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1250 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1253 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1255 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1256 This does not change anything at the moment, but will be helpful
1257 later when full Ada support is integrated.
1259 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1261 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1264 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1266 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1267 and save it in a local variable. Use variable in later test.
1269 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1271 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1272 test. (Thanks to Daniel Jacobowitz.)
1274 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1276 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1277 (mips_abi_strings): Add "n64".
1278 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1280 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1282 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1283 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1285 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1287 * utils.c (host_pointer_to_address, address_to_host_pointer):
1288 Use gdb_assert() instead of explicit call to internal_error().
1290 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1292 * Makefile.in (rs6000-nat.o): Update dependencies.
1294 From Nicholas Duffek:
1295 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1296 (aix-thread.o): New rule.
1297 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1298 * config/powerpc/aix432.mh: New file.
1300 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1302 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1303 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1304 (fetch_core_registers, ppc_linux_supply_gregset)
1305 (ppc_linux_supply_fpregset): New functions.
1306 (ppc_linux_regset_core_fns): New.
1307 (_initialize_ppc_linux_tdep): Call add_core_fns.
1308 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1309 and ppc_linux_supply_gregset.
1310 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1311 (supply_fpregset): Call ppc_linux_supply_fpregset.
1312 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1314 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1316 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1318 * symtab.c (lookup_symbol): Demangle before lowercasing.
1320 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1322 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1324 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1325 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1326 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1327 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1329 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1330 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1331 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1332 (avr-tdep.o, mon960-rom.o): Ditto.
1333 (aout_stabs_gnu_h): Define.
1334 (symtab_h): Remove $(gdb_obstack_h).
1336 2002-07-30 Jim Blandy <jimb@redhat.com>
1338 Patch from David Carlton <carlton@math.stanford.edu>:
1339 * gdbinit.in: Move the `dir' commands that add GDB's own source
1340 directory to the search path to the end, so that the `gdb' source
1341 directory will be searched first.
1343 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1345 * gdb_obstack.h: New file.
1346 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1347 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1348 * objfiles.h: Include "gdb_obstack.h".
1349 * Makefile.in (gdb_obstack_h): Define.
1350 (symtab_h): Add $(gdb_obstack_h).
1351 (objfiles_h): Add $(gdb_obstack_h).
1353 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1354 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1355 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1356 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1357 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1358 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1359 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1360 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1362 * Makefile.in (bcache.o): Update dependencies.
1363 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1364 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1365 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1366 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1367 (stabsread.o, symfile.o, symmisc.o): Ditto.
1368 (symtab.o, typeprint.o, macroexp.o): Ditto.
1369 (macrotab.o, mdebugread.o): Ditto.
1370 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1371 (coff_ecoff_h, aout_aout64_h): Define.
1372 (aout_stabs_gnu_h, libaout_h): Define.
1374 2002-07-29 Andrew Cagney <cagney@redhat.com>
1376 * regcache.c (struct regcache_descr): Rename nr_registers to
1377 nr_cooked_registers. Revise comments describing the structure
1379 (init_regcache_descr): Update.
1380 (init_legacy_regcache_descr): Update.
1381 (read_register_gen, write_register_gen): When a cooked register in
1382 the raw register range, directly access the value from the raw
1385 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1387 * z8k-tdep.c: Do not include "obstack.h".
1388 * h8300-tdep.c, h8500-tdep.c: Ditto.
1389 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1390 * valprint.c, v850-tdep.c: Ditto.
1391 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1392 * mn10200-tdep.c: Ditto.
1394 * Makefile.in (z8k-tdep.o): Update dependencies.
1395 (m68hc11-tdep.o, valprint.o): Ditto.
1396 (v850-tdep.o, d10v-tdep.o): Ditto.
1397 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1398 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1399 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1400 (sh_opc_h, gdb_sim_sh_h): Define.
1401 (elf_sh_h, elf_bfd_h): Define.
1402 (opcode_m68hc11_h): Define.
1403 (OPCODES_SRC, OPCODES_DIR): define.
1404 (OPCODES): Use $(OPCODES_DIR).
1405 (gdb_sim_d10v_h): Rename sim_d10v_h.
1406 (gdb_sim_arm_h): Rename sim_arm_h.
1408 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1410 * utils.c (host_pointer_to_address, address_to_host_pointer):
1411 Change internal_error() message to indicate function responsible
1414 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1416 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1417 calls to local_hex_string_custom().
1419 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1421 * irix5-nat.c: Move IRIX shared library support from here...
1422 * solib-irix.c: ...to here. Revised substantially to work with
1423 generic solib framework.
1425 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1426 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1427 * mips-irix-tdep.c: New file.
1429 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1430 (mips-irix-tdep.o, solib-irix.o): New rules.
1431 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1433 * config/mips/irix6.mt (TDEPFILES): Likewise.
1434 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1436 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1438 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1439 disabled (via ``#if 0'') includes.
1441 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1443 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1444 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1445 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1446 Add support for the fpscr register.
1447 * rs6000-nat.c (regmap, fetch_inferior_registers)
1448 (store_inferior_registers, fetch_core_registers): Likewise.
1450 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1452 * rs6000-nat.c (language.h): Include.
1453 (special_regs): Delete this array.
1454 (regmap): New function.
1455 (fetch_register, store_register): Use regmap() to map gdb
1456 register numbers to ptrace register numbers. Also, use
1457 outputs from regmap() to make decisions regarding type of
1458 ptrace() call to make. In particular, don't compare against
1459 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1460 (fetch_inferior_registers, store_inferior_registers): Where
1461 possible, obtain register numbers from tdep struct. Don't
1462 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1463 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1464 (LAST_UISA_SP_REGNUM): Delete.
1466 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1468 * rs6000-nat.c (ppc-tdep.h): Include.
1469 (fetch_registers, store_register, fetch_core_registers): Don't
1470 access registers[] directly. Instead, use supply_register() or
1471 regcache_collect() as appropriate.
1472 (find_toc_address): Format hex address with local_hex_string().
1474 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1476 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1479 2002-07-24 Tom Tromey <tromey@redhat.com>
1481 * jv-exp.y: Marked all strings with _().
1482 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1484 (MethodInvocation, CastExpression, parse_number, yyerror,
1485 java_type_from_name, push_expression_name, yylex): Typo fixes.
1487 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1489 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1490 (tee_file_flush, tee_file_write, tee_file_fputs)
1491 (tee_file_isatty): New.
1492 * ui-file.h (tee_file_new): Add prototype.
1494 2002-07-24 Aidan Skinner <aidan@velvet.net>
1496 * ada-lang.c: Change k&r style function definitions to prototyped
1498 * ada-typeprint.c: Change k&r style function definitions to prototyped
1500 * ada-valprint.c: Change k&r style function definitions to prototyped
1503 2002-07-24 Andrew Cagney <cagney@redhat.com>
1505 * README: Remove reference to remote-bug.
1506 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1508 (m88k-nat.o): Delete rule.
1509 (m88k-tdep.o): Delete rule.
1510 (remote-bug.o): Delete rule.
1511 * MAINTAINERS: Mark as obsolete.
1512 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1513 * m88k-tdep.c: Make file obsolete.
1514 * config/m88k/m88k.mh: Ditto.
1515 * config/m88k/delta88v4.mh: Ditto.
1516 * config/m88k/delta88v4.mt: Ditto.
1517 * config/m88k/delta88.mt: Ditto.
1518 * config/m88k/delta88.mh: Ditto.
1519 * remote-bug.c: Ditto.
1520 * config/m88k/tm-delta88.h: Ditto.
1521 * config/m88k/nm-delta88v4.h: Ditto.
1522 * config/m88k/xm-delta88.h: Ditto.
1523 * config/m88k/xm-dgux.h: Ditto.
1524 * config/m88k/tm-m88k.h: Ditto.
1525 * config/m88k/nm-m88k.h: Ditto.
1526 * config/m88k/tm-delta88v4.h: Ditto.
1527 * m88k-nat.c: Ditto.
1528 * cxux-nat.c: Ditto.
1529 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1530 and m88*-*-* obsolete.
1531 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1534 2002-07-24 Andrew Cagney <cagney@redhat.com>
1536 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1537 constant. Same for local pointer variables.
1538 (extract_signed_integer): Ditto.
1539 * defs.h (extract_unsigned_integer): Update.
1540 (extract_signed_integer): Update.
1542 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1544 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1545 * gdbserver/configure: Regenerate.
1546 * gdbserver/config.in: Regenerate.
1548 2002-07-24 Andrew Cagney <cagney@redhat.com>
1550 * regcache.c (regcache_raw_write): Change buf parameter to a
1551 constant void pointer.
1552 (regcache_raw_read): Change buf parameter to a void pointer.
1553 (legacy_write_register_gen): Change myaddr parameter a constant
1555 (supply_register): Change val parameter to a const void pointer.
1556 * regcache.h (regcache_raw_write): Update declaration.
1557 (regcache_raw_read): Update declaration.
1558 (supply_register): Update declaration.
1560 2002-07-24 Tom Tromey <tromey@redhat.com>
1562 * defs.h (gdb_readline_wrapper): Declare.
1563 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1564 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1565 * top.c (gdb_readline_wrapper): New function.
1566 (command_line_input): Use it.
1568 2002-07-24 Andrew Cagney <cagney@redhat.com>
1570 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1571 regcache_read and regcache_write.
1572 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1573 * regcache.c: Update.
1574 * sh-tdep.c (sh64_push_arguments): Update comment.
1575 (sh_pseudo_register_read): Update.
1576 (sh_pseudo_register_write): Update.
1577 (sh4_register_read): Update.
1578 (sh4_register_write): Update.
1579 (sh64_pseudo_register_read): Update.
1580 (sh64_pseudo_register_write): Update.
1581 (sh64_register_read): Update.
1582 (sh64_register_write): Update.
1583 * i386-tdep.c (i386_extract_return_value): Update.
1584 (i386_extract_struct_value_address): Update.
1585 (i386_extract_return_value): Update.
1586 * blockframe.c (generic_read_register_dummy): Update.
1587 (generic_call_dummy_register_unwind): Update
1588 * infrun.c (write_inferior_status_register): Update.
1590 2002-07-23 Jim Blandy <jimb@redhat.com>
1592 * parser-defs.h (expression_context_pc): Make this extern.
1593 (Thanks to Michael Snyder.)
1595 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1597 GDB 5.2.1 released from 5.2 branch.
1598 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1599 * README: Update to mention 5.2.1.
1601 2002-07-23 Mark Salter <msalter@redhat.com>
1603 * remote.c (remote_read_bytes): Fix check for error.
1605 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1607 * aix-thread.c (language.h): Include.
1608 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1609 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1610 Print newlines at end of debug messages.
1611 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1612 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1614 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1616 * aix-thread.c (ppc-tdep.h): Include.
1617 (special_register_p): New function.
1618 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1619 (store_regs_user_thread): Use register number information from
1620 gdbarch_tdep struct instead of hardcoded offsets relative to
1621 FIRST_UISA_SP_REGNUM.
1622 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1623 special_register_p() instead of using FPLAST_REGNUM and
1624 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1625 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1626 will be MQ's register number.
1628 2002-07-22 Michael Snyder <msnyder@redhat.com>
1630 * aix-thread.c (ops): Rename to aix_thread_ops.
1631 (base_ops): Rename to base_target.
1632 (ops_attach): Rename to aix_thread_attach.
1633 (ops_detach): Rename to aix_thread_detach.
1634 (ops_resume): Rename to aix_thread_detach.
1635 (ops_wait): Rename to aix_thread_wait.
1636 (ops_kill): Rename to aix_thread_kill.
1637 (init_ops): Rename to init_aix_thread_ops.
1638 (ops_fetch_register): Rename to aix_thread_fetch_register.
1639 (ops_store_register): Rename to aix_thread_store_register.
1640 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1641 (ops_thread_alive): Rename to aix_thread_thread_alive.
1642 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1643 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1644 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1645 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1646 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1647 (store_regs_lib): Rename to store_regs_user_thread.
1648 (store_regs_kern): Rename to store_regs_kernel_thread.
1650 2002-07-22 Michael Snyder <msnyder@redhat.com>
1652 * aix-thread.c (ops_prepare_to_store): Eliminate.
1653 (init_ops): Don't initialize ops.prepare_to_store.
1654 (store_regs_kern): Pre-fetch register buffers from child,
1655 because some registers may not be in the cache. Copy
1656 regs from register cache only if they are cached.
1657 (store_regs_lib): Copy regs from register cache only
1659 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1660 fill_gprs64): Ditto.
1662 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1664 * aix-thread.c (gdb_assert.h): Include.
1665 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1666 register sizes (from register cache) match size of buffer holding
1668 (fill_sprs32): Change parameter types to match those in the ptrace()
1670 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1671 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1673 2002-07-22 Michael Snyder <msnyder@redhat.com>
1675 * aix-thread.c (supply_sprs64): Cosmetic change.
1676 (supply_sprs32): Cosmetic change.
1677 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1678 (fill_sprs64): Use regcache_collect instead of read_register.
1679 (store_regs_lib): Use regcache_collect instead of
1680 read_register. Use fill_sprs32 instead of fill_sprs64,
1681 if debugging a 32-bit architecture.
1682 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1683 out of the register cache, instead of passing a pointer into
1684 the register cache directly to ptrace. Use regcache_collect
1685 insteaad of read_register.
1686 (ops_prepare_to_store): Use target_read_registers instead
1687 of read_register_bytes.
1689 2002-07-20 Aidan Skinner <aidan@velvet.net>
1691 * MAINTAINERS: Add self under write after approval.
1693 2002-07-20 Aidan Skinner <aidan@velvet.net>
1695 * ada-tasks.c: Change k&r style function definitions to prototyped
1698 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1700 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1701 * x86-64-tdep.c: Include "objfiles.h".
1702 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1703 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1705 2002-07-17 Michal Ludvig <michal@suse.cz>
1707 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1708 (update_context): Initialise cfa variable.
1710 2002-07-17 Michael Snyder <msnyder@redhat.com>
1712 * aix-thread.c: Shorten some long lines.
1713 Bring comments into line with code spec.
1715 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1717 * infrun.c: Re-indent using gdb_indent.sh.
1719 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1721 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1722 Leave the indentation temporarily untouched, to minimize the diffs.
1724 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1726 * stabsread.c: Make os9k sections of the code obsolete,
1728 * stabsread.h: Make os9k sections of the code obsolete.
1730 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1732 * linux-low.c (regsets_store_inferior_registers): Add free()
1733 at the end of a loop to prevent memory leak.
1734 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1735 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1736 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1738 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1740 2002-07-17 Jim Blandy <jimb@redhat.com>
1742 * macrocmd.c (info_macro_command): Remove newline from error
1745 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1747 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1748 (sh_gdbarch_init): Use it for sh-dsp.
1750 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1752 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1753 64-bit DWARF2 format.
1755 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1757 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1758 <sys/proc.h> when not available.
1760 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1762 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1763 * stabsread.c: Make os9k sections of the code obsolete.
1764 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1765 * config/i386/i386os9k.mt: Make file obsolete.
1766 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1767 (COMMON_OBS): Remove os9kread.o
1768 (SFILES): Remove os9kread.c.
1769 (os9kread.o, remote-os9k.o): Make target obsolete.
1770 * remote-os9k.c: Make file obsolete.
1771 * os9kread.c: Make file obsolete.
1774 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1776 * NEWS: Mention that the FR30 has been made obsolete.
1777 * fr30-tdep.c: Make file obsolete.
1778 * config/fr30/tm-fr30.h: Ditto.
1779 * config/fr30/fr30.mt: Ditto.
1780 * configure.tgt: Make fr30-*-elf obsolete.
1781 * MAINTAINERS: Make fr30-elf obsolete.
1783 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1785 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1786 found is not inside a section.
1788 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1790 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1792 (pdc_realloc): Use xrealloc() instead of realloc().
1794 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1796 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1797 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1798 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1801 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1803 * aix-thread.c (ptrace_check): Eliminate goto.
1804 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1807 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1809 * aix-thread.c (gdbcmd.h): Include.
1810 (DEBUG, DBG, DBG2, dbg): Eliminate.
1811 (debug_aix_thread): New static global.
1812 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1813 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1814 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1815 invocations to DBG and DBG2 macros to test against
1816 ``debug_aix_thread'' and call fprintf_unfiltered().
1817 (_initialize_aix_thread): Add new command "set debug aix-thread".
1819 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1821 From Gerhard Tonn <TON@de.ibm.com>:
1822 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1823 instead of supply_register.
1825 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1827 * dwarf2cfi.c: Include "gdb_assert.h".
1828 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1830 (update_context): Do not use __func__. Add missing ``break''.
1831 (update_context): Do not use __func__.
1833 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1835 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1836 and its setting. Set gdbarch instruction printing functions
1837 directly. For non-rs6000 case use new function
1838 gdb_print_insn_powerpc.
1839 (gdb_print_insn_powerpc): New function.
1841 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1843 * NEWS: Mention that the d30v has been marked obsolete.
1844 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1845 * configure.tgt: Mark d30v-*-* as obsolete.
1846 * d30v-tdep.c: Mark file as obsolete.
1847 * config/d30v/d30v.mt: Ditto.
1848 * config/d30v/tm-d30v.h: Ditto.
1850 2002-07-13 Aidan Skinner <aidan@velvet.net>
1852 * ada-tasks.c (add_task_entry): replace calls to
1853 malloc() with xmalloc
1854 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1856 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1857 ada_finish_decode_line_1, all_sals_for_line
1858 ada_breakpoint_rewrite): replace calls to free() with xfree()
1860 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1862 From Nicholas Duffek (with minor changes by Martin Hunt,
1863 Louis Hamilton, and Kevin Buettner):
1864 * aix-thread.c: New file.
1866 2002-07-12 Petr Sorfa <petrs@caldera.com>
1868 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1869 complaint for invalid attribute class or form.
1870 (read_func_scope): DW_AT_frame_base
1871 better handling of DW_AT_block*.
1872 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1873 better handling of DW_AT_block*.
1874 (read_common_block): DW_AT_location
1875 better handling of DW_AT_block*.
1876 (read_partial_die): DW_AT_location better handling
1878 (new_symbol): DW_AT_external better handling of
1879 DW_AT_block*. Proper initialization of variable
1881 (attr_form_is_block): New function that returns true
1882 if the attribute's form is of DW_FORM_block*.
1884 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1886 * valops.c (find_method_list): Remove comment about
1887 removed STATIC_MEMFUNCP argument.
1888 (value_find_oload_method_list): Likewise.
1890 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1892 From Nicholas Duffek:
1893 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1894 target_new_objfile_hook.
1896 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1898 From Nicholas Duffek:
1899 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1902 2002-07-12 Andrew Cagney <cagney@redhat.com>
1904 * MAINTAINERS: Mention --enable-sim-build-warnings.
1905 (m68hc11-elf): Disable sim build warnings.
1906 (m32r-elf): Mark as broken obsolete candidate.
1907 (x86_64-linux-gnu): Mark as buildable with -Werror.
1908 (arm-elf): Change -w to ``,'' which enables warnings but not
1911 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1913 * bcache.h: Update copyright.
1914 (struct bstring, struct bcache): Move definition to "bcache.c".
1915 Replaced by opaque declaration.
1916 (bcache_xfree): Replace free_bcache.
1917 (bcache_xmalloc, bcache_memory_used): Declare.
1919 * bcache.c: Update copyright.
1920 (struct bstring, struct bcache): Moved to here from "bcache.h".
1922 (bcache_xmalloc, bcache_memory_used): New functions.
1923 (bcache_xfree): Replace function free_bcache.
1925 * Makefile.in (objfiles.o): Add $(bcache_h).
1926 (objfiles_h): Remove $(bcache_h).
1927 (symfile.o): Add $(bcache_h).
1929 * symmisc.c: Update copyright.
1930 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1931 (print_objfile_statistics): Use bcache_memory_used.
1933 * symfile.c: Include "bcache.h".
1934 (reread_symbols): Use bcache_xfree.
1935 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1936 (add_psymbol_to_list): Pass psymbol_cache by value.
1937 (add_psymbol_with_dem_name_to_list): Ditto.
1939 * objfiles.h: Update copyright.
1940 (struct bcache): Declare opaque. Do not include "bcache.h".
1941 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1943 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1945 * objfiles.c: Include "bcache.h". Update copyright.
1946 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1948 (free_objfile): Use bcache_xfree.
1950 2002-07-11 Grace Sainsbury <graces@redhat.com>
1952 * monitor.c (monitor_fetch_register): Make name a constant.
1953 (monitor_store_register): Same.
1955 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1957 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1958 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1959 (finish_block) For non-function blocks, hash the symbol table. For
1960 function blocks, mark the symbol table as unhashed.
1961 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1962 (msymbol_hash_iw): Likewise.
1963 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1965 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1966 (lookup_minimal_symbol): Likewise for both.
1967 * symtab.h (struct block): Add `hashtable' flag. Comment the
1969 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1970 (ALL_BLOCK_SYMBOLS): Update.
1971 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1972 (struct symbol): Add `hash_next' pointer.
1973 * symtab.c (lookup_block_symbol): Search using the hash table when
1975 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1976 (search_symbols, find_addr_symbol): Likewise.
1978 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1979 (read_dst_symtab): Likewise.
1980 * jv-lang.c (get_java_class_symtab): Likewise.
1981 * mdebugread.c: Include "gdb_assert.h".
1982 (shrink_block): Assert that the block being modified is not hashed.
1983 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1984 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1986 (dump_symtab): Recognize hashed blocks.
1987 * printcmd.c (print_frame_args): Assert that function blocks do not
1988 have hashed symbol tables.
1989 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1990 (fill_in_ada_prototype, debug_print_block): Likewise.
1991 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1993 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1995 * stack.c (print_frame): Use result of frame_address_in_block()
1996 instead of fi->pc when evaluating symbols.
1997 (backtrace_command_1): Ditto.
1999 2002-07-11 Andrew Cagney <cagney@redhat.com>
2001 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2004 * arm-tdep.c (arm_register_name): Make return type constant.
2006 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2008 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2010 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2011 * s390-tdep.c (s390_fp_regnum): Ditto.
2012 (s390_read_fp): Ditto.
2013 (s390_pop_frame): Ditto.
2014 (_initialize_s390_tdep): Ditto.
2015 * remote.c (get_remote_state): Ditto.
2016 * procfs.c (mappingflags): Ditto.
2017 * memattr.c (_initialize_mem): Ditto.
2018 * mcore-tdep.c (mcore_pop_frame): Ditto.
2019 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2020 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2021 * language.c (set_case_str): Ditto.
2022 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2023 * frv-tdep.c (new_variant): Ditto.
2024 (frv_stopped_data_address): Ditto.
2025 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2026 (context_alloc): Ditto.
2027 (frame_state_alloc): Ditto.
2028 (unwind_tmp_obstack_init): Ditto.
2029 (unwind_tmp_obstack_free): Ditto.
2030 (cfi_read_fp): Ditto.
2031 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2032 (cris_pop_frame): Ditto.
2033 * c-lang.c (scanning_macro_expansion): Ditto.
2034 (finished_macro_expansion): Ditto.
2035 (c_preprocess_and_parse): Ditto.
2036 * gdbarch.sh: Ditto.
2037 * gdbarch.h, gdbarch.c: Regenerate.
2038 * config/mn10200/tm-mn10200.h: Adjust indentation.
2039 * target.c: Adjust indentation.
2040 * symtab.h: Adjust indentation.
2041 * stabsread.h: Adjust indentation.
2042 * remote-es.c: Adjust indentation.
2043 * os9kread.c: Adjust indentation.
2045 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2047 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2048 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2050 2002-07-10 Grace Sainsbury <graces@redhat.com>
2052 * NEWS: Mention m68k, mcore multi-arching.
2053 * MAINTAINERS: Change status of m68k, mcore to reflect
2056 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2058 * valops.c (find_overload_match): Free oload_syms.
2060 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2062 Define HAVE_SYS_PROC_H if sys/proc.h exists
2063 * configure.in: Add check for sys/proc.h
2064 * config.in: Regenerate.
2065 * configure: Regenerate.
2067 2002-07-09 Grace Sainsbury <graces@redhat.com>
2069 * config/m68k/tm-m68k.h: Remove macros wrapped in
2070 #if !GDB_MULTI_ARCH.
2072 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2074 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2075 (perror_with_name, remote_close, remote_open, expect, play): Static.
2077 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2079 * config.in, configure: Regenerate.
2081 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2083 * dwarf2cfi.c: Include "gcore.h".
2084 (execute_stack_op): Fix implementation of the
2085 DW_OP_deref and DW_OP_deref_size operators by letting do their
2086 lookup in the target.
2088 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2090 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2091 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2094 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2096 Fix PR gdb/595, gdb/602
2097 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2098 Don't call value_cast, just read the vtable pointer; update comments
2101 2002-07-05 Grace Sainsbury <graces@redhat.com>
2103 * config/mcore/tm-mcore.h: Remove file.
2104 * config/mcore/mcore.mt: Remove definition of TM_FILE
2105 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2107 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2109 * i386bsd-tdep.c: Include "gdb_string.h".
2111 2002-07-04 Grace Sainsbury <graces@redhat.com>
2113 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2114 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2116 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2117 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2118 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2119 (RETVAL_REGNUM): Move macros from tm-mcore.h
2120 (mcore_reg_struct_has_addr): New function.
2121 (mcore_gdbarch_init): Added initializations for the macros removed
2124 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2126 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2127 traditonal string branding within the ELF header.
2129 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2131 * symtab.c (remove_params): New function.
2132 (make_symbol_overload_list): Use it instead of cplus_demangle.
2133 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2135 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2137 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2139 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2141 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2142 and tdep->sigtramp_end.
2143 * i386obsd-nat.c: New file.
2144 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2146 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2147 Don't call get_current_frame().
2149 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2151 * i386-nat.c (child_post_startup_inferior): New function
2152 calling i386_cleanup_dregs if
2153 I386_USE_GENERIC_WATCHPOINTS is defined.
2154 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2155 conditional to acknowledge that i386-nat.c has its
2156 own child_post_startup_inferior function.
2158 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2160 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2161 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2162 instead of MAX_REGISTER_RAW_SIZE.
2163 (i386_extract_return_value, i386_extract_struct_value_address):
2164 Convert to use regcache.
2165 (i386_gdbarch_init): Set max_register_raw_size and
2166 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2167 Set extract_return_value and extract_struct_value_address instead
2168 of their deprecated variants.
2170 Convert i386 target to generic dummy frames.
2171 * i386-tdep.c: Include "symfile.h".
2172 (i386_frameless_signal_p): Consider a function to be frameless if
2173 the pc points at the first instruction of the function.
2174 (i386_frame_chain): Handle (generic) call dummies.
2175 (i386_frame_saved_pc): Likewise.
2176 (i386_frame_init_saved_regs): Remove code dealing with call
2177 dummies on the stack.
2178 (i386_push_dummy_frame): Removed.
2179 (i386_call_dummy_words): Removed.
2180 (i386_fix_call_dummy): Removed.
2181 (i386_push_return_address): New function.
2182 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2183 parameter, and don't call get_current_frame.
2184 (i386_pop_frame): New function.
2185 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2186 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2187 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2188 call_dummy_length to 0, set call_dummy_words to NULL, set
2189 sizeof_call_dummy_words to 0, set fix_call_dummy to
2190 generic_fix_call_dummy, set pc_in_call_dummy to
2191 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2192 generic_push_dummy_frame, set push_return_address to
2193 i386_push_return_address and set frame_chain_valid to
2194 generic_file_frame_chain_valid.
2196 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2198 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2199 byte offsets instead of an array of indexes.
2200 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2202 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2204 * gdbarch.sh (struct regcache): Add opaque declaration.
2205 (EXTRACT_RETURN_VALUE): New architecture method.
2206 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2207 * gdbarch.h, gdbarch.c: Regenerate.
2208 * arch-utils.c (legacy_extract_return_value): New function.
2209 * arch-utils.h (legacy_extract_return_value): Declare.
2210 * values.c (value_being_returned): Re-enable code handling
2211 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2212 deprecated_grub_regcache_for_registers call to block handling
2213 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2214 (EXTRACT_RETURN_VALUE): Do not define.
2216 2002-07-03 Grace Sainsbury <graces@redhat.com>
2218 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2219 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2220 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2221 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2222 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2223 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2224 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2225 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2226 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2227 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2228 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2229 argument so the function fits the prototype in the architecture
2231 (mcore_pop_frame): Remove argument so the function fits the
2232 prototype. Use get_current_frame instead of the argument.
2233 (mcore_push_arguments): Change type of struct_return so the
2234 function can be used in the architecture vector.
2235 (mcore_store_struct_return): Add.
2236 (mcore_frame_init_saved_regs): Add.
2237 (mcore_gdbarch_init): Add function calls to replace the macros
2238 removed from tm-mcore.h
2240 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2242 * infcmd.c (print_return_value): Remove compatibility code calling
2243 deprecated_grub_regcache_for_registers.
2245 * values.c: Include "regcache.h".
2246 (value_being_returned): Update. Use
2247 deprecated_grub_regcache_for_registers to extract the register
2249 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2250 ``struct regcache''.
2251 * Makefile.in (values.o): Add dependency on $(regcache_h).
2253 * inferior.h (run_stack_dummy): Change type of second parameter to
2254 a ``struct regcache''.
2255 * valops.c (hand_function_call): Change type of retbuf to ``struct
2256 regcache''. Allocate using regcache_xmalloc, clean using
2257 make_cleanup_regcache_xfree.
2258 * infcmd.c (run_stack_dummy): Update. Use
2259 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2261 * regcache.c (do_regcache_xfree): New function.
2262 (make_cleanup_regcache_xfree): New function.
2263 * regcache.h (make_cleanup_regcache_xfree): Declare.
2265 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2267 * event-top.c (command_line_handler): Don't read past
2268 beginning of buffer.
2270 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2272 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2274 (varobj_create): Store frame_id for root.
2275 (varobj_gen_name): Use xasprintf.
2276 (varobj_update): Save and restore frame using get_frame_id() and
2278 (create_child): Use xasprintf.
2279 (new_root_variable): Initialize frame_id.
2280 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2281 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2282 to prevent memory leak.
2284 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2286 * valops.c (hand_function_call): Move declaration of retbuf to
2287 start of function, allocate using malloc, add a cleanup but before
2288 the inf_status cleanup, cleanup the buffer. Rename local variable
2289 old_chain to inf_status_cleanup.
2291 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2293 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2295 * cli/cli-decode.c (cmd_func_p): New function.
2296 (cmd_func): New function.
2298 * command.h: Add cmd_func() and cmd_func_p().
2300 2002-07-03 Grace Sainsbury <graces@redhat.com>
2302 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2303 (REGISTER_SIZE): Remove.
2304 (MAX_REGISTER_RAW_SIZE): Remove.
2305 (REGISTER_VIRTUAL_TYPE): Remove.
2306 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2307 (REGISTER_NAME): Remove.
2308 (USE_GENERIC_DUMMY_FRAMES): Remove.
2309 (CALL_DUMMY): Remove.
2310 (CALL_DUMMY_START_OFFSET): Remove.
2311 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2312 (CALL_DUMMY_LOCATION): Remove.
2313 (FIX_CALL_DUMMY): Remove.
2314 (CALL_DUMMY_ADDRESS): Remove.
2315 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2316 (SAVE_DUMMY_FRAME_TOS): Remove.
2317 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2318 (mcore_register_virtual_type): New function.
2319 (mcore_register_byte): New function.
2320 (mcore_register_size): New function.
2321 (mcore_register_name): New function.
2322 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2323 macros removed from tm-mcore.h.
2324 (mcore_dump_tdep): Add.
2325 (_initialize_mcore_tdep): Add gdbarch_register call.
2327 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2329 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2330 frameless_look_for_prologue, such that we actually call this
2333 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2335 * frame.h (frame_address_in_block): New function.
2337 * blockframe.c (frame_address_in_block): New function extracted
2338 from get_frame_block().
2339 (get_frame_block): Use frame_address_in_block().
2340 (block_innermost_frame): Use frame_address_in_block() to match
2341 the frame pc address against the block boundaries rather than
2342 the frame pc directly. This prevents a failure when a frame pc
2343 is actually a return-address pointing immediately after the end
2346 2002-07-02 Grace Sainsbury <graces@redhat.com>
2348 * MAINTAINERS: Add self under write after approval.
2350 2002-07-02 Grace Sainsbury <graces@redhat.com>
2352 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2353 used in architecture vector. The default is
2354 m68k_local_breakpoint_from_pc.
2355 (m68k_local_breakpoint_from_pc): Add.
2356 (enum): Add register numbers from tm-m68k.h.
2357 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2359 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2360 GDB_MULTI_ARCH_PARTIAL.
2361 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2362 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2364 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2365 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2366 to enum in m68k-tdep.c
2368 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2370 * solib-osf.c (open_map): Compute the list of shared libraries
2371 loaded by the inferior, rather than the list of libraries loaded
2372 by GDB itself. Otherwise, GDB ends up reading the symbols from
2373 the wrong shared libraries...
2375 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2377 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2378 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2380 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2382 (FRAMELESS_SIGNAL): Remove function.
2383 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2384 i386_linux_saved_pc_after_call): Removed.
2385 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2386 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2387 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2389 * i386-tdep.c (i386_frameless_signal_p): New function.
2390 (i386_frame_chain): Deal with frameless signals.
2391 (i386_sigtramp_saved_sp): New function.
2392 (i386_frame_saved_pc): Deal with frameless signals.
2393 (i386_saved_pc_after_call): Make sure the correct value is
2394 returned just after entry into a sigtramp.
2395 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2396 i386fbsd4_sc_sp_offset): New variables.
2397 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2398 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2399 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2400 similiar to what we already did for sc_pc_offset.
2401 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2404 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2406 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2408 * config/i386/tm-x86-64linux.h: New.
2409 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2411 * config/i386/nm-x86-64.h: Rename to ...
2412 * config/i386/nm-x86-64linux.h: ... this one.
2413 * config/i386/x86-64linux.mh: Reflect the above change.
2415 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2417 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2418 with sigcontext_addr. Add sc_sp_offset.
2419 (i386bsd_sigtramp_saved_pc): Remove prototype.
2420 (i386bsd_sicontext_addr): Add prototype.
2421 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2422 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2423 (i386_svr4_sigtramp_saved_pc): Removed.
2424 (i386_svr4_sigcontext_addr): New function.
2425 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2426 Initialize tdep->sigcontext_addr instead. Initialize
2427 tdep->sc_pc_offset and tdep->sc_sp_offset.
2428 (i386_gdbarch_init): Likewise.
2429 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2431 (i386bsd_sigtramp_saved_pc): Remove function.
2432 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2433 Initialize tdep->sigcontext_addr instead. Initialize
2435 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2436 of tdep->sigtramp_saved_pc.
2437 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2438 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2441 * i386-tdep.c (i386_frameless_function_invocation,
2442 i386_frame_num_args, i386_frame_init_saved_regs,
2443 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2444 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2445 i386_extract_return_value, i386_store_return_value,
2446 i386_extract_struct_value_address, i386_register_virtual_type,
2447 i386_register_convertible, i386_register_convert_to_virtual,
2448 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2449 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2452 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2454 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2456 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2457 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2458 this macro. Include "value.h".
2460 2002-06-30 Aidan Skinner <aidan@velvet.net>
2462 * ada-exp.tab.c: remove as it's a generated file
2463 * ada-lex.c: remove as it's a generated file
2465 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2467 * config/i386/tm-i386.h (struct frame_info, struct
2468 frame_saved_regs, struct value, struct type): Remove forward
2471 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2472 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2473 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2474 (FILL_FPXREGSET): Define.
2476 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2478 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2479 i[3456]86-*-netbsd* case.
2480 * config/i386/tm-obsd.h: Removed.
2481 * config/i386/obsd.mt: Removed.
2482 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2484 (MH_CFLAGS): Add -DYYDEBUG=0.
2486 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2487 i386nbsd_sc_pc_offset on OpenBSD too.
2489 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2490 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2491 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2493 * i386bsd-tdep.c: Include "arch-utils.h".
2494 (i386bsd_aout_in_solib_call_trampoline): New function.
2495 (i386bsd_init_abi): Set in_solib_call_trampoline to
2496 i386bsd_aout_in_solib_call_trampoline.
2497 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2498 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2500 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2502 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2503 (struct obstack, struct bcache): Add opaque declarations.
2504 * Makefile.in (macrotab_h): Update
2506 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2508 * blockframe.c (generic_find_dummy_frame): Change return type to
2509 ``struct regcache''.
2510 (struct dummy_frame): Replace field ``registers'' with regcache, a
2511 struct regcache object.
2512 (generic_find_dummy_frame): Update.
2513 (generic_push_dummy_frame): Update. Use regcache_xfree,
2514 regcache_xmalloc and regcache_cpy.
2515 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2517 (deprecated_generic_find_dummy_frame): Update.
2518 (generic_read_register_dummy): Update. Use
2519 regcache_read_as_address.
2520 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2521 (generic_get_saved_register): Update. Use regcache_read.
2523 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2525 * Makefile.in (objfiles_h): Add $(bcache_h).
2526 * objfiles.h: Include "bcache.h".
2528 * Makefile.in (symtab_h): Remove $(bcache_h).
2529 * symtab.h: Do not include "bcache.h".
2531 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2533 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2534 generic_func_frame_chain_valid.
2536 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2538 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2539 * config/i386/tm-fbsd.h: Likewise.
2541 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2543 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2544 generic_unwind_get_saved_register.
2546 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2548 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2549 * regcache.c (supply_register): Add missing argument to
2550 register_buffer call.
2552 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2554 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2555 Solaris /bin/grep does not not like it. From Peter Schauer.
2557 2002-06-26 Tom Tromey <tromey@redhat.com>
2559 * command.h (add_setshow_cmd): Declare.
2560 (add_setshow_cmd_full): Declare.
2561 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2562 returns void. Use add_setshow_cmd_full.
2563 (add_setshow_cmd_full): New function.
2564 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2565 (add_setshow_boolean_cmd): Likewise.
2567 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2569 * config/vax/tm-vax.h: Protect from multiple inclusion.
2570 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2571 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2572 * config/vax/tm-vaxbsd.h: ...here. New file.
2573 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2575 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2577 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2578 (BELIEVE_PCC_PROMOTION): Remove.
2579 (AP_REGNUM): Move to...
2580 * config/vax/nm-vax.h: ...here.
2581 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2582 (vax_breakpoint_from_pc): New function.
2583 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2584 and gdbarch_believe_pcc_promotion.
2586 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2588 * Makefile.in (vax_tdep_h): Define.
2589 (vax-tdep.o): Use $(vax_tdep_h).
2590 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2591 (vax_dump_tdep): New function.
2592 (_initialize_vax_tdep): Register vax_dump_tdep.
2593 * vax-tdep.h: Include osabi.h.
2594 (struct gdbarch_tdep): New.
2596 2002-06-26 Andrew Cagney <cagney@redhat.com>
2598 * frame.h (deprecated_generic_find_dummy_frame): Rename
2599 generic_find_dummy_frame.
2600 * blockframe.c (generic_find_dummy_frame): Make static.
2601 (deprecated_generic_find_dummy_frame): New function.
2602 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2603 generic_find_dummy_frame with deprecated_find_dummy_frame.
2604 (sh64_nofp_frame_init_saved_regs): Ditto.
2605 (sh_fp_frame_init_saved_regs): Ditto.
2606 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2607 (s390_frame_chain): Ditto.
2608 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2610 2002-06-26 Grace Sainsbury <graces@redhat.com>
2612 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2613 gdbarch vector are at the top.
2615 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2616 (FRAME_ARGS_ADDRESS): Remove.
2617 (FRAME_LOCALS_ADDRESS): Remove.
2618 (FRAME_NUM_ARGS): Remove.
2619 (FRAME_ARGS_SKIP): Remove.
2620 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2621 (m68k_gdbarch_init): Add gdbarch initializations for macros
2622 undefined in tm-m68k.h
2624 2002-06-26 Grace Sainsbury <graces@redhat.com>
2626 * monitor.h: Add the function regname to monitor_ops
2627 structure. This way NUM_REGS does not have to be a constant.
2628 * monitor.c (monitor_fetch_register): Added support for regname
2629 function. The function is called if the array regnames is NULL.
2630 (monitor_store_register): Same.
2631 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2633 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2634 cpu32bug_cmds.regname to point to new function.
2635 * abug-rom.c (abug_regname): Same as above.
2636 (init_abug_cmds): Same.
2637 * dbug-rom.c (dbug_regname): Same as above.
2638 (init_dbug_cmds): Same.
2639 * remote-est.c (est_regname): Same.
2640 (init_est_cmds): Same.
2641 * rom68k-rom.c (rom68k_regname): Same.
2642 (init_rom68k_cmds): Same.
2644 2002-06-25 Tom Tromey <tromey@redhat.com>
2646 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2648 2002-06-25 Andrew Cagney <cagney@redhat.com>
2650 * infrun.c (stop_registers): Change variable's type to ``struct
2652 (xmalloc_inferior_status): Delete function.
2653 (free_inferior_status): Delete function.
2654 (normal_stop): Use regcache_cpy.
2655 (struct inferior_status): Change type of fields ``stop_registers''
2656 and ``registers'' to ``struct regcache''.
2657 (write_inferior_status_register): Use regcache_write.
2658 (save_inferior_status): Instead of calling
2659 xmalloc_inferior_status, allocate the inf_status buffer directly.
2660 Use regcache_dup_no_passthrough and regcache_dup to save the
2662 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2663 Replace the stop_registers regcache instead of overriding it. Use
2664 regcache_xfree. Instead of calling free_inferior_status, xfree
2665 the buffer directly.
2666 (discard_inferior_status): Use regcache_xfree. Instead of calling
2667 free_inferior_status, xfree the buffer directly.
2668 (build_infrun): Use regcache_xmalloc.
2669 (_initialize_infrun): Delete redundant call to build_infrun.
2671 * Makefile.in (infcmd.o): Add $(regcache_h).
2673 * infcmd.c: Include "regcache.h".
2674 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2675 obtain the address of `stop_registers' register buffer.
2676 (print_return_value): Ditto.
2678 * inferior.h (struct regcache): Add opaque declaration.
2679 (stop_registers): Change variable's declared type to ``struct
2682 2002-06-24 Tom Tromey <tromey@redhat.com>
2684 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2685 * target.c (initialize_targets): Fixed typo in
2686 trust-readonly-sections `show' documentation.
2688 * main.c: Marked all strings with _().
2690 2002-06-24 Don Howard <dhoward@redhat.com>
2692 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2693 that means max CORE_ADDR+1.
2694 (lookup_mem_region): Ditto.
2695 (mem_info_command): Ditto.
2697 2002-06-24 Grace Sainsbury <graces@redhat.com>
2699 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2700 (REGISTER_BYTES_OK): Remove.
2701 (REGISTER_BYTES): Remove.
2702 (STORE_STRUCT_RETURN): Remove.
2703 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2704 (STORE_RETURN_VALUE): Remove.
2705 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2706 (FRAME_CHAIN): Remove.
2707 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2708 (FRAME_SAVED_PC): Remove.
2709 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2710 (m68k_store_struct_return): Add.
2711 (m68k_deprecated_extract_return_value): Add.
2712 (m68k_deprecated_extract_struct_value_address): Add.
2713 (m68k_store_return_value): Add.
2714 (m68k_frame_chain): Add.
2715 (m68k_frameless_function_invocation): Add.
2716 (m68k_frame_saved_pc): Add.
2717 (m68k_gdbarch_init): added set_gdbarch calls for new
2718 functions and deleted macros.
2720 2002-06-23 Tom Tromey <tromey@redhat.com>
2722 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2723 (ALLDEPFILES): Likewise.
2724 (udiheaders): Removed.
2725 (udip2soc.o): Likewise.
2726 (udi2go32.o): Likewise.
2728 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2730 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2732 * infrun.c (_initialize_infrun): Delete unnecessary call to
2735 * regcache.h: Update comments describing the regcache_cpy family
2737 (regcache_save, regcache_restore): Delete declaration.
2738 (regcache_save_no_passthrough): Delete declaration.
2739 (regcache_restore_no_passthrough): Delete declaration.
2740 * regcache.c (regcache_save): Delete function.
2741 (regcache_save_no_passthrough): Delete function.
2742 (regcache_restore): Delete function.
2743 (regcache_restore_no_passthrough): Delete function.
2745 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2747 * config/m68k/tm-m68k.h: Fix typo.
2748 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2749 (m68k_frame_init_saved_regs): Declare.
2751 2002-06-21 Jim Blandy <jimb@redhat.com>
2753 Remove some vestiges of Harris 88k support.
2754 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2755 register numbering quirk.
2756 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2757 odd symbols occurring in Harris 88k ELF targets.
2759 2002-06-21 Tom Tromey <tromey@redhat.com>
2761 * gdb_locale.h: New file.
2762 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2763 (defs_h): Added gdb_locale.h.
2764 * configure, config.in: Rebuilt.
2765 * configure.in (PACKAGE): Define.
2766 * defs.h: Include gdb_locale.h.
2767 * main.c (captured_main): Call setlocale, bindtextdomain,
2770 2002-06-21 Dave Brolley <brolley@redhat.com>
2772 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2773 * config/frv/frv.mt: New file.
2774 * config/frv/tm-frv.h: New file.
2775 * configure.tgt: Support frv-*-*.
2776 * Makefile.in (frv-tdep.o): New target.
2777 * frv-tdep.c: New file.
2778 * NEWS: Mention frv.
2780 2002-06-21 Dave Brolley <brolley@redhat.com>
2782 * MAINTAINERS: Add self to "Write After Approval" list.
2784 2002-06-21 Grace Sainsbury <graces@redhat.com>
2786 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2787 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2788 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2789 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2790 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2792 * m68k-tdep.c: Include arch-utils.h
2793 (m68k_register_raw_size): Add.
2794 (m68k_register_virtual_size): Add.
2795 (m68k_register_virtual_type): Add.
2796 (m68k_register_name): Add.
2797 (m68k_stack_align): Add.
2798 (m68k_register_byte): Add.
2799 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2802 2002-06-21 Grace Sainsbury <graces@redhat.com>
2804 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2805 m68k_find_saved_regs.
2806 (m68k_pop_frame): Removed saved_regs structure, and replaced
2807 references to it with frame->saved_regs.
2808 (m68k_gdbarch_init): Added function calls to initialize the
2810 (m68k_fix_call_dummy): Add.
2811 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2812 (CALL_DUMMY): Remove.
2813 (CALL_DUMMY_LENGTH): Remove.
2814 (CALL_DUMMY_START_OFFSET): Remove.
2815 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2816 (FIX_CALL_DUMMY): Remove.
2817 (PUSH_DUMMY_FRAME): Remove.
2818 (POP_FRAME): Remove.
2820 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2822 * parse.c (parse_fprintf): New function used to avoid calls to
2823 fprintf in bison parser generated debug code.
2824 * parser-defs.h: Declaration of new parse_fprintf function.
2825 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2826 Set YYDEBUG to 1 by default.
2827 Set YYFPRINTF as parse_fprintf.
2829 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2831 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2833 (pointer_encoding, enum ptr_encoding): New.
2834 (execute_cfa_program): Take care about pointer encoding.
2835 (dwarf2_build_frame_info): Only call parse_frame_info for
2836 .debug_frame and .eh_frame.
2837 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2838 fixed augmentation handling, added relative addressing,
2839 ignore duplicate FDEs. Added comments.
2840 * dwarf2cfi.c: Reindented.
2842 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2844 * event-top.c (command_handler): Don't use space_at_cmd_start
2845 unless there is sbrk() on the host. Assign time and space data
2846 to union fields of the appropriate length.
2848 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2850 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2851 x86_64_register_name. Return type changed to 'const char *'.
2852 (x86_64_register_name2nr): Rename to x86_64_register_number.
2853 (x86_64_gdbarch_init): Update to reflect the change.
2854 * x86-64-tdep.h: Ditto.
2855 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2856 (supply_fpregset): Ditto.
2858 2002-06-19 Andrew Cagney <cagney@redhat.com>
2860 * regcache.h: Update copyright.
2861 (struct regcache, struct gdbarch): Add opaque declarations.
2862 (current_regcache): Declare global variable.
2863 (regcache_read, regcache_write): Add gdbarch parameter.
2864 (regcache_save, regcache_save_no_passthrough)
2865 (regcache_restore, regcache_restore_no_passthrough)
2866 (regcache_dup, regcache_dup_no_passthrough)
2867 (regcache_cpy, regcache_cpy_no_passthrough)
2868 (deprecated_grub_regcache_for_registers)
2869 (deprecated_grub_regcache_for_register_valid)
2870 (regcache_valid_p): Add function declarations.
2872 * regcache.c: Update copyright.
2873 (regcache_descr_handle): New global variable.
2874 (struct regcache_descr): Define.
2875 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2876 (regcache_descr, xfree_regcache_descr): New functions.
2877 (struct regcache): Define.
2878 (regcache_xmalloc, regcache_xfree): New functions.
2879 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2880 (regcache_dup, regcache_dup_no_passthrough): New functions.
2881 (regcache_valid_p, regcache_read_as_address): New functions.
2882 (deprecated_grub_regcache_for_registers): New function.
2883 (deprecated_grub_regcache_for_register_valid): New function.
2884 (current_regcache): New global variable.
2885 (register_buffer): Add regcache parameter. Update calls.
2886 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2887 (read_register_gen, write_register_gen): Update register_buffer
2888 call. Test for legacy_p instead of gdbarch_register_read_p or
2889 gdbarch_register_write_p.
2890 (regcache_collect): Update register_buffer call.
2891 (build_regcache): Rewrite. Use deprecated grub functions.
2892 (regcache_save, regcache_save_no_passthrough): New functions.
2893 (regcache_restore, regcache_restore_no_passthrough): New
2895 (_initialize_regcache): Create the regcache_data_handle. Swap
2896 current_regcache global variable.
2898 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2899 parameter to regcache_read and regcache_write calls.
2900 (sh4_register_read): Ditto.
2901 (sh64_pseudo_register_read): Ditto.
2902 (sh64_register_read): Ditto.
2903 (sh_pseudo_register_write): Ditto.
2904 (sh4_register_write): Ditto.
2905 (sh64_pseudo_register_write): Ditto.
2906 (sh64_register_write): Ditto.
2908 * defs.h (XCALLOC): Define.
2910 2002-06-19 Grace Sainsbury <graces@redhat.com>
2912 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2913 * m68k-tdep.c (m68k_gdbarch_init): Added.
2914 (m68k_dump_tdep): Added.
2916 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2918 * ada-lang.c (fill_in_ada_prototype): Update comment.
2920 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2922 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2924 (mips_abi_string, mips_abi_strings): New.
2925 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2926 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2927 tdep->mips_abi_string. Honor mips_abi_string. Default to
2928 O32 if no ABI is found.
2929 (mips_dump_tdep): Use mips_abi_strings.
2930 (mips_abi_update): New function.
2931 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2932 ``set mips abi'' and ``show mips abi''. Check the size of
2935 2002-06-19 Andrew Cagney <cagney@redhat.com>
2937 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2940 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2942 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2943 current frame using only the first stack size adjustment. All
2944 subsequent size adjustments are not considered to be part of
2945 the "static" part of the current frame.
2946 Compute the address of the saved registers relative to the
2947 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2948 in use in this frame.
2950 2002-06-18 Don Howard <dhoward@redhat.com>
2952 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2953 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2954 suggesting this solution.
2956 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2958 * config/romp/xm-rtbsd.h: Delete file.
2959 * config/romp/rtbsd.mh: Delete file.
2961 2002-06-18 Keith Seitz <keiths@redhat.com>
2963 * breakpoint.c (condition_command): Post breakpoint_modify
2964 when a condition is added to an existing breakpoint.
2965 (commands_command): Likewise for commands.
2966 (set_ignore_count): Likewise for ignore counts.
2967 If no tty, do not simply return, still need to send event
2969 (ignore_command): Only print a newline if the command came
2971 Don't call breakpoints_changed, since this is now properly
2972 handled by set_ignore_count.
2974 2002-06-18 Andrew Cagney <cagney@redhat.com>
2976 * MAINTAINERS: Note that cris-elf target can be compiled with
2978 * cris-tdep.c (cris_register_name): Make return type constant.
2979 (cris_breakpoint_from_pc): Ditto.
2981 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2983 * frame.h (struct frame_info): Change type of context to
2986 2002-06-17 Andrew Cagney <cagney@redhat.com>
2988 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2990 * gdbarch.h, gdbarch.c: Regenerate.
2991 * config/mips/tm-mips.h (mips_register_name): Update.
2992 * i386-tdep.h (i386_register_name): Update.
2993 * mips-tdep.c (mips_register_name): Update
2994 * alpha-tdep.c (alpha_register_name): Update.
2995 * arch-utils.c (legacy_register_name): Update.
2996 * arch-utils.h (legacy_register_name): Update.
2997 * avr-tdep.c (avr_register_name): Update.
2998 * ia64-tdep.c (ia64_register_name): Update.
2999 * i386-tdep.c (i386_register_name): Update.
3000 * sparc-tdep.c (sparc32_register_name): Update.
3001 (sparc64_register_name): Update.
3002 (sparclite_register_name): Update.
3003 (sparclet_register_name): Update.
3004 * sh-tdep.c (sh_generic_register_name): Update.
3005 (sh_sh_register_name): Update.
3006 (sh_sh3_register_name): Update.
3007 (sh_sh3e_register_name): Update.
3008 (sh_sh_dsp_register_name): Update.
3009 (sh_sh3_dsp_register_name): Update.
3010 (sh_sh4_register_name): Update.
3011 (sh_sh64_register_name): Update.
3012 * s390-tdep.c (s390_register_name): Update.
3013 * rs6000-tdep.c (rs6000_register_name): Update.
3014 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3015 (ns32k_register_name_32382): Update.
3016 * d10v-tdep.c (d10v_ts2_register_name): Update.
3017 (d10v_ts3_register_name): Update.
3018 * xstormy16-tdep.c (xstormy16_register_name): Update.
3019 * vax-tdep.c (vax_register_name): Update.
3020 * v850-tdep.c (v850_register_name): Update.
3021 * m68hc11-tdep.c (m68hc11_register_name): Update.
3022 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3023 (am33_register_name): Update.
3025 2002-06-17 Grace Sainsbury <graces@redhat.com>
3027 * m68k-tdep.c: Reindented.
3029 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3031 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3032 list of predefined types.
3034 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3036 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3037 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3038 REGISTER_CONVERT_TO_RAW): Remove defines.
3039 (i386_register_virtual_type, i386_register_convertible,
3040 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3042 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3043 macros mentioned above.
3045 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3046 (i386lynx_saved_pc_after_call): Remove prototype.
3047 * i386ly-tdep.c: Include "i386-tdep.h".
3048 (i386lynx_saved_pc_after_call): Make static. Use
3049 read_memory_nobpt instead of read_memory. Use
3050 read_memory_unsigned_integer instead of read_memory_integer.
3051 (i386lynx_init_abi): New function.
3052 (i386lynx_coff_osabi_sniffer): New function.
3053 (_initialize_i386bsd_tdep): New function.
3055 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3056 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3057 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3058 (i386_fix_call_dummy): Remove prototype.
3059 * i386-tdep.c (i386_call_dummy_words): New variable.
3060 (i386_gdbarch_init): Adjust for removal of the
3061 macros mentioned above.
3063 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3065 * command.h (add_setshow_auto_boolean_cmd): Replace
3066 add_set_auto_boolean_cmd.
3067 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3068 add_set_auto_boolean_cmd.
3069 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3070 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3071 mask-address'' command.
3072 (show_mask_address): Add cmd parameter.
3073 * remote.c (add_packet_config_cmd): Update. Change type of
3074 set_func and show_func to cmd_sfunc_ftype.
3075 (_initialize_remote): Update `set remote Z-packet'
3076 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3077 (show_remote_protocol_e_packet_cmd): Ditto.
3078 (show_remote_protocol_E_packet_cmd): Ditto.
3079 (show_remote_protocol_P_packet_cmd): Ditto.
3080 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3081 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3082 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3083 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3084 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3085 (show_remote_protocol_Z_packet_cmd): Ditto.
3086 (show_remote_protocol_binary_download_cmd): Ditto.
3087 (show_remote_cmd): Pass NULL to all of above.
3089 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3091 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3092 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3093 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3094 POP_FRAME): Remove defines.
3095 (i386_push_arguments, i386_store_struct_return,
3096 i386_extract_return_value, i386_store_return_value,
3097 i386_extract_struct_value_address, i386_push_dummy_frame,
3098 i386_pop_frame): Renove prototypes.
3099 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3100 macros mentioned above.
3102 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3104 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3105 add_set_boolean_cmd.
3106 (add_setshow_cmd): New function.
3107 * command.h (add_setshow_boolean_cmd): Replace
3108 add_set_boolean_cmd.
3109 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3110 and ``set rdiromatzero''.
3111 * maint.c (_initialize_maint_cmds): Update commented out code.
3112 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3113 * target.c (initialize_targets): Update `set
3114 trust-readonly-sections'.
3115 * remote.c (_initialize_remote): Update `set remotebreak'.
3117 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3119 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3120 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3121 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3122 fit into multi-arch framework.
3123 (i386_breakpoint_from_pc): New function.
3124 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3127 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3128 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3129 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3130 (i386_frameless_function_invocation, i386_frame_num_args,
3131 i386_frame_init_saved_regs): Remove prototypes.
3132 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3133 macros mentioned above.
3135 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3137 * cli/cli-decode.c (set_cmd_cfunc): Update.
3138 (set_cmd_sfunc): Update.
3139 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3140 (set_cmd_sfunc, set_cmd_cfunc): Update.
3141 * cli/cli-decode.h: Update.
3143 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3145 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3146 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3148 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3150 * defs.h (auto_boolean): Declare enum.
3151 * command.h (cmd_auto_boolean): Delete enum.
3152 * mips-tdep.c (mask_address_var): Update.
3153 (mips_mask_address_p): Update.
3154 (show_mask_address): Update.
3155 * remote.c (struct packet_config): Update.
3156 (update_packet_config): Update.
3157 (show_packet_config_cmd): Update.
3158 (packet_ok): Update.
3159 (add_packet_config_cmd): Update.
3160 (_initialize_remote):
3161 * command.h: Update.
3162 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3163 (do_setshow_command): Update.
3164 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3165 * cli/cli-decode.h: Update.
3167 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3169 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3170 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3171 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3172 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3173 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3174 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3176 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3177 list of DJGPP COFF targets.
3179 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3180 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3181 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3182 (FP0_REGNUM): Remove define.
3183 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3184 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3185 (i386_register_virtual_size): Remove protoype.
3186 * i386-tdep.c (i386_register_virtual_size): Removed.
3187 (i386_extract_return_value, i386_store_return_value): Use
3188 FP0_REGNUM instead of NUM_FREGS to determine whether the
3189 floating-point registers are available.
3190 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3191 Adjust for removal of macros mentioned above.
3193 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3195 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3197 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3199 (supply_gregset, fill_gregset): Remove use of register keyword and
3200 remove declaration for regmap. Use I386_NUM_GREGS instead of
3201 NUM_REGS and NUM_FREGS.
3202 (FPREGSET_FSAVE_OFFSET): Remove.
3203 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3204 NUM_FREGS to determine whether the floating-point registers are
3207 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3208 gnu_store_registers): Replace usage of NUM_GREGS with
3211 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3212 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3213 usage of NUM_GREGS with I386_NUM_GREGS.
3215 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3217 * i386bsd-nat.c: Include "i386-tdep.h".
3218 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3221 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3222 and associated comment. They no longer make any sense, since we
3223 don't use this file anymore on Linux.
3225 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3226 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3227 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3228 elements in these arrays.
3229 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3232 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3234 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3235 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3237 2002-06-14 Andrew Cagney <cagney@redhat.com>
3239 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3240 EXTRACT_RETURN_VALUE.
3241 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3242 EXTRACT_STRUCT_VALUE_ADDRESS.
3243 * gdbarch.h, gdbarch.c: Regenerate.
3245 * values.c (value_being_returned): Handle
3246 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3247 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3249 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3250 * arm-tdep.c (arm_gdbarch_init): Update.
3251 * avr-tdep.c (avr_gdbarch_init): Update.
3252 * cris-tdep.c (cris_gdbarch_init): Update.
3253 * d10v-tdep.c (d10v_gdbarch_init): Update.
3254 * ia64-tdep.c (ia64_gdbarch_init): Update.
3255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3257 * s390-tdep.c (s390_gdbarch_init): Update.
3258 * sh-tdep.c (sh_gdbarch_init): Update.
3259 * s390-tdep.c (s390_gdbarch_init): Update.
3260 * sparc-tdep.c (sparc_gdbarch_init): Update.
3261 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3262 * v850-tdep.c (v850_gdbarch_init): Update.
3263 * vax-tdep.c (vax_gdbarch_init): Update.
3264 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3267 * config/arc/tm-arc.h: Update.
3268 * config/d30v/tm-d30v.h: Update.
3269 * config/fr30/tm-fr30.h: Update.
3270 * config/h8300/tm-h8300.h: Update.
3271 * config/h8500/tm-h8500.h: Update.
3272 * config/i386/tm-i386.h: Update.
3273 * config/i386/tm-ptx.h: Update.
3274 * config/i386/tm-symmetry.h: Update.
3275 * config/i960/tm-i960.h: Update.
3276 * config/m32r/tm-m32r.h: Update.
3277 * config/m68k/tm-delta68.h: Update.
3278 * config/m68k/tm-linux.h: Update.
3279 * config/m68k/tm-m68k.h: Update.
3280 * config/m88k/tm-m88k.h: Update.
3281 * config/mcore/tm-mcore.h: Update.
3282 * config/mips/tm-mips.h: Update.
3283 * config/mn10200/tm-mn10200.h: Update.
3284 * config/pa/tm-hppa.h: Update.
3285 * config/pa/tm-hppa64.h: Update.
3286 * config/sparc/tm-sp64.h: Update.
3287 * config/sparc/tm-sparc.h: Update.
3288 * config/sparc/tm-sparclet.h: Update.
3289 * config/z8k/tm-z8k.h: Update.
3291 2002-06-14 Andrew Cagney <cagney@redhat.com>
3293 * Makefile.in (i386_linux_tdep_h): Define.
3294 (i386_tdep_h, i387_tdep_h): Define.
3295 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3296 $(i386_tdep_h) and $(i387_tdep_h).
3297 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3299 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3301 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3302 Already covered by the default.
3304 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3305 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3306 (i386_gdbarch_init): Initialize long_double_format and long_double
3309 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3310 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3312 * config/i386/i386sol2.mh: ... here.
3313 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3314 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3315 (SIGCONTEXT_PC_OFFSET): Remove define.
3316 (IN_SIGTRAMP): Remove define.
3317 * i386-sol2-tdep.c: New file.
3319 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3320 * config/i386/tm-i386nw.h: Removed.
3322 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3323 USE_STRUCT_CONVENTION): Remove defines.
3324 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3325 (get_longjmp_target): Remove prototype.
3326 (IN_SIGTRAMP): Remove define.
3327 (i386bsd_in_sigtramp): Remove prototype.
3328 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3329 function. Update comment accordingly
3330 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3331 (FRAME_SAVED_PC): Remove define.
3332 (i386bsd_frame_saved_pc): Remove prototype.
3333 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3334 GET_LONGJMP_TARGET): Remove defines.
3335 (get_longjmp_target): Remove prototype.
3336 (IN_SIGTRAMP): Remove define.
3337 (i386bsd_in_sigtramp): Remove prototype.
3338 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3339 function. Update comment accordingly
3340 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3341 (FRAME_SAVED_PC): Remove define.
3342 (i386bsd_frame_saved_pc): Remove prototype.
3343 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3345 (USE_STRUCT_CONVENTION): Remove prototype.
3346 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3348 (_initialize_i386bsd_nat): Revise logic to determine some
3349 constants at compile time when compiling a native GDB. Warn if
3350 things don't match up with what we expect.
3351 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3353 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3354 to use date stored in `struct gdbarch_tdep'.
3355 (i386bsd_sigcontext_offset): Remove varaible.
3356 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3357 stored in `struct gdbarch_tdep'.
3358 (i386bsd_frame_saved_pc): Make static.
3359 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3360 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3361 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3362 i386fbsd4_sc_pc_offset): New variables.
3363 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3364 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3366 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3368 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3369 Modify the value of i386fbsd_sigtramp_start and
3370 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3371 i386fbsd_sigtramp_end.
3372 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3375 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3376 define to i386-linux-tdep.h.
3377 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3378 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3380 (i386_linux_register_name, i386_linux_register_byte,
3381 i386_linux_register_raw_size): Remove prototypes.
3382 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3383 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3384 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3385 TARGET_WRITE_PC): Remove defines.
3386 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3387 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3388 i386_linux_write_pc): Remove prototypes.
3389 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3390 (get_longjmp_target): Remove prototype.
3391 * i386-linux-tdep.h: New file.
3392 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3393 * i386-linux-tdep.c: Include "i386-tdep.h" and
3394 "i386-linux-tdep.h".
3395 (i386_linux_register_name, i386_linux_register_byte,
3396 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3397 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3399 (i386_linux_init_abi): New function.
3400 (_initialize_i386_linux_tdep): New function.
3402 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3403 (i386_saved_pc_after_call): Remove prototype.
3404 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3405 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3406 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3407 (i386_register_name, i386_stab_reg_to_regnum,
3408 i386_dwarf_reg_to_regnum): Remove prototypes.
3409 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3410 SIZEOF_SSE_REGS): Remove defines.
3411 (REGISTER_BYTES): Remove define.
3412 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3413 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3414 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3415 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3416 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3417 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3418 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3419 (get_longjmp_target): Remove prototype.
3420 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3421 (sigtramp_saved_pc): Remove define.
3422 (i386v4_sigtramp_saved_pc): Remove prototype.
3423 * config/i386/tm-go32.h (FRAME_CHAIN,
3424 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3425 (i386go32_frame_saved_pc): Remove prototype.
3426 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3427 (get_longjmp_target): Remove prototype.
3428 * i386-tdep.h: Include "osabi.h".
3429 (enum i386_abi): Removed.
3430 (enum struct_return): New enum.
3431 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3432 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3433 sc_pc_offset members.
3434 (i386_gdbarch_register_os_abi): Remove prototype.
3435 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3436 I386_SSE_NUM_REGS): New defines.
3437 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3438 I386_SSE_SIZEOF_REGS): New defines.
3439 (i386_register_name, i386_register_byte, i386_register_raw_size):
3441 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3442 (i386bsd_sigtramp_saved_pc): New prototype.
3443 * i386-tdep.c: Don't include "elf-bfd.h".
3444 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3445 i386_frame_chain, i386_saved_pc_after_call): Make static.
3446 (i386_frame_saved_pc): Rewrite to call architecture dependent
3447 function to deal with signal handlers. Make static.
3448 (i386go32_frame_saved_pc): Removed.
3449 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3451 (i386_get_longjmp_target): New function.
3452 (default_struct_convention, pcc_struct_convention,
3453 reg_struct_convention, valid_conventions, struct_convention): New
3455 (i386_use_struct_convention): New function.
3456 (i386v4_sigtramp_saved_pc): Renamed to
3457 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3458 (i386_pc_in_sigtramp): New function.
3459 (i386_abi_names): Removed.
3460 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3461 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3463 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3464 i386_gdbarch_register_os_abi): Removed.
3465 (struct i386_abi_handler): Removed.
3466 (i386_abi_handler_list): Removed.
3467 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3469 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3470 i386_nw_init_abi): New functions.
3471 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3472 Use set_gdbarch_xxx() calls instead of relying on macros for a
3474 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3475 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3476 Register the various architecture variants defined in this file.
3478 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3480 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3481 (struct main_type): Remove arg_types member. Update comments for
3483 (TYPE_ARG_TYPES): Remove.
3484 (TYPE_FN_FIELD_ARGS): Update.
3485 (smash_to_method_type): Update prototype.
3487 * c-typeprint.c (cp_type_print_method_args): Take method type
3488 instead of argument list. Use new argument layout. Simplify.
3489 (c_type_print_args): Use new argument layout. Simplify.
3490 (c_type_print_base): Update call to cp_type_print_method_args.
3491 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3492 argument; use die->type instead. Update call to
3493 smash_to_method_type.
3494 (read_structure_scope): Update call to dwarf2_add_member_fn.
3495 * gdbtypes.c (allocate_stub_method): Update comment.
3496 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3497 Use new argument layout.
3498 (check_stub_method): Use new argument layout. Don't count
3499 void as an argument.
3500 (print_arg_types): Update comments. Use new argument layout.
3501 (recursive_dump_type): Don't print arg_types member.
3502 * hpread.c (hpread_read_struct_type): Use new argument layout.
3503 (fixup_class_method_type): Likewise.
3504 (hpread_type_lookup): Likewise.
3505 * stabsread.c (read_type): Update calls to read_args and
3506 smash_to_method_type.
3507 (read_args): Use new argument layout. Simplify.
3508 * valops.c (typecmp): Use new argument layout. Update parameters
3509 and comments. Simplify.
3510 (hand_function_call): Use new argument layout.
3511 (search_struct_method): Update call to typecmp.
3512 (find_overload_match): Use new argument layout.
3514 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3516 * NEWS: Mention multithreaded debug support for gdbserver.
3518 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3520 * MAINTAINERS: Mention NEWS.
3522 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3524 * gdbserver/regcache.c: Add comment.
3526 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3528 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3529 (struct mips_objfile_private, compare_pdr_entries): New.
3530 (non_heuristic_proc_desc): Read the ".pdr" section if it
3533 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3535 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3536 (arm_debug): New static variable.
3537 (_initialize_arm_tdep): Add ``set debug arm'' command.
3539 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3541 * Makefile.in (sim_arm_h): Define.
3542 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3543 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3544 (arm_register_sim_regno): New function, map an internal REGNUM
3545 onto a simulator register number.
3546 (arm_gdbarch_init): Set register_sim_regno.
3548 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3550 * MAINTAINERS: Add self.
3552 2002-06-11 Jim Blandy <jimb@redhat.com>
3554 * source.c (source_info): Mention whether the symtab has
3555 information about preprocessor macros.
3557 Call the command `info macro', not `show macro'.
3558 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3560 (_initialize_macrocmd): Register `info_macro_command' in
3561 `infolist', not `showlist'.
3563 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3565 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3566 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3567 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3568 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3569 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3571 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3572 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3573 (_initialize_mips_tdep): Remove dead code.
3574 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3575 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3576 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3577 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3578 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3579 MIPS_LAST_FP_ARG_REGNUM): Remove.
3581 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3583 * gdbserver/thread-db.c: New file.
3584 * gdbserver/proc-service.c: New file.
3585 * gdbserver/acinclude.m4: New file.
3586 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3587 proc-service.o, and thread-db.o.
3588 (linux-low.o): Add USE_THREAD_DB.
3589 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3590 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3591 * gdbserver/aclocal.m4: Regenerated.
3592 * gdbserver/config.in: Regenerated.
3593 * gdbserver/configure: Regenerated.
3594 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3595 thread_db.h, and linux/elf.h headrs.
3596 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3597 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3598 Check for -lthread_db and thread support.
3599 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3600 PowerPC, and SuperH.
3601 * gdbserver/i387-fp.c: Constify arguments.
3602 * gdbserver/i387-fp.h: Likewise.
3603 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3604 `struct inferior_info'. Remove PID member. Use generic inferior
3605 list header. All uses updated.
3606 (inferiors, signal_pid): Removed.
3607 (all_threads): New variable.
3608 (get_thread): Define.
3609 (add_inferior_to_list): New function.
3610 (for_each_inferior): New function.
3611 (change_inferior_id): New function.
3612 (add_inferior): Removed.
3613 (remove_inferior): New function.
3614 (add_thread): New function.
3615 (free_one_thread): New function.
3616 (remove_thread): New function.
3617 (clear_inferiors): Use for_each_inferior and free_one_thread.
3618 (find_inferior): New function.
3619 (find_inferior_id): New function.
3620 (inferior_target_data): Update argument type.
3621 (set_inferior_target_data): Likewise.
3622 (inferior_regcache_data): Likewise.
3623 (set_inferior_regcache_data): Likewise.
3624 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3625 (all_processes, stopping_threads, using_thrads)
3626 (struct pending_signals, debug_threads, pid_of): New.
3627 (inferior_pid): Replace with macro.
3628 (struct inferior_linux_data): Remove.
3629 (get_stop_pc, add_process): New functions.
3630 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3631 Use add_process and add_thread.
3632 (linux_attach_lwp): New function, based on old linux_attach. Use
3633 add_process and add_thread. Set stop_expected for new threads.
3634 (linux_attach): New function.
3635 (linux_kill_one_process): New function.
3636 (linux_kill): Kill all LWPs.
3637 (linux_thread_alive): Use find_inferior_id.
3638 (check_removed_breakpoints, status_pending_p): New functions.
3639 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3640 Update. Use WNOHANG. Wait for cloned processes also. Update process
3641 struct for the found process.
3642 (linux_wait_for_event): New function.
3643 (linux_wait): Use it. Support LWPs.
3644 (send_sigstop, wait_for_sigstop, stop_all_processes)
3645 (linux_resume_one_process, linux_continue_one_process): New functions.
3646 (linux_resume): Support LWPs.
3647 (REGISTER_RAW_SIZE): Remove.
3648 (fetch_register): Use register_size instead. Call supply_register.
3649 (usr_store_inferior_registers): Likewise. Call collect_register.
3651 (regsets_fetch_inferior_registers): Improve error message.
3652 (regsets_store_inferior_registers): Add debugging.
3653 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3654 (unstopped_p, linux_signal_pid): New functions.
3655 (linux_target_ops): Add linux_signal_pid.
3656 (linux_init_signals): New function.
3657 (initialize_low): Call it. Initialize using_threads.
3658 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3660 (get_regcache): Fetch registers lazily. Add fetch argument
3661 and update all callers.
3662 (regcache_invalidate_one, regcache_invalidate): New
3664 (new_register_cache): Renamed from create_register_cache.
3665 Return the new regcache.
3666 (free_register_cache): Change argument to a void *.
3667 (registers_to_string, registers_from_string): Call get_regcache
3668 with fetch flag set.
3669 (register_data): Make static. Pass fetch flag to get_regcache.
3670 (supply_register): Call get_regcache with fetch flag clear.
3671 (collect_register): Call get_regcache with fetch flag set.
3672 (collect_register_as_string): New function.
3673 * gdbserver/regcache.h: Update.
3674 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3676 Handle input interrupts while waiting for an ACK.
3677 (input_interrupt): Use signal_pid method.
3678 (getpkt): Flush after debug output and use stderr.
3679 (outreg): Use collect_register_as_string.
3680 (new_thread_notify, dead_thread_notify): New functions.
3681 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3683 (look_up_one_symbol): Flush after debug output.
3684 * gdbserver/server.c (step_thread, server_waiting): New variables.
3685 (start_inferior): Don't use signal_pid. Update call to mywait.
3686 (attach_inferior): Update call to mywait.
3687 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3688 (main): Don't fetch/store registers explicitly. Use
3689 set_desired_inferior. Support proposed ``Hs'' packet. Update
3691 * gdbserver/server.h: Update.
3692 (struct inferior_list, struct_inferior_list_entry): New.
3693 * gdbserver/target.c (set_desired_inferior): New.
3694 (write_inferior_memory): Constify.
3695 (mywait): New function.
3696 * gdbserver/target.h: Update.
3697 (struct target_ops): New signal_pid method.
3698 (mywait): Removed macro, added prototype.
3700 * gdbserver/linux-low.h (regset_func): Removed.
3701 (regset_fill_func, regset_store_func): New.
3702 (enum regset_type): New.
3703 (struct regset_info): Add type field. Use new operation types.
3704 (struct linux_target_ops): stop_pc renamed to get_pc.
3705 Add decr_pc_after_break and breakpoint_at.
3706 (get_process, get_thread_proess, get_process_thread)
3707 (strut process_info, all_processes, linux_attach_lwp)
3708 (thread_db_init): New.
3710 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3711 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3712 (the_low_target): Add new members.
3713 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3714 (i386_store_fpxregset): Constify.
3715 (target_regsets): Add new kind identifier.
3716 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3717 (i386_set_pc): Add debugging.
3718 (i386_breakpoint_at): New function.
3719 (the_low_target): Add new members.
3720 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3721 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3722 (mips_breakpoint_at): New.
3723 (the_low_target): Add new members.
3724 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3725 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3726 (the_low_target): Add new members.
3727 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3728 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3729 (the_low_target): Add new members.
3730 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3733 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3735 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3736 (unwind_tmp_obstack_free, parse_frame_info)
3737 (update_context, cfi_read_fp, cfi_write_fp)
3738 (cfi_frame_chain, cfi_init_extra_frame_info)
3739 (cfi_virtual_frame_pointer): Use the above function.
3740 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3742 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3744 * v850-tdep.c (v850_type_is_scalar): New function.
3745 (v850_use_struct_convention): Match current gcc implementation
3746 as close as possible.
3747 (v850_push_arguments): Fix stack_offset handling. Don't write
3748 struct_addr into register. This is done by v850_store_struct_return.
3749 (v850_extract_return_value): Care for structs.
3750 (v850_store_return_value): Ditto.
3751 (v850_store_struct_return): Actually write address.
3753 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3755 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3756 without debug information too.
3758 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3760 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3761 Make multi-arch pure.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3763 * arm-tdep.c (arm_print_float_info): Update.
3764 * arch-utils.h (default_print_float_info): Update.
3765 * arch-utils.c (default_print_float_info): Update.
3766 * infcmd.c (float_info): Update call.
3768 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3770 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3771 the front of the initialize list.
3773 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3775 * infrun.c (struct inferior_status): Replace fields
3776 selected_frame_address and selected_level with field
3778 (save_inferior_status): Update. Use get_frame_id.
3779 (struct restore_selected_frame_args): Delete.
3780 (restore_selected_frame): Update. Use frame_find_by_id.
3781 (restore_inferior_status): Update.
3783 * breakpoint.h (struct breakpoint): Change type of
3784 watchpoint_frame to frame_id.
3785 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3786 call to get_current_frame.
3787 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3789 (watchpoint_check): Use frame_find_by_id.
3791 * frame.h (record_selected_frame): Delete declaration.
3792 * stack.c (record_selected_frame): Delete function.
3794 * frame.h (struct frame_id): Define.
3795 (get_frame_id): Declare.
3796 (frame_find_by_id): Declare.
3797 * frame.c (frame_find_by_id): New function.
3798 (get_frame_id): New function.
3800 2002-06-10 Andrey Volkov <avolkov@transas.com>
3802 * ser-e7kpc.c: Fix duplicated define and call of
3803 _initialize_ser_e7000pc
3805 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3807 * signals/signals.c (target_signal_from_host): Fix #ifdef
3809 (do_target_signal_to_host): Likewise.
3811 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3813 * mips-tdep.c (mips_find_abi_section): New function.
3814 (mips_gdbarch_init): Call it.
3816 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3818 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3819 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3820 after Andrew's 2002-06-08 gdbarch change.
3822 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3824 * i386-linux-nat.c (suppy_gregset): Don't supply
3825 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3827 (fill_gregset): Don't fetch it under the same circumstances.
3829 2002-06-09 Andrew Cagney <cagney@redhat.com>
3831 * Makefile.in (callback_h): Define.
3832 (remote_sim_h): Update path to remote-sim.h.
3833 (remote-rdp.o): Add $(callback_h).
3834 (remote-sim.o): Use $(callback_h).
3835 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3836 * remote-rdp.c: Include "gdb/callback.h".
3838 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3840 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3841 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3843 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3845 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3846 * rdi-share/serpardr.c: Ditto.
3847 * rdi-share/unixcomm.c: Ditto.
3848 * rdi-share/serdrv.c: Ditto.
3849 * rdi-share/hostchan.h: Ditto.
3850 * rdi-share/hostchan.c: Ditto.
3851 * rdi-share/host.h: Ditto.
3852 * rdi-share/devsw.c: Ditto.
3854 * objfiles.h: Change type of obj_private to void pointer.
3855 * pa64solib.c: Update copyright. Don't include "assert.h", use
3856 strcmp instead of STREQ, use LONGEST, do not use PTR
3857 * somsolib.c: Ditto.
3859 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3860 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3861 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3863 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3865 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3866 (default_get_saved_register): Delete function.
3867 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3868 generic_unwind_get_saved_register.
3869 * gdbarch.h, gdbarch.c: Re-generate.
3871 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3873 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3874 generic_func_frame_chain_valid.
3875 * gdbarch.h, gdbarch.c: Re-generate.
3876 * blockframe.c (generic_func_frame_chain_valid): Only check
3877 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3878 passing FP to PC_IN_CALL_DUMMY.
3881 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3883 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3884 (register_gdbarch_data): Initialize init_p.
3885 (gdbarch_data): Initialize data pointer using the init function.
3886 (init_gdbarch_data): Delete function.
3887 (gdbarch_update_p): Update.
3888 (initialize_non_multiarch): Update.
3889 (struct gdbarch): Add field initialized_p.
3890 * gdbarch.h, gdbarch.c: Re-generate.
3892 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3894 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3895 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3896 better do the things actually here.
3897 * x86-64-tdep.c (x86_64_register_name2nr): New.
3898 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3899 (x86_64_gdbarch_init): Respect the above change.
3900 * x86-64-tdep.h (x86_64_register_name2nr)
3901 (x86_64_register_nr2name): Add prototypes.
3902 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3904 2002-06-06 Michael Snyder <msnyder@redhat.com>
3906 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3907 Delete extra braces and re-indent.
3908 (d10v_store_return_value): Char return values
3909 must be shifted over by one byte in R0.
3910 (d10v_extract_return_value): Delete extra braces, re-indent.
3912 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3914 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3915 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3916 (d10v_integer_to_address): Rewrite.
3917 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3918 the d10v specific functions which take care of converting to the
3921 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3923 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3924 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3926 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3928 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3930 * config/tm-linux.h: Ditto.
3931 * config/alpha/tm-alphalinux.h: Ditto.
3932 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3933 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3934 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3935 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3936 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3937 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3938 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3939 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3940 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3941 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3942 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3943 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3944 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3945 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3946 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3947 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3948 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3949 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3950 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3951 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3952 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3953 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3954 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3955 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3956 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3957 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3958 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3959 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3960 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3961 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3962 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3963 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3964 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3965 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3966 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3967 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3968 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3970 2002-05-04 Aidan Skinner <aidan@velvet.net>
3972 * ada-exp.tab.c: New file
3973 * ada-exp.y: New file
3974 * ada-lang.c: New file
3975 * ada-lang.h: New file
3976 * ada-lex.c: New file
3977 * ada-lex.l: New file
3978 * ada-tasks.c: New file
3979 * ada-typeprint.c: New file
3980 * ada-valprint.c: New file
3982 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3984 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3985 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3987 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3989 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3990 insetead of ppc-linux-tdep.o.
3991 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3992 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3994 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3996 2002-05-07 Christian Groessler <chris@groessler.org>
3997 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3998 bit register contents for little endian hosts.
4000 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4002 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4005 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4007 * gdbarch.h: Regenerate.
4009 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4011 * MAINTAINERS: Add everyone to write-after-approval list.
4013 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4015 * stack.c (frame_info): Use frame_register_unwind instead of
4016 saved_regs. Mention when the SP is on the stack or in a register.
4018 * frame.h (frame_register_unwind_ftype): Define. Document.
4019 (struct frame_info): Add field register_unwind and
4020 register_unwind_cache.
4021 (frame_register_unwind): Declare.
4022 (generic_unwind_get_saved_register): Declare.
4024 * frame.c (frame_register_unwind): New function.
4025 (generic_unwind_get_saved_register): New function.
4027 * blockframe.c (generic_call_dummy_register_unwind): New function.
4028 (frame_saved_regs_register_unwind): New function.
4029 (set_unwind_by_pc): New function.
4030 (create_new_frame): New function.
4031 (get_prev_frame): New function.
4033 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4035 * a29k-share/: Delete directory.
4036 * remote-vx29k.c: Delete file.
4038 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4040 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4041 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4043 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4045 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4046 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4049 (sparcnbsd-tdep.o): New dependency lists.
4050 * NEWS: Note new UltraSPARC NetBSD native configuration.
4051 * configure.host (sparc64-*-netbsd*): New host.
4052 * configure.tgt (sparc-*-netbsdelf*)
4053 (sparc-*-netbsd*): Set gdb_target to nbsd.
4054 (sparc64-*-netbsd*): New target.
4055 * sparc64nbsd-nat.c: New file.
4056 * sparcnbsd-nat.c: New file.
4057 * sparcnbsd-tdep.c: New file.
4058 * sparcnbsd-tdep.h: New file.
4059 * config/sparc/nbsd.mt: New file.
4060 * config/sparc/nbsd64.mh: New file.
4061 * config/sparc/nbsd64.mt: New file.
4062 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4063 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4065 * config/sparc/nbsdaout.mt: Remove.
4066 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4067 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4069 * config/sparc/nbsdelf.mt: Remove.
4070 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4071 sparc-nat.c compatiblity defines.
4072 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4073 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4074 * config/sparc/tm-nbsd64.h: New file.
4075 * config/sparc/tm-nbsdaout.h: Remove.
4076 * config/sparc/xm-nbsd.h: Remove.
4078 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4080 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4081 * sparc-tdep.c: Include osabi.h.
4082 (gdbarch_tdep): Add osabi member.
4083 (_initialize_sparc_tdep): Use gdbarch_register.
4084 (sparc_gdbarch_init): Use generic OS ABI framework.
4085 (sparc_dump_tdep): New function.
4087 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4089 * corefile.c (do_captured_read_memory_integer): Return non-zero
4091 (safe_read_memory_integer): Copy result of memory read when
4092 status is non-zero. Also, add comments.
4094 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4096 * Makefile.in (ppc_tdep_h): Define.
4099 (rs6000-tdep.o): Use $(ppc_tdep_h).
4102 (ppcnbsd-tdep.o): New dependency lists.
4103 * ppc-tdep.h: Use generic OS ABI framework.
4104 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4105 (ppc_linux_init_abi): New functions.
4106 (ppc_sysv_abi_broken_use_struct_convention)
4107 (ppc_sysv_abi_use_struct_convention)
4108 (ppc_sysv_abi_push_arguments): Move to...
4109 * ppc-sysv-tdep.c: ...here.
4110 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4111 * rs6000-tdep.c (process_note_abi_tag_sections)
4112 (get_elfosabi): Remove.
4113 (rs6000_gdbarch_init): Use generic OS ABI framework.
4114 (rs6000_dump_tdep): New function.
4115 (_initialize_rs6000_tdep): Use gdbarch_register.
4116 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4117 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4118 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4119 of ppc-linux-tdep.o.
4120 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4121 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4122 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4123 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4124 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4125 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4127 2002-05-29 Jim Blandy <jimb@redhat.com>
4129 * macroscope.c (default_macro_scope): Put `void' in empty argument
4132 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4134 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4135 * arch-utils.c: Include "sim-regno.h".
4136 * gdbarch.sh: Don't include "sim-regno.h".
4137 * gdbarch.h, gdbarch.c: Regenerate.
4138 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4140 * arch-utils.h (legacy_register_sim_regno): To here.
4141 * remote-sim.c (legacy_register_sim_regno): Move function from
4143 * arch-utils.c (legacy_register_sim_regno): To here.
4145 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4147 * sim-regno.h: New file.
4148 * Makefile.in (sim_regno_h): Define.
4149 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4150 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4151 (legacy_register_sim_regno): New function.
4152 (one2one_register_sim_regno): New function.
4153 (gdbsim_fetch_register): Rewrite.
4154 (gdbsim_store_register): Only store a register when
4155 REGISTER_SIM_REGNO is valid.
4156 * d10v-tdep.c: Include "sim-regno.h".
4157 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4158 (d10v_ts3_register_sim_regno): Ditto.
4159 * gdbarch.sh: Include "sim-regno.h".
4160 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4161 * gdbarch.h, gdbarch.c: Regenerate.
4162 * arch-utils.h (default_register_sim_regno): Delete declaration.
4163 * arch-utils.c (default_register_sim_regno): Delete function.
4165 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4167 * ppcnbsd-nat.c: Rewrite.
4168 * ppcnbsd-tdep.c: New file.
4169 * ppcnbsd-tdep.h: New file.
4170 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4171 solib.o, and solib-svr4.o.
4172 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4173 nbsd-tdep.o, and corelow.o.
4175 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4177 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4178 `tr' and `sed'. Mention that `broken' targets are not expected to
4181 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4183 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4184 Let PC point right after the prologue before looking up symbols.
4186 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4188 * i386-tdep.c (i386_register_virtual_type): Return
4189 builtin_type_vec128i for SSE registers.
4191 * gdbtypes.h (builtin_type_vec128i): Declare.
4193 * gdbtypes.c (build_builtin_type_vec128i): New function.
4194 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4195 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4196 (build_gdbtypes): Initialize new builtin vector types.
4197 (_initialize_gdbtypes): Register new vector types with gdbarch.
4199 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4201 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4202 since it has been multi-arch'd.
4203 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4204 Move Alpha and VAX multi-arch news entries to same section
4205 as other multi-arch news.
4207 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4209 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4210 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4211 static. Rename some register numbers to put them in ns32k-tdep
4213 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4214 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4216 (_initialize_ns32k_tdep): Use gdbarch_register.
4217 * ns32k-tdep.h: New file.
4218 * ns32knbsd-tdep.c: New file.
4219 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4220 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4221 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4222 REGISTER_BYTES, REGISTER_BYTE): Remove.
4223 * config/ns32k/tm-ns32k.h: New file.
4224 * config/ns32k/tm-umax.h: Remove.
4226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4228 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4229 ns32k_store_struct_return, ns32k_extract_return_value,
4230 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4232 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4233 ns32k_saved_pc_after_call.
4234 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4235 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4236 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4237 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4238 ns32k_extract_struct_value_address.
4240 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4242 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4243 ns32k_fix_call_dummy): New.
4244 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4245 ns32k_call_dummy_words.
4246 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4247 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4248 CALL_DUMMY_NARGS): Remove.
4249 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4251 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4253 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4254 ns32k_frame_saved_pc, ns32k_frame_args_address,
4255 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4256 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4257 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4258 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4259 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4260 (BREAKPOINT): Remove..
4261 (FRAME_CHAIN): Define as ns32k_frame_chain.
4262 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4263 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4264 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4265 (FRAME_FIND_SAVED_REGS): Remove.
4266 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4267 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4268 (POP_FRAME): Define as ns32k_pop_frame.
4270 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4272 * ns32k-tdep.c (ns32k_register_byte_32082,
4273 ns32k_register_byte_32382, ns32k_register_raw_size,
4274 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4276 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4277 ns32k_register_byte_32382.
4278 * config/ns32k/tm-umax.h: Update copyright years.
4279 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4280 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4281 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4282 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4283 (ns32k_get_enter_addr): Fix prototype.
4285 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4287 * ns32k-tdep.c: Update copyright years.
4288 (ns32k_register_name_32082): New function.
4289 (ns32k_register_name_32382): Ditto.
4290 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4291 (REGISTER_NAME): Define as ns32k_register_name_32382.
4292 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4293 (REGISTER_NAME): Define as ns32k_register_name_32082.
4295 2002-05-24 Jim Blandy <jimb@redhat.com>
4297 * dwarf2read.c (free_line_header): Use xfree, not free.
4299 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4301 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4302 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4304 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4306 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4308 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4310 From Ross Alexander at NEC Europe:
4311 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4313 2002-05-23 Michael Snyder <msnyder@redhat.com>
4315 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4316 for input, rather than parse_and_eval_address.
4318 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4320 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4321 * Makefile.in (sim_d10v_h): Update definition.
4323 2002-05-24 Andrew Cagney <cagney@redhat.com>
4325 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4326 change `2002-05-22 Michael Snyder' below.
4327 (d10v_push_arguments): Ditto.
4328 (d10v_extract_return_value): Ditto.
4330 2002-05-23 Jim Blandy <jimb@redhat.com>
4332 * macrotab.c (check_for_redefinition): Don't complain if the new
4333 definition is the same as the previous one. Take more arguments
4334 to allow the comparison.
4335 (macro_define_object, macro_define_function): Pass more arguments
4336 to check_for_redefinition.
4338 2002-05-22 Michael Snyder <msnyder@redhat.com>
4340 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4341 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4342 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4343 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4344 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4345 Add a temp variable to save a call (and a memory read).
4346 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4347 if possible (so that PC_IN_CALL_DUMMY will work).
4349 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4351 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4353 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4355 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4357 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4358 (dwarf2_build_frame_info): Add offset to fde->initial_location
4359 so that frames of shared libraries are mapped correctly.
4360 (execute_stack_op): Change type of 'result' from ULONGEST to
4363 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4365 * config/alpha/tm-nbsd.h: Include solib.h.
4367 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4369 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4370 assumptions about the host's byte order.
4372 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4374 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4376 * alphanbsd-tdep.c: Include solib-svr4.h.
4377 * shnbsd-tdep.c: Ditto.
4379 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4381 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4382 nbsd-tdep.h to dependency list.
4383 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4384 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4385 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4386 nbsdaout.mh and nbsdelf.mh consistently.
4387 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4388 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4389 nbsdaout.mt and nbsdelf.mh consistently.
4390 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4391 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4392 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4393 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4394 a.out shared library stuff from here...
4395 * config/nm-nbsdaout.h: ...to here.
4396 * config/tm-nbsd.h: Remove.
4397 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4398 * config/arm/nbsd.mh: Remove.
4399 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4401 * config/arm/nbsdaout.mh: New file.
4402 * config/arm/nbsdelf.mh: New file.
4403 * config/arm/nm-nbsdaout.h: New file.
4404 * config/i386/nbsd.mh: Remove.
4405 * config/i386/nbsd.mt: Remove.
4406 * config/i386/nbsdaout.mh: New file.
4407 * config/i386/nbsdaout.mt: New file.
4408 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4409 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4410 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4411 i386_register_u_addr): Remove.
4412 * config/i386/nm-nbsdaout.h: New file.
4413 * config/i386/nm-nbsdelf.h: Remove.
4414 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4415 (USE_STRUCT_CONVENTION): Remove.
4416 * config/i386/tm-nbsdaout.h: New file.
4417 * config/i386/tm-nbsdelf.h: Remove.
4418 * config/m68k/nbsd.mh: Remove.
4419 * config/m68k/nbsd.mt: Remove.
4420 * config/m68k/nbsdaout.mh: New file.
4421 * config/m68k/nbsdaout.mt: New file.
4422 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4423 * config/m68k/nm-nbsdaout.h: New file.
4424 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4425 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4426 * config/ns32k/nbsd.mh: Remove.
4427 * config/ns32k/nbsd.mt: Remove.
4428 * config/ns32k/nbsdaout.mh: New file.
4429 * config/ns32k/nbsdaout.mt: New file.
4430 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4431 * config/ns32k/nm-nbsdaout.h: New file.
4432 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4433 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4434 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4435 (SVR4_SHARED_LIBS): Remove.
4436 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4437 * config/sparc/nbsd.mh: Remove.
4438 * config/sparc/nbsd.mt: Remove.
4439 * config/sparc/nbsdaout.mh: New file.
4440 * config/sparc/nbsdaout.mt: New file.
4441 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4442 * config/sparc/nbsdelf.mt: New file.
4443 * config/sparc/nm-nbsdaout.h: New file.
4444 * config/sparc/nm-nbsdelf.h: Remove.
4445 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4446 * config/sparc/tm-nbsdaout.h: New file.
4448 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4450 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4452 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4454 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4456 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4458 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4460 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4462 * NEWS: Note new MIPS NetBSD native configuration.
4463 * configure.host (mips*-*-netbsd*): New host.
4464 * configure.tgt (mips*-*-netbsd*): New target.
4465 * mipsnbsd-nat.c: New file.
4466 * mipsnbsd-tdep.c: New file.
4467 * mipsnbsd-tdep.h: New file.
4468 * config/mips/nbsd.mh: New file.
4469 * config/mips/nbsd.mt: New file.
4470 * config/mips/nm-nbsd.h: New file.
4471 * config/mips/tm-nbsd.h: New file.
4473 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4475 * Makefile.in (SFILES): Add osabi.c.
4476 (COMMON_OBS): Add osabi.o.
4477 (osabi.o): New dependency list.
4478 * osabi.c: New file.
4479 * osabi.h: New file.
4480 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4482 * Makefile.in (alpha_tdep_h): Define and use instead of
4484 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4485 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4487 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4488 * alpha-tdep.h: Include osabi.h.
4489 (alpha_abi): Remove.
4490 (gdbarch_tdep): Use generic OS ABI framework.
4491 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4492 gdbarch_register_osabi.
4493 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4494 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4495 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4497 * Makefile.in (sh_tdep_h): Add osabi.h.
4498 * sh-tdep.h (sh_osabi): Remove.
4499 (gdbarch_tdep): Use generic OS ABI framework.
4500 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4501 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4502 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4503 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4505 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4506 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4507 gdbarch_register_osabi.
4508 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4509 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4510 (get_elfosabi): Rename to...
4511 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4512 ABI framework support routines.
4513 (arm_gdbarch_init): Use generic OS ABI framework.
4514 (arm_dump_tdep): Likewise.
4515 (_initialize_arm_tdep): Likewise.
4516 * arm-tdep.h: Include osabi.h.
4518 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4520 (arm_gdbarch_register_os_abi): Remove prototype.
4521 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4522 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4524 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4525 * mips-tdep.c: Include osabi.h.
4526 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4529 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4531 * h8300-tdep.c: Fix formatting.
4533 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4535 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4536 printing vector registers.
4538 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4540 From Fernando Nasser:
4541 * remote.c (remote_async_open_1): Re-throw the exception when the
4543 (remote_cisco_open): Ditto.
4544 (remote_open_1): Ditto.
4546 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4548 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4549 (remote_start_remote): Add uiout parameter. Pass through to
4550 remote_start_remote_dummy.
4551 (remote_open_1): Use catch_exception instead of catch_errors.
4552 (remote_async_open_1): Ditto.
4553 (remote_cisco_open): Ditto.
4555 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4557 * remote.c (remote_start_remote): Replace PTR with void pointer.
4558 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4561 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4563 * gdb_indent.sh: Allow the script to be run in the sim directory.
4565 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4567 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4568 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4570 * corelow.c (core_open): Only call set_gdbarch_from_file if
4573 2002-05-17 Andrey Volkov <avolkov@transas.com>
4575 * h8300-tdep.c: Add support of EXR register
4576 * config/h8300/tm-h8300.h: Ditto.
4578 2002-05-17 Andrey Volkov <avolkov@transas.com>
4580 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4582 2002-05-17 Andrey Volkov <avolkov@transas.com>
4584 * h8300-tdep.c: Change literal regnums to REGNO.
4586 2002-05-17 Jim Blandy <jimb@redhat.com>
4588 * NEWS: Note addition of macro support.
4590 Expand preprocessor macros in C expressions.
4591 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4592 (scan_macro_expansion, scanning_macro_expansion,
4593 finished_macro_expansion): New function declarations.
4594 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4595 variable declarations.
4596 * parser-defs.h (expression_context_pc): New declaration.
4597 * parse.c (expression_context_pc): New variable.
4598 (parse_exp_1): Set expression_context_pc, as well as
4599 expression_context_block.
4600 * c-exp.y (yylex): If we're not already reading the result of a
4601 macro expansion, try to macro-expand the next token. When we're
4602 done scanning a macro expansion, switch back to the mainline text.
4603 Commas and `if's in a macro's expansion don't terminate the input.
4604 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4605 (macro_original_text, macro_expanded_text,
4606 expression_macro_lookup_func, expression_macro_lookup_baton): New
4608 (scan_macro_expansion, scanning_macro_expansion,
4609 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4610 c_preprocess_and_parse): New functions.
4611 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4612 c_preprocess_and_parse, instead of c_parse.
4613 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4614 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4616 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4618 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4619 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4620 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4622 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4624 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4626 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4628 * Makefile.in (sh_tdep_h): Define and use.
4629 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4630 register enum): Move to...
4631 * * sh-tdep.h: ...here.
4632 * sh-tdep.c: Include sh-tdep.h.
4633 * sh3-rom.c: Likewise.
4634 * shnbsd-tdep.c: Likewise.
4636 2002-05-16 Michael Snyder <msnyder@redhat.com>
4638 * arm-tdep.c: Spelling fix in comment.
4640 2002-05-16 Jim Blandy <jimb@redhat.com>
4642 Add commands for manually expanding macros and showing their
4644 * macrocmd.c, macroscope.c, macroscope.h: New files.
4645 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4646 (macroscope_h): New variable.
4647 (HFILES_NO_SRCDIR): Add macroscope.h.
4648 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4649 (macroscope.o, macrocmd.o): New rules.
4651 Teach the Dwarf 2 reader to read macro information.
4652 * dwarf2read.c: #include "macrotab.h".
4653 (dwarf_macinfo_buffer): New variable.
4654 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4656 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4657 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4658 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4659 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4660 dwarf2_macro_spaces_in_definition): New complaints.
4661 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4662 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4663 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4664 the partial symbol table.
4665 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4666 from what's recorded in the partial symbol table.
4667 (read_file_scope): If the compilation unit has a
4668 `DW_AT_macro_info' attribute, read its macro information.
4669 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4671 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4674 * ser-tcp.c: Don't include <netinet/udp.h>.
4676 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4678 * MAINTAINERS: Update my email address.
4680 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4682 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4683 include file of the same name.
4685 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4687 * configure.tgt: Mark v850 as multi-arched.
4688 * config/v850/tm-v850.h: Remove file.
4689 * config/v850/v850.mt: Eliminate TM_FILE.
4691 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4693 * v850-tdep.c: Full multi-arch.
4694 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4695 Define GDB_MULTI_ARCH to 2.
4697 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4699 * p-exp.y (current_type): New static variable.
4700 Carries the type of the expression at the position that is parsed.
4701 (push_current_type, pop_current_type): Two new functions. Used
4702 to store/restore current_type in expression on specific tokens.
4703 (search_field): New static variable. Set to one after parsing a point
4704 as at that point only a FIELDNAME token should be searched.
4705 (FIELDNAME): New token. After a point only a token belonging to
4706 current_type type definition is allowed.
4707 (all over token rules): reset and change current_type according
4709 (exp '[' rule): insert implicit array index field if
4710 exp is a pascal string type.
4712 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4714 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4715 frame info. Use frame_info's saved_regs instead of matching member
4716 in extra_frame_info throughout.
4717 (v850_frame_init_saved_regs): New function.
4718 (v850_init_extra_frame_info): Move most functionality into
4719 v850_frame_init_saved_regs().
4720 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4721 (v850_frame_find_saved_regs): Remove declaration.
4722 (FRAME_FIND_SAVED_REGS): Remove definition.
4723 (v850_frame_init_saved_regs): Add declaration.
4724 (FRAME_INIT_SAVED_REGS): Add definition.
4726 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4728 * v850-tdep.c: Begin multi-arch'ing v850.
4729 (v850_target_architecture_hook): Remove function.
4730 (v850_gdbarch_init): New function. Add code previously in
4731 v850_target_architecture_hook().
4732 (_initialize_v850_tdep): Don't set target_architecture_hook.
4733 Call register_gdbarch_init() instead.
4735 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4737 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4738 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4739 (fixup_class_method_type): Likewise.
4741 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4743 From Martin Pool <mbp@samba.org>:
4744 * gdbserver/server.c (gdbserver_usage): New function.
4747 2002-05-15 Jim Blandy <jimb@redhat.com>
4749 Add macro structures to GDB's symbol tables. Nobody puts anything
4751 * symtab.h (struct symtab): New member: `macro_table'.
4752 * buildsym.h (pending_macros): New global variable.
4753 * buildsym.c: #include "macrotab.h".
4754 (buildsym_init): Initialize `pending_macros'.
4755 (end_symtab): If we found macro information while reading a CU's
4756 debugging info, do build a symtab structure for it. Make the
4757 symtab point to the macro information, and clear the
4758 `pending_macros' pointer which held it while we were reading the
4760 (really_free_pendings): Free any pending macro table.
4761 * objfiles.h (struct objfile): New member: `macro_cache'.
4762 * objfiles.c (allocate_objfile): Set allocate and free functions
4763 for the macro cache's objstack.
4764 (free_objfile): Empty the macro cache's obstack.
4765 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4766 set new allocate and free functions for it.
4767 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4768 free functions for the macro cache's objstack. (Why is this
4769 function building its own objfile?)
4770 * symmisc.c (print_objfile_statistics): Print statistics on the
4772 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4774 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4776 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4777 (REGISTER_U_ADDR): Delete definition.
4778 (arm_register_u_addr): Delete declaration.
4780 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4782 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4783 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4785 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4787 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4790 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4792 * regcache.c (register_valid): Revise comments refering to "Not
4793 available" and "unavailable".
4794 * frame.c (frame_register_read): Ditto.
4795 * findvar.c (value_of_register): Ditto.
4797 2002-05-15 Andrew Cagney <cagney@redhat.com>
4799 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4800 (remote-sim.o): Update dependencies.
4801 (d10v-tdep.o): Specify dependencies.
4802 (sim_d10v_h): Define.
4804 2002-05-14 Jim Blandy <jimb@redhat.com>
4806 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4807 * macrotab.c (macro_lookup_inclusion, find_definition,
4808 new_macro_table): Same.
4810 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4811 not `! strcmp ()'. This is a dubious improvement.
4812 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4814 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4815 although it's not necessary, to avoid a warning.
4817 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4819 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4820 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4821 TYPE_INSTANCE_FLAGS.
4822 (struct main_type): New.
4823 (struct type): Move most members to struct main_type. Change
4824 cv_type and as_type to new type_chain member. Add instance_flags.
4825 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4826 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4827 (finish_cv_type): Remove prototype.
4828 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4830 (alloc_type_instance): New function.
4831 (smash_type): New function.
4832 (make_pointer_type, make_reference_type, make_function_type)
4833 (smash_to_member_type, smash_to_method_type): Call smash_type.
4834 (make_qualified_type): New function.
4835 (make_type_with_address_space): Call make_qualified_type.
4836 (make_cv_type): Likewise.
4837 (finish_cv_type): Remove unnecessary function.
4838 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4839 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4840 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4841 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4842 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4843 * hpread.c (hpread_read_struct_type): Likewise.
4844 * stabsread.c (read_struct_type): Likewise.
4846 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4848 * configure.tgt: Add a catch all sh* target, for cases like
4849 sh[2,3,4]-elf and sh-hms.
4851 2002-05-14 Keith Seitz <keiths@redhat.com>
4853 * event-loop.c (create_file_handler): Don't do anything but
4854 update data when we are given a fd which we are already
4857 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4859 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4860 (update_context): Use __func__ in warnings.
4862 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4864 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4865 and tcp_close to net_open and net_close.
4866 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4867 using UDP if requested. Don't try to disable Nagle on UDP
4869 * remote.c (remote_serial_open): New function. Warn about UDP.
4870 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4872 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4874 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4876 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4878 * configure.tgt: Remove sh-hms target.
4879 * MAINTAINERS: Don't list sh-hms as a separate target.
4881 2002-05-13 Jim Blandy <jimb@redhat.com>
4883 Add first preprocessor macro-expansion files.
4884 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4885 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4886 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4887 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4888 (COMMON_OBS): Add macrotab.o, macroexp.o.
4889 (macroexp.o, macrotab.o): New rules.
4891 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4893 * config/m88k/tm-m88k.h: Update copyright.
4894 (m88k_target_write_pc): Declare
4895 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4896 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4897 (SHIFT_INST_REGS): Update definition.
4898 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4899 using old definition of TARGET_WRITE_PC.
4900 * regcache.c (generic_target_write_pc): Delete code handling
4902 * gdbarch.sh (NNPC_REGNUM): Delete.
4903 * gdbarch.h, gdbarch.c: Regenerate.
4905 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4907 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4910 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4912 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4913 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4914 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4916 * c-typeprint.c (cp_type_print_method_args): Likewise.
4917 (c_type_print_args): Likewise.
4918 * d10v-tdep.c (d10v_push_arguments): Likewise.
4919 (d10v_extract_return_value): Likewise.
4920 * expprint.c (print_subexp): Likewise.
4921 * gdbtypes.c (lookup_primitive_typename): Likewise.
4922 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4923 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4924 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4925 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4926 (TYPE_VECTOR): Likewise.
4927 * hpread.c (hpread_read_struct_type)
4928 (fix_static_member_physnames, fixup_class_method_type)
4929 (hpread_type_lookup): Likewise.
4930 * mdebugread.c (parse_symbol, parse_type): Likewise.
4931 * p-lang.c (is_pascal_string_type): Likewise.
4932 * valops.c (hand_function_call): Likewise.
4933 * x86-64-tdep.c (classify_argument): Likewise.
4935 * hpread.c (hpread_read_function_type)
4936 (hpread_read_doc_function_type): Call replace_type.
4937 * dstread.c (create_new_type): Delete.
4938 (decode_dst_structure, process_dst_function): Call alloc_type.
4939 Use type access macros.
4941 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4943 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4944 the're not supported by the current architecture.
4945 (i387_fill_fxsave): Likewise.
4947 2002-05-12 Fred Fish <fnf@redhat.com>
4949 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4950 sect_index_xxx members to index the first slot in section_offsets
4951 if all of the section_offsets are zero.
4953 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4955 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4956 checked in with last change.
4958 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4960 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4961 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4964 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4966 * Makefile.in: Update dependencies.
4968 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4970 * language.c (local_hex_string_custom): Simplify. Do not depend
4971 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4973 * memattr.c (mem_info_command): Replace calls to
4974 longest_local_hex_string and longest_local_hex_string_custom.
4975 * buildsym.c (make_blockvector): Ditto.
4976 * solib.c (info_sharedlibrary_command): Ditto.
4977 * tracepoint.c (tracepoints_info): Ditto.
4978 * symtab.c (print_msymbol_info): Ditto.
4980 * language.c (local_hex_string): Delete.
4981 (local_hex_string_custom): Delete.
4982 (longest_local_hex_string): Rename to local_hex_string.
4983 (longest_local_hex_string_custom): Rename to
4984 local_hex_string_custom.
4985 * language.h (local_hex_string): Change parameter type to LONGEST.
4986 (local_hex_string_custom): Ditto.
4987 (longest_local_hex_string): Delete declaration.
4988 (longest_local_hex_string_custom): Ditto.
4990 * solib.c: Update copyright.
4991 * memattr.c: Update copyright.
4993 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4995 * arch-utils.h (legacy_register_to_value): Declare.
4996 (legacy_value_to_register): Declare.
4997 (legacy_convert_register_p): Declare.
4998 * arch-utils.c (legacy_register_to_value): New function.
4999 (legacy_value_to_register): New function.
5000 (legacy_convert_register_p): New function.
5002 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5003 (VALUE_TO_REGISTER): Define.
5004 (CONVERT_REGISTER_P): Define.
5005 * gdbarch.h, gdbarch.c: Regenerate.
5007 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5009 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5012 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5013 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5015 * Makefile.in: Update dependencies for valops.c.
5016 * valops.c: Include "gdb_assert.h".
5017 (typecmp): Skip THIS parameter to methods.
5018 (find_method_list): Remove static_memfuncp argument,
5019 update callers. Check for stub methods.
5020 (find_value_oload_method_list): Don't set *static_memfuncp.
5021 (find_overload_match): Don't check for stub methods. Assert
5022 that methods are not stubbed. Handle static methods.
5023 (value_find_oload_method_list): Remove static_memfuncp argument.
5024 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5025 to the argument list for static stub methods.
5026 * value.h (value_find_oload_method_list): Update prototype.
5028 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5030 * arch-utils.h (generic_register_size): Declare.
5031 (generic_register_raw_size, generic_register_virtual_size): Delete
5033 * arch-utils.c (generic_register_raw_size): Delete.
5034 (generic_register_size): New function.
5035 (generic_register_virtual_size): Delete.
5037 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5038 default generic_register_size.
5039 * gdbarch.h, gdbarch.c: Re-generate.
5041 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5042 register_virtual_size.
5043 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5046 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5048 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5049 * gdbarch.h, gdbarch.c: Regenerate.
5050 * gnu-v3-abi.c: Update copyright.
5051 (vtable_address_point_offset): Update.
5052 (gnuv3_rtti_type): Update.
5053 (gnuv3_baseclass_offset): Update.
5054 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5055 (init_fetch_link_map_offsets): Update.
5056 * remote.c (get_remote_state): Update.
5058 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5060 * TODO: Remove value_headof/value_from_vtable_info comment.
5061 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5062 * values.c (value_headof, value_from_vtable_info): Delete.
5063 * value.h (value_from_vtable_info): Delete prototype.
5065 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5067 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5068 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5070 (gdb_assert_h): Define.
5071 (gdb_wait_h): Define.
5072 (gdb_regex_h): Define.
5074 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5076 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5077 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5079 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5081 * nbsd-tdep.c: Fix comment.
5083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5085 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5086 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5087 (nbsd-tdep.o): New dependency list.
5088 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5090 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5091 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5092 * nbsd-tdep.c: New file.
5093 * nbsd-tdep.h: New file.
5094 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5096 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5097 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5098 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5099 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5101 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5103 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5104 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5105 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5106 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5107 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5108 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5110 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5112 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5113 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5114 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5115 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5116 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5117 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5118 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5120 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5122 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5123 fetch_elfcore_registers to...
5124 * i386nbsd-tdep.c: ...here.
5125 (i386nbsd_use_struct_convention): Rename to...
5126 (i386nbsd_aout_use_struct_convention): ...this.
5127 (i386nbsd_supply_reg): New function.
5128 (i386nbsd_fill_reg): New function.
5129 (fetch_core_registers): Use i386nbsd_supply_reg.
5130 (fetch_elfcore_registers): Likewise.
5131 (_initialize_i386nbsd_tdep): New function.
5132 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5133 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5134 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5135 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5136 (i386nbsd_aout_use_struct_convention): ...this.
5138 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5140 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5141 (store_inferior_registers): Use shnbsd_fill_reg.
5142 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5143 sh_nbsd_supply_register): Collapse into...
5144 (shnbsd_supply_reg): ...this.
5145 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5146 (shnbsd_fill_reg): ...this.
5147 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5148 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5149 (fetch_core_registers): Use shnbsd_supply_reg.
5150 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5151 (sh_nbsd_core_fns): Rename to...
5152 (shnbsd_core_fns): ...this.
5153 (sh_nbsd_elfcore_fns): Rename to...
5154 (shnbsd_elfcore_fns): ...this.
5155 (sh_nbsd_init_abi): Rename to...
5156 (shnbsd_init_abi): ...this.
5157 (_initialize_sh_nbsd_tdep): Rename to...
5158 (_initialize_shnbsd_tdep): ...this.
5159 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5160 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5161 sh_nbsd_fill_register): Remove prototypes.
5162 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5164 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5166 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5167 (i387-nat.o): Delete dependency list.
5168 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5169 (x86-64-linux-nat.o): Likewise.
5170 * i387-nat.c: Delete file, moving contents to...
5171 * i387-tdep.c: ...here.
5172 * i387-nat.h: Rename...
5173 * i387-tdep.h: ...to this.
5174 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5175 * i386-linux-nat.c: Likewise.
5176 * i386bsd-nat.c: Likewise.
5177 * i386gnu-nat.c: Likewise.
5178 * i386nbsd-nat.c: Likewise.
5179 * i386v4-nat.c: Likewise.
5180 * x86-64-linux-nat.c: Likewise.
5181 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5182 * config/i386/go32.mh (NATDEPFILES): Likewise.
5183 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5184 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5185 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5186 * config/i386/linux.mh (NATDEPFILES): Likewise.
5187 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5188 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5189 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5190 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5192 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5194 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5195 (alphanbsd-nat.o): Remove dependency list.
5196 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5197 * alphanbsd-nat.c: Delete. Contents moved to...
5198 * alphanbsd-tdep.c: ...here.
5199 (_initialize_alphanbsd_tdep): Register core functions.
5200 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5202 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5204 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5205 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5206 (alphanbsd-nat.o): Likewise.
5207 (alphabsd-tdep.o): New dependency list.
5208 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5209 (fill_gregset): Use alphabsd_fill_reg.
5210 (supply_fpregset): Use alphabsd_supply_fpreg.
5211 (fill_fpregset): Use alphabsd_fill_fpreg.
5212 (fetch_inferior_registers): Use struct reg and struct fpreg
5213 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5214 and alphabsd_supply_fpreg.
5215 (store_inferior_registers): Use struct reg and struct fpreg
5216 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5217 and alphabsd_fill_fpreg.
5218 * alphabsd-tdep.c: New file.
5219 * alphabsd-tdep.h: New file.
5220 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5221 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5222 alphabsd_supply_fpreg.
5223 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5224 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5226 2002-05-11 Eric Christopher <echristo@redhat.com>
5228 * mips-tdep.c (mips_double_register_type): Fix thinko.
5229 (mips_single_register_type): Ditto.
5230 * MAINTAINERS: Add self.
5232 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5234 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5235 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5236 right thing on architectures with different endianness and/or
5239 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5241 From Christian Limpach <chris@Pin.LU>
5242 * configure.in: Change sed expression which comments out
5243 NATDEPFILES to also comment out continuation lines.
5244 * configure: Regenerate.
5246 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5248 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5251 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5253 * sh-tdep.c: Include correct file.
5255 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5257 New support for sh64-elf (sh5) target.
5259 * configure.tgt: For sh64-elf target, default to sh-elf.
5261 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5262 (struct gdbarch_tdep): Add new fields for new registers and ABI
5265 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5266 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5267 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5268 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5269 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5270 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5271 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5272 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5273 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5274 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5275 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5276 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5277 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5278 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5279 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5280 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5281 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5282 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5283 sign_extend, sh64_nofp_frame_init_saved_regs,
5284 sh64_init_extra_frame_info, sh64_get_saved_register,
5285 sh64_extract_struct_value_address, sh64_pop_frame,
5286 sh64_push_arguments, sh64_extract_return_value,
5287 sh64_store_return_value, sh64_show_media_regs,
5288 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5289 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5290 sh_sh64_register_virtual_type,
5291 sh_sh64_register_convert_to_virtual,
5292 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5293 sh64_register_read, sh64_pseudo_register_write,
5294 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5295 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5296 sh64_do_pseudo_register, sh_compact_do_registers_info,
5297 sh64_do_registers_info, sh_gdbarch_init): New functions.
5299 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5301 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5303 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5305 * linespec.c (decode_line_1): Check for a double quote after
5306 a filename correctly.
5308 2002-05-10 Jim Blandy <jimb@redhat.com>
5310 Properly track the size of the current objfile's .debug_line section.
5311 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5312 (DWARF_LINE_SIZE): New macro.
5313 (dwarf2_build_psymtabs_hard): Record the line section's size in
5314 the partial symbol table.
5315 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5318 2002-05-10 Petr Sorfa <petrs@caldera.com>
5320 * ia64-tdep.c: Handle breakpoints on L instruction type
5321 in MLX instruction bundle by moving the breakpoint to
5322 the third slot (X instruction type) as L holds only data.
5324 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5326 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5327 (process_one_symbol): Complain about discarding local symbols
5328 due to a misplaced N_LBRAC entry.
5330 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5332 From Daniel Berlin <dan@cgsoftware.com>
5333 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5334 decrease the depth we are at, in the case of templates.
5336 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5338 * mips-tdep.c (mips_float_register_type): New function.
5339 (mips_double_register_type): New function.
5340 (mips_print_register): Use them.
5341 (do_fp_register_row): Likewise.
5343 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5345 * signals/signals.c (signals): Remove conditional compilation around
5346 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5347 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5349 2002-05-09 Michael Snyder <msnyder@redhat.com>
5351 * remote-rdp.c (remote_rdp_can_run): Remove.
5353 2002-05-09 Tom Tromey <tromey@redhat.com>
5355 * jv-valprint.c (java_val_print): Handle `char' as a special case
5358 2002-05-09 Michael Snyder <msnyder@redhat.com>
5360 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5361 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5362 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5363 str r(0123),[sp,#nn].
5364 (arm_skip_prologue): Ditto. Also make disassembly
5365 order-independent by placing it in a loop.
5367 2002-05-06 Michael Snyder <msnyder@redhat.com>
5369 * stabsread.c (read_type): Add recognition for new attribute:
5370 "@V;" means that an array type is actually a vector.
5371 This is analogous to the vector flag that's been added to dwarf2.
5373 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5375 * i386-tdep.h (i386_abi): New enum.
5376 (struct gdbarch_tdep): Replace os_ident member with abi.
5377 (i386_gdbarch_register_os_abi): New prototype.
5378 * i386-tdep.c (i386_abi_names): New array.
5379 (process_note_abi_tag_sections): Removed.
5380 (process_note_sections): New function.
5381 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5382 (struct i386_abi_handler): New struct.
5383 (i386_abi_handler_list): New variable.
5384 (i386_gdbarch_register_os_abi): New function.
5385 (i386_gdbarch_init): Adapt for the changes given above.
5387 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5389 * gregset.h: Say "GNU/Linux".
5391 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5393 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5394 (build_gdbtypes): Build builtin_type_v2_float.
5395 (_initialize_gdbtypes): Register new builtin type.
5397 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5399 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5400 (clear_gdbarch_swap): New function.
5401 (initialize_non_multiarch): Call.
5402 (gdbarch_update_p): Before calling init(), swap out and clear the
5403 existing architecture.
5404 * gdbarch.c: Regenerate.
5406 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5408 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5411 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5413 * sh-nbsd-nat.c: Rename to...
5414 * shnbsd-nat.c: ...this.
5415 * sh-nbsd-tdep.c: Rename to...
5416 * shnbsd-tdep.c: ...this.
5417 * sh-nbsd-tdep.h: Rename to...
5418 * shnbsd-tdep.h: ...this.
5419 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5420 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5422 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5424 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5425 concatenation for command help messages.
5427 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5429 * NEWS: Note new sh*-*-netbsdelf* configuration.
5430 * configure.host: Set gdb_host_cpu to sh for all sh*.
5431 (sh*-*-netbsdelf*): New host.
5432 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5433 (sh*-*-netbsdelf*): New target.
5434 * sh-nbsd-nat.c: New file.
5435 * sh-nbsd-tdep.c: New file.
5436 * sh-nbsd-tdep.h: New file.
5437 * config/sh/nbsd.mh: New file.
5438 * config/sh/nbsd.mt: New file.
5439 * config/sh/nm-nbsd.h: New file.
5440 * config/sh/tm-nbsd.h: New file.
5442 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5444 * sh-tdep.c (sh_osabi_names): Declare.
5445 (process_note_abi_tag_sections): New function.
5446 (get_elfosabi): Ditto.
5447 (sh_gdbarch_register_os_abi): Ditto.
5448 (sh_dump_tdep): Ditto.
5449 _initialize_sh_tdep): Use gdbarch_register to register
5450 sh_gdbarch_init and sh_dump_tdep.
5451 * config/sh/tm-sh.h (sh_osabi): Declare.
5452 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5454 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5456 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5457 (thumb_scan_prologue): Ditto.
5458 (arm_find_callers_reg): Ditto.
5459 (arm_frame_chain): Ditto.
5460 (arm_init_extra_frame_info): Ditto.
5461 (arm_frame_saved_pc): Ditto.
5462 (arm_pop_frame): Ditto.
5463 (arm_push_return_address): New function.
5464 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5465 call_dummy_location, call_dummy_breakpoint_offset_p,
5466 call_dummy_breakpoint_offset, call_dummy_p,
5467 call_dummy_stack_adjust_p, call_dummy_words,
5468 sizeof_call_dummy_words, call_dummy_start_offset,
5469 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5470 call_dummy_address, push_return_address and push_dummy_frame for
5471 generic dummy frames.
5473 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5475 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5476 size computation for alloca.
5477 (sh_fp_frame_init_saved_regs): Likewise.
5479 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5481 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5482 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5483 * arm-tdep.c (arm_store_return_value): Use them.
5484 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5485 * remote-rdp.c (remote_rdp_fetch_register): Use
5486 ARM_MAX_REGISTER_RAW_SIZE.
5487 (remote_rdp_store_register): Likewise.
5489 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5491 * dwarf2cfi.c: Code cleanup, removed unused variables,
5492 added default labels to switch {} statements.
5493 * x86-64-tdep.c: Ditto.
5494 * x86-64-linux-nat.c: Ditto.
5496 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5498 * solib.h: Protect against multiple inclusion.
5500 2002-05-06 Jim Blandy <jimb@redhat.com>
5502 Add first preprocessor macro-expansion files.
5503 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5504 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5505 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5506 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5507 (COMMON_OBS): Add macrotab.o, macroexp.o.
5508 (macroexp.o, macrotab.o): New rules.
5510 Separate the job of reading the line number info statement program
5511 header (...expialidocious) out into its own function.
5512 * dwarf2read.c (struct line_head, struct filenames, struct
5513 directories): Replace with...
5514 (struct line_header): New structure, containing the full
5515 contents of the statement program header, including the
5516 include directory and file name tables.
5517 (read_file_scope): If we have line number info, instead of just
5518 calling dwarf_decode_lines to do all the work, call
5519 dwarf_decode_line_header first to get a `struct line_header'
5520 containing the data in the statement program header, and then
5521 pass that to dwarf_decode_lines, which will pick up where that
5522 left off. Be sure to clean up the `struct line_header' object.
5523 (dwarf_decode_line_header, free_line_header, add_include_dir,
5524 add_file_name): New functions.
5525 (dwarf_decode_lines): Move all the code to read the statement
5526 program header into dwarf_decode_line_header. Take the line
5527 header it built as the first argument, instead of the offset to
5528 the compilation unit's line number info. Use the new `struct
5529 line_header' type instead of the old structures. No need to do
5530 cleanups here now, since we don't allocate anything.
5531 (dwarf2_statement_list_fits_in_line_number_section,
5532 dwarf2_line_header_too_long): New complaints.
5534 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5536 * gdbtypes.c (init_vector_type): New function.
5537 (build_builtin_type_vec128): Simplify the representation of SIMD
5539 (build_gdbtypes): Initialize new builtin vector types.
5540 (_initialize_gdbtypes): Register new vector types with gdbarch.
5541 (builtin_type_v4_float, builtin_type_v4_int32,
5542 builtin_type_v8_int16, builtin_type_v16_int8,
5543 builtin_type_v2_int32, builtin_type_v4_int16,
5544 builtin_type_v8_int8): New (renamed) SIMD types.
5546 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5548 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5549 (i387_fill_fxsave): Likewise.
5551 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5553 * alpha-tdep.c (alpha_extract_return_value): Don't use
5554 non-constant array size in prototype.
5556 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5558 From Brian Taylor <briant at model dot com>:
5559 * ui-out.c (ui_out_field_core_addr): Use the function
5560 longest_local_hex_string_custom'to format addresses > 32 bits
5563 * ui-out.c (ui_out_field_core_addr): Update comment.
5565 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5567 * stack.c (select_and_print_frame): Make static. Delete the
5569 (func_command): Update call.
5570 (select_frame_command): Delete code computing the frame level.
5571 * frame.h (select_and_print_frame): Delete declaration.
5573 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5575 * sparc-tdep.c (sparc_get_saved_register): Comment why
5576 get_prev_frame call is safe.
5578 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5580 * frame.h (select_frame): Delete level parameter.
5581 * stack.c (select_frame): Update. Use frame_relative_level to
5582 obtain the frame's level.
5583 (select_and_print_frame): Update call.
5584 (select_frame_command): Ditto.
5585 (up_silently_base): Ditto.
5586 (down_silently_base): Ditto.
5587 * ocd.c (ocd_start_remote): Ditto.
5588 * remote-rdp.c (remote_rdp_open): Ditto.
5589 * remote-mips.c (mips_initialize): Ditto.
5590 (common_open): Ditto.
5591 * remote-e7000.c (e7000_start_remote): Ditto.
5592 * m3-nat.c (select_thread): Ditto.
5593 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5594 (child_get_current_exception_event): Ditto.
5595 * varobj.c (varobj_create): Ditto.
5596 (varobj_update): Ditto.
5597 (c_value_of_root): Ditto.
5598 * tracepoint.c (finish_tfind_command): Ditto.
5599 * corelow.c (core_open): Ditto.
5600 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5601 * thread.c (info_threads_command): Ditto.
5602 (switch_to_thread): Ditto.
5603 * infrun.c (normal_stop): Ditto.
5604 (restore_selected_frame): Ditto.
5605 (restore_inferior_status): Ditto.
5606 * breakpoint.c (insert_breakpoints): Ditto.
5607 (watchpoint_check): Ditto.
5608 (bpstat_stop_status): Ditto.
5609 (do_enable_breakpoint): Ditto.
5610 * blockframe.c (flush_cached_frames): Ditto.
5611 (reinit_frame_cache): Ditto.
5613 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5615 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5618 2002-05-04 Jim Blandy <jimb@redhat.com>
5620 * gdbtypes.c (replace_type): Doc fix.
5622 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5624 * valprint.c (strcat_longest): Delete commented out function.
5627 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5629 * MAINTAINERS: Mark a29k as deleted.
5630 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5631 Move new configurations to the top.
5632 * configure.tgt: Remove a29k.
5633 * config/a29k/tm-vx29k.h: Delete.
5634 * config/a29k/vx29k.mt: Delete.
5635 * config/a29k/tm-a29k.h: Delete.
5636 * config/a29k/a29k-udi.mt: Delete.
5637 * config/a29k/a29k.mt: Delete.
5638 * a29k-tdep.c: Delete.
5639 * remote-udi.c: Delete.
5640 * remote-mm.c: Delete.
5641 * remote-eb.c: Delete.
5642 * remote-adapt.c: Delete.
5643 * Makefile.in: Remove obsolete code.
5644 * gdbserver/Makefile.in: Ditto.
5645 * config/s390/s390x.mt: Ditto.
5646 * config/s390/s390.mt: Ditto.
5647 * config/sparc/sparclynx.mh: Ditto.
5648 * config/sparc/linux.mh: Ditto.
5649 * config/pa/hppaosf.mh: Ditto.
5650 * config/pa/hppabsd.mh: Ditto.
5651 * config/ns32k/nbsd.mt: Ditto.
5652 * config/mips/vr5000.mt: Ditto.
5653 * config/m68k/sun3os4.mh: Ditto.
5654 * config/m68k/nbsd.mt: Ditto.
5655 * config/m68k/m68klynx.mh: Ditto.
5656 * config/m32r/m32r.mt: Ditto.
5657 * config/i386/x86-64linux.mt: Ditto.
5658 * config/i386/nbsdelf.mt: Ditto.
5659 * config/i386/nbsd.mt: Ditto.
5660 * config/i386/i386lynx.mh: Ditto.
5662 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5664 * target.c (debug_print_register): New function. Handle oversize
5666 (debug_to_fetch_registers): Call.
5667 (debug_to_store_registers): Call.
5669 2002-05-03 Jim Blandy <jimb@redhat.com>
5671 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5672 (read_type): Doc fix.
5673 * gdbtypes.c (replace_type): Doc fix.
5675 * stabsread.c (multiply_defined_struct): New complaint.
5676 (read_struct_type): If the type we were passed isn't empty, or
5677 incomplete, don't read the new struct type into it; complain,
5678 and return the original type unchanged. Take a new `type_code'
5679 argument, which is the type code for the new type.
5680 (read_type): Rather than storing the type's type code here, pass
5681 it as an argument to read_struct_type, and let that take care of
5682 storing it. That way, we don't overwrite the original type code,
5683 so read_struct_type can use it to decide whether we're overwriting
5684 something we shouldn't.
5685 (complain_about_struct_wipeout): New function.
5687 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5689 * gdbarch.sh: Assert that gdbarch is non-NULL.
5690 * gdbarch.c: Regenerate.
5692 2002-05-03 Jason Merrill <jason@redhat.com>
5694 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5697 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5699 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5700 (x86_64_dwarf2gdb_regno_map_length),
5701 (x86_64_dwarf2_reg_to_regnum): Added.
5702 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5703 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5704 (_initialize_x86_64_tdep): Synced with the change above.
5705 (x86_64_skip_prologue): Reformulated message.
5707 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5709 * f-exp.y: Also use new prev_lexptr variable
5710 to improve error reporting. Based on Michael Snyder
5711 2002-04-24 dated patch to c-exp.y.
5712 * jv-exp.y: Likewise.
5713 * m2-exp.y: Likewise.
5715 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5717 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5718 we are dealing with vectors.
5720 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5722 * config/m68k/tm-nbsd.h: Obvious fix,
5723 correct machine name.
5725 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5727 * p-typeprint.c (pascal_type_print_base): Add support
5728 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5730 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5732 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5733 for fondamental pascal 'char' type.
5735 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5737 * p-lang.h (is_pascal_string_type): Declaration changed,
5738 new sixth argument of type char ** added.
5739 * p-lang.c (is_pascal_string_type): Implementation
5740 changed. Args length_pos, length_size, string_pos, char_size
5741 can now be NULL. New argument arrayname set to the field
5742 name of the char array. Return value set to char array
5743 field index plus one.
5744 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5745 is_pascal_string_type function.
5747 2002-05-02 Andrew Cagney <cagney@redhat.com>
5749 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5750 <cagney@redhat.com> change.
5751 * gdbarch.c: Regenerate.
5753 2002-05-02 Andrew Cagney <cagney@redhat.com>
5755 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5756 before probing for a new one. Detect errorenous gdbarch_init
5758 * gdbarch.c: Regenerate.
5760 2002-05-01 Andrew Cagney <cagney@redhat.com>
5762 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5763 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5764 * config/v850/tm-v850.h: Ditto. Update copyright.
5766 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5768 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5771 2002-04-30 Michael Snyder <msnyder@redhat.com>
5773 * arm-tdep.c: Whitespace clean-ups.
5774 (arm_skip_prologue): Fix thinko; two lines
5775 should have been removed as part of 4/24 change.
5777 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5779 * rs6000-tdep.c: Added comment describing how fpscr register
5780 numbers were chosen.
5782 2002-04-30 Michael Snyder <msnyder@redhat.com>
5784 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5786 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5788 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5789 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5790 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5792 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5794 From Louis Hamilton <hamilton@redhat.com>:
5795 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5796 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5797 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5798 not bfd-private xcoff data, to determine wordsize.
5799 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5801 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5803 GDB 5.2 released from 5.2 branch.
5805 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5807 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5808 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5809 (x86_64_register_info_table): Added comments with register numbers.
5811 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5813 * rs6000-tdep.c (rs6000_extract_return_value,
5814 rs6000_store_return_value): Handle returning vectors.
5815 (rs6000_gdbarch_init): Use
5816 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5817 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5819 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5821 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5822 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5824 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5826 * hpread.c (hpread_psymtab_to_symtab_1,
5827 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5828 with fprintf_unfiltered (gdb_stderr,...).
5830 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5832 * remote-array.c (printf_monitor, write_monitor,
5833 array_insert_breakpoint, array_remove_breakpoint ):
5834 Replace fprintf (stderr,...
5835 with fprintf_unfiltered (gdb_stderr,....
5836 * remote-es.c: Likewise.
5837 * remote-os9k.c: Likewise.
5838 * remote-st.c: Likewise.
5840 2002-04-28 Andreas Schwab <schwab@suse.de>
5842 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5843 linux-proc.o and gcore.o.
5845 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5847 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5848 code without frame pointers.
5850 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5852 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5855 2002-04-26 Ben Elliston <bje@redhat.com>
5857 * target.c (do_xfer_memory): Correct reference to the new option
5858 "trust-readonly-sections".
5860 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5862 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5863 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5864 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5866 (read_array_type): Record the fact that this array type is really a
5867 vector (i.e. are passed in by value).
5869 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5871 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5872 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5873 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5874 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5875 * alpha-linux-tdep.c: Include frame.h.
5876 (alpha_linux_sigcontext_addr): New function.
5877 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5878 alpha_linux_sigcontext_addr.
5879 * alpha-osf1-tdep.c: Include gdbcore.h.
5880 (alpha_osf1_sigcontext_addr): New function.
5881 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5882 alpha_osf1_sigcontext_addr.
5883 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5884 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5886 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5888 * stack.c (selected_frame_level):
5889 (select_frame): Do not set selected_frame_level.
5890 * frame.h (selected_frame_level): Delete declaration.
5892 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5894 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5895 convert_from_func_ptr-addr when AIX / PowerOpen.
5897 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5899 * valops.c (hand_function_call): Call
5900 generic_save_call_dummy_addr.
5901 * frame.h (generic_save_call_dummy_addr): Declare.
5902 * blockframe.c (struct dummy_frame): Add fields call_lo and
5904 (generic_find_dummy_frame): Check for PC in range call_lo to
5905 call_hi instead of entry_point_address.
5906 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5907 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5908 (generic_save_call_dummy_addr): New function.
5910 2002-04-24 David S. Miller <davem@redhat.com>
5912 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5913 sparc_skip_prologue.
5914 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5915 information to find prologue when possible.
5916 (sparc_prologue_frameless_p): Call examine_prologue directly.
5917 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5918 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5920 (SKIP_PROLOGUE): Likewise.
5922 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5924 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5925 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5926 indicate that the condition it was testing is always true.
5927 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5928 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5929 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5931 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5933 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5934 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5935 tdep->jb_pc and tdep->jb_elt_size.
5936 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5937 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5938 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5939 * alpha-nat.c (get_longjmp_target): Remove.
5940 (JB_ELEMENT_SIZE): Ditto.
5942 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5943 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5944 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5945 to alpha_get_longjmp_target.
5946 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5947 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5948 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5950 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5952 * README: Update to GDB 5.2.
5954 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5956 * gdbarch.sh (LC_ALL): Set to `c'.
5958 2002-04-25 Theodore A. Roth <troth@verinet.com>
5960 * avr-tdep.c: Ran through gdb_indent.sh.
5962 2002-04-25 Theodore A. Roth <troth@verinet.com>
5964 * MAINTAINERS: Add myself as AVR maintainer.
5965 * NEWS: Note new target avr.
5967 2002-04-25 Theodore A. Roth <troth@verinet.com>
5969 * Makefile.in: Add support for AVR target.
5970 * configure.tgt: Add support for AVR target.
5971 * avr-tdep.c: New file
5972 * config/avr/avr.mt: New file.
5974 2002-04-25 Theodore A. Roth <troth@verinet.com>
5976 * MAINTAINERS: Add myself to write-after-approval.
5978 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5980 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5981 with fprintf_unfiltered (gdb_stderr,....
5983 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5986 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5988 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5990 * p-exp.y: Also use new prev_lexptr variable
5991 to improve error reporting. Based on Michael Snyder
5992 2002-04-24 dated patch to c-exp.y.
5994 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5996 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5997 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5998 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6000 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6002 (FUNCTION_START_OFFSET): Remove.
6003 (BREAKPOINT): Ditto.
6005 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6007 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6010 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6012 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6013 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6014 alpha_linux_pc_in_sigtramp.
6015 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6016 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6017 alpha_osf1_pc_in_sigtramp.
6018 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6019 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6020 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6021 alphafbsd_pc_in_sigtramp.
6022 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6023 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6024 alphanbsd_pc_in_sigtramp.
6025 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6026 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6028 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6030 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6032 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6034 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6036 (alphanbsd-nat.o): New dependency list.
6037 (alphanbsd-tdep.o): Ditto.
6038 * NEWS: Note new native NetBSD/alpha configuration.
6039 * alphanbsd-nat.c: New file.
6040 * alphanbsd-tdep.c: Ditto.
6041 * configure.host (alpha*-*-netbsd*): New host.
6042 * configure.tgt (alpha*-*-netbsd*): New target.
6043 * config/alpha/nbsd.mh: New file.
6044 * config/alpha/nbsd.mt: Ditto.
6045 * config/alpha/nm-nbsd.h: Ditto.
6046 * config/alpha/tm-nbsd.h: Ditto.
6048 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6050 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6051 (alpha-osf1-tdep.o): New dependency list.
6052 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6053 and skip_sigtramp_frame members.
6054 * alpha-linux-tdep.c: Include gdbcore.h.
6055 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6056 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6057 * alpha-osf1-tdep.c: New file.
6058 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6060 (alpha_frame_past_sigtramp_frame): New function.
6061 (alpha_dynamic_sigtramp_offset): Ditto.
6062 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6063 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6064 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6065 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6066 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6067 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6068 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6069 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6070 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6071 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6072 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6073 to find_solib_trampoline_target.
6074 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6075 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6076 (SKIP_TRAMPOLINE_CODE): Remove.
6077 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6078 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6079 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6080 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6081 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6082 (PROC_SIGTRAMP_MAGIC): Ditto.
6083 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6084 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6085 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6086 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6087 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6089 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6091 * NEWS: Note that Alpha targets are now multi-arch.
6093 2002-04-24 Michael Snyder <msnyder@redhat.com>
6095 * parser-defs.h (prev_lexptr): New external variable.
6096 * parse.c (parse_exp_1): Set prev_lexptr to null before
6097 calling the language-specific parser.
6098 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6099 (yyerror): Use prev_lexptr in error reporting.
6101 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6103 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6104 * gregset.h: If FILL_FPXREGSET is defined, provide
6105 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6106 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6107 is defined, call fill_fpxregset.
6109 2002-04-24 Roland McGrath <roland@frob.com>
6111 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6112 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6113 (supply_gregset, supply_fpregset): New functions.
6115 * gnu-nat.c (gnu_find_memory_regions): New function.
6116 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6117 (gnu_xfer_memory): Add a cast.
6119 2002-04-24 Michael Snyder <msnyder@redhat.com>
6121 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6122 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6123 of argument regs ("str r(0123), [r11, #-nn"]).
6124 (arm_skip_prologue): Better handling for frameless functions.
6125 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6126 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6128 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6130 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6131 NUM_PSEUDO_REGS can be used.
6133 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6135 * arch-utils.h: Update copyright.
6137 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6138 * gdbarch.h, gdbarch.c: Re-generate.
6140 * inferior.h (IN_SIGTRAMP): Delete definition.
6141 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6142 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6144 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6145 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6146 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6147 (find_proc_framesize): Ditto.
6148 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6149 (alpha_init_extra_frame_info): Ditto.
6150 * infrun.c (handle_inferior_event): Ditto.
6151 (handle_inferior_event): Ditto.
6152 (check_sigtramp2): Ditto.
6153 * blockframe.c (create_new_frame): Ditto.
6154 (get_prev_frame): Ditto.
6155 * ppc-linux-tdep.c: Update comments.
6156 * i386-linux-tdep.c: Update comments.
6157 * breakpoint.c (bpstat_what): Update comment.
6159 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6161 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6162 (regsets_store_inferior_registers): Removed cast to int from
6164 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6166 2002-04-24 David S. Miller <davem@redhat.com>
6168 * i960-tdep.c (register_in_window_p): New function.
6169 (i960_find_saved_register): Use it instead of
6170 REGISTER_IN_WINDOW_P.
6171 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6173 * symtab.h (find_stab_function_addr): Kill extern.
6174 * minsyms.c (find_stab_function_addr): Remove from here...
6175 * dbxread.c: ... to here, and mark it static.
6177 2002-04-20 David S. Miller <davem@redhat.com>
6179 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6180 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6182 2002-04-21 David S. Miller <davem@redhat.com>
6184 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6185 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6186 (vx_write_register): Likewise.
6188 2002-04-23 J. Brobecker <brobecker@gnat.com>
6190 * source.c (is_regular_file): New function.
6191 (openp): Check wether file to open is a regular file
6192 to avoid opening directories.
6194 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6196 * findvar.c (extract_signed_integer): Cast printf argument
6197 to suppress format warning.
6198 (extract_unsigned_integer): Likewise.
6199 * infcmd.c (registers_info): Likewise.
6200 * top.c (get_prompt_1): Likewise.
6201 * valops.c (value_assign): Likewise.
6202 * valprint.c (print_decimal): Likewise.
6204 2002-04-22 H.J. Lu (hjl@gnu.org)
6206 * c-exp.y (typebase): Support
6208 [long|long long|short] [signed|unsigned] [int|]
6212 signed [long|long long|short] int
6214 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6216 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6218 * vax-tdep.h: New file.
6219 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6220 Make several routines static.
6221 (vax_get_saved_register): New function.
6222 (vax_gdbarch_init): New function.
6223 (_initialize_vax_tdep): Register vax_gdbarch_init.
6224 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6225 Remove macros now under the control of gdbarch.
6227 2002-04-22 Michael Snyder <msnyder@redhat.com>
6229 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6230 Some whitespace and coding standards tweaks.
6232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6234 * vax-tdep.c: Include regcache.h.
6235 (vax_call_dummy_words): New.
6236 (sizeof_vax_call_dummy_words): New.
6237 (vax_fix_call_dummy): New function.
6238 (vax_saved_pc_after_call): Ditto.
6239 * config/vax/tm-vax.h: Don't include regcache.h.
6240 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6241 (CALL_DUMMY): Remove.
6242 (CALL_DUMMY_WORDS): Define.
6243 (SIZEOF_CALL_DUMMY_WORDS): Define.
6244 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6246 2002-04-18 Michael Snyder <msnyder@redhat.com>
6248 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6250 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6252 * vax-tdep.c (vax_frame_chain): New function.
6253 (vax_push_dummy_frame): Ditto.
6254 (vax_pop_frame): Ditto.
6255 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6256 (FRAMELESS_FUNCTION_INVOCATION): Use
6257 generic_frameless_function_invocation_not.
6258 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6259 (POP_FRAME): Use vax_pop_frame.
6261 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6263 * vax-tdep.c (vax_store_struct_return): New function.
6264 (vax_extract_return_value): Ditto.
6265 (vax_store_return_value): Ditto.
6266 (vax_extract_struct_value_address): Ditto.
6267 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6268 vax_store_struct_return.
6269 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6270 (STORE_RETURN_VALUE): Use vax_store_return_value.
6271 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6273 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6275 * vax-tdep.c (vax_frame_saved_pc): New function.
6276 (vax_frame_args_address_correct): Ditto.
6277 (vax_frame_args_address): Ditto.
6278 (vax_frame_locals_address): Ditto.
6279 (vax_frame_num_args): Move code to be in proximity to
6280 other frame-related functions.
6281 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6282 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6283 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6284 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6285 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6287 2002-04-22 H.J. Lu (hjl@gnu.org)
6289 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6292 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6294 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6295 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6296 (FRAME_INIT_SAVED_REGS): New macro.
6298 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6300 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6302 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6304 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6306 (fetch_osf_core_registers): Likewise.
6307 (supply_gregset): Likewise.
6309 2002-04-22 J. Brobecker <brobecker@gnat.com>
6311 * symfile.h (get_section_index): Define.
6312 * symfile.c (get_section_index): New function.
6313 * mdebugread.c (SC_IS_SBSS): New macro.
6314 (SC_IS_BSS): Return true for the scBss storage class only, as
6315 the scSBss storage class refers to the .sbss section.
6316 (parse_partial_symbols): Discard the symbols which associated
6317 section does not exist.
6318 Make sure to use the .sbss section index for symbols which
6319 storage class is scBss, rather than using the .bss section index.
6321 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6323 * vax-tdep.c: Update copyright years.
6324 (vax_register_name): New function.
6325 (vax_register_byte): Ditto.
6326 (vax_register_raw_size): Ditto.
6327 (vax_register_virtual_size): Ditto.
6328 (vax_register_virtual_type): Ditto.
6329 * config/vax/tm-vax.h: Update copyright years.
6330 (REGISTER_NAMES): Remove.
6331 (REGISTER_NAME): Define.
6332 (REGISTER_BYTE): Use vax_register_byte.
6333 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6334 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6335 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6337 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6339 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6341 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6343 2002-04-21 David S. Miller <davem@redhat.com>
6345 * arch-utils.c (generic_prologue_frameless_p): Kill
6346 SKIP_PROLOGUE_FRAMELESS_P code.
6347 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6349 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6350 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6351 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6353 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6354 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6355 (sparc_gdbarch_init): Pass it to
6356 set_gdbarch_prologue_frameless_p.
6358 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6360 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6361 (alphabsd-nat.o): New dependency list.
6363 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6365 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6367 (alpha-linux-tdep.o): New dependency list.
6368 (alphafbsd-tdep.o): Likewise.
6370 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6372 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6374 * alpha-tdep.c: ...from here.
6375 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6377 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6379 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6380 prototype from here...
6381 * alpha-tdep.h: ...to here.
6383 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6385 * frame.h (selected_frame_level): Document as deprecated.
6386 (frame_relative_level): Declare.
6387 * stack.c (frame_relative_level): New function.
6388 (selected_frame_level): Document as deprecated.
6389 (select_frame): Do not set the selected_frame_level.
6391 * stack.c (frame_info, record_selected_frame): Update.
6392 (frame_command, current_frame_command): Update.
6393 (up_silently_base, up_command, down_silently_base): Update.
6394 (down_command): Update.
6395 * inflow.c (kill_command): Update.
6396 * tracepoint.c (finish_tfind_command): Update.
6397 * corelow.c (core_open): Update.
6398 * thread.c (info_threads_command): Update.
6399 (do_captured_thread_select): Update.
6400 * infcmd.c (finish_command): Update.
6401 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6403 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6405 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6407 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6409 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6412 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6414 * alphafbsd-tdep.c: Update copyright years. Include
6416 (alphafbsd_use_struct_convention): Make static.
6417 (alphafbsd_init_abi): New function.
6418 (_initialize_alphafbsd_tdep): New function.
6419 * config/alpha/tm-fbsd.h: Update copyright years.
6420 (USE_STRUCT_CONVENTION): Remove.
6422 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6424 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6425 an Alpha ABI variant.
6426 (alpha_abi_handler_list): Declare.
6427 (alpha_gdbarch_register_os_abi): New function.
6428 (alpha_gdbarch_init): Give registered ABI variant handlers a
6429 chance to tweak the gdbarch once we have set up defaults.
6430 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6432 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6434 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6435 to standard_coerce_float_to_double.
6436 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6438 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6440 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6441 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6442 from gdbarch_tdep rather than a constant.
6443 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6444 the default text address for all Alpha Unix ABIs.
6445 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6446 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6448 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6450 * alpha-tdep.h: New file. Includes several Alpha target constants
6452 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6453 let gdbarch deal with.
6454 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6455 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6457 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6458 Alpha target register names.
6459 * alphabsd-nat.c: Likewise.
6460 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6461 Alpha target register names. Make serveral routines static.
6462 (alpha_get_saved_register): New function.
6463 (alpha_abi_names): New.
6464 (process_note_abi_tag_sections): New function.
6465 (get_elfosabi): New function.
6466 (alpha_gdbarch_init): New function.
6467 (alpha_dump_tdep): New function.
6468 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6470 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6472 * frame.c (find_saved_register): Delete #ifdef
6473 HAVE_REGISTER_WINDOWS code.
6474 * config/sparc/tm-sparc.h: Update comments.
6475 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6477 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6479 * i960-tdep.c (i960_find_saved_register): New function.
6480 (i960_get_saved_register): New function.
6481 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6482 (i960_get_saved_register): Declare.
6483 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6485 2002-04-20 David S. Miller <davem@redhat.com>
6487 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6489 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6491 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6492 instead of NUM_PSEUDO_REGS.
6494 2002-04-20 David S. Miller <davem@redhat.com>
6496 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6497 GDB_MULTI_ARCH_PARTIAL
6498 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6499 define, let tm-sp64.h do it.
6501 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6503 * frame.c (find_saved_register): Avoid a NULL pointer
6504 dereference and actually walk the frame list.
6506 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6508 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6509 sorted in most most-recent-used order. Document.
6510 * gdbarch.h, gdbarch.c: Regenerate.
6512 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6514 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6515 (add_inferior): Call create_register_cache.
6516 (clear_inferiors): Call free_register_cache.
6517 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6518 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6519 (registers): Remove.
6520 (get_regcache): New function.
6521 (create_register_cache, free_register_cache): New functions.
6522 (set_register_cache): Don't initialize the register cache here.
6523 (registers_to_string, registers_from_string, register_data): Call
6525 * gdbserver/regcache.h: Add prototypes.
6526 * gdbserver/server.h: Likewise.
6528 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6530 * gdbserver/mem-break.c: New file.
6531 * gdbserver/mem-break.h: New file.
6532 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6534 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6536 (clear_inferiors): Free target_data member if set.
6537 (inferior_target_data, set_inferior_target_data): New functions.
6538 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6539 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6540 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6541 (struct inferior_linux_data): New.
6542 (linux_create_inferior): Use set_inferior_target_data.
6543 (linux_attach): Likewise. Call add_inferior.
6544 (linux_wait_for_one_inferior): New function.
6545 (linux_wait): Call it.
6546 (linux_write_memory): Add const.
6547 (initialize_low): Call set_breakpoint_data.
6548 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6550 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6552 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6554 * gdbserver/target.c (read_inferior_memory)
6555 (write_inferior_memory): New functions.
6556 * gdbserver/target.h (read_inferior_memory)
6557 (write_inferior_memory): Change macros to prototypes.
6558 (struct target_ops): Update comments. Add const to write_memory
6561 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6563 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6565 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6566 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6567 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6570 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6573 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6574 (build_builtin_type_vec128): Ditto.
6575 (append_composite_type_field): Fix calculation of type length in
6578 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6580 * config/djgpp/README: Update.
6582 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6585 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6587 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6588 (alpha_setup_arbitrary_frame): ...to this.
6589 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6590 for alpha_setup_arbitrary_frame.
6592 2002-04-18 Andrew Cagney <cagney@redhat.com>
6594 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6595 * gdbarch.h, gdbarch.c: Regenerate.
6597 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6598 * target.h (memory_breakpoint_from_pc): Update declaration.
6599 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6601 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6602 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6603 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6604 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6605 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6606 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6607 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6608 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6609 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6610 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6611 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6612 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6614 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6616 * monitor.c (monitor_insert_breakpoint): Ditto.
6617 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6619 * config/mcore/tm-mcore.h: Update copyright.
6620 * mem-break.c: Ditto.
6621 * xstormy16-tdep.c: Ditto.
6623 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6625 * p-exp.y: Add precedence rule for '^' token.
6626 This removes the shift/reduce conflicts.
6627 Remove the comment concerning these shift/reduce conflicts.
6629 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6631 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6632 (registers_powerpc_nofp): New register set for processors
6633 without floating point unit.
6635 2002-04-18 David S. Miller <davem@redhat.com>
6637 * MAINTAINERS: Add myself to write-after-approval.
6639 2002-04-17 Michael Snyder <msnyder@redhat.com>
6641 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6643 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6645 * rs6000-tdep.c (frame_initial_stack_address): Use
6646 frame_register_read to read the alloca_reg.
6648 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6650 * frame.c (find_saved_register): Find saved registers in the next
6654 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6656 * gdbarch.sh (LANG): Set to ``c''.
6658 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6660 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6662 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6664 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6667 * hpread.c (hpread_get_lntt): Add declaration.
6668 Also fix PR gdb/391.
6670 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6672 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6673 * aclocal.m4, configure: Re-generate.
6676 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6678 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6679 instead of tm_print_insn.
6681 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6683 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6685 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6687 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6688 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6689 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6691 2002-04-12 Don Howard <dhoward@redhat.com>
6693 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6694 max_user_call_depth.
6695 (init_cmd_lists): Initialize the new value;
6696 * cli/cli-script.c (execute_user_command): Limit the call depth of
6697 user defined commands. This avoids a core-dump when user commands
6698 are infinitly recursive.
6700 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6702 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6703 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6704 from tdep struct instead of DEFAULT_LR_SAVE.
6705 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6706 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6707 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6709 2002-04-12 Michael Snyder <msnyder@redhat.com>
6711 * Remote.c: Spelling fix.
6712 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6713 If no symbol found for "sbrk", try "_sbrk".
6714 (make_output_phdrs): Use bfd_section_name.
6715 (gcore_copy_callback): Use bfd_section_name.
6716 * eval.c: Indentation fix-ups.
6717 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6718 in case it gets applied to an address that is already
6719 in the instruction space.
6720 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6721 * symfile.c: Fix indentation, long lines.
6722 * source.c: White space fix-up.
6724 2002-04-12 Andrew Cagney <cagney@redhat.com>
6726 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6727 * frame.c (frame_register_read): New function. Return non-zero on
6729 (read_relative_register_raw_bytes_for_frame): Delete.
6730 (read_relative_register_raw_bytes): Delete.
6731 * frame.h (frame_register_read): Declare.
6732 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6734 * infcmd.c (do_registers_info): Ditto.
6735 * hppa-tdep.c: Ditto.
6736 * rs6000-tdep.c: Ditto.
6737 * h8500-tdep.c: Ditto.
6738 * mips-tdep.c: Ditto.
6739 * h8300-tdep.c: Ditto.
6740 * z8k-tdep.c: Ditto.
6742 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6744 From Jimi X <jimix@watson.ibm.com>:
6745 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6748 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6750 From Jimi X <jimix@watson.ibm.com>:
6751 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6754 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6756 From Jimi X <jimix@watson.ibm.com>:
6757 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6758 register sets for these processor variants.
6760 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6762 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6763 registers which are allowed to fail to store.
6764 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6765 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6766 (ppc_cannot_store_register): FPSCR may not be storable.
6767 * regformats/reg-ppc.dat: Support FPSCR.
6769 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6771 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6772 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6773 Add fpscr as an invalid/unfetchable register.
6774 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6775 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6776 (fill_fpregset): Add support for register fpscr.
6777 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6778 (fill_gregset): Account for the fact that register ``mq'' might
6780 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6781 (registers_power): Add fpscr to register set at slot 71.
6782 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6783 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6785 2002-04-11 Michael Snyder <msnyder@redhat.com>
6787 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6788 * configure: Regenerate.
6789 * config.in: Regenerate.
6790 * acconfig.h: Add define for _SYSCALL32.
6791 * core-sol2.c: Remove #define _SYSCALL32.
6792 * solib-legacy.c: Remove #define _SYSCALL32.
6794 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6796 * stack.c (select_frame): Cleanup internal error message, do not
6799 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6801 * stack.c (select_frame): Check that selected_frame and the
6802 specified level are as expected.
6803 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6805 * frame.h (struct frame_info): Add field `level'. Update
6807 Work-in-progress PR gdb/464.
6809 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6811 * maint.c (maint_print_section_info): Rename print_section_info.
6812 (print_bfd_section_info, print_objfile_section_info): Update.
6813 * inferior.h (struct gdbarch): Add opaque declaration.
6814 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6815 * gdbarch.h: Regenerate.
6817 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6819 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6820 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6821 (kernel_u_size): Added.
6822 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6823 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6825 2002-04-04 Jim Ingham <jingham@apple.com>
6827 * valarith.c (find_size_for_pointer_math): New function, either returns
6828 the size for a pointer's target, returns 1 for void *, or errors for
6830 (value_add, value_sub): use find_size_for_pointer_math.
6832 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6834 * linux-low.c (linux_look_up_symbols): New hook.
6835 (linux_target_ops): Add linux_look_up_symbols.
6836 * remote-utils.c (decode_address): New function.
6837 (look_up_one_symbol): New function.
6838 * server.c (handle_query): Call target look_up_symbols hook.
6839 * server.h (look_up_one_symbol): Add prototype.
6840 * target.h (struct target_ops): Add look_up_symbols hook.
6842 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6844 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6845 * ChangeLog: Correct paths in last ChangeLog entry.
6847 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6849 * gdbserver/linux-low.h: Remove obsolete prototypes.
6850 (struct linux_target_ops): New.
6851 (extern the_low_target): New.
6852 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6853 (register_addr): Use the_low_target explicitly.
6854 (fetch_register): Likewise.
6855 (usr_fetch_inferior_registers): Likewise.
6856 (usr_store_inferior_registers): Likewise.
6857 * gdbserver/linux-arm-low.c (num_regs): Remove.
6858 (arm_num_regs): Define.
6859 (arm_regmap): Renamed from regmap, made static.
6860 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6862 (arm_cannot_store_register): Renamed from cannot_store_register,
6864 (the_low_target): New.
6865 * gdbserver/linux-i386-low.c (num_regs): Remove.
6866 (i386_num_regs): Define.
6867 (i386_regmap): Renamed from regmap, made static.
6868 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6870 (i386_cannot_store_register): Renamed from cannot_store_register,
6872 (the_low_target): New.
6873 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6874 (ia64_num_regs): Define.
6875 (ia64_regmap): Renamed from regmap, made static.
6876 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6878 (ia64_cannot_store_register): Renamed from cannot_store_register,
6880 (the_low_target): New.
6881 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6882 (m68k_num_regs): Define.
6883 (m68k_regmap): Renamed from regmap, made static.
6884 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6886 (m68k_cannot_store_register): Renamed from cannot_store_register,
6888 (the_low_target): New.
6889 * gdbserver/linux-mips-low.c (num_regs): Remove.
6890 (mips_num_regs): Define.
6891 (mips_regmap): Renamed from regmap, made static.
6892 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6894 (mips_cannot_store_register): Renamed from cannot_store_register,
6896 (the_low_target): New.
6897 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6898 (ppc_num_regs): Define.
6899 (ppc_regmap): Renamed from regmap, made static.
6900 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6902 (ppc_cannot_store_register): Renamed from cannot_store_register,
6904 (the_low_target): New.
6905 * gdbserver/linux-s390-low.c (num_regs): Remove.
6906 (s390_num_regs): Define.
6907 (s390_regmap): Renamed from regmap, made static.
6908 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6910 (s390_cannot_store_register): Renamed from cannot_store_register,
6912 (the_low_target): New.
6913 * gdbserver/linux-sh-low.c (num_regs): Remove.
6914 (sh_num_regs): Define.
6915 (sh_regmap): Renamed from regmap, made static.
6916 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6918 (sh_cannot_store_register): Renamed from cannot_store_register,
6920 (the_low_target): New.
6921 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6922 (the_low_target): New.
6924 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6926 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6927 override FP_REGNUM with frame->fp. Update copyright.
6928 * parse.c (num_std_regs, std_regs): Delete.
6929 (target_map_name_to_register): Do not search std_regs. Update
6930 function description.
6931 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6932 declarations. Update copyright.
6935 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6937 * gdbserver/Makefile.in: Add stamp-h target.
6938 * gdbserver/configure.in: Create stamp-h.
6939 * gdbserver/configure: Regenerated.
6941 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6943 * gdbserver/inferiors.c: New file.
6944 * gdbserver/target.c: New file.
6945 * gdbserver/target.h: New file.
6946 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6948 * gdbserver/linux-low.c (inferior_pid): New static variable,
6949 moved from server.c.
6950 (linux_create_inferior): Renamed from create_inferior.
6951 Call add_inferior. Return 0 on success instead of a PID.
6952 (linux_attach): Renamed from myattach.
6953 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6954 (linux_thread_alive): Renamed from mythread_alive.
6955 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6957 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6958 (regsets_store_inferior_registers): Correct error message.
6959 Add missing ``return 0''.
6960 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6961 (linux_store_registers): Renamed from store_inferior_registers.
6962 (linux_read_memory): Renamed from read_inferior_memory.
6963 (linux_write_memory): Renamed from write_inferior_memory.
6964 (linux_target_ops): New structure.
6965 (initialize_low): Call set_target_ops ().
6966 * gdbserver/remote-utils.c (unhexify): New function.
6967 (hexify): New function.
6968 (input_interrupt): Send signals to ``signal_pid''.
6969 * gdbserver/server.c (inferior_pid): Remove.
6970 (start_inferior): Update create_inferior call.
6971 (attach_inferior): Call add_inferior.
6972 (handle_query): New function.
6973 (main): Call handle_query for `q' packets.
6974 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6975 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6977 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6979 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6981 * gdbserver/configure.in: Check for <string.h>
6982 * gdbserver/configure: Regenerate.
6983 * gdbserver/config.in: Regenerate.
6984 * gdbserver/gdbreplay.c: Include needed system headers.
6985 (remote_open): Remove strchr prototype.
6986 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6987 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6988 (supply_register_by_name): Likewise.
6989 (collect_register): Change buf argument to void *.
6990 (collect_register_by_name): Likewise.
6991 * gdbserver/regcache.h: Add missing prototypes.
6992 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6993 * gdbserver/server.c (handle_query): New function.
6994 (attached): New static variable, moved out of main.
6995 (main): Quiet longjmp clobber warnings.
6996 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6997 * gdbserver/utils.c (error): Remove NORETURN.
7000 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7002 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7003 after the last symbol in a block.
7005 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7007 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7008 is non zero as a found symbol.
7010 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7012 * findvar.c: Include "builtin-regs.h".
7013 (value_of_register): Call value_of_builtin_reg when applicable.
7014 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7015 (target_map_name_to_register): Call
7016 builtin_reg_map_name_to_regnum.
7017 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7018 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7019 (builtin_regs_h): Define.
7020 (builtin-regs.o): New target.
7021 (findvar.o): Add $(builtin_regs_h).
7022 * builtin-regs.c, builtin-regs.h: New files.
7023 * std-regs.c: New file.
7024 Partial fix for PR gdb/251.
7026 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7028 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7029 it's no longer required.
7031 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7033 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7035 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7037 From Jimi X <jimix@watson.ibm.com>:
7038 * rs6000-tdep.c (rs6000_software_single_step): Use
7039 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7040 and size. Use target_insert_breakpoint() and
7041 target_remove_breakpoint() to insert and remove breakpoints
7042 instead of explicit memory reads and writes.
7044 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7046 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7047 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7048 ELF_OBJECT_FORMAT ifdef.
7050 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7052 From Jimi X <jimix@watson.ibm.com>:
7053 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7055 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7057 From Jimi X <jimix@watson.ibm.com>:
7058 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7059 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7061 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7063 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7064 s/asprintf/xasprintf/.
7065 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7067 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7069 I believe Jeff Law denies responsability for this one:
7070 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7071 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7072 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7073 Work-around for PR gdb/366.
7075 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7077 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7078 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7079 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7081 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7083 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7084 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7087 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7089 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7092 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7094 * README (Reporting Bugs in GDB): Document the bug web page as the
7095 prefered way of submitting bugs.
7098 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7100 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7102 * gdbarch.h, gdbarch.c: Re-generate.
7104 2002-04-07 Andreas Schwab <schwab@suse.de>
7106 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7107 buffer to regcache_collect.
7109 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7111 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7112 * gdbarch.c, gdbarch.h: Re-generate.
7114 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7116 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7117 declaration. Fix -Werror.
7119 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7121 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7122 * gdbarch.c: Regenerate.
7124 2002-04-05 Michael Snyder <msnyder@redhat.com>
7126 * breakpoint.c (clear_command): Rewrite middle section to
7127 combine two loops with identical control conditions.
7128 Add a cleanup to eliminate a memory leak.
7129 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7131 2002-04-05 H.J. Lu (hjl@gnu.org)
7133 * solib-svr4.c (bkpt_names): Add "__start".
7135 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7137 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7138 as test for 64 bit target.
7140 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7142 * h8500-tdep.c (h8500_write_fp): Delete function.
7143 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7144 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7145 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7147 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7148 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7150 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7151 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7152 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7153 (d10v_write_fp): Delete function.
7154 * inferior.h (write_fp, generic_target_write_fp): Delete
7156 * regcache.c (generic_target_write_fp): Delete function.
7157 (write_fp): Delete function.
7158 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7159 * gdbarch.h, gdbarch.c: Regenerate.
7160 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7161 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7162 (sparc64_write_fp): Delete declaration.
7163 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7164 (h8500_write_fp): Delete declaration.
7166 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7168 * sparc-tdep.c (sparc64_write_fp): Delete.
7169 (sparc_push_dummy_frame): Replace write_fp call with code to store
7171 (sparc_gdbarch_init): Do not initialize write_fp.
7173 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7175 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7178 2002-03-29 Jim Blandy <jimb@redhat.com>
7180 * stack.c (get_selected_block): Add new argument `addr_in_block',
7181 used to return the exact code address we used to select the block,
7183 * blockframe.c (get_frame_block, get_current_block): Same.
7184 * frame.h (get_frame_block, get_current_block,
7185 get_selected_block): Update declarations.
7186 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7187 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7189 2002-04-05 Michael Snyder <msnyder@redhat.com>
7191 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7194 2002-04-05 J. Brobecker <brobecker@gnat.com>
7196 * utils.c (xfullpath): New function.
7197 * defs.h (xfullpath): Add declaration.
7198 * source.c (openp): Use xfullpath in place of gdb_realpath to
7199 avoid resolving the basename part of filenames when the
7200 associated file is a symbolic link. This fixes a potential
7201 inconsistency between the filenames known to GDB and the
7202 filenames it prints in the annotations.
7203 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7204 to be able to match a filename with either the real filename, or
7205 the name of any symbolic link to this file.
7206 (lookup_partial_symtab): Ditto.
7208 2002-04-04 Michael Snyder <msnyder@redhat.com>
7210 * breakpoint.c: Add support for hardware breakpoints in overlays.
7211 (overlay_events_enabled): New state variable.
7212 (insert_breakpoints): Use overlay_events_enabled to decide
7213 whether to attempt to set a breakpoint at the overlay load addr.
7214 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7215 (remove_breakpoint): Use overlay_events_enabled to decide
7216 whether breakpoints need to be removed from overlay load addr.
7217 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7218 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7219 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7220 disable_overlay_breakpoints): Update overlay_events_enabled.
7222 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7224 * dwarf2read.c (struct function_range): New.
7225 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7226 (check_cu_functions): New.
7227 (read_file_scope): Initialize global function lists.
7228 Call dwarf_decode_line after processing children.
7229 (read_func_scope): Add to global function list.
7230 (dwarf_decode_lines): Call check_cu_functions everywhere
7231 record_line is called. Call record_line with a linenumber
7232 of 0 to mark sequence ends.
7234 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7236 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7237 change sync with glibc.
7239 2002-04-03 Jim Blandy <jimb@redhat.com>
7241 * configure.in: Call AC_C_INLINE.
7242 * configure: Regenerated.
7244 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7246 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7247 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7249 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7251 * NEWS: Mention gcore support on FreeBSD/i386.
7253 * fbsd-proc.c: New file.
7254 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7255 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7257 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7260 2002-03-29 Jim Blandy <jimb@redhat.com>
7262 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7263 unescaped newlines in string literals, but newer ones don't. So
7266 2002-03-26 Michael Snyder <msnyder@redhat.com>
7267 Andrew Cagney <cagney@redhat.com>
7269 * cli/cli-dump.c: New file. Dump memory to file,
7270 restore file to memory.
7271 * cli/cli-dump.h: New file.
7272 * Makefile.in: Add rules, dependencies for cli-dump.o.
7273 * NEWS: Mention new commands.
7275 2002-03-28 Michael Snyder <msnyder@redhat.com>
7277 * symfile.c (symbol_file_add): Move test for null symbols to later.
7279 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7281 From veksler at il.ibm.com:
7282 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7283 the xstrduped original path.
7286 2002-03-27 Michael Snyder <msnyder@redhat.com>
7288 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7289 * infcmd.c (_initialize_infcmd): Ditto.
7290 * language.c (_initialize_language): Ditto.
7291 * symfile.c (_initialize_symfile): Ditto.
7292 * top.c (_init_main): Ditto.
7293 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7295 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7297 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7298 vector registers handling.
7299 (skip_prologue): Handle new AltiVec instructions. Fill in new
7300 fields of frame data.
7301 (frame_get_saved_regs): Fill in information for AltiVec registers.
7303 2002-03-27 Jim Blandy <jimb@redhat.com>
7305 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7306 a function; leave this macro here to invoke that function.
7307 (symbol_init_mangled_name): Declaration for that function.
7308 * symtab.c (symbol_init_mangled_name): New function.
7310 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7312 * valarith.c: Replace strerror with safe_strerror.
7313 * tracepoint.c: Ditto.
7315 * go32-nat.c: Ditto.
7319 2002-03-27 Andreas Schwab <schwab@suse.de>
7321 * event-top.c (command_line_handler): Remove useless if.
7323 2002-03-27 Andreas Jaeger <aj@suse.de>
7325 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7328 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7330 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7331 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7332 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7333 (x86_64_linux_dr_get_status, supply_gregset),
7334 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7335 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7336 (x86_64_register_info_table): Add.
7337 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7338 (x86_64_register_raw_size, x86_64_register_virtual_type),
7339 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7340 general x86_64_register_info_table.
7341 (i386_gdbarch_init): gdbarch_register_bytes is now set
7342 dynamicaly during initialization.
7343 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7344 * gdbserver/linux-x86-64-low.c: Ditto.
7346 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7348 * gdbserver/server.c (main): Call target_signal_to_host_p
7349 and target_signal_to_host on signals received from the remote.
7350 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7351 target_signal_from_host on signals sent to the remote.
7352 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7353 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7355 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7357 * signals/signals.c: Include "server.h" in gdbserver build.
7358 (target_signal_from_name): Don't use STREQ.
7359 (_initialize_signals): Likewise. Don't include function in
7362 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7364 * signals.c: Moved to...
7365 * signals/signals.c: Here.
7366 * Makefile (signals.o): Update.
7368 2002-03-26 Jeff Law (law@redhat.com)
7370 * somread.c (som_symtab_read): Remove some commented out code and
7371 updated related comments. Do not set the minimal symbol table to
7372 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7373 in a dynamic executable.
7374 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7375 where we are unable to find the minimal symbol for the given
7378 2002-03-25 Jeff Law (law@redhat.com)
7380 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7382 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7384 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7386 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7388 * command.h: Update copyright.
7389 (struct cmd_list_element): Replace definition with opaque
7391 (enum cmd_types): Document that it will eventually be moved to
7393 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7394 (MALLOCED_REPLACEMENT): Delete macro.
7395 * Makefile.in (cli_decode_h): Add $(command_h).
7396 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7397 * top.c: Include "cli/cli-decode.h".
7398 * completer.c: Include "cli/cli-decode.h".
7399 * maint.c: Include "cli/cli-decode.h".
7400 * cli/cli-decode.h: Include "command.h".
7401 (enum command_class): Delete.
7402 (enum cmd_types): Comment out.
7403 (enum cmd_auto_boolean): Delete.
7404 (enum var_types): Delete.
7406 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7408 * cli/cli-decode.c: Include "gdb_assert.h".
7409 (add_set_or_show_cmd): New static function.
7410 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7411 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7412 all fields, such as func, from the set command.
7414 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7416 * MAINTAINERS (sh-elf): Change warning flag to -w.
7418 2002-03-23 Andrew Cagney <cagney@redhat.com>
7420 * defs.h (error): Add printf format attribute.
7421 * thread-db.c (thread_from_lwp): Fix error format string.
7422 * stack.c (parse_frame_specification): Ditto.
7423 * cli/cli-decode.c (undef_cmd_error): Ditto.
7424 * scm-lang.c (scm_lookup_name): Ditto.
7425 * tracepoint.c (trace_error): Ditto.
7426 * remote-utils.c (usage): Ditto.
7427 * remote.c (compare_sections_command): Ditto.
7430 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7432 * gdbtypes.c (append_composite_type_field): New function.
7433 (init_composite_type): New function.
7434 * gdbtypes.h (append_composite_type_field): Declare.
7435 (init_composite_type): Ditto.
7437 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7439 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7441 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7442 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7443 structure returning convention for SYSV ABI case, but not
7444 for GNU/Linux, FreeBSD, or NetBSD.
7446 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7448 * symtab.h (lookup_block_symbol): Add mangled_name argument
7451 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7452 with new mangled_name argument.
7453 * linespec.c (decode_line_1): Likewise.
7454 * valops (value_of_this): Likewise.
7455 * symtab.c (lookup_transparent_type): Likewise.
7456 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7457 (lookup_symbol): If we are given a mangled name, pass it down
7458 to lookup_symbol_aux.
7459 (lookup_block_symbol): If we are given a mangled name to check
7460 against, only return symbols which match it.
7462 2002-03-22 Christopher Faylor <cgf@redhat.com>
7464 * win32-nat.c (child_create_inferior): Check for proper shell to use
7465 here, in case the user changes it on the fly.
7466 (_initialize_inftarg): Remove shell path considerations.
7468 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7470 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7471 for gdbarch_max_register_raw_size and max_register_virtual_size.
7472 Adjust copyright year.
7474 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7476 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7477 in a function to cover the entire beginning of the function
7478 as well if it does not already.
7480 2002-03-21 Tom Rix <trix@redhat.com>
7482 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7483 (rs6000_ptrace64): Renamed from ptrace64.
7485 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7487 * gdbserver/remote-utils.c (remote_open): Don't call
7488 getprotobyname, we're all using TCP here so just use
7490 * gdbserver/gdbreplay.c (remote_open): Ditto.
7492 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7494 * regcache.c (_initialize_regcache): No need to call
7495 build_regcache() at this time; it gets called whenever
7496 the gdbarch changes.
7498 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7500 * sparc-nat.c: Include sys/param.h where possible.
7502 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7505 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7506 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7507 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7509 * stabsread.c (rs6000_builtin_type): Likewise.
7510 (read_sun_floating_type): Likewise.
7512 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7514 * stabsread.c (read_member_functions): Remove skip code for duplicate
7515 constructor/destructor methods. Use standard parsing for these
7516 methods and just do not chain them to the list of methods after
7519 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7521 * coffread.c: Remove redundant static declarations. Replace
7522 occurrences of `PTR' with `void *'.
7523 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7524 * top.h (quit_cover): Likewise.
7525 * defs.h (catch_errors): Likewise.
7527 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7529 * defs.h (XMALLOC): Define.
7530 * gdb-events.sh (XMALLOC): Delete macro.
7531 * gdb-events.c, gdb-events.h: Regenerate.
7532 * gdbarch.sh (XMALLOC): Delete macro.
7533 * gdbarch.c: Regenerate.
7534 * serial.c (XMALLOC): Delete macro.
7535 * ui-file.c (XMALLOC): Ditto.
7536 * ser-unix.h (XMALLOC): Ditto.
7537 * sh-tdep.c (XMALLOC): Ditto.
7538 * ui-out.c (XMALLOC): Ditto.
7539 * utils.c (XMALLOC): Ditto.
7540 * i386-tdep.c (XMALLOC): Ditto.
7541 * gdb-events.c (XMALLOC): Ditto.
7542 * d10v-tdep.c (XMALLOC): Ditto.
7543 * cli-out.c (XMALLOC): Ditto.
7545 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7546 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7547 * ui-file.c, ui-out.c: Ditto.
7549 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7551 * command.h (struct cmd_list_element): Add field context.
7552 (set_cmd_context, get_cmd_context): Declare.
7553 * cli/cli-decode.h: Ditto.
7554 * cli/cli-decode.c (get_cmd_context): New function.
7555 (set_cmd_context): New function.
7556 (add_cmd): Initialize context.
7557 Part of fixing PR gdb/145 and PR gdb/146.
7559 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7561 * cli/cli-decode.c (cmd_type): New function.
7562 * command.h (cmd_type): Declare.
7563 * infrun.c (set_schedlock_func): Call function cmd_type.
7564 * kod.c (kod_set_os): Call cmd_type.
7565 * cris-tdep.c (cris_version_update): Use function cmd_type.
7566 (cris_mode_update, cris_abi_update): Ditto.
7568 * command.h: (execute_cmd_post_hook): Declare.
7569 (execute_cmd_pre_hook): Declare.
7570 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7571 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7572 functions. Execute pre/post hook while ensuring that afterwords
7574 * top.c (execute_command): Use execute_cmd_post_hook, and
7575 execute_cmd_pre_hook to execute pre/post commands.
7576 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7578 (hook_stop_stub): Call execute_cmd_pre_hook.
7580 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7582 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7583 set'' and this leads to a core dump. Move xstrdup of
7584 operating_system to after check that it is not NULL.
7586 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7588 * kod.c (kod_set_os): Remove unnecessary check that
7589 ``command->type'' is set_cmd.
7591 * valprint.c (set_input_radix): Use input_radix.
7592 (set_output_radix): Use output_radix.
7593 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7596 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7598 * value.h (struct value): Delete field ``substring_addr''. Change
7599 aligner fields to force_doublest_align, force_longest_align,
7600 force_core_addr_align and force_pointer_aligh.
7602 * value.h (struct value): Fix typo in above change.
7604 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7606 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7607 to fix internal_error from ``maintenance print architecture''.
7609 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7611 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7612 for gcc versions after gcc-2.8.1.
7614 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7616 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7617 for method resolution. Restore adjustment of ``this'' pointer after
7618 calling value_struct_elt, which was accidentally removed during the
7621 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7623 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7625 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7627 * value.h (value_of_register): Update.
7629 2002-03-14 Richard Henderson <rth@redhat.com>
7631 * configure.in: Detect declaration for canonicalize_file_name.
7632 * utils.c (canonicalize_file_name): Declare, if needed.
7633 (gdb_realpath): Prefer realpath if available and usable.
7634 * config.in, configure: Rebuild.
7636 2002-03-14 Richard Henderson <rth@redhat.com>
7638 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7639 a constant array bound.
7641 * MAINTAINERS: Add myself to write-after-approval.
7643 2002-03-14 Michael Snyder <msnyder@redhat.com>
7645 * symfile.c (syms_from_objfile): Return immediately if no syms.
7646 (symbol_file_add): Return immediately if no syms.
7647 (find_sym_fns): Return immediately if no syms.
7649 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7651 * gdbserver/remote-util.c (remote_open): Print remote-side's
7652 IP address when remote debugging over the network.
7654 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7656 * config/sparc/fbsd.mh: Fix copyright.
7657 * config/sparc/fbsd.mt: Likewise.
7659 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7661 * MAINTAINERS: Fix typo in name of gdb warnings option.
7662 (x86-64): Fix formating so that this can be parsed by awk.
7664 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7666 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7667 * defs.h: Include "gdb/signals.h".
7668 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7670 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7672 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7673 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7676 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7677 Don Howard <dhoward@redhat.com>
7679 * mips-tdep.c (ST0_FR): Define.
7680 (mips2_fp_compat): New function, temporarily disabled.
7681 (mips_read_fp_register_single): New function.
7682 (mips_read_fp_register_double): New function.
7683 (mips_print_register): Use them.
7684 (do_fp_register_row): Likewise.
7686 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7688 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7691 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7693 * stabsread.c (read_member_functions): Fix is_stub test for
7694 static member functions, improve comment.
7696 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7698 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7699 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7700 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7701 commands that set boolean values.
7702 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7703 (arm_rdi_resume): Always initialize PC.
7704 (arm_rdi_open): Don't use rslt as a boolean.
7705 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7706 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7707 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7708 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7710 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7712 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7713 * configure: Rebuilt.
7715 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7717 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7718 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7720 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7722 * cli/cli-decode.c (set_cmd_completer): New function.
7723 * command.h (set_cmd_completer): Declare.
7724 * cli/cli-decode.h (set_cmd_completer): Ditto.
7726 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7727 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7728 * win32-nat.c (_initialize_inftarg): Ditto.
7729 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7730 * proc-api.c (_initialize_proc_api): Ditto.
7731 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7732 * source.c (_initialize_source): Ditto.
7733 * exec.c (_initialize_exec): Ditto.
7734 * solib.c (_initialize_solib): Ditto.
7735 * top.c (init_main): Ditto.
7736 * tracepoint.c (_initialize_tracepoint): Ditto.
7737 * symfile.c (_initialize_symfile): Ditto.
7738 * printcmd.c (_initialize_printcmd): Ditto.
7739 * infcmd.c (_initialize_infcmd): Ditto.
7740 * corefile.c (_initialize_core): Ditto.
7742 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7744 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7746 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7748 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7750 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7752 * NEWS: Update headings, 5.2 has branched.
7754 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7756 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7757 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7758 (register_addr, REGISTER_RAW_SIZE): Likewise.
7759 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7760 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7762 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7764 * MAINTAINERS (x86-64): Add myself.
7765 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7766 changed value_ptr -> struct value *
7768 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7770 * configure.host (sparc64-*-freebsd): Add.
7771 * configure.tgt: Likewise.
7772 * config/sparc/fbsd.mh: New file.
7773 * config/sparc/fbsd.mt: Likewise.
7774 * config/sparc/nm-fbsd.h: Likewise.
7775 * config/sparc/tm-fbsd.h: Likewise.
7777 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7779 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7780 regformats/reg-s390x.dat.
7782 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7784 * utils.c: Add FIXME explaining true/false problem.
7786 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7788 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7790 2002-02-28 Michael Chastain <mec@shout.net>
7792 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7794 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7796 * gdbserver/linux-s390-low.c: New file.
7797 * regformats/reg-s390.dat: New file.
7798 * regformats/reg-s390x.dat: New file.
7799 * gdbserver/configure.srv: Add S/390.
7800 * gdbserver/Makefile.in: Add S/390.
7801 * configure.tgt: Enable gdbserver for S/390.
7803 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7805 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7806 first line of the doc string for "info dos", except at the end of
7807 the sentence, since the short help stops at the first period.
7809 2002-02-28 Jason Merrill <jason@redhat.com>
7811 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7813 2002-02-27 Fred Fish <fnf@redhat.com>
7815 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7816 comment (dumy -> dummy).
7818 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7820 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7822 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7824 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7826 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7828 * gdbserver/acconfig.h: New file.
7829 * gdbserver/i387-fp.c: New file.
7830 * gdbserver/i387-fp.h: New file.
7831 * gdbserver/linux-x86-64.c: New file.
7832 * regformats/reg-x86-64.dat: New file.
7833 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7834 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7835 * gdbserver/configure.in: Add support for regsets.
7836 * gdbserver/config.in: Regenerate.
7837 * gdbserver/configure: Regenerate.
7838 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7839 * gdbserver/linux-low.h: New file.
7840 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7842 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7843 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7844 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7845 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7846 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7847 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7848 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7849 "i387-fp.h". Add PTRACE_GETREGS and friends.
7850 * gdbserver/regcache.c (supply_register): New function.
7851 (supply_register_by_name): New function.
7852 (collect_register): New function.
7853 (collect_register_by_name): New function.
7855 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7857 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7858 (config.status): Add configure.srv dependency.
7859 (server_h): Add config.h dependency.
7861 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7863 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7864 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7865 * gdbserver/configure.srv: Change i386-*-linux* to use
7868 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7870 * x86-64-tdep.c: Re-indent. Update copyright date.
7872 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7874 From Michal Ludvig <mludvig@suse.cz>:
7875 * x86-64-tdep.c (value.h): Delete.
7876 (gdb_assert.h): Include.
7877 (x86_64_register_convert_to_virtual,
7878 x86_64_register_convert_to_raw ): Add check which lets only
7879 floating-point values to be converted.
7880 (value_push): Delete.
7881 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7882 (i386_gdbarch_init): Number of register_bytes fixed.
7884 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7886 * MAINTAINERS: Add x86-64 target.
7888 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7890 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7891 * osfsolib.c (solib_map_sections): Ditto.
7892 * irix5-nat.c (solib_map_sections): Ditto.
7893 * corelow.c (gdb_check_format): Ditto.
7894 * symfile.c (symfile_bfd_open): Ditto.
7895 * solib.c (solib_map_sections): Ditto.
7898 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7900 * remote.c (_initialize_remote): By default, disable ``e'' and
7901 ``E'' step out-of-range packets.
7903 2002-02-26 Andreas Schwab <schwab@suse.de>
7905 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7906 m68k_linux_frame_saved_pc.
7907 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7909 (SIGCONTEXT_PC_OFFSET): Remove.
7910 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7911 m68k_linux_sigtramp_saved_pc): New functions.
7912 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7913 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7914 (UCONTEXT_PC_OFFSET): Define.
7915 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7916 non-RT and RT signal trampolines.
7918 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7920 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7921 (TARGET_NBPG, STACK_END_ADDR): Delete
7922 (VARIABLES_INSIDE_BLOCK): Delete.
7924 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7926 * utils.c (perror_with_name): Make string parameter constant.
7927 (print_sys_errmsg): Ditto.
7929 * defs.h (perror_with_name): Update.
7930 (print_sys_errmsg): Update.
7933 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7935 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7936 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7938 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7940 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7941 if it already matches the current architecture from the exec file.
7942 Include arch-utils.h for gdbarch_info_init prototype.
7943 * Makefile.in (rs6000-nat.o): Update dependencies.
7945 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7947 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7948 list of exported variables.
7950 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7952 * gdbserver/configure.srv: New file.
7953 * gdbserver/configure.in: Use configure.srv instead
7954 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7956 * gdbserver/configure: Regenerated.
7957 * gdbserver/terminal.h: New file.
7958 * gdbserver/Makefile.in: Update for configure changes. Remove
7959 more unneeded include paths.
7961 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7963 From wiz at danbala:
7964 * config/sparc/tm-sp64.h: Fix grammar and typos.
7967 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7969 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7970 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7971 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7972 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7973 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7974 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7975 * s390-tdep.c: Ditto.
7976 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7977 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7978 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7979 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7980 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7981 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7982 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7983 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7984 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7985 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7988 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7990 * lin-thread.c: Delete file.
7991 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7992 to gdb_proc_service.h.
7993 * configure: Re-generate.
7995 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7996 * serial.c (serial_open): Delete check for "ocd".
7999 * Makefile.in (linux-thread.o): Delete target.
8000 * linux-thread.c: Delete file.
8002 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8003 renamed SH files to be consistent.
8005 * symtab.c (sort_search_symbols): Use xfree.
8007 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8009 * arm-linux-tdep.c (arm_linux_init_abi): Register
8010 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8011 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8012 definition with undef, since we don't want the sysvr4 definition.
8013 (SKIP_TRAMPOLINE_CODE): Likewise.
8015 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8017 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8019 * configure.in: (AC_CHECK_FUNCS) Added test for
8020 canonicalize_file_name Regenerated.
8021 * config.in, configure: Regenerated.
8022 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8023 defined use canonicalize_file_name.
8025 2002-02-23 Michael Chastain <mec@shout.net>
8027 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8029 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8031 * README: Remove references to cygnus.com.
8032 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8033 dot com'' form. Remove references to cygnus.com and sourceware.
8035 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8037 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8038 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8039 1003.1-2001 no longer allows "head -1".
8040 * gdb/Makefile.in (version.c): Likewise.
8041 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8042 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8043 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8045 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8047 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8048 * command.h (cmd_cfunc_eq): Declare.
8049 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8051 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8052 ``struct cmd_list_element *''.
8053 * cli/cli-cmds.c (is_complete_command): Update. Use
8055 * top.c (execute_command): Pass the command to
8056 is_complete_command.
8057 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8059 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8061 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8062 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8063 architecture defines.
8064 * s390-tdep.c (s390_gdbarch_init): Likewise.
8066 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8068 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8069 (arm_linux_push_arguments): Likewise.
8070 (arm_linux_init_abi): Register them. Also register linux-specific
8072 (find_minsym_and_objfile): Use strcmp, not STREQ.
8073 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8074 (arm_linux_call_dummy_words): Delete declaration.
8075 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8076 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8078 (LOWEST_PC): Delete.
8080 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8082 * maint.c (print_section_info): Do not prepend `0x' to filepos
8083 output, it will be handled by local_hex_string_custom.
8085 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8087 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8088 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8089 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8091 2002-02-22 Jim Blandy <jimb@redhat.com>
8093 Indicate that the bcache functions don't change the strings
8095 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8096 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8098 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8100 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8102 2002-02-21 Christopher Faylor <cgf@redhat.com>
8104 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8105 find the complete path to a loaded DLL.
8107 2002-02-21 Fred Fish <fnf@redhat.com>
8109 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8110 that marks the end of the range of a function, enter a line number
8111 entry that has a line number of zero and a PC offset that matches
8112 the end of the function. This starts a range of PC's for which no
8113 line number information is known.
8114 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8115 PC's for which no line number info is found (line number is zero)
8116 then we didn't find any valid line information.
8117 * symtab.h: Document use of zero line number entry.
8119 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8121 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8122 (have_ptrace_getvrregs): Define for run time checks.
8123 (gdb_vrregset_t): New type for Altivec register handling.
8124 (fetch_register, store_register): Fetch/store altivec register
8126 (fetch_altivec_register, store_altivec_register): New functions.
8127 (supply_vrregset, fill_vrregset): New functions.
8128 (fetch_altivec_registers, store_altivec_registers): New functions.
8129 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8132 2002-02-21 Jiri Smid <smid@suse.cz>
8134 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8136 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8138 * Makefile.in (armnbsd-nat.o): Update dependencies.
8139 * armnbsd-nat.c (supply_gregset): New function. Common code to
8140 supply the integer register set.
8141 (supply_fparegset): New function. Similar for FPA registers.
8142 (fetch_regs, fetch_fp_regs): Use them.
8143 (fetch_core_registers): Likewise.
8144 (fetch_elfcore_registers): New function.
8145 (arm_netbsd_elfcore_fns): New core-file type specification.
8146 (_initialize_arm_netbsd_nat): Register it.
8148 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8150 * armnbsd-nat.c: Include gdbcore.h.
8151 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8152 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8153 'void' to declaration, to shut up ARI.
8154 (fetch_core_registers): Make static. Rewrite using supply_register.
8155 (arm_netbsd_core_fns): New core-file type specification.
8156 (_initialize_arm_netbsd_nat): New function.
8158 2002-02-21 Christopher Faylor <cgf@redhat.com>
8160 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8163 2002-02-20 Christopher Faylor <cgf@redhat.com>
8165 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8168 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8170 * jv-exp.y (parse_number): Change type of implicit longs
8171 to builtin_type_uint64.
8173 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8175 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8176 to be an integer instead of a `union wait'.
8178 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8180 * mips-linux-nat.c: Call the operating system GNU/Linux.
8181 * mips-linux-tdep.c: Likewise.
8182 * mips-tdep.c: Likewise.
8184 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8187 * jv-exp.y (parse_number): Handle 64-bit integers.
8189 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8191 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8192 AC_STDC_HEADERS to AC_HEADER_STDC.
8193 * gdbserver/configure: Regenerated.
8195 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8197 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8199 * sparc-tdep.c (get_longjmp_target): Likewise.
8201 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8203 * News: Add news about ARM and Multi-arch. Mention the new target
8206 2002-02-19 Jim Blandy <jimb@redhat.com>
8208 * stabsread.c (error_type_complaint): Improve error message.
8210 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8212 * gdbserver/README: Update documentation.
8213 * gdbserver/configure.in: Update configury to match documentation.
8214 * gdbserver/Makefile.in: Likewise.
8215 * gdbserver/configure: Regenerated.
8216 * gdbserver/aclocal.m4: New file, generated by aclocal.
8217 * gdbserver/config.in: New file, generated by autoheader.
8219 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8221 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8224 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8226 * arm-tdep.h (enum arm_float_model): New enum.
8227 (struct gdbarch_tdep): Add fp_model.
8228 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8229 up floating-point conversions until we know the floating-point model
8230 in use by the inferior. Don't complain about being unable to
8231 determine the ABI of the inferior when we don't have one.
8232 (arm_extract_return_value): Support different floating-point models.
8233 (arm_store_return_value): Likewise.
8234 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8236 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8238 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8240 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8241 of ``current_gdbarch''.
8243 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8245 * armnbsd-nat.c : ANSIfy all function declarations.
8246 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8247 (fetch_inferior_registers): Re-implement in terms of above.
8248 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8249 (store_inferior_registers): Re-implement in terms of above.
8251 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8253 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8255 * arm-linux-tdep.c: Likewise.
8256 * config/arm/tm-linux.h: Likewise.
8258 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8260 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8261 * config/arm/nbsd.mt (TM_FILE): Delete.
8262 * config/arm/tm-nbsd.h: Delete.
8264 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8266 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8267 Initialize CALL_DUMMY_LENGTH.
8269 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8271 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8273 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8274 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8275 defines one thing and that is incorrect for this port.
8276 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8278 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8280 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8282 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8284 * win32-nat.c (display_selector): New function. Displays information
8285 about the information returned by GetThreadSelectorEntry API function.
8286 (display_selectors): New function. Displays the infomation of
8287 the selector given as argument, or of CS, DS ans FS selectors
8288 if no argument is given.
8289 ( _initialize_inftarg): Add "w32" as info prefix command.
8290 Add "info w32 selector" as command calling display_selectors.
8292 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8294 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8295 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8298 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8300 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8302 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8304 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8305 (arm_fix_call_dummy): Call it.
8306 (arm_call_dummy_breakpoint_offset): Delete.
8307 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8308 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8310 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8312 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8313 Default to func_frame_chain_valid.
8314 * gdbarch.h, gdbarch.c: Re-generate.
8315 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8317 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8319 * ppc-linux-nat.c: Update copyright.
8320 (fetch_register, store_register): Add tid parameter, don't compute
8322 (fetch_ppc_registers, store_ppc_registers): Add tid
8323 parameter. Pass it along to callees.
8324 (fetch_inferior_registers, store_inferior_registers): Compute tid
8325 here, and pass it to calleed functions.
8326 (fill_gregset, supply_fpregset): Clean up formatting.
8328 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8330 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8331 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8333 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8335 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8336 * gdbarch.c gdbarch.h: Regenerate.
8337 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8339 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8340 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8341 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8343 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8344 * arm-tdep.c (arm_get_longjmp_target): New function.
8345 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8346 this to a positive value register arm_get_longjmp_target as the
8348 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8349 (arm_linux_init_abi): Set up longjmp description in tdep.
8350 * armnbsd-nat.c (get_longjmp_target): Delete.
8351 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8352 description in tdep.
8353 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8354 (get_longjmp_target): Delete declaration.
8355 (GET_LONGJMP_TARGET): Delete.
8356 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8357 (GET_LONGJMP_TARGET): Delete.
8359 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8361 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8362 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8363 of ``current_gdbarch''.
8365 2002-02-17 Tom Tromey <tromey@redhat.com>
8367 * cli/cli-cmds.c (compare_strings): New function.
8368 (complete_command): Only print each unique item once.
8369 * completer.h (complete_line): Declare.
8370 * completer.c (complete_line): New function.
8371 (line_completion_function): Use it.
8373 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8375 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8376 * gdbarch.h, gdbarch.c: Re-generate.
8378 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8380 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8382 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8384 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8385 * valops.c (value_arg_coerce): Don't take the address of a reference
8386 to convert an argument to a reference.
8388 2002-02-15 Christopher Faylor <cgf@redhat.com>
8390 * win32-nat.c (get_image_name): New function.
8391 (handle_load_dll): Use get_image_name function.
8392 (get_child_debug_event): Avoid registering debug events until possibly
8393 execed process is started.
8394 (child_create_inferior): Allow invocation via shell so that command
8395 line redirection, etc. works ok.
8396 (_initialize_inftarg): Add new command: "set shell" to control whether
8397 a shell is used to start a process.
8399 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8401 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8402 instead of find_register_by_number.
8403 (cannot_store_register): Likewise.
8405 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8407 * dwarf2read.c: Replace fprintf (stderr, ...) by
8408 fprintf_unfiltered (gdb_stderr, ...).
8410 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8412 * gdbserver/gdbserver.1: Document --attach.
8414 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8416 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8418 * arm-tdep.c (arm_default_arm_le_breakpoint)
8419 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8420 (arm_default_thumb_be_breakpoint): New. Initialize them from
8421 traditional breakpoint defines.
8422 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8423 (arm_gdbarch_init): Initialize new breakpoint variables.
8424 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8425 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8426 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8427 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8429 (arm_netbsd_init_abi_common): ... here; new function.
8430 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8431 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8432 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8433 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8435 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8437 * arm-tdep.h (enum arm_abi): New enum.
8438 (struct gdbarch_tdep): New structure.
8439 (LOWEST_PC): Provide a default.
8440 (arm_gdbarch_register_os_abi): Declare new function.
8441 * arm-tdep.c (arm_abi_names): New array.
8442 (process_note_abi_tag_sections): New function.
8443 (get_elfosabi): New function.
8444 (arm_gdbarch_register_os_abi): New function.
8445 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8446 support for that ABI has been built in, then call the appropriate
8447 configuration routine. Use gdbarch_num_regs() to get the number
8449 (arm_dump_tdep): New function.
8450 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8451 place-holder functions.
8452 (_initialize_arm_tdep): Register them.
8453 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8455 * armnbsd-tdep.c: New file.
8456 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8457 * config/arm/nbsd.mt (TDEPFILES): Add it.
8458 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8460 * armnbsd-nat.c: Include regcache.h.
8461 * Makefile.in (armnbsd-nat.o): Update dependency list.
8463 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8465 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8467 * gdbserver/Makefile.in: Fix typos in target rules.
8469 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8471 Fix part of PR gdb/267.
8472 * linespec.c (find_methods): Handle constructors specially for now.
8474 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8476 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8478 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8479 standard_coerce_float_to_double().
8481 2002-02-14 Christopher Faylor <cgf@redhat.com>
8483 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8486 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8488 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8489 find_variant_by_name, because it confuses the multiarch
8490 framework. Return NULL if there isn't an architecture with the
8491 user supplied name, instead of forcing a different one without
8492 recording the change with the multiarch machinery.
8493 (find_variant_by_name): Delete.
8495 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8497 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8498 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8500 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8502 * stack.c (print_frame_info_base): When calling
8503 print_frame_info_listing_hook, set current_source_symtab.
8505 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8507 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8508 and remove unused $(INCLUDE_DIR).
8509 Add regcache.c to OBS.
8510 Add generated register protocol files to clean target.
8511 Update dependencies for new objects, obsolete old target code.
8513 * gdbserver/linux-low.c: Remove all platform-specific code to
8514 new files. Remove various dead code. Update to use regcache
8516 * gdbserver/remote-utils.c (fromhex): Add return statement
8518 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8520 (input_interrupt): Add integer parameter to match prototype
8521 of a signal handler.
8522 (outreg): Use register_data ().
8523 (prepare_resume_reply): Use gdbserver_expedite_regs.
8524 * gdbserver/server.c (main): Dynamically allocate own_buf because
8525 PBUFSIZ is no longer constant. Use registers_to_string () and
8526 registers_from_string ().
8527 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8528 for error (), fatal (), and warning (). Update definition of
8529 PBUFSIZ to use regcache functionality. Add include guard.
8530 * gdbserver/utils.c (fatal): Add missing ``const''.
8531 (warning): New function.
8533 * regformats/regdat.sh: Include "regcache.h" in generated files.
8534 Provide init_registers () function.
8535 * regformats/regdef.h: Add prototype for set_register_cache ().
8538 * gdbserver/linux-arm-low.c: New file.
8539 * gdbserver/linux-i386-low.c: New file.
8540 * gdbserver/linux-ia64-low.c: New file.
8541 * gdbserver/linux-m68k-low.c: New file.
8542 * gdbserver/linux-mips-low.c: New file.
8543 * gdbserver/linux-ppc-low.c: New file.
8544 * gdbserver/linux-sh-low.c: New file.
8546 * gdbserver/regcache.c: New file.
8547 * gdbserver/regcache.h: New file.
8549 * gdbserver/low-linux.c: Removed obsolete file.
8551 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8553 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8554 * config/i386/linux.mt: Likewise.
8555 * config/ia64/linux.mt: Likewise.
8556 * config/m68k/linux.mh: Likewise.
8557 * config/powerpc/linux.mh: Likewise.
8558 * config/mips/linux.mt: Likewise.
8560 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8562 * config/i386/i386lynx.mh: Mark gdbserver variables
8563 as (currently) obsolete for this target.
8564 * config/i386/nbsd.mt: Likewise.
8565 * config/i386/nbsdelf.mt: Likewise.
8566 * config/m32r/m32r.mt: Likewise.
8567 * config/m68k/m68klynx.mh: Likewise.
8568 * config/m68k/nbsd.mt: Likewise.
8569 * config/m68k/sun3os4.mh: Likewise.
8570 * config/mips/vr5000.mt: Likewise.
8571 * config/ns32k/nbsd.mt: Likewise.
8572 * config/pa/hppabsd.mh: Likewise.
8573 * config/pa/hppaosf.mh: Likewise.
8574 * config/powerpc/nbsd.mt: Likewise.
8575 * config/rs6000/rs6000lynx.mh: Likewise.
8576 * config/s390/s390.mt: Likewise.
8577 * config/s390/s390x.mt: Likewise.
8578 * config/sparc/sparclynx.mh: Likewise.
8579 * config/sparc/sun4os4.mh: Likewise.
8580 * config/i386/x86-64linux.mt: Likewise.
8581 * config/sparc/linux.mh: Likewise.
8583 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8585 * configure.tgt: Configure gdbserver only for known working
8586 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8587 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8588 SUBDIRS if it is configured. Update comment for ${nativefile}.
8589 * configure: Regenerated.
8591 2002-02-13 Michael Snyder <msnyder@redhat.com>
8593 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8595 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8596 (default_gcore_mach): Just return 0, work around a problem in bfd.
8597 (default_gcore_target): OK to return NULL if exec_bfd is null.
8598 (make_mem_sec): Use a cast, avoid a warning.
8600 * procfs.c (find_memory_regions_callback): Use a cast instead of
8601 calling host_pointer_to_address (which complains if
8602 sizeof (host pointer) != sizeof (target pointer)).
8603 (procfs_make_note_section): Avoid overflow in psargs string.
8605 * procfs.c (procfs_make_note_section): Make the default
8606 implementation return an error.
8608 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8610 * procfs.c (procfs_make_note_section): Provide a default definition
8611 (for alpha-dec-osf4.0f). Fix typos.
8613 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8615 * linux-proc.c: Add include of regcache.h.
8616 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8618 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8620 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8621 * memattr.c (create_mem_region): Disallow useless empty region.
8622 Regions are half-open intervals, so allow [A..B) [B..C) as
8625 2002-02-13 Michael Chastain <mec@shout.net>
8627 * defs.h: Kill CONST_PTR.
8628 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8629 * c-lang.c (c_builtin_types): Likewise.
8630 * ch-lang.c (ch_builtin_types): Likewise.
8631 * f-lang.c (f_builtin_types): Likewise.
8632 * language.c (unknown_builtin_types): Likewise.
8633 * m2-lang.c (m2_builtin_types): Likewise.
8634 * p-lang.c (pascal_builtin_types): Likewise.
8635 * scm-lang.c (c_builtin_types): Likewise.
8637 2002-02-13 Keith Seitz <keiths@redhat.com>
8639 * arm-tdep.h (arm_get_next_pc): Add declaration.
8641 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8643 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8644 with other related struct-returning functions.
8645 (arm_extract_struct_value_address): New function.
8646 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8647 initialize float_format, double_format and long_double_format as
8648 appropriate to the endianness of the target.
8649 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8650 (arm_use_struct_convention): Delete declaration.
8651 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8653 2002-02-13 Keith Seitz <keiths@redhat.com>
8655 * defs.h (core_addr_to_string_nz): New function.
8657 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8659 Apply missing bits of 2002-01-15 patch.
8660 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8661 (fill_fpregset): Use i387_fill_fsave.
8663 2002-02-12 Keith Seitz <keiths@redhat.com>
8665 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8666 (core_addr_to_string_nz): New function.
8668 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8670 * arm-linux-nat.c: Really include arm-tdep.h.
8671 * config/arm/tm-linux.h (struct type, struct value): Declare.
8673 2002-02-11 Michael Snyder <msnyder@redhat.com>
8675 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8676 (gcore section): Ifdef for Solaris and Unixware only.
8677 (procfs_do_thread_registers): Unixware needs one lwpstatus
8678 per thread (not one prstatus or pstatus).
8679 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8680 not over all gdb threads. For unixware, call elfcore_write_pstatus
8681 once before iterating over threads.
8683 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8685 * arm-tdep.h: New file.
8686 * arm-tdep.c: Include arm-tdep.h.
8687 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8688 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8689 (arm_print_float_info, arm_register_type, convert_to_extended)
8690 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8691 (arm_extract_return_value, arm_register_name): Make static.
8692 (arm_software_single_step): Similarly. Fix types in declaration.
8693 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8694 (arm_store_return_value, arm_store_struct_return): New functions.
8695 (arm_gdbarch_init): Register the above functions. Also register
8696 call_dummy_start_offset, sizeof_call_dummy_words,
8697 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8698 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8699 max_register_virtual_size, register_size. Set up
8700 prologue_cache.saved_regs here, rather than ...
8701 (_initialize_arm_tdep): ... here.
8702 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8704 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8705 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8706 (arm_print_float_info, arm_register_type, convert_to_extended)
8707 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8708 (arm_extract_return_value, arm_register_name): Delete declarations.
8709 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8710 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8711 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8712 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8713 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8714 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8715 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8716 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8717 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8718 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8719 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8720 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8722 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8723 * remote-rdi.c remote-rdp.c: Likewise.
8724 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8725 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8726 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8729 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8730 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8731 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8732 from non-ARM_ prefixed definitions.
8733 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8735 * remote-rdi.c remote-rdp.c: Likewise.
8736 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8738 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8740 * arm-tdep.c (arm_frameless_function_invocation)
8741 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8742 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8743 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8744 (arm_pop_frame, arm_get_next_pc): Make static.
8745 (arm_gdbarch_init): Register above in gdbarch structure.
8746 (arm_read_fp): Renamed from arm_target_read_fp.
8747 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8748 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8749 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8750 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8751 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8752 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8753 (arm_pc_is_thumb_dummy): Delete declarations.
8754 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8755 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8756 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8757 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8759 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8761 * symtab.c (compare_search_syms): New function.
8762 (sort_search_symbols): New function.
8763 (search_symbols): Sort symbols after searching rather than
8766 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8768 * NEWS: Linux -> GNU/Linux.
8770 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8772 * gdbarch.sh: For for level one methods, disallow a definition
8773 when partially multi-arched. Add comments explaining rationale.
8774 * gdbarch.h: Re-generate.
8776 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8778 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8781 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8783 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8785 * gdbarch.c: Re-generate.
8787 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8789 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8790 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8793 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8795 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8797 (PUSH_ARGUMENTS): Switch to using predefault.
8798 * gdbarch.c: Regenerate.
8800 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8802 * valops.c (PUSH_ARGUMENTS): Delete definition.
8803 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8804 partial. Default to default_push_arguments.
8805 * gdbarch.h, gdbarch.c: Regenerate.
8807 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8809 * defs.h (throw_exception): Rename return_to_top_level. Update
8811 * utils.c (error_stream, internal_verror, quit): Ditto.
8812 * top.c (throw_exception, catcher): Ditto.
8813 * sparclet-rom.c (sparclet_load): Ditto.
8814 * remote.c (interrupt_query, minitelnet): Ditto.
8815 * remote-sds.c (interrupt_query): Ditto.
8816 * remote-mips.c (mips_error, mips_kill): Ditto.
8817 * ocd.c (interrupt_query): Ditto.
8818 * monitor.c (monitor_interrupt_query): Ditto.
8819 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8820 * target.h: Update comment.
8822 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8824 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8826 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8827 default_double_format.
8828 * gdbarch.h, gdbarch.c: Re-generate.
8829 * findvar.c (floatformat_unknown): Delete variable definition.
8830 * doublest.h (floatformat_unknown): Delete variable declaration.
8832 2002-02-09 Jim Blandy <jimb@redhat.com>
8834 * stabsread.c (read_type): Add code to parse Sun's syntax for
8835 prototyped function types.
8837 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8839 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8840 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8842 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8844 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8845 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8846 now _initialize_xcoffsolib gets called again and overrides the
8847 commands from solib.c in a native configuration.
8849 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8851 * doublest.c (store_typed_floating): Don't try to return a value.
8854 2002-02-08 Jim Blandy <jimb@redhat.com>
8856 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8857 is prototyped and has no arguments, print its argument list as
8860 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8862 * MAINTAINERS (write-after-approval): Add myself.
8863 (paper-trail): I've escaped!
8865 2002-02-08 Christopher Faylor <cgf@redhat.com>
8867 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8869 (_initialize_check_for_gdb_ini): Ditto.
8871 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8873 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8874 xaprintf -> xasprintf.
8876 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8878 * win32-nat.c: Remove use of printf and sprintf functions.
8880 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8882 * arm-tdep.c (arm_frame_chain_valid): Make static.
8883 (arm_push_arguments): Likewise.
8884 (arm_gdbarch_init): New function.
8885 (_initialize_arm_tdep): Call it.
8886 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8887 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8888 (FRAME_CHAIN_VALID): Delete.
8889 (arm_frame_chain_valid): Delete declaration.
8890 (PUSH_ARGUMENTS): Delete.
8891 (arm_push_arguments): Delete declaration.
8892 (CALL_DUMMY_P): Delete.
8894 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8895 Corinna Vinschen <vinschen@redhat.com>
8897 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8898 on builtin float types.
8900 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8902 * utils.c: Include <curses.h> before "bfd.h".
8903 * tui/tui-hooks.c: Likewise.
8904 * tui/tui.c: Likewise.
8905 * tui/tuiCommand.c: Likewise.
8906 * tui/tuiData.c: Likewise.
8907 * tui/tuiDataWin.c: Likewise.
8908 * tui/tuiDisassem.c: Likewise.
8909 * tui/tuiGeneralWin.c: Likewise.
8910 * tui/tuiIO.c: Likewise.
8911 * tui/tuiLayout.c: Likewise.
8912 * tui/tuiRegs.c: Likewise.
8913 * tui/tuiSource.c: Likewise.
8914 * tui/tuiSourceWin.c: Likewise.
8915 * tui/tuiStack.c: Likewise.
8916 * tui/tuiWin.c: Likewise.
8918 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8920 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8921 to include space for pseudoregs as well. Update loops accordingly.
8922 (sh_fp_frame_init_saved_regs): Ditto.
8923 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8925 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8927 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8928 Add Richard Earnshaw to Arm maintainers.
8930 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8932 * defs.h (warning_begin): Delete declaration.
8934 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8937 2002-02-07 Michael Snyder <msnyder@redhat.com>
8939 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8940 Logic bug, remove misplaced else.
8942 2002-02-07 Klee Dienes <klee@apple.com>
8944 * fork-inferior.c (fork_inferior): Add '!' to the list of
8945 characters that need to be quoted when building a string for the
8946 shell. Quote '!' specifically with a backslash, since CSH chokes
8947 when trying to evaluate "str!str".
8949 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8951 * rdi-share/host.h: Only provide a typedef for bool if it is not
8954 2002-02-04 Michael Snyder <msnyder@redhat.com>
8956 * breakpoint.h (enum bptype): Add new overlay event bp type.
8957 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8959 * breakpoint.c (create_internal_breakpoint): New function.
8960 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8961 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8962 (create_thread_event_breakpoint): Ditto.
8963 (create_solib_event_breakpoint): Ditto.
8964 (create_overlay_event_breakpoint): New function.
8965 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8966 (update_breakpoints_after_exec): Delete and re-initialize
8967 overlay event breakpoints after an exec. Add FIXME comment
8968 about longjmp breakpoint.
8969 (print_it_typical): Ignore overlay event breakpoints.
8970 (print_one_breakpoint): Ditto.
8972 (bpstat_what): Do not stop for overlay event breakpoints.
8973 (delete_breakpoint): Don't delete overlay event breakpoints.
8974 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8975 (breakpoint_re_set): Re-create overlay event breakpoint.
8977 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8978 (overlay_manual_command): Disable overlay breakpoints.
8979 (overlay_off_command): Disable overlay breakpoints.
8981 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8983 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8984 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8985 to here from config/tm-arm.h.
8986 (coff_sym_is_thumb): Make static.
8987 (arm_elf_make_msymbol_special): New function.
8988 (arm_coff_make_msymbol_special): New function.
8989 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8990 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8991 (coff_sym_is_thumb): Delete declaration.
8992 (arm_elf_make_msymbol_special): Declare.
8993 (arm_coff_make_msymbol_special): Declare.
8994 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8995 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8997 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8999 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9001 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9003 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9004 * gdbarch.c gdbarch.h: Regenerate.
9005 * arch-utils.c (default_print_float_info): New function.
9006 * arch-utils.h (default_print_float_info): Prototype it.
9007 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9008 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9009 (PRINT_FLOAT_INFO): Document it.
9011 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9012 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9013 (PRINT_FLOAT_INFO): Define.
9015 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9017 * win32-nat.c (_initialize_check_for_gdb_ini):
9018 Add typecast to sprintf argument to suppress a warning.
9020 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9022 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9023 to allow easier handling of pass state.
9024 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9025 that gives exception name and address.
9026 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9027 and set last_sig value to ourstatus->value.sig. Some missing
9029 (child_continue): Correctly report continue_status.
9030 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9031 TARGET_SIGNAL_0 (new default value).
9032 (child_resume): consider sig argument passed to decide if
9033 the exception should be passed to debuggee or not.
9035 2002-02-05 Michael Snyder <msnyder@redhat.com>
9037 * regcache.c (fetch_register): Call target_fetch_register
9038 only if we don't call FETCH_PSEUDO_REGISTER.
9039 (store_register): Call target_store_register only if we
9040 don't call STORE_PSEUDO_REGISTER.
9042 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9044 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9045 ELF_MAKE_MSYMBOL_SPECIAL.
9046 * gdbarch.c, gdbarch.h: Regenerate.
9047 * arch-utils.c (default_make_msymbol_special): New function.
9048 * arch-utils.h (default_make_msymbol_special): Export.
9049 * elfread.c (elf_symtab_read): Compile use of
9050 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9052 * coffread.c (coff_symtab_read): Ditto, for
9053 COFF_MAKE_MSYMBOL_SPECIAL.
9055 2002-02-05 Jim Blandy <jimb@redhat.com>
9057 * solib-svr4.c (svr4_truncate_ptr): New function.
9058 (svr4_relocate_section_addresses): Do the address arithmetic with
9059 the appropriate truncation for target addresses, even when
9060 CORE_ADDR is larger than a target address.
9062 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9064 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9067 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9069 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9072 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9074 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9076 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9078 * gdbserver/linux-low.c: Remove unused include files.
9080 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9082 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9083 (read_inferior_memory): Use it.
9084 (write_inferior_memory): Likewise.
9086 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9088 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9089 grubbing through sys_errlist.
9091 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9093 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9095 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9096 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9098 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9100 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9101 (do_sfunc, set_cmd_sfunc): New functions.
9103 * command.h (struct cmd_list_element): Add field func.
9104 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9105 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9106 * cli/cli-decode.h: Ditto.
9108 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9109 (help_all, help_cmd_list): Ditto.
9110 (find_cmd, complete_on_cmdlist): Ditto.
9111 * top.c (execute_command): Ditto.
9113 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9116 * infcmd.c (notice_args_read): Fix function signature.
9118 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9119 * cli/cli-decode.c (add_set_cmd): Ditto.
9120 * utils.c (initialize_utils): Ditto.
9121 * maint.c (_initialize_maint_cmds): Ditto.
9122 * infrun.c (_initialize_infrun): Ditto.
9123 * demangle.c (_initialize_demangler): Ditto.
9124 * remote.c (add_packet_config_cmd): Ditto.
9125 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9126 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9127 * proc-api.c (_initialize_proc_api): Ditto.
9128 * kod.c (_initialize_kod): Ditto.
9129 * valprint.c (_initialize_valprint): Ditto.
9130 * top.c (init_main): Ditto.
9131 * infcmd.c (_initialize_infcmd): Ditto.
9132 * corefile.c (_initialize_core): Ditto.
9133 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9134 * arch-utils.c (initialize_current_architecture): Ditto.
9135 (_initialize_gdbarch_utils): Ditto.
9136 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9138 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9139 * wince.c (_initialize_inftarg): Ditto.
9140 * symfile.c (_initialize_symfile): Ditto.
9141 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9142 * language.c (_initialize_language): Ditto.
9143 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9145 2002-02-04 Michael Snyder <msnyder@redhat.com>
9147 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9149 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9151 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9152 Add rules for building the register data files.
9154 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9156 * regformats/regdat.sh: Add braces to the definition of
9157 expedite_regs_${arch}.
9159 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9161 * regformats/regdef.h (struct reg): Add comment describing the
9162 requirements for offset and size fields.
9164 2002-02-04 Andreas Schwab <schwab@suse.de>
9166 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9167 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9169 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9171 * gdbarch.sh (copyright): Update years in generated header.
9172 (SMASH_TEXT_ADDRESS): Add rule.
9173 * gdbarch.h, gdbarch.c: Re-generate.
9174 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9175 * dbxread.c: Likewise.
9176 * dwarfread.c: Likewise.
9177 * elfread.c: Likewise.
9178 * somread.c: Likewise.
9180 * arm-tdep.c (arm_smash_text_address): New function.
9181 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9183 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9185 Add support for hardware watchpoints on win32 native.
9186 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9187 CONTEXT_DEBUG_REGISTERS.
9188 (dr variable): New variable. Static array containing a local copy
9190 (debug_registers_changed): New variable. Reflects when debug registers
9191 are changed and need to be written to inferior.
9192 (debug_registers_used): New variable. Reflects when any debug register
9193 was set, used when new threads are created.
9194 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9196 (thread_rec): Set dr array if id is the thread of current_event .
9197 (child_continue, child_resume): Change the debug registers for all
9198 threads if debug_registers_changed.
9199 (child_add_thread): Change the debug registers if debug_registers_used.
9200 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9201 Link nm.h to new nm-cygwin.h file.
9202 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9203 of hardware registers.
9205 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9207 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9208 Restore behavour broken by 2002-01-20 Andrew Cagney
9209 <ac131313@redhat.com> IEEE_FLOAT removal.
9211 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9213 * c-valprint.c (c_val_print): Pass a proper valaddr to
9214 cp_print_class_method.
9215 * valops.c (search_struct_method): If there is only one method
9216 and args is NULL, return that method.
9218 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9220 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9221 accessing tag_name directly.
9223 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9225 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9226 of accessing tag_name directly.
9228 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9231 * gdbtypes.c (replace_type): New function.
9232 * gdbtypes.h (replace_type): Add prototype.
9233 * stabsread.c (read_type): Use replace_type.
9235 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9237 * Makefile.in (memattr.o): Add missing dependencies rule.
9239 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9241 * breakpoint.c (break_at_finish_command): Really export.
9242 (break_at_finish_at_depth_command): Ditto.
9243 (tbreak_at_finish_command): Ditto.
9244 * hppa-tdep.c: Include completer.h.
9245 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9246 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9248 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9250 * utils.c (do_write): New function.
9251 (error_stream): Rewrite combining the code from error_begin and
9253 (verror): Rewrite using error_stream.
9254 (error_begin): Delete function.
9256 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9258 * utils.c (error_begin): Make static.
9259 * defs.h (error_begin): Delete declaration.
9261 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9262 (decode_line_1): Use cplusplus_error instead of error_begin,
9263 cplusplus_hint and return_to_top_level.
9264 * coffread.c (coff_symfile_read): Use error instead of error_begin
9265 and return_to_top_level.
9266 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9268 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9270 * language.h (type_error, range_error): Make string parameter
9272 * language.c (warning_pre_print): Delete extern declaration.
9273 * dwarfread.c (warning_pre_print): Ditto.
9274 * language.c (type_error, range_error): Rewrite to use verror and
9275 vwarning instead of warning_begin.
9277 2002-02-01 Michael Snyder <msnyder@redhat.com>
9279 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9280 (set_ignore_count): Move misplaced comment back where it belongs.
9282 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9284 * command.h (NO_FUNCTION): Delete macro.
9285 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9286 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9287 * tracepoint.c (_initialize_tracepoint): Ditto.
9288 * cli/cli-decode.c (add_set_cmd): Ditto.
9289 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9291 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9293 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9294 Update ``this'' pointer when calling virtual functions.
9296 2002-02-01 Michael Snyder <msnyder@redhat.com>
9298 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9299 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9301 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9303 * regformats/reg-arm.dat: New file.
9304 * regformats/reg-i386.dat: New file.
9305 * regformats/reg-ia64.dat: New file.
9306 * regformats/reg-m68k.dat: New file.
9307 * regformats/reg-mips.dat: New file.
9308 * regformats/reg-ppc.dat: New file.
9309 * regformats/reg-sh.dat: New file.
9310 * regformats/regdef.h: New file.
9311 * regformats/regdat.sh: New file.
9313 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9315 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9316 (arm_frame_args_address, arm_frame_locals_address): New functions.
9317 (arm_frame_num_args): New function.
9318 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9319 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9320 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9322 2002-01-31 Michael Snyder <msnyder@redhat.com>
9324 * breakpoint.c (break_at_finish_command): Export.
9325 (break_at_finish_at_depth_command): Export.
9326 (tbreak_at_finish_command): Export.
9327 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9328 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9329 "tbreak" commands, which are HPPA specific.
9331 * printcmd.c (disassemble_command): Remove an ancient
9332 artifact of an old merge.
9334 * symfile.h (enum overlay_debugging_state):
9335 Define enum constant values for overlay mode.
9336 * symfile.c (overlay_debugging): Use enums instead of literals.
9337 (overlay_is_mapped, overlay_auto_command,
9338 overlay_manual_command): Ditto.
9340 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9341 breakpoint_here_p, breakpoint_inserted_here_p,
9342 breakpoint_thread_match, bpstat_stop_status,
9343 describe_other_breakpoints, check_duplicates, clear_command):
9344 Coding standard fixes.
9346 * target.c (target_xfer_memory): Add spaces, coding standard.
9347 (do_xfer_memory): Add missing line to trust-readonly
9348 code: check bfd SEC_READONLY flag for section.
9350 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9352 * PROBLEMS: Fix typo, 5.1->5.1.1.
9354 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9356 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9357 data symbols, since we search based on textlow and texthigh.
9358 (find_pc_sect_symtab): Likewise.
9360 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9362 * defs.h (vwarning): Declare.
9363 * utils.c (vwarning): New function.
9364 (warning): Call vwarning.
9365 (warning_begin): Delete function.
9367 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9368 the warning message.
9369 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9372 2002-01-30 Michael Snyder <msnyder@redhat.com>
9374 * NEWS: Mention "set trust-readonly-sections" command.
9375 Mention generate-core-file command.
9377 2002-01-15 Michael Snyder <msnyder@redhat.com>
9379 * target.c: New command, "set trust-readonly-sections on".
9380 (do_xfer_memory): Honor the suggestion to trust readonly sections
9381 by reading them from the object file instead of from the target.
9382 (initialize_targets): Register command "set trust-readonly-sections".
9384 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9386 * parse.c (target_map_name_to_register): Simplify, search regs and
9387 pseudo-regs using a single loop.
9389 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9391 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9393 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9395 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9396 * config/i386/i386v42mp.mh: Add i387-nat.o .
9397 * i386v4-nat.c: Include i387-nat.h.
9398 (supply_fpregset): Use i387_supply_fsave.
9399 (fill_fpregset): Use i387_fill_fsave.
9401 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9403 * arm-tdep.c (arm_call_dummy_words): Define.
9404 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9405 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9406 (CALL_DUMMY_WORDS): Define.
9407 (arm_call_dummy_words): Declare.
9408 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9409 (arm_linux_call_dummy_words): Declare.
9411 2002-01-30 Andreas Schwab <schwab@suse.de>
9413 * m68klinux-nat.c: Fix last change to use regcache_collect
9414 instead of referencing registers[] directly.
9416 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9418 * parse.c (target_map_name_to_register): Delete code wrapped in
9419 #ifdef REGISTER_NAME_ALIAS_HOOK.
9421 2002-01-28 Michael Snyder <msnyder@redhat.com>
9423 * regcache.c (legacy_read_register_gen): Need to be able to
9424 read pseudo-register as well as real register.
9425 (legacy_write_register_gen): Ditto.
9427 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9429 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9430 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9431 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9432 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9433 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9434 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9435 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9436 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9437 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9438 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9439 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9440 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9441 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9442 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9443 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9444 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9445 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9446 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9447 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9448 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9450 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9452 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9453 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9454 (initialize_current_architecture): Update target_byte_order using
9455 information from BFD.
9456 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9457 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9459 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9461 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9462 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9464 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9465 #ifdef INVALID_FLOAT.
9466 * infcmd.c (do_registers_info): Ditto.
9467 * values.c (unpack_double): Ditto. Add comment.
9469 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9470 already commented out.
9472 2002-01-26 Andreas Schwab <schwab@suse.de>
9474 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9475 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9476 registers and add support for PTRACE_GETREGS.
9478 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9480 GDB 5.1.1 released from 5.1 branch.
9481 * NEWS: Add 5.1.1 news.
9482 * README: Sync with 5.1 branch.
9484 2002-01-23 Fred Fish <fnf@redhat.com>
9486 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9487 stabstring on initial malloc. Reallocing will copy it for us,
9490 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9492 * Makefile.in (hpread_h): Delete.
9493 (HFILES_NO_SRCDIR): Remove hpread.h.
9494 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9495 (hpread.o): Update dependencies.
9496 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9498 * hp-psymtab-read.c: Remove file.
9499 * hp-symtab-read.c: Remove file.
9500 * hpread.h: Remove file.
9502 * hpread.c: Merge all contents of hp-psymtab-read.c,
9503 hp-symtab-read.c and hpread.h into this file, as it was prior to
9506 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9507 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9508 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9509 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9511 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9513 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9514 fill_gregset): Call gdbarch_tdep() just once, assign result to
9515 variable and use that, instead of calling the function several
9518 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9520 * configure.host: Accept sparcv9 as alias for sparc64.
9521 * configure.tgt: Likewise.
9523 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9525 * solib-aix5.c (build_so_list_from_mapfile)
9526 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9527 arguments is not reversed.
9528 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9529 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9531 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9533 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9534 modified version of obsolete sh_fetch_pseudo_register.
9535 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9536 (sh4_register_read): New function.
9537 (sh_pseudo_register_write): New function. Renamed and modified
9538 version of obsolete sh_store_pseudo_register.
9539 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9540 (sh4_register_write): New function.
9541 (sh_gdbarch_init): Remove setting of gdbarch function
9542 fetch_pseudo_register and store_pseudo_register. Remove setting of
9543 register_convert_to_raw, register_convert_to_virtual,
9544 register_convertible.
9545 (sh_sh4_register_convertible): Delete. No longer needed. All is
9546 taken care by architecture specific functions
9547 register_read/register_write.
9548 (sh_sh4_register_convert_to_virtual): Make static.
9549 (sh_sh4_register_convert_to_raw): Ditto.
9551 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9553 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9554 (floatformat_is_nan, floatformat_mantissa): Ditto.
9556 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9557 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9558 builtin_type_ieee_double_little,
9559 builtin_type_ieee_double_littlebyte_bigword,
9560 builtin_type_m68881_ext, builtin_type_i960_ext,
9561 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9562 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9563 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9564 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9566 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9568 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9569 parameter. Set frameless flag if it exists and depended of
9570 whether the scanned function is frameless or not.
9571 (xstormy16_skip_prologue): If function is frameless, return
9572 result of xstormy16_scan_prologue().
9573 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9576 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9578 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9579 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9580 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9581 sh_sh4_register_byte, sh_sh4_register_raw_size,
9582 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9583 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9584 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9585 sh_store_pseudo_register, sh_do_pseudo_register): Call
9586 gdbarch_tdep() just once, assign result to variable and use that,
9587 instead of calling the function several times.
9589 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9591 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9592 macros instead of LAST_FPU_CTRL_REGNUM.
9593 (store_register): Likewise.
9595 2002-01-21 Jim Blandy <jimb@redhat.com>
9597 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9598 is up-to-date before running the program, not just when a program
9601 2002-01-21 Fred Fish <fnf@redhat.com>
9603 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9604 when we have found all instructions we are looking for.
9606 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9608 * arm-tdep.c (arm_register_name): New function.
9609 (arm_registers_names): Make static.
9610 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9611 (arm_register_name): Declare.
9612 (REGISTER_NAME): Use it.
9614 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9615 Kevin Buettner <kevinb@redhat.com>
9617 Convert arm targets to new FRAME interface.
9618 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9619 (arm_frame_find_save_regs): Delete.
9620 (arm_frame_init_saved_regs): New.
9621 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9622 Allocate extra_info as required. Convert all uses of fsr.regs
9623 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9625 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9626 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9627 (check_prologue_cache, save_prologue_cache): Likewise.
9628 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9629 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9630 (FRAME_FIND_SAVED_REGS): Delete.
9631 (arm_frame_find_saved_regs): Delete prototype.
9632 (arm_frame_init_saved_regs): New prototype.
9633 (FRAME_INIT_SAVED_REGS): Define.
9635 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9637 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9639 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9641 From Jeff Law <law@redhat.com>:
9642 * infttrace.c: Include <sys/pstat.h>.
9643 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9644 exec file if the ttrace equivalent fails.
9646 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9648 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9649 (closeLogFile): Ditto.
9651 2002-01-20 Michael Chastain <mec@shout.net>
9653 * top.c (print_gdb_version): Bump copyright year to 2002.
9655 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9657 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9658 Zannoni and Eli Zaretskii.
9660 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9662 * buildsym.c: Update copyright years.
9663 * c-typeprint.c: Likewise.
9664 * dwarf2read.c: Likewise.
9665 * f-typeprint.c: Likewise.
9666 * gdbtypes.c: Likewise.
9667 * gdbtypes.h: Likewise.
9668 * hp-symtab-read.c: Likewise.
9669 * hpread.c: Likewise.
9670 * mdebugread.c: Likewise.
9671 * p-typeprint.c: Likewise.
9673 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9675 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9676 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9677 byte-order selectable.
9678 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9679 * arch-utils.c: Ditto.
9680 (set_endian): Ditto.
9681 (set_endian_from_file): Ditto.
9682 * gdbserver/low-sim.c (create_inferior): Ditto.
9683 * gdbarch.sh: Ditto.
9684 * gdbarch.h: Re-generate.
9685 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9686 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9687 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9688 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9689 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9690 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9691 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9692 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9694 * config/mips/tm-wince.h: Remove #undef of macro
9695 TARGET_BYTE_ORDER_SELECTABLE.
9696 * config/sh/tm-wince.h: Ditto.
9698 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9700 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9701 member function fields. Add accessor macro
9702 TYPE_FN_FIELD_ARTIFICIAL.
9703 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9704 * c-typeprint.c (c_type_print_base): Skip artificial member
9707 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9709 * f-typeprint.c: Delete unused function f_type_print_args.
9710 * p-typeprint.c: Delete unused function pascal_type_print_args.
9712 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9714 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9715 comment. Add ``artificial'' to ``union field_location''.
9717 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9719 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9720 * mdebugread.c (parse_symbol): Likewise.
9721 * stabsread.c (define_symbol): Likewise.
9722 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9723 initializing TYPE_FIELD_BITPOS to n (obsolete).
9724 (hpread_doc_function_type): Likewise.
9725 * hpread.c (hpread_function_type): Likewise.
9727 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9729 * configure.in (host_makefile_frag): Only require a host makefile
9730 fragment when a native build.
9731 * configure: Re-generate.
9733 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9735 * doublest.h (floatformat_from_type): Declare.
9736 * doublest.c (floatformat_from_type): New function.
9737 (convert_typed_floating): Use.
9739 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9740 call to function floatformat_from_type.
9742 * gdbarch.sh (IEEE_FLOAT): Delete.
9743 * gdbarch.h, gdbarch.c: Re-generate.
9744 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9745 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9746 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9747 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9748 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9749 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9750 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9751 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9752 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9753 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9754 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9755 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9757 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9758 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9759 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9760 * sh-tdep.c (sh_gdbarch_init): Ditto.
9761 * mips-tdep.c (mips_gdbarch_init): Ditto.
9762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9763 * cris-tdep.c (cris_gdbarch_init): Ditto.
9765 2002-01-20 Jiri Smid <smid@suse.cz>
9767 * configure.host, configure.tgt: Support x86-64.
9768 * NEWS: Note new target x86-64.
9770 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9771 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9772 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9773 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9774 x86-64-linux-nat.o): Fix dependencies.
9776 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9778 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9779 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9780 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9781 * config/sparc/xm-sun4os4.h: Delete file.
9782 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9784 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9786 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9787 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9788 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9789 * config/i386/i386lynx.mh (XM_FILE): Delete.
9790 * config/rs6000/xm-rs6000ly.h: Delete file.
9791 * config/sparc/xm-sparclynx.h: Delete file.
9792 * config/m68k/xm-m68klynx.h: Delete file.
9793 * config/i386/xm-i386lynx.h: Delete file.
9794 * config/xm-lynx.h: Delete file.
9795 * config/djgpp/fnchange.lst: Update.
9797 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9799 * alpha-tdep.c (alpha_register_byte): New function.
9800 (alpha_register_raw_size): Ditto.
9801 (alpha_register_virtual_size): Ditto.
9802 (alpha_skip_prologue_internal): Renamed from
9803 alpha_skip_prologue.
9804 (alpha_skip_prologue): New version that calls
9805 alpha_skip_prologue_internal.
9806 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9807 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9808 second argument from alpha_skip_prologue.
9809 (REGISTER_BYTE): Use alpha_register_byte.
9810 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9811 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9812 (FRAMELESS_FUNCTION_INVOCATION): Use
9813 generic_frameless_function_invocation_not.
9814 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9815 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9817 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9819 * config/mips/xm-news-mips.h: Delete file.
9820 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9822 * config/m88k/xm-m88k.h: Delete file.
9823 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9824 * config/m88k/xm-delta88v4.h: Ditto.
9825 * config/m88k/xm-delta88.h: Ditto.
9827 * config/alpha/xm-fbsd.h: Delete file.
9828 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9830 * config/sparc/xm-sparc.h: Delete file.
9831 * Makefile.in (xm-sun4os4.h): Delete dependency.
9832 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9833 * config/sparc/xm-sun4os4.h: Ditto.
9834 * config/sparc/xm-linux.h: Ditto.
9836 * config/i386/xm-windows.h: Delete file.
9838 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9840 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9841 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9843 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9845 * alpha-tdep.c (alpha_call_dummy_words): New.
9846 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9847 (CALL_DUMMY_P): Define.
9848 (CALL_DUMMY_WORDS): Define.
9849 (SIZEOF_CALL_DUMMY_WORDS): Define.
9851 2002-01-19 Per Bothner <per@bothner.com>
9853 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9854 isn't NULL, which can happen with some gcj-3.x-produced code.
9856 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9858 * alpha-tdep.c (alpha_register_virtual_type): New function.
9859 (alpha_init_frame_pc_first): Ditto.
9860 (alpha_fix_call_dummy): Ditto.
9861 (alpha_store_struct_return): Ditto.
9862 (alpha_extract_struct_value_address): Ditto.
9863 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9864 alpha_register_virtual_type.
9865 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9866 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9867 alpha_extract_struct_value_address.
9868 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9869 (INIT_FRAME_PC): Use init_frame_pc_noop.
9870 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9872 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9874 * i386gnu-nat.c: Include "i386-tdep.h".
9875 (fetch_fpregs): Simplify code dealing with uninitialized floating
9876 point states such that it doesn't require FP7_REGNUM.
9878 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9880 * alpha-tdep.c (frame_extra_info): New.
9881 (alpha_find_saved_regs): Make static. Use
9883 (alpha_frame_init_saved_regs): New function.
9884 (alpha_frame_saved_pc): Use frame->extra_info.
9885 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9886 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9887 (init_extra_frame_info): Rename to...
9888 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9889 (alpha_print_extra_frame_info): New function.
9890 (alpha_frame_locals_address): Ditto.
9891 (alpha_frame_args_address): Ditto.
9892 (alpha_pop_frame): Use frame->extra_info.
9893 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9894 alpha_frame_args_address.
9895 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9896 (alpha_find_saved_regs): Remove prototype.
9897 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9898 (EXTRA_FRAME_INFO): Remove.
9899 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9900 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9902 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9904 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9905 (alpha_cannot_fetch_register): Ditto.
9906 (alpha_cannot_store_register): Ditto.
9907 (alpha_register_convertible): Ditto.
9908 (alpha_use_struct_convention): Ditto.
9909 * config/alpha/tm-alpha.h: Update copyright years.
9910 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9911 (INNER_THAN): Use core_addr_lessthan.
9912 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9913 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9914 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9915 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9916 (FRAME_CHAIN): Remove unnecessary cast.
9918 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9920 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9923 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9925 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9926 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9927 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9928 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9929 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9930 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9931 * x86-64-linux-nat.c: Ditto.
9933 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9935 * alpha-tdep.c (alpha_register_name): New function.
9936 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9937 (REGISTER_NAME): Define.
9939 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9941 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9943 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9945 * alpha-tdep.c: Update copyright years.
9946 (alpha_next_pc): New function.
9947 (alpha_software_single_step): Ditto.
9948 * config/alpha/tm-alpha.h: Add prototype for
9949 alpha_software_single_step.
9951 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9953 * alphabsd-nat.c: Update copyright years.
9954 (fill_gregset): Use regcache_collect.
9955 (fill_fpregset): Likewise.
9956 (fetch_inferior_registers): Only fetch integer registers
9957 if requested to do so.
9958 (store_inferior_registers): Only store integer registers
9959 if requested to do so.
9961 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9963 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9964 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9965 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9966 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9967 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9968 * config/arm/linux.mh (XDEPFILES): Delete.
9969 * config/arm/nbsd.mh (XDEPFILES): Delete.
9970 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9971 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9972 * config/i386/i386m3.mh (XDEPFILES): Delete.
9973 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9974 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9975 * config/i386/fbsd.mh (XDEPFILES): Delete.
9976 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9977 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9978 * config/i386/i386v4.mh (XDEPFILES): Delete.
9979 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9980 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9981 * config/i386/i386aix.mh (XDEPFILES): Delete.
9982 * config/i386/go32.mh (XDEPFILES): Delete.
9983 * config/i386/cygwin.mh (XDEPFILES): Delete.
9984 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9985 * config/i386/i386mach.mh (XDEPFILES): Delete.
9986 * config/i386/i386v32.mh (XDEPFILES): Delete.
9987 * config/i386/linux.mh (XDEPFILES): Delete.
9988 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9989 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9990 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9991 * config/i386/i386sco.mh (XDEPFILES): Delete.
9992 * config/i386/i386v.mh (XDEPFILES): Delete.
9993 * config/i386/nbsd.mh (XDEPFILES): Delete.
9994 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9995 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9996 * config/i386/symmetry.mh (XDEPFILES): Delete.
9997 * config/i386/obsd.mh (XDEPFILES): Delete.
9998 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9999 * config/ia64/linux.mh (XDEPFILES): Delete.
10000 * config/ia64/aix.mh (XDEPFILES): Delete.
10001 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10002 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10003 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10004 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10005 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10006 * config/m68k/linux.mh (XDEPFILES): Delete.
10007 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10008 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10009 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10010 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10011 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10012 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10013 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10014 * config/m88k/delta88.mh (XDEPFILES): Delete.
10015 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10016 * config/m88k/m88k.mh (XDEPFILES): Delete.
10017 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10018 * config/mips/linux.mh (XDEPFILES): Delete.
10019 * config/mips/irix6.mh (XDEPFILES): Delete.
10020 * config/mips/irix5.mh (XDEPFILES): Delete.
10021 * config/mips/irix4.mh (XDEPFILES): Delete.
10022 * config/mips/irix3.mh (XDEPFILES): Delete.
10023 * config/mips/decstation.mh (XDEPFILES): Delete.
10024 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10025 (NATDEPFILES): Move core-aout.o to here.
10026 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10027 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10028 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10029 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10030 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10031 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10032 * config/pa/hpux11.mh (XDEPFILES): Delete.
10033 * config/powerpc/aix.mh (XDEPFILES): Delete.
10034 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10035 * config/powerpc/linux.mh (XDEPFILES): Delete.
10036 * config/romp/rtbsd.mh: Rename XDEPFILES.
10037 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10038 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10039 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10040 * config/s390/s390.mh (XDEPFILES): Delete.
10041 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10042 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10043 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10044 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10045 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10046 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10047 * config/sparc/linux.mh (XDEPFILES): Delete.
10048 * config/vax/vaxult.mh (XDEPFILES): Delete.
10049 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10050 * Makefile.in (DEPFILES): Remove XDEPFILES.
10052 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10054 * utils.c (internal_verror): Fix comments, default is yes not no.
10055 Update queries to match. Default to quit and dump core.
10057 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10059 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10061 * defs.h, event-top.c, gdbcmd.h: Ditto.
10062 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10063 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10064 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10065 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10066 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10067 * mi/mi-main.c:Ditto.
10069 * stack.c, symfile.c: Update copyright.
10071 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10073 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10074 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10075 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10076 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10078 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10080 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10081 * gdbserver/low-lynx.c (myattach): Likewise.
10082 * gdbserver/low-nbsd.c (myattach): Likewise.
10083 * gdbserver/low-sim.c (myattach): Likewise.
10084 * gdbserver/low-sparc.c (myattach): Likewise.
10085 * gdbserver/low-sun3.c (myattach): Likewise.
10087 * gdbserver/low-linux.c (myattach): New function.
10089 * gdbserver/server.c (attach_inferior): New function.
10090 (main): Handle "--attach".
10092 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10094 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10097 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10099 * c-typeprint.c (is_type_conversion_operator): Add additional
10100 check for non-conversion operators.
10102 2002-01-15 Michael Snyder <msnyder@redhat.com>
10104 * linux-proc.c: Add "info proc" command, a la procfs.c.
10105 (read_mapping): New function, abstract and re-use code.
10106 (linux_find_memory_regions): Use new func read_mapping.
10107 (linux_info_proc_cmd): New function, implement "info proc".
10108 (_initialize_linux_proc): Add new command "info proc".
10110 2002-01-15 Michael Snyder <msnyder@redhat.com>
10112 * symfile.c (generic_load): Use bfd_map_over_sections method
10113 instead of manipulating bfd structure members directly.
10114 (add_section_size_callback): New function, bfd sections callback
10115 used by generic_load.
10116 (load_sections_callback): New function, bfd sections callback
10117 used by generic_load.
10119 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10121 [Based on work by Jim Blandy]
10122 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10123 (builtin_type_vec128): Export.
10124 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10126 (builtin_type_vec128): New builtin type for 128 bit vector
10128 (build_gdbtypes): Initialize builtin_type_v16qi and
10129 builtin_type_v8hi. Create the vec128 register builtin type
10131 (build_builtin_type_vec128): New function.
10132 (_initialize_gdbtypes): Register builtin_type_v16qi and
10133 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10134 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10135 AltiVec register to new builtin type.
10137 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10139 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10142 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10144 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10145 CLEAN_UP_REGISTER_VALUE.
10146 * regcache.c (supply_register): Update only call.
10148 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10150 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10151 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10152 a29k-*-vxworks* targets as obsolete.
10154 2002-01-14 Michael Snyder <msnyder@redhat.com>
10156 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10157 until we can resolve portability issues.
10158 * gregset.h: Remove references to fpxregs.
10159 * gcore.c (gcore_command): Initialize note_sec to NULL.
10161 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10163 * signals.c (target_signal_to_name): Rewrite. Only use
10164 signals[].name when in bounds and non-NULL.
10166 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10168 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10169 * signals.c (target_signal_to_name): Verify that SIG is within the
10170 bounds of the signals array.
10172 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10174 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10176 2002-01-13 Keith Seitz <keiths@redhat.com>
10178 * stack.c (print_frame_info_base): Print the frame's pc
10179 only if when print_frame_info_listing_hook is not defined.
10181 2002-01-13 Keith Seitz <keiths@redhat.com>
10183 * varobj.c (varobj_set_value): Make sure that there were no
10184 errors evaluating the object before attempting to set its
10186 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10187 so this offset adjustment is no longer necessary.
10188 (create_child): Don't set the error flag if the child is
10189 a CPLUS_FAKE_CHILD.
10190 (value_of_child): If value_fetch_lazy fails, return NULL
10191 so that callers will be notified that an error occurred.
10192 (c_value_of_variable): Delay check of variable's validity
10193 until later. We actually want all structs and unions to have
10195 Do not return "???" for variables which could not be evaluated.
10196 This error condition must be returned to the caller so that it
10197 can get the error condition from gdb.
10198 (cplus_name_of_child): Adjust index for vptr before figuring
10199 out the name of the child.
10200 (cplus_value_of_child): If a child's (real) parent is not valid,
10201 don't even bother trying to give a value for it. Just return
10202 an error. Change all instances in this function.
10203 (cplus_type_of_child): If our parent is one of the "fake"
10204 parents, we need to get at the type of the real parent, and
10205 derive the child's true type using this information.
10207 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10209 From 2002-01-09 John Marshall <johnm@falch.net>:
10210 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10211 sources.redhat.com, and tweak some related URLs which had
10212 suffered from linkrot.
10214 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10217 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10218 structures passed in registers.
10220 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10222 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10223 white space which prevented compilation. Reported by DSK
10224 <dsk@student.unsw.edu.au>.
10226 2002-01-11 Michael Snyder <msnyder@redhat.com>
10228 * symfile.c (build_section_addr_info_from_section_tab):
10229 Use bfd access method instead of manipulating bfd directly.
10230 (syms_from_objfile): Ditto.
10231 (simple_overlay_update_1): Ditto.
10232 (simple_overlay_update): Ditto.
10233 (generic_load): Ditto.
10234 (overlay_unmapped_address): FIXME comment, bfd access methods.
10235 (sections_overlap): FIXME comment, bfd access methods.
10236 (pc_in_mapped_range): FIXME comment, bfd access methods.
10237 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10238 (section_is_mapped): FIXME comment, bfd access methods.
10239 (section_is_overlay): FIXME comment, bfd access methods.
10241 * symfile.c (generic_load): Whitespace and long line cleanups.
10242 Remove duplicate variable, change several local variables to
10243 more appropriate data types.
10244 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10246 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10248 From Peter Schauer:
10249 * language.c (longest_local_hex_string_custom): Use phex_nz to
10250 convert NUM to a hex string.
10252 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10254 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10256 Update Copyright year.
10258 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10260 * language.c (longest_raw_hex_string): Delete unused function.
10262 2002-01-11 Petr Sorfa <petrs@caldera.com>
10264 * MAINTAINERS (write-after-approval): Add myself.
10265 * dwarf2read.c (read_tag_string_type): Handling of
10267 (read_tag_string_type): FORTRAN fix to prevent propagation of
10269 (set_cu_language): Handling of DW_LANG_Fortran95
10271 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10273 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10274 GETPID(inferior_ptid).
10275 (store_inferior_registers): Likewise.
10277 2002-01-10 Jason Merrill <jason@redhat.com>
10279 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10282 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10284 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10285 and bfd/elf32-sh-nbsd.c.
10287 2002-01-10 Michael Snyder <msnyder@redhat.com>
10289 * NEWS: Mention --pid and corefile/proc-id behavior change.
10291 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10292 * gcore.c: Include cli/cli-decode.h instead of command.h.
10294 * main.c (captured_main): Add new command line option "--pid".
10295 If the second command line argument (following the symbol-file)
10296 begins with a digit, try to attach to it before trying to open
10298 (print_gdb_help): Document the "--pid" argument.
10300 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10302 * completer.c (command_completer): New function.
10304 * completer.h <command_completer>: Add prototype.
10306 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10307 completer for the "help" command.
10309 2002-01-09 Jason Merrill <jason@redhat.com>
10311 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10313 2002-01-09 Michael Snyder <msnyder@redhat.com>
10315 * i386-linux-nat.c (fill_fpxregset): Make global.
10316 (store_fpxregset): Ditto.
10318 * gregset.h (gdb_fpxregset_t): Define.
10319 (supply_fpxregset): Prototype.
10320 (fill_fpxregset): Prototype.
10322 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10324 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10326 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10327 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10328 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10330 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10332 * MAINTAINERS: Update target maintainer rules so that any
10333 Maintainer can approve a tested patch for a maintenance-only
10336 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10338 * MAINTAINERS (write-after-approval): Add myself.
10340 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10343 2002-01-08 Michael Snyder <msnyder@redhat.com>
10345 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10346 real name of the executable, rather than the /proc name.
10348 2002-01-03 Michael Snyder <msnyder@redhat.com>
10350 Implement a "generate-core-file" command in gdb, save target state.
10351 * gcore.c: New file. Implement new command 'generate-core-file'.
10352 Save a corefile image of the current state of the inferior.
10353 * linux-proc.c: Add linux-specific code for saving corefiles.
10354 * target.h (struct target_ops): Add new target vectors for saving
10355 corefiles; to_find_memory_regions and to_make_corefile_notes.
10356 (target_find_memory_regions): New macro.
10357 (target_make_corefile_notes): New macro.
10358 * target.c (update_current_target): Inherit new target methods.
10359 (dummy_find_memory_regions): New place-holder method.
10360 (dummy_make_corefile_notes): New place-holder method.
10361 (init_dummy_target): Initialize new dummy target vectors.
10362 * exec.c (exec_set_find_memory_regions): New function.
10363 Allow the exec_ops vector for memory regions to be taken over.
10364 (exec_make_note_section): New function, target vector method.
10365 * defs.h (exec_set_find_memory_regions): Export prototype.
10366 * procfs.c (proc_find_memory_regions): New function, corefile method.
10367 (procfs_make_note_section): New function, corefile method.
10368 (init_procfs_ops): Set new target vector pointers.
10369 (find_memory_regions_callback): New function.
10370 (procfs_do_thread_registers): New function.
10371 (procfs_corefile_thread_callback): New function.
10372 * sol-thread.c (sol_find_memory_regions): New function.
10373 (sol_make_note_section): New function.
10374 (init_sol_thread_ops): Initialize new target vectors.
10375 * inftarg.c (inftarg_set_find_memory_regions): New function.
10376 Allow to_find_memory_regions vector to be taken over.
10377 (inftarg_set_make_corefile_notes): New function.
10378 Allow to_make_corefile_notes vector to be taken over.
10379 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10380 interface layer if not target_has_execution (may be a corefile).
10381 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10382 * config/sparc/sun4sol2.mh: Ditto.
10383 * config/alpha/alpha-linux.mh: Ditto.
10384 * config/arm/linux.mh: Ditto.
10385 * config/i386/x86-64linux.mh: Ditto.
10386 * config/ia64/linux.mh: Ditto.
10387 * config/m68k/linux.mh: Ditto.
10388 * config/mips/linux.mh: Ditto.
10389 * config/powerpc/linux.mh: Ditto.
10390 * config/sparc/linux.mh: Ditto.
10392 2002-01-07 Michael Snyder <msnyder@redhat.com>
10394 * arm-linux-nat.c: Remove references to regcache.c internal data
10395 (registers[] and register_valid[]).
10397 2002-01-07 Michael Snyder <msnyder@redhat.com>
10399 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10400 so that attaching to a pid will automatically read the process's
10401 symbol file and shlibs.
10402 * Makefile.in: Add rule for linux-proc.o.
10403 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10404 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10405 * config/arm/linux.mh: Ditto.
10406 * config/i386/linux.mh: Ditto.
10407 * config/i386/x86-64linux.mh: Ditto.
10408 * config/ia64/linux.mh: Ditto.
10409 * config/m68k/linux.mh: Ditto.
10410 * config/mips/linux.mh: Ditto.
10411 * config/powerpc/linux.mh: Ditto.
10412 * config/sparc/linux.mh: Ditto.
10414 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10416 * win32-nat.c: Add i386-tdep.h dependency.
10418 2002-01-07 Michael Snyder <msnyder@redhat.com>
10420 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10421 instead of bfd_get_arch_size. Don't bail out just because
10422 there's no exec_bfd.
10424 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10425 * p-valprint.c (pascal_object_print_value): Ditto.
10426 * somread.c (som_symtab_read): Ditto.
10427 * symfile.c (simple_free_overlay_region_table): Ditto.
10428 * valops.c (value_assign): Ditto.
10430 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10431 use tilde_expand and strerror for opening save-tracepoints file.
10433 * thread-db.c (thread_db_new_objfile): Indendation fix.
10435 * infptrace.c (GDB_MAX_ALLOCA): New define.
10436 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10437 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10438 can be overridden with whatever value is appropriate to the host).
10439 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10440 alloca to allocate potentially large buffer.
10441 * rs6000-nat.c (child_xfer_memory): Ditto.
10442 * symm-nat.c (child_xfer_memory): Ditto.
10443 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10445 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10447 From Nick Clifton <nickc@redhat.com>
10448 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10450 2002-01-07 Michael Snyder <msnyder@redhat.com>
10452 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10453 Don't use exec_bfd if it's NULL.
10455 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10457 * valops.c (value_arg_coerce): Fix formatting.
10459 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10461 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10462 * gnu-nat.c: Ditto.
10464 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10466 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10467 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10468 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10469 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10470 z8k-coff have not been multi-arched. Update z8k-coff build
10473 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10475 * MAINTAINERS: Mark a29k target as obsolete.
10476 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10477 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10479 * NEWS: Note that a29k targets are obsolete.
10480 * a29k-tdep.c: Mark as obsolete.
10481 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10482 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10483 a29k-*-vxworks* targets as obsolete.
10484 * remote-adapt.c: Obsolete.
10485 * remote-eb.c: Obsolete.
10486 * remote-mm.c: Obsolete.
10487 * remote-udi.c: Obsolete.
10488 * config/a29k/a29k-udi.mt: Obsolete.
10489 * config/a29k/a29k.mt: Obsolete.
10490 * config/a29k/tm-a29k.h: Obsolete.
10491 * config/a29k/tm-vx29k.h: Obsolete.
10492 * config/a29k/vx29k.mt: Obsolete.
10494 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10496 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10497 with BFD_ENDIAN_BIG.
10499 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10501 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10502 * configure, config.in: Re-generate.
10503 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10504 * defs.h: Do not include <endian.h>.
10506 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10508 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10509 * config.in: Regenerate.
10510 * configure.in: Update copyright years.
10511 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10512 * configure: Regenerate.
10513 * i386bsd-nat.c: Update copyright years.
10514 (fill_gregset): Use regcache_collect.
10515 (fetch_inferior_registers): Only fetch integer registers
10516 if requested to do so. Add support for XMM registers
10517 using PT_GETXMMREGS.
10518 (store_inferior_registers): Only store integer registers
10519 if requested to do so. Add support for XMM registers
10520 using PT_SETXMMREGS.
10521 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10522 (store_inferior_registers): Remove.
10523 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10524 (fetch_elfcore_registers): New function.
10525 (i386nbsd_elfcore_fns): New.
10526 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10527 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10529 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10530 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10531 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10532 * config/i386/tm-nbsd.h: Update copyright years.
10533 (HAVE_SSE_REGS): Define.
10534 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10535 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10536 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10537 (SIGCONTEXT_PC_OFFSET): Remove.
10538 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10540 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10542 * configure.tgt: Remove powerpc-*-macos* target.
10543 * config/m68k/xm-mpw.h: Delete file.
10544 * config/xm-mpw.h: Delete file.
10545 * ser-mac.c: Delete file.
10546 * mpw-make.sed: Delete file.
10547 * mpw-config.in: Delete file.
10548 * mac-xdep.c: Delete file.
10549 * mac-gdb.r: Delete file.
10550 * mac-defs.h: Delete file.
10551 * mac-nat.c: Delete file.
10552 * config/powerpc/macos.mh: Delete file.
10553 * config/powerpc/macos.mt: Delete file.
10554 * config/powerpc/nm-macos.h: Delete file.
10555 * config/powerpc/tm-macos.h: Delete file.
10556 * source.c (openp, open_source_file): Remove obsolete code.
10557 * top.c (gdb_readline): Ditto.
10558 * utils.c (query): Ditto.
10559 * event-top.c (display_gdb_prompt): Ditto.
10560 * Makefile.in (ser-mac.o): Delete obsolete target.
10563 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10565 * defs.h (BIG_ENDIAN): Delete macro definition.
10566 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10567 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10568 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10569 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10570 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10571 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10572 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10573 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10574 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10575 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10576 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10577 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10578 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10579 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10580 * gdbarch.c: Re-generate.
10582 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10584 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10587 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10589 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10591 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10593 * value.h (value_ptr): Delete typedef.
10595 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10597 * i386nbsd-nat.c: Update copyright years.
10598 Include i386-tdep.h.
10600 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10602 * stabsread.c: Update copyright years.
10604 From Debashis Mahata <debashis.mahata@wipro.com>:
10605 (read_struct_fields): Deal with Sun C compiler erroneous stab
10606 output for structs and unions.
10609 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10611 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10614 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10616 * cp-abi.c: Fix whitespace.
10617 (baseclass_offset): New wrapper function.
10618 * cp-abi.h (baseclass_offset): Add prototype.
10619 (struct cp_abi_ops): Add baseclass_offset pointer.
10621 * valops.c (vb_match): Move to...
10622 * gnu-v2-abi.c (vb_match): here.
10623 * valops.c (baseclass_offset): Move to...
10624 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10626 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10628 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10629 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10630 * hpacc-abi.c (init_hpacc_ops): Likewise.
10632 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10634 * valops.c (find_overload_match): Accept obj as a
10635 reference parameter. Update it before returning.
10636 * value.h (find_overload_match): Update prototype.
10637 * eval.c (evaluate_subexp_standard): Pass object to
10638 find_overload_match by reference.
10640 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10642 * valarith.c: Replace value_ptr with struct value pointer. Remove
10643 register attribute from value declarations.
10646 * scm-lang.c (scm_lookup_name): Ditto.
10648 2002-01-03 Michael Snyder <msnyder@redhat.com>
10650 Abstract the functionality of iterating over mapped memory
10651 regions into a general purpose iterator function.
10652 * procfs.c (iterate_over_mappings): New function, general purpose
10653 iterator for memory sections.
10654 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10655 (solib_mappings_callback): New function, callback for above.
10656 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10657 (info_mappings_callback): New function, callback for above.
10659 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10661 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10663 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10664 * i386-tdep.c: Include "elf-bfd.h".
10665 (process_note_abi_tag_sections): New function.
10666 (i386_gdbarch_init): Add code to recognize various OS/ABI
10669 * maint.c (_initialize_maint_cmds): Add missing \ in
10672 For older changes see ChangeLog-2001
10678 version-control: never