1 2002-08-21 Keith Seitz <keiths@redhat.com>
3 * gdb-events.sh: Add target-changed event.
4 * gdb-events.c: Regenerated.
5 * gdb-events.c: Regenerated.
6 * valops.c (value_assign): Add target-changed event notification
7 to inlval_register, lval_memory, and lval_reg_frame_relative.
9 2002-08-21 Joel Brobecker <brobecker@gnat.com>
11 * NEWS: Add an entry regarding the improvement of the next/step
12 operation on Alpha Tru64 multi-processor machines.
14 2002-08-21 Andrew Cagney <ac131313@redhat.com>
16 * Makefile.in: Update dependencies for mi/ cli/ and tui/
18 * Makefile.in: Update all _h macro definitions.
19 * Makefile.in (install-gdbtk): Move to install section.
20 (rdi-share/libangsd.a): Move to end of file.
22 2002-08-19 Andrew Cagney <ac131313@redhat.com>
24 * frame.c (frame_register_unwind): When a register, set addrp to
27 2002-08-20 Michael Snyder <msnyder@redhat.com>
29 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
30 used locally, so move them from the target machine header to here.
31 (mips_set_processor_type, mips_register_name, mips32_next_pc,
32 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
34 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
36 2002-08-20 Andrew Cagney <cagney@redhat.com>
38 * NEWS: Mention that the Apollo line was made obsolete.
39 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
40 m68*-hp-hpux* obsolete.
41 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
42 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
43 * buildsym.c (make_blockvector): Make static.
44 * buildsym.h (make_blockvector): Make extern declaration obsolete.
45 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
46 (ALLDEPFILES): Remove dstread.c.
47 (dstread.o): Obsolete make rule.
48 * dstread.c: Makefile obsolete.
50 * config/m68k/hp300hpux.mt: Ditto.
51 * config/m68k/hp300hpux.mh: Ditto.
52 * config/m68k/hp300bsd.mt: Ditto.
53 * config/m68k/hp300bsd.mh: Ditto.
54 * config/m68k/apollo68b.mt: Ditto.
55 * config/m68k/apollo68v.mh: Ditto.
56 * config/m68k/apollo68b.mh: Ditto.
58 2002-08-20 Michael Snyder <msnyder@redhat.com>
60 * mips-tdep.c (mips_in_return_stub): Make static.
61 (mips_gdbarch_init): Set in_solib_return_trampoline.
62 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
64 2002-08-20 Michael Snyder <msnyder@redhat.com>
66 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
67 * gdbarch.c, gdbarch.h: Regenerate.
68 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
70 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
72 2002-08-20 Michael Snyder <msnyder@redhat.com>
74 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
75 (mips_gdbarch_init): Set skip_trampoline_code,
76 in_solib_call_trampoline.
77 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
78 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
80 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
82 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
84 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
85 vector type for ev registers.
86 (e500_pseudo_register_read): New function.
87 (e500_pseudo_register_write): New function.
88 (e500_dwarf2_reg_to_regnum): New function.
89 (PPC_UISA_NOFP_SPRS): New macro.
90 (PPC_EV_REGS): New macro.
91 (PPC_GPRS_PSEUDO_REGS): New macro.
92 (registers_e500): New register set for e500.
93 (variants): Add e500 variant.
94 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
95 before setting architectural dependent variations. Initialize ev
96 registers numbers. Add case for e500 architecture. Set the
97 number of pseudo registers.
99 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
101 * rs6000-tdep.c: Clean up comments.
103 2002-08-20 Andrew Cagney <cagney@redhat.com>
105 * h8300-tdep.c: Re-indent file.
107 2002-08-20 Jim Blandy <jimb@redhat.com>
109 * Makefile.in (LDFLAGS): Allow the configure script to establish a
111 * gdbserver/Makefile.in (LDFLAGS): Same.
113 2002-08-20 Keith Seitz <keiths@redhat.com>
115 * breakpoints.c (watch_command_1): Use internal breakpoint
116 when setting a watchpoint_scope breakpoint.
118 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
120 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
121 (build_builtin_type_vec64i): Ditto.
122 (build_builtin_type_vec128): Ditto.
123 (build_builtin_type_vec128i): Ditto.
125 2002-08-19 Michael Snyder <msnyder@redhat.com>
127 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
128 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
129 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
130 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
131 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
132 CALL_DUMMY_ADDRESS): Delete.
133 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
134 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
135 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
136 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
138 (mips_register_raw_size, mips_eabi_use_struct_convention,
139 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
140 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
141 mips_init_extra_frame_info, mips_eabi_push_arguments,
142 mips_n32n64_push_arguments, mips_push_return_address,
143 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
144 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
146 2002-08-19 Michael Snyder <msnyder@redhat.com>
148 * mips-tdep.c (mips_frame_num_args): New function.
149 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
150 frame_saved_pc, frame_args_address, frame_locals_address,
151 frame_num_args, and frame_args_skip.
152 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
153 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
154 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
155 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
157 2002-08-20 Michael Snyder <msnyder@redhat.com>
159 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
160 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
161 * mips-tdep.c (mips_store_struct_return): New function.
162 (mips_extract_struct_value_address): New function.
163 (mips_gdbarch_init): Set store_struct_return and
164 extract_struct_value_address.
166 2002-08-20 David Carlton <carlton@math.stanford.edu>
168 * dwarf2read.c (dwarf2_build_psymtabs): Check that
169 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
170 (read_file_scope): Check that line_header is nonzero before
171 decoding macro information.
173 2002-08-20 Mark Kettenis <kettenis@gnu.org>
175 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
176 flag the general-purpose registers as floating-point on targets
177 that don't support the floating-point registers.
179 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
181 * rs6000-tdep.c (altivec_register_p): Delete.
182 (rs6000_do_altivec_registers): Delete.
183 (rs6000_altivec_registers_info): Delete.
184 (rs6000_do_registers_info): Delete.
185 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
186 (rs6000_gdbarch_init): Remove setting of do_registers_info.
188 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
190 * infcmd.c (do_registers_info): Print vector registers in hex
192 (print_vector_info): Check that printing registers
194 (print_float_info): Ditto.
196 2002-08-20 Andrew Cagney <ac131313@redhat.com>
198 * mips-tdep.c (mips_gdbarch_init): Update.
199 (mips_o32_extract_return_value): Rewrite.
200 (mips_o32_store_return_value): Rewrite.
201 (mips_o32_xfer_return_value): New function.
202 (mips_xfer_register): Tweak debug print message. Allow for
203 buf_offset when dumping the value transfered.
205 2002-08-20 Andrew Cagney <ac131313@redhat.com>
207 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
208 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
209 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
210 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
211 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
213 2002-08-14 Michael Snyder <msnyder@redhat.com>
215 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
217 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
219 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
221 (P): New macro to define a register as a pseudo register.
222 (R, R4, R8, R16, FR32, R64, R0): Updated.
223 (struct variant): Add new fields for number of pseudo registers
224 and number of total registers.
225 (tot_num_registers): New macro replacing....
226 (num_registers): ...deleted macro.
227 (num_registers): New function.
228 (num_pseudo_registers): New function.
229 (variants): Update all variants to intialize new fields correctly.
230 Postpone initialization of number of pseudo regs and real regs.
231 (init_variants): New function.
232 (rs6000_gdbarch_init): Initialize variants. Update calculation of
235 2002-08-19 David Carlton <carlton@math.stanford.edu>
237 * valops.c (search_struct_field): Change error message to treat
238 return value of 0 from value_static_field as meaning that field is
240 (value_struct_elt_for_reference): Ditto.
241 * values.c (value_static_field): Treat an unresolved location the
242 same as a nonexistent symbol. Fix PR gdb/635.
243 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
244 enclosed. Fix PR gdb/574.
245 * MAINTAINERS: Add self to Write After Approval list.
247 2002-08-19 Andrew Cagney <ac131313@redhat.com>
249 * mips-tdep.c (mips_xfer_register): New function.
250 (mips_n32n64_extract_return_value): Rewrite.
251 (mips_gdbarch_init): For N32 and N64, set extract_return_value
252 instead of deprecated_extract_return_value.
254 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
256 * rs6000-tdep.c (TDEP): Delete macro.
257 (branch_dest): Replace use of TDEP macro with its body.
258 (rs6000_pop_frame): Ditto.
259 (rs6000_push_arguments): Ditto.
260 (rs6000_skip_trampoline_code): Ditto.
261 (rs6000_frame_saved_pc): Ditto.
262 (rs6000_frame_chain): Ditto.
263 (rs6000_register_name): Ditto.
264 (rs6000_register_byte): Ditto.
265 (rs6000_register_raw_size): Ditto.
266 (rs6000_register_virtual_type): Ditto.
267 (rs6000_register_convertible): Ditto.
268 (rs6000_convert_from_func_ptr_addr): Ditto.
270 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
272 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
274 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
275 MIPS_LINUX_JB_ELEMENT_SIZE.
276 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
277 for MAX_REGISTER_RAW_SIZE arrays.
278 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
279 MIPS_LINUX_JB_ELEMENT_SIZE.
281 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
283 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
285 2002-08-19 Aidan Skinner <aidan@velvet.net>
287 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
288 ada-valprint.c ada-tasks.c.
289 (YYFILES): Add ada-exp.y.
290 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
291 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
292 (ada-exp.tab.o): New target.
294 2002-08-18 Andrew Cagney <ac131313@redhat.com>
296 * regcache.c (regcache_xfer_part): New function.
297 (regcache_raw_read_part): New function.
298 (regcache_raw_write_part): New function.
299 (regcache_cooked_read_part): New function.
300 (regcache_cooked_write_part): New function.
301 * regcache.h (regcache_raw_read_part): Declare.
302 (regcache_raw_write_part): Declare.
303 (regcache_cooked_read_part): Declare.
304 (regcache_cooked_write_part): Declare.
306 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
308 * remote.c (remote_open_1): Add async_p.
309 (remote_async_open_1): Delete.
310 (open_remote_target): Delete.
311 (remote_open, extended_remote_open): Update calls to remote_open_1.
312 (remote_async_open, extended_remote_async_open): Call
313 remote_open_1 instead of remote_async_open_1.
315 2002-08-19 Mark Kettenis <kettenis@gnu.org>
317 * blockframe.c: Fix a few coding standard violations.
319 2002-08-19 Mark Kettenis <kettenis@gnu.org>
321 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
323 * config/i386/tm-i386sco5.h: ... here. File removed.
324 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
326 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
327 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
328 (TM_FILE): Set to tm-i386.h.
329 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
330 * config/i386/tm-i386v.h: Remove file.
331 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
332 instead of "i386/tm-i386v.h".
333 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
334 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
336 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
337 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
340 2002-08-18 Mark Kettenis <kettenis@gnu.org>
342 * config/i386/nm-i386v.h: Add protection against
344 (i386_register_u_addr): Remove prototype.
345 (register_u_addr): New prototype.
346 (REGISTER_U_ADDR): Redefine accordingly.
347 * i386v-nat.c: Improve several comments.
348 (i386_register_u_addr): Change signature and rename to
349 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
352 2002-08-18 Andrew Cagney <ac131313@redhat.com>
354 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
355 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
356 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
357 deprecated_extract_return_value.
358 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
359 rename mips_o32o64_push_arguments.
360 (mips_gdbarch_init): Update.
361 (mips_extract_return_value): Delete.
362 (mips_o32_extract_return_value): Clone mips_extract_return_value.
363 (mips_o64_extract_return_value): Clone mips_extract_return_value.
364 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
365 (mips_n32n64_extract_return_value): Clone
366 mips_extract_return_value.
367 (mips_store_return_value): Delete.
368 (mips_o32_store_return_value): Clone mips_store_return_value.
369 (mips_o64_store_return_value): Clone mips_store_return_value.
370 (mips_eabi_store_return_value): Clone mips_store_return_value.
371 (mips_n32n64_store_return_value): Clone mips_store_return_value.
373 2002-08-18 Aidan Skinner <aidan@velvet.net>
375 * ada-lang.c: Use gdb_string.h instead of <string.h>.
376 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
378 2002-08-18 Aidan Skinner <aidan@velvet.net>
380 * ada-lang.c: Run through gdb_indent.sh.
381 * ada-lang.h: Run through gdb_indent.sh.
382 * ada-tasks.c: Run through gdb_indent.sh.
383 * ada-typeprint.c: Run through gdb_indent.sh.
384 * ada-valprint.c: Run through gdb_indent.sh.
386 2002-08-18 Andrew Cagney <ac131313@redhat.com>
388 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
391 2002-08-18 Mark Kettenis <kettenis@gnu.org>
393 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
395 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
396 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
398 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
399 write_register_gen instead of write_register_bytes.
401 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
402 i[3456]-*-osf1mk* configurations have been made obsolete.
403 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
404 i[3456]86-*-osf1mk* hosts obsolete.
405 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
407 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
408 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
409 config/i386/i386m3.mt, config/i386/nm-m3.h,
410 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
411 config/i386/i386mk.mh, config/i386/i386mk.mt,
412 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
414 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
415 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
416 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
418 2002-08-18 Andrew Cagney <ac131313@redhat.com>
420 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
421 (hppa_value_returned_from_stack): Declare.
422 (hppa_extract_return_value): Declare.
423 * config/pa/hppa.mt: New file.
424 * configure.tgt: Recognize hppa*-*-*.
425 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
427 2002-08-18 Mark Kettenis <kettenis@gnu.org>
429 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
432 2002-08-17 Mark Kettenis <kettenis@gnu.org>
434 * top.c (gdb_rl_operate_and_get_next): Make sure
435 operate-and-get-next functions correctly even when the history
436 list is completely filled.
438 2002-08-18 Andrew Cagney <ac131313@redhat.com>
440 * MAINTAINERS (Target Instruction Set Architectures): Rename
441 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
442 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
443 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
444 already listed under Host/Native.
446 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
447 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
450 2002-08-17 Andrew Cagney <ac131313@redhat.com>
452 * config/ia64/ia64.mt: New file.
453 * config/alpha/alpha.mt: New file.
454 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
455 ia64-linux-gnu. Mention that ia64-elf is broken.
456 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
458 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
460 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
461 generic_func_frame_valid instead of func_frame_valid.
463 2002-08-16 Joel Brobecker <brobecker@gnat.com>
465 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
466 procfs appears to be broken when debugging on multi-processor
467 machines. So enable software single stepping in order to avoid
468 using the procfs interface to do next/step operations, using
469 internal breakpoints instead.
471 * infrun.c (handle_inferior_event): Readjust the stop_pc by
472 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
473 make this pc address equal to the value it would have if the
474 system stepping capability was used. Also set a new flag used
475 to ensure that we don't readjust the PC one more time later.
477 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
478 address by DECR_PC_AFTER_BREAK when software single step is
479 in use for this architecture, as this has already been taken
480 care of in handle_inferior_event().
482 2002-08-16 Joel Brobecker <brobecker@gnat.com>
484 * infrun.c (handle_inferior_event): Minor reformatting, to make
485 a rather long condition expression easier to read.
487 2002-08-16 Andrew Cagney <ac131313@redhat.com>
489 * Makefile.in (gdbtk.o): Move to end of file.
490 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
491 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
492 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
493 (gdbtk-wrapper.o, gdbres.o): Ditto.
495 2002-08-16 Andrew Cagney <ac131313@redhat.com>
497 * Makefile.in (copying.o): Separate out compile rule.
498 (hpux-thread.o, procfs.o, signals.o): Ditto.
499 (v850ice.o, z8k-tdep.o): Ditto.
500 (tui-file.o): Move to TUI section.
501 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
502 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
504 2002-08-16 Joel Brobecker <brobecker@gnat.com>
506 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
507 skip_trampoline_code, for better namespace-proofing.
509 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
511 2002-08-16 Joel Brobecker <brobecker@gnat.com>
513 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
515 2002-08-16 Joel Brobecker <brobecker@gnat.com>
517 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
518 signal, check whether we hit a breakpoint before checking for a
519 single step breakpoint. Otherwise, GDB fails to notice that a
520 breakpoint has been hit when stepping onto a breakpoint.
522 2002-08-16 Keith Seitz <keiths@redhat.com>
524 * gdb-events.sh (clear_gdb_event_hooks): New function.
525 * gdb-events.c: Regenerate.
526 * gdb-events.h: Regenerate.
528 2002-08-16 Andrew Cagney <ac131313@redhat.com>
530 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
532 * breakpoint.h (bpstat_stop_status): Add parameter names.
534 2002-08-16 Grace Sainsbury <graces@redhat.com>
536 * remote.c (remote_insert_hw_breakpoint)
537 (remote_remove_hw_breakpoint): Fix calculation of length field
540 2002-08-15 Michael Snyder <msnyder@redhat.com>
542 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
543 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
544 (supply_fpregset): Ditto.
546 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
547 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
548 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
549 (TARGET_READ_SP): Delete.
550 (DO_REGISTERS_INFO): Delete.
551 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
553 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
554 from macros to functions.
556 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
557 (mips_register_convertible, mips_register_convert_to_virtual,
558 mips_register_convert_to_raw): Make static.
559 (mips_read_sp): New function.
560 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
561 (mips_do_registers_info): Make static.
562 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
563 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
564 (mips_register_convert_from_type, mips_register_convert_to_type):
566 (mips_gdbarch_init): Set up function_start_offset,
567 register_virtual_size, pc_in_sigtramp.
569 2002-08-15 Andrew Cagney <ac131313@redhat.com>
571 * infcmd.c (vector_info): New function.
572 (_initialize_infcmd): Add command "info vector".
573 (print_vector_info): New function.
575 * gdbarch.sh (PRINT_VECTOR_INFO): New method
576 * gdbarch.h, gdbarch.c: Regenerate.
578 2002-08-15 Andrew Cagney <ac131313@redhat.com>
580 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
581 ``print_all''. Only print vector registers when ``print_all''.
583 2002-08-15 Andrew Cagney <ac131313@redhat.com>
585 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
586 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
588 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
589 Add `args' parameter.
590 * gdbarch.h, gdbarch.c: Regenerate.
592 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
594 * infcmd.c (float_info): Call print_float_info.
595 (print_float_info): New function. By default, print the
596 floating-point registers.
598 * arch-utils.h (default_print_float_info): Delete declaration.
599 * arch-utils.c (default_print_float_info): Delete function.
601 2002-08-16 Mark Kettenis <kettenis@gnu.org>
603 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
606 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
609 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
610 * configure.host: Make i[3456]86-*-aix host obsolete.
611 * configure.tgt: Make i[3456]86-*-aix target obsolete.
612 * config/i386/i386aix.mh, config/i386/i386aix.mt,
613 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
614 config/i386/xm-i386aix.h: Make files obsolete.
615 * i386aix-nat.c: Make file obsolete.
616 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
617 (i386aix-nat.o): Make target obsolete.
619 * config/i386/nm-gnu.h: Removed.
620 * config/i386/nm-i386gnu.h: New file.
621 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
622 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
624 * config/i386/tm-i386gnu.h: ... here. Removed.
625 * config/i386/xm-i386gnu.h: Removed.
626 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
627 (NAT_FILE): Set to nm-i386gnu.h.
628 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
629 * i386-tdep.c: New file.
630 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
631 (i386gnu-tdep.o): Specify dependencies.
633 2002-08-15 Mark Kettenis <kettenis@gnu.org>
635 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
636 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
637 Adjust a few comments to reflect reality a bit closer.
638 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
639 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
640 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
641 target_insert_watchpoint, target_remove_watchpoint):
643 * config/i386/nm-i386sco5.h: ... here.
644 (kernel_u_size): Add prototype. Improve a few comments and add
645 protection against multiple inclusion.
647 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
650 * uw-thread.c (SP_ARG0): Define if not already defined.
651 * config/i386/tm-i386.h (SO_ARG0): Remove define.
653 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
655 * config/i386/tm-i386.h: Don't include "regcache.h".
657 * i387-tdep.h (i387_print_float_info): New prototype.
658 * i387-tdep.c (print_i387_value, print_i387_ext,
659 print_i387_status_word, print_i387_control_word): Add `struct
660 ui_file *' argument and use it for output.
661 (i387_print_float_info): Renamed from i387_float_info. Add
662 `struct gdbarch *' and `struct ui_file *' arguments and use the
664 * i386-tdep.c: Include "i387-tdep.h".
665 (i386_gdbarch_init): Set print_float_info.
666 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
667 (FLOAT_INFO): Remove define.
669 2002-08-13 Michael Snyder <msnyder@redhat.com>
671 * mips-tdep.c (mips_push_arguments): Rename to
672 mips_eabi_push_arguments, and tune for EABI.
673 (MIPS_REGS_HAVE_HOME_P): Delete.
674 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
675 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
676 Delete references to mips_regs_have_home_p.
678 2002-08-14 Keith Seitz <keiths@redhat.com>
680 * Makefile.in (install-gdbtk): Create insight plugin directory.
681 Install plugins.tcl file.
683 2002-08-14 Keith Seitz <keiths@redhat.com>
685 * configure.in: Move SUBDIRS to near top of the file so that
686 --enable options may add things to it.
687 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
688 * configure: Regenerate.
690 2002-08-13 Michael Snyder <msnyder@redhat.com>
692 * mips-tdep.c (mips_o32o64_push_arguments): New function,
693 cloned from mips_push_arguments, tuned for o32/o64 ABI.
694 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
696 2002-08-13 Andrew Cagney <ac131313@redhat.com>
698 * vax-tdep.c (vax_get_saved_register): Delete function.
699 (vax_gdbarch_init): Update.
700 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
701 (ns32k_gdbarch_init): Update.
702 * alpha-tdep.c (alpha_get_saved_register): Delete function.
703 (alpha_gdbarch_init): Update.
705 2002-08-13 Andrew Cagney <cagney@redhat.com>
707 * regcache.c (init_regcache_descr): Overallocate the
708 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
709 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
711 (set_register_cached): Add range checking assertions. Use
714 2002-08-13 Mark Kettenis <kettenis@gnu.org>
716 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
717 numbers for MMX registers.
719 2002-08-13 Andrew Cagney <cagney@redhat.com>
721 * i386-tdep.c (i386_gdbarch_init): Use
722 generic_unwind_get_saved_register.
724 2002-08-13 Kevin Buettner <kevinb@redhat.com>
726 * procfs.c (procfs_can_use_hw_breakpoint): New function.
727 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
729 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
730 Delete. Add comment regarding this now-deleted target method.
732 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
734 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
735 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
736 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
737 real PC and the page number (if it's within the memory bank window).
738 (m68hc11_pseudo_register_write): Likewise when saving.
739 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
740 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
741 (m68hc11_register_raw_size): And use 32-bit for it.
742 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
743 16K memory bank is used by the prog; also use the virtual pc.
745 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
747 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
748 (m68hc11_gdbarch_init): Install it in gdbarch.
749 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
750 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
751 (MSYMBOL_SIZE): New for documentation.
752 (insn_return_kind): Enum to specify how a function returns.
753 (frame_extra_info): Cleanup and record the return mode.
754 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
755 register in address computation.
756 (m68hc11_get_return_insn): New to obtain the return instruction used
758 (m68hc11_frame_init_saved_regs): Take into account the return
759 instruction used by the function for far and interrupt functions.
760 (m68hc11_init_extra_frame_info): Take into account page register.
761 (m68hc11_frame_args_address): Adjust according to the return mode.
762 (show_regs): Print page register only when it's used.
764 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
766 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
767 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
768 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
770 (m68hc11_register_raw_size): Likewise.
772 2002-08-13 Andrew Cagney <cagney@redhat.com>
774 * i386-tdep.c (i386_register_name): Handle mmx registers.
775 (mmx_regnum_p): New function.
776 (i386_mmx_names): New array.
777 (mmx_num_regs): New variable.
778 (i386_pseudo_register_read): New function.
779 (i386_pseudo_register_write): New function.
780 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
782 * regcache.c (regcache_raw_read_unsigned): New function.
783 (regcache_raw_read_signed): New function.
784 * regcache.h (regcache_raw_read_unsigned): Declare.
785 (regcache_raw_read_signed): Declare.
787 2002-08-13 Andrew Cagney <cagney@redhat.com>
789 * regcache.c (regcache_raw_read_as_address): Delete function.
790 (regcache_cooked_read_signed): New function.
791 (regcache_cooked_read_unsigned): New function.
792 * regcache.h (regcache_cooked_read_signed): Declare.
793 (regcache_cooked_read_unsigned): Declare.
794 (regcache_raw_read_as_address): Delete declaration.
796 * blockframe.c (generic_read_register_dummy): Use
797 regcache_cooked_read_unsigned.
798 * i386-tdep.c (i386_extract_struct_value_address): Use
799 regcache_cooked_read_unsigned.
801 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
804 double sizes according to ELF ABI flags.
805 (gdbarch_tdep): Record elf_flags.
807 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
809 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
810 (m6812_prolog): They can appear in 68HC12 function prologue.
811 (m68hc11_frame_chain): Cleanup.
813 2002-08-12 Andrew Cagney <cagney@redhat.com>
815 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
817 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
818 (i386_linux_register_raw_size): Delete function.
819 (i386_linux_init_abi): Update.
820 * i386-tdep.c (i386_register_raw_size): Delete function.
821 (i386_register_byte): Delete function.
822 (i386_gdbarch_init): Update.
823 (i386_register_size): Delete array.
824 (i386_register_offset): Delete array.
826 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
827 (REGISTER_RAW_SIZE): Delete macro.
828 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
829 (REGISTER_BYTE): Delete macro.
831 2002-08-11 Aidan Skinner <aidan@velvet.net>
833 * ada-lang.c (ada_lookup_partial_symbol)
834 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
835 prototype names so that grep ^func works properly.
837 * ada-lang.c (ada_array_element_type)
838 (ada_lookup_partial_symbol): Fix typos in parameter list.
840 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
841 Fix prototype names so that grep ^func works properly.
843 2002-08-10 Andrew Cagney <cagney@redhat.com>
844 Elena Zannoni <ezannoni@redhat.com>
845 Martin M. Hunt <hunt@redhat.com>
847 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
848 (build_builtin_type_vec128i): Set the vector bit.
849 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
850 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
851 (build_builtin_type_vec64): New function.
852 (build_builtin_type_vec64i): New function.
853 (build_gdbtypes): Initialize builtin_type_vec64 and
856 2002-08-09 Andrew Cagney <cagney@redhat.com>
858 * regcache.c (regcache_dump): Compare the register offset
860 * arch-utils.c (generic_register_byte): New function.
861 * arch-utils.h (generic_register_byte): Declare.
862 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
863 * gdbarch.h, gdbarch.c: Regenerate.
865 2002-08-09 Andrew Cagney <cagney@redhat.com>
867 * regcache.c: Include "gdbcmd.h"
868 (_initialize_regcache): Add commands "maintenance print
869 registers", "maintenance print raw-registers" and "maintenance
870 print cooked-registers".
871 (enum regcache_dump_what): Define.
872 (dump_endian_bytes): New function.
873 (regcache_dump): New function.
874 (regcache_print): New function.
875 (maintenance_print_registers): New function.
876 (maintenance_print_raw_registers): New function.
877 (maintenance_print_cooked_registers): New function.
878 * Makefile.in (regcache.o): Update dependencies.
880 2002-08-09 Michael Snyder <msnyder@redhat.com>
882 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
883 (mips_push_arguments): Correct some comments. Use paddr_nz
884 for printing addresses in debug output. Replace static
885 allocation using MAX_REGISTER_RAW_SIZE with alloca.
886 (mips_n32n64_push_arguments): New function, cloned from
887 mips_push_arguments and tuned for the n32/n64 ABI.
888 (mips_push_register): Buffer needs dynamic allocation.
889 (mips_print_register): Ditto.
890 (do_gp_register_row): Ditto.
891 (mips_store_return_value): Ditto.
892 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
894 2002-08-09 Don Howard <dhoward@redhat.com>
896 * memattr.c (mem_info_command): Print special case of upper bound
897 as max CORE_ADDR + 1.
899 2002-08-08 Michael Snyder <msnyder@redhat.com>
901 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
902 returns structs by ref if they're too big to fit in two registers.
904 2002-08-09 Kevin Buettner <kevinb@redhat.com>
906 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
908 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
909 mips_find_saved_regs().
910 (mips_pop_frame): Likewise.
912 2002-08-09 Kevin Buettner <kevinb@redhat.com>
914 * blockframe.c (frame_saved_regs_register_unwind): Revise
915 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
918 2002-08-09 Grace Sainsbury <graces@redhat.com>
920 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
921 T-packets; the 'a' is not taken as a register number.
922 (remote_check_watch_resources, remote_stopped_by_watchpoint)
923 (remote_stopped_data_address): New functions; add to target
925 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
926 prototypes to match other implementations of this
927 function. replace integer argument with pointer -- the length
928 field in the Z-packet is the length of what is pointed to or 1 if
929 pointer is null. Add to target vector.
930 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
934 * remote.c (remote_wait): Add support to extract optional
935 watchpoint information from T-packet. Ignore unrecognized
936 optional info in T-packet.
937 (remote_async_wait): Ditto.
939 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
941 * cli/cli-dump.c: Change fopen modes to use binary open modes
942 as defined in include/fopen-bin.h throughout.
944 2002-08-08 Michael Snyder <msnyder@redhat.com>
946 * mips-tdep.c: Minor whitespace and indentation clean-ups.
948 2002-08-08 Kevin Buettner <kevinb@redhat.com>
950 * doublest.c (store_floating): Avoid floatformat_from_doublest()
951 assertion failure by returning early after a warning.
953 2002-08-08 Kevin Buettner <kevinb@redhat.com>
955 * mips-tdep.c (mips_find_saved_regs): Make static.
956 (mips_frame_init_saved_regs): New function.
957 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
958 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
959 (mips_find_saved_regs): Delete declaration.
961 2002-08-08 Grace Sainsbury <graces@redhat.com>
963 * remote.c (remote_wait, remote_async_wait): Change
964 thread_num from int to ULONGEST.
965 (unpack_varlen_hex): Change result parameter from
968 2002-08-08 Andrew Cagney <ac131313@redhat.com>
970 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
971 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
973 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
975 2002-08-08 Andrew Cagney <cagney@redhat.com>
977 * gcore.c (override_derive_stack_segment): Delete variable.
978 (preempt_derive_stack_segment): Delete function.
979 (derive_stack_segment): Delete function.
980 (default_derive_stack_segment): Renamed to derive_stack_segment.
981 (override_derive_heap_segment): Delete variable.
982 (preempt_derive_heap_segment): Delete function.
983 (derive_heap_segment): Delete function.
984 (default_derive_heap_segment): Rename to derive_heap_segment.
986 2002-08-06 Michael Snyder <msnyder@redhat.com>
988 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
989 * mips-tdep.c (mips_EABI_use_struct_convention,
990 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
991 New functions. (mips_use_struct_convention): Delete.
992 (mips_gdbarch_init): set use_gdbarch_convention.
994 2002-08-06 Michael Snyder <msnyder@redhat.com>
996 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
997 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
998 mips_o32_reg_struct_has_addr): New functions.
999 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1001 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1003 * regcache.c (pseudo_register): Delete function.
1004 (fetch_register): Delete function.
1005 (store_register): Delete function.
1006 (regcache_raw_read, legacy_read_register_gen): Use
1007 target_fetch_registers instead of fetch_register.
1008 (legacy_write_register_gen, regcache_raw_write): Use
1009 target_store_register instead of store_register.
1010 (write_register_bytes): Ditto.
1012 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1013 (STORE_PSEUDO_REGISTER): Delete.
1014 * gdbarch.h, gdbarch.c: Regenerate.
1016 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1018 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1019 write dump file binary.
1021 2002-08-05 Michael Snyder <msnyder@redhat.com>
1023 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1024 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1025 (mips_gdbarch_init): Set N32 target to be mips64.
1027 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1029 * frame.c (find_saved_register): Break out of loop once saved
1030 register address is found. Don't mention sparc in loop comment
1033 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1035 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1036 mips_default_saved_regsize to 8.
1038 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1040 * gcore.c: Do not include <sys/procfs.h>.
1041 * Makefile.in (gcore.o): Update dependencies.
1043 2002-08-06 Andrew Cagney <cagney@redhat.com>
1045 * configure.tgt: Make arc-*-* obsolete.
1046 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1047 * MAINTAINERS: Make arc-elf obsolete.
1048 * arc-tdep.c: Make file obsolete.
1049 * config/arc/arc.mt: Ditto.
1050 * config/arc/tm-arc.h: Ditto.
1052 2002-08-05 Theodore A. Roth <troth@verinet.com>
1054 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1056 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1058 * mcore-tdep.c (mcore_gdbarch_init): Use
1059 generic_unwind_get_saved_register instead of
1060 generic_get_saved_register.
1061 * v850-tdep.c (v850_gdbarch_init): Ditto.
1062 * frv-tdep.c (frv_gdbarch_init): Ditto.
1063 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1064 * s390-tdep.c (s390_gdbarch_init): Ditto.
1065 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1066 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1067 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1069 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1071 * objfiles.h: Add missing #include "symfile.h"
1073 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1075 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1077 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1078 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1081 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1083 * NEWS: Cleanup and nitpick.
1085 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1087 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1089 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1091 * Makefile.in (gdbtk-bp.o): Update dependencies.
1092 (gdbtk-register.o): Ditto.
1093 (gdbtk-varobj.o): Ditto.
1095 2002-08-03 Andrew Cagney <cagney@redhat.com>
1097 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1098 m68hc11_fetch_pseudo_register.
1099 (m68hc11_pseudo_register_write): Replace
1100 m68hc11_store_pseudo_register.
1101 (m68hc11_gdbarch_init): Update.
1103 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1105 * gdbarch.sh: Include "gdb_string.h".
1106 * gdbarch.c: Regenerate.
1108 * regcache.c: Include "gdb_string.h".
1109 * ax-general.c: Ditto.
1111 * std-regs.c: Ditto.
1112 * fbsd-proc.c: Ditto.
1115 * Makefile.in (regcache.o): Update dependencies.
1116 (thread.o, gdbarch.o): Ditto.
1117 (ax-general.o, gdbarch.o): Ditto.
1118 (varobj.o, std-regs.o): Ditto.
1119 (fbsd-proc.o): Specify dependencies.
1121 2002-08-02 Andrew Cagney <cagney@redhat.com>
1123 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1125 (regcache_cooked_write): Ditto.
1127 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1129 * regcache.c (regcache_cooked_read): New function.
1130 (regcache_cooked_write): New function.
1131 (read_register_gen): Rewrite using regcache_cooked_read.
1132 (write_register_gen): Rewrite using regcache_cooked_write.
1134 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1137 2002-08-02 Andrew Cagney <cagney@redhat.com>
1139 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1140 Replace the architecture methods register_read and register_write.
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142 * regcache.c (init_regcache_descr): Update.
1143 (read_register_gen): Update.
1144 (write_register_gen): Update.
1145 (supply_register): Update comment.
1147 * sh-tdep.c (sh_gdbarch_init): Update.
1148 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1149 `regcache' and `gdbarch' parameters. Make `buffer' a void
1150 pointer. Update code.
1151 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1152 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1153 void pointer. Update code.
1154 (sh64_register_write): Delete.
1155 (sh4_register_read): Delete.
1156 (sh64_register_read): Delete.
1157 (sh4_register_write): Delete.
1158 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1159 void pointer, `to' parameter a void pointer.
1160 (sh_sh64_register_convert_to_raw): Ditto.
1162 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1164 * mips-tdep.c (mips_register_virtual_type): Use architecture
1165 invariant return values.
1167 2002-08-01 Andrew Cagney <cagney@redhat.com>
1169 * linux-proc.c: Include "gdb_string.h".
1170 * Makefile.in (linux-proc.o): Update dependency list.
1172 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1174 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1177 2002-08-01 Grace Sainsbury <graces@redhat.com>
1179 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1180 to_insert_watchpoint, to_remove_watchpoint,
1181 to_stopped_by_watchpoint, to_stopped_data_address,
1182 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1183 target vecctor. Define their corresponding macros so they call
1186 * target.c: Add default and debug versions of for
1187 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1188 to_insert_watchpoint, to_remove_watchpoint,
1189 to_stopped_by_watchpoint, to_stopped_data_address,
1190 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1192 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1194 * mips-tdep.c (mips_register_virtual_type): New function.
1195 (mips_gdbarch_init): Register mips_register_virtual_type()
1196 with gdbarch machinery.
1197 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1198 this file instead of tm-bigmips.h.
1199 (MIPS_REGSIZE): Delete this macro.
1200 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1201 multiarch version in mips-tdep.c will be found.
1203 2002-08-01 Andrew Cagney <cagney@redhat.com>
1205 * NEWS: Menion that CHILL has been made obsolete.
1207 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1208 * gdbserver/Makefile.in: Ditto.
1209 * stabsread.c (read_range_type): Ditto.
1210 * gdbtypes.h: Ditto.
1211 * language.c (binop_type_check): Ditto.
1212 (binop_result_type): Ditto.
1213 (integral_type): Ditto.
1214 (character_type): Ditto.
1215 (string_type): Ditto.
1216 (boolean_type): Ditto.
1217 (structured_type): Ditto.
1218 (lang_bool_type): Ditto.
1219 (binop_type_check): Ditto.
1220 * language.h (_LANG_chill): Ditto.
1221 * dwarfread.c (set_cu_language): Ditto.
1222 * dwarfread.c (CHILL_PRODUCER): Ditto.
1223 * dwarfread.c (handle_producer): Ditto.
1224 * expression.h (enum exp_opcode): Ditto.
1225 * eval.c: Ditto for comments.
1226 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1227 * expprint.c (print_subexp): Ditto.
1228 (print_subexp): Ditto.
1229 * valops.c (value_cast): Ditto.
1230 (search_struct_field): Ditto.
1231 * value.h (COERCE_VARYING_ARRAY): Ditto.
1232 * symfile.c (init_filename_language_table): Ditto.
1233 (add_psymbol_with_dem_name_to_list): Ditto.
1234 * valarith.c (value_binop): Ditto.
1236 * valops.c (value_slice): Ditto.
1237 * symtab.h (union language_specific): Ditto.
1238 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1239 (SYMBOL_DEMANGLED_NAME): Ditto.
1240 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1241 * defs.h (enum language): Ditto.
1242 * symtab.c (got_symtab): Ditto.
1243 * utils.c (fprintf_symbol_filtered): Ditto.
1245 * ch-typeprint.c: Make file obsolete.
1246 * ch-valprint.c: Make file obsolete.
1247 * ch-lang.h: Make file obsolete.
1248 * ch-exp.c: Make file obsolete.
1249 * ch-lang.c: Make file obsolete.
1251 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1253 (TARGET_FLAGS_TO_PASS): Ditto.
1254 (CHILLFLAGS): Obsolete.
1256 (CHILL_FOR_TARGET): Obsolete.
1257 (CHILL_LIB): Obsolete.
1258 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1260 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1261 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1263 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1266 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1268 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1269 This does not change anything at the moment, but will be helpful
1270 later when full Ada support is integrated.
1272 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1274 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1277 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1279 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1280 and save it in a local variable. Use variable in later test.
1282 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1284 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1285 test. (Thanks to Daniel Jacobowitz.)
1287 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1289 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1290 (mips_abi_strings): Add "n64".
1291 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1293 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1295 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1296 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1298 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1300 * utils.c (host_pointer_to_address, address_to_host_pointer):
1301 Use gdb_assert() instead of explicit call to internal_error().
1303 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1305 * Makefile.in (rs6000-nat.o): Update dependencies.
1307 From Nicholas Duffek:
1308 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1309 (aix-thread.o): New rule.
1310 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1311 * config/powerpc/aix432.mh: New file.
1313 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1315 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1316 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1317 (fetch_core_registers, ppc_linux_supply_gregset)
1318 (ppc_linux_supply_fpregset): New functions.
1319 (ppc_linux_regset_core_fns): New.
1320 (_initialize_ppc_linux_tdep): Call add_core_fns.
1321 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1322 and ppc_linux_supply_gregset.
1323 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1324 (supply_fpregset): Call ppc_linux_supply_fpregset.
1325 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1327 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1329 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1331 * symtab.c (lookup_symbol): Demangle before lowercasing.
1333 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1335 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1337 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1338 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1339 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1340 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1342 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1343 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1344 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1345 (avr-tdep.o, mon960-rom.o): Ditto.
1346 (aout_stabs_gnu_h): Define.
1347 (symtab_h): Remove $(gdb_obstack_h).
1349 2002-07-30 Jim Blandy <jimb@redhat.com>
1351 Patch from David Carlton <carlton@math.stanford.edu>:
1352 * gdbinit.in: Move the `dir' commands that add GDB's own source
1353 directory to the search path to the end, so that the `gdb' source
1354 directory will be searched first.
1356 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1358 * gdb_obstack.h: New file.
1359 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1360 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1361 * objfiles.h: Include "gdb_obstack.h".
1362 * Makefile.in (gdb_obstack_h): Define.
1363 (symtab_h): Add $(gdb_obstack_h).
1364 (objfiles_h): Add $(gdb_obstack_h).
1366 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1367 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1368 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1369 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1370 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1371 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1372 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1373 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1375 * Makefile.in (bcache.o): Update dependencies.
1376 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1377 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1378 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1379 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1380 (stabsread.o, symfile.o, symmisc.o): Ditto.
1381 (symtab.o, typeprint.o, macroexp.o): Ditto.
1382 (macrotab.o, mdebugread.o): Ditto.
1383 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1384 (coff_ecoff_h, aout_aout64_h): Define.
1385 (aout_stabs_gnu_h, libaout_h): Define.
1387 2002-07-29 Andrew Cagney <cagney@redhat.com>
1389 * regcache.c (struct regcache_descr): Rename nr_registers to
1390 nr_cooked_registers. Revise comments describing the structure
1392 (init_regcache_descr): Update.
1393 (init_legacy_regcache_descr): Update.
1394 (read_register_gen, write_register_gen): When a cooked register in
1395 the raw register range, directly access the value from the raw
1398 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1400 * z8k-tdep.c: Do not include "obstack.h".
1401 * h8300-tdep.c, h8500-tdep.c: Ditto.
1402 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1403 * valprint.c, v850-tdep.c: Ditto.
1404 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1405 * mn10200-tdep.c: Ditto.
1407 * Makefile.in (z8k-tdep.o): Update dependencies.
1408 (m68hc11-tdep.o, valprint.o): Ditto.
1409 (v850-tdep.o, d10v-tdep.o): Ditto.
1410 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1411 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1412 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1413 (sh_opc_h, gdb_sim_sh_h): Define.
1414 (elf_sh_h, elf_bfd_h): Define.
1415 (opcode_m68hc11_h): Define.
1416 (OPCODES_SRC, OPCODES_DIR): define.
1417 (OPCODES): Use $(OPCODES_DIR).
1418 (gdb_sim_d10v_h): Rename sim_d10v_h.
1419 (gdb_sim_arm_h): Rename sim_arm_h.
1421 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1423 * utils.c (host_pointer_to_address, address_to_host_pointer):
1424 Change internal_error() message to indicate function responsible
1427 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1429 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1430 calls to local_hex_string_custom().
1432 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1434 * irix5-nat.c: Move IRIX shared library support from here...
1435 * solib-irix.c: ...to here. Revised substantially to work with
1436 generic solib framework.
1438 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1439 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1440 * mips-irix-tdep.c: New file.
1442 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1443 (mips-irix-tdep.o, solib-irix.o): New rules.
1444 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1446 * config/mips/irix6.mt (TDEPFILES): Likewise.
1447 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1449 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1451 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1452 disabled (via ``#if 0'') includes.
1454 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1456 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1457 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1458 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1459 Add support for the fpscr register.
1460 * rs6000-nat.c (regmap, fetch_inferior_registers)
1461 (store_inferior_registers, fetch_core_registers): Likewise.
1463 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1465 * rs6000-nat.c (language.h): Include.
1466 (special_regs): Delete this array.
1467 (regmap): New function.
1468 (fetch_register, store_register): Use regmap() to map gdb
1469 register numbers to ptrace register numbers. Also, use
1470 outputs from regmap() to make decisions regarding type of
1471 ptrace() call to make. In particular, don't compare against
1472 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1473 (fetch_inferior_registers, store_inferior_registers): Where
1474 possible, obtain register numbers from tdep struct. Don't
1475 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1476 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1477 (LAST_UISA_SP_REGNUM): Delete.
1479 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1481 * rs6000-nat.c (ppc-tdep.h): Include.
1482 (fetch_registers, store_register, fetch_core_registers): Don't
1483 access registers[] directly. Instead, use supply_register() or
1484 regcache_collect() as appropriate.
1485 (find_toc_address): Format hex address with local_hex_string().
1487 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1489 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1492 2002-07-24 Tom Tromey <tromey@redhat.com>
1494 * jv-exp.y: Marked all strings with _().
1495 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1497 (MethodInvocation, CastExpression, parse_number, yyerror,
1498 java_type_from_name, push_expression_name, yylex): Typo fixes.
1500 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1502 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1503 (tee_file_flush, tee_file_write, tee_file_fputs)
1504 (tee_file_isatty): New.
1505 * ui-file.h (tee_file_new): Add prototype.
1507 2002-07-24 Aidan Skinner <aidan@velvet.net>
1509 * ada-lang.c: Change k&r style function definitions to prototyped
1511 * ada-typeprint.c: Change k&r style function definitions to prototyped
1513 * ada-valprint.c: Change k&r style function definitions to prototyped
1516 2002-07-24 Andrew Cagney <cagney@redhat.com>
1518 * README: Remove reference to remote-bug.
1519 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1521 (m88k-nat.o): Delete rule.
1522 (m88k-tdep.o): Delete rule.
1523 (remote-bug.o): Delete rule.
1524 * MAINTAINERS: Mark as obsolete.
1525 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1526 * m88k-tdep.c: Make file obsolete.
1527 * config/m88k/m88k.mh: Ditto.
1528 * config/m88k/delta88v4.mh: Ditto.
1529 * config/m88k/delta88v4.mt: Ditto.
1530 * config/m88k/delta88.mt: Ditto.
1531 * config/m88k/delta88.mh: Ditto.
1532 * remote-bug.c: Ditto.
1533 * config/m88k/tm-delta88.h: Ditto.
1534 * config/m88k/nm-delta88v4.h: Ditto.
1535 * config/m88k/xm-delta88.h: Ditto.
1536 * config/m88k/xm-dgux.h: Ditto.
1537 * config/m88k/tm-m88k.h: Ditto.
1538 * config/m88k/nm-m88k.h: Ditto.
1539 * config/m88k/tm-delta88v4.h: Ditto.
1540 * m88k-nat.c: Ditto.
1541 * cxux-nat.c: Ditto.
1542 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1543 and m88*-*-* obsolete.
1544 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1547 2002-07-24 Andrew Cagney <cagney@redhat.com>
1549 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1550 constant. Same for local pointer variables.
1551 (extract_signed_integer): Ditto.
1552 * defs.h (extract_unsigned_integer): Update.
1553 (extract_signed_integer): Update.
1555 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1557 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1558 * gdbserver/configure: Regenerate.
1559 * gdbserver/config.in: Regenerate.
1561 2002-07-24 Andrew Cagney <cagney@redhat.com>
1563 * regcache.c (regcache_raw_write): Change buf parameter to a
1564 constant void pointer.
1565 (regcache_raw_read): Change buf parameter to a void pointer.
1566 (legacy_write_register_gen): Change myaddr parameter a constant
1568 (supply_register): Change val parameter to a const void pointer.
1569 * regcache.h (regcache_raw_write): Update declaration.
1570 (regcache_raw_read): Update declaration.
1571 (supply_register): Update declaration.
1573 2002-07-24 Tom Tromey <tromey@redhat.com>
1575 * defs.h (gdb_readline_wrapper): Declare.
1576 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1577 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1578 * top.c (gdb_readline_wrapper): New function.
1579 (command_line_input): Use it.
1581 2002-07-24 Andrew Cagney <cagney@redhat.com>
1583 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1584 regcache_read and regcache_write.
1585 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1586 * regcache.c: Update.
1587 * sh-tdep.c (sh64_push_arguments): Update comment.
1588 (sh_pseudo_register_read): Update.
1589 (sh_pseudo_register_write): Update.
1590 (sh4_register_read): Update.
1591 (sh4_register_write): Update.
1592 (sh64_pseudo_register_read): Update.
1593 (sh64_pseudo_register_write): Update.
1594 (sh64_register_read): Update.
1595 (sh64_register_write): Update.
1596 * i386-tdep.c (i386_extract_return_value): Update.
1597 (i386_extract_struct_value_address): Update.
1598 (i386_extract_return_value): Update.
1599 * blockframe.c (generic_read_register_dummy): Update.
1600 (generic_call_dummy_register_unwind): Update
1601 * infrun.c (write_inferior_status_register): Update.
1603 2002-07-23 Jim Blandy <jimb@redhat.com>
1605 * parser-defs.h (expression_context_pc): Make this extern.
1606 (Thanks to Michael Snyder.)
1608 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1610 GDB 5.2.1 released from 5.2 branch.
1611 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1612 * README: Update to mention 5.2.1.
1614 2002-07-23 Mark Salter <msalter@redhat.com>
1616 * remote.c (remote_read_bytes): Fix check for error.
1618 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1620 * aix-thread.c (language.h): Include.
1621 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1622 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1623 Print newlines at end of debug messages.
1624 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1625 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1627 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1629 * aix-thread.c (ppc-tdep.h): Include.
1630 (special_register_p): New function.
1631 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1632 (store_regs_user_thread): Use register number information from
1633 gdbarch_tdep struct instead of hardcoded offsets relative to
1634 FIRST_UISA_SP_REGNUM.
1635 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1636 special_register_p() instead of using FPLAST_REGNUM and
1637 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1638 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1639 will be MQ's register number.
1641 2002-07-22 Michael Snyder <msnyder@redhat.com>
1643 * aix-thread.c (ops): Rename to aix_thread_ops.
1644 (base_ops): Rename to base_target.
1645 (ops_attach): Rename to aix_thread_attach.
1646 (ops_detach): Rename to aix_thread_detach.
1647 (ops_resume): Rename to aix_thread_detach.
1648 (ops_wait): Rename to aix_thread_wait.
1649 (ops_kill): Rename to aix_thread_kill.
1650 (init_ops): Rename to init_aix_thread_ops.
1651 (ops_fetch_register): Rename to aix_thread_fetch_register.
1652 (ops_store_register): Rename to aix_thread_store_register.
1653 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1654 (ops_thread_alive): Rename to aix_thread_thread_alive.
1655 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1656 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1657 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1658 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1659 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1660 (store_regs_lib): Rename to store_regs_user_thread.
1661 (store_regs_kern): Rename to store_regs_kernel_thread.
1663 2002-07-22 Michael Snyder <msnyder@redhat.com>
1665 * aix-thread.c (ops_prepare_to_store): Eliminate.
1666 (init_ops): Don't initialize ops.prepare_to_store.
1667 (store_regs_kern): Pre-fetch register buffers from child,
1668 because some registers may not be in the cache. Copy
1669 regs from register cache only if they are cached.
1670 (store_regs_lib): Copy regs from register cache only
1672 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1673 fill_gprs64): Ditto.
1675 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1677 * aix-thread.c (gdb_assert.h): Include.
1678 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1679 register sizes (from register cache) match size of buffer holding
1681 (fill_sprs32): Change parameter types to match those in the ptrace()
1683 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1684 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1686 2002-07-22 Michael Snyder <msnyder@redhat.com>
1688 * aix-thread.c (supply_sprs64): Cosmetic change.
1689 (supply_sprs32): Cosmetic change.
1690 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1691 (fill_sprs64): Use regcache_collect instead of read_register.
1692 (store_regs_lib): Use regcache_collect instead of
1693 read_register. Use fill_sprs32 instead of fill_sprs64,
1694 if debugging a 32-bit architecture.
1695 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1696 out of the register cache, instead of passing a pointer into
1697 the register cache directly to ptrace. Use regcache_collect
1698 insteaad of read_register.
1699 (ops_prepare_to_store): Use target_read_registers instead
1700 of read_register_bytes.
1702 2002-07-20 Aidan Skinner <aidan@velvet.net>
1704 * MAINTAINERS: Add self under write after approval.
1706 2002-07-20 Aidan Skinner <aidan@velvet.net>
1708 * ada-tasks.c: Change k&r style function definitions to prototyped
1711 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1713 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1714 * x86-64-tdep.c: Include "objfiles.h".
1715 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1716 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1718 2002-07-17 Michal Ludvig <michal@suse.cz>
1720 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1721 (update_context): Initialise cfa variable.
1723 2002-07-17 Michael Snyder <msnyder@redhat.com>
1725 * aix-thread.c: Shorten some long lines.
1726 Bring comments into line with code spec.
1728 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1730 * infrun.c: Re-indent using gdb_indent.sh.
1732 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1734 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1735 Leave the indentation temporarily untouched, to minimize the diffs.
1737 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1739 * stabsread.c: Make os9k sections of the code obsolete,
1741 * stabsread.h: Make os9k sections of the code obsolete.
1743 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1745 * linux-low.c (regsets_store_inferior_registers): Add free()
1746 at the end of a loop to prevent memory leak.
1747 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1748 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1749 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1751 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1753 2002-07-17 Jim Blandy <jimb@redhat.com>
1755 * macrocmd.c (info_macro_command): Remove newline from error
1758 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1760 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1761 (sh_gdbarch_init): Use it for sh-dsp.
1763 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1765 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1766 64-bit DWARF2 format.
1768 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1770 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1771 <sys/proc.h> when not available.
1773 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1775 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1776 * stabsread.c: Make os9k sections of the code obsolete.
1777 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1778 * config/i386/i386os9k.mt: Make file obsolete.
1779 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1780 (COMMON_OBS): Remove os9kread.o
1781 (SFILES): Remove os9kread.c.
1782 (os9kread.o, remote-os9k.o): Make target obsolete.
1783 * remote-os9k.c: Make file obsolete.
1784 * os9kread.c: Make file obsolete.
1787 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1789 * NEWS: Mention that the FR30 has been made obsolete.
1790 * fr30-tdep.c: Make file obsolete.
1791 * config/fr30/tm-fr30.h: Ditto.
1792 * config/fr30/fr30.mt: Ditto.
1793 * configure.tgt: Make fr30-*-elf obsolete.
1794 * MAINTAINERS: Make fr30-elf obsolete.
1796 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1798 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1799 found is not inside a section.
1801 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1803 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1805 (pdc_realloc): Use xrealloc() instead of realloc().
1807 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1809 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1810 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1811 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1814 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1816 * aix-thread.c (ptrace_check): Eliminate goto.
1817 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1820 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1822 * aix-thread.c (gdbcmd.h): Include.
1823 (DEBUG, DBG, DBG2, dbg): Eliminate.
1824 (debug_aix_thread): New static global.
1825 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1826 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1827 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1828 invocations to DBG and DBG2 macros to test against
1829 ``debug_aix_thread'' and call fprintf_unfiltered().
1830 (_initialize_aix_thread): Add new command "set debug aix-thread".
1832 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1834 From Gerhard Tonn <TON@de.ibm.com>:
1835 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1836 instead of supply_register.
1838 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1840 * dwarf2cfi.c: Include "gdb_assert.h".
1841 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1843 (update_context): Do not use __func__. Add missing ``break''.
1844 (update_context): Do not use __func__.
1846 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1848 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1849 and its setting. Set gdbarch instruction printing functions
1850 directly. For non-rs6000 case use new function
1851 gdb_print_insn_powerpc.
1852 (gdb_print_insn_powerpc): New function.
1854 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1856 * NEWS: Mention that the d30v has been marked obsolete.
1857 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1858 * configure.tgt: Mark d30v-*-* as obsolete.
1859 * d30v-tdep.c: Mark file as obsolete.
1860 * config/d30v/d30v.mt: Ditto.
1861 * config/d30v/tm-d30v.h: Ditto.
1863 2002-07-13 Aidan Skinner <aidan@velvet.net>
1865 * ada-tasks.c (add_task_entry): replace calls to
1866 malloc() with xmalloc
1867 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1869 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1870 ada_finish_decode_line_1, all_sals_for_line
1871 ada_breakpoint_rewrite): replace calls to free() with xfree()
1873 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1875 From Nicholas Duffek (with minor changes by Martin Hunt,
1876 Louis Hamilton, and Kevin Buettner):
1877 * aix-thread.c: New file.
1879 2002-07-12 Petr Sorfa <petrs@caldera.com>
1881 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1882 complaint for invalid attribute class or form.
1883 (read_func_scope): DW_AT_frame_base
1884 better handling of DW_AT_block*.
1885 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1886 better handling of DW_AT_block*.
1887 (read_common_block): DW_AT_location
1888 better handling of DW_AT_block*.
1889 (read_partial_die): DW_AT_location better handling
1891 (new_symbol): DW_AT_external better handling of
1892 DW_AT_block*. Proper initialization of variable
1894 (attr_form_is_block): New function that returns true
1895 if the attribute's form is of DW_FORM_block*.
1897 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1899 * valops.c (find_method_list): Remove comment about
1900 removed STATIC_MEMFUNCP argument.
1901 (value_find_oload_method_list): Likewise.
1903 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1905 From Nicholas Duffek:
1906 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1907 target_new_objfile_hook.
1909 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1911 From Nicholas Duffek:
1912 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1915 2002-07-12 Andrew Cagney <cagney@redhat.com>
1917 * MAINTAINERS: Mention --enable-sim-build-warnings.
1918 (m68hc11-elf): Disable sim build warnings.
1919 (m32r-elf): Mark as broken obsolete candidate.
1920 (x86_64-linux-gnu): Mark as buildable with -Werror.
1921 (arm-elf): Change -w to ``,'' which enables warnings but not
1924 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1926 * bcache.h: Update copyright.
1927 (struct bstring, struct bcache): Move definition to "bcache.c".
1928 Replaced by opaque declaration.
1929 (bcache_xfree): Replace free_bcache.
1930 (bcache_xmalloc, bcache_memory_used): Declare.
1932 * bcache.c: Update copyright.
1933 (struct bstring, struct bcache): Moved to here from "bcache.h".
1935 (bcache_xmalloc, bcache_memory_used): New functions.
1936 (bcache_xfree): Replace function free_bcache.
1938 * Makefile.in (objfiles.o): Add $(bcache_h).
1939 (objfiles_h): Remove $(bcache_h).
1940 (symfile.o): Add $(bcache_h).
1942 * symmisc.c: Update copyright.
1943 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1944 (print_objfile_statistics): Use bcache_memory_used.
1946 * symfile.c: Include "bcache.h".
1947 (reread_symbols): Use bcache_xfree.
1948 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1949 (add_psymbol_to_list): Pass psymbol_cache by value.
1950 (add_psymbol_with_dem_name_to_list): Ditto.
1952 * objfiles.h: Update copyright.
1953 (struct bcache): Declare opaque. Do not include "bcache.h".
1954 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1956 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1958 * objfiles.c: Include "bcache.h". Update copyright.
1959 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1961 (free_objfile): Use bcache_xfree.
1963 2002-07-11 Grace Sainsbury <graces@redhat.com>
1965 * monitor.c (monitor_fetch_register): Make name a constant.
1966 (monitor_store_register): Same.
1968 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1970 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1971 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1972 (finish_block) For non-function blocks, hash the symbol table. For
1973 function blocks, mark the symbol table as unhashed.
1974 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1975 (msymbol_hash_iw): Likewise.
1976 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1978 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1979 (lookup_minimal_symbol): Likewise for both.
1980 * symtab.h (struct block): Add `hashtable' flag. Comment the
1982 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1983 (ALL_BLOCK_SYMBOLS): Update.
1984 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1985 (struct symbol): Add `hash_next' pointer.
1986 * symtab.c (lookup_block_symbol): Search using the hash table when
1988 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1989 (search_symbols, find_addr_symbol): Likewise.
1991 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1992 (read_dst_symtab): Likewise.
1993 * jv-lang.c (get_java_class_symtab): Likewise.
1994 * mdebugread.c: Include "gdb_assert.h".
1995 (shrink_block): Assert that the block being modified is not hashed.
1996 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1997 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1999 (dump_symtab): Recognize hashed blocks.
2000 * printcmd.c (print_frame_args): Assert that function blocks do not
2001 have hashed symbol tables.
2002 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2003 (fill_in_ada_prototype, debug_print_block): Likewise.
2004 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2006 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2008 * stack.c (print_frame): Use result of frame_address_in_block()
2009 instead of fi->pc when evaluating symbols.
2010 (backtrace_command_1): Ditto.
2012 2002-07-11 Andrew Cagney <cagney@redhat.com>
2014 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2017 * arm-tdep.c (arm_register_name): Make return type constant.
2019 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2021 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2023 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2024 * s390-tdep.c (s390_fp_regnum): Ditto.
2025 (s390_read_fp): Ditto.
2026 (s390_pop_frame): Ditto.
2027 (_initialize_s390_tdep): Ditto.
2028 * remote.c (get_remote_state): Ditto.
2029 * procfs.c (mappingflags): Ditto.
2030 * memattr.c (_initialize_mem): Ditto.
2031 * mcore-tdep.c (mcore_pop_frame): Ditto.
2032 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2033 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2034 * language.c (set_case_str): Ditto.
2035 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2036 * frv-tdep.c (new_variant): Ditto.
2037 (frv_stopped_data_address): Ditto.
2038 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2039 (context_alloc): Ditto.
2040 (frame_state_alloc): Ditto.
2041 (unwind_tmp_obstack_init): Ditto.
2042 (unwind_tmp_obstack_free): Ditto.
2043 (cfi_read_fp): Ditto.
2044 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2045 (cris_pop_frame): Ditto.
2046 * c-lang.c (scanning_macro_expansion): Ditto.
2047 (finished_macro_expansion): Ditto.
2048 (c_preprocess_and_parse): Ditto.
2049 * gdbarch.sh: Ditto.
2050 * gdbarch.h, gdbarch.c: Regenerate.
2051 * config/mn10200/tm-mn10200.h: Adjust indentation.
2052 * target.c: Adjust indentation.
2053 * symtab.h: Adjust indentation.
2054 * stabsread.h: Adjust indentation.
2055 * remote-es.c: Adjust indentation.
2056 * os9kread.c: Adjust indentation.
2058 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2060 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2061 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2063 2002-07-10 Grace Sainsbury <graces@redhat.com>
2065 * NEWS: Mention m68k, mcore multi-arching.
2066 * MAINTAINERS: Change status of m68k, mcore to reflect
2069 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2071 * valops.c (find_overload_match): Free oload_syms.
2073 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2075 Define HAVE_SYS_PROC_H if sys/proc.h exists
2076 * configure.in: Add check for sys/proc.h
2077 * config.in: Regenerate.
2078 * configure: Regenerate.
2080 2002-07-09 Grace Sainsbury <graces@redhat.com>
2082 * config/m68k/tm-m68k.h: Remove macros wrapped in
2083 #if !GDB_MULTI_ARCH.
2085 2002-07-09 David O'Brien <obrien@FreeBSD.org>
2087 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2088 (perror_with_name, remote_close, remote_open, expect, play): Static.
2090 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2092 * config.in, configure: Regenerate.
2094 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2096 * dwarf2cfi.c: Include "gcore.h".
2097 (execute_stack_op): Fix implementation of the
2098 DW_OP_deref and DW_OP_deref_size operators by letting do their
2099 lookup in the target.
2101 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2103 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2104 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2107 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2109 Fix PR gdb/595, gdb/602
2110 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2111 Don't call value_cast, just read the vtable pointer; update comments
2114 2002-07-05 Grace Sainsbury <graces@redhat.com>
2116 * config/mcore/tm-mcore.h: Remove file.
2117 * config/mcore/mcore.mt: Remove definition of TM_FILE
2118 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2120 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2122 * i386bsd-tdep.c: Include "gdb_string.h".
2124 2002-07-04 Grace Sainsbury <graces@redhat.com>
2126 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2127 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2129 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2130 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2131 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2132 (RETVAL_REGNUM): Move macros from tm-mcore.h
2133 (mcore_reg_struct_has_addr): New function.
2134 (mcore_gdbarch_init): Added initializations for the macros removed
2137 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2139 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2140 traditonal string branding within the ELF header.
2142 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2144 * symtab.c (remove_params): New function.
2145 (make_symbol_overload_list): Use it instead of cplus_demangle.
2146 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2148 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2150 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2152 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2154 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2155 and tdep->sigtramp_end.
2156 * i386obsd-nat.c: New file.
2157 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2159 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2160 Don't call get_current_frame().
2162 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2164 * i386-nat.c (child_post_startup_inferior): New function
2165 calling i386_cleanup_dregs if
2166 I386_USE_GENERIC_WATCHPOINTS is defined.
2167 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2168 conditional to acknowledge that i386-nat.c has its
2169 own child_post_startup_inferior function.
2171 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2173 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2174 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2175 instead of MAX_REGISTER_RAW_SIZE.
2176 (i386_extract_return_value, i386_extract_struct_value_address):
2177 Convert to use regcache.
2178 (i386_gdbarch_init): Set max_register_raw_size and
2179 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2180 Set extract_return_value and extract_struct_value_address instead
2181 of their deprecated variants.
2183 Convert i386 target to generic dummy frames.
2184 * i386-tdep.c: Include "symfile.h".
2185 (i386_frameless_signal_p): Consider a function to be frameless if
2186 the pc points at the first instruction of the function.
2187 (i386_frame_chain): Handle (generic) call dummies.
2188 (i386_frame_saved_pc): Likewise.
2189 (i386_frame_init_saved_regs): Remove code dealing with call
2190 dummies on the stack.
2191 (i386_push_dummy_frame): Removed.
2192 (i386_call_dummy_words): Removed.
2193 (i386_fix_call_dummy): Removed.
2194 (i386_push_return_address): New function.
2195 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2196 parameter, and don't call get_current_frame.
2197 (i386_pop_frame): New function.
2198 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2199 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2200 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2201 call_dummy_length to 0, set call_dummy_words to NULL, set
2202 sizeof_call_dummy_words to 0, set fix_call_dummy to
2203 generic_fix_call_dummy, set pc_in_call_dummy to
2204 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2205 generic_push_dummy_frame, set push_return_address to
2206 i386_push_return_address and set frame_chain_valid to
2207 generic_file_frame_chain_valid.
2209 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2211 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2212 byte offsets instead of an array of indexes.
2213 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2215 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2217 * gdbarch.sh (struct regcache): Add opaque declaration.
2218 (EXTRACT_RETURN_VALUE): New architecture method.
2219 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2220 * gdbarch.h, gdbarch.c: Regenerate.
2221 * arch-utils.c (legacy_extract_return_value): New function.
2222 * arch-utils.h (legacy_extract_return_value): Declare.
2223 * values.c (value_being_returned): Re-enable code handling
2224 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2225 deprecated_grub_regcache_for_registers call to block handling
2226 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2227 (EXTRACT_RETURN_VALUE): Do not define.
2229 2002-07-03 Grace Sainsbury <graces@redhat.com>
2231 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2232 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2233 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2234 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2235 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2236 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2237 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2238 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2239 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2240 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2241 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2242 argument so the function fits the prototype in the architecture
2244 (mcore_pop_frame): Remove argument so the function fits the
2245 prototype. Use get_current_frame instead of the argument.
2246 (mcore_push_arguments): Change type of struct_return so the
2247 function can be used in the architecture vector.
2248 (mcore_store_struct_return): Add.
2249 (mcore_frame_init_saved_regs): Add.
2250 (mcore_gdbarch_init): Add function calls to replace the macros
2251 removed from tm-mcore.h
2253 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2255 * infcmd.c (print_return_value): Remove compatibility code calling
2256 deprecated_grub_regcache_for_registers.
2258 * values.c: Include "regcache.h".
2259 (value_being_returned): Update. Use
2260 deprecated_grub_regcache_for_registers to extract the register
2262 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2263 ``struct regcache''.
2264 * Makefile.in (values.o): Add dependency on $(regcache_h).
2266 * inferior.h (run_stack_dummy): Change type of second parameter to
2267 a ``struct regcache''.
2268 * valops.c (hand_function_call): Change type of retbuf to ``struct
2269 regcache''. Allocate using regcache_xmalloc, clean using
2270 make_cleanup_regcache_xfree.
2271 * infcmd.c (run_stack_dummy): Update. Use
2272 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2274 * regcache.c (do_regcache_xfree): New function.
2275 (make_cleanup_regcache_xfree): New function.
2276 * regcache.h (make_cleanup_regcache_xfree): Declare.
2278 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2280 * event-top.c (command_line_handler): Don't read past
2281 beginning of buffer.
2283 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2285 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2287 (varobj_create): Store frame_id for root.
2288 (varobj_gen_name): Use xasprintf.
2289 (varobj_update): Save and restore frame using get_frame_id() and
2291 (create_child): Use xasprintf.
2292 (new_root_variable): Initialize frame_id.
2293 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2294 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2295 to prevent memory leak.
2297 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2299 * valops.c (hand_function_call): Move declaration of retbuf to
2300 start of function, allocate using malloc, add a cleanup but before
2301 the inf_status cleanup, cleanup the buffer. Rename local variable
2302 old_chain to inf_status_cleanup.
2304 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2306 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2308 * cli/cli-decode.c (cmd_func_p): New function.
2309 (cmd_func): New function.
2311 * command.h: Add cmd_func() and cmd_func_p().
2313 2002-07-03 Grace Sainsbury <graces@redhat.com>
2315 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2316 (REGISTER_SIZE): Remove.
2317 (MAX_REGISTER_RAW_SIZE): Remove.
2318 (REGISTER_VIRTUAL_TYPE): Remove.
2319 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2320 (REGISTER_NAME): Remove.
2321 (USE_GENERIC_DUMMY_FRAMES): Remove.
2322 (CALL_DUMMY): Remove.
2323 (CALL_DUMMY_START_OFFSET): Remove.
2324 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2325 (CALL_DUMMY_LOCATION): Remove.
2326 (FIX_CALL_DUMMY): Remove.
2327 (CALL_DUMMY_ADDRESS): Remove.
2328 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2329 (SAVE_DUMMY_FRAME_TOS): Remove.
2330 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2331 (mcore_register_virtual_type): New function.
2332 (mcore_register_byte): New function.
2333 (mcore_register_size): New function.
2334 (mcore_register_name): New function.
2335 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2336 macros removed from tm-mcore.h.
2337 (mcore_dump_tdep): Add.
2338 (_initialize_mcore_tdep): Add gdbarch_register call.
2340 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2342 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2343 frameless_look_for_prologue, such that we actually call this
2346 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2348 * frame.h (frame_address_in_block): New function.
2350 * blockframe.c (frame_address_in_block): New function extracted
2351 from get_frame_block().
2352 (get_frame_block): Use frame_address_in_block().
2353 (block_innermost_frame): Use frame_address_in_block() to match
2354 the frame pc address against the block boundaries rather than
2355 the frame pc directly. This prevents a failure when a frame pc
2356 is actually a return-address pointing immediately after the end
2359 2002-07-02 Grace Sainsbury <graces@redhat.com>
2361 * MAINTAINERS: Add self under write after approval.
2363 2002-07-02 Grace Sainsbury <graces@redhat.com>
2365 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2366 used in architecture vector. The default is
2367 m68k_local_breakpoint_from_pc.
2368 (m68k_local_breakpoint_from_pc): Add.
2369 (enum): Add register numbers from tm-m68k.h.
2370 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2372 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2373 GDB_MULTI_ARCH_PARTIAL.
2374 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2375 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2377 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2378 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2379 to enum in m68k-tdep.c
2381 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2383 * solib-osf.c (open_map): Compute the list of shared libraries
2384 loaded by the inferior, rather than the list of libraries loaded
2385 by GDB itself. Otherwise, GDB ends up reading the symbols from
2386 the wrong shared libraries...
2388 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2390 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2391 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2393 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2395 (FRAMELESS_SIGNAL): Remove function.
2396 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2397 i386_linux_saved_pc_after_call): Removed.
2398 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2399 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2400 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2402 * i386-tdep.c (i386_frameless_signal_p): New function.
2403 (i386_frame_chain): Deal with frameless signals.
2404 (i386_sigtramp_saved_sp): New function.
2405 (i386_frame_saved_pc): Deal with frameless signals.
2406 (i386_saved_pc_after_call): Make sure the correct value is
2407 returned just after entry into a sigtramp.
2408 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2409 i386fbsd4_sc_sp_offset): New variables.
2410 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2411 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2412 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2413 similiar to what we already did for sc_pc_offset.
2414 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2417 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2419 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2421 * config/i386/tm-x86-64linux.h: New.
2422 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2424 * config/i386/nm-x86-64.h: Rename to ...
2425 * config/i386/nm-x86-64linux.h: ... this one.
2426 * config/i386/x86-64linux.mh: Reflect the above change.
2428 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2430 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2431 with sigcontext_addr. Add sc_sp_offset.
2432 (i386bsd_sigtramp_saved_pc): Remove prototype.
2433 (i386bsd_sicontext_addr): Add prototype.
2434 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2435 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2436 (i386_svr4_sigtramp_saved_pc): Removed.
2437 (i386_svr4_sigcontext_addr): New function.
2438 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2439 Initialize tdep->sigcontext_addr instead. Initialize
2440 tdep->sc_pc_offset and tdep->sc_sp_offset.
2441 (i386_gdbarch_init): Likewise.
2442 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2444 (i386bsd_sigtramp_saved_pc): Remove function.
2445 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2446 Initialize tdep->sigcontext_addr instead. Initialize
2448 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2449 of tdep->sigtramp_saved_pc.
2450 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2451 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2454 * i386-tdep.c (i386_frameless_function_invocation,
2455 i386_frame_num_args, i386_frame_init_saved_regs,
2456 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2457 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2458 i386_extract_return_value, i386_store_return_value,
2459 i386_extract_struct_value_address, i386_register_virtual_type,
2460 i386_register_convertible, i386_register_convert_to_virtual,
2461 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2462 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2465 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2467 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2469 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2470 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2471 this macro. Include "value.h".
2473 2002-06-30 Aidan Skinner <aidan@velvet.net>
2475 * ada-exp.tab.c: remove as it's a generated file
2476 * ada-lex.c: remove as it's a generated file
2478 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2480 * config/i386/tm-i386.h (struct frame_info, struct
2481 frame_saved_regs, struct value, struct type): Remove forward
2484 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2485 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2486 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2487 (FILL_FPXREGSET): Define.
2489 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2491 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2492 i[3456]86-*-netbsd* case.
2493 * config/i386/tm-obsd.h: Removed.
2494 * config/i386/obsd.mt: Removed.
2495 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2497 (MH_CFLAGS): Add -DYYDEBUG=0.
2499 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2500 i386nbsd_sc_pc_offset on OpenBSD too.
2502 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2503 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2504 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2506 * i386bsd-tdep.c: Include "arch-utils.h".
2507 (i386bsd_aout_in_solib_call_trampoline): New function.
2508 (i386bsd_init_abi): Set in_solib_call_trampoline to
2509 i386bsd_aout_in_solib_call_trampoline.
2510 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2511 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2513 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2515 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2516 (struct obstack, struct bcache): Add opaque declarations.
2517 * Makefile.in (macrotab_h): Update
2519 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2521 * blockframe.c (generic_find_dummy_frame): Change return type to
2522 ``struct regcache''.
2523 (struct dummy_frame): Replace field ``registers'' with regcache, a
2524 struct regcache object.
2525 (generic_find_dummy_frame): Update.
2526 (generic_push_dummy_frame): Update. Use regcache_xfree,
2527 regcache_xmalloc and regcache_cpy.
2528 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2530 (deprecated_generic_find_dummy_frame): Update.
2531 (generic_read_register_dummy): Update. Use
2532 regcache_read_as_address.
2533 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2534 (generic_get_saved_register): Update. Use regcache_read.
2536 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2538 * Makefile.in (objfiles_h): Add $(bcache_h).
2539 * objfiles.h: Include "bcache.h".
2541 * Makefile.in (symtab_h): Remove $(bcache_h).
2542 * symtab.h: Do not include "bcache.h".
2544 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2546 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2547 generic_func_frame_chain_valid.
2549 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2551 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2552 * config/i386/tm-fbsd.h: Likewise.
2554 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2556 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2557 generic_unwind_get_saved_register.
2559 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2561 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2562 * regcache.c (supply_register): Add missing argument to
2563 register_buffer call.
2565 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2567 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2568 Solaris /bin/grep does not not like it. From Peter Schauer.
2570 2002-06-26 Tom Tromey <tromey@redhat.com>
2572 * command.h (add_setshow_cmd): Declare.
2573 (add_setshow_cmd_full): Declare.
2574 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2575 returns void. Use add_setshow_cmd_full.
2576 (add_setshow_cmd_full): New function.
2577 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2578 (add_setshow_boolean_cmd): Likewise.
2580 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2582 * config/vax/tm-vax.h: Protect from multiple inclusion.
2583 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2584 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2585 * config/vax/tm-vaxbsd.h: ...here. New file.
2586 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2588 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2590 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2591 (BELIEVE_PCC_PROMOTION): Remove.
2592 (AP_REGNUM): Move to...
2593 * config/vax/nm-vax.h: ...here.
2594 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2595 (vax_breakpoint_from_pc): New function.
2596 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2597 and gdbarch_believe_pcc_promotion.
2599 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2601 * Makefile.in (vax_tdep_h): Define.
2602 (vax-tdep.o): Use $(vax_tdep_h).
2603 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2604 (vax_dump_tdep): New function.
2605 (_initialize_vax_tdep): Register vax_dump_tdep.
2606 * vax-tdep.h: Include osabi.h.
2607 (struct gdbarch_tdep): New.
2609 2002-06-26 Andrew Cagney <cagney@redhat.com>
2611 * frame.h (deprecated_generic_find_dummy_frame): Rename
2612 generic_find_dummy_frame.
2613 * blockframe.c (generic_find_dummy_frame): Make static.
2614 (deprecated_generic_find_dummy_frame): New function.
2615 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2616 generic_find_dummy_frame with deprecated_find_dummy_frame.
2617 (sh64_nofp_frame_init_saved_regs): Ditto.
2618 (sh_fp_frame_init_saved_regs): Ditto.
2619 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2620 (s390_frame_chain): Ditto.
2621 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2623 2002-06-26 Grace Sainsbury <graces@redhat.com>
2625 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2626 gdbarch vector are at the top.
2628 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2629 (FRAME_ARGS_ADDRESS): Remove.
2630 (FRAME_LOCALS_ADDRESS): Remove.
2631 (FRAME_NUM_ARGS): Remove.
2632 (FRAME_ARGS_SKIP): Remove.
2633 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2634 (m68k_gdbarch_init): Add gdbarch initializations for macros
2635 undefined in tm-m68k.h
2637 2002-06-26 Grace Sainsbury <graces@redhat.com>
2639 * monitor.h: Add the function regname to monitor_ops
2640 structure. This way NUM_REGS does not have to be a constant.
2641 * monitor.c (monitor_fetch_register): Added support for regname
2642 function. The function is called if the array regnames is NULL.
2643 (monitor_store_register): Same.
2644 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2646 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2647 cpu32bug_cmds.regname to point to new function.
2648 * abug-rom.c (abug_regname): Same as above.
2649 (init_abug_cmds): Same.
2650 * dbug-rom.c (dbug_regname): Same as above.
2651 (init_dbug_cmds): Same.
2652 * remote-est.c (est_regname): Same.
2653 (init_est_cmds): Same.
2654 * rom68k-rom.c (rom68k_regname): Same.
2655 (init_rom68k_cmds): Same.
2657 2002-06-25 Tom Tromey <tromey@redhat.com>
2659 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2661 2002-06-25 Andrew Cagney <cagney@redhat.com>
2663 * infrun.c (stop_registers): Change variable's type to ``struct
2665 (xmalloc_inferior_status): Delete function.
2666 (free_inferior_status): Delete function.
2667 (normal_stop): Use regcache_cpy.
2668 (struct inferior_status): Change type of fields ``stop_registers''
2669 and ``registers'' to ``struct regcache''.
2670 (write_inferior_status_register): Use regcache_write.
2671 (save_inferior_status): Instead of calling
2672 xmalloc_inferior_status, allocate the inf_status buffer directly.
2673 Use regcache_dup_no_passthrough and regcache_dup to save the
2675 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2676 Replace the stop_registers regcache instead of overriding it. Use
2677 regcache_xfree. Instead of calling free_inferior_status, xfree
2678 the buffer directly.
2679 (discard_inferior_status): Use regcache_xfree. Instead of calling
2680 free_inferior_status, xfree the buffer directly.
2681 (build_infrun): Use regcache_xmalloc.
2682 (_initialize_infrun): Delete redundant call to build_infrun.
2684 * Makefile.in (infcmd.o): Add $(regcache_h).
2686 * infcmd.c: Include "regcache.h".
2687 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2688 obtain the address of `stop_registers' register buffer.
2689 (print_return_value): Ditto.
2691 * inferior.h (struct regcache): Add opaque declaration.
2692 (stop_registers): Change variable's declared type to ``struct
2695 2002-06-24 Tom Tromey <tromey@redhat.com>
2697 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2698 * target.c (initialize_targets): Fixed typo in
2699 trust-readonly-sections `show' documentation.
2701 * main.c: Marked all strings with _().
2703 2002-06-24 Don Howard <dhoward@redhat.com>
2705 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2706 that means max CORE_ADDR+1.
2707 (lookup_mem_region): Ditto.
2708 (mem_info_command): Ditto.
2710 2002-06-24 Grace Sainsbury <graces@redhat.com>
2712 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2713 (REGISTER_BYTES_OK): Remove.
2714 (REGISTER_BYTES): Remove.
2715 (STORE_STRUCT_RETURN): Remove.
2716 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2717 (STORE_RETURN_VALUE): Remove.
2718 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2719 (FRAME_CHAIN): Remove.
2720 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2721 (FRAME_SAVED_PC): Remove.
2722 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2723 (m68k_store_struct_return): Add.
2724 (m68k_deprecated_extract_return_value): Add.
2725 (m68k_deprecated_extract_struct_value_address): Add.
2726 (m68k_store_return_value): Add.
2727 (m68k_frame_chain): Add.
2728 (m68k_frameless_function_invocation): Add.
2729 (m68k_frame_saved_pc): Add.
2730 (m68k_gdbarch_init): added set_gdbarch calls for new
2731 functions and deleted macros.
2733 2002-06-23 Tom Tromey <tromey@redhat.com>
2735 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2736 (ALLDEPFILES): Likewise.
2737 (udiheaders): Removed.
2738 (udip2soc.o): Likewise.
2739 (udi2go32.o): Likewise.
2741 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2743 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2745 * infrun.c (_initialize_infrun): Delete unnecessary call to
2748 * regcache.h: Update comments describing the regcache_cpy family
2750 (regcache_save, regcache_restore): Delete declaration.
2751 (regcache_save_no_passthrough): Delete declaration.
2752 (regcache_restore_no_passthrough): Delete declaration.
2753 * regcache.c (regcache_save): Delete function.
2754 (regcache_save_no_passthrough): Delete function.
2755 (regcache_restore): Delete function.
2756 (regcache_restore_no_passthrough): Delete function.
2758 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2760 * config/m68k/tm-m68k.h: Fix typo.
2761 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2762 (m68k_frame_init_saved_regs): Declare.
2764 2002-06-21 Jim Blandy <jimb@redhat.com>
2766 Remove some vestiges of Harris 88k support.
2767 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2768 register numbering quirk.
2769 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2770 odd symbols occurring in Harris 88k ELF targets.
2772 2002-06-21 Tom Tromey <tromey@redhat.com>
2774 * gdb_locale.h: New file.
2775 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2776 (defs_h): Added gdb_locale.h.
2777 * configure, config.in: Rebuilt.
2778 * configure.in (PACKAGE): Define.
2779 * defs.h: Include gdb_locale.h.
2780 * main.c (captured_main): Call setlocale, bindtextdomain,
2783 2002-06-21 Dave Brolley <brolley@redhat.com>
2785 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2786 * config/frv/frv.mt: New file.
2787 * config/frv/tm-frv.h: New file.
2788 * configure.tgt: Support frv-*-*.
2789 * Makefile.in (frv-tdep.o): New target.
2790 * frv-tdep.c: New file.
2791 * NEWS: Mention frv.
2793 2002-06-21 Dave Brolley <brolley@redhat.com>
2795 * MAINTAINERS: Add self to "Write After Approval" list.
2797 2002-06-21 Grace Sainsbury <graces@redhat.com>
2799 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2800 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2801 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2802 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2803 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2805 * m68k-tdep.c: Include arch-utils.h
2806 (m68k_register_raw_size): Add.
2807 (m68k_register_virtual_size): Add.
2808 (m68k_register_virtual_type): Add.
2809 (m68k_register_name): Add.
2810 (m68k_stack_align): Add.
2811 (m68k_register_byte): Add.
2812 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2815 2002-06-21 Grace Sainsbury <graces@redhat.com>
2817 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2818 m68k_find_saved_regs.
2819 (m68k_pop_frame): Removed saved_regs structure, and replaced
2820 references to it with frame->saved_regs.
2821 (m68k_gdbarch_init): Added function calls to initialize the
2823 (m68k_fix_call_dummy): Add.
2824 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2825 (CALL_DUMMY): Remove.
2826 (CALL_DUMMY_LENGTH): Remove.
2827 (CALL_DUMMY_START_OFFSET): Remove.
2828 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2829 (FIX_CALL_DUMMY): Remove.
2830 (PUSH_DUMMY_FRAME): Remove.
2831 (POP_FRAME): Remove.
2833 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2835 * parse.c (parse_fprintf): New function used to avoid calls to
2836 fprintf in bison parser generated debug code.
2837 * parser-defs.h: Declaration of new parse_fprintf function.
2838 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2839 Set YYDEBUG to 1 by default.
2840 Set YYFPRINTF as parse_fprintf.
2842 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2844 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2846 (pointer_encoding, enum ptr_encoding): New.
2847 (execute_cfa_program): Take care about pointer encoding.
2848 (dwarf2_build_frame_info): Only call parse_frame_info for
2849 .debug_frame and .eh_frame.
2850 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2851 fixed augmentation handling, added relative addressing,
2852 ignore duplicate FDEs. Added comments.
2853 * dwarf2cfi.c: Reindented.
2855 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2857 * event-top.c (command_handler): Don't use space_at_cmd_start
2858 unless there is sbrk() on the host. Assign time and space data
2859 to union fields of the appropriate length.
2861 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2863 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2864 x86_64_register_name. Return type changed to 'const char *'.
2865 (x86_64_register_name2nr): Rename to x86_64_register_number.
2866 (x86_64_gdbarch_init): Update to reflect the change.
2867 * x86-64-tdep.h: Ditto.
2868 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2869 (supply_fpregset): Ditto.
2871 2002-06-19 Andrew Cagney <cagney@redhat.com>
2873 * regcache.h: Update copyright.
2874 (struct regcache, struct gdbarch): Add opaque declarations.
2875 (current_regcache): Declare global variable.
2876 (regcache_read, regcache_write): Add gdbarch parameter.
2877 (regcache_save, regcache_save_no_passthrough)
2878 (regcache_restore, regcache_restore_no_passthrough)
2879 (regcache_dup, regcache_dup_no_passthrough)
2880 (regcache_cpy, regcache_cpy_no_passthrough)
2881 (deprecated_grub_regcache_for_registers)
2882 (deprecated_grub_regcache_for_register_valid)
2883 (regcache_valid_p): Add function declarations.
2885 * regcache.c: Update copyright.
2886 (regcache_descr_handle): New global variable.
2887 (struct regcache_descr): Define.
2888 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2889 (regcache_descr, xfree_regcache_descr): New functions.
2890 (struct regcache): Define.
2891 (regcache_xmalloc, regcache_xfree): New functions.
2892 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2893 (regcache_dup, regcache_dup_no_passthrough): New functions.
2894 (regcache_valid_p, regcache_read_as_address): New functions.
2895 (deprecated_grub_regcache_for_registers): New function.
2896 (deprecated_grub_regcache_for_register_valid): New function.
2897 (current_regcache): New global variable.
2898 (register_buffer): Add regcache parameter. Update calls.
2899 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2900 (read_register_gen, write_register_gen): Update register_buffer
2901 call. Test for legacy_p instead of gdbarch_register_read_p or
2902 gdbarch_register_write_p.
2903 (regcache_collect): Update register_buffer call.
2904 (build_regcache): Rewrite. Use deprecated grub functions.
2905 (regcache_save, regcache_save_no_passthrough): New functions.
2906 (regcache_restore, regcache_restore_no_passthrough): New
2908 (_initialize_regcache): Create the regcache_data_handle. Swap
2909 current_regcache global variable.
2911 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2912 parameter to regcache_read and regcache_write calls.
2913 (sh4_register_read): Ditto.
2914 (sh64_pseudo_register_read): Ditto.
2915 (sh64_register_read): Ditto.
2916 (sh_pseudo_register_write): Ditto.
2917 (sh4_register_write): Ditto.
2918 (sh64_pseudo_register_write): Ditto.
2919 (sh64_register_write): Ditto.
2921 * defs.h (XCALLOC): Define.
2923 2002-06-19 Grace Sainsbury <graces@redhat.com>
2925 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2926 * m68k-tdep.c (m68k_gdbarch_init): Added.
2927 (m68k_dump_tdep): Added.
2929 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2931 * ada-lang.c (fill_in_ada_prototype): Update comment.
2933 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2935 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2937 (mips_abi_string, mips_abi_strings): New.
2938 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2939 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2940 tdep->mips_abi_string. Honor mips_abi_string. Default to
2941 O32 if no ABI is found.
2942 (mips_dump_tdep): Use mips_abi_strings.
2943 (mips_abi_update): New function.
2944 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2945 ``set mips abi'' and ``show mips abi''. Check the size of
2948 2002-06-19 Andrew Cagney <cagney@redhat.com>
2950 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2953 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2955 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2956 current frame using only the first stack size adjustment. All
2957 subsequent size adjustments are not considered to be part of
2958 the "static" part of the current frame.
2959 Compute the address of the saved registers relative to the
2960 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2961 in use in this frame.
2963 2002-06-18 Don Howard <dhoward@redhat.com>
2965 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2966 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2967 suggesting this solution.
2969 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2971 * config/romp/xm-rtbsd.h: Delete file.
2972 * config/romp/rtbsd.mh: Delete file.
2974 2002-06-18 Keith Seitz <keiths@redhat.com>
2976 * breakpoint.c (condition_command): Post breakpoint_modify
2977 when a condition is added to an existing breakpoint.
2978 (commands_command): Likewise for commands.
2979 (set_ignore_count): Likewise for ignore counts.
2980 If no tty, do not simply return, still need to send event
2982 (ignore_command): Only print a newline if the command came
2984 Don't call breakpoints_changed, since this is now properly
2985 handled by set_ignore_count.
2987 2002-06-18 Andrew Cagney <cagney@redhat.com>
2989 * MAINTAINERS: Note that cris-elf target can be compiled with
2991 * cris-tdep.c (cris_register_name): Make return type constant.
2992 (cris_breakpoint_from_pc): Ditto.
2994 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2996 * frame.h (struct frame_info): Change type of context to
2999 2002-06-17 Andrew Cagney <cagney@redhat.com>
3001 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3003 * gdbarch.h, gdbarch.c: Regenerate.
3004 * config/mips/tm-mips.h (mips_register_name): Update.
3005 * i386-tdep.h (i386_register_name): Update.
3006 * mips-tdep.c (mips_register_name): Update
3007 * alpha-tdep.c (alpha_register_name): Update.
3008 * arch-utils.c (legacy_register_name): Update.
3009 * arch-utils.h (legacy_register_name): Update.
3010 * avr-tdep.c (avr_register_name): Update.
3011 * ia64-tdep.c (ia64_register_name): Update.
3012 * i386-tdep.c (i386_register_name): Update.
3013 * sparc-tdep.c (sparc32_register_name): Update.
3014 (sparc64_register_name): Update.
3015 (sparclite_register_name): Update.
3016 (sparclet_register_name): Update.
3017 * sh-tdep.c (sh_generic_register_name): Update.
3018 (sh_sh_register_name): Update.
3019 (sh_sh3_register_name): Update.
3020 (sh_sh3e_register_name): Update.
3021 (sh_sh_dsp_register_name): Update.
3022 (sh_sh3_dsp_register_name): Update.
3023 (sh_sh4_register_name): Update.
3024 (sh_sh64_register_name): Update.
3025 * s390-tdep.c (s390_register_name): Update.
3026 * rs6000-tdep.c (rs6000_register_name): Update.
3027 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3028 (ns32k_register_name_32382): Update.
3029 * d10v-tdep.c (d10v_ts2_register_name): Update.
3030 (d10v_ts3_register_name): Update.
3031 * xstormy16-tdep.c (xstormy16_register_name): Update.
3032 * vax-tdep.c (vax_register_name): Update.
3033 * v850-tdep.c (v850_register_name): Update.
3034 * m68hc11-tdep.c (m68hc11_register_name): Update.
3035 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3036 (am33_register_name): Update.
3038 2002-06-17 Grace Sainsbury <graces@redhat.com>
3040 * m68k-tdep.c: Reindented.
3042 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3044 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3045 list of predefined types.
3047 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3049 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3050 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3051 REGISTER_CONVERT_TO_RAW): Remove defines.
3052 (i386_register_virtual_type, i386_register_convertible,
3053 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3055 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3056 macros mentioned above.
3058 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3059 (i386lynx_saved_pc_after_call): Remove prototype.
3060 * i386ly-tdep.c: Include "i386-tdep.h".
3061 (i386lynx_saved_pc_after_call): Make static. Use
3062 read_memory_nobpt instead of read_memory. Use
3063 read_memory_unsigned_integer instead of read_memory_integer.
3064 (i386lynx_init_abi): New function.
3065 (i386lynx_coff_osabi_sniffer): New function.
3066 (_initialize_i386bsd_tdep): New function.
3068 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3069 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3070 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3071 (i386_fix_call_dummy): Remove prototype.
3072 * i386-tdep.c (i386_call_dummy_words): New variable.
3073 (i386_gdbarch_init): Adjust for removal of the
3074 macros mentioned above.
3076 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3078 * command.h (add_setshow_auto_boolean_cmd): Replace
3079 add_set_auto_boolean_cmd.
3080 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3081 add_set_auto_boolean_cmd.
3082 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3083 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3084 mask-address'' command.
3085 (show_mask_address): Add cmd parameter.
3086 * remote.c (add_packet_config_cmd): Update. Change type of
3087 set_func and show_func to cmd_sfunc_ftype.
3088 (_initialize_remote): Update `set remote Z-packet'
3089 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3090 (show_remote_protocol_e_packet_cmd): Ditto.
3091 (show_remote_protocol_E_packet_cmd): Ditto.
3092 (show_remote_protocol_P_packet_cmd): Ditto.
3093 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3094 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3095 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3096 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3097 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3098 (show_remote_protocol_Z_packet_cmd): Ditto.
3099 (show_remote_protocol_binary_download_cmd): Ditto.
3100 (show_remote_cmd): Pass NULL to all of above.
3102 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3104 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3105 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3106 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3107 POP_FRAME): Remove defines.
3108 (i386_push_arguments, i386_store_struct_return,
3109 i386_extract_return_value, i386_store_return_value,
3110 i386_extract_struct_value_address, i386_push_dummy_frame,
3111 i386_pop_frame): Renove prototypes.
3112 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3113 macros mentioned above.
3115 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3117 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3118 add_set_boolean_cmd.
3119 (add_setshow_cmd): New function.
3120 * command.h (add_setshow_boolean_cmd): Replace
3121 add_set_boolean_cmd.
3122 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3123 and ``set rdiromatzero''.
3124 * maint.c (_initialize_maint_cmds): Update commented out code.
3125 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3126 * target.c (initialize_targets): Update `set
3127 trust-readonly-sections'.
3128 * remote.c (_initialize_remote): Update `set remotebreak'.
3130 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3132 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3133 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3134 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3135 fit into multi-arch framework.
3136 (i386_breakpoint_from_pc): New function.
3137 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3140 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3141 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3142 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3143 (i386_frameless_function_invocation, i386_frame_num_args,
3144 i386_frame_init_saved_regs): Remove prototypes.
3145 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3146 macros mentioned above.
3148 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3150 * cli/cli-decode.c (set_cmd_cfunc): Update.
3151 (set_cmd_sfunc): Update.
3152 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3153 (set_cmd_sfunc, set_cmd_cfunc): Update.
3154 * cli/cli-decode.h: Update.
3156 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3158 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3159 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3161 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3163 * defs.h (auto_boolean): Declare enum.
3164 * command.h (cmd_auto_boolean): Delete enum.
3165 * mips-tdep.c (mask_address_var): Update.
3166 (mips_mask_address_p): Update.
3167 (show_mask_address): Update.
3168 * remote.c (struct packet_config): Update.
3169 (update_packet_config): Update.
3170 (show_packet_config_cmd): Update.
3171 (packet_ok): Update.
3172 (add_packet_config_cmd): Update.
3173 (_initialize_remote):
3174 * command.h: Update.
3175 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3176 (do_setshow_command): Update.
3177 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3178 * cli/cli-decode.h: Update.
3180 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3182 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3183 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3184 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3185 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3186 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3187 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3189 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3190 list of DJGPP COFF targets.
3192 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3193 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3194 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3195 (FP0_REGNUM): Remove define.
3196 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3197 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3198 (i386_register_virtual_size): Remove protoype.
3199 * i386-tdep.c (i386_register_virtual_size): Removed.
3200 (i386_extract_return_value, i386_store_return_value): Use
3201 FP0_REGNUM instead of NUM_FREGS to determine whether the
3202 floating-point registers are available.
3203 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3204 Adjust for removal of macros mentioned above.
3206 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3208 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3210 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3212 (supply_gregset, fill_gregset): Remove use of register keyword and
3213 remove declaration for regmap. Use I386_NUM_GREGS instead of
3214 NUM_REGS and NUM_FREGS.
3215 (FPREGSET_FSAVE_OFFSET): Remove.
3216 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3217 NUM_FREGS to determine whether the floating-point registers are
3220 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3221 gnu_store_registers): Replace usage of NUM_GREGS with
3224 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3225 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3226 usage of NUM_GREGS with I386_NUM_GREGS.
3228 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3230 * i386bsd-nat.c: Include "i386-tdep.h".
3231 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3234 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3235 and associated comment. They no longer make any sense, since we
3236 don't use this file anymore on Linux.
3238 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3239 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3240 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3241 elements in these arrays.
3242 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3245 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3247 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3248 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3250 2002-06-14 Andrew Cagney <cagney@redhat.com>
3252 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3253 EXTRACT_RETURN_VALUE.
3254 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3255 EXTRACT_STRUCT_VALUE_ADDRESS.
3256 * gdbarch.h, gdbarch.c: Regenerate.
3258 * values.c (value_being_returned): Handle
3259 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3260 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3262 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3263 * arm-tdep.c (arm_gdbarch_init): Update.
3264 * avr-tdep.c (avr_gdbarch_init): Update.
3265 * cris-tdep.c (cris_gdbarch_init): Update.
3266 * d10v-tdep.c (d10v_gdbarch_init): Update.
3267 * ia64-tdep.c (ia64_gdbarch_init): Update.
3268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3269 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3270 * s390-tdep.c (s390_gdbarch_init): Update.
3271 * sh-tdep.c (sh_gdbarch_init): Update.
3272 * s390-tdep.c (s390_gdbarch_init): Update.
3273 * sparc-tdep.c (sparc_gdbarch_init): Update.
3274 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3275 * v850-tdep.c (v850_gdbarch_init): Update.
3276 * vax-tdep.c (vax_gdbarch_init): Update.
3277 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3280 * config/arc/tm-arc.h: Update.
3281 * config/d30v/tm-d30v.h: Update.
3282 * config/fr30/tm-fr30.h: Update.
3283 * config/h8300/tm-h8300.h: Update.
3284 * config/h8500/tm-h8500.h: Update.
3285 * config/i386/tm-i386.h: Update.
3286 * config/i386/tm-ptx.h: Update.
3287 * config/i386/tm-symmetry.h: Update.
3288 * config/i960/tm-i960.h: Update.
3289 * config/m32r/tm-m32r.h: Update.
3290 * config/m68k/tm-delta68.h: Update.
3291 * config/m68k/tm-linux.h: Update.
3292 * config/m68k/tm-m68k.h: Update.
3293 * config/m88k/tm-m88k.h: Update.
3294 * config/mcore/tm-mcore.h: Update.
3295 * config/mips/tm-mips.h: Update.
3296 * config/mn10200/tm-mn10200.h: Update.
3297 * config/pa/tm-hppa.h: Update.
3298 * config/pa/tm-hppa64.h: Update.
3299 * config/sparc/tm-sp64.h: Update.
3300 * config/sparc/tm-sparc.h: Update.
3301 * config/sparc/tm-sparclet.h: Update.
3302 * config/z8k/tm-z8k.h: Update.
3304 2002-06-14 Andrew Cagney <cagney@redhat.com>
3306 * Makefile.in (i386_linux_tdep_h): Define.
3307 (i386_tdep_h, i387_tdep_h): Define.
3308 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3309 $(i386_tdep_h) and $(i387_tdep_h).
3310 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3312 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3314 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3315 Already covered by the default.
3317 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3318 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3319 (i386_gdbarch_init): Initialize long_double_format and long_double
3322 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3323 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3325 * config/i386/i386sol2.mh: ... here.
3326 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3327 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3328 (SIGCONTEXT_PC_OFFSET): Remove define.
3329 (IN_SIGTRAMP): Remove define.
3330 * i386-sol2-tdep.c: New file.
3332 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3333 * config/i386/tm-i386nw.h: Removed.
3335 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3336 USE_STRUCT_CONVENTION): Remove defines.
3337 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3338 (get_longjmp_target): Remove prototype.
3339 (IN_SIGTRAMP): Remove define.
3340 (i386bsd_in_sigtramp): Remove prototype.
3341 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3342 function. Update comment accordingly
3343 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3344 (FRAME_SAVED_PC): Remove define.
3345 (i386bsd_frame_saved_pc): Remove prototype.
3346 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3347 GET_LONGJMP_TARGET): Remove defines.
3348 (get_longjmp_target): Remove prototype.
3349 (IN_SIGTRAMP): Remove define.
3350 (i386bsd_in_sigtramp): Remove prototype.
3351 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3352 function. Update comment accordingly
3353 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3354 (FRAME_SAVED_PC): Remove define.
3355 (i386bsd_frame_saved_pc): Remove prototype.
3356 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3358 (USE_STRUCT_CONVENTION): Remove prototype.
3359 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3361 (_initialize_i386bsd_nat): Revise logic to determine some
3362 constants at compile time when compiling a native GDB. Warn if
3363 things don't match up with what we expect.
3364 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3366 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3367 to use date stored in `struct gdbarch_tdep'.
3368 (i386bsd_sigcontext_offset): Remove varaible.
3369 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3370 stored in `struct gdbarch_tdep'.
3371 (i386bsd_frame_saved_pc): Make static.
3372 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3373 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3374 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3375 i386fbsd4_sc_pc_offset): New variables.
3376 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3377 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3379 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3381 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3382 Modify the value of i386fbsd_sigtramp_start and
3383 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3384 i386fbsd_sigtramp_end.
3385 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3388 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3389 define to i386-linux-tdep.h.
3390 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3391 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3393 (i386_linux_register_name, i386_linux_register_byte,
3394 i386_linux_register_raw_size): Remove prototypes.
3395 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3396 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3397 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3398 TARGET_WRITE_PC): Remove defines.
3399 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3400 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3401 i386_linux_write_pc): Remove prototypes.
3402 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3403 (get_longjmp_target): Remove prototype.
3404 * i386-linux-tdep.h: New file.
3405 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3406 * i386-linux-tdep.c: Include "i386-tdep.h" and
3407 "i386-linux-tdep.h".
3408 (i386_linux_register_name, i386_linux_register_byte,
3409 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3410 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3412 (i386_linux_init_abi): New function.
3413 (_initialize_i386_linux_tdep): New function.
3415 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3416 (i386_saved_pc_after_call): Remove prototype.
3417 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3418 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3419 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3420 (i386_register_name, i386_stab_reg_to_regnum,
3421 i386_dwarf_reg_to_regnum): Remove prototypes.
3422 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3423 SIZEOF_SSE_REGS): Remove defines.
3424 (REGISTER_BYTES): Remove define.
3425 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3426 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3427 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3428 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3429 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3430 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3431 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3432 (get_longjmp_target): Remove prototype.
3433 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3434 (sigtramp_saved_pc): Remove define.
3435 (i386v4_sigtramp_saved_pc): Remove prototype.
3436 * config/i386/tm-go32.h (FRAME_CHAIN,
3437 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3438 (i386go32_frame_saved_pc): Remove prototype.
3439 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3440 (get_longjmp_target): Remove prototype.
3441 * i386-tdep.h: Include "osabi.h".
3442 (enum i386_abi): Removed.
3443 (enum struct_return): New enum.
3444 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3445 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3446 sc_pc_offset members.
3447 (i386_gdbarch_register_os_abi): Remove prototype.
3448 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3449 I386_SSE_NUM_REGS): New defines.
3450 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3451 I386_SSE_SIZEOF_REGS): New defines.
3452 (i386_register_name, i386_register_byte, i386_register_raw_size):
3454 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3455 (i386bsd_sigtramp_saved_pc): New prototype.
3456 * i386-tdep.c: Don't include "elf-bfd.h".
3457 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3458 i386_frame_chain, i386_saved_pc_after_call): Make static.
3459 (i386_frame_saved_pc): Rewrite to call architecture dependent
3460 function to deal with signal handlers. Make static.
3461 (i386go32_frame_saved_pc): Removed.
3462 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3464 (i386_get_longjmp_target): New function.
3465 (default_struct_convention, pcc_struct_convention,
3466 reg_struct_convention, valid_conventions, struct_convention): New
3468 (i386_use_struct_convention): New function.
3469 (i386v4_sigtramp_saved_pc): Renamed to
3470 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3471 (i386_pc_in_sigtramp): New function.
3472 (i386_abi_names): Removed.
3473 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3474 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3476 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3477 i386_gdbarch_register_os_abi): Removed.
3478 (struct i386_abi_handler): Removed.
3479 (i386_abi_handler_list): Removed.
3480 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3482 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3483 i386_nw_init_abi): New functions.
3484 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3485 Use set_gdbarch_xxx() calls instead of relying on macros for a
3487 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3488 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3489 Register the various architecture variants defined in this file.
3491 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3493 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3494 (struct main_type): Remove arg_types member. Update comments for
3496 (TYPE_ARG_TYPES): Remove.
3497 (TYPE_FN_FIELD_ARGS): Update.
3498 (smash_to_method_type): Update prototype.
3500 * c-typeprint.c (cp_type_print_method_args): Take method type
3501 instead of argument list. Use new argument layout. Simplify.
3502 (c_type_print_args): Use new argument layout. Simplify.
3503 (c_type_print_base): Update call to cp_type_print_method_args.
3504 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3505 argument; use die->type instead. Update call to
3506 smash_to_method_type.
3507 (read_structure_scope): Update call to dwarf2_add_member_fn.
3508 * gdbtypes.c (allocate_stub_method): Update comment.
3509 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3510 Use new argument layout.
3511 (check_stub_method): Use new argument layout. Don't count
3512 void as an argument.
3513 (print_arg_types): Update comments. Use new argument layout.
3514 (recursive_dump_type): Don't print arg_types member.
3515 * hpread.c (hpread_read_struct_type): Use new argument layout.
3516 (fixup_class_method_type): Likewise.
3517 (hpread_type_lookup): Likewise.
3518 * stabsread.c (read_type): Update calls to read_args and
3519 smash_to_method_type.
3520 (read_args): Use new argument layout. Simplify.
3521 * valops.c (typecmp): Use new argument layout. Update parameters
3522 and comments. Simplify.
3523 (hand_function_call): Use new argument layout.
3524 (search_struct_method): Update call to typecmp.
3525 (find_overload_match): Use new argument layout.
3527 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3529 * NEWS: Mention multithreaded debug support for gdbserver.
3531 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3533 * MAINTAINERS: Mention NEWS.
3535 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3537 * gdbserver/regcache.c: Add comment.
3539 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3541 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3542 (struct mips_objfile_private, compare_pdr_entries): New.
3543 (non_heuristic_proc_desc): Read the ".pdr" section if it
3546 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3548 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3549 (arm_debug): New static variable.
3550 (_initialize_arm_tdep): Add ``set debug arm'' command.
3552 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3554 * Makefile.in (sim_arm_h): Define.
3555 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3556 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3557 (arm_register_sim_regno): New function, map an internal REGNUM
3558 onto a simulator register number.
3559 (arm_gdbarch_init): Set register_sim_regno.
3561 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3563 * MAINTAINERS: Add self.
3565 2002-06-11 Jim Blandy <jimb@redhat.com>
3567 * source.c (source_info): Mention whether the symtab has
3568 information about preprocessor macros.
3570 Call the command `info macro', not `show macro'.
3571 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3573 (_initialize_macrocmd): Register `info_macro_command' in
3574 `infolist', not `showlist'.
3576 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3578 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3579 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3580 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3581 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3582 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3584 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3585 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3586 (_initialize_mips_tdep): Remove dead code.
3587 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3588 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3589 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3590 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3591 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3592 MIPS_LAST_FP_ARG_REGNUM): Remove.
3594 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3596 * gdbserver/thread-db.c: New file.
3597 * gdbserver/proc-service.c: New file.
3598 * gdbserver/acinclude.m4: New file.
3599 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3600 proc-service.o, and thread-db.o.
3601 (linux-low.o): Add USE_THREAD_DB.
3602 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3603 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3604 * gdbserver/aclocal.m4: Regenerated.
3605 * gdbserver/config.in: Regenerated.
3606 * gdbserver/configure: Regenerated.
3607 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3608 thread_db.h, and linux/elf.h headrs.
3609 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3610 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3611 Check for -lthread_db and thread support.
3612 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3613 PowerPC, and SuperH.
3614 * gdbserver/i387-fp.c: Constify arguments.
3615 * gdbserver/i387-fp.h: Likewise.
3616 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3617 `struct inferior_info'. Remove PID member. Use generic inferior
3618 list header. All uses updated.
3619 (inferiors, signal_pid): Removed.
3620 (all_threads): New variable.
3621 (get_thread): Define.
3622 (add_inferior_to_list): New function.
3623 (for_each_inferior): New function.
3624 (change_inferior_id): New function.
3625 (add_inferior): Removed.
3626 (remove_inferior): New function.
3627 (add_thread): New function.
3628 (free_one_thread): New function.
3629 (remove_thread): New function.
3630 (clear_inferiors): Use for_each_inferior and free_one_thread.
3631 (find_inferior): New function.
3632 (find_inferior_id): New function.
3633 (inferior_target_data): Update argument type.
3634 (set_inferior_target_data): Likewise.
3635 (inferior_regcache_data): Likewise.
3636 (set_inferior_regcache_data): Likewise.
3637 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3638 (all_processes, stopping_threads, using_thrads)
3639 (struct pending_signals, debug_threads, pid_of): New.
3640 (inferior_pid): Replace with macro.
3641 (struct inferior_linux_data): Remove.
3642 (get_stop_pc, add_process): New functions.
3643 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3644 Use add_process and add_thread.
3645 (linux_attach_lwp): New function, based on old linux_attach. Use
3646 add_process and add_thread. Set stop_expected for new threads.
3647 (linux_attach): New function.
3648 (linux_kill_one_process): New function.
3649 (linux_kill): Kill all LWPs.
3650 (linux_thread_alive): Use find_inferior_id.
3651 (check_removed_breakpoints, status_pending_p): New functions.
3652 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3653 Update. Use WNOHANG. Wait for cloned processes also. Update process
3654 struct for the found process.
3655 (linux_wait_for_event): New function.
3656 (linux_wait): Use it. Support LWPs.
3657 (send_sigstop, wait_for_sigstop, stop_all_processes)
3658 (linux_resume_one_process, linux_continue_one_process): New functions.
3659 (linux_resume): Support LWPs.
3660 (REGISTER_RAW_SIZE): Remove.
3661 (fetch_register): Use register_size instead. Call supply_register.
3662 (usr_store_inferior_registers): Likewise. Call collect_register.
3664 (regsets_fetch_inferior_registers): Improve error message.
3665 (regsets_store_inferior_registers): Add debugging.
3666 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3667 (unstopped_p, linux_signal_pid): New functions.
3668 (linux_target_ops): Add linux_signal_pid.
3669 (linux_init_signals): New function.
3670 (initialize_low): Call it. Initialize using_threads.
3671 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3673 (get_regcache): Fetch registers lazily. Add fetch argument
3674 and update all callers.
3675 (regcache_invalidate_one, regcache_invalidate): New
3677 (new_register_cache): Renamed from create_register_cache.
3678 Return the new regcache.
3679 (free_register_cache): Change argument to a void *.
3680 (registers_to_string, registers_from_string): Call get_regcache
3681 with fetch flag set.
3682 (register_data): Make static. Pass fetch flag to get_regcache.
3683 (supply_register): Call get_regcache with fetch flag clear.
3684 (collect_register): Call get_regcache with fetch flag set.
3685 (collect_register_as_string): New function.
3686 * gdbserver/regcache.h: Update.
3687 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3689 Handle input interrupts while waiting for an ACK.
3690 (input_interrupt): Use signal_pid method.
3691 (getpkt): Flush after debug output and use stderr.
3692 (outreg): Use collect_register_as_string.
3693 (new_thread_notify, dead_thread_notify): New functions.
3694 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3696 (look_up_one_symbol): Flush after debug output.
3697 * gdbserver/server.c (step_thread, server_waiting): New variables.
3698 (start_inferior): Don't use signal_pid. Update call to mywait.
3699 (attach_inferior): Update call to mywait.
3700 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3701 (main): Don't fetch/store registers explicitly. Use
3702 set_desired_inferior. Support proposed ``Hs'' packet. Update
3704 * gdbserver/server.h: Update.
3705 (struct inferior_list, struct_inferior_list_entry): New.
3706 * gdbserver/target.c (set_desired_inferior): New.
3707 (write_inferior_memory): Constify.
3708 (mywait): New function.
3709 * gdbserver/target.h: Update.
3710 (struct target_ops): New signal_pid method.
3711 (mywait): Removed macro, added prototype.
3713 * gdbserver/linux-low.h (regset_func): Removed.
3714 (regset_fill_func, regset_store_func): New.
3715 (enum regset_type): New.
3716 (struct regset_info): Add type field. Use new operation types.
3717 (struct linux_target_ops): stop_pc renamed to get_pc.
3718 Add decr_pc_after_break and breakpoint_at.
3719 (get_process, get_thread_proess, get_process_thread)
3720 (strut process_info, all_processes, linux_attach_lwp)
3721 (thread_db_init): New.
3723 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3724 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3725 (the_low_target): Add new members.
3726 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3727 (i386_store_fpxregset): Constify.
3728 (target_regsets): Add new kind identifier.
3729 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3730 (i386_set_pc): Add debugging.
3731 (i386_breakpoint_at): New function.
3732 (the_low_target): Add new members.
3733 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3734 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3735 (mips_breakpoint_at): New.
3736 (the_low_target): Add new members.
3737 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3738 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3739 (the_low_target): Add new members.
3740 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3741 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3742 (the_low_target): Add new members.
3743 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3746 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3748 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3749 (unwind_tmp_obstack_free, parse_frame_info)
3750 (update_context, cfi_read_fp, cfi_write_fp)
3751 (cfi_frame_chain, cfi_init_extra_frame_info)
3752 (cfi_virtual_frame_pointer): Use the above function.
3753 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3755 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3757 * v850-tdep.c (v850_type_is_scalar): New function.
3758 (v850_use_struct_convention): Match current gcc implementation
3759 as close as possible.
3760 (v850_push_arguments): Fix stack_offset handling. Don't write
3761 struct_addr into register. This is done by v850_store_struct_return.
3762 (v850_extract_return_value): Care for structs.
3763 (v850_store_return_value): Ditto.
3764 (v850_store_struct_return): Actually write address.
3766 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3768 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3769 without debug information too.
3771 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3773 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3774 Make multi-arch pure.
3775 * gdbarch.h, gdbarch.c: Re-generate.
3776 * arm-tdep.c (arm_print_float_info): Update.
3777 * arch-utils.h (default_print_float_info): Update.
3778 * arch-utils.c (default_print_float_info): Update.
3779 * infcmd.c (float_info): Update call.
3781 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3783 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3784 the front of the initialize list.
3786 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3788 * infrun.c (struct inferior_status): Replace fields
3789 selected_frame_address and selected_level with field
3791 (save_inferior_status): Update. Use get_frame_id.
3792 (struct restore_selected_frame_args): Delete.
3793 (restore_selected_frame): Update. Use frame_find_by_id.
3794 (restore_inferior_status): Update.
3796 * breakpoint.h (struct breakpoint): Change type of
3797 watchpoint_frame to frame_id.
3798 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3799 call to get_current_frame.
3800 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3802 (watchpoint_check): Use frame_find_by_id.
3804 * frame.h (record_selected_frame): Delete declaration.
3805 * stack.c (record_selected_frame): Delete function.
3807 * frame.h (struct frame_id): Define.
3808 (get_frame_id): Declare.
3809 (frame_find_by_id): Declare.
3810 * frame.c (frame_find_by_id): New function.
3811 (get_frame_id): New function.
3813 2002-06-10 Andrey Volkov <avolkov@transas.com>
3815 * ser-e7kpc.c: Fix duplicated define and call of
3816 _initialize_ser_e7000pc
3818 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3820 * signals/signals.c (target_signal_from_host): Fix #ifdef
3822 (do_target_signal_to_host): Likewise.
3824 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3826 * mips-tdep.c (mips_find_abi_section): New function.
3827 (mips_gdbarch_init): Call it.
3829 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3831 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3832 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3833 after Andrew's 2002-06-08 gdbarch change.
3835 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3837 * i386-linux-nat.c (suppy_gregset): Don't supply
3838 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3840 (fill_gregset): Don't fetch it under the same circumstances.
3842 2002-06-09 Andrew Cagney <cagney@redhat.com>
3844 * Makefile.in (callback_h): Define.
3845 (remote_sim_h): Update path to remote-sim.h.
3846 (remote-rdp.o): Add $(callback_h).
3847 (remote-sim.o): Use $(callback_h).
3848 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3849 * remote-rdp.c: Include "gdb/callback.h".
3851 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3853 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3854 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3856 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3858 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3859 * rdi-share/serpardr.c: Ditto.
3860 * rdi-share/unixcomm.c: Ditto.
3861 * rdi-share/serdrv.c: Ditto.
3862 * rdi-share/hostchan.h: Ditto.
3863 * rdi-share/hostchan.c: Ditto.
3864 * rdi-share/host.h: Ditto.
3865 * rdi-share/devsw.c: Ditto.
3867 * objfiles.h: Change type of obj_private to void pointer.
3868 * pa64solib.c: Update copyright. Don't include "assert.h", use
3869 strcmp instead of STREQ, use LONGEST, do not use PTR
3870 * somsolib.c: Ditto.
3872 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3873 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3874 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3876 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3878 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3879 (default_get_saved_register): Delete function.
3880 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3881 generic_unwind_get_saved_register.
3882 * gdbarch.h, gdbarch.c: Re-generate.
3884 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3886 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3887 generic_func_frame_chain_valid.
3888 * gdbarch.h, gdbarch.c: Re-generate.
3889 * blockframe.c (generic_func_frame_chain_valid): Only check
3890 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3891 passing FP to PC_IN_CALL_DUMMY.
3894 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3896 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3897 (register_gdbarch_data): Initialize init_p.
3898 (gdbarch_data): Initialize data pointer using the init function.
3899 (init_gdbarch_data): Delete function.
3900 (gdbarch_update_p): Update.
3901 (initialize_non_multiarch): Update.
3902 (struct gdbarch): Add field initialized_p.
3903 * gdbarch.h, gdbarch.c: Re-generate.
3905 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3907 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3908 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3909 better do the things actually here.
3910 * x86-64-tdep.c (x86_64_register_name2nr): New.
3911 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3912 (x86_64_gdbarch_init): Respect the above change.
3913 * x86-64-tdep.h (x86_64_register_name2nr)
3914 (x86_64_register_nr2name): Add prototypes.
3915 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3917 2002-06-06 Michael Snyder <msnyder@redhat.com>
3919 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3920 Delete extra braces and re-indent.
3921 (d10v_store_return_value): Char return values
3922 must be shifted over by one byte in R0.
3923 (d10v_extract_return_value): Delete extra braces, re-indent.
3925 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3927 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3928 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3929 (d10v_integer_to_address): Rewrite.
3930 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3931 the d10v specific functions which take care of converting to the
3934 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3936 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3937 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3939 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3941 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3943 * config/tm-linux.h: Ditto.
3944 * config/alpha/tm-alphalinux.h: Ditto.
3945 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3946 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3947 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3948 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3949 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3950 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3951 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3952 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3953 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3954 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3955 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3956 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3957 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3958 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3959 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3960 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3961 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3962 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3963 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3964 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3965 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3966 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3967 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3968 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3969 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3970 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3971 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3972 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3973 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3974 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3975 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3976 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3977 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3978 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3979 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3980 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3981 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3983 2002-05-04 Aidan Skinner <aidan@velvet.net>
3985 * ada-exp.tab.c: New file
3986 * ada-exp.y: New file
3987 * ada-lang.c: New file
3988 * ada-lang.h: New file
3989 * ada-lex.c: New file
3990 * ada-lex.l: New file
3991 * ada-tasks.c: New file
3992 * ada-typeprint.c: New file
3993 * ada-valprint.c: New file
3995 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3997 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3998 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4000 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4002 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4003 insetead of ppc-linux-tdep.o.
4004 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4005 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4007 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4009 2002-05-07 Christian Groessler <chris@groessler.org>
4010 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4011 bit register contents for little endian hosts.
4013 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4015 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4018 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4020 * gdbarch.h: Regenerate.
4022 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4024 * MAINTAINERS: Add everyone to write-after-approval list.
4026 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4028 * stack.c (frame_info): Use frame_register_unwind instead of
4029 saved_regs. Mention when the SP is on the stack or in a register.
4031 * frame.h (frame_register_unwind_ftype): Define. Document.
4032 (struct frame_info): Add field register_unwind and
4033 register_unwind_cache.
4034 (frame_register_unwind): Declare.
4035 (generic_unwind_get_saved_register): Declare.
4037 * frame.c (frame_register_unwind): New function.
4038 (generic_unwind_get_saved_register): New function.
4040 * blockframe.c (generic_call_dummy_register_unwind): New function.
4041 (frame_saved_regs_register_unwind): New function.
4042 (set_unwind_by_pc): New function.
4043 (create_new_frame): New function.
4044 (get_prev_frame): New function.
4046 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4048 * a29k-share/: Delete directory.
4049 * remote-vx29k.c: Delete file.
4051 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4053 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4054 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4056 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4058 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4059 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4062 (sparcnbsd-tdep.o): New dependency lists.
4063 * NEWS: Note new UltraSPARC NetBSD native configuration.
4064 * configure.host (sparc64-*-netbsd*): New host.
4065 * configure.tgt (sparc-*-netbsdelf*)
4066 (sparc-*-netbsd*): Set gdb_target to nbsd.
4067 (sparc64-*-netbsd*): New target.
4068 * sparc64nbsd-nat.c: New file.
4069 * sparcnbsd-nat.c: New file.
4070 * sparcnbsd-tdep.c: New file.
4071 * sparcnbsd-tdep.h: New file.
4072 * config/sparc/nbsd.mt: New file.
4073 * config/sparc/nbsd64.mh: New file.
4074 * config/sparc/nbsd64.mt: New file.
4075 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4076 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4078 * config/sparc/nbsdaout.mt: Remove.
4079 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4080 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4082 * config/sparc/nbsdelf.mt: Remove.
4083 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4084 sparc-nat.c compatiblity defines.
4085 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4086 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4087 * config/sparc/tm-nbsd64.h: New file.
4088 * config/sparc/tm-nbsdaout.h: Remove.
4089 * config/sparc/xm-nbsd.h: Remove.
4091 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4093 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4094 * sparc-tdep.c: Include osabi.h.
4095 (gdbarch_tdep): Add osabi member.
4096 (_initialize_sparc_tdep): Use gdbarch_register.
4097 (sparc_gdbarch_init): Use generic OS ABI framework.
4098 (sparc_dump_tdep): New function.
4100 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4102 * corefile.c (do_captured_read_memory_integer): Return non-zero
4104 (safe_read_memory_integer): Copy result of memory read when
4105 status is non-zero. Also, add comments.
4107 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4109 * Makefile.in (ppc_tdep_h): Define.
4112 (rs6000-tdep.o): Use $(ppc_tdep_h).
4115 (ppcnbsd-tdep.o): New dependency lists.
4116 * ppc-tdep.h: Use generic OS ABI framework.
4117 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4118 (ppc_linux_init_abi): New functions.
4119 (ppc_sysv_abi_broken_use_struct_convention)
4120 (ppc_sysv_abi_use_struct_convention)
4121 (ppc_sysv_abi_push_arguments): Move to...
4122 * ppc-sysv-tdep.c: ...here.
4123 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4124 * rs6000-tdep.c (process_note_abi_tag_sections)
4125 (get_elfosabi): Remove.
4126 (rs6000_gdbarch_init): Use generic OS ABI framework.
4127 (rs6000_dump_tdep): New function.
4128 (_initialize_rs6000_tdep): Use gdbarch_register.
4129 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4130 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4131 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4132 of ppc-linux-tdep.o.
4133 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4134 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4135 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4136 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4137 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4138 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4140 2002-05-29 Jim Blandy <jimb@redhat.com>
4142 * macroscope.c (default_macro_scope): Put `void' in empty argument
4145 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4147 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4148 * arch-utils.c: Include "sim-regno.h".
4149 * gdbarch.sh: Don't include "sim-regno.h".
4150 * gdbarch.h, gdbarch.c: Regenerate.
4151 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4153 * arch-utils.h (legacy_register_sim_regno): To here.
4154 * remote-sim.c (legacy_register_sim_regno): Move function from
4156 * arch-utils.c (legacy_register_sim_regno): To here.
4158 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4160 * sim-regno.h: New file.
4161 * Makefile.in (sim_regno_h): Define.
4162 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4163 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4164 (legacy_register_sim_regno): New function.
4165 (one2one_register_sim_regno): New function.
4166 (gdbsim_fetch_register): Rewrite.
4167 (gdbsim_store_register): Only store a register when
4168 REGISTER_SIM_REGNO is valid.
4169 * d10v-tdep.c: Include "sim-regno.h".
4170 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4171 (d10v_ts3_register_sim_regno): Ditto.
4172 * gdbarch.sh: Include "sim-regno.h".
4173 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4174 * gdbarch.h, gdbarch.c: Regenerate.
4175 * arch-utils.h (default_register_sim_regno): Delete declaration.
4176 * arch-utils.c (default_register_sim_regno): Delete function.
4178 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4180 * ppcnbsd-nat.c: Rewrite.
4181 * ppcnbsd-tdep.c: New file.
4182 * ppcnbsd-tdep.h: New file.
4183 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4184 solib.o, and solib-svr4.o.
4185 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4186 nbsd-tdep.o, and corelow.o.
4188 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4190 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4191 `tr' and `sed'. Mention that `broken' targets are not expected to
4194 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4196 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4197 Let PC point right after the prologue before looking up symbols.
4199 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4201 * i386-tdep.c (i386_register_virtual_type): Return
4202 builtin_type_vec128i for SSE registers.
4204 * gdbtypes.h (builtin_type_vec128i): Declare.
4206 * gdbtypes.c (build_builtin_type_vec128i): New function.
4207 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4208 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4209 (build_gdbtypes): Initialize new builtin vector types.
4210 (_initialize_gdbtypes): Register new vector types with gdbarch.
4212 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4214 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4215 since it has been multi-arch'd.
4216 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4217 Move Alpha and VAX multi-arch news entries to same section
4218 as other multi-arch news.
4220 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4222 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4223 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4224 static. Rename some register numbers to put them in ns32k-tdep
4226 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4227 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4229 (_initialize_ns32k_tdep): Use gdbarch_register.
4230 * ns32k-tdep.h: New file.
4231 * ns32knbsd-tdep.c: New file.
4232 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4233 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4234 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4235 REGISTER_BYTES, REGISTER_BYTE): Remove.
4236 * config/ns32k/tm-ns32k.h: New file.
4237 * config/ns32k/tm-umax.h: Remove.
4239 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4241 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4242 ns32k_store_struct_return, ns32k_extract_return_value,
4243 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4245 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4246 ns32k_saved_pc_after_call.
4247 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4248 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4249 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4250 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4251 ns32k_extract_struct_value_address.
4253 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4255 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4256 ns32k_fix_call_dummy): New.
4257 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4258 ns32k_call_dummy_words.
4259 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4260 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4261 CALL_DUMMY_NARGS): Remove.
4262 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4264 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4266 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4267 ns32k_frame_saved_pc, ns32k_frame_args_address,
4268 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4269 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4270 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4271 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4272 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4273 (BREAKPOINT): Remove..
4274 (FRAME_CHAIN): Define as ns32k_frame_chain.
4275 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4276 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4277 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4278 (FRAME_FIND_SAVED_REGS): Remove.
4279 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4280 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4281 (POP_FRAME): Define as ns32k_pop_frame.
4283 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4285 * ns32k-tdep.c (ns32k_register_byte_32082,
4286 ns32k_register_byte_32382, ns32k_register_raw_size,
4287 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4289 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4290 ns32k_register_byte_32382.
4291 * config/ns32k/tm-umax.h: Update copyright years.
4292 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4293 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4294 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4295 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4296 (ns32k_get_enter_addr): Fix prototype.
4298 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4300 * ns32k-tdep.c: Update copyright years.
4301 (ns32k_register_name_32082): New function.
4302 (ns32k_register_name_32382): Ditto.
4303 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4304 (REGISTER_NAME): Define as ns32k_register_name_32382.
4305 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4306 (REGISTER_NAME): Define as ns32k_register_name_32082.
4308 2002-05-24 Jim Blandy <jimb@redhat.com>
4310 * dwarf2read.c (free_line_header): Use xfree, not free.
4312 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4314 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4315 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4317 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4319 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4321 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4323 From Ross Alexander at NEC Europe:
4324 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4326 2002-05-23 Michael Snyder <msnyder@redhat.com>
4328 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4329 for input, rather than parse_and_eval_address.
4331 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4333 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4334 * Makefile.in (sim_d10v_h): Update definition.
4336 2002-05-24 Andrew Cagney <cagney@redhat.com>
4338 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4339 change `2002-05-22 Michael Snyder' below.
4340 (d10v_push_arguments): Ditto.
4341 (d10v_extract_return_value): Ditto.
4343 2002-05-23 Jim Blandy <jimb@redhat.com>
4345 * macrotab.c (check_for_redefinition): Don't complain if the new
4346 definition is the same as the previous one. Take more arguments
4347 to allow the comparison.
4348 (macro_define_object, macro_define_function): Pass more arguments
4349 to check_for_redefinition.
4351 2002-05-22 Michael Snyder <msnyder@redhat.com>
4353 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4354 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4355 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4356 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4357 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4358 Add a temp variable to save a call (and a memory read).
4359 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4360 if possible (so that PC_IN_CALL_DUMMY will work).
4362 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4364 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4366 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4368 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4370 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4371 (dwarf2_build_frame_info): Add offset to fde->initial_location
4372 so that frames of shared libraries are mapped correctly.
4373 (execute_stack_op): Change type of 'result' from ULONGEST to
4376 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4378 * config/alpha/tm-nbsd.h: Include solib.h.
4380 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4382 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4383 assumptions about the host's byte order.
4385 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4387 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4389 * alphanbsd-tdep.c: Include solib-svr4.h.
4390 * shnbsd-tdep.c: Ditto.
4392 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4394 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4395 nbsd-tdep.h to dependency list.
4396 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4397 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4398 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4399 nbsdaout.mh and nbsdelf.mh consistently.
4400 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4401 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4402 nbsdaout.mt and nbsdelf.mh consistently.
4403 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4404 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4405 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4406 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4407 a.out shared library stuff from here...
4408 * config/nm-nbsdaout.h: ...to here.
4409 * config/tm-nbsd.h: Remove.
4410 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4411 * config/arm/nbsd.mh: Remove.
4412 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4414 * config/arm/nbsdaout.mh: New file.
4415 * config/arm/nbsdelf.mh: New file.
4416 * config/arm/nm-nbsdaout.h: New file.
4417 * config/i386/nbsd.mh: Remove.
4418 * config/i386/nbsd.mt: Remove.
4419 * config/i386/nbsdaout.mh: New file.
4420 * config/i386/nbsdaout.mt: New file.
4421 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4422 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4423 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4424 i386_register_u_addr): Remove.
4425 * config/i386/nm-nbsdaout.h: New file.
4426 * config/i386/nm-nbsdelf.h: Remove.
4427 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4428 (USE_STRUCT_CONVENTION): Remove.
4429 * config/i386/tm-nbsdaout.h: New file.
4430 * config/i386/tm-nbsdelf.h: Remove.
4431 * config/m68k/nbsd.mh: Remove.
4432 * config/m68k/nbsd.mt: Remove.
4433 * config/m68k/nbsdaout.mh: New file.
4434 * config/m68k/nbsdaout.mt: New file.
4435 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4436 * config/m68k/nm-nbsdaout.h: New file.
4437 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4438 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4439 * config/ns32k/nbsd.mh: Remove.
4440 * config/ns32k/nbsd.mt: Remove.
4441 * config/ns32k/nbsdaout.mh: New file.
4442 * config/ns32k/nbsdaout.mt: New file.
4443 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4444 * config/ns32k/nm-nbsdaout.h: New file.
4445 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4446 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4447 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4448 (SVR4_SHARED_LIBS): Remove.
4449 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4450 * config/sparc/nbsd.mh: Remove.
4451 * config/sparc/nbsd.mt: Remove.
4452 * config/sparc/nbsdaout.mh: New file.
4453 * config/sparc/nbsdaout.mt: New file.
4454 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4455 * config/sparc/nbsdelf.mt: New file.
4456 * config/sparc/nm-nbsdaout.h: New file.
4457 * config/sparc/nm-nbsdelf.h: Remove.
4458 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4459 * config/sparc/tm-nbsdaout.h: New file.
4461 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4463 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4465 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4467 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4469 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4471 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4473 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4475 * NEWS: Note new MIPS NetBSD native configuration.
4476 * configure.host (mips*-*-netbsd*): New host.
4477 * configure.tgt (mips*-*-netbsd*): New target.
4478 * mipsnbsd-nat.c: New file.
4479 * mipsnbsd-tdep.c: New file.
4480 * mipsnbsd-tdep.h: New file.
4481 * config/mips/nbsd.mh: New file.
4482 * config/mips/nbsd.mt: New file.
4483 * config/mips/nm-nbsd.h: New file.
4484 * config/mips/tm-nbsd.h: New file.
4486 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4488 * Makefile.in (SFILES): Add osabi.c.
4489 (COMMON_OBS): Add osabi.o.
4490 (osabi.o): New dependency list.
4491 * osabi.c: New file.
4492 * osabi.h: New file.
4493 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4495 * Makefile.in (alpha_tdep_h): Define and use instead of
4497 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4498 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4500 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4501 * alpha-tdep.h: Include osabi.h.
4502 (alpha_abi): Remove.
4503 (gdbarch_tdep): Use generic OS ABI framework.
4504 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4505 gdbarch_register_osabi.
4506 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4507 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4508 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4510 * Makefile.in (sh_tdep_h): Add osabi.h.
4511 * sh-tdep.h (sh_osabi): Remove.
4512 (gdbarch_tdep): Use generic OS ABI framework.
4513 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4514 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4515 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4516 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4518 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4519 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4520 gdbarch_register_osabi.
4521 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4522 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4523 (get_elfosabi): Rename to...
4524 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4525 ABI framework support routines.
4526 (arm_gdbarch_init): Use generic OS ABI framework.
4527 (arm_dump_tdep): Likewise.
4528 (_initialize_arm_tdep): Likewise.
4529 * arm-tdep.h: Include osabi.h.
4531 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4533 (arm_gdbarch_register_os_abi): Remove prototype.
4534 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4535 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4537 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4538 * mips-tdep.c: Include osabi.h.
4539 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4542 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4544 * h8300-tdep.c: Fix formatting.
4546 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4548 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4549 printing vector registers.
4551 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4553 From Fernando Nasser:
4554 * remote.c (remote_async_open_1): Re-throw the exception when the
4556 (remote_cisco_open): Ditto.
4557 (remote_open_1): Ditto.
4559 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4561 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4562 (remote_start_remote): Add uiout parameter. Pass through to
4563 remote_start_remote_dummy.
4564 (remote_open_1): Use catch_exception instead of catch_errors.
4565 (remote_async_open_1): Ditto.
4566 (remote_cisco_open): Ditto.
4568 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4570 * remote.c (remote_start_remote): Replace PTR with void pointer.
4571 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4574 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4576 * gdb_indent.sh: Allow the script to be run in the sim directory.
4578 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4580 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4581 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4583 * corelow.c (core_open): Only call set_gdbarch_from_file if
4586 2002-05-17 Andrey Volkov <avolkov@transas.com>
4588 * h8300-tdep.c: Add support of EXR register
4589 * config/h8300/tm-h8300.h: Ditto.
4591 2002-05-17 Andrey Volkov <avolkov@transas.com>
4593 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4595 2002-05-17 Andrey Volkov <avolkov@transas.com>
4597 * h8300-tdep.c: Change literal regnums to REGNO.
4599 2002-05-17 Jim Blandy <jimb@redhat.com>
4601 * NEWS: Note addition of macro support.
4603 Expand preprocessor macros in C expressions.
4604 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4605 (scan_macro_expansion, scanning_macro_expansion,
4606 finished_macro_expansion): New function declarations.
4607 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4608 variable declarations.
4609 * parser-defs.h (expression_context_pc): New declaration.
4610 * parse.c (expression_context_pc): New variable.
4611 (parse_exp_1): Set expression_context_pc, as well as
4612 expression_context_block.
4613 * c-exp.y (yylex): If we're not already reading the result of a
4614 macro expansion, try to macro-expand the next token. When we're
4615 done scanning a macro expansion, switch back to the mainline text.
4616 Commas and `if's in a macro's expansion don't terminate the input.
4617 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4618 (macro_original_text, macro_expanded_text,
4619 expression_macro_lookup_func, expression_macro_lookup_baton): New
4621 (scan_macro_expansion, scanning_macro_expansion,
4622 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4623 c_preprocess_and_parse): New functions.
4624 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4625 c_preprocess_and_parse, instead of c_parse.
4626 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4627 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4629 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4631 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4632 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4633 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4635 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4637 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4639 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4641 * Makefile.in (sh_tdep_h): Define and use.
4642 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4643 register enum): Move to...
4644 * * sh-tdep.h: ...here.
4645 * sh-tdep.c: Include sh-tdep.h.
4646 * sh3-rom.c: Likewise.
4647 * shnbsd-tdep.c: Likewise.
4649 2002-05-16 Michael Snyder <msnyder@redhat.com>
4651 * arm-tdep.c: Spelling fix in comment.
4653 2002-05-16 Jim Blandy <jimb@redhat.com>
4655 Add commands for manually expanding macros and showing their
4657 * macrocmd.c, macroscope.c, macroscope.h: New files.
4658 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4659 (macroscope_h): New variable.
4660 (HFILES_NO_SRCDIR): Add macroscope.h.
4661 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4662 (macroscope.o, macrocmd.o): New rules.
4664 Teach the Dwarf 2 reader to read macro information.
4665 * dwarf2read.c: #include "macrotab.h".
4666 (dwarf_macinfo_buffer): New variable.
4667 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4669 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4670 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4671 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4672 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4673 dwarf2_macro_spaces_in_definition): New complaints.
4674 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4675 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4676 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4677 the partial symbol table.
4678 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4679 from what's recorded in the partial symbol table.
4680 (read_file_scope): If the compilation unit has a
4681 `DW_AT_macro_info' attribute, read its macro information.
4682 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4684 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4687 * ser-tcp.c: Don't include <netinet/udp.h>.
4689 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4691 * MAINTAINERS: Update my email address.
4693 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4695 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4696 include file of the same name.
4698 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4700 * configure.tgt: Mark v850 as multi-arched.
4701 * config/v850/tm-v850.h: Remove file.
4702 * config/v850/v850.mt: Eliminate TM_FILE.
4704 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4706 * v850-tdep.c: Full multi-arch.
4707 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4708 Define GDB_MULTI_ARCH to 2.
4710 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4712 * p-exp.y (current_type): New static variable.
4713 Carries the type of the expression at the position that is parsed.
4714 (push_current_type, pop_current_type): Two new functions. Used
4715 to store/restore current_type in expression on specific tokens.
4716 (search_field): New static variable. Set to one after parsing a point
4717 as at that point only a FIELDNAME token should be searched.
4718 (FIELDNAME): New token. After a point only a token belonging to
4719 current_type type definition is allowed.
4720 (all over token rules): reset and change current_type according
4722 (exp '[' rule): insert implicit array index field if
4723 exp is a pascal string type.
4725 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4727 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4728 frame info. Use frame_info's saved_regs instead of matching member
4729 in extra_frame_info throughout.
4730 (v850_frame_init_saved_regs): New function.
4731 (v850_init_extra_frame_info): Move most functionality into
4732 v850_frame_init_saved_regs().
4733 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4734 (v850_frame_find_saved_regs): Remove declaration.
4735 (FRAME_FIND_SAVED_REGS): Remove definition.
4736 (v850_frame_init_saved_regs): Add declaration.
4737 (FRAME_INIT_SAVED_REGS): Add definition.
4739 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4741 * v850-tdep.c: Begin multi-arch'ing v850.
4742 (v850_target_architecture_hook): Remove function.
4743 (v850_gdbarch_init): New function. Add code previously in
4744 v850_target_architecture_hook().
4745 (_initialize_v850_tdep): Don't set target_architecture_hook.
4746 Call register_gdbarch_init() instead.
4748 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4750 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4751 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4752 (fixup_class_method_type): Likewise.
4754 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4756 From Martin Pool <mbp@samba.org>:
4757 * gdbserver/server.c (gdbserver_usage): New function.
4760 2002-05-15 Jim Blandy <jimb@redhat.com>
4762 Add macro structures to GDB's symbol tables. Nobody puts anything
4764 * symtab.h (struct symtab): New member: `macro_table'.
4765 * buildsym.h (pending_macros): New global variable.
4766 * buildsym.c: #include "macrotab.h".
4767 (buildsym_init): Initialize `pending_macros'.
4768 (end_symtab): If we found macro information while reading a CU's
4769 debugging info, do build a symtab structure for it. Make the
4770 symtab point to the macro information, and clear the
4771 `pending_macros' pointer which held it while we were reading the
4773 (really_free_pendings): Free any pending macro table.
4774 * objfiles.h (struct objfile): New member: `macro_cache'.
4775 * objfiles.c (allocate_objfile): Set allocate and free functions
4776 for the macro cache's objstack.
4777 (free_objfile): Empty the macro cache's obstack.
4778 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4779 set new allocate and free functions for it.
4780 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4781 free functions for the macro cache's objstack. (Why is this
4782 function building its own objfile?)
4783 * symmisc.c (print_objfile_statistics): Print statistics on the
4785 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4787 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4789 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4790 (REGISTER_U_ADDR): Delete definition.
4791 (arm_register_u_addr): Delete declaration.
4793 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4795 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4796 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4798 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4800 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4803 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4805 * regcache.c (register_valid): Revise comments refering to "Not
4806 available" and "unavailable".
4807 * frame.c (frame_register_read): Ditto.
4808 * findvar.c (value_of_register): Ditto.
4810 2002-05-15 Andrew Cagney <cagney@redhat.com>
4812 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4813 (remote-sim.o): Update dependencies.
4814 (d10v-tdep.o): Specify dependencies.
4815 (sim_d10v_h): Define.
4817 2002-05-14 Jim Blandy <jimb@redhat.com>
4819 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4820 * macrotab.c (macro_lookup_inclusion, find_definition,
4821 new_macro_table): Same.
4823 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4824 not `! strcmp ()'. This is a dubious improvement.
4825 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4827 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4828 although it's not necessary, to avoid a warning.
4830 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4832 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4833 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4834 TYPE_INSTANCE_FLAGS.
4835 (struct main_type): New.
4836 (struct type): Move most members to struct main_type. Change
4837 cv_type and as_type to new type_chain member. Add instance_flags.
4838 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4839 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4840 (finish_cv_type): Remove prototype.
4841 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4843 (alloc_type_instance): New function.
4844 (smash_type): New function.
4845 (make_pointer_type, make_reference_type, make_function_type)
4846 (smash_to_member_type, smash_to_method_type): Call smash_type.
4847 (make_qualified_type): New function.
4848 (make_type_with_address_space): Call make_qualified_type.
4849 (make_cv_type): Likewise.
4850 (finish_cv_type): Remove unnecessary function.
4851 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4852 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4853 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4854 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4855 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4856 * hpread.c (hpread_read_struct_type): Likewise.
4857 * stabsread.c (read_struct_type): Likewise.
4859 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4861 * configure.tgt: Add a catch all sh* target, for cases like
4862 sh[2,3,4]-elf and sh-hms.
4864 2002-05-14 Keith Seitz <keiths@redhat.com>
4866 * event-loop.c (create_file_handler): Don't do anything but
4867 update data when we are given a fd which we are already
4870 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4872 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4873 (update_context): Use __func__ in warnings.
4875 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4877 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4878 and tcp_close to net_open and net_close.
4879 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4880 using UDP if requested. Don't try to disable Nagle on UDP
4882 * remote.c (remote_serial_open): New function. Warn about UDP.
4883 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4885 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4887 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4889 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4891 * configure.tgt: Remove sh-hms target.
4892 * MAINTAINERS: Don't list sh-hms as a separate target.
4894 2002-05-13 Jim Blandy <jimb@redhat.com>
4896 Add first preprocessor macro-expansion files.
4897 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4898 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4899 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4900 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4901 (COMMON_OBS): Add macrotab.o, macroexp.o.
4902 (macroexp.o, macrotab.o): New rules.
4904 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4906 * config/m88k/tm-m88k.h: Update copyright.
4907 (m88k_target_write_pc): Declare
4908 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4909 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4910 (SHIFT_INST_REGS): Update definition.
4911 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4912 using old definition of TARGET_WRITE_PC.
4913 * regcache.c (generic_target_write_pc): Delete code handling
4915 * gdbarch.sh (NNPC_REGNUM): Delete.
4916 * gdbarch.h, gdbarch.c: Regenerate.
4918 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4920 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4923 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4925 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4926 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4927 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4929 * c-typeprint.c (cp_type_print_method_args): Likewise.
4930 (c_type_print_args): Likewise.
4931 * d10v-tdep.c (d10v_push_arguments): Likewise.
4932 (d10v_extract_return_value): Likewise.
4933 * expprint.c (print_subexp): Likewise.
4934 * gdbtypes.c (lookup_primitive_typename): Likewise.
4935 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4936 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4937 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4938 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4939 (TYPE_VECTOR): Likewise.
4940 * hpread.c (hpread_read_struct_type)
4941 (fix_static_member_physnames, fixup_class_method_type)
4942 (hpread_type_lookup): Likewise.
4943 * mdebugread.c (parse_symbol, parse_type): Likewise.
4944 * p-lang.c (is_pascal_string_type): Likewise.
4945 * valops.c (hand_function_call): Likewise.
4946 * x86-64-tdep.c (classify_argument): Likewise.
4948 * hpread.c (hpread_read_function_type)
4949 (hpread_read_doc_function_type): Call replace_type.
4950 * dstread.c (create_new_type): Delete.
4951 (decode_dst_structure, process_dst_function): Call alloc_type.
4952 Use type access macros.
4954 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4956 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4957 the're not supported by the current architecture.
4958 (i387_fill_fxsave): Likewise.
4960 2002-05-12 Fred Fish <fnf@redhat.com>
4962 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4963 sect_index_xxx members to index the first slot in section_offsets
4964 if all of the section_offsets are zero.
4966 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4968 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4969 checked in with last change.
4971 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4973 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4974 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4977 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4979 * Makefile.in: Update dependencies.
4981 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4983 * language.c (local_hex_string_custom): Simplify. Do not depend
4984 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4986 * memattr.c (mem_info_command): Replace calls to
4987 longest_local_hex_string and longest_local_hex_string_custom.
4988 * buildsym.c (make_blockvector): Ditto.
4989 * solib.c (info_sharedlibrary_command): Ditto.
4990 * tracepoint.c (tracepoints_info): Ditto.
4991 * symtab.c (print_msymbol_info): Ditto.
4993 * language.c (local_hex_string): Delete.
4994 (local_hex_string_custom): Delete.
4995 (longest_local_hex_string): Rename to local_hex_string.
4996 (longest_local_hex_string_custom): Rename to
4997 local_hex_string_custom.
4998 * language.h (local_hex_string): Change parameter type to LONGEST.
4999 (local_hex_string_custom): Ditto.
5000 (longest_local_hex_string): Delete declaration.
5001 (longest_local_hex_string_custom): Ditto.
5003 * solib.c: Update copyright.
5004 * memattr.c: Update copyright.
5006 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5008 * arch-utils.h (legacy_register_to_value): Declare.
5009 (legacy_value_to_register): Declare.
5010 (legacy_convert_register_p): Declare.
5011 * arch-utils.c (legacy_register_to_value): New function.
5012 (legacy_value_to_register): New function.
5013 (legacy_convert_register_p): New function.
5015 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5016 (VALUE_TO_REGISTER): Define.
5017 (CONVERT_REGISTER_P): Define.
5018 * gdbarch.h, gdbarch.c: Regenerate.
5020 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5022 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5025 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5026 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5028 * Makefile.in: Update dependencies for valops.c.
5029 * valops.c: Include "gdb_assert.h".
5030 (typecmp): Skip THIS parameter to methods.
5031 (find_method_list): Remove static_memfuncp argument,
5032 update callers. Check for stub methods.
5033 (find_value_oload_method_list): Don't set *static_memfuncp.
5034 (find_overload_match): Don't check for stub methods. Assert
5035 that methods are not stubbed. Handle static methods.
5036 (value_find_oload_method_list): Remove static_memfuncp argument.
5037 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5038 to the argument list for static stub methods.
5039 * value.h (value_find_oload_method_list): Update prototype.
5041 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5043 * arch-utils.h (generic_register_size): Declare.
5044 (generic_register_raw_size, generic_register_virtual_size): Delete
5046 * arch-utils.c (generic_register_raw_size): Delete.
5047 (generic_register_size): New function.
5048 (generic_register_virtual_size): Delete.
5050 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5051 default generic_register_size.
5052 * gdbarch.h, gdbarch.c: Re-generate.
5054 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5055 register_virtual_size.
5056 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5059 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5061 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5062 * gdbarch.h, gdbarch.c: Regenerate.
5063 * gnu-v3-abi.c: Update copyright.
5064 (vtable_address_point_offset): Update.
5065 (gnuv3_rtti_type): Update.
5066 (gnuv3_baseclass_offset): Update.
5067 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5068 (init_fetch_link_map_offsets): Update.
5069 * remote.c (get_remote_state): Update.
5071 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5073 * TODO: Remove value_headof/value_from_vtable_info comment.
5074 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5075 * values.c (value_headof, value_from_vtable_info): Delete.
5076 * value.h (value_from_vtable_info): Delete prototype.
5078 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5080 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5081 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5083 (gdb_assert_h): Define.
5084 (gdb_wait_h): Define.
5085 (gdb_regex_h): Define.
5087 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5089 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5090 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5092 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5094 * nbsd-tdep.c: Fix comment.
5096 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5098 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5099 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5100 (nbsd-tdep.o): New dependency list.
5101 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5103 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5104 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5105 * nbsd-tdep.c: New file.
5106 * nbsd-tdep.h: New file.
5107 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5109 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5110 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5111 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5112 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5114 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5116 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5117 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5118 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5119 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5120 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5121 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5123 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5125 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5126 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5127 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5128 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5129 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5130 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5131 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5133 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5135 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5136 fetch_elfcore_registers to...
5137 * i386nbsd-tdep.c: ...here.
5138 (i386nbsd_use_struct_convention): Rename to...
5139 (i386nbsd_aout_use_struct_convention): ...this.
5140 (i386nbsd_supply_reg): New function.
5141 (i386nbsd_fill_reg): New function.
5142 (fetch_core_registers): Use i386nbsd_supply_reg.
5143 (fetch_elfcore_registers): Likewise.
5144 (_initialize_i386nbsd_tdep): New function.
5145 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5146 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5147 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5148 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5149 (i386nbsd_aout_use_struct_convention): ...this.
5151 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5153 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5154 (store_inferior_registers): Use shnbsd_fill_reg.
5155 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5156 sh_nbsd_supply_register): Collapse into...
5157 (shnbsd_supply_reg): ...this.
5158 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5159 (shnbsd_fill_reg): ...this.
5160 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5161 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5162 (fetch_core_registers): Use shnbsd_supply_reg.
5163 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5164 (sh_nbsd_core_fns): Rename to...
5165 (shnbsd_core_fns): ...this.
5166 (sh_nbsd_elfcore_fns): Rename to...
5167 (shnbsd_elfcore_fns): ...this.
5168 (sh_nbsd_init_abi): Rename to...
5169 (shnbsd_init_abi): ...this.
5170 (_initialize_sh_nbsd_tdep): Rename to...
5171 (_initialize_shnbsd_tdep): ...this.
5172 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5173 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5174 sh_nbsd_fill_register): Remove prototypes.
5175 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5177 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5179 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5180 (i387-nat.o): Delete dependency list.
5181 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5182 (x86-64-linux-nat.o): Likewise.
5183 * i387-nat.c: Delete file, moving contents to...
5184 * i387-tdep.c: ...here.
5185 * i387-nat.h: Rename...
5186 * i387-tdep.h: ...to this.
5187 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5188 * i386-linux-nat.c: Likewise.
5189 * i386bsd-nat.c: Likewise.
5190 * i386gnu-nat.c: Likewise.
5191 * i386nbsd-nat.c: Likewise.
5192 * i386v4-nat.c: Likewise.
5193 * x86-64-linux-nat.c: Likewise.
5194 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5195 * config/i386/go32.mh (NATDEPFILES): Likewise.
5196 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5197 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5198 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5199 * config/i386/linux.mh (NATDEPFILES): Likewise.
5200 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5201 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5202 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5203 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5205 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5207 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5208 (alphanbsd-nat.o): Remove dependency list.
5209 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5210 * alphanbsd-nat.c: Delete. Contents moved to...
5211 * alphanbsd-tdep.c: ...here.
5212 (_initialize_alphanbsd_tdep): Register core functions.
5213 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5215 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5217 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5218 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5219 (alphanbsd-nat.o): Likewise.
5220 (alphabsd-tdep.o): New dependency list.
5221 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5222 (fill_gregset): Use alphabsd_fill_reg.
5223 (supply_fpregset): Use alphabsd_supply_fpreg.
5224 (fill_fpregset): Use alphabsd_fill_fpreg.
5225 (fetch_inferior_registers): Use struct reg and struct fpreg
5226 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5227 and alphabsd_supply_fpreg.
5228 (store_inferior_registers): Use struct reg and struct fpreg
5229 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5230 and alphabsd_fill_fpreg.
5231 * alphabsd-tdep.c: New file.
5232 * alphabsd-tdep.h: New file.
5233 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5234 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5235 alphabsd_supply_fpreg.
5236 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5237 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5239 2002-05-11 Eric Christopher <echristo@redhat.com>
5241 * mips-tdep.c (mips_double_register_type): Fix thinko.
5242 (mips_single_register_type): Ditto.
5243 * MAINTAINERS: Add self.
5245 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5247 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5248 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5249 right thing on architectures with different endianness and/or
5252 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5254 From Christian Limpach <chris@Pin.LU>
5255 * configure.in: Change sed expression which comments out
5256 NATDEPFILES to also comment out continuation lines.
5257 * configure: Regenerate.
5259 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5261 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5264 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5266 * sh-tdep.c: Include correct file.
5268 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5270 New support for sh64-elf (sh5) target.
5272 * configure.tgt: For sh64-elf target, default to sh-elf.
5274 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5275 (struct gdbarch_tdep): Add new fields for new registers and ABI
5278 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5279 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5280 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5281 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5282 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5283 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5284 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5285 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5286 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5287 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5288 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5289 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5290 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5291 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5292 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5293 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5294 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5295 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5296 sign_extend, sh64_nofp_frame_init_saved_regs,
5297 sh64_init_extra_frame_info, sh64_get_saved_register,
5298 sh64_extract_struct_value_address, sh64_pop_frame,
5299 sh64_push_arguments, sh64_extract_return_value,
5300 sh64_store_return_value, sh64_show_media_regs,
5301 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5302 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5303 sh_sh64_register_virtual_type,
5304 sh_sh64_register_convert_to_virtual,
5305 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5306 sh64_register_read, sh64_pseudo_register_write,
5307 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5308 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5309 sh64_do_pseudo_register, sh_compact_do_registers_info,
5310 sh64_do_registers_info, sh_gdbarch_init): New functions.
5312 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5314 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5316 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5318 * linespec.c (decode_line_1): Check for a double quote after
5319 a filename correctly.
5321 2002-05-10 Jim Blandy <jimb@redhat.com>
5323 Properly track the size of the current objfile's .debug_line section.
5324 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5325 (DWARF_LINE_SIZE): New macro.
5326 (dwarf2_build_psymtabs_hard): Record the line section's size in
5327 the partial symbol table.
5328 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5331 2002-05-10 Petr Sorfa <petrs@caldera.com>
5333 * ia64-tdep.c: Handle breakpoints on L instruction type
5334 in MLX instruction bundle by moving the breakpoint to
5335 the third slot (X instruction type) as L holds only data.
5337 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5339 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5340 (process_one_symbol): Complain about discarding local symbols
5341 due to a misplaced N_LBRAC entry.
5343 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5345 From Daniel Berlin <dan@cgsoftware.com>
5346 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5347 decrease the depth we are at, in the case of templates.
5349 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5351 * mips-tdep.c (mips_float_register_type): New function.
5352 (mips_double_register_type): New function.
5353 (mips_print_register): Use them.
5354 (do_fp_register_row): Likewise.
5356 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5358 * signals/signals.c (signals): Remove conditional compilation around
5359 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5360 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5362 2002-05-09 Michael Snyder <msnyder@redhat.com>
5364 * remote-rdp.c (remote_rdp_can_run): Remove.
5366 2002-05-09 Tom Tromey <tromey@redhat.com>
5368 * jv-valprint.c (java_val_print): Handle `char' as a special case
5371 2002-05-09 Michael Snyder <msnyder@redhat.com>
5373 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5374 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5375 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5376 str r(0123),[sp,#nn].
5377 (arm_skip_prologue): Ditto. Also make disassembly
5378 order-independent by placing it in a loop.
5380 2002-05-06 Michael Snyder <msnyder@redhat.com>
5382 * stabsread.c (read_type): Add recognition for new attribute:
5383 "@V;" means that an array type is actually a vector.
5384 This is analogous to the vector flag that's been added to dwarf2.
5386 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5388 * i386-tdep.h (i386_abi): New enum.
5389 (struct gdbarch_tdep): Replace os_ident member with abi.
5390 (i386_gdbarch_register_os_abi): New prototype.
5391 * i386-tdep.c (i386_abi_names): New array.
5392 (process_note_abi_tag_sections): Removed.
5393 (process_note_sections): New function.
5394 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5395 (struct i386_abi_handler): New struct.
5396 (i386_abi_handler_list): New variable.
5397 (i386_gdbarch_register_os_abi): New function.
5398 (i386_gdbarch_init): Adapt for the changes given above.
5400 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5402 * gregset.h: Say "GNU/Linux".
5404 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5406 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5407 (build_gdbtypes): Build builtin_type_v2_float.
5408 (_initialize_gdbtypes): Register new builtin type.
5410 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5412 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5413 (clear_gdbarch_swap): New function.
5414 (initialize_non_multiarch): Call.
5415 (gdbarch_update_p): Before calling init(), swap out and clear the
5416 existing architecture.
5417 * gdbarch.c: Regenerate.
5419 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5421 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5424 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5426 * sh-nbsd-nat.c: Rename to...
5427 * shnbsd-nat.c: ...this.
5428 * sh-nbsd-tdep.c: Rename to...
5429 * shnbsd-tdep.c: ...this.
5430 * sh-nbsd-tdep.h: Rename to...
5431 * shnbsd-tdep.h: ...this.
5432 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5433 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5435 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5437 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5438 concatenation for command help messages.
5440 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5442 * NEWS: Note new sh*-*-netbsdelf* configuration.
5443 * configure.host: Set gdb_host_cpu to sh for all sh*.
5444 (sh*-*-netbsdelf*): New host.
5445 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5446 (sh*-*-netbsdelf*): New target.
5447 * sh-nbsd-nat.c: New file.
5448 * sh-nbsd-tdep.c: New file.
5449 * sh-nbsd-tdep.h: New file.
5450 * config/sh/nbsd.mh: New file.
5451 * config/sh/nbsd.mt: New file.
5452 * config/sh/nm-nbsd.h: New file.
5453 * config/sh/tm-nbsd.h: New file.
5455 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5457 * sh-tdep.c (sh_osabi_names): Declare.
5458 (process_note_abi_tag_sections): New function.
5459 (get_elfosabi): Ditto.
5460 (sh_gdbarch_register_os_abi): Ditto.
5461 (sh_dump_tdep): Ditto.
5462 _initialize_sh_tdep): Use gdbarch_register to register
5463 sh_gdbarch_init and sh_dump_tdep.
5464 * config/sh/tm-sh.h (sh_osabi): Declare.
5465 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5467 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5469 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5470 (thumb_scan_prologue): Ditto.
5471 (arm_find_callers_reg): Ditto.
5472 (arm_frame_chain): Ditto.
5473 (arm_init_extra_frame_info): Ditto.
5474 (arm_frame_saved_pc): Ditto.
5475 (arm_pop_frame): Ditto.
5476 (arm_push_return_address): New function.
5477 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5478 call_dummy_location, call_dummy_breakpoint_offset_p,
5479 call_dummy_breakpoint_offset, call_dummy_p,
5480 call_dummy_stack_adjust_p, call_dummy_words,
5481 sizeof_call_dummy_words, call_dummy_start_offset,
5482 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5483 call_dummy_address, push_return_address and push_dummy_frame for
5484 generic dummy frames.
5486 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5488 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5489 size computation for alloca.
5490 (sh_fp_frame_init_saved_regs): Likewise.
5492 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5494 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5495 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5496 * arm-tdep.c (arm_store_return_value): Use them.
5497 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5498 * remote-rdp.c (remote_rdp_fetch_register): Use
5499 ARM_MAX_REGISTER_RAW_SIZE.
5500 (remote_rdp_store_register): Likewise.
5502 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5504 * dwarf2cfi.c: Code cleanup, removed unused variables,
5505 added default labels to switch {} statements.
5506 * x86-64-tdep.c: Ditto.
5507 * x86-64-linux-nat.c: Ditto.
5509 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5511 * solib.h: Protect against multiple inclusion.
5513 2002-05-06 Jim Blandy <jimb@redhat.com>
5515 Add first preprocessor macro-expansion files.
5516 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5517 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5518 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5519 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5520 (COMMON_OBS): Add macrotab.o, macroexp.o.
5521 (macroexp.o, macrotab.o): New rules.
5523 Separate the job of reading the line number info statement program
5524 header (...expialidocious) out into its own function.
5525 * dwarf2read.c (struct line_head, struct filenames, struct
5526 directories): Replace with...
5527 (struct line_header): New structure, containing the full
5528 contents of the statement program header, including the
5529 include directory and file name tables.
5530 (read_file_scope): If we have line number info, instead of just
5531 calling dwarf_decode_lines to do all the work, call
5532 dwarf_decode_line_header first to get a `struct line_header'
5533 containing the data in the statement program header, and then
5534 pass that to dwarf_decode_lines, which will pick up where that
5535 left off. Be sure to clean up the `struct line_header' object.
5536 (dwarf_decode_line_header, free_line_header, add_include_dir,
5537 add_file_name): New functions.
5538 (dwarf_decode_lines): Move all the code to read the statement
5539 program header into dwarf_decode_line_header. Take the line
5540 header it built as the first argument, instead of the offset to
5541 the compilation unit's line number info. Use the new `struct
5542 line_header' type instead of the old structures. No need to do
5543 cleanups here now, since we don't allocate anything.
5544 (dwarf2_statement_list_fits_in_line_number_section,
5545 dwarf2_line_header_too_long): New complaints.
5547 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5549 * gdbtypes.c (init_vector_type): New function.
5550 (build_builtin_type_vec128): Simplify the representation of SIMD
5552 (build_gdbtypes): Initialize new builtin vector types.
5553 (_initialize_gdbtypes): Register new vector types with gdbarch.
5554 (builtin_type_v4_float, builtin_type_v4_int32,
5555 builtin_type_v8_int16, builtin_type_v16_int8,
5556 builtin_type_v2_int32, builtin_type_v4_int16,
5557 builtin_type_v8_int8): New (renamed) SIMD types.
5559 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5561 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5562 (i387_fill_fxsave): Likewise.
5564 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5566 * alpha-tdep.c (alpha_extract_return_value): Don't use
5567 non-constant array size in prototype.
5569 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5571 From Brian Taylor <briant at model dot com>:
5572 * ui-out.c (ui_out_field_core_addr): Use the function
5573 longest_local_hex_string_custom'to format addresses > 32 bits
5576 * ui-out.c (ui_out_field_core_addr): Update comment.
5578 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5580 * stack.c (select_and_print_frame): Make static. Delete the
5582 (func_command): Update call.
5583 (select_frame_command): Delete code computing the frame level.
5584 * frame.h (select_and_print_frame): Delete declaration.
5586 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5588 * sparc-tdep.c (sparc_get_saved_register): Comment why
5589 get_prev_frame call is safe.
5591 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5593 * frame.h (select_frame): Delete level parameter.
5594 * stack.c (select_frame): Update. Use frame_relative_level to
5595 obtain the frame's level.
5596 (select_and_print_frame): Update call.
5597 (select_frame_command): Ditto.
5598 (up_silently_base): Ditto.
5599 (down_silently_base): Ditto.
5600 * ocd.c (ocd_start_remote): Ditto.
5601 * remote-rdp.c (remote_rdp_open): Ditto.
5602 * remote-mips.c (mips_initialize): Ditto.
5603 (common_open): Ditto.
5604 * remote-e7000.c (e7000_start_remote): Ditto.
5605 * m3-nat.c (select_thread): Ditto.
5606 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5607 (child_get_current_exception_event): Ditto.
5608 * varobj.c (varobj_create): Ditto.
5609 (varobj_update): Ditto.
5610 (c_value_of_root): Ditto.
5611 * tracepoint.c (finish_tfind_command): Ditto.
5612 * corelow.c (core_open): Ditto.
5613 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5614 * thread.c (info_threads_command): Ditto.
5615 (switch_to_thread): Ditto.
5616 * infrun.c (normal_stop): Ditto.
5617 (restore_selected_frame): Ditto.
5618 (restore_inferior_status): Ditto.
5619 * breakpoint.c (insert_breakpoints): Ditto.
5620 (watchpoint_check): Ditto.
5621 (bpstat_stop_status): Ditto.
5622 (do_enable_breakpoint): Ditto.
5623 * blockframe.c (flush_cached_frames): Ditto.
5624 (reinit_frame_cache): Ditto.
5626 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5628 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5631 2002-05-04 Jim Blandy <jimb@redhat.com>
5633 * gdbtypes.c (replace_type): Doc fix.
5635 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5637 * valprint.c (strcat_longest): Delete commented out function.
5640 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5642 * MAINTAINERS: Mark a29k as deleted.
5643 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5644 Move new configurations to the top.
5645 * configure.tgt: Remove a29k.
5646 * config/a29k/tm-vx29k.h: Delete.
5647 * config/a29k/vx29k.mt: Delete.
5648 * config/a29k/tm-a29k.h: Delete.
5649 * config/a29k/a29k-udi.mt: Delete.
5650 * config/a29k/a29k.mt: Delete.
5651 * a29k-tdep.c: Delete.
5652 * remote-udi.c: Delete.
5653 * remote-mm.c: Delete.
5654 * remote-eb.c: Delete.
5655 * remote-adapt.c: Delete.
5656 * Makefile.in: Remove obsolete code.
5657 * gdbserver/Makefile.in: Ditto.
5658 * config/s390/s390x.mt: Ditto.
5659 * config/s390/s390.mt: Ditto.
5660 * config/sparc/sparclynx.mh: Ditto.
5661 * config/sparc/linux.mh: Ditto.
5662 * config/pa/hppaosf.mh: Ditto.
5663 * config/pa/hppabsd.mh: Ditto.
5664 * config/ns32k/nbsd.mt: Ditto.
5665 * config/mips/vr5000.mt: Ditto.
5666 * config/m68k/sun3os4.mh: Ditto.
5667 * config/m68k/nbsd.mt: Ditto.
5668 * config/m68k/m68klynx.mh: Ditto.
5669 * config/m32r/m32r.mt: Ditto.
5670 * config/i386/x86-64linux.mt: Ditto.
5671 * config/i386/nbsdelf.mt: Ditto.
5672 * config/i386/nbsd.mt: Ditto.
5673 * config/i386/i386lynx.mh: Ditto.
5675 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5677 * target.c (debug_print_register): New function. Handle oversize
5679 (debug_to_fetch_registers): Call.
5680 (debug_to_store_registers): Call.
5682 2002-05-03 Jim Blandy <jimb@redhat.com>
5684 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5685 (read_type): Doc fix.
5686 * gdbtypes.c (replace_type): Doc fix.
5688 * stabsread.c (multiply_defined_struct): New complaint.
5689 (read_struct_type): If the type we were passed isn't empty, or
5690 incomplete, don't read the new struct type into it; complain,
5691 and return the original type unchanged. Take a new `type_code'
5692 argument, which is the type code for the new type.
5693 (read_type): Rather than storing the type's type code here, pass
5694 it as an argument to read_struct_type, and let that take care of
5695 storing it. That way, we don't overwrite the original type code,
5696 so read_struct_type can use it to decide whether we're overwriting
5697 something we shouldn't.
5698 (complain_about_struct_wipeout): New function.
5700 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5702 * gdbarch.sh: Assert that gdbarch is non-NULL.
5703 * gdbarch.c: Regenerate.
5705 2002-05-03 Jason Merrill <jason@redhat.com>
5707 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5710 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5712 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5713 (x86_64_dwarf2gdb_regno_map_length),
5714 (x86_64_dwarf2_reg_to_regnum): Added.
5715 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5716 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5717 (_initialize_x86_64_tdep): Synced with the change above.
5718 (x86_64_skip_prologue): Reformulated message.
5720 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5722 * f-exp.y: Also use new prev_lexptr variable
5723 to improve error reporting. Based on Michael Snyder
5724 2002-04-24 dated patch to c-exp.y.
5725 * jv-exp.y: Likewise.
5726 * m2-exp.y: Likewise.
5728 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5730 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5731 we are dealing with vectors.
5733 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5735 * config/m68k/tm-nbsd.h: Obvious fix,
5736 correct machine name.
5738 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5740 * p-typeprint.c (pascal_type_print_base): Add support
5741 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5743 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5745 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5746 for fondamental pascal 'char' type.
5748 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5750 * p-lang.h (is_pascal_string_type): Declaration changed,
5751 new sixth argument of type char ** added.
5752 * p-lang.c (is_pascal_string_type): Implementation
5753 changed. Args length_pos, length_size, string_pos, char_size
5754 can now be NULL. New argument arrayname set to the field
5755 name of the char array. Return value set to char array
5756 field index plus one.
5757 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5758 is_pascal_string_type function.
5760 2002-05-02 Andrew Cagney <cagney@redhat.com>
5762 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5763 <cagney@redhat.com> change.
5764 * gdbarch.c: Regenerate.
5766 2002-05-02 Andrew Cagney <cagney@redhat.com>
5768 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5769 before probing for a new one. Detect errorenous gdbarch_init
5771 * gdbarch.c: Regenerate.
5773 2002-05-01 Andrew Cagney <cagney@redhat.com>
5775 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5776 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5777 * config/v850/tm-v850.h: Ditto. Update copyright.
5779 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5781 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5784 2002-04-30 Michael Snyder <msnyder@redhat.com>
5786 * arm-tdep.c: Whitespace clean-ups.
5787 (arm_skip_prologue): Fix thinko; two lines
5788 should have been removed as part of 4/24 change.
5790 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5792 * rs6000-tdep.c: Added comment describing how fpscr register
5793 numbers were chosen.
5795 2002-04-30 Michael Snyder <msnyder@redhat.com>
5797 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5799 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5801 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5802 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5803 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5805 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5807 From Louis Hamilton <hamilton@redhat.com>:
5808 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5809 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5810 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5811 not bfd-private xcoff data, to determine wordsize.
5812 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5814 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5816 GDB 5.2 released from 5.2 branch.
5818 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5820 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5821 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5822 (x86_64_register_info_table): Added comments with register numbers.
5824 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5826 * rs6000-tdep.c (rs6000_extract_return_value,
5827 rs6000_store_return_value): Handle returning vectors.
5828 (rs6000_gdbarch_init): Use
5829 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5830 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5832 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5834 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5835 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5837 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5839 * hpread.c (hpread_psymtab_to_symtab_1,
5840 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5841 with fprintf_unfiltered (gdb_stderr,...).
5843 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5845 * remote-array.c (printf_monitor, write_monitor,
5846 array_insert_breakpoint, array_remove_breakpoint ):
5847 Replace fprintf (stderr,...
5848 with fprintf_unfiltered (gdb_stderr,....
5849 * remote-es.c: Likewise.
5850 * remote-os9k.c: Likewise.
5851 * remote-st.c: Likewise.
5853 2002-04-28 Andreas Schwab <schwab@suse.de>
5855 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5856 linux-proc.o and gcore.o.
5858 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5860 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5861 code without frame pointers.
5863 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5865 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5868 2002-04-26 Ben Elliston <bje@redhat.com>
5870 * target.c (do_xfer_memory): Correct reference to the new option
5871 "trust-readonly-sections".
5873 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5875 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5876 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5877 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5879 (read_array_type): Record the fact that this array type is really a
5880 vector (i.e. are passed in by value).
5882 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5884 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5885 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5886 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5887 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5888 * alpha-linux-tdep.c: Include frame.h.
5889 (alpha_linux_sigcontext_addr): New function.
5890 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5891 alpha_linux_sigcontext_addr.
5892 * alpha-osf1-tdep.c: Include gdbcore.h.
5893 (alpha_osf1_sigcontext_addr): New function.
5894 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5895 alpha_osf1_sigcontext_addr.
5896 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5897 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5899 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5901 * stack.c (selected_frame_level):
5902 (select_frame): Do not set selected_frame_level.
5903 * frame.h (selected_frame_level): Delete declaration.
5905 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5907 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5908 convert_from_func_ptr-addr when AIX / PowerOpen.
5910 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5912 * valops.c (hand_function_call): Call
5913 generic_save_call_dummy_addr.
5914 * frame.h (generic_save_call_dummy_addr): Declare.
5915 * blockframe.c (struct dummy_frame): Add fields call_lo and
5917 (generic_find_dummy_frame): Check for PC in range call_lo to
5918 call_hi instead of entry_point_address.
5919 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5920 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5921 (generic_save_call_dummy_addr): New function.
5923 2002-04-24 David S. Miller <davem@redhat.com>
5925 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5926 sparc_skip_prologue.
5927 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5928 information to find prologue when possible.
5929 (sparc_prologue_frameless_p): Call examine_prologue directly.
5930 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5931 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5933 (SKIP_PROLOGUE): Likewise.
5935 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5937 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5938 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5939 indicate that the condition it was testing is always true.
5940 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5941 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5942 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5944 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5946 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5947 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5948 tdep->jb_pc and tdep->jb_elt_size.
5949 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5950 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5951 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5952 * alpha-nat.c (get_longjmp_target): Remove.
5953 (JB_ELEMENT_SIZE): Ditto.
5955 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5956 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5957 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5958 to alpha_get_longjmp_target.
5959 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5960 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5961 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5963 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5965 * README: Update to GDB 5.2.
5967 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5969 * gdbarch.sh (LC_ALL): Set to `c'.
5971 2002-04-25 Theodore A. Roth <troth@verinet.com>
5973 * avr-tdep.c: Ran through gdb_indent.sh.
5975 2002-04-25 Theodore A. Roth <troth@verinet.com>
5977 * MAINTAINERS: Add myself as AVR maintainer.
5978 * NEWS: Note new target avr.
5980 2002-04-25 Theodore A. Roth <troth@verinet.com>
5982 * Makefile.in: Add support for AVR target.
5983 * configure.tgt: Add support for AVR target.
5984 * avr-tdep.c: New file
5985 * config/avr/avr.mt: New file.
5987 2002-04-25 Theodore A. Roth <troth@verinet.com>
5989 * MAINTAINERS: Add myself to write-after-approval.
5991 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5993 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5994 with fprintf_unfiltered (gdb_stderr,....
5996 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5999 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6001 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6003 * p-exp.y: Also use new prev_lexptr variable
6004 to improve error reporting. Based on Michael Snyder
6005 2002-04-24 dated patch to c-exp.y.
6007 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6009 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6010 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6011 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6013 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6015 (FUNCTION_START_OFFSET): Remove.
6016 (BREAKPOINT): Ditto.
6018 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6020 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6023 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6025 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6026 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6027 alpha_linux_pc_in_sigtramp.
6028 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6029 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6030 alpha_osf1_pc_in_sigtramp.
6031 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6032 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6033 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6034 alphafbsd_pc_in_sigtramp.
6035 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6036 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6037 alphanbsd_pc_in_sigtramp.
6038 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6039 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6041 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6043 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6045 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6047 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6049 (alphanbsd-nat.o): New dependency list.
6050 (alphanbsd-tdep.o): Ditto.
6051 * NEWS: Note new native NetBSD/alpha configuration.
6052 * alphanbsd-nat.c: New file.
6053 * alphanbsd-tdep.c: Ditto.
6054 * configure.host (alpha*-*-netbsd*): New host.
6055 * configure.tgt (alpha*-*-netbsd*): New target.
6056 * config/alpha/nbsd.mh: New file.
6057 * config/alpha/nbsd.mt: Ditto.
6058 * config/alpha/nm-nbsd.h: Ditto.
6059 * config/alpha/tm-nbsd.h: Ditto.
6061 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6063 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6064 (alpha-osf1-tdep.o): New dependency list.
6065 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6066 and skip_sigtramp_frame members.
6067 * alpha-linux-tdep.c: Include gdbcore.h.
6068 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6069 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6070 * alpha-osf1-tdep.c: New file.
6071 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6073 (alpha_frame_past_sigtramp_frame): New function.
6074 (alpha_dynamic_sigtramp_offset): Ditto.
6075 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6076 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6077 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6078 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6079 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6080 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6081 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6082 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6083 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6084 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6085 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6086 to find_solib_trampoline_target.
6087 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6088 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6089 (SKIP_TRAMPOLINE_CODE): Remove.
6090 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6091 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6092 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6093 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6094 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6095 (PROC_SIGTRAMP_MAGIC): Ditto.
6096 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6097 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6098 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6099 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6100 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6102 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6104 * NEWS: Note that Alpha targets are now multi-arch.
6106 2002-04-24 Michael Snyder <msnyder@redhat.com>
6108 * parser-defs.h (prev_lexptr): New external variable.
6109 * parse.c (parse_exp_1): Set prev_lexptr to null before
6110 calling the language-specific parser.
6111 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6112 (yyerror): Use prev_lexptr in error reporting.
6114 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6116 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6117 * gregset.h: If FILL_FPXREGSET is defined, provide
6118 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6119 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6120 is defined, call fill_fpxregset.
6122 2002-04-24 Roland McGrath <roland@frob.com>
6124 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6125 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6126 (supply_gregset, supply_fpregset): New functions.
6128 * gnu-nat.c (gnu_find_memory_regions): New function.
6129 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6130 (gnu_xfer_memory): Add a cast.
6132 2002-04-24 Michael Snyder <msnyder@redhat.com>
6134 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6135 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6136 of argument regs ("str r(0123), [r11, #-nn"]).
6137 (arm_skip_prologue): Better handling for frameless functions.
6138 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6139 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6141 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6143 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6144 NUM_PSEUDO_REGS can be used.
6146 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6148 * arch-utils.h: Update copyright.
6150 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6151 * gdbarch.h, gdbarch.c: Re-generate.
6153 * inferior.h (IN_SIGTRAMP): Delete definition.
6154 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6155 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6157 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6158 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6159 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6160 (find_proc_framesize): Ditto.
6161 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6162 (alpha_init_extra_frame_info): Ditto.
6163 * infrun.c (handle_inferior_event): Ditto.
6164 (handle_inferior_event): Ditto.
6165 (check_sigtramp2): Ditto.
6166 * blockframe.c (create_new_frame): Ditto.
6167 (get_prev_frame): Ditto.
6168 * ppc-linux-tdep.c: Update comments.
6169 * i386-linux-tdep.c: Update comments.
6170 * breakpoint.c (bpstat_what): Update comment.
6172 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6174 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6175 (regsets_store_inferior_registers): Removed cast to int from
6177 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6179 2002-04-24 David S. Miller <davem@redhat.com>
6181 * i960-tdep.c (register_in_window_p): New function.
6182 (i960_find_saved_register): Use it instead of
6183 REGISTER_IN_WINDOW_P.
6184 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6186 * symtab.h (find_stab_function_addr): Kill extern.
6187 * minsyms.c (find_stab_function_addr): Remove from here...
6188 * dbxread.c: ... to here, and mark it static.
6190 2002-04-20 David S. Miller <davem@redhat.com>
6192 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6193 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6195 2002-04-21 David S. Miller <davem@redhat.com>
6197 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6198 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6199 (vx_write_register): Likewise.
6201 2002-04-23 J. Brobecker <brobecker@gnat.com>
6203 * source.c (is_regular_file): New function.
6204 (openp): Check wether file to open is a regular file
6205 to avoid opening directories.
6207 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6209 * findvar.c (extract_signed_integer): Cast printf argument
6210 to suppress format warning.
6211 (extract_unsigned_integer): Likewise.
6212 * infcmd.c (registers_info): Likewise.
6213 * top.c (get_prompt_1): Likewise.
6214 * valops.c (value_assign): Likewise.
6215 * valprint.c (print_decimal): Likewise.
6217 2002-04-22 H.J. Lu (hjl@gnu.org)
6219 * c-exp.y (typebase): Support
6221 [long|long long|short] [signed|unsigned] [int|]
6225 signed [long|long long|short] int
6227 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6229 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6231 * vax-tdep.h: New file.
6232 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6233 Make several routines static.
6234 (vax_get_saved_register): New function.
6235 (vax_gdbarch_init): New function.
6236 (_initialize_vax_tdep): Register vax_gdbarch_init.
6237 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6238 Remove macros now under the control of gdbarch.
6240 2002-04-22 Michael Snyder <msnyder@redhat.com>
6242 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6243 Some whitespace and coding standards tweaks.
6245 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6247 * vax-tdep.c: Include regcache.h.
6248 (vax_call_dummy_words): New.
6249 (sizeof_vax_call_dummy_words): New.
6250 (vax_fix_call_dummy): New function.
6251 (vax_saved_pc_after_call): Ditto.
6252 * config/vax/tm-vax.h: Don't include regcache.h.
6253 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6254 (CALL_DUMMY): Remove.
6255 (CALL_DUMMY_WORDS): Define.
6256 (SIZEOF_CALL_DUMMY_WORDS): Define.
6257 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6259 2002-04-18 Michael Snyder <msnyder@redhat.com>
6261 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6263 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6265 * vax-tdep.c (vax_frame_chain): New function.
6266 (vax_push_dummy_frame): Ditto.
6267 (vax_pop_frame): Ditto.
6268 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6269 (FRAMELESS_FUNCTION_INVOCATION): Use
6270 generic_frameless_function_invocation_not.
6271 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6272 (POP_FRAME): Use vax_pop_frame.
6274 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6276 * vax-tdep.c (vax_store_struct_return): New function.
6277 (vax_extract_return_value): Ditto.
6278 (vax_store_return_value): Ditto.
6279 (vax_extract_struct_value_address): Ditto.
6280 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6281 vax_store_struct_return.
6282 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6283 (STORE_RETURN_VALUE): Use vax_store_return_value.
6284 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6286 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6288 * vax-tdep.c (vax_frame_saved_pc): New function.
6289 (vax_frame_args_address_correct): Ditto.
6290 (vax_frame_args_address): Ditto.
6291 (vax_frame_locals_address): Ditto.
6292 (vax_frame_num_args): Move code to be in proximity to
6293 other frame-related functions.
6294 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6295 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6296 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6297 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6298 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6300 2002-04-22 H.J. Lu (hjl@gnu.org)
6302 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6305 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6307 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6308 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6309 (FRAME_INIT_SAVED_REGS): New macro.
6311 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6313 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6315 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6317 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6319 (fetch_osf_core_registers): Likewise.
6320 (supply_gregset): Likewise.
6322 2002-04-22 J. Brobecker <brobecker@gnat.com>
6324 * symfile.h (get_section_index): Define.
6325 * symfile.c (get_section_index): New function.
6326 * mdebugread.c (SC_IS_SBSS): New macro.
6327 (SC_IS_BSS): Return true for the scBss storage class only, as
6328 the scSBss storage class refers to the .sbss section.
6329 (parse_partial_symbols): Discard the symbols which associated
6330 section does not exist.
6331 Make sure to use the .sbss section index for symbols which
6332 storage class is scBss, rather than using the .bss section index.
6334 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6336 * vax-tdep.c: Update copyright years.
6337 (vax_register_name): New function.
6338 (vax_register_byte): Ditto.
6339 (vax_register_raw_size): Ditto.
6340 (vax_register_virtual_size): Ditto.
6341 (vax_register_virtual_type): Ditto.
6342 * config/vax/tm-vax.h: Update copyright years.
6343 (REGISTER_NAMES): Remove.
6344 (REGISTER_NAME): Define.
6345 (REGISTER_BYTE): Use vax_register_byte.
6346 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6347 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6348 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6350 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6352 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6354 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6356 2002-04-21 David S. Miller <davem@redhat.com>
6358 * arch-utils.c (generic_prologue_frameless_p): Kill
6359 SKIP_PROLOGUE_FRAMELESS_P code.
6360 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6362 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6363 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6364 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6366 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6367 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6368 (sparc_gdbarch_init): Pass it to
6369 set_gdbarch_prologue_frameless_p.
6371 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6373 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6374 (alphabsd-nat.o): New dependency list.
6376 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6378 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6380 (alpha-linux-tdep.o): New dependency list.
6381 (alphafbsd-tdep.o): Likewise.
6383 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6385 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6387 * alpha-tdep.c: ...from here.
6388 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6390 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6392 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6393 prototype from here...
6394 * alpha-tdep.h: ...to here.
6396 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6398 * frame.h (selected_frame_level): Document as deprecated.
6399 (frame_relative_level): Declare.
6400 * stack.c (frame_relative_level): New function.
6401 (selected_frame_level): Document as deprecated.
6402 (select_frame): Do not set the selected_frame_level.
6404 * stack.c (frame_info, record_selected_frame): Update.
6405 (frame_command, current_frame_command): Update.
6406 (up_silently_base, up_command, down_silently_base): Update.
6407 (down_command): Update.
6408 * inflow.c (kill_command): Update.
6409 * tracepoint.c (finish_tfind_command): Update.
6410 * corelow.c (core_open): Update.
6411 * thread.c (info_threads_command): Update.
6412 (do_captured_thread_select): Update.
6413 * infcmd.c (finish_command): Update.
6414 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6416 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6418 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6420 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6422 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6425 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6427 * alphafbsd-tdep.c: Update copyright years. Include
6429 (alphafbsd_use_struct_convention): Make static.
6430 (alphafbsd_init_abi): New function.
6431 (_initialize_alphafbsd_tdep): New function.
6432 * config/alpha/tm-fbsd.h: Update copyright years.
6433 (USE_STRUCT_CONVENTION): Remove.
6435 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6437 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6438 an Alpha ABI variant.
6439 (alpha_abi_handler_list): Declare.
6440 (alpha_gdbarch_register_os_abi): New function.
6441 (alpha_gdbarch_init): Give registered ABI variant handlers a
6442 chance to tweak the gdbarch once we have set up defaults.
6443 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6445 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6447 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6448 to standard_coerce_float_to_double.
6449 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6451 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6453 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6454 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6455 from gdbarch_tdep rather than a constant.
6456 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6457 the default text address for all Alpha Unix ABIs.
6458 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6459 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6463 * alpha-tdep.h: New file. Includes several Alpha target constants
6465 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6466 let gdbarch deal with.
6467 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6468 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6470 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6471 Alpha target register names.
6472 * alphabsd-nat.c: Likewise.
6473 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6474 Alpha target register names. Make serveral routines static.
6475 (alpha_get_saved_register): New function.
6476 (alpha_abi_names): New.
6477 (process_note_abi_tag_sections): New function.
6478 (get_elfosabi): New function.
6479 (alpha_gdbarch_init): New function.
6480 (alpha_dump_tdep): New function.
6481 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6483 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6485 * frame.c (find_saved_register): Delete #ifdef
6486 HAVE_REGISTER_WINDOWS code.
6487 * config/sparc/tm-sparc.h: Update comments.
6488 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6490 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6492 * i960-tdep.c (i960_find_saved_register): New function.
6493 (i960_get_saved_register): New function.
6494 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6495 (i960_get_saved_register): Declare.
6496 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6498 2002-04-20 David S. Miller <davem@redhat.com>
6500 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6502 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6504 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6505 instead of NUM_PSEUDO_REGS.
6507 2002-04-20 David S. Miller <davem@redhat.com>
6509 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6510 GDB_MULTI_ARCH_PARTIAL
6511 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6512 define, let tm-sp64.h do it.
6514 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6516 * frame.c (find_saved_register): Avoid a NULL pointer
6517 dereference and actually walk the frame list.
6519 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6521 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6522 sorted in most most-recent-used order. Document.
6523 * gdbarch.h, gdbarch.c: Regenerate.
6525 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6527 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6528 (add_inferior): Call create_register_cache.
6529 (clear_inferiors): Call free_register_cache.
6530 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6531 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6532 (registers): Remove.
6533 (get_regcache): New function.
6534 (create_register_cache, free_register_cache): New functions.
6535 (set_register_cache): Don't initialize the register cache here.
6536 (registers_to_string, registers_from_string, register_data): Call
6538 * gdbserver/regcache.h: Add prototypes.
6539 * gdbserver/server.h: Likewise.
6541 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6543 * gdbserver/mem-break.c: New file.
6544 * gdbserver/mem-break.h: New file.
6545 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6547 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6549 (clear_inferiors): Free target_data member if set.
6550 (inferior_target_data, set_inferior_target_data): New functions.
6551 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6552 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6553 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6554 (struct inferior_linux_data): New.
6555 (linux_create_inferior): Use set_inferior_target_data.
6556 (linux_attach): Likewise. Call add_inferior.
6557 (linux_wait_for_one_inferior): New function.
6558 (linux_wait): Call it.
6559 (linux_write_memory): Add const.
6560 (initialize_low): Call set_breakpoint_data.
6561 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6563 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6565 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6567 * gdbserver/target.c (read_inferior_memory)
6568 (write_inferior_memory): New functions.
6569 * gdbserver/target.h (read_inferior_memory)
6570 (write_inferior_memory): Change macros to prototypes.
6571 (struct target_ops): Update comments. Add const to write_memory
6574 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6576 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6578 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6579 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6580 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6583 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6586 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6587 (build_builtin_type_vec128): Ditto.
6588 (append_composite_type_field): Fix calculation of type length in
6591 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6593 * config/djgpp/README: Update.
6595 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6598 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6600 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6601 (alpha_setup_arbitrary_frame): ...to this.
6602 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6603 for alpha_setup_arbitrary_frame.
6605 2002-04-18 Andrew Cagney <cagney@redhat.com>
6607 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6608 * gdbarch.h, gdbarch.c: Regenerate.
6610 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6611 * target.h (memory_breakpoint_from_pc): Update declaration.
6612 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6614 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6615 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6616 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6617 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6618 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6619 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6620 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6621 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6622 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6623 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6624 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6625 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6627 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6629 * monitor.c (monitor_insert_breakpoint): Ditto.
6630 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6632 * config/mcore/tm-mcore.h: Update copyright.
6633 * mem-break.c: Ditto.
6634 * xstormy16-tdep.c: Ditto.
6636 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6638 * p-exp.y: Add precedence rule for '^' token.
6639 This removes the shift/reduce conflicts.
6640 Remove the comment concerning these shift/reduce conflicts.
6642 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6644 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6645 (registers_powerpc_nofp): New register set for processors
6646 without floating point unit.
6648 2002-04-18 David S. Miller <davem@redhat.com>
6650 * MAINTAINERS: Add myself to write-after-approval.
6652 2002-04-17 Michael Snyder <msnyder@redhat.com>
6654 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6656 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6658 * rs6000-tdep.c (frame_initial_stack_address): Use
6659 frame_register_read to read the alloca_reg.
6661 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6663 * frame.c (find_saved_register): Find saved registers in the next
6667 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6669 * gdbarch.sh (LANG): Set to ``c''.
6671 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6673 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6675 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6677 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6680 * hpread.c (hpread_get_lntt): Add declaration.
6681 Also fix PR gdb/391.
6683 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6685 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6686 * aclocal.m4, configure: Re-generate.
6689 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6691 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6692 instead of tm_print_insn.
6694 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6696 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6698 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6700 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6701 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6702 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6704 2002-04-12 Don Howard <dhoward@redhat.com>
6706 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6707 max_user_call_depth.
6708 (init_cmd_lists): Initialize the new value;
6709 * cli/cli-script.c (execute_user_command): Limit the call depth of
6710 user defined commands. This avoids a core-dump when user commands
6711 are infinitly recursive.
6713 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6715 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6716 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6717 from tdep struct instead of DEFAULT_LR_SAVE.
6718 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6719 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6720 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6722 2002-04-12 Michael Snyder <msnyder@redhat.com>
6724 * Remote.c: Spelling fix.
6725 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6726 If no symbol found for "sbrk", try "_sbrk".
6727 (make_output_phdrs): Use bfd_section_name.
6728 (gcore_copy_callback): Use bfd_section_name.
6729 * eval.c: Indentation fix-ups.
6730 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6731 in case it gets applied to an address that is already
6732 in the instruction space.
6733 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6734 * symfile.c: Fix indentation, long lines.
6735 * source.c: White space fix-up.
6737 2002-04-12 Andrew Cagney <cagney@redhat.com>
6739 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6740 * frame.c (frame_register_read): New function. Return non-zero on
6742 (read_relative_register_raw_bytes_for_frame): Delete.
6743 (read_relative_register_raw_bytes): Delete.
6744 * frame.h (frame_register_read): Declare.
6745 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6747 * infcmd.c (do_registers_info): Ditto.
6748 * hppa-tdep.c: Ditto.
6749 * rs6000-tdep.c: Ditto.
6750 * h8500-tdep.c: Ditto.
6751 * mips-tdep.c: Ditto.
6752 * h8300-tdep.c: Ditto.
6753 * z8k-tdep.c: Ditto.
6755 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6757 From Jimi X <jimix@watson.ibm.com>:
6758 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6761 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6763 From Jimi X <jimix@watson.ibm.com>:
6764 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6767 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6769 From Jimi X <jimix@watson.ibm.com>:
6770 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6771 register sets for these processor variants.
6773 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6775 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6776 registers which are allowed to fail to store.
6777 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6778 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6779 (ppc_cannot_store_register): FPSCR may not be storable.
6780 * regformats/reg-ppc.dat: Support FPSCR.
6782 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6784 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6785 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6786 Add fpscr as an invalid/unfetchable register.
6787 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6788 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6789 (fill_fpregset): Add support for register fpscr.
6790 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6791 (fill_gregset): Account for the fact that register ``mq'' might
6793 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6794 (registers_power): Add fpscr to register set at slot 71.
6795 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6796 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6798 2002-04-11 Michael Snyder <msnyder@redhat.com>
6800 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6801 * configure: Regenerate.
6802 * config.in: Regenerate.
6803 * acconfig.h: Add define for _SYSCALL32.
6804 * core-sol2.c: Remove #define _SYSCALL32.
6805 * solib-legacy.c: Remove #define _SYSCALL32.
6807 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6809 * stack.c (select_frame): Cleanup internal error message, do not
6812 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6814 * stack.c (select_frame): Check that selected_frame and the
6815 specified level are as expected.
6816 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6818 * frame.h (struct frame_info): Add field `level'. Update
6820 Work-in-progress PR gdb/464.
6822 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6824 * maint.c (maint_print_section_info): Rename print_section_info.
6825 (print_bfd_section_info, print_objfile_section_info): Update.
6826 * inferior.h (struct gdbarch): Add opaque declaration.
6827 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6828 * gdbarch.h: Regenerate.
6830 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6832 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6833 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6834 (kernel_u_size): Added.
6835 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6836 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6838 2002-04-04 Jim Ingham <jingham@apple.com>
6840 * valarith.c (find_size_for_pointer_math): New function, either returns
6841 the size for a pointer's target, returns 1 for void *, or errors for
6843 (value_add, value_sub): use find_size_for_pointer_math.
6845 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6847 * linux-low.c (linux_look_up_symbols): New hook.
6848 (linux_target_ops): Add linux_look_up_symbols.
6849 * remote-utils.c (decode_address): New function.
6850 (look_up_one_symbol): New function.
6851 * server.c (handle_query): Call target look_up_symbols hook.
6852 * server.h (look_up_one_symbol): Add prototype.
6853 * target.h (struct target_ops): Add look_up_symbols hook.
6855 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6857 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6858 * ChangeLog: Correct paths in last ChangeLog entry.
6860 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6862 * gdbserver/linux-low.h: Remove obsolete prototypes.
6863 (struct linux_target_ops): New.
6864 (extern the_low_target): New.
6865 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6866 (register_addr): Use the_low_target explicitly.
6867 (fetch_register): Likewise.
6868 (usr_fetch_inferior_registers): Likewise.
6869 (usr_store_inferior_registers): Likewise.
6870 * gdbserver/linux-arm-low.c (num_regs): Remove.
6871 (arm_num_regs): Define.
6872 (arm_regmap): Renamed from regmap, made static.
6873 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6875 (arm_cannot_store_register): Renamed from cannot_store_register,
6877 (the_low_target): New.
6878 * gdbserver/linux-i386-low.c (num_regs): Remove.
6879 (i386_num_regs): Define.
6880 (i386_regmap): Renamed from regmap, made static.
6881 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6883 (i386_cannot_store_register): Renamed from cannot_store_register,
6885 (the_low_target): New.
6886 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6887 (ia64_num_regs): Define.
6888 (ia64_regmap): Renamed from regmap, made static.
6889 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6891 (ia64_cannot_store_register): Renamed from cannot_store_register,
6893 (the_low_target): New.
6894 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6895 (m68k_num_regs): Define.
6896 (m68k_regmap): Renamed from regmap, made static.
6897 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6899 (m68k_cannot_store_register): Renamed from cannot_store_register,
6901 (the_low_target): New.
6902 * gdbserver/linux-mips-low.c (num_regs): Remove.
6903 (mips_num_regs): Define.
6904 (mips_regmap): Renamed from regmap, made static.
6905 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6907 (mips_cannot_store_register): Renamed from cannot_store_register,
6909 (the_low_target): New.
6910 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6911 (ppc_num_regs): Define.
6912 (ppc_regmap): Renamed from regmap, made static.
6913 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6915 (ppc_cannot_store_register): Renamed from cannot_store_register,
6917 (the_low_target): New.
6918 * gdbserver/linux-s390-low.c (num_regs): Remove.
6919 (s390_num_regs): Define.
6920 (s390_regmap): Renamed from regmap, made static.
6921 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6923 (s390_cannot_store_register): Renamed from cannot_store_register,
6925 (the_low_target): New.
6926 * gdbserver/linux-sh-low.c (num_regs): Remove.
6927 (sh_num_regs): Define.
6928 (sh_regmap): Renamed from regmap, made static.
6929 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6931 (sh_cannot_store_register): Renamed from cannot_store_register,
6933 (the_low_target): New.
6934 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6935 (the_low_target): New.
6937 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6939 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6940 override FP_REGNUM with frame->fp. Update copyright.
6941 * parse.c (num_std_regs, std_regs): Delete.
6942 (target_map_name_to_register): Do not search std_regs. Update
6943 function description.
6944 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6945 declarations. Update copyright.
6948 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6950 * gdbserver/Makefile.in: Add stamp-h target.
6951 * gdbserver/configure.in: Create stamp-h.
6952 * gdbserver/configure: Regenerated.
6954 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6956 * gdbserver/inferiors.c: New file.
6957 * gdbserver/target.c: New file.
6958 * gdbserver/target.h: New file.
6959 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6961 * gdbserver/linux-low.c (inferior_pid): New static variable,
6962 moved from server.c.
6963 (linux_create_inferior): Renamed from create_inferior.
6964 Call add_inferior. Return 0 on success instead of a PID.
6965 (linux_attach): Renamed from myattach.
6966 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6967 (linux_thread_alive): Renamed from mythread_alive.
6968 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6970 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6971 (regsets_store_inferior_registers): Correct error message.
6972 Add missing ``return 0''.
6973 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6974 (linux_store_registers): Renamed from store_inferior_registers.
6975 (linux_read_memory): Renamed from read_inferior_memory.
6976 (linux_write_memory): Renamed from write_inferior_memory.
6977 (linux_target_ops): New structure.
6978 (initialize_low): Call set_target_ops ().
6979 * gdbserver/remote-utils.c (unhexify): New function.
6980 (hexify): New function.
6981 (input_interrupt): Send signals to ``signal_pid''.
6982 * gdbserver/server.c (inferior_pid): Remove.
6983 (start_inferior): Update create_inferior call.
6984 (attach_inferior): Call add_inferior.
6985 (handle_query): New function.
6986 (main): Call handle_query for `q' packets.
6987 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6988 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6990 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6992 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6994 * gdbserver/configure.in: Check for <string.h>
6995 * gdbserver/configure: Regenerate.
6996 * gdbserver/config.in: Regenerate.
6997 * gdbserver/gdbreplay.c: Include needed system headers.
6998 (remote_open): Remove strchr prototype.
6999 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
7000 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
7001 (supply_register_by_name): Likewise.
7002 (collect_register): Change buf argument to void *.
7003 (collect_register_by_name): Likewise.
7004 * gdbserver/regcache.h: Add missing prototypes.
7005 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
7006 * gdbserver/server.c (handle_query): New function.
7007 (attached): New static variable, moved out of main.
7008 (main): Quiet longjmp clobber warnings.
7009 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
7010 * gdbserver/utils.c (error): Remove NORETURN.
7013 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7015 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7016 after the last symbol in a block.
7018 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7020 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7021 is non zero as a found symbol.
7023 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7025 * findvar.c: Include "builtin-regs.h".
7026 (value_of_register): Call value_of_builtin_reg when applicable.
7027 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7028 (target_map_name_to_register): Call
7029 builtin_reg_map_name_to_regnum.
7030 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7031 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7032 (builtin_regs_h): Define.
7033 (builtin-regs.o): New target.
7034 (findvar.o): Add $(builtin_regs_h).
7035 * builtin-regs.c, builtin-regs.h: New files.
7036 * std-regs.c: New file.
7037 Partial fix for PR gdb/251.
7039 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7041 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7042 it's no longer required.
7044 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7046 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7048 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7050 From Jimi X <jimix@watson.ibm.com>:
7051 * rs6000-tdep.c (rs6000_software_single_step): Use
7052 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7053 and size. Use target_insert_breakpoint() and
7054 target_remove_breakpoint() to insert and remove breakpoints
7055 instead of explicit memory reads and writes.
7057 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7059 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7060 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7061 ELF_OBJECT_FORMAT ifdef.
7063 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7065 From Jimi X <jimix@watson.ibm.com>:
7066 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7068 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7070 From Jimi X <jimix@watson.ibm.com>:
7071 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7072 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7074 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7076 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7077 s/asprintf/xasprintf/.
7078 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7080 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7082 I believe Jeff Law denies responsability for this one:
7083 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7084 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7085 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7086 Work-around for PR gdb/366.
7088 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7090 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7091 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7092 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7094 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7096 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7097 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7100 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7102 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7105 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7107 * README (Reporting Bugs in GDB): Document the bug web page as the
7108 prefered way of submitting bugs.
7111 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7113 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7115 * gdbarch.h, gdbarch.c: Re-generate.
7117 2002-04-07 Andreas Schwab <schwab@suse.de>
7119 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7120 buffer to regcache_collect.
7122 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7124 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7125 * gdbarch.c, gdbarch.h: Re-generate.
7127 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7129 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7130 declaration. Fix -Werror.
7132 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7134 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7135 * gdbarch.c: Regenerate.
7137 2002-04-05 Michael Snyder <msnyder@redhat.com>
7139 * breakpoint.c (clear_command): Rewrite middle section to
7140 combine two loops with identical control conditions.
7141 Add a cleanup to eliminate a memory leak.
7142 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7144 2002-04-05 H.J. Lu (hjl@gnu.org)
7146 * solib-svr4.c (bkpt_names): Add "__start".
7148 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7150 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7151 as test for 64 bit target.
7153 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7155 * h8500-tdep.c (h8500_write_fp): Delete function.
7156 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7157 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7158 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7160 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7161 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7163 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7164 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7165 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7166 (d10v_write_fp): Delete function.
7167 * inferior.h (write_fp, generic_target_write_fp): Delete
7169 * regcache.c (generic_target_write_fp): Delete function.
7170 (write_fp): Delete function.
7171 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7172 * gdbarch.h, gdbarch.c: Regenerate.
7173 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7174 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7175 (sparc64_write_fp): Delete declaration.
7176 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7177 (h8500_write_fp): Delete declaration.
7179 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7181 * sparc-tdep.c (sparc64_write_fp): Delete.
7182 (sparc_push_dummy_frame): Replace write_fp call with code to store
7184 (sparc_gdbarch_init): Do not initialize write_fp.
7186 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7188 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7191 2002-03-29 Jim Blandy <jimb@redhat.com>
7193 * stack.c (get_selected_block): Add new argument `addr_in_block',
7194 used to return the exact code address we used to select the block,
7196 * blockframe.c (get_frame_block, get_current_block): Same.
7197 * frame.h (get_frame_block, get_current_block,
7198 get_selected_block): Update declarations.
7199 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7200 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7202 2002-04-05 Michael Snyder <msnyder@redhat.com>
7204 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7207 2002-04-05 J. Brobecker <brobecker@gnat.com>
7209 * utils.c (xfullpath): New function.
7210 * defs.h (xfullpath): Add declaration.
7211 * source.c (openp): Use xfullpath in place of gdb_realpath to
7212 avoid resolving the basename part of filenames when the
7213 associated file is a symbolic link. This fixes a potential
7214 inconsistency between the filenames known to GDB and the
7215 filenames it prints in the annotations.
7216 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7217 to be able to match a filename with either the real filename, or
7218 the name of any symbolic link to this file.
7219 (lookup_partial_symtab): Ditto.
7221 2002-04-04 Michael Snyder <msnyder@redhat.com>
7223 * breakpoint.c: Add support for hardware breakpoints in overlays.
7224 (overlay_events_enabled): New state variable.
7225 (insert_breakpoints): Use overlay_events_enabled to decide
7226 whether to attempt to set a breakpoint at the overlay load addr.
7227 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7228 (remove_breakpoint): Use overlay_events_enabled to decide
7229 whether breakpoints need to be removed from overlay load addr.
7230 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7231 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7232 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7233 disable_overlay_breakpoints): Update overlay_events_enabled.
7235 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7237 * dwarf2read.c (struct function_range): New.
7238 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7239 (check_cu_functions): New.
7240 (read_file_scope): Initialize global function lists.
7241 Call dwarf_decode_line after processing children.
7242 (read_func_scope): Add to global function list.
7243 (dwarf_decode_lines): Call check_cu_functions everywhere
7244 record_line is called. Call record_line with a linenumber
7245 of 0 to mark sequence ends.
7247 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7249 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7250 change sync with glibc.
7252 2002-04-03 Jim Blandy <jimb@redhat.com>
7254 * configure.in: Call AC_C_INLINE.
7255 * configure: Regenerated.
7257 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7259 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7260 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7262 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7264 * NEWS: Mention gcore support on FreeBSD/i386.
7266 * fbsd-proc.c: New file.
7267 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7268 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7270 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7273 2002-03-29 Jim Blandy <jimb@redhat.com>
7275 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7276 unescaped newlines in string literals, but newer ones don't. So
7279 2002-03-26 Michael Snyder <msnyder@redhat.com>
7280 Andrew Cagney <cagney@redhat.com>
7282 * cli/cli-dump.c: New file. Dump memory to file,
7283 restore file to memory.
7284 * cli/cli-dump.h: New file.
7285 * Makefile.in: Add rules, dependencies for cli-dump.o.
7286 * NEWS: Mention new commands.
7288 2002-03-28 Michael Snyder <msnyder@redhat.com>
7290 * symfile.c (symbol_file_add): Move test for null symbols to later.
7292 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7294 From veksler at il.ibm.com:
7295 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7296 the xstrduped original path.
7299 2002-03-27 Michael Snyder <msnyder@redhat.com>
7301 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7302 * infcmd.c (_initialize_infcmd): Ditto.
7303 * language.c (_initialize_language): Ditto.
7304 * symfile.c (_initialize_symfile): Ditto.
7305 * top.c (_init_main): Ditto.
7306 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7308 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7310 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7311 vector registers handling.
7312 (skip_prologue): Handle new AltiVec instructions. Fill in new
7313 fields of frame data.
7314 (frame_get_saved_regs): Fill in information for AltiVec registers.
7316 2002-03-27 Jim Blandy <jimb@redhat.com>
7318 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7319 a function; leave this macro here to invoke that function.
7320 (symbol_init_mangled_name): Declaration for that function.
7321 * symtab.c (symbol_init_mangled_name): New function.
7323 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7325 * valarith.c: Replace strerror with safe_strerror.
7326 * tracepoint.c: Ditto.
7328 * go32-nat.c: Ditto.
7332 2002-03-27 Andreas Schwab <schwab@suse.de>
7334 * event-top.c (command_line_handler): Remove useless if.
7336 2002-03-27 Andreas Jaeger <aj@suse.de>
7338 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7341 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7343 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7344 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7345 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7346 (x86_64_linux_dr_get_status, supply_gregset),
7347 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7348 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7349 (x86_64_register_info_table): Add.
7350 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7351 (x86_64_register_raw_size, x86_64_register_virtual_type),
7352 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7353 general x86_64_register_info_table.
7354 (i386_gdbarch_init): gdbarch_register_bytes is now set
7355 dynamicaly during initialization.
7356 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7357 * gdbserver/linux-x86-64-low.c: Ditto.
7359 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7361 * gdbserver/server.c (main): Call target_signal_to_host_p
7362 and target_signal_to_host on signals received from the remote.
7363 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7364 target_signal_from_host on signals sent to the remote.
7365 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7366 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7368 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7370 * signals/signals.c: Include "server.h" in gdbserver build.
7371 (target_signal_from_name): Don't use STREQ.
7372 (_initialize_signals): Likewise. Don't include function in
7375 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7377 * signals.c: Moved to...
7378 * signals/signals.c: Here.
7379 * Makefile (signals.o): Update.
7381 2002-03-26 Jeff Law (law@redhat.com)
7383 * somread.c (som_symtab_read): Remove some commented out code and
7384 updated related comments. Do not set the minimal symbol table to
7385 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7386 in a dynamic executable.
7387 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7388 where we are unable to find the minimal symbol for the given
7391 2002-03-25 Jeff Law (law@redhat.com)
7393 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7395 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7397 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7399 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7401 * command.h: Update copyright.
7402 (struct cmd_list_element): Replace definition with opaque
7404 (enum cmd_types): Document that it will eventually be moved to
7406 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7407 (MALLOCED_REPLACEMENT): Delete macro.
7408 * Makefile.in (cli_decode_h): Add $(command_h).
7409 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7410 * top.c: Include "cli/cli-decode.h".
7411 * completer.c: Include "cli/cli-decode.h".
7412 * maint.c: Include "cli/cli-decode.h".
7413 * cli/cli-decode.h: Include "command.h".
7414 (enum command_class): Delete.
7415 (enum cmd_types): Comment out.
7416 (enum cmd_auto_boolean): Delete.
7417 (enum var_types): Delete.
7419 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7421 * cli/cli-decode.c: Include "gdb_assert.h".
7422 (add_set_or_show_cmd): New static function.
7423 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7424 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7425 all fields, such as func, from the set command.
7427 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7429 * MAINTAINERS (sh-elf): Change warning flag to -w.
7431 2002-03-23 Andrew Cagney <cagney@redhat.com>
7433 * defs.h (error): Add printf format attribute.
7434 * thread-db.c (thread_from_lwp): Fix error format string.
7435 * stack.c (parse_frame_specification): Ditto.
7436 * cli/cli-decode.c (undef_cmd_error): Ditto.
7437 * scm-lang.c (scm_lookup_name): Ditto.
7438 * tracepoint.c (trace_error): Ditto.
7439 * remote-utils.c (usage): Ditto.
7440 * remote.c (compare_sections_command): Ditto.
7443 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7445 * gdbtypes.c (append_composite_type_field): New function.
7446 (init_composite_type): New function.
7447 * gdbtypes.h (append_composite_type_field): Declare.
7448 (init_composite_type): Ditto.
7450 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7452 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7454 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7455 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7456 structure returning convention for SYSV ABI case, but not
7457 for GNU/Linux, FreeBSD, or NetBSD.
7459 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7461 * symtab.h (lookup_block_symbol): Add mangled_name argument
7464 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7465 with new mangled_name argument.
7466 * linespec.c (decode_line_1): Likewise.
7467 * valops (value_of_this): Likewise.
7468 * symtab.c (lookup_transparent_type): Likewise.
7469 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7470 (lookup_symbol): If we are given a mangled name, pass it down
7471 to lookup_symbol_aux.
7472 (lookup_block_symbol): If we are given a mangled name to check
7473 against, only return symbols which match it.
7475 2002-03-22 Christopher Faylor <cgf@redhat.com>
7477 * win32-nat.c (child_create_inferior): Check for proper shell to use
7478 here, in case the user changes it on the fly.
7479 (_initialize_inftarg): Remove shell path considerations.
7481 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7483 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7484 for gdbarch_max_register_raw_size and max_register_virtual_size.
7485 Adjust copyright year.
7487 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7489 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7490 in a function to cover the entire beginning of the function
7491 as well if it does not already.
7493 2002-03-21 Tom Rix <trix@redhat.com>
7495 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7496 (rs6000_ptrace64): Renamed from ptrace64.
7498 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7500 * gdbserver/remote-utils.c (remote_open): Don't call
7501 getprotobyname, we're all using TCP here so just use
7503 * gdbserver/gdbreplay.c (remote_open): Ditto.
7505 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7507 * regcache.c (_initialize_regcache): No need to call
7508 build_regcache() at this time; it gets called whenever
7509 the gdbarch changes.
7511 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7513 * sparc-nat.c: Include sys/param.h where possible.
7515 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7518 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7519 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7520 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7522 * stabsread.c (rs6000_builtin_type): Likewise.
7523 (read_sun_floating_type): Likewise.
7525 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7527 * stabsread.c (read_member_functions): Remove skip code for duplicate
7528 constructor/destructor methods. Use standard parsing for these
7529 methods and just do not chain them to the list of methods after
7532 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7534 * coffread.c: Remove redundant static declarations. Replace
7535 occurrences of `PTR' with `void *'.
7536 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7537 * top.h (quit_cover): Likewise.
7538 * defs.h (catch_errors): Likewise.
7540 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7542 * defs.h (XMALLOC): Define.
7543 * gdb-events.sh (XMALLOC): Delete macro.
7544 * gdb-events.c, gdb-events.h: Regenerate.
7545 * gdbarch.sh (XMALLOC): Delete macro.
7546 * gdbarch.c: Regenerate.
7547 * serial.c (XMALLOC): Delete macro.
7548 * ui-file.c (XMALLOC): Ditto.
7549 * ser-unix.h (XMALLOC): Ditto.
7550 * sh-tdep.c (XMALLOC): Ditto.
7551 * ui-out.c (XMALLOC): Ditto.
7552 * utils.c (XMALLOC): Ditto.
7553 * i386-tdep.c (XMALLOC): Ditto.
7554 * gdb-events.c (XMALLOC): Ditto.
7555 * d10v-tdep.c (XMALLOC): Ditto.
7556 * cli-out.c (XMALLOC): Ditto.
7558 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7559 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7560 * ui-file.c, ui-out.c: Ditto.
7562 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7564 * command.h (struct cmd_list_element): Add field context.
7565 (set_cmd_context, get_cmd_context): Declare.
7566 * cli/cli-decode.h: Ditto.
7567 * cli/cli-decode.c (get_cmd_context): New function.
7568 (set_cmd_context): New function.
7569 (add_cmd): Initialize context.
7570 Part of fixing PR gdb/145 and PR gdb/146.
7572 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7574 * cli/cli-decode.c (cmd_type): New function.
7575 * command.h (cmd_type): Declare.
7576 * infrun.c (set_schedlock_func): Call function cmd_type.
7577 * kod.c (kod_set_os): Call cmd_type.
7578 * cris-tdep.c (cris_version_update): Use function cmd_type.
7579 (cris_mode_update, cris_abi_update): Ditto.
7581 * command.h: (execute_cmd_post_hook): Declare.
7582 (execute_cmd_pre_hook): Declare.
7583 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7584 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7585 functions. Execute pre/post hook while ensuring that afterwords
7587 * top.c (execute_command): Use execute_cmd_post_hook, and
7588 execute_cmd_pre_hook to execute pre/post commands.
7589 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7591 (hook_stop_stub): Call execute_cmd_pre_hook.
7593 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7595 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7596 set'' and this leads to a core dump. Move xstrdup of
7597 operating_system to after check that it is not NULL.
7599 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7601 * kod.c (kod_set_os): Remove unnecessary check that
7602 ``command->type'' is set_cmd.
7604 * valprint.c (set_input_radix): Use input_radix.
7605 (set_output_radix): Use output_radix.
7606 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7609 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7611 * value.h (struct value): Delete field ``substring_addr''. Change
7612 aligner fields to force_doublest_align, force_longest_align,
7613 force_core_addr_align and force_pointer_aligh.
7615 * value.h (struct value): Fix typo in above change.
7617 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7619 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7620 to fix internal_error from ``maintenance print architecture''.
7622 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7624 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7625 for gcc versions after gcc-2.8.1.
7627 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7629 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7630 for method resolution. Restore adjustment of ``this'' pointer after
7631 calling value_struct_elt, which was accidentally removed during the
7634 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7636 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7638 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7640 * value.h (value_of_register): Update.
7642 2002-03-14 Richard Henderson <rth@redhat.com>
7644 * configure.in: Detect declaration for canonicalize_file_name.
7645 * utils.c (canonicalize_file_name): Declare, if needed.
7646 (gdb_realpath): Prefer realpath if available and usable.
7647 * config.in, configure: Rebuild.
7649 2002-03-14 Richard Henderson <rth@redhat.com>
7651 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7652 a constant array bound.
7654 * MAINTAINERS: Add myself to write-after-approval.
7656 2002-03-14 Michael Snyder <msnyder@redhat.com>
7658 * symfile.c (syms_from_objfile): Return immediately if no syms.
7659 (symbol_file_add): Return immediately if no syms.
7660 (find_sym_fns): Return immediately if no syms.
7662 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7664 * gdbserver/remote-util.c (remote_open): Print remote-side's
7665 IP address when remote debugging over the network.
7667 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7669 * config/sparc/fbsd.mh: Fix copyright.
7670 * config/sparc/fbsd.mt: Likewise.
7672 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7674 * MAINTAINERS: Fix typo in name of gdb warnings option.
7675 (x86-64): Fix formating so that this can be parsed by awk.
7677 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7679 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7680 * defs.h: Include "gdb/signals.h".
7681 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7683 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7685 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7686 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7689 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7690 Don Howard <dhoward@redhat.com>
7692 * mips-tdep.c (ST0_FR): Define.
7693 (mips2_fp_compat): New function, temporarily disabled.
7694 (mips_read_fp_register_single): New function.
7695 (mips_read_fp_register_double): New function.
7696 (mips_print_register): Use them.
7697 (do_fp_register_row): Likewise.
7699 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7701 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7704 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7706 * stabsread.c (read_member_functions): Fix is_stub test for
7707 static member functions, improve comment.
7709 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7711 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7712 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7713 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7714 commands that set boolean values.
7715 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7716 (arm_rdi_resume): Always initialize PC.
7717 (arm_rdi_open): Don't use rslt as a boolean.
7718 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7719 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7720 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7721 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7723 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7725 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7726 * configure: Rebuilt.
7728 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7730 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7731 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7733 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7735 * cli/cli-decode.c (set_cmd_completer): New function.
7736 * command.h (set_cmd_completer): Declare.
7737 * cli/cli-decode.h (set_cmd_completer): Ditto.
7739 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7740 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7741 * win32-nat.c (_initialize_inftarg): Ditto.
7742 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7743 * proc-api.c (_initialize_proc_api): Ditto.
7744 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7745 * source.c (_initialize_source): Ditto.
7746 * exec.c (_initialize_exec): Ditto.
7747 * solib.c (_initialize_solib): Ditto.
7748 * top.c (init_main): Ditto.
7749 * tracepoint.c (_initialize_tracepoint): Ditto.
7750 * symfile.c (_initialize_symfile): Ditto.
7751 * printcmd.c (_initialize_printcmd): Ditto.
7752 * infcmd.c (_initialize_infcmd): Ditto.
7753 * corefile.c (_initialize_core): Ditto.
7755 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7757 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7759 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7761 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7763 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7765 * NEWS: Update headings, 5.2 has branched.
7767 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7769 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7770 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7771 (register_addr, REGISTER_RAW_SIZE): Likewise.
7772 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7773 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7775 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7777 * MAINTAINERS (x86-64): Add myself.
7778 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7779 changed value_ptr -> struct value *
7781 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7783 * configure.host (sparc64-*-freebsd): Add.
7784 * configure.tgt: Likewise.
7785 * config/sparc/fbsd.mh: New file.
7786 * config/sparc/fbsd.mt: Likewise.
7787 * config/sparc/nm-fbsd.h: Likewise.
7788 * config/sparc/tm-fbsd.h: Likewise.
7790 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7792 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7793 regformats/reg-s390x.dat.
7795 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7797 * utils.c: Add FIXME explaining true/false problem.
7799 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7801 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7803 2002-02-28 Michael Chastain <mec@shout.net>
7805 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7807 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7809 * gdbserver/linux-s390-low.c: New file.
7810 * regformats/reg-s390.dat: New file.
7811 * regformats/reg-s390x.dat: New file.
7812 * gdbserver/configure.srv: Add S/390.
7813 * gdbserver/Makefile.in: Add S/390.
7814 * configure.tgt: Enable gdbserver for S/390.
7816 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7818 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7819 first line of the doc string for "info dos", except at the end of
7820 the sentence, since the short help stops at the first period.
7822 2002-02-28 Jason Merrill <jason@redhat.com>
7824 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7826 2002-02-27 Fred Fish <fnf@redhat.com>
7828 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7829 comment (dumy -> dummy).
7831 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7833 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7835 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7837 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7839 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7841 * gdbserver/acconfig.h: New file.
7842 * gdbserver/i387-fp.c: New file.
7843 * gdbserver/i387-fp.h: New file.
7844 * gdbserver/linux-x86-64.c: New file.
7845 * regformats/reg-x86-64.dat: New file.
7846 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7847 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7848 * gdbserver/configure.in: Add support for regsets.
7849 * gdbserver/config.in: Regenerate.
7850 * gdbserver/configure: Regenerate.
7851 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7852 * gdbserver/linux-low.h: New file.
7853 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7855 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7856 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7857 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7858 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7859 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7860 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7861 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7862 "i387-fp.h". Add PTRACE_GETREGS and friends.
7863 * gdbserver/regcache.c (supply_register): New function.
7864 (supply_register_by_name): New function.
7865 (collect_register): New function.
7866 (collect_register_by_name): New function.
7868 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7870 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7871 (config.status): Add configure.srv dependency.
7872 (server_h): Add config.h dependency.
7874 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7876 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7877 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7878 * gdbserver/configure.srv: Change i386-*-linux* to use
7881 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7883 * x86-64-tdep.c: Re-indent. Update copyright date.
7885 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7887 From Michal Ludvig <mludvig@suse.cz>:
7888 * x86-64-tdep.c (value.h): Delete.
7889 (gdb_assert.h): Include.
7890 (x86_64_register_convert_to_virtual,
7891 x86_64_register_convert_to_raw ): Add check which lets only
7892 floating-point values to be converted.
7893 (value_push): Delete.
7894 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7895 (i386_gdbarch_init): Number of register_bytes fixed.
7897 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7899 * MAINTAINERS: Add x86-64 target.
7901 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7903 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7904 * osfsolib.c (solib_map_sections): Ditto.
7905 * irix5-nat.c (solib_map_sections): Ditto.
7906 * corelow.c (gdb_check_format): Ditto.
7907 * symfile.c (symfile_bfd_open): Ditto.
7908 * solib.c (solib_map_sections): Ditto.
7911 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7913 * remote.c (_initialize_remote): By default, disable ``e'' and
7914 ``E'' step out-of-range packets.
7916 2002-02-26 Andreas Schwab <schwab@suse.de>
7918 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7919 m68k_linux_frame_saved_pc.
7920 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7922 (SIGCONTEXT_PC_OFFSET): Remove.
7923 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7924 m68k_linux_sigtramp_saved_pc): New functions.
7925 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7926 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7927 (UCONTEXT_PC_OFFSET): Define.
7928 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7929 non-RT and RT signal trampolines.
7931 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7933 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7934 (TARGET_NBPG, STACK_END_ADDR): Delete
7935 (VARIABLES_INSIDE_BLOCK): Delete.
7937 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7939 * utils.c (perror_with_name): Make string parameter constant.
7940 (print_sys_errmsg): Ditto.
7942 * defs.h (perror_with_name): Update.
7943 (print_sys_errmsg): Update.
7946 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7948 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7949 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7951 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7953 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7954 if it already matches the current architecture from the exec file.
7955 Include arch-utils.h for gdbarch_info_init prototype.
7956 * Makefile.in (rs6000-nat.o): Update dependencies.
7958 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7960 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7961 list of exported variables.
7963 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7965 * gdbserver/configure.srv: New file.
7966 * gdbserver/configure.in: Use configure.srv instead
7967 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7969 * gdbserver/configure: Regenerated.
7970 * gdbserver/terminal.h: New file.
7971 * gdbserver/Makefile.in: Update for configure changes. Remove
7972 more unneeded include paths.
7974 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7976 From wiz at danbala:
7977 * config/sparc/tm-sp64.h: Fix grammar and typos.
7980 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7982 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7983 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7984 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7985 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7986 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7987 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7988 * s390-tdep.c: Ditto.
7989 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7990 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7991 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7992 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7993 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7994 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7995 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7996 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7997 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7998 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8001 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8003 * lin-thread.c: Delete file.
8004 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8005 to gdb_proc_service.h.
8006 * configure: Re-generate.
8008 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8009 * serial.c (serial_open): Delete check for "ocd".
8012 * Makefile.in (linux-thread.o): Delete target.
8013 * linux-thread.c: Delete file.
8015 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8016 renamed SH files to be consistent.
8018 * symtab.c (sort_search_symbols): Use xfree.
8020 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8022 * arm-linux-tdep.c (arm_linux_init_abi): Register
8023 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8024 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8025 definition with undef, since we don't want the sysvr4 definition.
8026 (SKIP_TRAMPOLINE_CODE): Likewise.
8028 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8030 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8032 * configure.in: (AC_CHECK_FUNCS) Added test for
8033 canonicalize_file_name Regenerated.
8034 * config.in, configure: Regenerated.
8035 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8036 defined use canonicalize_file_name.
8038 2002-02-23 Michael Chastain <mec@shout.net>
8040 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8042 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8044 * README: Remove references to cygnus.com.
8045 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8046 dot com'' form. Remove references to cygnus.com and sourceware.
8048 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8050 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8051 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8052 1003.1-2001 no longer allows "head -1".
8053 * gdb/Makefile.in (version.c): Likewise.
8054 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8055 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8056 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8058 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8060 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8061 * command.h (cmd_cfunc_eq): Declare.
8062 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8064 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8065 ``struct cmd_list_element *''.
8066 * cli/cli-cmds.c (is_complete_command): Update. Use
8068 * top.c (execute_command): Pass the command to
8069 is_complete_command.
8070 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8072 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8074 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8075 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8076 architecture defines.
8077 * s390-tdep.c (s390_gdbarch_init): Likewise.
8079 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8081 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8082 (arm_linux_push_arguments): Likewise.
8083 (arm_linux_init_abi): Register them. Also register linux-specific
8085 (find_minsym_and_objfile): Use strcmp, not STREQ.
8086 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8087 (arm_linux_call_dummy_words): Delete declaration.
8088 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8089 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8091 (LOWEST_PC): Delete.
8093 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8095 * maint.c (print_section_info): Do not prepend `0x' to filepos
8096 output, it will be handled by local_hex_string_custom.
8098 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8100 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8101 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8102 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8104 2002-02-22 Jim Blandy <jimb@redhat.com>
8106 Indicate that the bcache functions don't change the strings
8108 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8109 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8111 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8113 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8115 2002-02-21 Christopher Faylor <cgf@redhat.com>
8117 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8118 find the complete path to a loaded DLL.
8120 2002-02-21 Fred Fish <fnf@redhat.com>
8122 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8123 that marks the end of the range of a function, enter a line number
8124 entry that has a line number of zero and a PC offset that matches
8125 the end of the function. This starts a range of PC's for which no
8126 line number information is known.
8127 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8128 PC's for which no line number info is found (line number is zero)
8129 then we didn't find any valid line information.
8130 * symtab.h: Document use of zero line number entry.
8132 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8134 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8135 (have_ptrace_getvrregs): Define for run time checks.
8136 (gdb_vrregset_t): New type for Altivec register handling.
8137 (fetch_register, store_register): Fetch/store altivec register
8139 (fetch_altivec_register, store_altivec_register): New functions.
8140 (supply_vrregset, fill_vrregset): New functions.
8141 (fetch_altivec_registers, store_altivec_registers): New functions.
8142 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8145 2002-02-21 Jiri Smid <smid@suse.cz>
8147 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8149 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8151 * Makefile.in (armnbsd-nat.o): Update dependencies.
8152 * armnbsd-nat.c (supply_gregset): New function. Common code to
8153 supply the integer register set.
8154 (supply_fparegset): New function. Similar for FPA registers.
8155 (fetch_regs, fetch_fp_regs): Use them.
8156 (fetch_core_registers): Likewise.
8157 (fetch_elfcore_registers): New function.
8158 (arm_netbsd_elfcore_fns): New core-file type specification.
8159 (_initialize_arm_netbsd_nat): Register it.
8161 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8163 * armnbsd-nat.c: Include gdbcore.h.
8164 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8165 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8166 'void' to declaration, to shut up ARI.
8167 (fetch_core_registers): Make static. Rewrite using supply_register.
8168 (arm_netbsd_core_fns): New core-file type specification.
8169 (_initialize_arm_netbsd_nat): New function.
8171 2002-02-21 Christopher Faylor <cgf@redhat.com>
8173 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8176 2002-02-20 Christopher Faylor <cgf@redhat.com>
8178 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8181 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8183 * jv-exp.y (parse_number): Change type of implicit longs
8184 to builtin_type_uint64.
8186 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8188 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8189 to be an integer instead of a `union wait'.
8191 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8193 * mips-linux-nat.c: Call the operating system GNU/Linux.
8194 * mips-linux-tdep.c: Likewise.
8195 * mips-tdep.c: Likewise.
8197 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8200 * jv-exp.y (parse_number): Handle 64-bit integers.
8202 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8204 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8205 AC_STDC_HEADERS to AC_HEADER_STDC.
8206 * gdbserver/configure: Regenerated.
8208 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8210 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8212 * sparc-tdep.c (get_longjmp_target): Likewise.
8214 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8216 * News: Add news about ARM and Multi-arch. Mention the new target
8219 2002-02-19 Jim Blandy <jimb@redhat.com>
8221 * stabsread.c (error_type_complaint): Improve error message.
8223 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8225 * gdbserver/README: Update documentation.
8226 * gdbserver/configure.in: Update configury to match documentation.
8227 * gdbserver/Makefile.in: Likewise.
8228 * gdbserver/configure: Regenerated.
8229 * gdbserver/aclocal.m4: New file, generated by aclocal.
8230 * gdbserver/config.in: New file, generated by autoheader.
8232 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8234 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8237 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8239 * arm-tdep.h (enum arm_float_model): New enum.
8240 (struct gdbarch_tdep): Add fp_model.
8241 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8242 up floating-point conversions until we know the floating-point model
8243 in use by the inferior. Don't complain about being unable to
8244 determine the ABI of the inferior when we don't have one.
8245 (arm_extract_return_value): Support different floating-point models.
8246 (arm_store_return_value): Likewise.
8247 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8249 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8251 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8253 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8254 of ``current_gdbarch''.
8256 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8258 * armnbsd-nat.c : ANSIfy all function declarations.
8259 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8260 (fetch_inferior_registers): Re-implement in terms of above.
8261 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8262 (store_inferior_registers): Re-implement in terms of above.
8264 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8266 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8268 * arm-linux-tdep.c: Likewise.
8269 * config/arm/tm-linux.h: Likewise.
8271 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8273 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8274 * config/arm/nbsd.mt (TM_FILE): Delete.
8275 * config/arm/tm-nbsd.h: Delete.
8277 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8279 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8280 Initialize CALL_DUMMY_LENGTH.
8282 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8284 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8286 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8287 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8288 defines one thing and that is incorrect for this port.
8289 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8291 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8293 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8295 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8297 * win32-nat.c (display_selector): New function. Displays information
8298 about the information returned by GetThreadSelectorEntry API function.
8299 (display_selectors): New function. Displays the infomation of
8300 the selector given as argument, or of CS, DS ans FS selectors
8301 if no argument is given.
8302 ( _initialize_inftarg): Add "w32" as info prefix command.
8303 Add "info w32 selector" as command calling display_selectors.
8305 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8307 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8308 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8311 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8313 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8315 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8317 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8318 (arm_fix_call_dummy): Call it.
8319 (arm_call_dummy_breakpoint_offset): Delete.
8320 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8321 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8323 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8325 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8326 Default to func_frame_chain_valid.
8327 * gdbarch.h, gdbarch.c: Re-generate.
8328 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8330 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8332 * ppc-linux-nat.c: Update copyright.
8333 (fetch_register, store_register): Add tid parameter, don't compute
8335 (fetch_ppc_registers, store_ppc_registers): Add tid
8336 parameter. Pass it along to callees.
8337 (fetch_inferior_registers, store_inferior_registers): Compute tid
8338 here, and pass it to calleed functions.
8339 (fill_gregset, supply_fpregset): Clean up formatting.
8341 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8343 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8344 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8346 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8348 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8349 * gdbarch.c gdbarch.h: Regenerate.
8350 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8352 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8353 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8354 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8356 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8357 * arm-tdep.c (arm_get_longjmp_target): New function.
8358 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8359 this to a positive value register arm_get_longjmp_target as the
8361 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8362 (arm_linux_init_abi): Set up longjmp description in tdep.
8363 * armnbsd-nat.c (get_longjmp_target): Delete.
8364 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8365 description in tdep.
8366 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8367 (get_longjmp_target): Delete declaration.
8368 (GET_LONGJMP_TARGET): Delete.
8369 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8370 (GET_LONGJMP_TARGET): Delete.
8372 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8374 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8375 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8376 of ``current_gdbarch''.
8378 2002-02-17 Tom Tromey <tromey@redhat.com>
8380 * cli/cli-cmds.c (compare_strings): New function.
8381 (complete_command): Only print each unique item once.
8382 * completer.h (complete_line): Declare.
8383 * completer.c (complete_line): New function.
8384 (line_completion_function): Use it.
8386 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8388 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8389 * gdbarch.h, gdbarch.c: Re-generate.
8391 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8393 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8395 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8397 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8398 * valops.c (value_arg_coerce): Don't take the address of a reference
8399 to convert an argument to a reference.
8401 2002-02-15 Christopher Faylor <cgf@redhat.com>
8403 * win32-nat.c (get_image_name): New function.
8404 (handle_load_dll): Use get_image_name function.
8405 (get_child_debug_event): Avoid registering debug events until possibly
8406 execed process is started.
8407 (child_create_inferior): Allow invocation via shell so that command
8408 line redirection, etc. works ok.
8409 (_initialize_inftarg): Add new command: "set shell" to control whether
8410 a shell is used to start a process.
8412 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8414 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8415 instead of find_register_by_number.
8416 (cannot_store_register): Likewise.
8418 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8420 * dwarf2read.c: Replace fprintf (stderr, ...) by
8421 fprintf_unfiltered (gdb_stderr, ...).
8423 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8425 * gdbserver/gdbserver.1: Document --attach.
8427 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8429 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8431 * arm-tdep.c (arm_default_arm_le_breakpoint)
8432 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8433 (arm_default_thumb_be_breakpoint): New. Initialize them from
8434 traditional breakpoint defines.
8435 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8436 (arm_gdbarch_init): Initialize new breakpoint variables.
8437 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8438 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8439 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8440 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8442 (arm_netbsd_init_abi_common): ... here; new function.
8443 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8444 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8445 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8446 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8448 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8450 * arm-tdep.h (enum arm_abi): New enum.
8451 (struct gdbarch_tdep): New structure.
8452 (LOWEST_PC): Provide a default.
8453 (arm_gdbarch_register_os_abi): Declare new function.
8454 * arm-tdep.c (arm_abi_names): New array.
8455 (process_note_abi_tag_sections): New function.
8456 (get_elfosabi): New function.
8457 (arm_gdbarch_register_os_abi): New function.
8458 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8459 support for that ABI has been built in, then call the appropriate
8460 configuration routine. Use gdbarch_num_regs() to get the number
8462 (arm_dump_tdep): New function.
8463 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8464 place-holder functions.
8465 (_initialize_arm_tdep): Register them.
8466 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8468 * armnbsd-tdep.c: New file.
8469 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8470 * config/arm/nbsd.mt (TDEPFILES): Add it.
8471 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8473 * armnbsd-nat.c: Include regcache.h.
8474 * Makefile.in (armnbsd-nat.o): Update dependency list.
8476 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8478 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8480 * gdbserver/Makefile.in: Fix typos in target rules.
8482 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8484 Fix part of PR gdb/267.
8485 * linespec.c (find_methods): Handle constructors specially for now.
8487 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8489 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8491 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8492 standard_coerce_float_to_double().
8494 2002-02-14 Christopher Faylor <cgf@redhat.com>
8496 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8499 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8501 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8502 find_variant_by_name, because it confuses the multiarch
8503 framework. Return NULL if there isn't an architecture with the
8504 user supplied name, instead of forcing a different one without
8505 recording the change with the multiarch machinery.
8506 (find_variant_by_name): Delete.
8508 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8510 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8511 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8513 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8515 * stack.c (print_frame_info_base): When calling
8516 print_frame_info_listing_hook, set current_source_symtab.
8518 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8520 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8521 and remove unused $(INCLUDE_DIR).
8522 Add regcache.c to OBS.
8523 Add generated register protocol files to clean target.
8524 Update dependencies for new objects, obsolete old target code.
8526 * gdbserver/linux-low.c: Remove all platform-specific code to
8527 new files. Remove various dead code. Update to use regcache
8529 * gdbserver/remote-utils.c (fromhex): Add return statement
8531 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8533 (input_interrupt): Add integer parameter to match prototype
8534 of a signal handler.
8535 (outreg): Use register_data ().
8536 (prepare_resume_reply): Use gdbserver_expedite_regs.
8537 * gdbserver/server.c (main): Dynamically allocate own_buf because
8538 PBUFSIZ is no longer constant. Use registers_to_string () and
8539 registers_from_string ().
8540 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8541 for error (), fatal (), and warning (). Update definition of
8542 PBUFSIZ to use regcache functionality. Add include guard.
8543 * gdbserver/utils.c (fatal): Add missing ``const''.
8544 (warning): New function.
8546 * regformats/regdat.sh: Include "regcache.h" in generated files.
8547 Provide init_registers () function.
8548 * regformats/regdef.h: Add prototype for set_register_cache ().
8551 * gdbserver/linux-arm-low.c: New file.
8552 * gdbserver/linux-i386-low.c: New file.
8553 * gdbserver/linux-ia64-low.c: New file.
8554 * gdbserver/linux-m68k-low.c: New file.
8555 * gdbserver/linux-mips-low.c: New file.
8556 * gdbserver/linux-ppc-low.c: New file.
8557 * gdbserver/linux-sh-low.c: New file.
8559 * gdbserver/regcache.c: New file.
8560 * gdbserver/regcache.h: New file.
8562 * gdbserver/low-linux.c: Removed obsolete file.
8564 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8566 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8567 * config/i386/linux.mt: Likewise.
8568 * config/ia64/linux.mt: Likewise.
8569 * config/m68k/linux.mh: Likewise.
8570 * config/powerpc/linux.mh: Likewise.
8571 * config/mips/linux.mt: Likewise.
8573 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8575 * config/i386/i386lynx.mh: Mark gdbserver variables
8576 as (currently) obsolete for this target.
8577 * config/i386/nbsd.mt: Likewise.
8578 * config/i386/nbsdelf.mt: Likewise.
8579 * config/m32r/m32r.mt: Likewise.
8580 * config/m68k/m68klynx.mh: Likewise.
8581 * config/m68k/nbsd.mt: Likewise.
8582 * config/m68k/sun3os4.mh: Likewise.
8583 * config/mips/vr5000.mt: Likewise.
8584 * config/ns32k/nbsd.mt: Likewise.
8585 * config/pa/hppabsd.mh: Likewise.
8586 * config/pa/hppaosf.mh: Likewise.
8587 * config/powerpc/nbsd.mt: Likewise.
8588 * config/rs6000/rs6000lynx.mh: Likewise.
8589 * config/s390/s390.mt: Likewise.
8590 * config/s390/s390x.mt: Likewise.
8591 * config/sparc/sparclynx.mh: Likewise.
8592 * config/sparc/sun4os4.mh: Likewise.
8593 * config/i386/x86-64linux.mt: Likewise.
8594 * config/sparc/linux.mh: Likewise.
8596 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8598 * configure.tgt: Configure gdbserver only for known working
8599 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8600 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8601 SUBDIRS if it is configured. Update comment for ${nativefile}.
8602 * configure: Regenerated.
8604 2002-02-13 Michael Snyder <msnyder@redhat.com>
8606 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8608 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8609 (default_gcore_mach): Just return 0, work around a problem in bfd.
8610 (default_gcore_target): OK to return NULL if exec_bfd is null.
8611 (make_mem_sec): Use a cast, avoid a warning.
8613 * procfs.c (find_memory_regions_callback): Use a cast instead of
8614 calling host_pointer_to_address (which complains if
8615 sizeof (host pointer) != sizeof (target pointer)).
8616 (procfs_make_note_section): Avoid overflow in psargs string.
8618 * procfs.c (procfs_make_note_section): Make the default
8619 implementation return an error.
8621 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8623 * procfs.c (procfs_make_note_section): Provide a default definition
8624 (for alpha-dec-osf4.0f). Fix typos.
8626 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8628 * linux-proc.c: Add include of regcache.h.
8629 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8631 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8633 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8634 * memattr.c (create_mem_region): Disallow useless empty region.
8635 Regions are half-open intervals, so allow [A..B) [B..C) as
8638 2002-02-13 Michael Chastain <mec@shout.net>
8640 * defs.h: Kill CONST_PTR.
8641 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8642 * c-lang.c (c_builtin_types): Likewise.
8643 * ch-lang.c (ch_builtin_types): Likewise.
8644 * f-lang.c (f_builtin_types): Likewise.
8645 * language.c (unknown_builtin_types): Likewise.
8646 * m2-lang.c (m2_builtin_types): Likewise.
8647 * p-lang.c (pascal_builtin_types): Likewise.
8648 * scm-lang.c (c_builtin_types): Likewise.
8650 2002-02-13 Keith Seitz <keiths@redhat.com>
8652 * arm-tdep.h (arm_get_next_pc): Add declaration.
8654 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8656 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8657 with other related struct-returning functions.
8658 (arm_extract_struct_value_address): New function.
8659 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8660 initialize float_format, double_format and long_double_format as
8661 appropriate to the endianness of the target.
8662 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8663 (arm_use_struct_convention): Delete declaration.
8664 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8666 2002-02-13 Keith Seitz <keiths@redhat.com>
8668 * defs.h (core_addr_to_string_nz): New function.
8670 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8672 Apply missing bits of 2002-01-15 patch.
8673 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8674 (fill_fpregset): Use i387_fill_fsave.
8676 2002-02-12 Keith Seitz <keiths@redhat.com>
8678 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8679 (core_addr_to_string_nz): New function.
8681 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8683 * arm-linux-nat.c: Really include arm-tdep.h.
8684 * config/arm/tm-linux.h (struct type, struct value): Declare.
8686 2002-02-11 Michael Snyder <msnyder@redhat.com>
8688 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8689 (gcore section): Ifdef for Solaris and Unixware only.
8690 (procfs_do_thread_registers): Unixware needs one lwpstatus
8691 per thread (not one prstatus or pstatus).
8692 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8693 not over all gdb threads. For unixware, call elfcore_write_pstatus
8694 once before iterating over threads.
8696 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8698 * arm-tdep.h: New file.
8699 * arm-tdep.c: Include arm-tdep.h.
8700 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8701 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8702 (arm_print_float_info, arm_register_type, convert_to_extended)
8703 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8704 (arm_extract_return_value, arm_register_name): Make static.
8705 (arm_software_single_step): Similarly. Fix types in declaration.
8706 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8707 (arm_store_return_value, arm_store_struct_return): New functions.
8708 (arm_gdbarch_init): Register the above functions. Also register
8709 call_dummy_start_offset, sizeof_call_dummy_words,
8710 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8711 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8712 max_register_virtual_size, register_size. Set up
8713 prologue_cache.saved_regs here, rather than ...
8714 (_initialize_arm_tdep): ... here.
8715 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8717 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8718 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8719 (arm_print_float_info, arm_register_type, convert_to_extended)
8720 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8721 (arm_extract_return_value, arm_register_name): Delete declarations.
8722 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8723 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8724 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8725 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8726 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8727 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8728 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8729 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8730 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8731 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8732 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8733 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8735 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8736 * remote-rdi.c remote-rdp.c: Likewise.
8737 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8738 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8739 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8742 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8743 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8744 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8745 from non-ARM_ prefixed definitions.
8746 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8748 * remote-rdi.c remote-rdp.c: Likewise.
8749 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8751 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8753 * arm-tdep.c (arm_frameless_function_invocation)
8754 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8755 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8756 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8757 (arm_pop_frame, arm_get_next_pc): Make static.
8758 (arm_gdbarch_init): Register above in gdbarch structure.
8759 (arm_read_fp): Renamed from arm_target_read_fp.
8760 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8761 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8762 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8763 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8764 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8765 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8766 (arm_pc_is_thumb_dummy): Delete declarations.
8767 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8768 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8769 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8770 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8772 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8774 * symtab.c (compare_search_syms): New function.
8775 (sort_search_symbols): New function.
8776 (search_symbols): Sort symbols after searching rather than
8779 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8781 * NEWS: Linux -> GNU/Linux.
8783 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8785 * gdbarch.sh: For for level one methods, disallow a definition
8786 when partially multi-arched. Add comments explaining rationale.
8787 * gdbarch.h: Re-generate.
8789 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8791 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8794 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8796 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8798 * gdbarch.c: Re-generate.
8800 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8802 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8803 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8806 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8808 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8810 (PUSH_ARGUMENTS): Switch to using predefault.
8811 * gdbarch.c: Regenerate.
8813 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8815 * valops.c (PUSH_ARGUMENTS): Delete definition.
8816 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8817 partial. Default to default_push_arguments.
8818 * gdbarch.h, gdbarch.c: Regenerate.
8820 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8822 * defs.h (throw_exception): Rename return_to_top_level. Update
8824 * utils.c (error_stream, internal_verror, quit): Ditto.
8825 * top.c (throw_exception, catcher): Ditto.
8826 * sparclet-rom.c (sparclet_load): Ditto.
8827 * remote.c (interrupt_query, minitelnet): Ditto.
8828 * remote-sds.c (interrupt_query): Ditto.
8829 * remote-mips.c (mips_error, mips_kill): Ditto.
8830 * ocd.c (interrupt_query): Ditto.
8831 * monitor.c (monitor_interrupt_query): Ditto.
8832 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8833 * target.h: Update comment.
8835 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8837 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8839 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8840 default_double_format.
8841 * gdbarch.h, gdbarch.c: Re-generate.
8842 * findvar.c (floatformat_unknown): Delete variable definition.
8843 * doublest.h (floatformat_unknown): Delete variable declaration.
8845 2002-02-09 Jim Blandy <jimb@redhat.com>
8847 * stabsread.c (read_type): Add code to parse Sun's syntax for
8848 prototyped function types.
8850 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8852 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8853 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8855 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8857 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8858 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8859 now _initialize_xcoffsolib gets called again and overrides the
8860 commands from solib.c in a native configuration.
8862 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8864 * doublest.c (store_typed_floating): Don't try to return a value.
8867 2002-02-08 Jim Blandy <jimb@redhat.com>
8869 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8870 is prototyped and has no arguments, print its argument list as
8873 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8875 * MAINTAINERS (write-after-approval): Add myself.
8876 (paper-trail): I've escaped!
8878 2002-02-08 Christopher Faylor <cgf@redhat.com>
8880 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8882 (_initialize_check_for_gdb_ini): Ditto.
8884 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8886 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8887 xaprintf -> xasprintf.
8889 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8891 * win32-nat.c: Remove use of printf and sprintf functions.
8893 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8895 * arm-tdep.c (arm_frame_chain_valid): Make static.
8896 (arm_push_arguments): Likewise.
8897 (arm_gdbarch_init): New function.
8898 (_initialize_arm_tdep): Call it.
8899 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8900 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8901 (FRAME_CHAIN_VALID): Delete.
8902 (arm_frame_chain_valid): Delete declaration.
8903 (PUSH_ARGUMENTS): Delete.
8904 (arm_push_arguments): Delete declaration.
8905 (CALL_DUMMY_P): Delete.
8907 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8908 Corinna Vinschen <vinschen@redhat.com>
8910 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8911 on builtin float types.
8913 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8915 * utils.c: Include <curses.h> before "bfd.h".
8916 * tui/tui-hooks.c: Likewise.
8917 * tui/tui.c: Likewise.
8918 * tui/tuiCommand.c: Likewise.
8919 * tui/tuiData.c: Likewise.
8920 * tui/tuiDataWin.c: Likewise.
8921 * tui/tuiDisassem.c: Likewise.
8922 * tui/tuiGeneralWin.c: Likewise.
8923 * tui/tuiIO.c: Likewise.
8924 * tui/tuiLayout.c: Likewise.
8925 * tui/tuiRegs.c: Likewise.
8926 * tui/tuiSource.c: Likewise.
8927 * tui/tuiSourceWin.c: Likewise.
8928 * tui/tuiStack.c: Likewise.
8929 * tui/tuiWin.c: Likewise.
8931 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8933 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8934 to include space for pseudoregs as well. Update loops accordingly.
8935 (sh_fp_frame_init_saved_regs): Ditto.
8936 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8938 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8940 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8941 Add Richard Earnshaw to Arm maintainers.
8943 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8945 * defs.h (warning_begin): Delete declaration.
8947 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8950 2002-02-07 Michael Snyder <msnyder@redhat.com>
8952 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8953 Logic bug, remove misplaced else.
8955 2002-02-07 Klee Dienes <klee@apple.com>
8957 * fork-inferior.c (fork_inferior): Add '!' to the list of
8958 characters that need to be quoted when building a string for the
8959 shell. Quote '!' specifically with a backslash, since CSH chokes
8960 when trying to evaluate "str!str".
8962 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8964 * rdi-share/host.h: Only provide a typedef for bool if it is not
8967 2002-02-04 Michael Snyder <msnyder@redhat.com>
8969 * breakpoint.h (enum bptype): Add new overlay event bp type.
8970 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8972 * breakpoint.c (create_internal_breakpoint): New function.
8973 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8974 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8975 (create_thread_event_breakpoint): Ditto.
8976 (create_solib_event_breakpoint): Ditto.
8977 (create_overlay_event_breakpoint): New function.
8978 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8979 (update_breakpoints_after_exec): Delete and re-initialize
8980 overlay event breakpoints after an exec. Add FIXME comment
8981 about longjmp breakpoint.
8982 (print_it_typical): Ignore overlay event breakpoints.
8983 (print_one_breakpoint): Ditto.
8985 (bpstat_what): Do not stop for overlay event breakpoints.
8986 (delete_breakpoint): Don't delete overlay event breakpoints.
8987 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8988 (breakpoint_re_set): Re-create overlay event breakpoint.
8990 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8991 (overlay_manual_command): Disable overlay breakpoints.
8992 (overlay_off_command): Disable overlay breakpoints.
8994 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8996 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8997 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8998 to here from config/tm-arm.h.
8999 (coff_sym_is_thumb): Make static.
9000 (arm_elf_make_msymbol_special): New function.
9001 (arm_coff_make_msymbol_special): New function.
9002 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9003 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9004 (coff_sym_is_thumb): Delete declaration.
9005 (arm_elf_make_msymbol_special): Declare.
9006 (arm_coff_make_msymbol_special): Declare.
9007 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9008 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9010 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9012 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9014 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9016 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9017 * gdbarch.c gdbarch.h: Regenerate.
9018 * arch-utils.c (default_print_float_info): New function.
9019 * arch-utils.h (default_print_float_info): Prototype it.
9020 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9021 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9022 (PRINT_FLOAT_INFO): Document it.
9024 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9025 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9026 (PRINT_FLOAT_INFO): Define.
9028 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9030 * win32-nat.c (_initialize_check_for_gdb_ini):
9031 Add typecast to sprintf argument to suppress a warning.
9033 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9035 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9036 to allow easier handling of pass state.
9037 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9038 that gives exception name and address.
9039 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9040 and set last_sig value to ourstatus->value.sig. Some missing
9042 (child_continue): Correctly report continue_status.
9043 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9044 TARGET_SIGNAL_0 (new default value).
9045 (child_resume): consider sig argument passed to decide if
9046 the exception should be passed to debuggee or not.
9048 2002-02-05 Michael Snyder <msnyder@redhat.com>
9050 * regcache.c (fetch_register): Call target_fetch_register
9051 only if we don't call FETCH_PSEUDO_REGISTER.
9052 (store_register): Call target_store_register only if we
9053 don't call STORE_PSEUDO_REGISTER.
9055 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9057 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9058 ELF_MAKE_MSYMBOL_SPECIAL.
9059 * gdbarch.c, gdbarch.h: Regenerate.
9060 * arch-utils.c (default_make_msymbol_special): New function.
9061 * arch-utils.h (default_make_msymbol_special): Export.
9062 * elfread.c (elf_symtab_read): Compile use of
9063 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9065 * coffread.c (coff_symtab_read): Ditto, for
9066 COFF_MAKE_MSYMBOL_SPECIAL.
9068 2002-02-05 Jim Blandy <jimb@redhat.com>
9070 * solib-svr4.c (svr4_truncate_ptr): New function.
9071 (svr4_relocate_section_addresses): Do the address arithmetic with
9072 the appropriate truncation for target addresses, even when
9073 CORE_ADDR is larger than a target address.
9075 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9077 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9080 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9082 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9085 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9087 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9089 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9091 * gdbserver/linux-low.c: Remove unused include files.
9093 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9095 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9096 (read_inferior_memory): Use it.
9097 (write_inferior_memory): Likewise.
9099 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9101 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9102 grubbing through sys_errlist.
9104 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9106 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9108 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9109 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9111 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9113 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9114 (do_sfunc, set_cmd_sfunc): New functions.
9116 * command.h (struct cmd_list_element): Add field func.
9117 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9118 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9119 * cli/cli-decode.h: Ditto.
9121 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9122 (help_all, help_cmd_list): Ditto.
9123 (find_cmd, complete_on_cmdlist): Ditto.
9124 * top.c (execute_command): Ditto.
9126 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9129 * infcmd.c (notice_args_read): Fix function signature.
9131 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9132 * cli/cli-decode.c (add_set_cmd): Ditto.
9133 * utils.c (initialize_utils): Ditto.
9134 * maint.c (_initialize_maint_cmds): Ditto.
9135 * infrun.c (_initialize_infrun): Ditto.
9136 * demangle.c (_initialize_demangler): Ditto.
9137 * remote.c (add_packet_config_cmd): Ditto.
9138 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9139 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9140 * proc-api.c (_initialize_proc_api): Ditto.
9141 * kod.c (_initialize_kod): Ditto.
9142 * valprint.c (_initialize_valprint): Ditto.
9143 * top.c (init_main): Ditto.
9144 * infcmd.c (_initialize_infcmd): Ditto.
9145 * corefile.c (_initialize_core): Ditto.
9146 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9147 * arch-utils.c (initialize_current_architecture): Ditto.
9148 (_initialize_gdbarch_utils): Ditto.
9149 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9151 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9152 * wince.c (_initialize_inftarg): Ditto.
9153 * symfile.c (_initialize_symfile): Ditto.
9154 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9155 * language.c (_initialize_language): Ditto.
9156 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9158 2002-02-04 Michael Snyder <msnyder@redhat.com>
9160 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9162 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9164 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9165 Add rules for building the register data files.
9167 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9169 * regformats/regdat.sh: Add braces to the definition of
9170 expedite_regs_${arch}.
9172 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9174 * regformats/regdef.h (struct reg): Add comment describing the
9175 requirements for offset and size fields.
9177 2002-02-04 Andreas Schwab <schwab@suse.de>
9179 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9180 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9182 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9184 * gdbarch.sh (copyright): Update years in generated header.
9185 (SMASH_TEXT_ADDRESS): Add rule.
9186 * gdbarch.h, gdbarch.c: Re-generate.
9187 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9188 * dbxread.c: Likewise.
9189 * dwarfread.c: Likewise.
9190 * elfread.c: Likewise.
9191 * somread.c: Likewise.
9193 * arm-tdep.c (arm_smash_text_address): New function.
9194 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9196 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9198 Add support for hardware watchpoints on win32 native.
9199 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9200 CONTEXT_DEBUG_REGISTERS.
9201 (dr variable): New variable. Static array containing a local copy
9203 (debug_registers_changed): New variable. Reflects when debug registers
9204 are changed and need to be written to inferior.
9205 (debug_registers_used): New variable. Reflects when any debug register
9206 was set, used when new threads are created.
9207 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9209 (thread_rec): Set dr array if id is the thread of current_event .
9210 (child_continue, child_resume): Change the debug registers for all
9211 threads if debug_registers_changed.
9212 (child_add_thread): Change the debug registers if debug_registers_used.
9213 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9214 Link nm.h to new nm-cygwin.h file.
9215 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9216 of hardware registers.
9218 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9220 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9221 Restore behavour broken by 2002-01-20 Andrew Cagney
9222 <ac131313@redhat.com> IEEE_FLOAT removal.
9224 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9226 * c-valprint.c (c_val_print): Pass a proper valaddr to
9227 cp_print_class_method.
9228 * valops.c (search_struct_method): If there is only one method
9229 and args is NULL, return that method.
9231 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9233 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9234 accessing tag_name directly.
9236 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9238 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9239 of accessing tag_name directly.
9241 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9244 * gdbtypes.c (replace_type): New function.
9245 * gdbtypes.h (replace_type): Add prototype.
9246 * stabsread.c (read_type): Use replace_type.
9248 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9250 * Makefile.in (memattr.o): Add missing dependencies rule.
9252 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9254 * breakpoint.c (break_at_finish_command): Really export.
9255 (break_at_finish_at_depth_command): Ditto.
9256 (tbreak_at_finish_command): Ditto.
9257 * hppa-tdep.c: Include completer.h.
9258 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9259 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9261 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9263 * utils.c (do_write): New function.
9264 (error_stream): Rewrite combining the code from error_begin and
9266 (verror): Rewrite using error_stream.
9267 (error_begin): Delete function.
9269 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9271 * utils.c (error_begin): Make static.
9272 * defs.h (error_begin): Delete declaration.
9274 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9275 (decode_line_1): Use cplusplus_error instead of error_begin,
9276 cplusplus_hint and return_to_top_level.
9277 * coffread.c (coff_symfile_read): Use error instead of error_begin
9278 and return_to_top_level.
9279 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9281 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9283 * language.h (type_error, range_error): Make string parameter
9285 * language.c (warning_pre_print): Delete extern declaration.
9286 * dwarfread.c (warning_pre_print): Ditto.
9287 * language.c (type_error, range_error): Rewrite to use verror and
9288 vwarning instead of warning_begin.
9290 2002-02-01 Michael Snyder <msnyder@redhat.com>
9292 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9293 (set_ignore_count): Move misplaced comment back where it belongs.
9295 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9297 * command.h (NO_FUNCTION): Delete macro.
9298 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9299 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9300 * tracepoint.c (_initialize_tracepoint): Ditto.
9301 * cli/cli-decode.c (add_set_cmd): Ditto.
9302 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9304 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9306 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9307 Update ``this'' pointer when calling virtual functions.
9309 2002-02-01 Michael Snyder <msnyder@redhat.com>
9311 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9312 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9314 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9316 * regformats/reg-arm.dat: New file.
9317 * regformats/reg-i386.dat: New file.
9318 * regformats/reg-ia64.dat: New file.
9319 * regformats/reg-m68k.dat: New file.
9320 * regformats/reg-mips.dat: New file.
9321 * regformats/reg-ppc.dat: New file.
9322 * regformats/reg-sh.dat: New file.
9323 * regformats/regdef.h: New file.
9324 * regformats/regdat.sh: New file.
9326 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9328 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9329 (arm_frame_args_address, arm_frame_locals_address): New functions.
9330 (arm_frame_num_args): New function.
9331 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9332 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9333 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9335 2002-01-31 Michael Snyder <msnyder@redhat.com>
9337 * breakpoint.c (break_at_finish_command): Export.
9338 (break_at_finish_at_depth_command): Export.
9339 (tbreak_at_finish_command): Export.
9340 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9341 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9342 "tbreak" commands, which are HPPA specific.
9344 * printcmd.c (disassemble_command): Remove an ancient
9345 artifact of an old merge.
9347 * symfile.h (enum overlay_debugging_state):
9348 Define enum constant values for overlay mode.
9349 * symfile.c (overlay_debugging): Use enums instead of literals.
9350 (overlay_is_mapped, overlay_auto_command,
9351 overlay_manual_command): Ditto.
9353 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9354 breakpoint_here_p, breakpoint_inserted_here_p,
9355 breakpoint_thread_match, bpstat_stop_status,
9356 describe_other_breakpoints, check_duplicates, clear_command):
9357 Coding standard fixes.
9359 * target.c (target_xfer_memory): Add spaces, coding standard.
9360 (do_xfer_memory): Add missing line to trust-readonly
9361 code: check bfd SEC_READONLY flag for section.
9363 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9365 * PROBLEMS: Fix typo, 5.1->5.1.1.
9367 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9369 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9370 data symbols, since we search based on textlow and texthigh.
9371 (find_pc_sect_symtab): Likewise.
9373 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9375 * defs.h (vwarning): Declare.
9376 * utils.c (vwarning): New function.
9377 (warning): Call vwarning.
9378 (warning_begin): Delete function.
9380 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9381 the warning message.
9382 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9385 2002-01-30 Michael Snyder <msnyder@redhat.com>
9387 * NEWS: Mention "set trust-readonly-sections" command.
9388 Mention generate-core-file command.
9390 2002-01-15 Michael Snyder <msnyder@redhat.com>
9392 * target.c: New command, "set trust-readonly-sections on".
9393 (do_xfer_memory): Honor the suggestion to trust readonly sections
9394 by reading them from the object file instead of from the target.
9395 (initialize_targets): Register command "set trust-readonly-sections".
9397 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9399 * parse.c (target_map_name_to_register): Simplify, search regs and
9400 pseudo-regs using a single loop.
9402 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9404 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9406 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9408 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9409 * config/i386/i386v42mp.mh: Add i387-nat.o .
9410 * i386v4-nat.c: Include i387-nat.h.
9411 (supply_fpregset): Use i387_supply_fsave.
9412 (fill_fpregset): Use i387_fill_fsave.
9414 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9416 * arm-tdep.c (arm_call_dummy_words): Define.
9417 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9418 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9419 (CALL_DUMMY_WORDS): Define.
9420 (arm_call_dummy_words): Declare.
9421 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9422 (arm_linux_call_dummy_words): Declare.
9424 2002-01-30 Andreas Schwab <schwab@suse.de>
9426 * m68klinux-nat.c: Fix last change to use regcache_collect
9427 instead of referencing registers[] directly.
9429 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9431 * parse.c (target_map_name_to_register): Delete code wrapped in
9432 #ifdef REGISTER_NAME_ALIAS_HOOK.
9434 2002-01-28 Michael Snyder <msnyder@redhat.com>
9436 * regcache.c (legacy_read_register_gen): Need to be able to
9437 read pseudo-register as well as real register.
9438 (legacy_write_register_gen): Ditto.
9440 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9442 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9443 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9444 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9445 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9446 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9447 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9448 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9449 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9450 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9451 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9452 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9453 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9454 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9455 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9456 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9457 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9458 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9459 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9460 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9461 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9463 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9465 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9466 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9467 (initialize_current_architecture): Update target_byte_order using
9468 information from BFD.
9469 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9470 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9472 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9474 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9475 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9477 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9478 #ifdef INVALID_FLOAT.
9479 * infcmd.c (do_registers_info): Ditto.
9480 * values.c (unpack_double): Ditto. Add comment.
9482 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9483 already commented out.
9485 2002-01-26 Andreas Schwab <schwab@suse.de>
9487 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9488 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9489 registers and add support for PTRACE_GETREGS.
9491 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9493 GDB 5.1.1 released from 5.1 branch.
9494 * NEWS: Add 5.1.1 news.
9495 * README: Sync with 5.1 branch.
9497 2002-01-23 Fred Fish <fnf@redhat.com>
9499 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9500 stabstring on initial malloc. Reallocing will copy it for us,
9503 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9505 * Makefile.in (hpread_h): Delete.
9506 (HFILES_NO_SRCDIR): Remove hpread.h.
9507 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9508 (hpread.o): Update dependencies.
9509 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9511 * hp-psymtab-read.c: Remove file.
9512 * hp-symtab-read.c: Remove file.
9513 * hpread.h: Remove file.
9515 * hpread.c: Merge all contents of hp-psymtab-read.c,
9516 hp-symtab-read.c and hpread.h into this file, as it was prior to
9519 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9520 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9521 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9522 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9524 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9526 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9527 fill_gregset): Call gdbarch_tdep() just once, assign result to
9528 variable and use that, instead of calling the function several
9531 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9533 * configure.host: Accept sparcv9 as alias for sparc64.
9534 * configure.tgt: Likewise.
9536 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9538 * solib-aix5.c (build_so_list_from_mapfile)
9539 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9540 arguments is not reversed.
9541 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9542 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9544 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9546 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9547 modified version of obsolete sh_fetch_pseudo_register.
9548 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9549 (sh4_register_read): New function.
9550 (sh_pseudo_register_write): New function. Renamed and modified
9551 version of obsolete sh_store_pseudo_register.
9552 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9553 (sh4_register_write): New function.
9554 (sh_gdbarch_init): Remove setting of gdbarch function
9555 fetch_pseudo_register and store_pseudo_register. Remove setting of
9556 register_convert_to_raw, register_convert_to_virtual,
9557 register_convertible.
9558 (sh_sh4_register_convertible): Delete. No longer needed. All is
9559 taken care by architecture specific functions
9560 register_read/register_write.
9561 (sh_sh4_register_convert_to_virtual): Make static.
9562 (sh_sh4_register_convert_to_raw): Ditto.
9564 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9566 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9567 (floatformat_is_nan, floatformat_mantissa): Ditto.
9569 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9570 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9571 builtin_type_ieee_double_little,
9572 builtin_type_ieee_double_littlebyte_bigword,
9573 builtin_type_m68881_ext, builtin_type_i960_ext,
9574 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9575 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9576 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9577 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9579 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9581 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9582 parameter. Set frameless flag if it exists and depended of
9583 whether the scanned function is frameless or not.
9584 (xstormy16_skip_prologue): If function is frameless, return
9585 result of xstormy16_scan_prologue().
9586 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9589 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9591 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9592 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9593 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9594 sh_sh4_register_byte, sh_sh4_register_raw_size,
9595 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9596 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9597 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9598 sh_store_pseudo_register, sh_do_pseudo_register): Call
9599 gdbarch_tdep() just once, assign result to variable and use that,
9600 instead of calling the function several times.
9602 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9604 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9605 macros instead of LAST_FPU_CTRL_REGNUM.
9606 (store_register): Likewise.
9608 2002-01-21 Jim Blandy <jimb@redhat.com>
9610 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9611 is up-to-date before running the program, not just when a program
9614 2002-01-21 Fred Fish <fnf@redhat.com>
9616 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9617 when we have found all instructions we are looking for.
9619 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9621 * arm-tdep.c (arm_register_name): New function.
9622 (arm_registers_names): Make static.
9623 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9624 (arm_register_name): Declare.
9625 (REGISTER_NAME): Use it.
9627 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9628 Kevin Buettner <kevinb@redhat.com>
9630 Convert arm targets to new FRAME interface.
9631 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9632 (arm_frame_find_save_regs): Delete.
9633 (arm_frame_init_saved_regs): New.
9634 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9635 Allocate extra_info as required. Convert all uses of fsr.regs
9636 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9638 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9639 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9640 (check_prologue_cache, save_prologue_cache): Likewise.
9641 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9642 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9643 (FRAME_FIND_SAVED_REGS): Delete.
9644 (arm_frame_find_saved_regs): Delete prototype.
9645 (arm_frame_init_saved_regs): New prototype.
9646 (FRAME_INIT_SAVED_REGS): Define.
9648 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9650 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9652 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9654 From Jeff Law <law@redhat.com>:
9655 * infttrace.c: Include <sys/pstat.h>.
9656 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9657 exec file if the ttrace equivalent fails.
9659 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9661 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9662 (closeLogFile): Ditto.
9664 2002-01-20 Michael Chastain <mec@shout.net>
9666 * top.c (print_gdb_version): Bump copyright year to 2002.
9668 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9670 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9671 Zannoni and Eli Zaretskii.
9673 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9675 * buildsym.c: Update copyright years.
9676 * c-typeprint.c: Likewise.
9677 * dwarf2read.c: Likewise.
9678 * f-typeprint.c: Likewise.
9679 * gdbtypes.c: Likewise.
9680 * gdbtypes.h: Likewise.
9681 * hp-symtab-read.c: Likewise.
9682 * hpread.c: Likewise.
9683 * mdebugread.c: Likewise.
9684 * p-typeprint.c: Likewise.
9686 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9688 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9689 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9690 byte-order selectable.
9691 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9692 * arch-utils.c: Ditto.
9693 (set_endian): Ditto.
9694 (set_endian_from_file): Ditto.
9695 * gdbserver/low-sim.c (create_inferior): Ditto.
9696 * gdbarch.sh: Ditto.
9697 * gdbarch.h: Re-generate.
9698 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9699 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9700 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9701 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9702 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9703 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9704 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9705 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9707 * config/mips/tm-wince.h: Remove #undef of macro
9708 TARGET_BYTE_ORDER_SELECTABLE.
9709 * config/sh/tm-wince.h: Ditto.
9711 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9713 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9714 member function fields. Add accessor macro
9715 TYPE_FN_FIELD_ARTIFICIAL.
9716 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9717 * c-typeprint.c (c_type_print_base): Skip artificial member
9720 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9722 * f-typeprint.c: Delete unused function f_type_print_args.
9723 * p-typeprint.c: Delete unused function pascal_type_print_args.
9725 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9727 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9728 comment. Add ``artificial'' to ``union field_location''.
9730 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9732 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9733 * mdebugread.c (parse_symbol): Likewise.
9734 * stabsread.c (define_symbol): Likewise.
9735 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9736 initializing TYPE_FIELD_BITPOS to n (obsolete).
9737 (hpread_doc_function_type): Likewise.
9738 * hpread.c (hpread_function_type): Likewise.
9740 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9742 * configure.in (host_makefile_frag): Only require a host makefile
9743 fragment when a native build.
9744 * configure: Re-generate.
9746 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9748 * doublest.h (floatformat_from_type): Declare.
9749 * doublest.c (floatformat_from_type): New function.
9750 (convert_typed_floating): Use.
9752 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9753 call to function floatformat_from_type.
9755 * gdbarch.sh (IEEE_FLOAT): Delete.
9756 * gdbarch.h, gdbarch.c: Re-generate.
9757 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9758 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9759 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9760 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9761 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9762 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9763 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9764 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9765 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9766 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9767 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9768 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9770 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9771 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9772 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9773 * sh-tdep.c (sh_gdbarch_init): Ditto.
9774 * mips-tdep.c (mips_gdbarch_init): Ditto.
9775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9776 * cris-tdep.c (cris_gdbarch_init): Ditto.
9778 2002-01-20 Jiri Smid <smid@suse.cz>
9780 * configure.host, configure.tgt: Support x86-64.
9781 * NEWS: Note new target x86-64.
9783 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9784 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9785 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9786 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9787 x86-64-linux-nat.o): Fix dependencies.
9789 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9791 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9792 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9793 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9794 * config/sparc/xm-sun4os4.h: Delete file.
9795 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9797 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9799 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9800 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9801 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9802 * config/i386/i386lynx.mh (XM_FILE): Delete.
9803 * config/rs6000/xm-rs6000ly.h: Delete file.
9804 * config/sparc/xm-sparclynx.h: Delete file.
9805 * config/m68k/xm-m68klynx.h: Delete file.
9806 * config/i386/xm-i386lynx.h: Delete file.
9807 * config/xm-lynx.h: Delete file.
9808 * config/djgpp/fnchange.lst: Update.
9810 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9812 * alpha-tdep.c (alpha_register_byte): New function.
9813 (alpha_register_raw_size): Ditto.
9814 (alpha_register_virtual_size): Ditto.
9815 (alpha_skip_prologue_internal): Renamed from
9816 alpha_skip_prologue.
9817 (alpha_skip_prologue): New version that calls
9818 alpha_skip_prologue_internal.
9819 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9820 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9821 second argument from alpha_skip_prologue.
9822 (REGISTER_BYTE): Use alpha_register_byte.
9823 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9824 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9825 (FRAMELESS_FUNCTION_INVOCATION): Use
9826 generic_frameless_function_invocation_not.
9827 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9828 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9830 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9832 * config/mips/xm-news-mips.h: Delete file.
9833 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9835 * config/m88k/xm-m88k.h: Delete file.
9836 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9837 * config/m88k/xm-delta88v4.h: Ditto.
9838 * config/m88k/xm-delta88.h: Ditto.
9840 * config/alpha/xm-fbsd.h: Delete file.
9841 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9843 * config/sparc/xm-sparc.h: Delete file.
9844 * Makefile.in (xm-sun4os4.h): Delete dependency.
9845 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9846 * config/sparc/xm-sun4os4.h: Ditto.
9847 * config/sparc/xm-linux.h: Ditto.
9849 * config/i386/xm-windows.h: Delete file.
9851 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9853 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9854 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9856 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9858 * alpha-tdep.c (alpha_call_dummy_words): New.
9859 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9860 (CALL_DUMMY_P): Define.
9861 (CALL_DUMMY_WORDS): Define.
9862 (SIZEOF_CALL_DUMMY_WORDS): Define.
9864 2002-01-19 Per Bothner <per@bothner.com>
9866 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9867 isn't NULL, which can happen with some gcj-3.x-produced code.
9869 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9871 * alpha-tdep.c (alpha_register_virtual_type): New function.
9872 (alpha_init_frame_pc_first): Ditto.
9873 (alpha_fix_call_dummy): Ditto.
9874 (alpha_store_struct_return): Ditto.
9875 (alpha_extract_struct_value_address): Ditto.
9876 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9877 alpha_register_virtual_type.
9878 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9879 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9880 alpha_extract_struct_value_address.
9881 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9882 (INIT_FRAME_PC): Use init_frame_pc_noop.
9883 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9885 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9887 * i386gnu-nat.c: Include "i386-tdep.h".
9888 (fetch_fpregs): Simplify code dealing with uninitialized floating
9889 point states such that it doesn't require FP7_REGNUM.
9891 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9893 * alpha-tdep.c (frame_extra_info): New.
9894 (alpha_find_saved_regs): Make static. Use
9896 (alpha_frame_init_saved_regs): New function.
9897 (alpha_frame_saved_pc): Use frame->extra_info.
9898 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9899 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9900 (init_extra_frame_info): Rename to...
9901 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9902 (alpha_print_extra_frame_info): New function.
9903 (alpha_frame_locals_address): Ditto.
9904 (alpha_frame_args_address): Ditto.
9905 (alpha_pop_frame): Use frame->extra_info.
9906 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9907 alpha_frame_args_address.
9908 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9909 (alpha_find_saved_regs): Remove prototype.
9910 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9911 (EXTRA_FRAME_INFO): Remove.
9912 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9913 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9915 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9917 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9918 (alpha_cannot_fetch_register): Ditto.
9919 (alpha_cannot_store_register): Ditto.
9920 (alpha_register_convertible): Ditto.
9921 (alpha_use_struct_convention): Ditto.
9922 * config/alpha/tm-alpha.h: Update copyright years.
9923 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9924 (INNER_THAN): Use core_addr_lessthan.
9925 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9926 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9927 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9928 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9929 (FRAME_CHAIN): Remove unnecessary cast.
9931 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9933 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9936 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9938 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9939 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9940 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9941 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9942 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9943 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9944 * x86-64-linux-nat.c: Ditto.
9946 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9948 * alpha-tdep.c (alpha_register_name): New function.
9949 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9950 (REGISTER_NAME): Define.
9952 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9954 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9956 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9958 * alpha-tdep.c: Update copyright years.
9959 (alpha_next_pc): New function.
9960 (alpha_software_single_step): Ditto.
9961 * config/alpha/tm-alpha.h: Add prototype for
9962 alpha_software_single_step.
9964 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9966 * alphabsd-nat.c: Update copyright years.
9967 (fill_gregset): Use regcache_collect.
9968 (fill_fpregset): Likewise.
9969 (fetch_inferior_registers): Only fetch integer registers
9970 if requested to do so.
9971 (store_inferior_registers): Only store integer registers
9972 if requested to do so.
9974 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9976 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9977 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9978 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9979 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9980 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9981 * config/arm/linux.mh (XDEPFILES): Delete.
9982 * config/arm/nbsd.mh (XDEPFILES): Delete.
9983 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9984 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9985 * config/i386/i386m3.mh (XDEPFILES): Delete.
9986 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9987 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9988 * config/i386/fbsd.mh (XDEPFILES): Delete.
9989 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9990 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9991 * config/i386/i386v4.mh (XDEPFILES): Delete.
9992 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9993 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9994 * config/i386/i386aix.mh (XDEPFILES): Delete.
9995 * config/i386/go32.mh (XDEPFILES): Delete.
9996 * config/i386/cygwin.mh (XDEPFILES): Delete.
9997 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9998 * config/i386/i386mach.mh (XDEPFILES): Delete.
9999 * config/i386/i386v32.mh (XDEPFILES): Delete.
10000 * config/i386/linux.mh (XDEPFILES): Delete.
10001 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10002 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10003 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10004 * config/i386/i386sco.mh (XDEPFILES): Delete.
10005 * config/i386/i386v.mh (XDEPFILES): Delete.
10006 * config/i386/nbsd.mh (XDEPFILES): Delete.
10007 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10008 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10009 * config/i386/symmetry.mh (XDEPFILES): Delete.
10010 * config/i386/obsd.mh (XDEPFILES): Delete.
10011 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10012 * config/ia64/linux.mh (XDEPFILES): Delete.
10013 * config/ia64/aix.mh (XDEPFILES): Delete.
10014 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10015 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10016 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10017 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10018 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10019 * config/m68k/linux.mh (XDEPFILES): Delete.
10020 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10021 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10022 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10023 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10024 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10025 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10026 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10027 * config/m88k/delta88.mh (XDEPFILES): Delete.
10028 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10029 * config/m88k/m88k.mh (XDEPFILES): Delete.
10030 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10031 * config/mips/linux.mh (XDEPFILES): Delete.
10032 * config/mips/irix6.mh (XDEPFILES): Delete.
10033 * config/mips/irix5.mh (XDEPFILES): Delete.
10034 * config/mips/irix4.mh (XDEPFILES): Delete.
10035 * config/mips/irix3.mh (XDEPFILES): Delete.
10036 * config/mips/decstation.mh (XDEPFILES): Delete.
10037 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10038 (NATDEPFILES): Move core-aout.o to here.
10039 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10040 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10041 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10042 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10043 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10044 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10045 * config/pa/hpux11.mh (XDEPFILES): Delete.
10046 * config/powerpc/aix.mh (XDEPFILES): Delete.
10047 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10048 * config/powerpc/linux.mh (XDEPFILES): Delete.
10049 * config/romp/rtbsd.mh: Rename XDEPFILES.
10050 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10051 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10052 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10053 * config/s390/s390.mh (XDEPFILES): Delete.
10054 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10055 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10056 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10057 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10058 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10059 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10060 * config/sparc/linux.mh (XDEPFILES): Delete.
10061 * config/vax/vaxult.mh (XDEPFILES): Delete.
10062 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10063 * Makefile.in (DEPFILES): Remove XDEPFILES.
10065 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10067 * utils.c (internal_verror): Fix comments, default is yes not no.
10068 Update queries to match. Default to quit and dump core.
10070 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10072 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10074 * defs.h, event-top.c, gdbcmd.h: Ditto.
10075 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10076 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10077 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10078 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10079 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10080 * mi/mi-main.c:Ditto.
10082 * stack.c, symfile.c: Update copyright.
10084 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10086 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10087 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10088 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10089 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10091 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10093 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10094 * gdbserver/low-lynx.c (myattach): Likewise.
10095 * gdbserver/low-nbsd.c (myattach): Likewise.
10096 * gdbserver/low-sim.c (myattach): Likewise.
10097 * gdbserver/low-sparc.c (myattach): Likewise.
10098 * gdbserver/low-sun3.c (myattach): Likewise.
10100 * gdbserver/low-linux.c (myattach): New function.
10102 * gdbserver/server.c (attach_inferior): New function.
10103 (main): Handle "--attach".
10105 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10107 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10110 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10112 * c-typeprint.c (is_type_conversion_operator): Add additional
10113 check for non-conversion operators.
10115 2002-01-15 Michael Snyder <msnyder@redhat.com>
10117 * linux-proc.c: Add "info proc" command, a la procfs.c.
10118 (read_mapping): New function, abstract and re-use code.
10119 (linux_find_memory_regions): Use new func read_mapping.
10120 (linux_info_proc_cmd): New function, implement "info proc".
10121 (_initialize_linux_proc): Add new command "info proc".
10123 2002-01-15 Michael Snyder <msnyder@redhat.com>
10125 * symfile.c (generic_load): Use bfd_map_over_sections method
10126 instead of manipulating bfd structure members directly.
10127 (add_section_size_callback): New function, bfd sections callback
10128 used by generic_load.
10129 (load_sections_callback): New function, bfd sections callback
10130 used by generic_load.
10132 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10134 [Based on work by Jim Blandy]
10135 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10136 (builtin_type_vec128): Export.
10137 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10139 (builtin_type_vec128): New builtin type for 128 bit vector
10141 (build_gdbtypes): Initialize builtin_type_v16qi and
10142 builtin_type_v8hi. Create the vec128 register builtin type
10144 (build_builtin_type_vec128): New function.
10145 (_initialize_gdbtypes): Register builtin_type_v16qi and
10146 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10147 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10148 AltiVec register to new builtin type.
10150 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10152 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10155 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10157 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10158 CLEAN_UP_REGISTER_VALUE.
10159 * regcache.c (supply_register): Update only call.
10161 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10163 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10164 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10165 a29k-*-vxworks* targets as obsolete.
10167 2002-01-14 Michael Snyder <msnyder@redhat.com>
10169 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10170 until we can resolve portability issues.
10171 * gregset.h: Remove references to fpxregs.
10172 * gcore.c (gcore_command): Initialize note_sec to NULL.
10174 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10176 * signals.c (target_signal_to_name): Rewrite. Only use
10177 signals[].name when in bounds and non-NULL.
10179 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10181 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10182 * signals.c (target_signal_to_name): Verify that SIG is within the
10183 bounds of the signals array.
10185 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10187 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10189 2002-01-13 Keith Seitz <keiths@redhat.com>
10191 * stack.c (print_frame_info_base): Print the frame's pc
10192 only if when print_frame_info_listing_hook is not defined.
10194 2002-01-13 Keith Seitz <keiths@redhat.com>
10196 * varobj.c (varobj_set_value): Make sure that there were no
10197 errors evaluating the object before attempting to set its
10199 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10200 so this offset adjustment is no longer necessary.
10201 (create_child): Don't set the error flag if the child is
10202 a CPLUS_FAKE_CHILD.
10203 (value_of_child): If value_fetch_lazy fails, return NULL
10204 so that callers will be notified that an error occurred.
10205 (c_value_of_variable): Delay check of variable's validity
10206 until later. We actually want all structs and unions to have
10208 Do not return "???" for variables which could not be evaluated.
10209 This error condition must be returned to the caller so that it
10210 can get the error condition from gdb.
10211 (cplus_name_of_child): Adjust index for vptr before figuring
10212 out the name of the child.
10213 (cplus_value_of_child): If a child's (real) parent is not valid,
10214 don't even bother trying to give a value for it. Just return
10215 an error. Change all instances in this function.
10216 (cplus_type_of_child): If our parent is one of the "fake"
10217 parents, we need to get at the type of the real parent, and
10218 derive the child's true type using this information.
10220 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10222 From 2002-01-09 John Marshall <johnm@falch.net>:
10223 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10224 sources.redhat.com, and tweak some related URLs which had
10225 suffered from linkrot.
10227 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10230 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10231 structures passed in registers.
10233 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10235 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10236 white space which prevented compilation. Reported by DSK
10237 <dsk@student.unsw.edu.au>.
10239 2002-01-11 Michael Snyder <msnyder@redhat.com>
10241 * symfile.c (build_section_addr_info_from_section_tab):
10242 Use bfd access method instead of manipulating bfd directly.
10243 (syms_from_objfile): Ditto.
10244 (simple_overlay_update_1): Ditto.
10245 (simple_overlay_update): Ditto.
10246 (generic_load): Ditto.
10247 (overlay_unmapped_address): FIXME comment, bfd access methods.
10248 (sections_overlap): FIXME comment, bfd access methods.
10249 (pc_in_mapped_range): FIXME comment, bfd access methods.
10250 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10251 (section_is_mapped): FIXME comment, bfd access methods.
10252 (section_is_overlay): FIXME comment, bfd access methods.
10254 * symfile.c (generic_load): Whitespace and long line cleanups.
10255 Remove duplicate variable, change several local variables to
10256 more appropriate data types.
10257 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10259 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10261 From Peter Schauer:
10262 * language.c (longest_local_hex_string_custom): Use phex_nz to
10263 convert NUM to a hex string.
10265 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10267 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10269 Update Copyright year.
10271 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10273 * language.c (longest_raw_hex_string): Delete unused function.
10275 2002-01-11 Petr Sorfa <petrs@caldera.com>
10277 * MAINTAINERS (write-after-approval): Add myself.
10278 * dwarf2read.c (read_tag_string_type): Handling of
10280 (read_tag_string_type): FORTRAN fix to prevent propagation of
10282 (set_cu_language): Handling of DW_LANG_Fortran95
10284 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10286 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10287 GETPID(inferior_ptid).
10288 (store_inferior_registers): Likewise.
10290 2002-01-10 Jason Merrill <jason@redhat.com>
10292 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10295 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10297 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10298 and bfd/elf32-sh-nbsd.c.
10300 2002-01-10 Michael Snyder <msnyder@redhat.com>
10302 * NEWS: Mention --pid and corefile/proc-id behavior change.
10304 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10305 * gcore.c: Include cli/cli-decode.h instead of command.h.
10307 * main.c (captured_main): Add new command line option "--pid".
10308 If the second command line argument (following the symbol-file)
10309 begins with a digit, try to attach to it before trying to open
10311 (print_gdb_help): Document the "--pid" argument.
10313 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10315 * completer.c (command_completer): New function.
10317 * completer.h <command_completer>: Add prototype.
10319 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10320 completer for the "help" command.
10322 2002-01-09 Jason Merrill <jason@redhat.com>
10324 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10326 2002-01-09 Michael Snyder <msnyder@redhat.com>
10328 * i386-linux-nat.c (fill_fpxregset): Make global.
10329 (store_fpxregset): Ditto.
10331 * gregset.h (gdb_fpxregset_t): Define.
10332 (supply_fpxregset): Prototype.
10333 (fill_fpxregset): Prototype.
10335 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10337 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10339 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10340 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10341 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10343 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10345 * MAINTAINERS: Update target maintainer rules so that any
10346 Maintainer can approve a tested patch for a maintenance-only
10349 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10351 * MAINTAINERS (write-after-approval): Add myself.
10353 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10356 2002-01-08 Michael Snyder <msnyder@redhat.com>
10358 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10359 real name of the executable, rather than the /proc name.
10361 2002-01-03 Michael Snyder <msnyder@redhat.com>
10363 Implement a "generate-core-file" command in gdb, save target state.
10364 * gcore.c: New file. Implement new command 'generate-core-file'.
10365 Save a corefile image of the current state of the inferior.
10366 * linux-proc.c: Add linux-specific code for saving corefiles.
10367 * target.h (struct target_ops): Add new target vectors for saving
10368 corefiles; to_find_memory_regions and to_make_corefile_notes.
10369 (target_find_memory_regions): New macro.
10370 (target_make_corefile_notes): New macro.
10371 * target.c (update_current_target): Inherit new target methods.
10372 (dummy_find_memory_regions): New place-holder method.
10373 (dummy_make_corefile_notes): New place-holder method.
10374 (init_dummy_target): Initialize new dummy target vectors.
10375 * exec.c (exec_set_find_memory_regions): New function.
10376 Allow the exec_ops vector for memory regions to be taken over.
10377 (exec_make_note_section): New function, target vector method.
10378 * defs.h (exec_set_find_memory_regions): Export prototype.
10379 * procfs.c (proc_find_memory_regions): New function, corefile method.
10380 (procfs_make_note_section): New function, corefile method.
10381 (init_procfs_ops): Set new target vector pointers.
10382 (find_memory_regions_callback): New function.
10383 (procfs_do_thread_registers): New function.
10384 (procfs_corefile_thread_callback): New function.
10385 * sol-thread.c (sol_find_memory_regions): New function.
10386 (sol_make_note_section): New function.
10387 (init_sol_thread_ops): Initialize new target vectors.
10388 * inftarg.c (inftarg_set_find_memory_regions): New function.
10389 Allow to_find_memory_regions vector to be taken over.
10390 (inftarg_set_make_corefile_notes): New function.
10391 Allow to_make_corefile_notes vector to be taken over.
10392 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10393 interface layer if not target_has_execution (may be a corefile).
10394 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10395 * config/sparc/sun4sol2.mh: Ditto.
10396 * config/alpha/alpha-linux.mh: Ditto.
10397 * config/arm/linux.mh: Ditto.
10398 * config/i386/x86-64linux.mh: Ditto.
10399 * config/ia64/linux.mh: Ditto.
10400 * config/m68k/linux.mh: Ditto.
10401 * config/mips/linux.mh: Ditto.
10402 * config/powerpc/linux.mh: Ditto.
10403 * config/sparc/linux.mh: Ditto.
10405 2002-01-07 Michael Snyder <msnyder@redhat.com>
10407 * arm-linux-nat.c: Remove references to regcache.c internal data
10408 (registers[] and register_valid[]).
10410 2002-01-07 Michael Snyder <msnyder@redhat.com>
10412 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10413 so that attaching to a pid will automatically read the process's
10414 symbol file and shlibs.
10415 * Makefile.in: Add rule for linux-proc.o.
10416 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10417 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10418 * config/arm/linux.mh: Ditto.
10419 * config/i386/linux.mh: Ditto.
10420 * config/i386/x86-64linux.mh: Ditto.
10421 * config/ia64/linux.mh: Ditto.
10422 * config/m68k/linux.mh: Ditto.
10423 * config/mips/linux.mh: Ditto.
10424 * config/powerpc/linux.mh: Ditto.
10425 * config/sparc/linux.mh: Ditto.
10427 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10429 * win32-nat.c: Add i386-tdep.h dependency.
10431 2002-01-07 Michael Snyder <msnyder@redhat.com>
10433 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10434 instead of bfd_get_arch_size. Don't bail out just because
10435 there's no exec_bfd.
10437 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10438 * p-valprint.c (pascal_object_print_value): Ditto.
10439 * somread.c (som_symtab_read): Ditto.
10440 * symfile.c (simple_free_overlay_region_table): Ditto.
10441 * valops.c (value_assign): Ditto.
10443 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10444 use tilde_expand and strerror for opening save-tracepoints file.
10446 * thread-db.c (thread_db_new_objfile): Indendation fix.
10448 * infptrace.c (GDB_MAX_ALLOCA): New define.
10449 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10450 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10451 can be overridden with whatever value is appropriate to the host).
10452 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10453 alloca to allocate potentially large buffer.
10454 * rs6000-nat.c (child_xfer_memory): Ditto.
10455 * symm-nat.c (child_xfer_memory): Ditto.
10456 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10458 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10460 From Nick Clifton <nickc@redhat.com>
10461 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10463 2002-01-07 Michael Snyder <msnyder@redhat.com>
10465 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10466 Don't use exec_bfd if it's NULL.
10468 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10470 * valops.c (value_arg_coerce): Fix formatting.
10472 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10474 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10475 * gnu-nat.c: Ditto.
10477 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10479 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10480 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10481 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10482 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10483 z8k-coff have not been multi-arched. Update z8k-coff build
10486 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10488 * MAINTAINERS: Mark a29k target as obsolete.
10489 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10490 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10492 * NEWS: Note that a29k targets are obsolete.
10493 * a29k-tdep.c: Mark as obsolete.
10494 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10495 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10496 a29k-*-vxworks* targets as obsolete.
10497 * remote-adapt.c: Obsolete.
10498 * remote-eb.c: Obsolete.
10499 * remote-mm.c: Obsolete.
10500 * remote-udi.c: Obsolete.
10501 * config/a29k/a29k-udi.mt: Obsolete.
10502 * config/a29k/a29k.mt: Obsolete.
10503 * config/a29k/tm-a29k.h: Obsolete.
10504 * config/a29k/tm-vx29k.h: Obsolete.
10505 * config/a29k/vx29k.mt: Obsolete.
10507 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10509 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10510 with BFD_ENDIAN_BIG.
10512 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10514 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10515 * configure, config.in: Re-generate.
10516 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10517 * defs.h: Do not include <endian.h>.
10519 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10521 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10522 * config.in: Regenerate.
10523 * configure.in: Update copyright years.
10524 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10525 * configure: Regenerate.
10526 * i386bsd-nat.c: Update copyright years.
10527 (fill_gregset): Use regcache_collect.
10528 (fetch_inferior_registers): Only fetch integer registers
10529 if requested to do so. Add support for XMM registers
10530 using PT_GETXMMREGS.
10531 (store_inferior_registers): Only store integer registers
10532 if requested to do so. Add support for XMM registers
10533 using PT_SETXMMREGS.
10534 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10535 (store_inferior_registers): Remove.
10536 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10537 (fetch_elfcore_registers): New function.
10538 (i386nbsd_elfcore_fns): New.
10539 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10540 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10542 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10543 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10544 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10545 * config/i386/tm-nbsd.h: Update copyright years.
10546 (HAVE_SSE_REGS): Define.
10547 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10548 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10549 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10550 (SIGCONTEXT_PC_OFFSET): Remove.
10551 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10553 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10555 * configure.tgt: Remove powerpc-*-macos* target.
10556 * config/m68k/xm-mpw.h: Delete file.
10557 * config/xm-mpw.h: Delete file.
10558 * ser-mac.c: Delete file.
10559 * mpw-make.sed: Delete file.
10560 * mpw-config.in: Delete file.
10561 * mac-xdep.c: Delete file.
10562 * mac-gdb.r: Delete file.
10563 * mac-defs.h: Delete file.
10564 * mac-nat.c: Delete file.
10565 * config/powerpc/macos.mh: Delete file.
10566 * config/powerpc/macos.mt: Delete file.
10567 * config/powerpc/nm-macos.h: Delete file.
10568 * config/powerpc/tm-macos.h: Delete file.
10569 * source.c (openp, open_source_file): Remove obsolete code.
10570 * top.c (gdb_readline): Ditto.
10571 * utils.c (query): Ditto.
10572 * event-top.c (display_gdb_prompt): Ditto.
10573 * Makefile.in (ser-mac.o): Delete obsolete target.
10576 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10578 * defs.h (BIG_ENDIAN): Delete macro definition.
10579 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10580 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10581 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10582 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10583 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10584 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10585 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10586 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10587 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10588 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10589 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10590 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10591 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10592 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10593 * gdbarch.c: Re-generate.
10595 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10597 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10600 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10602 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10604 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10606 * value.h (value_ptr): Delete typedef.
10608 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10610 * i386nbsd-nat.c: Update copyright years.
10611 Include i386-tdep.h.
10613 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10615 * stabsread.c: Update copyright years.
10617 From Debashis Mahata <debashis.mahata@wipro.com>:
10618 (read_struct_fields): Deal with Sun C compiler erroneous stab
10619 output for structs and unions.
10622 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10624 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10627 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10629 * cp-abi.c: Fix whitespace.
10630 (baseclass_offset): New wrapper function.
10631 * cp-abi.h (baseclass_offset): Add prototype.
10632 (struct cp_abi_ops): Add baseclass_offset pointer.
10634 * valops.c (vb_match): Move to...
10635 * gnu-v2-abi.c (vb_match): here.
10636 * valops.c (baseclass_offset): Move to...
10637 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10639 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10641 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10642 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10643 * hpacc-abi.c (init_hpacc_ops): Likewise.
10645 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10647 * valops.c (find_overload_match): Accept obj as a
10648 reference parameter. Update it before returning.
10649 * value.h (find_overload_match): Update prototype.
10650 * eval.c (evaluate_subexp_standard): Pass object to
10651 find_overload_match by reference.
10653 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10655 * valarith.c: Replace value_ptr with struct value pointer. Remove
10656 register attribute from value declarations.
10659 * scm-lang.c (scm_lookup_name): Ditto.
10661 2002-01-03 Michael Snyder <msnyder@redhat.com>
10663 Abstract the functionality of iterating over mapped memory
10664 regions into a general purpose iterator function.
10665 * procfs.c (iterate_over_mappings): New function, general purpose
10666 iterator for memory sections.
10667 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10668 (solib_mappings_callback): New function, callback for above.
10669 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10670 (info_mappings_callback): New function, callback for above.
10672 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10674 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10676 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10677 * i386-tdep.c: Include "elf-bfd.h".
10678 (process_note_abi_tag_sections): New function.
10679 (i386_gdbarch_init): Add code to recognize various OS/ABI
10682 * maint.c (_initialize_maint_cmds): Add missing \ in
10685 For older changes see ChangeLog-2001
10691 version-control: never