1 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3 * rs6000-tdep.c: Clean up comments.
5 2002-08-20 Andrew Cagney <cagney@redhat.com>
7 * h8300-tdep.c: Re-indent file.
9 2002-08-20 Jim Blandy <jimb@redhat.com>
11 * Makefile.in (LDFLAGS): Allow the configure script to establish a
13 * gdbserver/Makefile.in (LDFLAGS): Same.
15 2002-08-20 Keith Seitz <keiths@redhat.com>
17 * breakpoints.c (watch_command_1): Use internal breakpoint
18 when setting a watchpoint_scope breakpoint.
20 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
22 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
23 (build_builtin_type_vec64i): Ditto.
24 (build_builtin_type_vec128): Ditto.
25 (build_builtin_type_vec128i): Ditto.
27 2002-08-19 Michael Snyder <msnyder@redhat.com>
29 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
30 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
31 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
32 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
33 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
34 CALL_DUMMY_ADDRESS): Delete.
35 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
36 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
37 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
38 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
40 (mips_register_raw_size, mips_eabi_use_struct_convention,
41 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
42 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
43 mips_init_extra_frame_info, mips_eabi_push_arguments,
44 mips_n32n64_push_arguments, mips_push_return_address,
45 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
46 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
48 2002-08-19 Michael Snyder <msnyder@redhat.com>
50 * mips-tdep.c (mips_frame_num_args): New function.
51 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
52 frame_saved_pc, frame_args_address, frame_locals_address,
53 frame_num_args, and frame_args_skip.
54 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
55 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
56 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
57 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
59 2002-08-20 Michael Snyder <msnyder@redhat.com>
61 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
62 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
63 * mips-tdep.c (mips_store_struct_return): New function.
64 (mips_extract_struct_value_address): New function.
65 (mips_gdbarch_init): Set store_struct_return and
66 extract_struct_value_address.
68 2002-08-20 David Carlton <carlton@math.stanford.edu>
70 * dwarf2read.c (dwarf2_build_psymtabs): Check that
71 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
72 (read_file_scope): Check that line_header is nonzero before
73 decoding macro information.
75 2002-08-20 Mark Kettenis <kettenis@gnu.org>
77 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
78 flag the general-purpose registers as floating-point on targets
79 that don't support the floating-point registers.
81 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
83 * rs6000-tdep.c (altivec_register_p): Delete.
84 (rs6000_do_altivec_registers): Delete.
85 (rs6000_altivec_registers_info): Delete.
86 (rs6000_do_registers_info): Delete.
87 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
88 (rs6000_gdbarch_init): Remove setting of do_registers_info.
90 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
92 * infcmd.c (do_registers_info): Print vector registers in hex
94 (print_vector_info): Check that printing registers
96 (print_float_info): Ditto.
98 2002-08-20 Andrew Cagney <ac131313@redhat.com>
100 * mips-tdep.c (mips_gdbarch_init): Update.
101 (mips_o32_extract_return_value): Rewrite.
102 (mips_o32_store_return_value): Rewrite.
103 (mips_o32_xfer_return_value): New function.
104 (mips_xfer_register): Tweak debug print message. Allow for
105 buf_offset when dumping the value transfered.
107 2002-08-20 Andrew Cagney <ac131313@redhat.com>
109 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
110 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
111 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
112 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
113 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
115 2002-08-14 Michael Snyder <msnyder@redhat.com>
117 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
119 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
121 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
123 (P): New macro to define a register as a pseudo register.
124 (R, R4, R8, R16, FR32, R64, R0): Updated.
125 (struct variant): Add new fields for number of pseudo registers
126 and number of total registers.
127 (tot_num_registers): New macro replacing....
128 (num_registers): ...deleted macro.
129 (num_registers): New function.
130 (num_pseudo_registers): New function.
131 (variants): Update all variants to intialize new fields correctly.
132 Postpone initialization of number of pseudo regs and real regs.
133 (init_variants): New function.
134 (rs6000_gdbarch_init): Initialize variants. Update calculation of
137 2002-08-19 David Carlton <carlton@math.stanford.edu>
139 * valops.c (search_struct_field): Change error message to treat
140 return value of 0 from value_static_field as meaning that field is
142 (value_struct_elt_for_reference): Ditto.
143 * values.c (value_static_field): Treat an unresolved location the
144 same as a nonexistent symbol. Fix PR gdb/635.
145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
146 enclosed. Fix PR gdb/574.
147 * MAINTAINERS: Add self to Write After Approval list.
149 2002-08-19 Andrew Cagney <ac131313@redhat.com>
151 * mips-tdep.c (mips_xfer_register): New function.
152 (mips_n32n64_extract_return_value): Rewrite.
153 (mips_gdbarch_init): For N32 and N64, set extract_return_value
154 instead of deprecated_extract_return_value.
156 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
158 * rs6000-tdep.c (TDEP): Delete macro.
159 (branch_dest): Replace use of TDEP macro with its body.
160 (rs6000_pop_frame): Ditto.
161 (rs6000_push_arguments): Ditto.
162 (rs6000_skip_trampoline_code): Ditto.
163 (rs6000_frame_saved_pc): Ditto.
164 (rs6000_frame_chain): Ditto.
165 (rs6000_register_name): Ditto.
166 (rs6000_register_byte): Ditto.
167 (rs6000_register_raw_size): Ditto.
168 (rs6000_register_virtual_type): Ditto.
169 (rs6000_register_convertible): Ditto.
170 (rs6000_convert_from_func_ptr_addr): Ditto.
172 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
174 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
176 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
177 MIPS_LINUX_JB_ELEMENT_SIZE.
178 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
179 for MAX_REGISTER_RAW_SIZE arrays.
180 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
181 MIPS_LINUX_JB_ELEMENT_SIZE.
183 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
185 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
187 2002-08-19 Aidan Skinner <aidan@velvet.net>
189 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
190 ada-valprint.c ada-tasks.c.
191 (YYFILES): Add ada-exp.y.
192 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
193 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
194 (ada-exp.tab.o): New target.
196 2002-08-18 Andrew Cagney <ac131313@redhat.com>
198 * regcache.c (regcache_xfer_part): New function.
199 (regcache_raw_read_part): New function.
200 (regcache_raw_write_part): New function.
201 (regcache_cooked_read_part): New function.
202 (regcache_cooked_write_part): New function.
203 * regcache.h (regcache_raw_read_part): Declare.
204 (regcache_raw_write_part): Declare.
205 (regcache_cooked_read_part): Declare.
206 (regcache_cooked_write_part): Declare.
208 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
210 * remote.c (remote_open_1): Add async_p.
211 (remote_async_open_1): Delete.
212 (open_remote_target): Delete.
213 (remote_open, extended_remote_open): Update calls to remote_open_1.
214 (remote_async_open, extended_remote_async_open): Call
215 remote_open_1 instead of remote_async_open_1.
217 2002-08-19 Mark Kettenis <kettenis@gnu.org>
219 * blockframe.c: Fix a few coding standard violations.
221 2002-08-19 Mark Kettenis <kettenis@gnu.org>
223 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
225 * config/i386/tm-i386sco5.h: ... here. File removed.
226 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
228 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
229 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
230 (TM_FILE): Set to tm-i386.h.
231 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
232 * config/i386/tm-i386v.h: Remove file.
233 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
234 instead of "i386/tm-i386v.h".
235 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
236 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
238 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
239 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
242 2002-08-18 Mark Kettenis <kettenis@gnu.org>
244 * config/i386/nm-i386v.h: Add protection against
246 (i386_register_u_addr): Remove prototype.
247 (register_u_addr): New prototype.
248 (REGISTER_U_ADDR): Redefine accordingly.
249 * i386v-nat.c: Improve several comments.
250 (i386_register_u_addr): Change signature and rename to
251 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
254 2002-08-18 Andrew Cagney <ac131313@redhat.com>
256 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
257 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
258 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
259 deprecated_extract_return_value.
260 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
261 rename mips_o32o64_push_arguments.
262 (mips_gdbarch_init): Update.
263 (mips_extract_return_value): Delete.
264 (mips_o32_extract_return_value): Clone mips_extract_return_value.
265 (mips_o64_extract_return_value): Clone mips_extract_return_value.
266 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
267 (mips_n32n64_extract_return_value): Clone
268 mips_extract_return_value.
269 (mips_store_return_value): Delete.
270 (mips_o32_store_return_value): Clone mips_store_return_value.
271 (mips_o64_store_return_value): Clone mips_store_return_value.
272 (mips_eabi_store_return_value): Clone mips_store_return_value.
273 (mips_n32n64_store_return_value): Clone mips_store_return_value.
275 2002-08-18 Aidan Skinner <aidan@velvet.net>
277 * ada-lang.c: Use gdb_string.h instead of <string.h>.
278 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
280 2002-08-18 Aidan Skinner <aidan@velvet.net>
282 * ada-lang.c: Run through gdb_indent.sh.
283 * ada-lang.h: Run through gdb_indent.sh.
284 * ada-tasks.c: Run through gdb_indent.sh.
285 * ada-typeprint.c: Run through gdb_indent.sh.
286 * ada-valprint.c: Run through gdb_indent.sh.
288 2002-08-18 Andrew Cagney <ac131313@redhat.com>
290 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
293 2002-08-18 Mark Kettenis <kettenis@gnu.org>
295 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
297 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
298 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
300 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
301 write_register_gen instead of write_register_bytes.
303 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
304 i[3456]-*-osf1mk* configurations have been made obsolete.
305 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
306 i[3456]86-*-osf1mk* hosts obsolete.
307 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
309 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
310 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
311 config/i386/i386m3.mt, config/i386/nm-m3.h,
312 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
313 config/i386/i386mk.mh, config/i386/i386mk.mt,
314 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
316 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
317 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
318 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
320 2002-08-18 Andrew Cagney <ac131313@redhat.com>
322 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
323 (hppa_value_returned_from_stack): Declare.
324 (hppa_extract_return_value): Declare.
325 * config/pa/hppa.mt: New file.
326 * configure.tgt: Recognize hppa*-*-*.
327 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
329 2002-08-18 Mark Kettenis <kettenis@gnu.org>
331 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
334 2002-08-17 Mark Kettenis <kettenis@gnu.org>
336 * top.c (gdb_rl_operate_and_get_next): Make sure
337 operate-and-get-next functions correctly even when the history
338 list is completely filled.
340 2002-08-18 Andrew Cagney <ac131313@redhat.com>
342 * MAINTAINERS (Target Instruction Set Architectures): Rename
343 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
344 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
345 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
346 already listed under Host/Native.
348 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
349 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
352 2002-08-17 Andrew Cagney <ac131313@redhat.com>
354 * config/ia64/ia64.mt: New file.
355 * config/alpha/alpha.mt: New file.
356 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
357 ia64-linux-gnu. Mention that ia64-elf is broken.
358 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
360 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
362 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
363 generic_func_frame_valid instead of func_frame_valid.
365 2002-08-16 Joel Brobecker <brobecker@gnat.com>
367 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
368 procfs appears to be broken when debugging on multi-processor
369 machines. So enable software single stepping in order to avoid
370 using the procfs interface to do next/step operations, using
371 internal breakpoints instead.
373 * infrun.c (handle_inferior_event): Readjust the stop_pc by
374 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
375 make this pc address equal to the value it would have if the
376 system stepping capability was used. Also set a new flag used
377 to ensure that we don't readjust the PC one more time later.
379 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
380 address by DECR_PC_AFTER_BREAK when software single step is
381 in use for this architecture, as this has already been taken
382 care of in handle_inferior_event().
384 2002-08-16 Joel Brobecker <brobecker@gnat.com>
386 * infrun.c (handle_inferior_event): Minor reformatting, to make
387 a rather long condition expression easier to read.
389 2002-08-16 Andrew Cagney <ac131313@redhat.com>
391 * Makefile.in (gdbtk.o): Move to end of file.
392 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
393 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
394 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
395 (gdbtk-wrapper.o, gdbres.o): Ditto.
397 2002-08-16 Andrew Cagney <ac131313@redhat.com>
399 * Makefile.in (copying.o): Separate out compile rule.
400 (hpux-thread.o, procfs.o, signals.o): Ditto.
401 (v850ice.o, z8k-tdep.o): Ditto.
402 (tui-file.o): Move to TUI section.
403 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
404 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
406 2002-08-16 Joel Brobecker <brobecker@gnat.com>
408 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
409 skip_trampoline_code, for better namespace-proofing.
411 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
413 2002-08-16 Joel Brobecker <brobecker@gnat.com>
415 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
419 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
420 signal, check whether we hit a breakpoint before checking for a
421 single step breakpoint. Otherwise, GDB fails to notice that a
422 breakpoint has been hit when stepping onto a breakpoint.
424 2002-08-16 Keith Seitz <keiths@redhat.com>
426 * gdb-events.sh (clear_gdb_event_hooks): New function.
427 * gdb-events.c: Regenerate.
428 * gdb-events.h: Regenerate.
430 2002-08-16 Andrew Cagney <ac131313@redhat.com>
432 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
434 * breakpoint.h (bpstat_stop_status): Add parameter names.
436 2002-08-16 Grace Sainsbury <graces@redhat.com>
438 * remote.c (remote_insert_hw_breakpoint)
439 (remote_remove_hw_breakpoint): Fix calculation of length field
442 2002-08-15 Michael Snyder <msnyder@redhat.com>
444 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
445 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
446 (supply_fpregset): Ditto.
448 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
449 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
450 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
451 (TARGET_READ_SP): Delete.
452 (DO_REGISTERS_INFO): Delete.
453 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
455 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
456 from macros to functions.
458 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
459 (mips_register_convertible, mips_register_convert_to_virtual,
460 mips_register_convert_to_raw): Make static.
461 (mips_read_sp): New function.
462 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
463 (mips_do_registers_info): Make static.
464 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
465 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
466 (mips_register_convert_from_type, mips_register_convert_to_type):
468 (mips_gdbarch_init): Set up function_start_offset,
469 register_virtual_size, pc_in_sigtramp.
471 2002-08-15 Andrew Cagney <ac131313@redhat.com>
473 * infcmd.c (vector_info): New function.
474 (_initialize_infcmd): Add command "info vector".
475 (print_vector_info): New function.
477 * gdbarch.sh (PRINT_VECTOR_INFO): New method
478 * gdbarch.h, gdbarch.c: Regenerate.
480 2002-08-15 Andrew Cagney <ac131313@redhat.com>
482 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
483 ``print_all''. Only print vector registers when ``print_all''.
485 2002-08-15 Andrew Cagney <ac131313@redhat.com>
487 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
488 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
490 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
491 Add `args' parameter.
492 * gdbarch.h, gdbarch.c: Regenerate.
494 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
496 * infcmd.c (float_info): Call print_float_info.
497 (print_float_info): New function. By default, print the
498 floating-point registers.
500 * arch-utils.h (default_print_float_info): Delete declaration.
501 * arch-utils.c (default_print_float_info): Delete function.
503 2002-08-16 Mark Kettenis <kettenis@gnu.org>
505 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
508 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
511 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
512 * configure.host: Make i[3456]86-*-aix host obsolete.
513 * configure.tgt: Make i[3456]86-*-aix target obsolete.
514 * config/i386/i386aix.mh, config/i386/i386aix.mt,
515 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
516 config/i386/xm-i386aix.h: Make files obsolete.
517 * i386aix-nat.c: Make file obsolete.
518 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
519 (i386aix-nat.o): Make target obsolete.
521 * config/i386/nm-gnu.h: Removed.
522 * config/i386/nm-i386gnu.h: New file.
523 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
524 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
526 * config/i386/tm-i386gnu.h: ... here. Removed.
527 * config/i386/xm-i386gnu.h: Removed.
528 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
529 (NAT_FILE): Set to nm-i386gnu.h.
530 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
531 * i386-tdep.c: New file.
532 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
533 (i386gnu-tdep.o): Specify dependencies.
535 2002-08-15 Mark Kettenis <kettenis@gnu.org>
537 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
538 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
539 Adjust a few comments to reflect reality a bit closer.
540 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
541 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
542 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
543 target_insert_watchpoint, target_remove_watchpoint):
545 * config/i386/nm-i386sco5.h: ... here.
546 (kernel_u_size): Add prototype. Improve a few comments and add
547 protection against multiple inclusion.
549 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
552 * uw-thread.c (SP_ARG0): Define if not already defined.
553 * config/i386/tm-i386.h (SO_ARG0): Remove define.
555 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
557 * config/i386/tm-i386.h: Don't include "regcache.h".
559 * i387-tdep.h (i387_print_float_info): New prototype.
560 * i387-tdep.c (print_i387_value, print_i387_ext,
561 print_i387_status_word, print_i387_control_word): Add `struct
562 ui_file *' argument and use it for output.
563 (i387_print_float_info): Renamed from i387_float_info. Add
564 `struct gdbarch *' and `struct ui_file *' arguments and use the
566 * i386-tdep.c: Include "i387-tdep.h".
567 (i386_gdbarch_init): Set print_float_info.
568 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
569 (FLOAT_INFO): Remove define.
571 2002-08-13 Michael Snyder <msnyder@redhat.com>
573 * mips-tdep.c (mips_push_arguments): Rename to
574 mips_eabi_push_arguments, and tune for EABI.
575 (MIPS_REGS_HAVE_HOME_P): Delete.
576 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
577 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
578 Delete references to mips_regs_have_home_p.
580 2002-08-14 Keith Seitz <keiths@redhat.com>
582 * Makefile.in (install-gdbtk): Create insight plugin directory.
583 Install plugins.tcl file.
585 2002-08-14 Keith Seitz <keiths@redhat.com>
587 * configure.in: Move SUBDIRS to near top of the file so that
588 --enable options may add things to it.
589 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
590 * configure: Regenerate.
592 2002-08-13 Michael Snyder <msnyder@redhat.com>
594 * mips-tdep.c (mips_o32o64_push_arguments): New function,
595 cloned from mips_push_arguments, tuned for o32/o64 ABI.
596 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
598 2002-08-13 Andrew Cagney <ac131313@redhat.com>
600 * vax-tdep.c (vax_get_saved_register): Delete function.
601 (vax_gdbarch_init): Update.
602 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
603 (ns32k_gdbarch_init): Update.
604 * alpha-tdep.c (alpha_get_saved_register): Delete function.
605 (alpha_gdbarch_init): Update.
607 2002-08-13 Andrew Cagney <cagney@redhat.com>
609 * regcache.c (init_regcache_descr): Overallocate the
610 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
611 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
613 (set_register_cached): Add range checking assertions. Use
616 2002-08-13 Mark Kettenis <kettenis@gnu.org>
618 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
619 numbers for MMX registers.
621 2002-08-13 Andrew Cagney <cagney@redhat.com>
623 * i386-tdep.c (i386_gdbarch_init): Use
624 generic_unwind_get_saved_register.
626 2002-08-13 Kevin Buettner <kevinb@redhat.com>
628 * procfs.c (procfs_can_use_hw_breakpoint): New function.
629 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
631 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
632 Delete. Add comment regarding this now-deleted target method.
634 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
636 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
637 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
638 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
639 real PC and the page number (if it's within the memory bank window).
640 (m68hc11_pseudo_register_write): Likewise when saving.
641 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
642 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
643 (m68hc11_register_raw_size): And use 32-bit for it.
644 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
645 16K memory bank is used by the prog; also use the virtual pc.
647 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
649 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
650 (m68hc11_gdbarch_init): Install it in gdbarch.
651 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
652 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
653 (MSYMBOL_SIZE): New for documentation.
654 (insn_return_kind): Enum to specify how a function returns.
655 (frame_extra_info): Cleanup and record the return mode.
656 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
657 register in address computation.
658 (m68hc11_get_return_insn): New to obtain the return instruction used
660 (m68hc11_frame_init_saved_regs): Take into account the return
661 instruction used by the function for far and interrupt functions.
662 (m68hc11_init_extra_frame_info): Take into account page register.
663 (m68hc11_frame_args_address): Adjust according to the return mode.
664 (show_regs): Print page register only when it's used.
666 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
668 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
669 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
670 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
672 (m68hc11_register_raw_size): Likewise.
674 2002-08-13 Andrew Cagney <cagney@redhat.com>
676 * i386-tdep.c (i386_register_name): Handle mmx registers.
677 (mmx_regnum_p): New function.
678 (i386_mmx_names): New array.
679 (mmx_num_regs): New variable.
680 (i386_pseudo_register_read): New function.
681 (i386_pseudo_register_write): New function.
682 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
684 * regcache.c (regcache_raw_read_unsigned): New function.
685 (regcache_raw_read_signed): New function.
686 * regcache.h (regcache_raw_read_unsigned): Declare.
687 (regcache_raw_read_signed): Declare.
689 2002-08-13 Andrew Cagney <cagney@redhat.com>
691 * regcache.c (regcache_raw_read_as_address): Delete function.
692 (regcache_cooked_read_signed): New function.
693 (regcache_cooked_read_unsigned): New function.
694 * regcache.h (regcache_cooked_read_signed): Declare.
695 (regcache_cooked_read_unsigned): Declare.
696 (regcache_raw_read_as_address): Delete declaration.
698 * blockframe.c (generic_read_register_dummy): Use
699 regcache_cooked_read_unsigned.
700 * i386-tdep.c (i386_extract_struct_value_address): Use
701 regcache_cooked_read_unsigned.
703 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
706 double sizes according to ELF ABI flags.
707 (gdbarch_tdep): Record elf_flags.
709 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
711 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
712 (m6812_prolog): They can appear in 68HC12 function prologue.
713 (m68hc11_frame_chain): Cleanup.
715 2002-08-12 Andrew Cagney <cagney@redhat.com>
717 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
719 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
720 (i386_linux_register_raw_size): Delete function.
721 (i386_linux_init_abi): Update.
722 * i386-tdep.c (i386_register_raw_size): Delete function.
723 (i386_register_byte): Delete function.
724 (i386_gdbarch_init): Update.
725 (i386_register_size): Delete array.
726 (i386_register_offset): Delete array.
728 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
729 (REGISTER_RAW_SIZE): Delete macro.
730 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
731 (REGISTER_BYTE): Delete macro.
733 2002-08-11 Aidan Skinner <aidan@velvet.net>
735 * ada-lang.c (ada_lookup_partial_symbol)
736 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
737 prototype names so that grep ^func works properly.
739 * ada-lang.c (ada_array_element_type)
740 (ada_lookup_partial_symbol): Fix typos in parameter list.
742 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
743 Fix prototype names so that grep ^func works properly.
745 2002-08-10 Andrew Cagney <cagney@redhat.com>
746 Elena Zannoni <ezannoni@redhat.com>
747 Martin M. Hunt <hunt@redhat.com>
749 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
750 (build_builtin_type_vec128i): Set the vector bit.
751 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
752 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
753 (build_builtin_type_vec64): New function.
754 (build_builtin_type_vec64i): New function.
755 (build_gdbtypes): Initialize builtin_type_vec64 and
758 2002-08-09 Andrew Cagney <cagney@redhat.com>
760 * regcache.c (regcache_dump): Compare the register offset
762 * arch-utils.c (generic_register_byte): New function.
763 * arch-utils.h (generic_register_byte): Declare.
764 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
765 * gdbarch.h, gdbarch.c: Regenerate.
767 2002-08-09 Andrew Cagney <cagney@redhat.com>
769 * regcache.c: Include "gdbcmd.h"
770 (_initialize_regcache): Add commands "maintenance print
771 registers", "maintenance print raw-registers" and "maintenance
772 print cooked-registers".
773 (enum regcache_dump_what): Define.
774 (dump_endian_bytes): New function.
775 (regcache_dump): New function.
776 (regcache_print): New function.
777 (maintenance_print_registers): New function.
778 (maintenance_print_raw_registers): New function.
779 (maintenance_print_cooked_registers): New function.
780 * Makefile.in (regcache.o): Update dependencies.
782 2002-08-09 Michael Snyder <msnyder@redhat.com>
784 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
785 (mips_push_arguments): Correct some comments. Use paddr_nz
786 for printing addresses in debug output. Replace static
787 allocation using MAX_REGISTER_RAW_SIZE with alloca.
788 (mips_n32n64_push_arguments): New function, cloned from
789 mips_push_arguments and tuned for the n32/n64 ABI.
790 (mips_push_register): Buffer needs dynamic allocation.
791 (mips_print_register): Ditto.
792 (do_gp_register_row): Ditto.
793 (mips_store_return_value): Ditto.
794 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
796 2002-08-09 Don Howard <dhoward@redhat.com>
798 * memattr.c (mem_info_command): Print special case of upper bound
799 as max CORE_ADDR + 1.
801 2002-08-08 Michael Snyder <msnyder@redhat.com>
803 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
804 returns structs by ref if they're too big to fit in two registers.
806 2002-08-09 Kevin Buettner <kevinb@redhat.com>
808 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
810 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
811 mips_find_saved_regs().
812 (mips_pop_frame): Likewise.
814 2002-08-09 Kevin Buettner <kevinb@redhat.com>
816 * blockframe.c (frame_saved_regs_register_unwind): Revise
817 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
820 2002-08-09 Grace Sainsbury <graces@redhat.com>
822 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
823 T-packets; the 'a' is not taken as a register number.
824 (remote_check_watch_resources, remote_stopped_by_watchpoint)
825 (remote_stopped_data_address): New functions; add to target
827 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
828 prototypes to match other implementations of this
829 function. replace integer argument with pointer -- the length
830 field in the Z-packet is the length of what is pointed to or 1 if
831 pointer is null. Add to target vector.
832 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
836 * remote.c (remote_wait): Add support to extract optional
837 watchpoint information from T-packet. Ignore unrecognized
838 optional info in T-packet.
839 (remote_async_wait): Ditto.
841 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
843 * cli/cli-dump.c: Change fopen modes to use binary open modes
844 as defined in include/fopen-bin.h throughout.
846 2002-08-08 Michael Snyder <msnyder@redhat.com>
848 * mips-tdep.c: Minor whitespace and indentation clean-ups.
850 2002-08-08 Kevin Buettner <kevinb@redhat.com>
852 * doublest.c (store_floating): Avoid floatformat_from_doublest()
853 assertion failure by returning early after a warning.
855 2002-08-08 Kevin Buettner <kevinb@redhat.com>
857 * mips-tdep.c (mips_find_saved_regs): Make static.
858 (mips_frame_init_saved_regs): New function.
859 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
860 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
861 (mips_find_saved_regs): Delete declaration.
863 2002-08-08 Grace Sainsbury <graces@redhat.com>
865 * remote.c (remote_wait, remote_async_wait): Change
866 thread_num from int to ULONGEST.
867 (unpack_varlen_hex): Change result parameter from
870 2002-08-08 Andrew Cagney <ac131313@redhat.com>
872 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
873 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
875 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
877 2002-08-08 Andrew Cagney <cagney@redhat.com>
879 * gcore.c (override_derive_stack_segment): Delete variable.
880 (preempt_derive_stack_segment): Delete function.
881 (derive_stack_segment): Delete function.
882 (default_derive_stack_segment): Renamed to derive_stack_segment.
883 (override_derive_heap_segment): Delete variable.
884 (preempt_derive_heap_segment): Delete function.
885 (derive_heap_segment): Delete function.
886 (default_derive_heap_segment): Rename to derive_heap_segment.
888 2002-08-06 Michael Snyder <msnyder@redhat.com>
890 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
891 * mips-tdep.c (mips_EABI_use_struct_convention,
892 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
893 New functions. (mips_use_struct_convention): Delete.
894 (mips_gdbarch_init): set use_gdbarch_convention.
896 2002-08-06 Michael Snyder <msnyder@redhat.com>
898 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
899 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
900 mips_o32_reg_struct_has_addr): New functions.
901 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
903 2002-08-07 Andrew Cagney <ac131313@redhat.com>
905 * regcache.c (pseudo_register): Delete function.
906 (fetch_register): Delete function.
907 (store_register): Delete function.
908 (regcache_raw_read, legacy_read_register_gen): Use
909 target_fetch_registers instead of fetch_register.
910 (legacy_write_register_gen, regcache_raw_write): Use
911 target_store_register instead of store_register.
912 (write_register_bytes): Ditto.
914 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
915 (STORE_PSEUDO_REGISTER): Delete.
916 * gdbarch.h, gdbarch.c: Regenerate.
918 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
920 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
921 write dump file binary.
923 2002-08-05 Michael Snyder <msnyder@redhat.com>
925 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
926 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
927 (mips_gdbarch_init): Set N32 target to be mips64.
929 2002-08-06 Kevin Buettner <kevinb@redhat.com>
931 * frame.c (find_saved_register): Break out of loop once saved
932 register address is found. Don't mention sparc in loop comment
935 2002-08-06 Kevin Buettner <kevinb@redhat.com>
937 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
938 mips_default_saved_regsize to 8.
940 2002-08-06 Andrew Cagney <ac131313@redhat.com>
942 * gcore.c: Do not include <sys/procfs.h>.
943 * Makefile.in (gcore.o): Update dependencies.
945 2002-08-06 Andrew Cagney <cagney@redhat.com>
947 * configure.tgt: Make arc-*-* obsolete.
948 * NEWS: Mention that arc-*-* has been identifed as obsolete.
949 * MAINTAINERS: Make arc-elf obsolete.
950 * arc-tdep.c: Make file obsolete.
951 * config/arc/arc.mt: Ditto.
952 * config/arc/tm-arc.h: Ditto.
954 2002-08-05 Theodore A. Roth <troth@verinet.com>
956 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
958 2002-08-05 Andrew Cagney <ac131313@redhat.com>
960 * mcore-tdep.c (mcore_gdbarch_init): Use
961 generic_unwind_get_saved_register instead of
962 generic_get_saved_register.
963 * v850-tdep.c (v850_gdbarch_init): Ditto.
964 * frv-tdep.c (frv_gdbarch_init): Ditto.
965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
966 * s390-tdep.c (s390_gdbarch_init): Ditto.
967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
968 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
969 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
971 2002-08-05 Joel Brobecker <brobecker@gnat.com>
973 * objfiles.h: Add missing #include "symfile.h"
975 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
977 2002-08-04 Andrew Cagney <ac131313@redhat.com>
979 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
980 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
983 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
985 * NEWS: Cleanup and nitpick.
987 2002-08-03 Andrew Cagney <ac131313@redhat.com>
989 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
991 2002-08-03 Andrew Cagney <ac131313@redhat.com>
993 * Makefile.in (gdbtk-bp.o): Update dependencies.
994 (gdbtk-register.o): Ditto.
995 (gdbtk-varobj.o): Ditto.
997 2002-08-03 Andrew Cagney <cagney@redhat.com>
999 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1000 m68hc11_fetch_pseudo_register.
1001 (m68hc11_pseudo_register_write): Replace
1002 m68hc11_store_pseudo_register.
1003 (m68hc11_gdbarch_init): Update.
1005 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1007 * gdbarch.sh: Include "gdb_string.h".
1008 * gdbarch.c: Regenerate.
1010 * regcache.c: Include "gdb_string.h".
1011 * ax-general.c: Ditto.
1013 * std-regs.c: Ditto.
1014 * fbsd-proc.c: Ditto.
1017 * Makefile.in (regcache.o): Update dependencies.
1018 (thread.o, gdbarch.o): Ditto.
1019 (ax-general.o, gdbarch.o): Ditto.
1020 (varobj.o, std-regs.o): Ditto.
1021 (fbsd-proc.o): Specify dependencies.
1023 2002-08-02 Andrew Cagney <cagney@redhat.com>
1025 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1027 (regcache_cooked_write): Ditto.
1029 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1031 * regcache.c (regcache_cooked_read): New function.
1032 (regcache_cooked_write): New function.
1033 (read_register_gen): Rewrite using regcache_cooked_read.
1034 (write_register_gen): Rewrite using regcache_cooked_write.
1036 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1039 2002-08-02 Andrew Cagney <cagney@redhat.com>
1041 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1042 Replace the architecture methods register_read and register_write.
1043 * gdbarch.h, gdbarch.c: Regenerate.
1044 * regcache.c (init_regcache_descr): Update.
1045 (read_register_gen): Update.
1046 (write_register_gen): Update.
1047 (supply_register): Update comment.
1049 * sh-tdep.c (sh_gdbarch_init): Update.
1050 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1051 `regcache' and `gdbarch' parameters. Make `buffer' a void
1052 pointer. Update code.
1053 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1054 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1055 void pointer. Update code.
1056 (sh64_register_write): Delete.
1057 (sh4_register_read): Delete.
1058 (sh64_register_read): Delete.
1059 (sh4_register_write): Delete.
1060 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1061 void pointer, `to' parameter a void pointer.
1062 (sh_sh64_register_convert_to_raw): Ditto.
1064 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1066 * mips-tdep.c (mips_register_virtual_type): Use architecture
1067 invariant return values.
1069 2002-08-01 Andrew Cagney <cagney@redhat.com>
1071 * linux-proc.c: Include "gdb_string.h".
1072 * Makefile.in (linux-proc.o): Update dependency list.
1074 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1076 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1079 2002-08-01 Grace Sainsbury <graces@redhat.com>
1081 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1082 to_insert_watchpoint, to_remove_watchpoint,
1083 to_stopped_by_watchpoint, to_stopped_data_address,
1084 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1085 target vecctor. Define their corresponding macros so they call
1088 * target.c: Add default and debug versions of for
1089 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1090 to_insert_watchpoint, to_remove_watchpoint,
1091 to_stopped_by_watchpoint, to_stopped_data_address,
1092 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1094 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1096 * mips-tdep.c (mips_register_virtual_type): New function.
1097 (mips_gdbarch_init): Register mips_register_virtual_type()
1098 with gdbarch machinery.
1099 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1100 this file instead of tm-bigmips.h.
1101 (MIPS_REGSIZE): Delete this macro.
1102 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1103 multiarch version in mips-tdep.c will be found.
1105 2002-08-01 Andrew Cagney <cagney@redhat.com>
1107 * NEWS: Menion that CHILL has been made obsolete.
1109 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1110 * gdbserver/Makefile.in: Ditto.
1111 * stabsread.c (read_range_type): Ditto.
1112 * gdbtypes.h: Ditto.
1113 * language.c (binop_type_check): Ditto.
1114 (binop_result_type): Ditto.
1115 (integral_type): Ditto.
1116 (character_type): Ditto.
1117 (string_type): Ditto.
1118 (boolean_type): Ditto.
1119 (structured_type): Ditto.
1120 (lang_bool_type): Ditto.
1121 (binop_type_check): Ditto.
1122 * language.h (_LANG_chill): Ditto.
1123 * dwarfread.c (set_cu_language): Ditto.
1124 * dwarfread.c (CHILL_PRODUCER): Ditto.
1125 * dwarfread.c (handle_producer): Ditto.
1126 * expression.h (enum exp_opcode): Ditto.
1127 * eval.c: Ditto for comments.
1128 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1129 * expprint.c (print_subexp): Ditto.
1130 (print_subexp): Ditto.
1131 * valops.c (value_cast): Ditto.
1132 (search_struct_field): Ditto.
1133 * value.h (COERCE_VARYING_ARRAY): Ditto.
1134 * symfile.c (init_filename_language_table): Ditto.
1135 (add_psymbol_with_dem_name_to_list): Ditto.
1136 * valarith.c (value_binop): Ditto.
1138 * valops.c (value_slice): Ditto.
1139 * symtab.h (union language_specific): Ditto.
1140 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1141 (SYMBOL_DEMANGLED_NAME): Ditto.
1142 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1143 * defs.h (enum language): Ditto.
1144 * symtab.c (got_symtab): Ditto.
1145 * utils.c (fprintf_symbol_filtered): Ditto.
1147 * ch-typeprint.c: Make file obsolete.
1148 * ch-valprint.c: Make file obsolete.
1149 * ch-lang.h: Make file obsolete.
1150 * ch-exp.c: Make file obsolete.
1151 * ch-lang.c: Make file obsolete.
1153 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1155 (TARGET_FLAGS_TO_PASS): Ditto.
1156 (CHILLFLAGS): Obsolete.
1158 (CHILL_FOR_TARGET): Obsolete.
1159 (CHILL_LIB): Obsolete.
1160 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1162 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1163 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1165 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1168 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1170 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1171 This does not change anything at the moment, but will be helpful
1172 later when full Ada support is integrated.
1174 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1176 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1179 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1181 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1182 and save it in a local variable. Use variable in later test.
1184 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1186 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1187 test. (Thanks to Daniel Jacobowitz.)
1189 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1191 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1192 (mips_abi_strings): Add "n64".
1193 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1195 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1197 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1198 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1200 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1202 * utils.c (host_pointer_to_address, address_to_host_pointer):
1203 Use gdb_assert() instead of explicit call to internal_error().
1205 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1207 * Makefile.in (rs6000-nat.o): Update dependencies.
1209 From Nicholas Duffek:
1210 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1211 (aix-thread.o): New rule.
1212 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1213 * config/powerpc/aix432.mh: New file.
1215 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1217 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1218 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1219 (fetch_core_registers, ppc_linux_supply_gregset)
1220 (ppc_linux_supply_fpregset): New functions.
1221 (ppc_linux_regset_core_fns): New.
1222 (_initialize_ppc_linux_tdep): Call add_core_fns.
1223 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1224 and ppc_linux_supply_gregset.
1225 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1226 (supply_fpregset): Call ppc_linux_supply_fpregset.
1227 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1229 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1231 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1233 * symtab.c (lookup_symbol): Demangle before lowercasing.
1235 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1237 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1239 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1240 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1241 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1242 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1244 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1245 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1246 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1247 (avr-tdep.o, mon960-rom.o): Ditto.
1248 (aout_stabs_gnu_h): Define.
1249 (symtab_h): Remove $(gdb_obstack_h).
1251 2002-07-30 Jim Blandy <jimb@redhat.com>
1253 Patch from David Carlton <carlton@math.stanford.edu>:
1254 * gdbinit.in: Move the `dir' commands that add GDB's own source
1255 directory to the search path to the end, so that the `gdb' source
1256 directory will be searched first.
1258 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1260 * gdb_obstack.h: New file.
1261 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1262 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1263 * objfiles.h: Include "gdb_obstack.h".
1264 * Makefile.in (gdb_obstack_h): Define.
1265 (symtab_h): Add $(gdb_obstack_h).
1266 (objfiles_h): Add $(gdb_obstack_h).
1268 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1269 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1270 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1271 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1272 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1273 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1274 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1275 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1277 * Makefile.in (bcache.o): Update dependencies.
1278 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1279 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1280 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1281 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1282 (stabsread.o, symfile.o, symmisc.o): Ditto.
1283 (symtab.o, typeprint.o, macroexp.o): Ditto.
1284 (macrotab.o, mdebugread.o): Ditto.
1285 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1286 (coff_ecoff_h, aout_aout64_h): Define.
1287 (aout_stabs_gnu_h, libaout_h): Define.
1289 2002-07-29 Andrew Cagney <cagney@redhat.com>
1291 * regcache.c (struct regcache_descr): Rename nr_registers to
1292 nr_cooked_registers. Revise comments describing the structure
1294 (init_regcache_descr): Update.
1295 (init_legacy_regcache_descr): Update.
1296 (read_register_gen, write_register_gen): When a cooked register in
1297 the raw register range, directly access the value from the raw
1300 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1302 * z8k-tdep.c: Do not include "obstack.h".
1303 * h8300-tdep.c, h8500-tdep.c: Ditto.
1304 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1305 * valprint.c, v850-tdep.c: Ditto.
1306 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1307 * mn10200-tdep.c: Ditto.
1309 * Makefile.in (z8k-tdep.o): Update dependencies.
1310 (m68hc11-tdep.o, valprint.o): Ditto.
1311 (v850-tdep.o, d10v-tdep.o): Ditto.
1312 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1313 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1314 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1315 (sh_opc_h, gdb_sim_sh_h): Define.
1316 (elf_sh_h, elf_bfd_h): Define.
1317 (opcode_m68hc11_h): Define.
1318 (OPCODES_SRC, OPCODES_DIR): define.
1319 (OPCODES): Use $(OPCODES_DIR).
1320 (gdb_sim_d10v_h): Rename sim_d10v_h.
1321 (gdb_sim_arm_h): Rename sim_arm_h.
1323 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1325 * utils.c (host_pointer_to_address, address_to_host_pointer):
1326 Change internal_error() message to indicate function responsible
1329 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1331 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1332 calls to local_hex_string_custom().
1334 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1336 * irix5-nat.c: Move IRIX shared library support from here...
1337 * solib-irix.c: ...to here. Revised substantially to work with
1338 generic solib framework.
1340 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1341 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1342 * mips-irix-tdep.c: New file.
1344 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1345 (mips-irix-tdep.o, solib-irix.o): New rules.
1346 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1348 * config/mips/irix6.mt (TDEPFILES): Likewise.
1349 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1351 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1353 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1354 disabled (via ``#if 0'') includes.
1356 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1358 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1359 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1360 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1361 Add support for the fpscr register.
1362 * rs6000-nat.c (regmap, fetch_inferior_registers)
1363 (store_inferior_registers, fetch_core_registers): Likewise.
1365 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1367 * rs6000-nat.c (language.h): Include.
1368 (special_regs): Delete this array.
1369 (regmap): New function.
1370 (fetch_register, store_register): Use regmap() to map gdb
1371 register numbers to ptrace register numbers. Also, use
1372 outputs from regmap() to make decisions regarding type of
1373 ptrace() call to make. In particular, don't compare against
1374 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1375 (fetch_inferior_registers, store_inferior_registers): Where
1376 possible, obtain register numbers from tdep struct. Don't
1377 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1378 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1379 (LAST_UISA_SP_REGNUM): Delete.
1381 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1383 * rs6000-nat.c (ppc-tdep.h): Include.
1384 (fetch_registers, store_register, fetch_core_registers): Don't
1385 access registers[] directly. Instead, use supply_register() or
1386 regcache_collect() as appropriate.
1387 (find_toc_address): Format hex address with local_hex_string().
1389 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1391 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1394 2002-07-24 Tom Tromey <tromey@redhat.com>
1396 * jv-exp.y: Marked all strings with _().
1397 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1399 (MethodInvocation, CastExpression, parse_number, yyerror,
1400 java_type_from_name, push_expression_name, yylex): Typo fixes.
1402 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1404 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1405 (tee_file_flush, tee_file_write, tee_file_fputs)
1406 (tee_file_isatty): New.
1407 * ui-file.h (tee_file_new): Add prototype.
1409 2002-07-24 Aidan Skinner <aidan@velvet.net>
1411 * ada-lang.c: Change k&r style function definitions to prototyped
1413 * ada-typeprint.c: Change k&r style function definitions to prototyped
1415 * ada-valprint.c: Change k&r style function definitions to prototyped
1418 2002-07-24 Andrew Cagney <cagney@redhat.com>
1420 * README: Remove reference to remote-bug.
1421 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1423 (m88k-nat.o): Delete rule.
1424 (m88k-tdep.o): Delete rule.
1425 (remote-bug.o): Delete rule.
1426 * MAINTAINERS: Mark as obsolete.
1427 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1428 * m88k-tdep.c: Make file obsolete.
1429 * config/m88k/m88k.mh: Ditto.
1430 * config/m88k/delta88v4.mh: Ditto.
1431 * config/m88k/delta88v4.mt: Ditto.
1432 * config/m88k/delta88.mt: Ditto.
1433 * config/m88k/delta88.mh: Ditto.
1434 * remote-bug.c: Ditto.
1435 * config/m88k/tm-delta88.h: Ditto.
1436 * config/m88k/nm-delta88v4.h: Ditto.
1437 * config/m88k/xm-delta88.h: Ditto.
1438 * config/m88k/xm-dgux.h: Ditto.
1439 * config/m88k/tm-m88k.h: Ditto.
1440 * config/m88k/nm-m88k.h: Ditto.
1441 * config/m88k/tm-delta88v4.h: Ditto.
1442 * m88k-nat.c: Ditto.
1443 * cxux-nat.c: Ditto.
1444 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1445 and m88*-*-* obsolete.
1446 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1449 2002-07-24 Andrew Cagney <cagney@redhat.com>
1451 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1452 constant. Same for local pointer variables.
1453 (extract_signed_integer): Ditto.
1454 * defs.h (extract_unsigned_integer): Update.
1455 (extract_signed_integer): Update.
1457 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1459 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1460 * gdbserver/configure: Regenerate.
1461 * gdbserver/config.in: Regenerate.
1463 2002-07-24 Andrew Cagney <cagney@redhat.com>
1465 * regcache.c (regcache_raw_write): Change buf parameter to a
1466 constant void pointer.
1467 (regcache_raw_read): Change buf parameter to a void pointer.
1468 (legacy_write_register_gen): Change myaddr parameter a constant
1470 (supply_register): Change val parameter to a const void pointer.
1471 * regcache.h (regcache_raw_write): Update declaration.
1472 (regcache_raw_read): Update declaration.
1473 (supply_register): Update declaration.
1475 2002-07-24 Tom Tromey <tromey@redhat.com>
1477 * defs.h (gdb_readline_wrapper): Declare.
1478 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1479 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1480 * top.c (gdb_readline_wrapper): New function.
1481 (command_line_input): Use it.
1483 2002-07-24 Andrew Cagney <cagney@redhat.com>
1485 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1486 regcache_read and regcache_write.
1487 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1488 * regcache.c: Update.
1489 * sh-tdep.c (sh64_push_arguments): Update comment.
1490 (sh_pseudo_register_read): Update.
1491 (sh_pseudo_register_write): Update.
1492 (sh4_register_read): Update.
1493 (sh4_register_write): Update.
1494 (sh64_pseudo_register_read): Update.
1495 (sh64_pseudo_register_write): Update.
1496 (sh64_register_read): Update.
1497 (sh64_register_write): Update.
1498 * i386-tdep.c (i386_extract_return_value): Update.
1499 (i386_extract_struct_value_address): Update.
1500 (i386_extract_return_value): Update.
1501 * blockframe.c (generic_read_register_dummy): Update.
1502 (generic_call_dummy_register_unwind): Update
1503 * infrun.c (write_inferior_status_register): Update.
1505 2002-07-23 Jim Blandy <jimb@redhat.com>
1507 * parser-defs.h (expression_context_pc): Make this extern.
1508 (Thanks to Michael Snyder.)
1510 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1512 GDB 5.2.1 released from 5.2 branch.
1513 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1514 * README: Update to mention 5.2.1.
1516 2002-07-23 Mark Salter <msalter@redhat.com>
1518 * remote.c (remote_read_bytes): Fix check for error.
1520 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1522 * aix-thread.c (language.h): Include.
1523 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1524 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1525 Print newlines at end of debug messages.
1526 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1527 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1529 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1531 * aix-thread.c (ppc-tdep.h): Include.
1532 (special_register_p): New function.
1533 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1534 (store_regs_user_thread): Use register number information from
1535 gdbarch_tdep struct instead of hardcoded offsets relative to
1536 FIRST_UISA_SP_REGNUM.
1537 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1538 special_register_p() instead of using FPLAST_REGNUM and
1539 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1540 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1541 will be MQ's register number.
1543 2002-07-22 Michael Snyder <msnyder@redhat.com>
1545 * aix-thread.c (ops): Rename to aix_thread_ops.
1546 (base_ops): Rename to base_target.
1547 (ops_attach): Rename to aix_thread_attach.
1548 (ops_detach): Rename to aix_thread_detach.
1549 (ops_resume): Rename to aix_thread_detach.
1550 (ops_wait): Rename to aix_thread_wait.
1551 (ops_kill): Rename to aix_thread_kill.
1552 (init_ops): Rename to init_aix_thread_ops.
1553 (ops_fetch_register): Rename to aix_thread_fetch_register.
1554 (ops_store_register): Rename to aix_thread_store_register.
1555 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1556 (ops_thread_alive): Rename to aix_thread_thread_alive.
1557 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1558 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1559 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1560 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1561 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1562 (store_regs_lib): Rename to store_regs_user_thread.
1563 (store_regs_kern): Rename to store_regs_kernel_thread.
1565 2002-07-22 Michael Snyder <msnyder@redhat.com>
1567 * aix-thread.c (ops_prepare_to_store): Eliminate.
1568 (init_ops): Don't initialize ops.prepare_to_store.
1569 (store_regs_kern): Pre-fetch register buffers from child,
1570 because some registers may not be in the cache. Copy
1571 regs from register cache only if they are cached.
1572 (store_regs_lib): Copy regs from register cache only
1574 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1575 fill_gprs64): Ditto.
1577 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1579 * aix-thread.c (gdb_assert.h): Include.
1580 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1581 register sizes (from register cache) match size of buffer holding
1583 (fill_sprs32): Change parameter types to match those in the ptrace()
1585 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1586 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1588 2002-07-22 Michael Snyder <msnyder@redhat.com>
1590 * aix-thread.c (supply_sprs64): Cosmetic change.
1591 (supply_sprs32): Cosmetic change.
1592 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1593 (fill_sprs64): Use regcache_collect instead of read_register.
1594 (store_regs_lib): Use regcache_collect instead of
1595 read_register. Use fill_sprs32 instead of fill_sprs64,
1596 if debugging a 32-bit architecture.
1597 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1598 out of the register cache, instead of passing a pointer into
1599 the register cache directly to ptrace. Use regcache_collect
1600 insteaad of read_register.
1601 (ops_prepare_to_store): Use target_read_registers instead
1602 of read_register_bytes.
1604 2002-07-20 Aidan Skinner <aidan@velvet.net>
1606 * MAINTAINERS: Add self under write after approval.
1608 2002-07-20 Aidan Skinner <aidan@velvet.net>
1610 * ada-tasks.c: Change k&r style function definitions to prototyped
1613 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1615 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1616 * x86-64-tdep.c: Include "objfiles.h".
1617 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1618 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1620 2002-07-17 Michal Ludvig <michal@suse.cz>
1622 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1623 (update_context): Initialise cfa variable.
1625 2002-07-17 Michael Snyder <msnyder@redhat.com>
1627 * aix-thread.c: Shorten some long lines.
1628 Bring comments into line with code spec.
1630 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1632 * infrun.c: Re-indent using gdb_indent.sh.
1634 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1636 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1637 Leave the indentation temporarily untouched, to minimize the diffs.
1639 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1641 * stabsread.c: Make os9k sections of the code obsolete,
1643 * stabsread.h: Make os9k sections of the code obsolete.
1645 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1647 * linux-low.c (regsets_store_inferior_registers): Add free()
1648 at the end of a loop to prevent memory leak.
1649 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1650 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1651 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1653 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1655 2002-07-17 Jim Blandy <jimb@redhat.com>
1657 * macrocmd.c (info_macro_command): Remove newline from error
1660 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1662 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1663 (sh_gdbarch_init): Use it for sh-dsp.
1665 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1667 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1668 64-bit DWARF2 format.
1670 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1672 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1673 <sys/proc.h> when not available.
1675 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1677 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1678 * stabsread.c: Make os9k sections of the code obsolete.
1679 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1680 * config/i386/i386os9k.mt: Make file obsolete.
1681 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1682 (COMMON_OBS): Remove os9kread.o
1683 (SFILES): Remove os9kread.c.
1684 (os9kread.o, remote-os9k.o): Make target obsolete.
1685 * remote-os9k.c: Make file obsolete.
1686 * os9kread.c: Make file obsolete.
1689 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1691 * NEWS: Mention that the FR30 has been made obsolete.
1692 * fr30-tdep.c: Make file obsolete.
1693 * config/fr30/tm-fr30.h: Ditto.
1694 * config/fr30/fr30.mt: Ditto.
1695 * configure.tgt: Make fr30-*-elf obsolete.
1696 * MAINTAINERS: Make fr30-elf obsolete.
1698 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1700 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1701 found is not inside a section.
1703 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1705 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1707 (pdc_realloc): Use xrealloc() instead of realloc().
1709 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1711 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1712 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1713 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1716 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1718 * aix-thread.c (ptrace_check): Eliminate goto.
1719 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1722 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1724 * aix-thread.c (gdbcmd.h): Include.
1725 (DEBUG, DBG, DBG2, dbg): Eliminate.
1726 (debug_aix_thread): New static global.
1727 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1728 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1729 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1730 invocations to DBG and DBG2 macros to test against
1731 ``debug_aix_thread'' and call fprintf_unfiltered().
1732 (_initialize_aix_thread): Add new command "set debug aix-thread".
1734 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1736 From Gerhard Tonn <TON@de.ibm.com>:
1737 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1738 instead of supply_register.
1740 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1742 * dwarf2cfi.c: Include "gdb_assert.h".
1743 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1745 (update_context): Do not use __func__. Add missing ``break''.
1746 (update_context): Do not use __func__.
1748 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1750 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1751 and its setting. Set gdbarch instruction printing functions
1752 directly. For non-rs6000 case use new function
1753 gdb_print_insn_powerpc.
1754 (gdb_print_insn_powerpc): New function.
1756 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1758 * NEWS: Mention that the d30v has been marked obsolete.
1759 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1760 * configure.tgt: Mark d30v-*-* as obsolete.
1761 * d30v-tdep.c: Mark file as obsolete.
1762 * config/d30v/d30v.mt: Ditto.
1763 * config/d30v/tm-d30v.h: Ditto.
1765 2002-07-13 Aidan Skinner <aidan@velvet.net>
1767 * ada-tasks.c (add_task_entry): replace calls to
1768 malloc() with xmalloc
1769 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1771 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1772 ada_finish_decode_line_1, all_sals_for_line
1773 ada_breakpoint_rewrite): replace calls to free() with xfree()
1775 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1777 From Nicholas Duffek (with minor changes by Martin Hunt,
1778 Louis Hamilton, and Kevin Buettner):
1779 * aix-thread.c: New file.
1781 2002-07-12 Petr Sorfa <petrs@caldera.com>
1783 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1784 complaint for invalid attribute class or form.
1785 (read_func_scope): DW_AT_frame_base
1786 better handling of DW_AT_block*.
1787 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1788 better handling of DW_AT_block*.
1789 (read_common_block): DW_AT_location
1790 better handling of DW_AT_block*.
1791 (read_partial_die): DW_AT_location better handling
1793 (new_symbol): DW_AT_external better handling of
1794 DW_AT_block*. Proper initialization of variable
1796 (attr_form_is_block): New function that returns true
1797 if the attribute's form is of DW_FORM_block*.
1799 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1801 * valops.c (find_method_list): Remove comment about
1802 removed STATIC_MEMFUNCP argument.
1803 (value_find_oload_method_list): Likewise.
1805 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1807 From Nicholas Duffek:
1808 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1809 target_new_objfile_hook.
1811 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1813 From Nicholas Duffek:
1814 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1817 2002-07-12 Andrew Cagney <cagney@redhat.com>
1819 * MAINTAINERS: Mention --enable-sim-build-warnings.
1820 (m68hc11-elf): Disable sim build warnings.
1821 (m32r-elf): Mark as broken obsolete candidate.
1822 (x86_64-linux-gnu): Mark as buildable with -Werror.
1823 (arm-elf): Change -w to ``,'' which enables warnings but not
1826 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1828 * bcache.h: Update copyright.
1829 (struct bstring, struct bcache): Move definition to "bcache.c".
1830 Replaced by opaque declaration.
1831 (bcache_xfree): Replace free_bcache.
1832 (bcache_xmalloc, bcache_memory_used): Declare.
1834 * bcache.c: Update copyright.
1835 (struct bstring, struct bcache): Moved to here from "bcache.h".
1837 (bcache_xmalloc, bcache_memory_used): New functions.
1838 (bcache_xfree): Replace function free_bcache.
1840 * Makefile.in (objfiles.o): Add $(bcache_h).
1841 (objfiles_h): Remove $(bcache_h).
1842 (symfile.o): Add $(bcache_h).
1844 * symmisc.c: Update copyright.
1845 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1846 (print_objfile_statistics): Use bcache_memory_used.
1848 * symfile.c: Include "bcache.h".
1849 (reread_symbols): Use bcache_xfree.
1850 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1851 (add_psymbol_to_list): Pass psymbol_cache by value.
1852 (add_psymbol_with_dem_name_to_list): Ditto.
1854 * objfiles.h: Update copyright.
1855 (struct bcache): Declare opaque. Do not include "bcache.h".
1856 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1858 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1860 * objfiles.c: Include "bcache.h". Update copyright.
1861 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1863 (free_objfile): Use bcache_xfree.
1865 2002-07-11 Grace Sainsbury <graces@redhat.com>
1867 * monitor.c (monitor_fetch_register): Make name a constant.
1868 (monitor_store_register): Same.
1870 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1872 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1873 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1874 (finish_block) For non-function blocks, hash the symbol table. For
1875 function blocks, mark the symbol table as unhashed.
1876 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1877 (msymbol_hash_iw): Likewise.
1878 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1880 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1881 (lookup_minimal_symbol): Likewise for both.
1882 * symtab.h (struct block): Add `hashtable' flag. Comment the
1884 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1885 (ALL_BLOCK_SYMBOLS): Update.
1886 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1887 (struct symbol): Add `hash_next' pointer.
1888 * symtab.c (lookup_block_symbol): Search using the hash table when
1890 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1891 (search_symbols, find_addr_symbol): Likewise.
1893 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1894 (read_dst_symtab): Likewise.
1895 * jv-lang.c (get_java_class_symtab): Likewise.
1896 * mdebugread.c: Include "gdb_assert.h".
1897 (shrink_block): Assert that the block being modified is not hashed.
1898 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1899 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1901 (dump_symtab): Recognize hashed blocks.
1902 * printcmd.c (print_frame_args): Assert that function blocks do not
1903 have hashed symbol tables.
1904 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1905 (fill_in_ada_prototype, debug_print_block): Likewise.
1906 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1908 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1910 * stack.c (print_frame): Use result of frame_address_in_block()
1911 instead of fi->pc when evaluating symbols.
1912 (backtrace_command_1): Ditto.
1914 2002-07-11 Andrew Cagney <cagney@redhat.com>
1916 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1919 * arm-tdep.c (arm_register_name): Make return type constant.
1921 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1923 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1925 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1926 * s390-tdep.c (s390_fp_regnum): Ditto.
1927 (s390_read_fp): Ditto.
1928 (s390_pop_frame): Ditto.
1929 (_initialize_s390_tdep): Ditto.
1930 * remote.c (get_remote_state): Ditto.
1931 * procfs.c (mappingflags): Ditto.
1932 * memattr.c (_initialize_mem): Ditto.
1933 * mcore-tdep.c (mcore_pop_frame): Ditto.
1934 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1935 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1936 * language.c (set_case_str): Ditto.
1937 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1938 * frv-tdep.c (new_variant): Ditto.
1939 (frv_stopped_data_address): Ditto.
1940 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1941 (context_alloc): Ditto.
1942 (frame_state_alloc): Ditto.
1943 (unwind_tmp_obstack_init): Ditto.
1944 (unwind_tmp_obstack_free): Ditto.
1945 (cfi_read_fp): Ditto.
1946 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1947 (cris_pop_frame): Ditto.
1948 * c-lang.c (scanning_macro_expansion): Ditto.
1949 (finished_macro_expansion): Ditto.
1950 (c_preprocess_and_parse): Ditto.
1951 * gdbarch.sh: Ditto.
1952 * gdbarch.h, gdbarch.c: Regenerate.
1953 * config/mn10200/tm-mn10200.h: Adjust indentation.
1954 * target.c: Adjust indentation.
1955 * symtab.h: Adjust indentation.
1956 * stabsread.h: Adjust indentation.
1957 * remote-es.c: Adjust indentation.
1958 * os9kread.c: Adjust indentation.
1960 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1962 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1963 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1965 2002-07-10 Grace Sainsbury <graces@redhat.com>
1967 * NEWS: Mention m68k, mcore multi-arching.
1968 * MAINTAINERS: Change status of m68k, mcore to reflect
1971 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1973 * valops.c (find_overload_match): Free oload_syms.
1975 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1977 Define HAVE_SYS_PROC_H if sys/proc.h exists
1978 * configure.in: Add check for sys/proc.h
1979 * config.in: Regenerate.
1980 * configure: Regenerate.
1982 2002-07-09 Grace Sainsbury <graces@redhat.com>
1984 * config/m68k/tm-m68k.h: Remove macros wrapped in
1985 #if !GDB_MULTI_ARCH.
1987 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1989 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1990 (perror_with_name, remote_close, remote_open, expect, play): Static.
1992 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1994 * config.in, configure: Regenerate.
1996 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1998 * dwarf2cfi.c: Include "gcore.h".
1999 (execute_stack_op): Fix implementation of the
2000 DW_OP_deref and DW_OP_deref_size operators by letting do their
2001 lookup in the target.
2003 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2005 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2006 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2009 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2011 Fix PR gdb/595, gdb/602
2012 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2013 Don't call value_cast, just read the vtable pointer; update comments
2016 2002-07-05 Grace Sainsbury <graces@redhat.com>
2018 * config/mcore/tm-mcore.h: Remove file.
2019 * config/mcore/mcore.mt: Remove definition of TM_FILE
2020 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2022 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2024 * i386bsd-tdep.c: Include "gdb_string.h".
2026 2002-07-04 Grace Sainsbury <graces@redhat.com>
2028 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2029 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2031 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2032 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2033 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2034 (RETVAL_REGNUM): Move macros from tm-mcore.h
2035 (mcore_reg_struct_has_addr): New function.
2036 (mcore_gdbarch_init): Added initializations for the macros removed
2039 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2041 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2042 traditonal string branding within the ELF header.
2044 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2046 * symtab.c (remove_params): New function.
2047 (make_symbol_overload_list): Use it instead of cplus_demangle.
2048 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2050 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2052 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2054 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2056 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2057 and tdep->sigtramp_end.
2058 * i386obsd-nat.c: New file.
2059 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2061 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2062 Don't call get_current_frame().
2064 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2066 * i386-nat.c (child_post_startup_inferior): New function
2067 calling i386_cleanup_dregs if
2068 I386_USE_GENERIC_WATCHPOINTS is defined.
2069 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2070 conditional to acknowledge that i386-nat.c has its
2071 own child_post_startup_inferior function.
2073 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2075 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2076 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2077 instead of MAX_REGISTER_RAW_SIZE.
2078 (i386_extract_return_value, i386_extract_struct_value_address):
2079 Convert to use regcache.
2080 (i386_gdbarch_init): Set max_register_raw_size and
2081 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2082 Set extract_return_value and extract_struct_value_address instead
2083 of their deprecated variants.
2085 Convert i386 target to generic dummy frames.
2086 * i386-tdep.c: Include "symfile.h".
2087 (i386_frameless_signal_p): Consider a function to be frameless if
2088 the pc points at the first instruction of the function.
2089 (i386_frame_chain): Handle (generic) call dummies.
2090 (i386_frame_saved_pc): Likewise.
2091 (i386_frame_init_saved_regs): Remove code dealing with call
2092 dummies on the stack.
2093 (i386_push_dummy_frame): Removed.
2094 (i386_call_dummy_words): Removed.
2095 (i386_fix_call_dummy): Removed.
2096 (i386_push_return_address): New function.
2097 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2098 parameter, and don't call get_current_frame.
2099 (i386_pop_frame): New function.
2100 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2101 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2102 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2103 call_dummy_length to 0, set call_dummy_words to NULL, set
2104 sizeof_call_dummy_words to 0, set fix_call_dummy to
2105 generic_fix_call_dummy, set pc_in_call_dummy to
2106 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2107 generic_push_dummy_frame, set push_return_address to
2108 i386_push_return_address and set frame_chain_valid to
2109 generic_file_frame_chain_valid.
2111 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2113 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2114 byte offsets instead of an array of indexes.
2115 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2117 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2119 * gdbarch.sh (struct regcache): Add opaque declaration.
2120 (EXTRACT_RETURN_VALUE): New architecture method.
2121 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2122 * gdbarch.h, gdbarch.c: Regenerate.
2123 * arch-utils.c (legacy_extract_return_value): New function.
2124 * arch-utils.h (legacy_extract_return_value): Declare.
2125 * values.c (value_being_returned): Re-enable code handling
2126 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2127 deprecated_grub_regcache_for_registers call to block handling
2128 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2129 (EXTRACT_RETURN_VALUE): Do not define.
2131 2002-07-03 Grace Sainsbury <graces@redhat.com>
2133 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2134 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2135 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2136 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2137 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2138 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2139 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2140 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2141 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2142 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2143 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2144 argument so the function fits the prototype in the architecture
2146 (mcore_pop_frame): Remove argument so the function fits the
2147 prototype. Use get_current_frame instead of the argument.
2148 (mcore_push_arguments): Change type of struct_return so the
2149 function can be used in the architecture vector.
2150 (mcore_store_struct_return): Add.
2151 (mcore_frame_init_saved_regs): Add.
2152 (mcore_gdbarch_init): Add function calls to replace the macros
2153 removed from tm-mcore.h
2155 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2157 * infcmd.c (print_return_value): Remove compatibility code calling
2158 deprecated_grub_regcache_for_registers.
2160 * values.c: Include "regcache.h".
2161 (value_being_returned): Update. Use
2162 deprecated_grub_regcache_for_registers to extract the register
2164 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2165 ``struct regcache''.
2166 * Makefile.in (values.o): Add dependency on $(regcache_h).
2168 * inferior.h (run_stack_dummy): Change type of second parameter to
2169 a ``struct regcache''.
2170 * valops.c (hand_function_call): Change type of retbuf to ``struct
2171 regcache''. Allocate using regcache_xmalloc, clean using
2172 make_cleanup_regcache_xfree.
2173 * infcmd.c (run_stack_dummy): Update. Use
2174 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2176 * regcache.c (do_regcache_xfree): New function.
2177 (make_cleanup_regcache_xfree): New function.
2178 * regcache.h (make_cleanup_regcache_xfree): Declare.
2180 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2182 * event-top.c (command_line_handler): Don't read past
2183 beginning of buffer.
2185 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2187 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2189 (varobj_create): Store frame_id for root.
2190 (varobj_gen_name): Use xasprintf.
2191 (varobj_update): Save and restore frame using get_frame_id() and
2193 (create_child): Use xasprintf.
2194 (new_root_variable): Initialize frame_id.
2195 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2196 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2197 to prevent memory leak.
2199 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2201 * valops.c (hand_function_call): Move declaration of retbuf to
2202 start of function, allocate using malloc, add a cleanup but before
2203 the inf_status cleanup, cleanup the buffer. Rename local variable
2204 old_chain to inf_status_cleanup.
2206 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2208 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2210 * cli/cli-decode.c (cmd_func_p): New function.
2211 (cmd_func): New function.
2213 * command.h: Add cmd_func() and cmd_func_p().
2215 2002-07-03 Grace Sainsbury <graces@redhat.com>
2217 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2218 (REGISTER_SIZE): Remove.
2219 (MAX_REGISTER_RAW_SIZE): Remove.
2220 (REGISTER_VIRTUAL_TYPE): Remove.
2221 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2222 (REGISTER_NAME): Remove.
2223 (USE_GENERIC_DUMMY_FRAMES): Remove.
2224 (CALL_DUMMY): Remove.
2225 (CALL_DUMMY_START_OFFSET): Remove.
2226 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2227 (CALL_DUMMY_LOCATION): Remove.
2228 (FIX_CALL_DUMMY): Remove.
2229 (CALL_DUMMY_ADDRESS): Remove.
2230 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2231 (SAVE_DUMMY_FRAME_TOS): Remove.
2232 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2233 (mcore_register_virtual_type): New function.
2234 (mcore_register_byte): New function.
2235 (mcore_register_size): New function.
2236 (mcore_register_name): New function.
2237 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2238 macros removed from tm-mcore.h.
2239 (mcore_dump_tdep): Add.
2240 (_initialize_mcore_tdep): Add gdbarch_register call.
2242 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2244 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2245 frameless_look_for_prologue, such that we actually call this
2248 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2250 * frame.h (frame_address_in_block): New function.
2252 * blockframe.c (frame_address_in_block): New function extracted
2253 from get_frame_block().
2254 (get_frame_block): Use frame_address_in_block().
2255 (block_innermost_frame): Use frame_address_in_block() to match
2256 the frame pc address against the block boundaries rather than
2257 the frame pc directly. This prevents a failure when a frame pc
2258 is actually a return-address pointing immediately after the end
2261 2002-07-02 Grace Sainsbury <graces@redhat.com>
2263 * MAINTAINERS: Add self under write after approval.
2265 2002-07-02 Grace Sainsbury <graces@redhat.com>
2267 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2268 used in architecture vector. The default is
2269 m68k_local_breakpoint_from_pc.
2270 (m68k_local_breakpoint_from_pc): Add.
2271 (enum): Add register numbers from tm-m68k.h.
2272 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2274 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2275 GDB_MULTI_ARCH_PARTIAL.
2276 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2277 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2279 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2280 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2281 to enum in m68k-tdep.c
2283 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2285 * solib-osf.c (open_map): Compute the list of shared libraries
2286 loaded by the inferior, rather than the list of libraries loaded
2287 by GDB itself. Otherwise, GDB ends up reading the symbols from
2288 the wrong shared libraries...
2290 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2292 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2293 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2295 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2297 (FRAMELESS_SIGNAL): Remove function.
2298 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2299 i386_linux_saved_pc_after_call): Removed.
2300 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2301 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2302 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2304 * i386-tdep.c (i386_frameless_signal_p): New function.
2305 (i386_frame_chain): Deal with frameless signals.
2306 (i386_sigtramp_saved_sp): New function.
2307 (i386_frame_saved_pc): Deal with frameless signals.
2308 (i386_saved_pc_after_call): Make sure the correct value is
2309 returned just after entry into a sigtramp.
2310 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2311 i386fbsd4_sc_sp_offset): New variables.
2312 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2313 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2314 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2315 similiar to what we already did for sc_pc_offset.
2316 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2319 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2321 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2323 * config/i386/tm-x86-64linux.h: New.
2324 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2326 * config/i386/nm-x86-64.h: Rename to ...
2327 * config/i386/nm-x86-64linux.h: ... this one.
2328 * config/i386/x86-64linux.mh: Reflect the above change.
2330 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2332 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2333 with sigcontext_addr. Add sc_sp_offset.
2334 (i386bsd_sigtramp_saved_pc): Remove prototype.
2335 (i386bsd_sicontext_addr): Add prototype.
2336 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2337 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2338 (i386_svr4_sigtramp_saved_pc): Removed.
2339 (i386_svr4_sigcontext_addr): New function.
2340 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2341 Initialize tdep->sigcontext_addr instead. Initialize
2342 tdep->sc_pc_offset and tdep->sc_sp_offset.
2343 (i386_gdbarch_init): Likewise.
2344 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2346 (i386bsd_sigtramp_saved_pc): Remove function.
2347 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2348 Initialize tdep->sigcontext_addr instead. Initialize
2350 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2351 of tdep->sigtramp_saved_pc.
2352 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2353 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2356 * i386-tdep.c (i386_frameless_function_invocation,
2357 i386_frame_num_args, i386_frame_init_saved_regs,
2358 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2359 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2360 i386_extract_return_value, i386_store_return_value,
2361 i386_extract_struct_value_address, i386_register_virtual_type,
2362 i386_register_convertible, i386_register_convert_to_virtual,
2363 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2364 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2367 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2369 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2371 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2372 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2373 this macro. Include "value.h".
2375 2002-06-30 Aidan Skinner <aidan@velvet.net>
2377 * ada-exp.tab.c: remove as it's a generated file
2378 * ada-lex.c: remove as it's a generated file
2380 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2382 * config/i386/tm-i386.h (struct frame_info, struct
2383 frame_saved_regs, struct value, struct type): Remove forward
2386 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2387 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2388 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2389 (FILL_FPXREGSET): Define.
2391 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2393 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2394 i[3456]86-*-netbsd* case.
2395 * config/i386/tm-obsd.h: Removed.
2396 * config/i386/obsd.mt: Removed.
2397 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2399 (MH_CFLAGS): Add -DYYDEBUG=0.
2401 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2402 i386nbsd_sc_pc_offset on OpenBSD too.
2404 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2405 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2406 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2408 * i386bsd-tdep.c: Include "arch-utils.h".
2409 (i386bsd_aout_in_solib_call_trampoline): New function.
2410 (i386bsd_init_abi): Set in_solib_call_trampoline to
2411 i386bsd_aout_in_solib_call_trampoline.
2412 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2413 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2415 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2417 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2418 (struct obstack, struct bcache): Add opaque declarations.
2419 * Makefile.in (macrotab_h): Update
2421 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2423 * blockframe.c (generic_find_dummy_frame): Change return type to
2424 ``struct regcache''.
2425 (struct dummy_frame): Replace field ``registers'' with regcache, a
2426 struct regcache object.
2427 (generic_find_dummy_frame): Update.
2428 (generic_push_dummy_frame): Update. Use regcache_xfree,
2429 regcache_xmalloc and regcache_cpy.
2430 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2432 (deprecated_generic_find_dummy_frame): Update.
2433 (generic_read_register_dummy): Update. Use
2434 regcache_read_as_address.
2435 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2436 (generic_get_saved_register): Update. Use regcache_read.
2438 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2440 * Makefile.in (objfiles_h): Add $(bcache_h).
2441 * objfiles.h: Include "bcache.h".
2443 * Makefile.in (symtab_h): Remove $(bcache_h).
2444 * symtab.h: Do not include "bcache.h".
2446 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2448 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2449 generic_func_frame_chain_valid.
2451 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2453 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2454 * config/i386/tm-fbsd.h: Likewise.
2456 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2458 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2459 generic_unwind_get_saved_register.
2461 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2463 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2464 * regcache.c (supply_register): Add missing argument to
2465 register_buffer call.
2467 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2469 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2470 Solaris /bin/grep does not not like it. From Peter Schauer.
2472 2002-06-26 Tom Tromey <tromey@redhat.com>
2474 * command.h (add_setshow_cmd): Declare.
2475 (add_setshow_cmd_full): Declare.
2476 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2477 returns void. Use add_setshow_cmd_full.
2478 (add_setshow_cmd_full): New function.
2479 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2480 (add_setshow_boolean_cmd): Likewise.
2482 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2484 * config/vax/tm-vax.h: Protect from multiple inclusion.
2485 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2486 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2487 * config/vax/tm-vaxbsd.h: ...here. New file.
2488 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2490 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2492 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2493 (BELIEVE_PCC_PROMOTION): Remove.
2494 (AP_REGNUM): Move to...
2495 * config/vax/nm-vax.h: ...here.
2496 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2497 (vax_breakpoint_from_pc): New function.
2498 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2499 and gdbarch_believe_pcc_promotion.
2501 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2503 * Makefile.in (vax_tdep_h): Define.
2504 (vax-tdep.o): Use $(vax_tdep_h).
2505 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2506 (vax_dump_tdep): New function.
2507 (_initialize_vax_tdep): Register vax_dump_tdep.
2508 * vax-tdep.h: Include osabi.h.
2509 (struct gdbarch_tdep): New.
2511 2002-06-26 Andrew Cagney <cagney@redhat.com>
2513 * frame.h (deprecated_generic_find_dummy_frame): Rename
2514 generic_find_dummy_frame.
2515 * blockframe.c (generic_find_dummy_frame): Make static.
2516 (deprecated_generic_find_dummy_frame): New function.
2517 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2518 generic_find_dummy_frame with deprecated_find_dummy_frame.
2519 (sh64_nofp_frame_init_saved_regs): Ditto.
2520 (sh_fp_frame_init_saved_regs): Ditto.
2521 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2522 (s390_frame_chain): Ditto.
2523 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2525 2002-06-26 Grace Sainsbury <graces@redhat.com>
2527 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2528 gdbarch vector are at the top.
2530 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2531 (FRAME_ARGS_ADDRESS): Remove.
2532 (FRAME_LOCALS_ADDRESS): Remove.
2533 (FRAME_NUM_ARGS): Remove.
2534 (FRAME_ARGS_SKIP): Remove.
2535 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2536 (m68k_gdbarch_init): Add gdbarch initializations for macros
2537 undefined in tm-m68k.h
2539 2002-06-26 Grace Sainsbury <graces@redhat.com>
2541 * monitor.h: Add the function regname to monitor_ops
2542 structure. This way NUM_REGS does not have to be a constant.
2543 * monitor.c (monitor_fetch_register): Added support for regname
2544 function. The function is called if the array regnames is NULL.
2545 (monitor_store_register): Same.
2546 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2548 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2549 cpu32bug_cmds.regname to point to new function.
2550 * abug-rom.c (abug_regname): Same as above.
2551 (init_abug_cmds): Same.
2552 * dbug-rom.c (dbug_regname): Same as above.
2553 (init_dbug_cmds): Same.
2554 * remote-est.c (est_regname): Same.
2555 (init_est_cmds): Same.
2556 * rom68k-rom.c (rom68k_regname): Same.
2557 (init_rom68k_cmds): Same.
2559 2002-06-25 Tom Tromey <tromey@redhat.com>
2561 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2563 2002-06-25 Andrew Cagney <cagney@redhat.com>
2565 * infrun.c (stop_registers): Change variable's type to ``struct
2567 (xmalloc_inferior_status): Delete function.
2568 (free_inferior_status): Delete function.
2569 (normal_stop): Use regcache_cpy.
2570 (struct inferior_status): Change type of fields ``stop_registers''
2571 and ``registers'' to ``struct regcache''.
2572 (write_inferior_status_register): Use regcache_write.
2573 (save_inferior_status): Instead of calling
2574 xmalloc_inferior_status, allocate the inf_status buffer directly.
2575 Use regcache_dup_no_passthrough and regcache_dup to save the
2577 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2578 Replace the stop_registers regcache instead of overriding it. Use
2579 regcache_xfree. Instead of calling free_inferior_status, xfree
2580 the buffer directly.
2581 (discard_inferior_status): Use regcache_xfree. Instead of calling
2582 free_inferior_status, xfree the buffer directly.
2583 (build_infrun): Use regcache_xmalloc.
2584 (_initialize_infrun): Delete redundant call to build_infrun.
2586 * Makefile.in (infcmd.o): Add $(regcache_h).
2588 * infcmd.c: Include "regcache.h".
2589 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2590 obtain the address of `stop_registers' register buffer.
2591 (print_return_value): Ditto.
2593 * inferior.h (struct regcache): Add opaque declaration.
2594 (stop_registers): Change variable's declared type to ``struct
2597 2002-06-24 Tom Tromey <tromey@redhat.com>
2599 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2600 * target.c (initialize_targets): Fixed typo in
2601 trust-readonly-sections `show' documentation.
2603 * main.c: Marked all strings with _().
2605 2002-06-24 Don Howard <dhoward@redhat.com>
2607 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2608 that means max CORE_ADDR+1.
2609 (lookup_mem_region): Ditto.
2610 (mem_info_command): Ditto.
2612 2002-06-24 Grace Sainsbury <graces@redhat.com>
2614 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2615 (REGISTER_BYTES_OK): Remove.
2616 (REGISTER_BYTES): Remove.
2617 (STORE_STRUCT_RETURN): Remove.
2618 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2619 (STORE_RETURN_VALUE): Remove.
2620 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2621 (FRAME_CHAIN): Remove.
2622 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2623 (FRAME_SAVED_PC): Remove.
2624 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2625 (m68k_store_struct_return): Add.
2626 (m68k_deprecated_extract_return_value): Add.
2627 (m68k_deprecated_extract_struct_value_address): Add.
2628 (m68k_store_return_value): Add.
2629 (m68k_frame_chain): Add.
2630 (m68k_frameless_function_invocation): Add.
2631 (m68k_frame_saved_pc): Add.
2632 (m68k_gdbarch_init): added set_gdbarch calls for new
2633 functions and deleted macros.
2635 2002-06-23 Tom Tromey <tromey@redhat.com>
2637 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2638 (ALLDEPFILES): Likewise.
2639 (udiheaders): Removed.
2640 (udip2soc.o): Likewise.
2641 (udi2go32.o): Likewise.
2643 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2645 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2647 * infrun.c (_initialize_infrun): Delete unnecessary call to
2650 * regcache.h: Update comments describing the regcache_cpy family
2652 (regcache_save, regcache_restore): Delete declaration.
2653 (regcache_save_no_passthrough): Delete declaration.
2654 (regcache_restore_no_passthrough): Delete declaration.
2655 * regcache.c (regcache_save): Delete function.
2656 (regcache_save_no_passthrough): Delete function.
2657 (regcache_restore): Delete function.
2658 (regcache_restore_no_passthrough): Delete function.
2660 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2662 * config/m68k/tm-m68k.h: Fix typo.
2663 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2664 (m68k_frame_init_saved_regs): Declare.
2666 2002-06-21 Jim Blandy <jimb@redhat.com>
2668 Remove some vestiges of Harris 88k support.
2669 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2670 register numbering quirk.
2671 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2672 odd symbols occurring in Harris 88k ELF targets.
2674 2002-06-21 Tom Tromey <tromey@redhat.com>
2676 * gdb_locale.h: New file.
2677 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2678 (defs_h): Added gdb_locale.h.
2679 * configure, config.in: Rebuilt.
2680 * configure.in (PACKAGE): Define.
2681 * defs.h: Include gdb_locale.h.
2682 * main.c (captured_main): Call setlocale, bindtextdomain,
2685 2002-06-21 Dave Brolley <brolley@redhat.com>
2687 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2688 * config/frv/frv.mt: New file.
2689 * config/frv/tm-frv.h: New file.
2690 * configure.tgt: Support frv-*-*.
2691 * Makefile.in (frv-tdep.o): New target.
2692 * frv-tdep.c: New file.
2693 * NEWS: Mention frv.
2695 2002-06-21 Dave Brolley <brolley@redhat.com>
2697 * MAINTAINERS: Add self to "Write After Approval" list.
2699 2002-06-21 Grace Sainsbury <graces@redhat.com>
2701 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2702 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2703 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2704 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2705 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2707 * m68k-tdep.c: Include arch-utils.h
2708 (m68k_register_raw_size): Add.
2709 (m68k_register_virtual_size): Add.
2710 (m68k_register_virtual_type): Add.
2711 (m68k_register_name): Add.
2712 (m68k_stack_align): Add.
2713 (m68k_register_byte): Add.
2714 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2717 2002-06-21 Grace Sainsbury <graces@redhat.com>
2719 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2720 m68k_find_saved_regs.
2721 (m68k_pop_frame): Removed saved_regs structure, and replaced
2722 references to it with frame->saved_regs.
2723 (m68k_gdbarch_init): Added function calls to initialize the
2725 (m68k_fix_call_dummy): Add.
2726 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2727 (CALL_DUMMY): Remove.
2728 (CALL_DUMMY_LENGTH): Remove.
2729 (CALL_DUMMY_START_OFFSET): Remove.
2730 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2731 (FIX_CALL_DUMMY): Remove.
2732 (PUSH_DUMMY_FRAME): Remove.
2733 (POP_FRAME): Remove.
2735 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2737 * parse.c (parse_fprintf): New function used to avoid calls to
2738 fprintf in bison parser generated debug code.
2739 * parser-defs.h: Declaration of new parse_fprintf function.
2740 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2741 Set YYDEBUG to 1 by default.
2742 Set YYFPRINTF as parse_fprintf.
2744 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2746 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2748 (pointer_encoding, enum ptr_encoding): New.
2749 (execute_cfa_program): Take care about pointer encoding.
2750 (dwarf2_build_frame_info): Only call parse_frame_info for
2751 .debug_frame and .eh_frame.
2752 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2753 fixed augmentation handling, added relative addressing,
2754 ignore duplicate FDEs. Added comments.
2755 * dwarf2cfi.c: Reindented.
2757 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2759 * event-top.c (command_handler): Don't use space_at_cmd_start
2760 unless there is sbrk() on the host. Assign time and space data
2761 to union fields of the appropriate length.
2763 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2765 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2766 x86_64_register_name. Return type changed to 'const char *'.
2767 (x86_64_register_name2nr): Rename to x86_64_register_number.
2768 (x86_64_gdbarch_init): Update to reflect the change.
2769 * x86-64-tdep.h: Ditto.
2770 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2771 (supply_fpregset): Ditto.
2773 2002-06-19 Andrew Cagney <cagney@redhat.com>
2775 * regcache.h: Update copyright.
2776 (struct regcache, struct gdbarch): Add opaque declarations.
2777 (current_regcache): Declare global variable.
2778 (regcache_read, regcache_write): Add gdbarch parameter.
2779 (regcache_save, regcache_save_no_passthrough)
2780 (regcache_restore, regcache_restore_no_passthrough)
2781 (regcache_dup, regcache_dup_no_passthrough)
2782 (regcache_cpy, regcache_cpy_no_passthrough)
2783 (deprecated_grub_regcache_for_registers)
2784 (deprecated_grub_regcache_for_register_valid)
2785 (regcache_valid_p): Add function declarations.
2787 * regcache.c: Update copyright.
2788 (regcache_descr_handle): New global variable.
2789 (struct regcache_descr): Define.
2790 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2791 (regcache_descr, xfree_regcache_descr): New functions.
2792 (struct regcache): Define.
2793 (regcache_xmalloc, regcache_xfree): New functions.
2794 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2795 (regcache_dup, regcache_dup_no_passthrough): New functions.
2796 (regcache_valid_p, regcache_read_as_address): New functions.
2797 (deprecated_grub_regcache_for_registers): New function.
2798 (deprecated_grub_regcache_for_register_valid): New function.
2799 (current_regcache): New global variable.
2800 (register_buffer): Add regcache parameter. Update calls.
2801 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2802 (read_register_gen, write_register_gen): Update register_buffer
2803 call. Test for legacy_p instead of gdbarch_register_read_p or
2804 gdbarch_register_write_p.
2805 (regcache_collect): Update register_buffer call.
2806 (build_regcache): Rewrite. Use deprecated grub functions.
2807 (regcache_save, regcache_save_no_passthrough): New functions.
2808 (regcache_restore, regcache_restore_no_passthrough): New
2810 (_initialize_regcache): Create the regcache_data_handle. Swap
2811 current_regcache global variable.
2813 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2814 parameter to regcache_read and regcache_write calls.
2815 (sh4_register_read): Ditto.
2816 (sh64_pseudo_register_read): Ditto.
2817 (sh64_register_read): Ditto.
2818 (sh_pseudo_register_write): Ditto.
2819 (sh4_register_write): Ditto.
2820 (sh64_pseudo_register_write): Ditto.
2821 (sh64_register_write): Ditto.
2823 * defs.h (XCALLOC): Define.
2825 2002-06-19 Grace Sainsbury <graces@redhat.com>
2827 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2828 * m68k-tdep.c (m68k_gdbarch_init): Added.
2829 (m68k_dump_tdep): Added.
2831 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2833 * ada-lang.c (fill_in_ada_prototype): Update comment.
2835 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2837 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2839 (mips_abi_string, mips_abi_strings): New.
2840 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2841 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2842 tdep->mips_abi_string. Honor mips_abi_string. Default to
2843 O32 if no ABI is found.
2844 (mips_dump_tdep): Use mips_abi_strings.
2845 (mips_abi_update): New function.
2846 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2847 ``set mips abi'' and ``show mips abi''. Check the size of
2850 2002-06-19 Andrew Cagney <cagney@redhat.com>
2852 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2855 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2857 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2858 current frame using only the first stack size adjustment. All
2859 subsequent size adjustments are not considered to be part of
2860 the "static" part of the current frame.
2861 Compute the address of the saved registers relative to the
2862 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2863 in use in this frame.
2865 2002-06-18 Don Howard <dhoward@redhat.com>
2867 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2868 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2869 suggesting this solution.
2871 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2873 * config/romp/xm-rtbsd.h: Delete file.
2874 * config/romp/rtbsd.mh: Delete file.
2876 2002-06-18 Keith Seitz <keiths@redhat.com>
2878 * breakpoint.c (condition_command): Post breakpoint_modify
2879 when a condition is added to an existing breakpoint.
2880 (commands_command): Likewise for commands.
2881 (set_ignore_count): Likewise for ignore counts.
2882 If no tty, do not simply return, still need to send event
2884 (ignore_command): Only print a newline if the command came
2886 Don't call breakpoints_changed, since this is now properly
2887 handled by set_ignore_count.
2889 2002-06-18 Andrew Cagney <cagney@redhat.com>
2891 * MAINTAINERS: Note that cris-elf target can be compiled with
2893 * cris-tdep.c (cris_register_name): Make return type constant.
2894 (cris_breakpoint_from_pc): Ditto.
2896 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2898 * frame.h (struct frame_info): Change type of context to
2901 2002-06-17 Andrew Cagney <cagney@redhat.com>
2903 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2905 * gdbarch.h, gdbarch.c: Regenerate.
2906 * config/mips/tm-mips.h (mips_register_name): Update.
2907 * i386-tdep.h (i386_register_name): Update.
2908 * mips-tdep.c (mips_register_name): Update
2909 * alpha-tdep.c (alpha_register_name): Update.
2910 * arch-utils.c (legacy_register_name): Update.
2911 * arch-utils.h (legacy_register_name): Update.
2912 * avr-tdep.c (avr_register_name): Update.
2913 * ia64-tdep.c (ia64_register_name): Update.
2914 * i386-tdep.c (i386_register_name): Update.
2915 * sparc-tdep.c (sparc32_register_name): Update.
2916 (sparc64_register_name): Update.
2917 (sparclite_register_name): Update.
2918 (sparclet_register_name): Update.
2919 * sh-tdep.c (sh_generic_register_name): Update.
2920 (sh_sh_register_name): Update.
2921 (sh_sh3_register_name): Update.
2922 (sh_sh3e_register_name): Update.
2923 (sh_sh_dsp_register_name): Update.
2924 (sh_sh3_dsp_register_name): Update.
2925 (sh_sh4_register_name): Update.
2926 (sh_sh64_register_name): Update.
2927 * s390-tdep.c (s390_register_name): Update.
2928 * rs6000-tdep.c (rs6000_register_name): Update.
2929 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2930 (ns32k_register_name_32382): Update.
2931 * d10v-tdep.c (d10v_ts2_register_name): Update.
2932 (d10v_ts3_register_name): Update.
2933 * xstormy16-tdep.c (xstormy16_register_name): Update.
2934 * vax-tdep.c (vax_register_name): Update.
2935 * v850-tdep.c (v850_register_name): Update.
2936 * m68hc11-tdep.c (m68hc11_register_name): Update.
2937 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2938 (am33_register_name): Update.
2940 2002-06-17 Grace Sainsbury <graces@redhat.com>
2942 * m68k-tdep.c: Reindented.
2944 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2946 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2947 list of predefined types.
2949 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2951 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2952 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2953 REGISTER_CONVERT_TO_RAW): Remove defines.
2954 (i386_register_virtual_type, i386_register_convertible,
2955 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2957 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2958 macros mentioned above.
2960 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2961 (i386lynx_saved_pc_after_call): Remove prototype.
2962 * i386ly-tdep.c: Include "i386-tdep.h".
2963 (i386lynx_saved_pc_after_call): Make static. Use
2964 read_memory_nobpt instead of read_memory. Use
2965 read_memory_unsigned_integer instead of read_memory_integer.
2966 (i386lynx_init_abi): New function.
2967 (i386lynx_coff_osabi_sniffer): New function.
2968 (_initialize_i386bsd_tdep): New function.
2970 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2971 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2972 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2973 (i386_fix_call_dummy): Remove prototype.
2974 * i386-tdep.c (i386_call_dummy_words): New variable.
2975 (i386_gdbarch_init): Adjust for removal of the
2976 macros mentioned above.
2978 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2980 * command.h (add_setshow_auto_boolean_cmd): Replace
2981 add_set_auto_boolean_cmd.
2982 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2983 add_set_auto_boolean_cmd.
2984 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2985 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2986 mask-address'' command.
2987 (show_mask_address): Add cmd parameter.
2988 * remote.c (add_packet_config_cmd): Update. Change type of
2989 set_func and show_func to cmd_sfunc_ftype.
2990 (_initialize_remote): Update `set remote Z-packet'
2991 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2992 (show_remote_protocol_e_packet_cmd): Ditto.
2993 (show_remote_protocol_E_packet_cmd): Ditto.
2994 (show_remote_protocol_P_packet_cmd): Ditto.
2995 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2996 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2997 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2998 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2999 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3000 (show_remote_protocol_Z_packet_cmd): Ditto.
3001 (show_remote_protocol_binary_download_cmd): Ditto.
3002 (show_remote_cmd): Pass NULL to all of above.
3004 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3006 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3007 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3008 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3009 POP_FRAME): Remove defines.
3010 (i386_push_arguments, i386_store_struct_return,
3011 i386_extract_return_value, i386_store_return_value,
3012 i386_extract_struct_value_address, i386_push_dummy_frame,
3013 i386_pop_frame): Renove prototypes.
3014 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3015 macros mentioned above.
3017 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3019 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3020 add_set_boolean_cmd.
3021 (add_setshow_cmd): New function.
3022 * command.h (add_setshow_boolean_cmd): Replace
3023 add_set_boolean_cmd.
3024 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3025 and ``set rdiromatzero''.
3026 * maint.c (_initialize_maint_cmds): Update commented out code.
3027 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3028 * target.c (initialize_targets): Update `set
3029 trust-readonly-sections'.
3030 * remote.c (_initialize_remote): Update `set remotebreak'.
3032 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3034 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3035 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3036 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3037 fit into multi-arch framework.
3038 (i386_breakpoint_from_pc): New function.
3039 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3042 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3043 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3044 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3045 (i386_frameless_function_invocation, i386_frame_num_args,
3046 i386_frame_init_saved_regs): Remove prototypes.
3047 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3048 macros mentioned above.
3050 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3052 * cli/cli-decode.c (set_cmd_cfunc): Update.
3053 (set_cmd_sfunc): Update.
3054 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3055 (set_cmd_sfunc, set_cmd_cfunc): Update.
3056 * cli/cli-decode.h: Update.
3058 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3060 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3061 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3063 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3065 * defs.h (auto_boolean): Declare enum.
3066 * command.h (cmd_auto_boolean): Delete enum.
3067 * mips-tdep.c (mask_address_var): Update.
3068 (mips_mask_address_p): Update.
3069 (show_mask_address): Update.
3070 * remote.c (struct packet_config): Update.
3071 (update_packet_config): Update.
3072 (show_packet_config_cmd): Update.
3073 (packet_ok): Update.
3074 (add_packet_config_cmd): Update.
3075 (_initialize_remote):
3076 * command.h: Update.
3077 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3078 (do_setshow_command): Update.
3079 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3080 * cli/cli-decode.h: Update.
3082 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3084 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3085 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3086 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3087 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3088 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3089 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3091 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3092 list of DJGPP COFF targets.
3094 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3095 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3096 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3097 (FP0_REGNUM): Remove define.
3098 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3099 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3100 (i386_register_virtual_size): Remove protoype.
3101 * i386-tdep.c (i386_register_virtual_size): Removed.
3102 (i386_extract_return_value, i386_store_return_value): Use
3103 FP0_REGNUM instead of NUM_FREGS to determine whether the
3104 floating-point registers are available.
3105 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3106 Adjust for removal of macros mentioned above.
3108 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3110 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3112 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3114 (supply_gregset, fill_gregset): Remove use of register keyword and
3115 remove declaration for regmap. Use I386_NUM_GREGS instead of
3116 NUM_REGS and NUM_FREGS.
3117 (FPREGSET_FSAVE_OFFSET): Remove.
3118 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3119 NUM_FREGS to determine whether the floating-point registers are
3122 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3123 gnu_store_registers): Replace usage of NUM_GREGS with
3126 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3127 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3128 usage of NUM_GREGS with I386_NUM_GREGS.
3130 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3132 * i386bsd-nat.c: Include "i386-tdep.h".
3133 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3136 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3137 and associated comment. They no longer make any sense, since we
3138 don't use this file anymore on Linux.
3140 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3141 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3142 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3143 elements in these arrays.
3144 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3147 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3149 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3150 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3152 2002-06-14 Andrew Cagney <cagney@redhat.com>
3154 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3155 EXTRACT_RETURN_VALUE.
3156 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3157 EXTRACT_STRUCT_VALUE_ADDRESS.
3158 * gdbarch.h, gdbarch.c: Regenerate.
3160 * values.c (value_being_returned): Handle
3161 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3162 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3164 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3165 * arm-tdep.c (arm_gdbarch_init): Update.
3166 * avr-tdep.c (avr_gdbarch_init): Update.
3167 * cris-tdep.c (cris_gdbarch_init): Update.
3168 * d10v-tdep.c (d10v_gdbarch_init): Update.
3169 * ia64-tdep.c (ia64_gdbarch_init): Update.
3170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3172 * s390-tdep.c (s390_gdbarch_init): Update.
3173 * sh-tdep.c (sh_gdbarch_init): Update.
3174 * s390-tdep.c (s390_gdbarch_init): Update.
3175 * sparc-tdep.c (sparc_gdbarch_init): Update.
3176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3177 * v850-tdep.c (v850_gdbarch_init): Update.
3178 * vax-tdep.c (vax_gdbarch_init): Update.
3179 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3182 * config/arc/tm-arc.h: Update.
3183 * config/d30v/tm-d30v.h: Update.
3184 * config/fr30/tm-fr30.h: Update.
3185 * config/h8300/tm-h8300.h: Update.
3186 * config/h8500/tm-h8500.h: Update.
3187 * config/i386/tm-i386.h: Update.
3188 * config/i386/tm-ptx.h: Update.
3189 * config/i386/tm-symmetry.h: Update.
3190 * config/i960/tm-i960.h: Update.
3191 * config/m32r/tm-m32r.h: Update.
3192 * config/m68k/tm-delta68.h: Update.
3193 * config/m68k/tm-linux.h: Update.
3194 * config/m68k/tm-m68k.h: Update.
3195 * config/m88k/tm-m88k.h: Update.
3196 * config/mcore/tm-mcore.h: Update.
3197 * config/mips/tm-mips.h: Update.
3198 * config/mn10200/tm-mn10200.h: Update.
3199 * config/pa/tm-hppa.h: Update.
3200 * config/pa/tm-hppa64.h: Update.
3201 * config/sparc/tm-sp64.h: Update.
3202 * config/sparc/tm-sparc.h: Update.
3203 * config/sparc/tm-sparclet.h: Update.
3204 * config/z8k/tm-z8k.h: Update.
3206 2002-06-14 Andrew Cagney <cagney@redhat.com>
3208 * Makefile.in (i386_linux_tdep_h): Define.
3209 (i386_tdep_h, i387_tdep_h): Define.
3210 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3211 $(i386_tdep_h) and $(i387_tdep_h).
3212 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3214 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3216 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3217 Already covered by the default.
3219 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3220 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3221 (i386_gdbarch_init): Initialize long_double_format and long_double
3224 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3225 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3227 * config/i386/i386sol2.mh: ... here.
3228 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3229 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3230 (SIGCONTEXT_PC_OFFSET): Remove define.
3231 (IN_SIGTRAMP): Remove define.
3232 * i386-sol2-tdep.c: New file.
3234 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3235 * config/i386/tm-i386nw.h: Removed.
3237 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3238 USE_STRUCT_CONVENTION): Remove defines.
3239 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3240 (get_longjmp_target): Remove prototype.
3241 (IN_SIGTRAMP): Remove define.
3242 (i386bsd_in_sigtramp): Remove prototype.
3243 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3244 function. Update comment accordingly
3245 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3246 (FRAME_SAVED_PC): Remove define.
3247 (i386bsd_frame_saved_pc): Remove prototype.
3248 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3249 GET_LONGJMP_TARGET): Remove defines.
3250 (get_longjmp_target): Remove prototype.
3251 (IN_SIGTRAMP): Remove define.
3252 (i386bsd_in_sigtramp): Remove prototype.
3253 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3254 function. Update comment accordingly
3255 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3256 (FRAME_SAVED_PC): Remove define.
3257 (i386bsd_frame_saved_pc): Remove prototype.
3258 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3260 (USE_STRUCT_CONVENTION): Remove prototype.
3261 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3263 (_initialize_i386bsd_nat): Revise logic to determine some
3264 constants at compile time when compiling a native GDB. Warn if
3265 things don't match up with what we expect.
3266 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3268 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3269 to use date stored in `struct gdbarch_tdep'.
3270 (i386bsd_sigcontext_offset): Remove varaible.
3271 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3272 stored in `struct gdbarch_tdep'.
3273 (i386bsd_frame_saved_pc): Make static.
3274 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3275 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3276 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3277 i386fbsd4_sc_pc_offset): New variables.
3278 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3279 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3281 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3283 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3284 Modify the value of i386fbsd_sigtramp_start and
3285 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3286 i386fbsd_sigtramp_end.
3287 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3290 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3291 define to i386-linux-tdep.h.
3292 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3293 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3295 (i386_linux_register_name, i386_linux_register_byte,
3296 i386_linux_register_raw_size): Remove prototypes.
3297 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3298 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3299 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3300 TARGET_WRITE_PC): Remove defines.
3301 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3302 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3303 i386_linux_write_pc): Remove prototypes.
3304 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3305 (get_longjmp_target): Remove prototype.
3306 * i386-linux-tdep.h: New file.
3307 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3308 * i386-linux-tdep.c: Include "i386-tdep.h" and
3309 "i386-linux-tdep.h".
3310 (i386_linux_register_name, i386_linux_register_byte,
3311 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3312 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3314 (i386_linux_init_abi): New function.
3315 (_initialize_i386_linux_tdep): New function.
3317 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3318 (i386_saved_pc_after_call): Remove prototype.
3319 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3320 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3321 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3322 (i386_register_name, i386_stab_reg_to_regnum,
3323 i386_dwarf_reg_to_regnum): Remove prototypes.
3324 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3325 SIZEOF_SSE_REGS): Remove defines.
3326 (REGISTER_BYTES): Remove define.
3327 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3328 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3329 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3330 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3331 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3332 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3333 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3334 (get_longjmp_target): Remove prototype.
3335 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3336 (sigtramp_saved_pc): Remove define.
3337 (i386v4_sigtramp_saved_pc): Remove prototype.
3338 * config/i386/tm-go32.h (FRAME_CHAIN,
3339 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3340 (i386go32_frame_saved_pc): Remove prototype.
3341 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3342 (get_longjmp_target): Remove prototype.
3343 * i386-tdep.h: Include "osabi.h".
3344 (enum i386_abi): Removed.
3345 (enum struct_return): New enum.
3346 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3347 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3348 sc_pc_offset members.
3349 (i386_gdbarch_register_os_abi): Remove prototype.
3350 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3351 I386_SSE_NUM_REGS): New defines.
3352 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3353 I386_SSE_SIZEOF_REGS): New defines.
3354 (i386_register_name, i386_register_byte, i386_register_raw_size):
3356 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3357 (i386bsd_sigtramp_saved_pc): New prototype.
3358 * i386-tdep.c: Don't include "elf-bfd.h".
3359 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3360 i386_frame_chain, i386_saved_pc_after_call): Make static.
3361 (i386_frame_saved_pc): Rewrite to call architecture dependent
3362 function to deal with signal handlers. Make static.
3363 (i386go32_frame_saved_pc): Removed.
3364 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3366 (i386_get_longjmp_target): New function.
3367 (default_struct_convention, pcc_struct_convention,
3368 reg_struct_convention, valid_conventions, struct_convention): New
3370 (i386_use_struct_convention): New function.
3371 (i386v4_sigtramp_saved_pc): Renamed to
3372 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3373 (i386_pc_in_sigtramp): New function.
3374 (i386_abi_names): Removed.
3375 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3376 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3378 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3379 i386_gdbarch_register_os_abi): Removed.
3380 (struct i386_abi_handler): Removed.
3381 (i386_abi_handler_list): Removed.
3382 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3384 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3385 i386_nw_init_abi): New functions.
3386 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3387 Use set_gdbarch_xxx() calls instead of relying on macros for a
3389 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3390 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3391 Register the various architecture variants defined in this file.
3393 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3395 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3396 (struct main_type): Remove arg_types member. Update comments for
3398 (TYPE_ARG_TYPES): Remove.
3399 (TYPE_FN_FIELD_ARGS): Update.
3400 (smash_to_method_type): Update prototype.
3402 * c-typeprint.c (cp_type_print_method_args): Take method type
3403 instead of argument list. Use new argument layout. Simplify.
3404 (c_type_print_args): Use new argument layout. Simplify.
3405 (c_type_print_base): Update call to cp_type_print_method_args.
3406 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3407 argument; use die->type instead. Update call to
3408 smash_to_method_type.
3409 (read_structure_scope): Update call to dwarf2_add_member_fn.
3410 * gdbtypes.c (allocate_stub_method): Update comment.
3411 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3412 Use new argument layout.
3413 (check_stub_method): Use new argument layout. Don't count
3414 void as an argument.
3415 (print_arg_types): Update comments. Use new argument layout.
3416 (recursive_dump_type): Don't print arg_types member.
3417 * hpread.c (hpread_read_struct_type): Use new argument layout.
3418 (fixup_class_method_type): Likewise.
3419 (hpread_type_lookup): Likewise.
3420 * stabsread.c (read_type): Update calls to read_args and
3421 smash_to_method_type.
3422 (read_args): Use new argument layout. Simplify.
3423 * valops.c (typecmp): Use new argument layout. Update parameters
3424 and comments. Simplify.
3425 (hand_function_call): Use new argument layout.
3426 (search_struct_method): Update call to typecmp.
3427 (find_overload_match): Use new argument layout.
3429 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3431 * NEWS: Mention multithreaded debug support for gdbserver.
3433 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3435 * MAINTAINERS: Mention NEWS.
3437 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3439 * gdbserver/regcache.c: Add comment.
3441 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3443 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3444 (struct mips_objfile_private, compare_pdr_entries): New.
3445 (non_heuristic_proc_desc): Read the ".pdr" section if it
3448 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3450 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3451 (arm_debug): New static variable.
3452 (_initialize_arm_tdep): Add ``set debug arm'' command.
3454 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3456 * Makefile.in (sim_arm_h): Define.
3457 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3458 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3459 (arm_register_sim_regno): New function, map an internal REGNUM
3460 onto a simulator register number.
3461 (arm_gdbarch_init): Set register_sim_regno.
3463 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3465 * MAINTAINERS: Add self.
3467 2002-06-11 Jim Blandy <jimb@redhat.com>
3469 * source.c (source_info): Mention whether the symtab has
3470 information about preprocessor macros.
3472 Call the command `info macro', not `show macro'.
3473 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3475 (_initialize_macrocmd): Register `info_macro_command' in
3476 `infolist', not `showlist'.
3478 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3480 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3481 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3482 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3483 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3484 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3486 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3487 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3488 (_initialize_mips_tdep): Remove dead code.
3489 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3490 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3491 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3492 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3493 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3494 MIPS_LAST_FP_ARG_REGNUM): Remove.
3496 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3498 * gdbserver/thread-db.c: New file.
3499 * gdbserver/proc-service.c: New file.
3500 * gdbserver/acinclude.m4: New file.
3501 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3502 proc-service.o, and thread-db.o.
3503 (linux-low.o): Add USE_THREAD_DB.
3504 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3505 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3506 * gdbserver/aclocal.m4: Regenerated.
3507 * gdbserver/config.in: Regenerated.
3508 * gdbserver/configure: Regenerated.
3509 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3510 thread_db.h, and linux/elf.h headrs.
3511 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3512 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3513 Check for -lthread_db and thread support.
3514 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3515 PowerPC, and SuperH.
3516 * gdbserver/i387-fp.c: Constify arguments.
3517 * gdbserver/i387-fp.h: Likewise.
3518 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3519 `struct inferior_info'. Remove PID member. Use generic inferior
3520 list header. All uses updated.
3521 (inferiors, signal_pid): Removed.
3522 (all_threads): New variable.
3523 (get_thread): Define.
3524 (add_inferior_to_list): New function.
3525 (for_each_inferior): New function.
3526 (change_inferior_id): New function.
3527 (add_inferior): Removed.
3528 (remove_inferior): New function.
3529 (add_thread): New function.
3530 (free_one_thread): New function.
3531 (remove_thread): New function.
3532 (clear_inferiors): Use for_each_inferior and free_one_thread.
3533 (find_inferior): New function.
3534 (find_inferior_id): New function.
3535 (inferior_target_data): Update argument type.
3536 (set_inferior_target_data): Likewise.
3537 (inferior_regcache_data): Likewise.
3538 (set_inferior_regcache_data): Likewise.
3539 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3540 (all_processes, stopping_threads, using_thrads)
3541 (struct pending_signals, debug_threads, pid_of): New.
3542 (inferior_pid): Replace with macro.
3543 (struct inferior_linux_data): Remove.
3544 (get_stop_pc, add_process): New functions.
3545 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3546 Use add_process and add_thread.
3547 (linux_attach_lwp): New function, based on old linux_attach. Use
3548 add_process and add_thread. Set stop_expected for new threads.
3549 (linux_attach): New function.
3550 (linux_kill_one_process): New function.
3551 (linux_kill): Kill all LWPs.
3552 (linux_thread_alive): Use find_inferior_id.
3553 (check_removed_breakpoints, status_pending_p): New functions.
3554 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3555 Update. Use WNOHANG. Wait for cloned processes also. Update process
3556 struct for the found process.
3557 (linux_wait_for_event): New function.
3558 (linux_wait): Use it. Support LWPs.
3559 (send_sigstop, wait_for_sigstop, stop_all_processes)
3560 (linux_resume_one_process, linux_continue_one_process): New functions.
3561 (linux_resume): Support LWPs.
3562 (REGISTER_RAW_SIZE): Remove.
3563 (fetch_register): Use register_size instead. Call supply_register.
3564 (usr_store_inferior_registers): Likewise. Call collect_register.
3566 (regsets_fetch_inferior_registers): Improve error message.
3567 (regsets_store_inferior_registers): Add debugging.
3568 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3569 (unstopped_p, linux_signal_pid): New functions.
3570 (linux_target_ops): Add linux_signal_pid.
3571 (linux_init_signals): New function.
3572 (initialize_low): Call it. Initialize using_threads.
3573 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3575 (get_regcache): Fetch registers lazily. Add fetch argument
3576 and update all callers.
3577 (regcache_invalidate_one, regcache_invalidate): New
3579 (new_register_cache): Renamed from create_register_cache.
3580 Return the new regcache.
3581 (free_register_cache): Change argument to a void *.
3582 (registers_to_string, registers_from_string): Call get_regcache
3583 with fetch flag set.
3584 (register_data): Make static. Pass fetch flag to get_regcache.
3585 (supply_register): Call get_regcache with fetch flag clear.
3586 (collect_register): Call get_regcache with fetch flag set.
3587 (collect_register_as_string): New function.
3588 * gdbserver/regcache.h: Update.
3589 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3591 Handle input interrupts while waiting for an ACK.
3592 (input_interrupt): Use signal_pid method.
3593 (getpkt): Flush after debug output and use stderr.
3594 (outreg): Use collect_register_as_string.
3595 (new_thread_notify, dead_thread_notify): New functions.
3596 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3598 (look_up_one_symbol): Flush after debug output.
3599 * gdbserver/server.c (step_thread, server_waiting): New variables.
3600 (start_inferior): Don't use signal_pid. Update call to mywait.
3601 (attach_inferior): Update call to mywait.
3602 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3603 (main): Don't fetch/store registers explicitly. Use
3604 set_desired_inferior. Support proposed ``Hs'' packet. Update
3606 * gdbserver/server.h: Update.
3607 (struct inferior_list, struct_inferior_list_entry): New.
3608 * gdbserver/target.c (set_desired_inferior): New.
3609 (write_inferior_memory): Constify.
3610 (mywait): New function.
3611 * gdbserver/target.h: Update.
3612 (struct target_ops): New signal_pid method.
3613 (mywait): Removed macro, added prototype.
3615 * gdbserver/linux-low.h (regset_func): Removed.
3616 (regset_fill_func, regset_store_func): New.
3617 (enum regset_type): New.
3618 (struct regset_info): Add type field. Use new operation types.
3619 (struct linux_target_ops): stop_pc renamed to get_pc.
3620 Add decr_pc_after_break and breakpoint_at.
3621 (get_process, get_thread_proess, get_process_thread)
3622 (strut process_info, all_processes, linux_attach_lwp)
3623 (thread_db_init): New.
3625 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3626 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3627 (the_low_target): Add new members.
3628 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3629 (i386_store_fpxregset): Constify.
3630 (target_regsets): Add new kind identifier.
3631 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3632 (i386_set_pc): Add debugging.
3633 (i386_breakpoint_at): New function.
3634 (the_low_target): Add new members.
3635 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3636 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3637 (mips_breakpoint_at): New.
3638 (the_low_target): Add new members.
3639 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3640 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3641 (the_low_target): Add new members.
3642 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3643 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3644 (the_low_target): Add new members.
3645 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3648 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3650 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3651 (unwind_tmp_obstack_free, parse_frame_info)
3652 (update_context, cfi_read_fp, cfi_write_fp)
3653 (cfi_frame_chain, cfi_init_extra_frame_info)
3654 (cfi_virtual_frame_pointer): Use the above function.
3655 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3657 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3659 * v850-tdep.c (v850_type_is_scalar): New function.
3660 (v850_use_struct_convention): Match current gcc implementation
3661 as close as possible.
3662 (v850_push_arguments): Fix stack_offset handling. Don't write
3663 struct_addr into register. This is done by v850_store_struct_return.
3664 (v850_extract_return_value): Care for structs.
3665 (v850_store_return_value): Ditto.
3666 (v850_store_struct_return): Actually write address.
3668 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3670 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3671 without debug information too.
3673 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3675 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3676 Make multi-arch pure.
3677 * gdbarch.h, gdbarch.c: Re-generate.
3678 * arm-tdep.c (arm_print_float_info): Update.
3679 * arch-utils.h (default_print_float_info): Update.
3680 * arch-utils.c (default_print_float_info): Update.
3681 * infcmd.c (float_info): Update call.
3683 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3685 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3686 the front of the initialize list.
3688 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3690 * infrun.c (struct inferior_status): Replace fields
3691 selected_frame_address and selected_level with field
3693 (save_inferior_status): Update. Use get_frame_id.
3694 (struct restore_selected_frame_args): Delete.
3695 (restore_selected_frame): Update. Use frame_find_by_id.
3696 (restore_inferior_status): Update.
3698 * breakpoint.h (struct breakpoint): Change type of
3699 watchpoint_frame to frame_id.
3700 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3701 call to get_current_frame.
3702 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3704 (watchpoint_check): Use frame_find_by_id.
3706 * frame.h (record_selected_frame): Delete declaration.
3707 * stack.c (record_selected_frame): Delete function.
3709 * frame.h (struct frame_id): Define.
3710 (get_frame_id): Declare.
3711 (frame_find_by_id): Declare.
3712 * frame.c (frame_find_by_id): New function.
3713 (get_frame_id): New function.
3715 2002-06-10 Andrey Volkov <avolkov@transas.com>
3717 * ser-e7kpc.c: Fix duplicated define and call of
3718 _initialize_ser_e7000pc
3720 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3722 * signals/signals.c (target_signal_from_host): Fix #ifdef
3724 (do_target_signal_to_host): Likewise.
3726 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3728 * mips-tdep.c (mips_find_abi_section): New function.
3729 (mips_gdbarch_init): Call it.
3731 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3733 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3734 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3735 after Andrew's 2002-06-08 gdbarch change.
3737 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3739 * i386-linux-nat.c (suppy_gregset): Don't supply
3740 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3742 (fill_gregset): Don't fetch it under the same circumstances.
3744 2002-06-09 Andrew Cagney <cagney@redhat.com>
3746 * Makefile.in (callback_h): Define.
3747 (remote_sim_h): Update path to remote-sim.h.
3748 (remote-rdp.o): Add $(callback_h).
3749 (remote-sim.o): Use $(callback_h).
3750 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3751 * remote-rdp.c: Include "gdb/callback.h".
3753 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3755 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3756 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3758 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3760 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3761 * rdi-share/serpardr.c: Ditto.
3762 * rdi-share/unixcomm.c: Ditto.
3763 * rdi-share/serdrv.c: Ditto.
3764 * rdi-share/hostchan.h: Ditto.
3765 * rdi-share/hostchan.c: Ditto.
3766 * rdi-share/host.h: Ditto.
3767 * rdi-share/devsw.c: Ditto.
3769 * objfiles.h: Change type of obj_private to void pointer.
3770 * pa64solib.c: Update copyright. Don't include "assert.h", use
3771 strcmp instead of STREQ, use LONGEST, do not use PTR
3772 * somsolib.c: Ditto.
3774 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3775 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3776 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3778 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3780 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3781 (default_get_saved_register): Delete function.
3782 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3783 generic_unwind_get_saved_register.
3784 * gdbarch.h, gdbarch.c: Re-generate.
3786 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3788 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3789 generic_func_frame_chain_valid.
3790 * gdbarch.h, gdbarch.c: Re-generate.
3791 * blockframe.c (generic_func_frame_chain_valid): Only check
3792 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3793 passing FP to PC_IN_CALL_DUMMY.
3796 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3798 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3799 (register_gdbarch_data): Initialize init_p.
3800 (gdbarch_data): Initialize data pointer using the init function.
3801 (init_gdbarch_data): Delete function.
3802 (gdbarch_update_p): Update.
3803 (initialize_non_multiarch): Update.
3804 (struct gdbarch): Add field initialized_p.
3805 * gdbarch.h, gdbarch.c: Re-generate.
3807 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3809 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3810 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3811 better do the things actually here.
3812 * x86-64-tdep.c (x86_64_register_name2nr): New.
3813 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3814 (x86_64_gdbarch_init): Respect the above change.
3815 * x86-64-tdep.h (x86_64_register_name2nr)
3816 (x86_64_register_nr2name): Add prototypes.
3817 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3819 2002-06-06 Michael Snyder <msnyder@redhat.com>
3821 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3822 Delete extra braces and re-indent.
3823 (d10v_store_return_value): Char return values
3824 must be shifted over by one byte in R0.
3825 (d10v_extract_return_value): Delete extra braces, re-indent.
3827 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3829 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3830 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3831 (d10v_integer_to_address): Rewrite.
3832 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3833 the d10v specific functions which take care of converting to the
3836 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3838 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3839 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3841 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3843 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3845 * config/tm-linux.h: Ditto.
3846 * config/alpha/tm-alphalinux.h: Ditto.
3847 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3848 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3849 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3850 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3851 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3852 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3853 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3854 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3855 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3856 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3857 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3858 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3859 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3860 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3861 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3862 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3863 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3864 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3865 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3866 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3867 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3868 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3869 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3870 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3871 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3872 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3873 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3874 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3875 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3876 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3877 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3878 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3879 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3880 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3881 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3882 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3883 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3885 2002-05-04 Aidan Skinner <aidan@velvet.net>
3887 * ada-exp.tab.c: New file
3888 * ada-exp.y: New file
3889 * ada-lang.c: New file
3890 * ada-lang.h: New file
3891 * ada-lex.c: New file
3892 * ada-lex.l: New file
3893 * ada-tasks.c: New file
3894 * ada-typeprint.c: New file
3895 * ada-valprint.c: New file
3897 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3899 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3900 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3902 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3904 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3905 insetead of ppc-linux-tdep.o.
3906 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3907 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3909 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3911 2002-05-07 Christian Groessler <chris@groessler.org>
3912 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3913 bit register contents for little endian hosts.
3915 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3917 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3920 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3922 * gdbarch.h: Regenerate.
3924 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3926 * MAINTAINERS: Add everyone to write-after-approval list.
3928 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3930 * stack.c (frame_info): Use frame_register_unwind instead of
3931 saved_regs. Mention when the SP is on the stack or in a register.
3933 * frame.h (frame_register_unwind_ftype): Define. Document.
3934 (struct frame_info): Add field register_unwind and
3935 register_unwind_cache.
3936 (frame_register_unwind): Declare.
3937 (generic_unwind_get_saved_register): Declare.
3939 * frame.c (frame_register_unwind): New function.
3940 (generic_unwind_get_saved_register): New function.
3942 * blockframe.c (generic_call_dummy_register_unwind): New function.
3943 (frame_saved_regs_register_unwind): New function.
3944 (set_unwind_by_pc): New function.
3945 (create_new_frame): New function.
3946 (get_prev_frame): New function.
3948 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3950 * a29k-share/: Delete directory.
3951 * remote-vx29k.c: Delete file.
3953 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3955 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3956 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3958 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3960 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3961 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3964 (sparcnbsd-tdep.o): New dependency lists.
3965 * NEWS: Note new UltraSPARC NetBSD native configuration.
3966 * configure.host (sparc64-*-netbsd*): New host.
3967 * configure.tgt (sparc-*-netbsdelf*)
3968 (sparc-*-netbsd*): Set gdb_target to nbsd.
3969 (sparc64-*-netbsd*): New target.
3970 * sparc64nbsd-nat.c: New file.
3971 * sparcnbsd-nat.c: New file.
3972 * sparcnbsd-tdep.c: New file.
3973 * sparcnbsd-tdep.h: New file.
3974 * config/sparc/nbsd.mt: New file.
3975 * config/sparc/nbsd64.mh: New file.
3976 * config/sparc/nbsd64.mt: New file.
3977 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3978 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3980 * config/sparc/nbsdaout.mt: Remove.
3981 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3982 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3984 * config/sparc/nbsdelf.mt: Remove.
3985 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3986 sparc-nat.c compatiblity defines.
3987 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3988 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3989 * config/sparc/tm-nbsd64.h: New file.
3990 * config/sparc/tm-nbsdaout.h: Remove.
3991 * config/sparc/xm-nbsd.h: Remove.
3993 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3995 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3996 * sparc-tdep.c: Include osabi.h.
3997 (gdbarch_tdep): Add osabi member.
3998 (_initialize_sparc_tdep): Use gdbarch_register.
3999 (sparc_gdbarch_init): Use generic OS ABI framework.
4000 (sparc_dump_tdep): New function.
4002 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4004 * corefile.c (do_captured_read_memory_integer): Return non-zero
4006 (safe_read_memory_integer): Copy result of memory read when
4007 status is non-zero. Also, add comments.
4009 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4011 * Makefile.in (ppc_tdep_h): Define.
4014 (rs6000-tdep.o): Use $(ppc_tdep_h).
4017 (ppcnbsd-tdep.o): New dependency lists.
4018 * ppc-tdep.h: Use generic OS ABI framework.
4019 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4020 (ppc_linux_init_abi): New functions.
4021 (ppc_sysv_abi_broken_use_struct_convention)
4022 (ppc_sysv_abi_use_struct_convention)
4023 (ppc_sysv_abi_push_arguments): Move to...
4024 * ppc-sysv-tdep.c: ...here.
4025 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4026 * rs6000-tdep.c (process_note_abi_tag_sections)
4027 (get_elfosabi): Remove.
4028 (rs6000_gdbarch_init): Use generic OS ABI framework.
4029 (rs6000_dump_tdep): New function.
4030 (_initialize_rs6000_tdep): Use gdbarch_register.
4031 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4032 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4033 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4034 of ppc-linux-tdep.o.
4035 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4036 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4037 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4038 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4039 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4040 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4042 2002-05-29 Jim Blandy <jimb@redhat.com>
4044 * macroscope.c (default_macro_scope): Put `void' in empty argument
4047 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4049 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4050 * arch-utils.c: Include "sim-regno.h".
4051 * gdbarch.sh: Don't include "sim-regno.h".
4052 * gdbarch.h, gdbarch.c: Regenerate.
4053 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4055 * arch-utils.h (legacy_register_sim_regno): To here.
4056 * remote-sim.c (legacy_register_sim_regno): Move function from
4058 * arch-utils.c (legacy_register_sim_regno): To here.
4060 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4062 * sim-regno.h: New file.
4063 * Makefile.in (sim_regno_h): Define.
4064 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4065 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4066 (legacy_register_sim_regno): New function.
4067 (one2one_register_sim_regno): New function.
4068 (gdbsim_fetch_register): Rewrite.
4069 (gdbsim_store_register): Only store a register when
4070 REGISTER_SIM_REGNO is valid.
4071 * d10v-tdep.c: Include "sim-regno.h".
4072 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4073 (d10v_ts3_register_sim_regno): Ditto.
4074 * gdbarch.sh: Include "sim-regno.h".
4075 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4076 * gdbarch.h, gdbarch.c: Regenerate.
4077 * arch-utils.h (default_register_sim_regno): Delete declaration.
4078 * arch-utils.c (default_register_sim_regno): Delete function.
4080 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4082 * ppcnbsd-nat.c: Rewrite.
4083 * ppcnbsd-tdep.c: New file.
4084 * ppcnbsd-tdep.h: New file.
4085 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4086 solib.o, and solib-svr4.o.
4087 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4088 nbsd-tdep.o, and corelow.o.
4090 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4092 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4093 `tr' and `sed'. Mention that `broken' targets are not expected to
4096 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4098 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4099 Let PC point right after the prologue before looking up symbols.
4101 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4103 * i386-tdep.c (i386_register_virtual_type): Return
4104 builtin_type_vec128i for SSE registers.
4106 * gdbtypes.h (builtin_type_vec128i): Declare.
4108 * gdbtypes.c (build_builtin_type_vec128i): New function.
4109 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4110 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4111 (build_gdbtypes): Initialize new builtin vector types.
4112 (_initialize_gdbtypes): Register new vector types with gdbarch.
4114 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4116 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4117 since it has been multi-arch'd.
4118 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4119 Move Alpha and VAX multi-arch news entries to same section
4120 as other multi-arch news.
4122 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4124 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4125 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4126 static. Rename some register numbers to put them in ns32k-tdep
4128 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4129 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4131 (_initialize_ns32k_tdep): Use gdbarch_register.
4132 * ns32k-tdep.h: New file.
4133 * ns32knbsd-tdep.c: New file.
4134 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4135 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4136 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4137 REGISTER_BYTES, REGISTER_BYTE): Remove.
4138 * config/ns32k/tm-ns32k.h: New file.
4139 * config/ns32k/tm-umax.h: Remove.
4141 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4143 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4144 ns32k_store_struct_return, ns32k_extract_return_value,
4145 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4147 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4148 ns32k_saved_pc_after_call.
4149 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4150 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4151 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4152 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4153 ns32k_extract_struct_value_address.
4155 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4157 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4158 ns32k_fix_call_dummy): New.
4159 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4160 ns32k_call_dummy_words.
4161 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4162 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4163 CALL_DUMMY_NARGS): Remove.
4164 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4166 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4168 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4169 ns32k_frame_saved_pc, ns32k_frame_args_address,
4170 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4171 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4172 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4173 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4174 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4175 (BREAKPOINT): Remove..
4176 (FRAME_CHAIN): Define as ns32k_frame_chain.
4177 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4178 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4179 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4180 (FRAME_FIND_SAVED_REGS): Remove.
4181 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4182 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4183 (POP_FRAME): Define as ns32k_pop_frame.
4185 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4187 * ns32k-tdep.c (ns32k_register_byte_32082,
4188 ns32k_register_byte_32382, ns32k_register_raw_size,
4189 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4191 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4192 ns32k_register_byte_32382.
4193 * config/ns32k/tm-umax.h: Update copyright years.
4194 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4195 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4196 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4197 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4198 (ns32k_get_enter_addr): Fix prototype.
4200 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4202 * ns32k-tdep.c: Update copyright years.
4203 (ns32k_register_name_32082): New function.
4204 (ns32k_register_name_32382): Ditto.
4205 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4206 (REGISTER_NAME): Define as ns32k_register_name_32382.
4207 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4208 (REGISTER_NAME): Define as ns32k_register_name_32082.
4210 2002-05-24 Jim Blandy <jimb@redhat.com>
4212 * dwarf2read.c (free_line_header): Use xfree, not free.
4214 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4216 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4217 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4219 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4221 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4223 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4225 From Ross Alexander at NEC Europe:
4226 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4228 2002-05-23 Michael Snyder <msnyder@redhat.com>
4230 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4231 for input, rather than parse_and_eval_address.
4233 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4235 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4236 * Makefile.in (sim_d10v_h): Update definition.
4238 2002-05-24 Andrew Cagney <cagney@redhat.com>
4240 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4241 change `2002-05-22 Michael Snyder' below.
4242 (d10v_push_arguments): Ditto.
4243 (d10v_extract_return_value): Ditto.
4245 2002-05-23 Jim Blandy <jimb@redhat.com>
4247 * macrotab.c (check_for_redefinition): Don't complain if the new
4248 definition is the same as the previous one. Take more arguments
4249 to allow the comparison.
4250 (macro_define_object, macro_define_function): Pass more arguments
4251 to check_for_redefinition.
4253 2002-05-22 Michael Snyder <msnyder@redhat.com>
4255 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4256 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4257 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4258 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4259 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4260 Add a temp variable to save a call (and a memory read).
4261 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4262 if possible (so that PC_IN_CALL_DUMMY will work).
4264 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4266 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4268 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4270 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4272 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4273 (dwarf2_build_frame_info): Add offset to fde->initial_location
4274 so that frames of shared libraries are mapped correctly.
4275 (execute_stack_op): Change type of 'result' from ULONGEST to
4278 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4280 * config/alpha/tm-nbsd.h: Include solib.h.
4282 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4284 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4285 assumptions about the host's byte order.
4287 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4289 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4291 * alphanbsd-tdep.c: Include solib-svr4.h.
4292 * shnbsd-tdep.c: Ditto.
4294 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4296 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4297 nbsd-tdep.h to dependency list.
4298 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4299 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4300 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4301 nbsdaout.mh and nbsdelf.mh consistently.
4302 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4303 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4304 nbsdaout.mt and nbsdelf.mh consistently.
4305 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4306 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4307 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4308 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4309 a.out shared library stuff from here...
4310 * config/nm-nbsdaout.h: ...to here.
4311 * config/tm-nbsd.h: Remove.
4312 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4313 * config/arm/nbsd.mh: Remove.
4314 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4316 * config/arm/nbsdaout.mh: New file.
4317 * config/arm/nbsdelf.mh: New file.
4318 * config/arm/nm-nbsdaout.h: New file.
4319 * config/i386/nbsd.mh: Remove.
4320 * config/i386/nbsd.mt: Remove.
4321 * config/i386/nbsdaout.mh: New file.
4322 * config/i386/nbsdaout.mt: New file.
4323 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4324 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4325 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4326 i386_register_u_addr): Remove.
4327 * config/i386/nm-nbsdaout.h: New file.
4328 * config/i386/nm-nbsdelf.h: Remove.
4329 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4330 (USE_STRUCT_CONVENTION): Remove.
4331 * config/i386/tm-nbsdaout.h: New file.
4332 * config/i386/tm-nbsdelf.h: Remove.
4333 * config/m68k/nbsd.mh: Remove.
4334 * config/m68k/nbsd.mt: Remove.
4335 * config/m68k/nbsdaout.mh: New file.
4336 * config/m68k/nbsdaout.mt: New file.
4337 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4338 * config/m68k/nm-nbsdaout.h: New file.
4339 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4340 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4341 * config/ns32k/nbsd.mh: Remove.
4342 * config/ns32k/nbsd.mt: Remove.
4343 * config/ns32k/nbsdaout.mh: New file.
4344 * config/ns32k/nbsdaout.mt: New file.
4345 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4346 * config/ns32k/nm-nbsdaout.h: New file.
4347 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4348 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4349 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4350 (SVR4_SHARED_LIBS): Remove.
4351 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4352 * config/sparc/nbsd.mh: Remove.
4353 * config/sparc/nbsd.mt: Remove.
4354 * config/sparc/nbsdaout.mh: New file.
4355 * config/sparc/nbsdaout.mt: New file.
4356 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4357 * config/sparc/nbsdelf.mt: New file.
4358 * config/sparc/nm-nbsdaout.h: New file.
4359 * config/sparc/nm-nbsdelf.h: Remove.
4360 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4361 * config/sparc/tm-nbsdaout.h: New file.
4363 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4365 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4367 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4369 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4371 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4373 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4375 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4377 * NEWS: Note new MIPS NetBSD native configuration.
4378 * configure.host (mips*-*-netbsd*): New host.
4379 * configure.tgt (mips*-*-netbsd*): New target.
4380 * mipsnbsd-nat.c: New file.
4381 * mipsnbsd-tdep.c: New file.
4382 * mipsnbsd-tdep.h: New file.
4383 * config/mips/nbsd.mh: New file.
4384 * config/mips/nbsd.mt: New file.
4385 * config/mips/nm-nbsd.h: New file.
4386 * config/mips/tm-nbsd.h: New file.
4388 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4390 * Makefile.in (SFILES): Add osabi.c.
4391 (COMMON_OBS): Add osabi.o.
4392 (osabi.o): New dependency list.
4393 * osabi.c: New file.
4394 * osabi.h: New file.
4395 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4397 * Makefile.in (alpha_tdep_h): Define and use instead of
4399 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4400 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4402 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4403 * alpha-tdep.h: Include osabi.h.
4404 (alpha_abi): Remove.
4405 (gdbarch_tdep): Use generic OS ABI framework.
4406 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4407 gdbarch_register_osabi.
4408 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4409 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4410 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4412 * Makefile.in (sh_tdep_h): Add osabi.h.
4413 * sh-tdep.h (sh_osabi): Remove.
4414 (gdbarch_tdep): Use generic OS ABI framework.
4415 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4416 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4417 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4418 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4420 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4421 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4422 gdbarch_register_osabi.
4423 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4424 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4425 (get_elfosabi): Rename to...
4426 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4427 ABI framework support routines.
4428 (arm_gdbarch_init): Use generic OS ABI framework.
4429 (arm_dump_tdep): Likewise.
4430 (_initialize_arm_tdep): Likewise.
4431 * arm-tdep.h: Include osabi.h.
4433 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4435 (arm_gdbarch_register_os_abi): Remove prototype.
4436 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4437 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4439 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4440 * mips-tdep.c: Include osabi.h.
4441 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4444 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4446 * h8300-tdep.c: Fix formatting.
4448 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4450 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4451 printing vector registers.
4453 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4455 From Fernando Nasser:
4456 * remote.c (remote_async_open_1): Re-throw the exception when the
4458 (remote_cisco_open): Ditto.
4459 (remote_open_1): Ditto.
4461 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4463 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4464 (remote_start_remote): Add uiout parameter. Pass through to
4465 remote_start_remote_dummy.
4466 (remote_open_1): Use catch_exception instead of catch_errors.
4467 (remote_async_open_1): Ditto.
4468 (remote_cisco_open): Ditto.
4470 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4472 * remote.c (remote_start_remote): Replace PTR with void pointer.
4473 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4476 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4478 * gdb_indent.sh: Allow the script to be run in the sim directory.
4480 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4482 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4483 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4485 * corelow.c (core_open): Only call set_gdbarch_from_file if
4488 2002-05-17 Andrey Volkov <avolkov@transas.com>
4490 * h8300-tdep.c: Add support of EXR register
4491 * config/h8300/tm-h8300.h: Ditto.
4493 2002-05-17 Andrey Volkov <avolkov@transas.com>
4495 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4497 2002-05-17 Andrey Volkov <avolkov@transas.com>
4499 * h8300-tdep.c: Change literal regnums to REGNO.
4501 2002-05-17 Jim Blandy <jimb@redhat.com>
4503 * NEWS: Note addition of macro support.
4505 Expand preprocessor macros in C expressions.
4506 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4507 (scan_macro_expansion, scanning_macro_expansion,
4508 finished_macro_expansion): New function declarations.
4509 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4510 variable declarations.
4511 * parser-defs.h (expression_context_pc): New declaration.
4512 * parse.c (expression_context_pc): New variable.
4513 (parse_exp_1): Set expression_context_pc, as well as
4514 expression_context_block.
4515 * c-exp.y (yylex): If we're not already reading the result of a
4516 macro expansion, try to macro-expand the next token. When we're
4517 done scanning a macro expansion, switch back to the mainline text.
4518 Commas and `if's in a macro's expansion don't terminate the input.
4519 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4520 (macro_original_text, macro_expanded_text,
4521 expression_macro_lookup_func, expression_macro_lookup_baton): New
4523 (scan_macro_expansion, scanning_macro_expansion,
4524 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4525 c_preprocess_and_parse): New functions.
4526 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4527 c_preprocess_and_parse, instead of c_parse.
4528 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4529 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4531 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4533 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4534 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4535 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4537 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4539 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4541 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4543 * Makefile.in (sh_tdep_h): Define and use.
4544 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4545 register enum): Move to...
4546 * * sh-tdep.h: ...here.
4547 * sh-tdep.c: Include sh-tdep.h.
4548 * sh3-rom.c: Likewise.
4549 * shnbsd-tdep.c: Likewise.
4551 2002-05-16 Michael Snyder <msnyder@redhat.com>
4553 * arm-tdep.c: Spelling fix in comment.
4555 2002-05-16 Jim Blandy <jimb@redhat.com>
4557 Add commands for manually expanding macros and showing their
4559 * macrocmd.c, macroscope.c, macroscope.h: New files.
4560 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4561 (macroscope_h): New variable.
4562 (HFILES_NO_SRCDIR): Add macroscope.h.
4563 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4564 (macroscope.o, macrocmd.o): New rules.
4566 Teach the Dwarf 2 reader to read macro information.
4567 * dwarf2read.c: #include "macrotab.h".
4568 (dwarf_macinfo_buffer): New variable.
4569 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4571 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4572 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4573 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4574 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4575 dwarf2_macro_spaces_in_definition): New complaints.
4576 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4577 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4578 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4579 the partial symbol table.
4580 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4581 from what's recorded in the partial symbol table.
4582 (read_file_scope): If the compilation unit has a
4583 `DW_AT_macro_info' attribute, read its macro information.
4584 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4586 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4589 * ser-tcp.c: Don't include <netinet/udp.h>.
4591 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4593 * MAINTAINERS: Update my email address.
4595 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4597 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4598 include file of the same name.
4600 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4602 * configure.tgt: Mark v850 as multi-arched.
4603 * config/v850/tm-v850.h: Remove file.
4604 * config/v850/v850.mt: Eliminate TM_FILE.
4606 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4608 * v850-tdep.c: Full multi-arch.
4609 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4610 Define GDB_MULTI_ARCH to 2.
4612 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4614 * p-exp.y (current_type): New static variable.
4615 Carries the type of the expression at the position that is parsed.
4616 (push_current_type, pop_current_type): Two new functions. Used
4617 to store/restore current_type in expression on specific tokens.
4618 (search_field): New static variable. Set to one after parsing a point
4619 as at that point only a FIELDNAME token should be searched.
4620 (FIELDNAME): New token. After a point only a token belonging to
4621 current_type type definition is allowed.
4622 (all over token rules): reset and change current_type according
4624 (exp '[' rule): insert implicit array index field if
4625 exp is a pascal string type.
4627 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4629 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4630 frame info. Use frame_info's saved_regs instead of matching member
4631 in extra_frame_info throughout.
4632 (v850_frame_init_saved_regs): New function.
4633 (v850_init_extra_frame_info): Move most functionality into
4634 v850_frame_init_saved_regs().
4635 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4636 (v850_frame_find_saved_regs): Remove declaration.
4637 (FRAME_FIND_SAVED_REGS): Remove definition.
4638 (v850_frame_init_saved_regs): Add declaration.
4639 (FRAME_INIT_SAVED_REGS): Add definition.
4641 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4643 * v850-tdep.c: Begin multi-arch'ing v850.
4644 (v850_target_architecture_hook): Remove function.
4645 (v850_gdbarch_init): New function. Add code previously in
4646 v850_target_architecture_hook().
4647 (_initialize_v850_tdep): Don't set target_architecture_hook.
4648 Call register_gdbarch_init() instead.
4650 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4652 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4653 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4654 (fixup_class_method_type): Likewise.
4656 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4658 From Martin Pool <mbp@samba.org>:
4659 * gdbserver/server.c (gdbserver_usage): New function.
4662 2002-05-15 Jim Blandy <jimb@redhat.com>
4664 Add macro structures to GDB's symbol tables. Nobody puts anything
4666 * symtab.h (struct symtab): New member: `macro_table'.
4667 * buildsym.h (pending_macros): New global variable.
4668 * buildsym.c: #include "macrotab.h".
4669 (buildsym_init): Initialize `pending_macros'.
4670 (end_symtab): If we found macro information while reading a CU's
4671 debugging info, do build a symtab structure for it. Make the
4672 symtab point to the macro information, and clear the
4673 `pending_macros' pointer which held it while we were reading the
4675 (really_free_pendings): Free any pending macro table.
4676 * objfiles.h (struct objfile): New member: `macro_cache'.
4677 * objfiles.c (allocate_objfile): Set allocate and free functions
4678 for the macro cache's objstack.
4679 (free_objfile): Empty the macro cache's obstack.
4680 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4681 set new allocate and free functions for it.
4682 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4683 free functions for the macro cache's objstack. (Why is this
4684 function building its own objfile?)
4685 * symmisc.c (print_objfile_statistics): Print statistics on the
4687 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4689 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4691 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4692 (REGISTER_U_ADDR): Delete definition.
4693 (arm_register_u_addr): Delete declaration.
4695 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4697 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4698 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4700 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4702 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4705 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4707 * regcache.c (register_valid): Revise comments refering to "Not
4708 available" and "unavailable".
4709 * frame.c (frame_register_read): Ditto.
4710 * findvar.c (value_of_register): Ditto.
4712 2002-05-15 Andrew Cagney <cagney@redhat.com>
4714 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4715 (remote-sim.o): Update dependencies.
4716 (d10v-tdep.o): Specify dependencies.
4717 (sim_d10v_h): Define.
4719 2002-05-14 Jim Blandy <jimb@redhat.com>
4721 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4722 * macrotab.c (macro_lookup_inclusion, find_definition,
4723 new_macro_table): Same.
4725 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4726 not `! strcmp ()'. This is a dubious improvement.
4727 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4729 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4730 although it's not necessary, to avoid a warning.
4732 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4734 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4735 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4736 TYPE_INSTANCE_FLAGS.
4737 (struct main_type): New.
4738 (struct type): Move most members to struct main_type. Change
4739 cv_type and as_type to new type_chain member. Add instance_flags.
4740 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4741 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4742 (finish_cv_type): Remove prototype.
4743 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4745 (alloc_type_instance): New function.
4746 (smash_type): New function.
4747 (make_pointer_type, make_reference_type, make_function_type)
4748 (smash_to_member_type, smash_to_method_type): Call smash_type.
4749 (make_qualified_type): New function.
4750 (make_type_with_address_space): Call make_qualified_type.
4751 (make_cv_type): Likewise.
4752 (finish_cv_type): Remove unnecessary function.
4753 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4754 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4755 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4756 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4757 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4758 * hpread.c (hpread_read_struct_type): Likewise.
4759 * stabsread.c (read_struct_type): Likewise.
4761 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4763 * configure.tgt: Add a catch all sh* target, for cases like
4764 sh[2,3,4]-elf and sh-hms.
4766 2002-05-14 Keith Seitz <keiths@redhat.com>
4768 * event-loop.c (create_file_handler): Don't do anything but
4769 update data when we are given a fd which we are already
4772 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4774 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4775 (update_context): Use __func__ in warnings.
4777 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4779 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4780 and tcp_close to net_open and net_close.
4781 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4782 using UDP if requested. Don't try to disable Nagle on UDP
4784 * remote.c (remote_serial_open): New function. Warn about UDP.
4785 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4787 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4789 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4791 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4793 * configure.tgt: Remove sh-hms target.
4794 * MAINTAINERS: Don't list sh-hms as a separate target.
4796 2002-05-13 Jim Blandy <jimb@redhat.com>
4798 Add first preprocessor macro-expansion files.
4799 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4800 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4801 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4802 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4803 (COMMON_OBS): Add macrotab.o, macroexp.o.
4804 (macroexp.o, macrotab.o): New rules.
4806 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4808 * config/m88k/tm-m88k.h: Update copyright.
4809 (m88k_target_write_pc): Declare
4810 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4811 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4812 (SHIFT_INST_REGS): Update definition.
4813 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4814 using old definition of TARGET_WRITE_PC.
4815 * regcache.c (generic_target_write_pc): Delete code handling
4817 * gdbarch.sh (NNPC_REGNUM): Delete.
4818 * gdbarch.h, gdbarch.c: Regenerate.
4820 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4822 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4825 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4827 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4828 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4829 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4831 * c-typeprint.c (cp_type_print_method_args): Likewise.
4832 (c_type_print_args): Likewise.
4833 * d10v-tdep.c (d10v_push_arguments): Likewise.
4834 (d10v_extract_return_value): Likewise.
4835 * expprint.c (print_subexp): Likewise.
4836 * gdbtypes.c (lookup_primitive_typename): Likewise.
4837 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4838 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4839 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4840 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4841 (TYPE_VECTOR): Likewise.
4842 * hpread.c (hpread_read_struct_type)
4843 (fix_static_member_physnames, fixup_class_method_type)
4844 (hpread_type_lookup): Likewise.
4845 * mdebugread.c (parse_symbol, parse_type): Likewise.
4846 * p-lang.c (is_pascal_string_type): Likewise.
4847 * valops.c (hand_function_call): Likewise.
4848 * x86-64-tdep.c (classify_argument): Likewise.
4850 * hpread.c (hpread_read_function_type)
4851 (hpread_read_doc_function_type): Call replace_type.
4852 * dstread.c (create_new_type): Delete.
4853 (decode_dst_structure, process_dst_function): Call alloc_type.
4854 Use type access macros.
4856 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4858 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4859 the're not supported by the current architecture.
4860 (i387_fill_fxsave): Likewise.
4862 2002-05-12 Fred Fish <fnf@redhat.com>
4864 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4865 sect_index_xxx members to index the first slot in section_offsets
4866 if all of the section_offsets are zero.
4868 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4870 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4871 checked in with last change.
4873 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4875 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4876 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4879 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4881 * Makefile.in: Update dependencies.
4883 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4885 * language.c (local_hex_string_custom): Simplify. Do not depend
4886 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4888 * memattr.c (mem_info_command): Replace calls to
4889 longest_local_hex_string and longest_local_hex_string_custom.
4890 * buildsym.c (make_blockvector): Ditto.
4891 * solib.c (info_sharedlibrary_command): Ditto.
4892 * tracepoint.c (tracepoints_info): Ditto.
4893 * symtab.c (print_msymbol_info): Ditto.
4895 * language.c (local_hex_string): Delete.
4896 (local_hex_string_custom): Delete.
4897 (longest_local_hex_string): Rename to local_hex_string.
4898 (longest_local_hex_string_custom): Rename to
4899 local_hex_string_custom.
4900 * language.h (local_hex_string): Change parameter type to LONGEST.
4901 (local_hex_string_custom): Ditto.
4902 (longest_local_hex_string): Delete declaration.
4903 (longest_local_hex_string_custom): Ditto.
4905 * solib.c: Update copyright.
4906 * memattr.c: Update copyright.
4908 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4910 * arch-utils.h (legacy_register_to_value): Declare.
4911 (legacy_value_to_register): Declare.
4912 (legacy_convert_register_p): Declare.
4913 * arch-utils.c (legacy_register_to_value): New function.
4914 (legacy_value_to_register): New function.
4915 (legacy_convert_register_p): New function.
4917 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4918 (VALUE_TO_REGISTER): Define.
4919 (CONVERT_REGISTER_P): Define.
4920 * gdbarch.h, gdbarch.c: Regenerate.
4922 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4924 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4927 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4928 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4930 * Makefile.in: Update dependencies for valops.c.
4931 * valops.c: Include "gdb_assert.h".
4932 (typecmp): Skip THIS parameter to methods.
4933 (find_method_list): Remove static_memfuncp argument,
4934 update callers. Check for stub methods.
4935 (find_value_oload_method_list): Don't set *static_memfuncp.
4936 (find_overload_match): Don't check for stub methods. Assert
4937 that methods are not stubbed. Handle static methods.
4938 (value_find_oload_method_list): Remove static_memfuncp argument.
4939 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4940 to the argument list for static stub methods.
4941 * value.h (value_find_oload_method_list): Update prototype.
4943 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4945 * arch-utils.h (generic_register_size): Declare.
4946 (generic_register_raw_size, generic_register_virtual_size): Delete
4948 * arch-utils.c (generic_register_raw_size): Delete.
4949 (generic_register_size): New function.
4950 (generic_register_virtual_size): Delete.
4952 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4953 default generic_register_size.
4954 * gdbarch.h, gdbarch.c: Re-generate.
4956 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4957 register_virtual_size.
4958 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4959 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4961 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4963 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4964 * gdbarch.h, gdbarch.c: Regenerate.
4965 * gnu-v3-abi.c: Update copyright.
4966 (vtable_address_point_offset): Update.
4967 (gnuv3_rtti_type): Update.
4968 (gnuv3_baseclass_offset): Update.
4969 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4970 (init_fetch_link_map_offsets): Update.
4971 * remote.c (get_remote_state): Update.
4973 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4975 * TODO: Remove value_headof/value_from_vtable_info comment.
4976 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4977 * values.c (value_headof, value_from_vtable_info): Delete.
4978 * value.h (value_from_vtable_info): Delete prototype.
4980 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4982 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4983 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4985 (gdb_assert_h): Define.
4986 (gdb_wait_h): Define.
4987 (gdb_regex_h): Define.
4989 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4991 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4992 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4994 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4996 * nbsd-tdep.c: Fix comment.
4998 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5000 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5001 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5002 (nbsd-tdep.o): New dependency list.
5003 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5005 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5006 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5007 * nbsd-tdep.c: New file.
5008 * nbsd-tdep.h: New file.
5009 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5011 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5012 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5013 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5014 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5016 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5018 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5019 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5020 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5021 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5022 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5023 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5025 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5027 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5028 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5029 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5030 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5031 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5032 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5033 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5035 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5037 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5038 fetch_elfcore_registers to...
5039 * i386nbsd-tdep.c: ...here.
5040 (i386nbsd_use_struct_convention): Rename to...
5041 (i386nbsd_aout_use_struct_convention): ...this.
5042 (i386nbsd_supply_reg): New function.
5043 (i386nbsd_fill_reg): New function.
5044 (fetch_core_registers): Use i386nbsd_supply_reg.
5045 (fetch_elfcore_registers): Likewise.
5046 (_initialize_i386nbsd_tdep): New function.
5047 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5048 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5049 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5050 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5051 (i386nbsd_aout_use_struct_convention): ...this.
5053 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5055 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5056 (store_inferior_registers): Use shnbsd_fill_reg.
5057 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5058 sh_nbsd_supply_register): Collapse into...
5059 (shnbsd_supply_reg): ...this.
5060 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5061 (shnbsd_fill_reg): ...this.
5062 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5063 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5064 (fetch_core_registers): Use shnbsd_supply_reg.
5065 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5066 (sh_nbsd_core_fns): Rename to...
5067 (shnbsd_core_fns): ...this.
5068 (sh_nbsd_elfcore_fns): Rename to...
5069 (shnbsd_elfcore_fns): ...this.
5070 (sh_nbsd_init_abi): Rename to...
5071 (shnbsd_init_abi): ...this.
5072 (_initialize_sh_nbsd_tdep): Rename to...
5073 (_initialize_shnbsd_tdep): ...this.
5074 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5075 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5076 sh_nbsd_fill_register): Remove prototypes.
5077 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5079 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5081 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5082 (i387-nat.o): Delete dependency list.
5083 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5084 (x86-64-linux-nat.o): Likewise.
5085 * i387-nat.c: Delete file, moving contents to...
5086 * i387-tdep.c: ...here.
5087 * i387-nat.h: Rename...
5088 * i387-tdep.h: ...to this.
5089 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5090 * i386-linux-nat.c: Likewise.
5091 * i386bsd-nat.c: Likewise.
5092 * i386gnu-nat.c: Likewise.
5093 * i386nbsd-nat.c: Likewise.
5094 * i386v4-nat.c: Likewise.
5095 * x86-64-linux-nat.c: Likewise.
5096 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5097 * config/i386/go32.mh (NATDEPFILES): Likewise.
5098 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5099 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5100 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5101 * config/i386/linux.mh (NATDEPFILES): Likewise.
5102 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5103 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5104 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5105 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5107 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5109 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5110 (alphanbsd-nat.o): Remove dependency list.
5111 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5112 * alphanbsd-nat.c: Delete. Contents moved to...
5113 * alphanbsd-tdep.c: ...here.
5114 (_initialize_alphanbsd_tdep): Register core functions.
5115 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5117 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5119 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5120 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5121 (alphanbsd-nat.o): Likewise.
5122 (alphabsd-tdep.o): New dependency list.
5123 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5124 (fill_gregset): Use alphabsd_fill_reg.
5125 (supply_fpregset): Use alphabsd_supply_fpreg.
5126 (fill_fpregset): Use alphabsd_fill_fpreg.
5127 (fetch_inferior_registers): Use struct reg and struct fpreg
5128 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5129 and alphabsd_supply_fpreg.
5130 (store_inferior_registers): Use struct reg and struct fpreg
5131 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5132 and alphabsd_fill_fpreg.
5133 * alphabsd-tdep.c: New file.
5134 * alphabsd-tdep.h: New file.
5135 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5136 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5137 alphabsd_supply_fpreg.
5138 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5139 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5141 2002-05-11 Eric Christopher <echristo@redhat.com>
5143 * mips-tdep.c (mips_double_register_type): Fix thinko.
5144 (mips_single_register_type): Ditto.
5145 * MAINTAINERS: Add self.
5147 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5149 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5150 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5151 right thing on architectures with different endianness and/or
5154 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5156 From Christian Limpach <chris@Pin.LU>
5157 * configure.in: Change sed expression which comments out
5158 NATDEPFILES to also comment out continuation lines.
5159 * configure: Regenerate.
5161 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5163 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5166 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5168 * sh-tdep.c: Include correct file.
5170 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5172 New support for sh64-elf (sh5) target.
5174 * configure.tgt: For sh64-elf target, default to sh-elf.
5176 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5177 (struct gdbarch_tdep): Add new fields for new registers and ABI
5180 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5181 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5182 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5183 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5184 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5185 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5186 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5187 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5188 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5189 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5190 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5191 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5192 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5193 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5194 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5195 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5196 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5197 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5198 sign_extend, sh64_nofp_frame_init_saved_regs,
5199 sh64_init_extra_frame_info, sh64_get_saved_register,
5200 sh64_extract_struct_value_address, sh64_pop_frame,
5201 sh64_push_arguments, sh64_extract_return_value,
5202 sh64_store_return_value, sh64_show_media_regs,
5203 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5204 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5205 sh_sh64_register_virtual_type,
5206 sh_sh64_register_convert_to_virtual,
5207 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5208 sh64_register_read, sh64_pseudo_register_write,
5209 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5210 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5211 sh64_do_pseudo_register, sh_compact_do_registers_info,
5212 sh64_do_registers_info, sh_gdbarch_init): New functions.
5214 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5216 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5218 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5220 * linespec.c (decode_line_1): Check for a double quote after
5221 a filename correctly.
5223 2002-05-10 Jim Blandy <jimb@redhat.com>
5225 Properly track the size of the current objfile's .debug_line section.
5226 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5227 (DWARF_LINE_SIZE): New macro.
5228 (dwarf2_build_psymtabs_hard): Record the line section's size in
5229 the partial symbol table.
5230 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5233 2002-05-10 Petr Sorfa <petrs@caldera.com>
5235 * ia64-tdep.c: Handle breakpoints on L instruction type
5236 in MLX instruction bundle by moving the breakpoint to
5237 the third slot (X instruction type) as L holds only data.
5239 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5241 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5242 (process_one_symbol): Complain about discarding local symbols
5243 due to a misplaced N_LBRAC entry.
5245 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5247 From Daniel Berlin <dan@cgsoftware.com>
5248 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5249 decrease the depth we are at, in the case of templates.
5251 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5253 * mips-tdep.c (mips_float_register_type): New function.
5254 (mips_double_register_type): New function.
5255 (mips_print_register): Use them.
5256 (do_fp_register_row): Likewise.
5258 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5260 * signals/signals.c (signals): Remove conditional compilation around
5261 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5262 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5264 2002-05-09 Michael Snyder <msnyder@redhat.com>
5266 * remote-rdp.c (remote_rdp_can_run): Remove.
5268 2002-05-09 Tom Tromey <tromey@redhat.com>
5270 * jv-valprint.c (java_val_print): Handle `char' as a special case
5273 2002-05-09 Michael Snyder <msnyder@redhat.com>
5275 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5276 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5277 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5278 str r(0123),[sp,#nn].
5279 (arm_skip_prologue): Ditto. Also make disassembly
5280 order-independent by placing it in a loop.
5282 2002-05-06 Michael Snyder <msnyder@redhat.com>
5284 * stabsread.c (read_type): Add recognition for new attribute:
5285 "@V;" means that an array type is actually a vector.
5286 This is analogous to the vector flag that's been added to dwarf2.
5288 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5290 * i386-tdep.h (i386_abi): New enum.
5291 (struct gdbarch_tdep): Replace os_ident member with abi.
5292 (i386_gdbarch_register_os_abi): New prototype.
5293 * i386-tdep.c (i386_abi_names): New array.
5294 (process_note_abi_tag_sections): Removed.
5295 (process_note_sections): New function.
5296 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5297 (struct i386_abi_handler): New struct.
5298 (i386_abi_handler_list): New variable.
5299 (i386_gdbarch_register_os_abi): New function.
5300 (i386_gdbarch_init): Adapt for the changes given above.
5302 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5304 * gregset.h: Say "GNU/Linux".
5306 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5308 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5309 (build_gdbtypes): Build builtin_type_v2_float.
5310 (_initialize_gdbtypes): Register new builtin type.
5312 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5314 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5315 (clear_gdbarch_swap): New function.
5316 (initialize_non_multiarch): Call.
5317 (gdbarch_update_p): Before calling init(), swap out and clear the
5318 existing architecture.
5319 * gdbarch.c: Regenerate.
5321 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5323 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5326 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5328 * sh-nbsd-nat.c: Rename to...
5329 * shnbsd-nat.c: ...this.
5330 * sh-nbsd-tdep.c: Rename to...
5331 * shnbsd-tdep.c: ...this.
5332 * sh-nbsd-tdep.h: Rename to...
5333 * shnbsd-tdep.h: ...this.
5334 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5335 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5337 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5339 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5340 concatenation for command help messages.
5342 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5344 * NEWS: Note new sh*-*-netbsdelf* configuration.
5345 * configure.host: Set gdb_host_cpu to sh for all sh*.
5346 (sh*-*-netbsdelf*): New host.
5347 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5348 (sh*-*-netbsdelf*): New target.
5349 * sh-nbsd-nat.c: New file.
5350 * sh-nbsd-tdep.c: New file.
5351 * sh-nbsd-tdep.h: New file.
5352 * config/sh/nbsd.mh: New file.
5353 * config/sh/nbsd.mt: New file.
5354 * config/sh/nm-nbsd.h: New file.
5355 * config/sh/tm-nbsd.h: New file.
5357 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5359 * sh-tdep.c (sh_osabi_names): Declare.
5360 (process_note_abi_tag_sections): New function.
5361 (get_elfosabi): Ditto.
5362 (sh_gdbarch_register_os_abi): Ditto.
5363 (sh_dump_tdep): Ditto.
5364 _initialize_sh_tdep): Use gdbarch_register to register
5365 sh_gdbarch_init and sh_dump_tdep.
5366 * config/sh/tm-sh.h (sh_osabi): Declare.
5367 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5369 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5371 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5372 (thumb_scan_prologue): Ditto.
5373 (arm_find_callers_reg): Ditto.
5374 (arm_frame_chain): Ditto.
5375 (arm_init_extra_frame_info): Ditto.
5376 (arm_frame_saved_pc): Ditto.
5377 (arm_pop_frame): Ditto.
5378 (arm_push_return_address): New function.
5379 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5380 call_dummy_location, call_dummy_breakpoint_offset_p,
5381 call_dummy_breakpoint_offset, call_dummy_p,
5382 call_dummy_stack_adjust_p, call_dummy_words,
5383 sizeof_call_dummy_words, call_dummy_start_offset,
5384 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5385 call_dummy_address, push_return_address and push_dummy_frame for
5386 generic dummy frames.
5388 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5390 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5391 size computation for alloca.
5392 (sh_fp_frame_init_saved_regs): Likewise.
5394 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5396 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5397 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5398 * arm-tdep.c (arm_store_return_value): Use them.
5399 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5400 * remote-rdp.c (remote_rdp_fetch_register): Use
5401 ARM_MAX_REGISTER_RAW_SIZE.
5402 (remote_rdp_store_register): Likewise.
5404 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5406 * dwarf2cfi.c: Code cleanup, removed unused variables,
5407 added default labels to switch {} statements.
5408 * x86-64-tdep.c: Ditto.
5409 * x86-64-linux-nat.c: Ditto.
5411 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5413 * solib.h: Protect against multiple inclusion.
5415 2002-05-06 Jim Blandy <jimb@redhat.com>
5417 Add first preprocessor macro-expansion files.
5418 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5419 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5420 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5421 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5422 (COMMON_OBS): Add macrotab.o, macroexp.o.
5423 (macroexp.o, macrotab.o): New rules.
5425 Separate the job of reading the line number info statement program
5426 header (...expialidocious) out into its own function.
5427 * dwarf2read.c (struct line_head, struct filenames, struct
5428 directories): Replace with...
5429 (struct line_header): New structure, containing the full
5430 contents of the statement program header, including the
5431 include directory and file name tables.
5432 (read_file_scope): If we have line number info, instead of just
5433 calling dwarf_decode_lines to do all the work, call
5434 dwarf_decode_line_header first to get a `struct line_header'
5435 containing the data in the statement program header, and then
5436 pass that to dwarf_decode_lines, which will pick up where that
5437 left off. Be sure to clean up the `struct line_header' object.
5438 (dwarf_decode_line_header, free_line_header, add_include_dir,
5439 add_file_name): New functions.
5440 (dwarf_decode_lines): Move all the code to read the statement
5441 program header into dwarf_decode_line_header. Take the line
5442 header it built as the first argument, instead of the offset to
5443 the compilation unit's line number info. Use the new `struct
5444 line_header' type instead of the old structures. No need to do
5445 cleanups here now, since we don't allocate anything.
5446 (dwarf2_statement_list_fits_in_line_number_section,
5447 dwarf2_line_header_too_long): New complaints.
5449 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5451 * gdbtypes.c (init_vector_type): New function.
5452 (build_builtin_type_vec128): Simplify the representation of SIMD
5454 (build_gdbtypes): Initialize new builtin vector types.
5455 (_initialize_gdbtypes): Register new vector types with gdbarch.
5456 (builtin_type_v4_float, builtin_type_v4_int32,
5457 builtin_type_v8_int16, builtin_type_v16_int8,
5458 builtin_type_v2_int32, builtin_type_v4_int16,
5459 builtin_type_v8_int8): New (renamed) SIMD types.
5461 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5463 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5464 (i387_fill_fxsave): Likewise.
5466 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5468 * alpha-tdep.c (alpha_extract_return_value): Don't use
5469 non-constant array size in prototype.
5471 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5473 From Brian Taylor <briant at model dot com>:
5474 * ui-out.c (ui_out_field_core_addr): Use the function
5475 longest_local_hex_string_custom'to format addresses > 32 bits
5478 * ui-out.c (ui_out_field_core_addr): Update comment.
5480 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5482 * stack.c (select_and_print_frame): Make static. Delete the
5484 (func_command): Update call.
5485 (select_frame_command): Delete code computing the frame level.
5486 * frame.h (select_and_print_frame): Delete declaration.
5488 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5490 * sparc-tdep.c (sparc_get_saved_register): Comment why
5491 get_prev_frame call is safe.
5493 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5495 * frame.h (select_frame): Delete level parameter.
5496 * stack.c (select_frame): Update. Use frame_relative_level to
5497 obtain the frame's level.
5498 (select_and_print_frame): Update call.
5499 (select_frame_command): Ditto.
5500 (up_silently_base): Ditto.
5501 (down_silently_base): Ditto.
5502 * ocd.c (ocd_start_remote): Ditto.
5503 * remote-rdp.c (remote_rdp_open): Ditto.
5504 * remote-mips.c (mips_initialize): Ditto.
5505 (common_open): Ditto.
5506 * remote-e7000.c (e7000_start_remote): Ditto.
5507 * m3-nat.c (select_thread): Ditto.
5508 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5509 (child_get_current_exception_event): Ditto.
5510 * varobj.c (varobj_create): Ditto.
5511 (varobj_update): Ditto.
5512 (c_value_of_root): Ditto.
5513 * tracepoint.c (finish_tfind_command): Ditto.
5514 * corelow.c (core_open): Ditto.
5515 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5516 * thread.c (info_threads_command): Ditto.
5517 (switch_to_thread): Ditto.
5518 * infrun.c (normal_stop): Ditto.
5519 (restore_selected_frame): Ditto.
5520 (restore_inferior_status): Ditto.
5521 * breakpoint.c (insert_breakpoints): Ditto.
5522 (watchpoint_check): Ditto.
5523 (bpstat_stop_status): Ditto.
5524 (do_enable_breakpoint): Ditto.
5525 * blockframe.c (flush_cached_frames): Ditto.
5526 (reinit_frame_cache): Ditto.
5528 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5530 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5533 2002-05-04 Jim Blandy <jimb@redhat.com>
5535 * gdbtypes.c (replace_type): Doc fix.
5537 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5539 * valprint.c (strcat_longest): Delete commented out function.
5542 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5544 * MAINTAINERS: Mark a29k as deleted.
5545 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5546 Move new configurations to the top.
5547 * configure.tgt: Remove a29k.
5548 * config/a29k/tm-vx29k.h: Delete.
5549 * config/a29k/vx29k.mt: Delete.
5550 * config/a29k/tm-a29k.h: Delete.
5551 * config/a29k/a29k-udi.mt: Delete.
5552 * config/a29k/a29k.mt: Delete.
5553 * a29k-tdep.c: Delete.
5554 * remote-udi.c: Delete.
5555 * remote-mm.c: Delete.
5556 * remote-eb.c: Delete.
5557 * remote-adapt.c: Delete.
5558 * Makefile.in: Remove obsolete code.
5559 * gdbserver/Makefile.in: Ditto.
5560 * config/s390/s390x.mt: Ditto.
5561 * config/s390/s390.mt: Ditto.
5562 * config/sparc/sparclynx.mh: Ditto.
5563 * config/sparc/linux.mh: Ditto.
5564 * config/pa/hppaosf.mh: Ditto.
5565 * config/pa/hppabsd.mh: Ditto.
5566 * config/ns32k/nbsd.mt: Ditto.
5567 * config/mips/vr5000.mt: Ditto.
5568 * config/m68k/sun3os4.mh: Ditto.
5569 * config/m68k/nbsd.mt: Ditto.
5570 * config/m68k/m68klynx.mh: Ditto.
5571 * config/m32r/m32r.mt: Ditto.
5572 * config/i386/x86-64linux.mt: Ditto.
5573 * config/i386/nbsdelf.mt: Ditto.
5574 * config/i386/nbsd.mt: Ditto.
5575 * config/i386/i386lynx.mh: Ditto.
5577 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5579 * target.c (debug_print_register): New function. Handle oversize
5581 (debug_to_fetch_registers): Call.
5582 (debug_to_store_registers): Call.
5584 2002-05-03 Jim Blandy <jimb@redhat.com>
5586 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5587 (read_type): Doc fix.
5588 * gdbtypes.c (replace_type): Doc fix.
5590 * stabsread.c (multiply_defined_struct): New complaint.
5591 (read_struct_type): If the type we were passed isn't empty, or
5592 incomplete, don't read the new struct type into it; complain,
5593 and return the original type unchanged. Take a new `type_code'
5594 argument, which is the type code for the new type.
5595 (read_type): Rather than storing the type's type code here, pass
5596 it as an argument to read_struct_type, and let that take care of
5597 storing it. That way, we don't overwrite the original type code,
5598 so read_struct_type can use it to decide whether we're overwriting
5599 something we shouldn't.
5600 (complain_about_struct_wipeout): New function.
5602 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5604 * gdbarch.sh: Assert that gdbarch is non-NULL.
5605 * gdbarch.c: Regenerate.
5607 2002-05-03 Jason Merrill <jason@redhat.com>
5609 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5612 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5614 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5615 (x86_64_dwarf2gdb_regno_map_length),
5616 (x86_64_dwarf2_reg_to_regnum): Added.
5617 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5618 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5619 (_initialize_x86_64_tdep): Synced with the change above.
5620 (x86_64_skip_prologue): Reformulated message.
5622 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5624 * f-exp.y: Also use new prev_lexptr variable
5625 to improve error reporting. Based on Michael Snyder
5626 2002-04-24 dated patch to c-exp.y.
5627 * jv-exp.y: Likewise.
5628 * m2-exp.y: Likewise.
5630 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5632 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5633 we are dealing with vectors.
5635 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5637 * config/m68k/tm-nbsd.h: Obvious fix,
5638 correct machine name.
5640 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5642 * p-typeprint.c (pascal_type_print_base): Add support
5643 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5645 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5647 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5648 for fondamental pascal 'char' type.
5650 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5652 * p-lang.h (is_pascal_string_type): Declaration changed,
5653 new sixth argument of type char ** added.
5654 * p-lang.c (is_pascal_string_type): Implementation
5655 changed. Args length_pos, length_size, string_pos, char_size
5656 can now be NULL. New argument arrayname set to the field
5657 name of the char array. Return value set to char array
5658 field index plus one.
5659 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5660 is_pascal_string_type function.
5662 2002-05-02 Andrew Cagney <cagney@redhat.com>
5664 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5665 <cagney@redhat.com> change.
5666 * gdbarch.c: Regenerate.
5668 2002-05-02 Andrew Cagney <cagney@redhat.com>
5670 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5671 before probing for a new one. Detect errorenous gdbarch_init
5673 * gdbarch.c: Regenerate.
5675 2002-05-01 Andrew Cagney <cagney@redhat.com>
5677 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5678 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5679 * config/v850/tm-v850.h: Ditto. Update copyright.
5681 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5683 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5686 2002-04-30 Michael Snyder <msnyder@redhat.com>
5688 * arm-tdep.c: Whitespace clean-ups.
5689 (arm_skip_prologue): Fix thinko; two lines
5690 should have been removed as part of 4/24 change.
5692 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5694 * rs6000-tdep.c: Added comment describing how fpscr register
5695 numbers were chosen.
5697 2002-04-30 Michael Snyder <msnyder@redhat.com>
5699 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5701 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5703 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5704 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5705 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5707 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5709 From Louis Hamilton <hamilton@redhat.com>:
5710 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5711 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5712 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5713 not bfd-private xcoff data, to determine wordsize.
5714 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5716 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5718 GDB 5.2 released from 5.2 branch.
5720 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5722 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5723 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5724 (x86_64_register_info_table): Added comments with register numbers.
5726 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5728 * rs6000-tdep.c (rs6000_extract_return_value,
5729 rs6000_store_return_value): Handle returning vectors.
5730 (rs6000_gdbarch_init): Use
5731 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5732 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5734 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5736 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5737 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5739 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5741 * hpread.c (hpread_psymtab_to_symtab_1,
5742 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5743 with fprintf_unfiltered (gdb_stderr,...).
5745 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5747 * remote-array.c (printf_monitor, write_monitor,
5748 array_insert_breakpoint, array_remove_breakpoint ):
5749 Replace fprintf (stderr,...
5750 with fprintf_unfiltered (gdb_stderr,....
5751 * remote-es.c: Likewise.
5752 * remote-os9k.c: Likewise.
5753 * remote-st.c: Likewise.
5755 2002-04-28 Andreas Schwab <schwab@suse.de>
5757 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5758 linux-proc.o and gcore.o.
5760 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5762 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5763 code without frame pointers.
5765 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5767 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5770 2002-04-26 Ben Elliston <bje@redhat.com>
5772 * target.c (do_xfer_memory): Correct reference to the new option
5773 "trust-readonly-sections".
5775 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5777 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5778 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5779 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5781 (read_array_type): Record the fact that this array type is really a
5782 vector (i.e. are passed in by value).
5784 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5786 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5787 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5788 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5789 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5790 * alpha-linux-tdep.c: Include frame.h.
5791 (alpha_linux_sigcontext_addr): New function.
5792 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5793 alpha_linux_sigcontext_addr.
5794 * alpha-osf1-tdep.c: Include gdbcore.h.
5795 (alpha_osf1_sigcontext_addr): New function.
5796 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5797 alpha_osf1_sigcontext_addr.
5798 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5799 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5801 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5803 * stack.c (selected_frame_level):
5804 (select_frame): Do not set selected_frame_level.
5805 * frame.h (selected_frame_level): Delete declaration.
5807 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5809 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5810 convert_from_func_ptr-addr when AIX / PowerOpen.
5812 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5814 * valops.c (hand_function_call): Call
5815 generic_save_call_dummy_addr.
5816 * frame.h (generic_save_call_dummy_addr): Declare.
5817 * blockframe.c (struct dummy_frame): Add fields call_lo and
5819 (generic_find_dummy_frame): Check for PC in range call_lo to
5820 call_hi instead of entry_point_address.
5821 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5822 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5823 (generic_save_call_dummy_addr): New function.
5825 2002-04-24 David S. Miller <davem@redhat.com>
5827 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5828 sparc_skip_prologue.
5829 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5830 information to find prologue when possible.
5831 (sparc_prologue_frameless_p): Call examine_prologue directly.
5832 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5833 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5835 (SKIP_PROLOGUE): Likewise.
5837 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5839 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5840 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5841 indicate that the condition it was testing is always true.
5842 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5843 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5844 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5846 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5848 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5849 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5850 tdep->jb_pc and tdep->jb_elt_size.
5851 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5852 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5853 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5854 * alpha-nat.c (get_longjmp_target): Remove.
5855 (JB_ELEMENT_SIZE): Ditto.
5857 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5858 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5859 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5860 to alpha_get_longjmp_target.
5861 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5862 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5863 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5865 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5867 * README: Update to GDB 5.2.
5869 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5871 * gdbarch.sh (LC_ALL): Set to `c'.
5873 2002-04-25 Theodore A. Roth <troth@verinet.com>
5875 * avr-tdep.c: Ran through gdb_indent.sh.
5877 2002-04-25 Theodore A. Roth <troth@verinet.com>
5879 * MAINTAINERS: Add myself as AVR maintainer.
5880 * NEWS: Note new target avr.
5882 2002-04-25 Theodore A. Roth <troth@verinet.com>
5884 * Makefile.in: Add support for AVR target.
5885 * configure.tgt: Add support for AVR target.
5886 * avr-tdep.c: New file
5887 * config/avr/avr.mt: New file.
5889 2002-04-25 Theodore A. Roth <troth@verinet.com>
5891 * MAINTAINERS: Add myself to write-after-approval.
5893 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5895 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5896 with fprintf_unfiltered (gdb_stderr,....
5898 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5901 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5903 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5905 * p-exp.y: Also use new prev_lexptr variable
5906 to improve error reporting. Based on Michael Snyder
5907 2002-04-24 dated patch to c-exp.y.
5909 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5911 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5912 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5913 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5915 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5917 (FUNCTION_START_OFFSET): Remove.
5918 (BREAKPOINT): Ditto.
5920 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5922 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5925 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5927 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5928 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5929 alpha_linux_pc_in_sigtramp.
5930 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5931 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5932 alpha_osf1_pc_in_sigtramp.
5933 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5934 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5935 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5936 alphafbsd_pc_in_sigtramp.
5937 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5938 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5939 alphanbsd_pc_in_sigtramp.
5940 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5941 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5943 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5945 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5947 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5949 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5951 (alphanbsd-nat.o): New dependency list.
5952 (alphanbsd-tdep.o): Ditto.
5953 * NEWS: Note new native NetBSD/alpha configuration.
5954 * alphanbsd-nat.c: New file.
5955 * alphanbsd-tdep.c: Ditto.
5956 * configure.host (alpha*-*-netbsd*): New host.
5957 * configure.tgt (alpha*-*-netbsd*): New target.
5958 * config/alpha/nbsd.mh: New file.
5959 * config/alpha/nbsd.mt: Ditto.
5960 * config/alpha/nm-nbsd.h: Ditto.
5961 * config/alpha/tm-nbsd.h: Ditto.
5963 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5965 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5966 (alpha-osf1-tdep.o): New dependency list.
5967 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5968 and skip_sigtramp_frame members.
5969 * alpha-linux-tdep.c: Include gdbcore.h.
5970 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5971 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5972 * alpha-osf1-tdep.c: New file.
5973 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5975 (alpha_frame_past_sigtramp_frame): New function.
5976 (alpha_dynamic_sigtramp_offset): Ditto.
5977 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5978 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5979 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5980 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5981 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5982 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5983 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5984 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5985 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5986 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5987 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5988 to find_solib_trampoline_target.
5989 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5990 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5991 (SKIP_TRAMPOLINE_CODE): Remove.
5992 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5993 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5994 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5995 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5996 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5997 (PROC_SIGTRAMP_MAGIC): Ditto.
5998 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5999 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6000 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6001 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6002 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6004 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6006 * NEWS: Note that Alpha targets are now multi-arch.
6008 2002-04-24 Michael Snyder <msnyder@redhat.com>
6010 * parser-defs.h (prev_lexptr): New external variable.
6011 * parse.c (parse_exp_1): Set prev_lexptr to null before
6012 calling the language-specific parser.
6013 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6014 (yyerror): Use prev_lexptr in error reporting.
6016 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6018 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6019 * gregset.h: If FILL_FPXREGSET is defined, provide
6020 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6021 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6022 is defined, call fill_fpxregset.
6024 2002-04-24 Roland McGrath <roland@frob.com>
6026 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6027 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6028 (supply_gregset, supply_fpregset): New functions.
6030 * gnu-nat.c (gnu_find_memory_regions): New function.
6031 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6032 (gnu_xfer_memory): Add a cast.
6034 2002-04-24 Michael Snyder <msnyder@redhat.com>
6036 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6037 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6038 of argument regs ("str r(0123), [r11, #-nn"]).
6039 (arm_skip_prologue): Better handling for frameless functions.
6040 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6041 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6043 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6045 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6046 NUM_PSEUDO_REGS can be used.
6048 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6050 * arch-utils.h: Update copyright.
6052 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6053 * gdbarch.h, gdbarch.c: Re-generate.
6055 * inferior.h (IN_SIGTRAMP): Delete definition.
6056 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6057 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6059 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6060 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6061 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6062 (find_proc_framesize): Ditto.
6063 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6064 (alpha_init_extra_frame_info): Ditto.
6065 * infrun.c (handle_inferior_event): Ditto.
6066 (handle_inferior_event): Ditto.
6067 (check_sigtramp2): Ditto.
6068 * blockframe.c (create_new_frame): Ditto.
6069 (get_prev_frame): Ditto.
6070 * ppc-linux-tdep.c: Update comments.
6071 * i386-linux-tdep.c: Update comments.
6072 * breakpoint.c (bpstat_what): Update comment.
6074 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6076 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6077 (regsets_store_inferior_registers): Removed cast to int from
6079 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6081 2002-04-24 David S. Miller <davem@redhat.com>
6083 * i960-tdep.c (register_in_window_p): New function.
6084 (i960_find_saved_register): Use it instead of
6085 REGISTER_IN_WINDOW_P.
6086 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6088 * symtab.h (find_stab_function_addr): Kill extern.
6089 * minsyms.c (find_stab_function_addr): Remove from here...
6090 * dbxread.c: ... to here, and mark it static.
6092 2002-04-20 David S. Miller <davem@redhat.com>
6094 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6095 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6097 2002-04-21 David S. Miller <davem@redhat.com>
6099 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6100 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6101 (vx_write_register): Likewise.
6103 2002-04-23 J. Brobecker <brobecker@gnat.com>
6105 * source.c (is_regular_file): New function.
6106 (openp): Check wether file to open is a regular file
6107 to avoid opening directories.
6109 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6111 * findvar.c (extract_signed_integer): Cast printf argument
6112 to suppress format warning.
6113 (extract_unsigned_integer): Likewise.
6114 * infcmd.c (registers_info): Likewise.
6115 * top.c (get_prompt_1): Likewise.
6116 * valops.c (value_assign): Likewise.
6117 * valprint.c (print_decimal): Likewise.
6119 2002-04-22 H.J. Lu (hjl@gnu.org)
6121 * c-exp.y (typebase): Support
6123 [long|long long|short] [signed|unsigned] [int|]
6127 signed [long|long long|short] int
6129 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6131 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6133 * vax-tdep.h: New file.
6134 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6135 Make several routines static.
6136 (vax_get_saved_register): New function.
6137 (vax_gdbarch_init): New function.
6138 (_initialize_vax_tdep): Register vax_gdbarch_init.
6139 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6140 Remove macros now under the control of gdbarch.
6142 2002-04-22 Michael Snyder <msnyder@redhat.com>
6144 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6145 Some whitespace and coding standards tweaks.
6147 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6149 * vax-tdep.c: Include regcache.h.
6150 (vax_call_dummy_words): New.
6151 (sizeof_vax_call_dummy_words): New.
6152 (vax_fix_call_dummy): New function.
6153 (vax_saved_pc_after_call): Ditto.
6154 * config/vax/tm-vax.h: Don't include regcache.h.
6155 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6156 (CALL_DUMMY): Remove.
6157 (CALL_DUMMY_WORDS): Define.
6158 (SIZEOF_CALL_DUMMY_WORDS): Define.
6159 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6161 2002-04-18 Michael Snyder <msnyder@redhat.com>
6163 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6165 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6167 * vax-tdep.c (vax_frame_chain): New function.
6168 (vax_push_dummy_frame): Ditto.
6169 (vax_pop_frame): Ditto.
6170 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6171 (FRAMELESS_FUNCTION_INVOCATION): Use
6172 generic_frameless_function_invocation_not.
6173 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6174 (POP_FRAME): Use vax_pop_frame.
6176 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6178 * vax-tdep.c (vax_store_struct_return): New function.
6179 (vax_extract_return_value): Ditto.
6180 (vax_store_return_value): Ditto.
6181 (vax_extract_struct_value_address): Ditto.
6182 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6183 vax_store_struct_return.
6184 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6185 (STORE_RETURN_VALUE): Use vax_store_return_value.
6186 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6188 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6190 * vax-tdep.c (vax_frame_saved_pc): New function.
6191 (vax_frame_args_address_correct): Ditto.
6192 (vax_frame_args_address): Ditto.
6193 (vax_frame_locals_address): Ditto.
6194 (vax_frame_num_args): Move code to be in proximity to
6195 other frame-related functions.
6196 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6197 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6198 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6199 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6200 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6202 2002-04-22 H.J. Lu (hjl@gnu.org)
6204 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6207 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6209 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6210 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6211 (FRAME_INIT_SAVED_REGS): New macro.
6213 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6215 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6217 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6219 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6221 (fetch_osf_core_registers): Likewise.
6222 (supply_gregset): Likewise.
6224 2002-04-22 J. Brobecker <brobecker@gnat.com>
6226 * symfile.h (get_section_index): Define.
6227 * symfile.c (get_section_index): New function.
6228 * mdebugread.c (SC_IS_SBSS): New macro.
6229 (SC_IS_BSS): Return true for the scBss storage class only, as
6230 the scSBss storage class refers to the .sbss section.
6231 (parse_partial_symbols): Discard the symbols which associated
6232 section does not exist.
6233 Make sure to use the .sbss section index for symbols which
6234 storage class is scBss, rather than using the .bss section index.
6236 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6238 * vax-tdep.c: Update copyright years.
6239 (vax_register_name): New function.
6240 (vax_register_byte): Ditto.
6241 (vax_register_raw_size): Ditto.
6242 (vax_register_virtual_size): Ditto.
6243 (vax_register_virtual_type): Ditto.
6244 * config/vax/tm-vax.h: Update copyright years.
6245 (REGISTER_NAMES): Remove.
6246 (REGISTER_NAME): Define.
6247 (REGISTER_BYTE): Use vax_register_byte.
6248 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6249 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6250 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6252 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6254 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6256 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6258 2002-04-21 David S. Miller <davem@redhat.com>
6260 * arch-utils.c (generic_prologue_frameless_p): Kill
6261 SKIP_PROLOGUE_FRAMELESS_P code.
6262 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6264 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6265 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6266 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6268 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6269 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6270 (sparc_gdbarch_init): Pass it to
6271 set_gdbarch_prologue_frameless_p.
6273 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6275 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6276 (alphabsd-nat.o): New dependency list.
6278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6280 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6282 (alpha-linux-tdep.o): New dependency list.
6283 (alphafbsd-tdep.o): Likewise.
6285 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6287 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6289 * alpha-tdep.c: ...from here.
6290 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6292 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6294 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6295 prototype from here...
6296 * alpha-tdep.h: ...to here.
6298 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6300 * frame.h (selected_frame_level): Document as deprecated.
6301 (frame_relative_level): Declare.
6302 * stack.c (frame_relative_level): New function.
6303 (selected_frame_level): Document as deprecated.
6304 (select_frame): Do not set the selected_frame_level.
6306 * stack.c (frame_info, record_selected_frame): Update.
6307 (frame_command, current_frame_command): Update.
6308 (up_silently_base, up_command, down_silently_base): Update.
6309 (down_command): Update.
6310 * inflow.c (kill_command): Update.
6311 * tracepoint.c (finish_tfind_command): Update.
6312 * corelow.c (core_open): Update.
6313 * thread.c (info_threads_command): Update.
6314 (do_captured_thread_select): Update.
6315 * infcmd.c (finish_command): Update.
6316 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6318 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6320 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6322 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6324 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6327 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6329 * alphafbsd-tdep.c: Update copyright years. Include
6331 (alphafbsd_use_struct_convention): Make static.
6332 (alphafbsd_init_abi): New function.
6333 (_initialize_alphafbsd_tdep): New function.
6334 * config/alpha/tm-fbsd.h: Update copyright years.
6335 (USE_STRUCT_CONVENTION): Remove.
6337 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6339 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6340 an Alpha ABI variant.
6341 (alpha_abi_handler_list): Declare.
6342 (alpha_gdbarch_register_os_abi): New function.
6343 (alpha_gdbarch_init): Give registered ABI variant handlers a
6344 chance to tweak the gdbarch once we have set up defaults.
6345 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6347 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6349 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6350 to standard_coerce_float_to_double.
6351 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6353 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6355 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6356 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6357 from gdbarch_tdep rather than a constant.
6358 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6359 the default text address for all Alpha Unix ABIs.
6360 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6361 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6363 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6365 * alpha-tdep.h: New file. Includes several Alpha target constants
6367 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6368 let gdbarch deal with.
6369 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6370 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6372 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6373 Alpha target register names.
6374 * alphabsd-nat.c: Likewise.
6375 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6376 Alpha target register names. Make serveral routines static.
6377 (alpha_get_saved_register): New function.
6378 (alpha_abi_names): New.
6379 (process_note_abi_tag_sections): New function.
6380 (get_elfosabi): New function.
6381 (alpha_gdbarch_init): New function.
6382 (alpha_dump_tdep): New function.
6383 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6385 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6387 * frame.c (find_saved_register): Delete #ifdef
6388 HAVE_REGISTER_WINDOWS code.
6389 * config/sparc/tm-sparc.h: Update comments.
6390 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6392 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6394 * i960-tdep.c (i960_find_saved_register): New function.
6395 (i960_get_saved_register): New function.
6396 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6397 (i960_get_saved_register): Declare.
6398 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6400 2002-04-20 David S. Miller <davem@redhat.com>
6402 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6404 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6406 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6407 instead of NUM_PSEUDO_REGS.
6409 2002-04-20 David S. Miller <davem@redhat.com>
6411 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6412 GDB_MULTI_ARCH_PARTIAL
6413 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6414 define, let tm-sp64.h do it.
6416 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6418 * frame.c (find_saved_register): Avoid a NULL pointer
6419 dereference and actually walk the frame list.
6421 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6423 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6424 sorted in most most-recent-used order. Document.
6425 * gdbarch.h, gdbarch.c: Regenerate.
6427 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6429 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6430 (add_inferior): Call create_register_cache.
6431 (clear_inferiors): Call free_register_cache.
6432 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6433 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6434 (registers): Remove.
6435 (get_regcache): New function.
6436 (create_register_cache, free_register_cache): New functions.
6437 (set_register_cache): Don't initialize the register cache here.
6438 (registers_to_string, registers_from_string, register_data): Call
6440 * gdbserver/regcache.h: Add prototypes.
6441 * gdbserver/server.h: Likewise.
6443 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6445 * gdbserver/mem-break.c: New file.
6446 * gdbserver/mem-break.h: New file.
6447 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6449 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6451 (clear_inferiors): Free target_data member if set.
6452 (inferior_target_data, set_inferior_target_data): New functions.
6453 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6454 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6455 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6456 (struct inferior_linux_data): New.
6457 (linux_create_inferior): Use set_inferior_target_data.
6458 (linux_attach): Likewise. Call add_inferior.
6459 (linux_wait_for_one_inferior): New function.
6460 (linux_wait): Call it.
6461 (linux_write_memory): Add const.
6462 (initialize_low): Call set_breakpoint_data.
6463 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6465 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6467 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6469 * gdbserver/target.c (read_inferior_memory)
6470 (write_inferior_memory): New functions.
6471 * gdbserver/target.h (read_inferior_memory)
6472 (write_inferior_memory): Change macros to prototypes.
6473 (struct target_ops): Update comments. Add const to write_memory
6476 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6478 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6480 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6481 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6482 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6485 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6488 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6489 (build_builtin_type_vec128): Ditto.
6490 (append_composite_type_field): Fix calculation of type length in
6493 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6495 * config/djgpp/README: Update.
6497 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6500 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6502 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6503 (alpha_setup_arbitrary_frame): ...to this.
6504 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6505 for alpha_setup_arbitrary_frame.
6507 2002-04-18 Andrew Cagney <cagney@redhat.com>
6509 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6510 * gdbarch.h, gdbarch.c: Regenerate.
6512 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6513 * target.h (memory_breakpoint_from_pc): Update declaration.
6514 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6516 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6517 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6518 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6519 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6520 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6521 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6522 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6523 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6524 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6525 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6526 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6527 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6529 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6531 * monitor.c (monitor_insert_breakpoint): Ditto.
6532 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6534 * config/mcore/tm-mcore.h: Update copyright.
6535 * mem-break.c: Ditto.
6536 * xstormy16-tdep.c: Ditto.
6538 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6540 * p-exp.y: Add precedence rule for '^' token.
6541 This removes the shift/reduce conflicts.
6542 Remove the comment concerning these shift/reduce conflicts.
6544 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6546 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6547 (registers_powerpc_nofp): New register set for processors
6548 without floating point unit.
6550 2002-04-18 David S. Miller <davem@redhat.com>
6552 * MAINTAINERS: Add myself to write-after-approval.
6554 2002-04-17 Michael Snyder <msnyder@redhat.com>
6556 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6558 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6560 * rs6000-tdep.c (frame_initial_stack_address): Use
6561 frame_register_read to read the alloca_reg.
6563 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6565 * frame.c (find_saved_register): Find saved registers in the next
6569 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6571 * gdbarch.sh (LANG): Set to ``c''.
6573 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6575 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6577 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6579 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6582 * hpread.c (hpread_get_lntt): Add declaration.
6583 Also fix PR gdb/391.
6585 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6587 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6588 * aclocal.m4, configure: Re-generate.
6591 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6593 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6594 instead of tm_print_insn.
6596 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6598 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6600 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6602 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6603 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6604 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6606 2002-04-12 Don Howard <dhoward@redhat.com>
6608 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6609 max_user_call_depth.
6610 (init_cmd_lists): Initialize the new value;
6611 * cli/cli-script.c (execute_user_command): Limit the call depth of
6612 user defined commands. This avoids a core-dump when user commands
6613 are infinitly recursive.
6615 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6617 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6618 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6619 from tdep struct instead of DEFAULT_LR_SAVE.
6620 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6621 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6622 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6624 2002-04-12 Michael Snyder <msnyder@redhat.com>
6626 * Remote.c: Spelling fix.
6627 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6628 If no symbol found for "sbrk", try "_sbrk".
6629 (make_output_phdrs): Use bfd_section_name.
6630 (gcore_copy_callback): Use bfd_section_name.
6631 * eval.c: Indentation fix-ups.
6632 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6633 in case it gets applied to an address that is already
6634 in the instruction space.
6635 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6636 * symfile.c: Fix indentation, long lines.
6637 * source.c: White space fix-up.
6639 2002-04-12 Andrew Cagney <cagney@redhat.com>
6641 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6642 * frame.c (frame_register_read): New function. Return non-zero on
6644 (read_relative_register_raw_bytes_for_frame): Delete.
6645 (read_relative_register_raw_bytes): Delete.
6646 * frame.h (frame_register_read): Declare.
6647 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6649 * infcmd.c (do_registers_info): Ditto.
6650 * hppa-tdep.c: Ditto.
6651 * rs6000-tdep.c: Ditto.
6652 * h8500-tdep.c: Ditto.
6653 * mips-tdep.c: Ditto.
6654 * h8300-tdep.c: Ditto.
6655 * z8k-tdep.c: Ditto.
6657 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6659 From Jimi X <jimix@watson.ibm.com>:
6660 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6663 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6665 From Jimi X <jimix@watson.ibm.com>:
6666 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6669 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6671 From Jimi X <jimix@watson.ibm.com>:
6672 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6673 register sets for these processor variants.
6675 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6677 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6678 registers which are allowed to fail to store.
6679 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6680 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6681 (ppc_cannot_store_register): FPSCR may not be storable.
6682 * regformats/reg-ppc.dat: Support FPSCR.
6684 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6686 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6687 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6688 Add fpscr as an invalid/unfetchable register.
6689 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6690 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6691 (fill_fpregset): Add support for register fpscr.
6692 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6693 (fill_gregset): Account for the fact that register ``mq'' might
6695 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6696 (registers_power): Add fpscr to register set at slot 71.
6697 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6698 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6700 2002-04-11 Michael Snyder <msnyder@redhat.com>
6702 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6703 * configure: Regenerate.
6704 * config.in: Regenerate.
6705 * acconfig.h: Add define for _SYSCALL32.
6706 * core-sol2.c: Remove #define _SYSCALL32.
6707 * solib-legacy.c: Remove #define _SYSCALL32.
6709 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6711 * stack.c (select_frame): Cleanup internal error message, do not
6714 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6716 * stack.c (select_frame): Check that selected_frame and the
6717 specified level are as expected.
6718 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6720 * frame.h (struct frame_info): Add field `level'. Update
6722 Work-in-progress PR gdb/464.
6724 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6726 * maint.c (maint_print_section_info): Rename print_section_info.
6727 (print_bfd_section_info, print_objfile_section_info): Update.
6728 * inferior.h (struct gdbarch): Add opaque declaration.
6729 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6730 * gdbarch.h: Regenerate.
6732 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6734 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6735 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6736 (kernel_u_size): Added.
6737 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6738 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6740 2002-04-04 Jim Ingham <jingham@apple.com>
6742 * valarith.c (find_size_for_pointer_math): New function, either returns
6743 the size for a pointer's target, returns 1 for void *, or errors for
6745 (value_add, value_sub): use find_size_for_pointer_math.
6747 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6749 * linux-low.c (linux_look_up_symbols): New hook.
6750 (linux_target_ops): Add linux_look_up_symbols.
6751 * remote-utils.c (decode_address): New function.
6752 (look_up_one_symbol): New function.
6753 * server.c (handle_query): Call target look_up_symbols hook.
6754 * server.h (look_up_one_symbol): Add prototype.
6755 * target.h (struct target_ops): Add look_up_symbols hook.
6757 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6759 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6760 * ChangeLog: Correct paths in last ChangeLog entry.
6762 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6764 * gdbserver/linux-low.h: Remove obsolete prototypes.
6765 (struct linux_target_ops): New.
6766 (extern the_low_target): New.
6767 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6768 (register_addr): Use the_low_target explicitly.
6769 (fetch_register): Likewise.
6770 (usr_fetch_inferior_registers): Likewise.
6771 (usr_store_inferior_registers): Likewise.
6772 * gdbserver/linux-arm-low.c (num_regs): Remove.
6773 (arm_num_regs): Define.
6774 (arm_regmap): Renamed from regmap, made static.
6775 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6777 (arm_cannot_store_register): Renamed from cannot_store_register,
6779 (the_low_target): New.
6780 * gdbserver/linux-i386-low.c (num_regs): Remove.
6781 (i386_num_regs): Define.
6782 (i386_regmap): Renamed from regmap, made static.
6783 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6785 (i386_cannot_store_register): Renamed from cannot_store_register,
6787 (the_low_target): New.
6788 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6789 (ia64_num_regs): Define.
6790 (ia64_regmap): Renamed from regmap, made static.
6791 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6793 (ia64_cannot_store_register): Renamed from cannot_store_register,
6795 (the_low_target): New.
6796 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6797 (m68k_num_regs): Define.
6798 (m68k_regmap): Renamed from regmap, made static.
6799 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6801 (m68k_cannot_store_register): Renamed from cannot_store_register,
6803 (the_low_target): New.
6804 * gdbserver/linux-mips-low.c (num_regs): Remove.
6805 (mips_num_regs): Define.
6806 (mips_regmap): Renamed from regmap, made static.
6807 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6809 (mips_cannot_store_register): Renamed from cannot_store_register,
6811 (the_low_target): New.
6812 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6813 (ppc_num_regs): Define.
6814 (ppc_regmap): Renamed from regmap, made static.
6815 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6817 (ppc_cannot_store_register): Renamed from cannot_store_register,
6819 (the_low_target): New.
6820 * gdbserver/linux-s390-low.c (num_regs): Remove.
6821 (s390_num_regs): Define.
6822 (s390_regmap): Renamed from regmap, made static.
6823 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6825 (s390_cannot_store_register): Renamed from cannot_store_register,
6827 (the_low_target): New.
6828 * gdbserver/linux-sh-low.c (num_regs): Remove.
6829 (sh_num_regs): Define.
6830 (sh_regmap): Renamed from regmap, made static.
6831 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6833 (sh_cannot_store_register): Renamed from cannot_store_register,
6835 (the_low_target): New.
6836 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6837 (the_low_target): New.
6839 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6841 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6842 override FP_REGNUM with frame->fp. Update copyright.
6843 * parse.c (num_std_regs, std_regs): Delete.
6844 (target_map_name_to_register): Do not search std_regs. Update
6845 function description.
6846 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6847 declarations. Update copyright.
6850 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6852 * gdbserver/Makefile.in: Add stamp-h target.
6853 * gdbserver/configure.in: Create stamp-h.
6854 * gdbserver/configure: Regenerated.
6856 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6858 * gdbserver/inferiors.c: New file.
6859 * gdbserver/target.c: New file.
6860 * gdbserver/target.h: New file.
6861 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6863 * gdbserver/linux-low.c (inferior_pid): New static variable,
6864 moved from server.c.
6865 (linux_create_inferior): Renamed from create_inferior.
6866 Call add_inferior. Return 0 on success instead of a PID.
6867 (linux_attach): Renamed from myattach.
6868 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6869 (linux_thread_alive): Renamed from mythread_alive.
6870 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6872 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6873 (regsets_store_inferior_registers): Correct error message.
6874 Add missing ``return 0''.
6875 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6876 (linux_store_registers): Renamed from store_inferior_registers.
6877 (linux_read_memory): Renamed from read_inferior_memory.
6878 (linux_write_memory): Renamed from write_inferior_memory.
6879 (linux_target_ops): New structure.
6880 (initialize_low): Call set_target_ops ().
6881 * gdbserver/remote-utils.c (unhexify): New function.
6882 (hexify): New function.
6883 (input_interrupt): Send signals to ``signal_pid''.
6884 * gdbserver/server.c (inferior_pid): Remove.
6885 (start_inferior): Update create_inferior call.
6886 (attach_inferior): Call add_inferior.
6887 (handle_query): New function.
6888 (main): Call handle_query for `q' packets.
6889 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6890 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6892 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6894 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6896 * gdbserver/configure.in: Check for <string.h>
6897 * gdbserver/configure: Regenerate.
6898 * gdbserver/config.in: Regenerate.
6899 * gdbserver/gdbreplay.c: Include needed system headers.
6900 (remote_open): Remove strchr prototype.
6901 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6902 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6903 (supply_register_by_name): Likewise.
6904 (collect_register): Change buf argument to void *.
6905 (collect_register_by_name): Likewise.
6906 * gdbserver/regcache.h: Add missing prototypes.
6907 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6908 * gdbserver/server.c (handle_query): New function.
6909 (attached): New static variable, moved out of main.
6910 (main): Quiet longjmp clobber warnings.
6911 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6912 * gdbserver/utils.c (error): Remove NORETURN.
6915 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6917 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6918 after the last symbol in a block.
6920 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6922 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6923 is non zero as a found symbol.
6925 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6927 * findvar.c: Include "builtin-regs.h".
6928 (value_of_register): Call value_of_builtin_reg when applicable.
6929 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6930 (target_map_name_to_register): Call
6931 builtin_reg_map_name_to_regnum.
6932 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6933 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6934 (builtin_regs_h): Define.
6935 (builtin-regs.o): New target.
6936 (findvar.o): Add $(builtin_regs_h).
6937 * builtin-regs.c, builtin-regs.h: New files.
6938 * std-regs.c: New file.
6939 Partial fix for PR gdb/251.
6941 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6943 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6944 it's no longer required.
6946 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6948 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6950 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6952 From Jimi X <jimix@watson.ibm.com>:
6953 * rs6000-tdep.c (rs6000_software_single_step): Use
6954 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6955 and size. Use target_insert_breakpoint() and
6956 target_remove_breakpoint() to insert and remove breakpoints
6957 instead of explicit memory reads and writes.
6959 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6961 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6962 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6963 ELF_OBJECT_FORMAT ifdef.
6965 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6967 From Jimi X <jimix@watson.ibm.com>:
6968 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6970 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6972 From Jimi X <jimix@watson.ibm.com>:
6973 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6974 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6976 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6978 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6979 s/asprintf/xasprintf/.
6980 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6982 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6984 I believe Jeff Law denies responsability for this one:
6985 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6986 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6987 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6988 Work-around for PR gdb/366.
6990 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6992 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6993 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6994 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6996 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6998 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6999 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7002 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7004 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7007 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7009 * README (Reporting Bugs in GDB): Document the bug web page as the
7010 prefered way of submitting bugs.
7013 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7015 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7017 * gdbarch.h, gdbarch.c: Re-generate.
7019 2002-04-07 Andreas Schwab <schwab@suse.de>
7021 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7022 buffer to regcache_collect.
7024 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7026 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7027 * gdbarch.c, gdbarch.h: Re-generate.
7029 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7031 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7032 declaration. Fix -Werror.
7034 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7036 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7037 * gdbarch.c: Regenerate.
7039 2002-04-05 Michael Snyder <msnyder@redhat.com>
7041 * breakpoint.c (clear_command): Rewrite middle section to
7042 combine two loops with identical control conditions.
7043 Add a cleanup to eliminate a memory leak.
7044 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7046 2002-04-05 H.J. Lu (hjl@gnu.org)
7048 * solib-svr4.c (bkpt_names): Add "__start".
7050 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7052 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7053 as test for 64 bit target.
7055 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7057 * h8500-tdep.c (h8500_write_fp): Delete function.
7058 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7059 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7060 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7062 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7063 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7065 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7066 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7067 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7068 (d10v_write_fp): Delete function.
7069 * inferior.h (write_fp, generic_target_write_fp): Delete
7071 * regcache.c (generic_target_write_fp): Delete function.
7072 (write_fp): Delete function.
7073 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7074 * gdbarch.h, gdbarch.c: Regenerate.
7075 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7076 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7077 (sparc64_write_fp): Delete declaration.
7078 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7079 (h8500_write_fp): Delete declaration.
7081 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7083 * sparc-tdep.c (sparc64_write_fp): Delete.
7084 (sparc_push_dummy_frame): Replace write_fp call with code to store
7086 (sparc_gdbarch_init): Do not initialize write_fp.
7088 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7090 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7093 2002-03-29 Jim Blandy <jimb@redhat.com>
7095 * stack.c (get_selected_block): Add new argument `addr_in_block',
7096 used to return the exact code address we used to select the block,
7098 * blockframe.c (get_frame_block, get_current_block): Same.
7099 * frame.h (get_frame_block, get_current_block,
7100 get_selected_block): Update declarations.
7101 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7102 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7104 2002-04-05 Michael Snyder <msnyder@redhat.com>
7106 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7109 2002-04-05 J. Brobecker <brobecker@gnat.com>
7111 * utils.c (xfullpath): New function.
7112 * defs.h (xfullpath): Add declaration.
7113 * source.c (openp): Use xfullpath in place of gdb_realpath to
7114 avoid resolving the basename part of filenames when the
7115 associated file is a symbolic link. This fixes a potential
7116 inconsistency between the filenames known to GDB and the
7117 filenames it prints in the annotations.
7118 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7119 to be able to match a filename with either the real filename, or
7120 the name of any symbolic link to this file.
7121 (lookup_partial_symtab): Ditto.
7123 2002-04-04 Michael Snyder <msnyder@redhat.com>
7125 * breakpoint.c: Add support for hardware breakpoints in overlays.
7126 (overlay_events_enabled): New state variable.
7127 (insert_breakpoints): Use overlay_events_enabled to decide
7128 whether to attempt to set a breakpoint at the overlay load addr.
7129 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7130 (remove_breakpoint): Use overlay_events_enabled to decide
7131 whether breakpoints need to be removed from overlay load addr.
7132 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7133 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7134 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7135 disable_overlay_breakpoints): Update overlay_events_enabled.
7137 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7139 * dwarf2read.c (struct function_range): New.
7140 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7141 (check_cu_functions): New.
7142 (read_file_scope): Initialize global function lists.
7143 Call dwarf_decode_line after processing children.
7144 (read_func_scope): Add to global function list.
7145 (dwarf_decode_lines): Call check_cu_functions everywhere
7146 record_line is called. Call record_line with a linenumber
7147 of 0 to mark sequence ends.
7149 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7151 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7152 change sync with glibc.
7154 2002-04-03 Jim Blandy <jimb@redhat.com>
7156 * configure.in: Call AC_C_INLINE.
7157 * configure: Regenerated.
7159 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7161 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7162 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7164 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7166 * NEWS: Mention gcore support on FreeBSD/i386.
7168 * fbsd-proc.c: New file.
7169 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7170 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7172 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7175 2002-03-29 Jim Blandy <jimb@redhat.com>
7177 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7178 unescaped newlines in string literals, but newer ones don't. So
7181 2002-03-26 Michael Snyder <msnyder@redhat.com>
7182 Andrew Cagney <cagney@redhat.com>
7184 * cli/cli-dump.c: New file. Dump memory to file,
7185 restore file to memory.
7186 * cli/cli-dump.h: New file.
7187 * Makefile.in: Add rules, dependencies for cli-dump.o.
7188 * NEWS: Mention new commands.
7190 2002-03-28 Michael Snyder <msnyder@redhat.com>
7192 * symfile.c (symbol_file_add): Move test for null symbols to later.
7194 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7196 From veksler at il.ibm.com:
7197 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7198 the xstrduped original path.
7201 2002-03-27 Michael Snyder <msnyder@redhat.com>
7203 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7204 * infcmd.c (_initialize_infcmd): Ditto.
7205 * language.c (_initialize_language): Ditto.
7206 * symfile.c (_initialize_symfile): Ditto.
7207 * top.c (_init_main): Ditto.
7208 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7210 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7212 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7213 vector registers handling.
7214 (skip_prologue): Handle new AltiVec instructions. Fill in new
7215 fields of frame data.
7216 (frame_get_saved_regs): Fill in information for AltiVec registers.
7218 2002-03-27 Jim Blandy <jimb@redhat.com>
7220 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7221 a function; leave this macro here to invoke that function.
7222 (symbol_init_mangled_name): Declaration for that function.
7223 * symtab.c (symbol_init_mangled_name): New function.
7225 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7227 * valarith.c: Replace strerror with safe_strerror.
7228 * tracepoint.c: Ditto.
7230 * go32-nat.c: Ditto.
7234 2002-03-27 Andreas Schwab <schwab@suse.de>
7236 * event-top.c (command_line_handler): Remove useless if.
7238 2002-03-27 Andreas Jaeger <aj@suse.de>
7240 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7243 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7245 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7246 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7247 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7248 (x86_64_linux_dr_get_status, supply_gregset),
7249 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7250 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7251 (x86_64_register_info_table): Add.
7252 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7253 (x86_64_register_raw_size, x86_64_register_virtual_type),
7254 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7255 general x86_64_register_info_table.
7256 (i386_gdbarch_init): gdbarch_register_bytes is now set
7257 dynamicaly during initialization.
7258 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7259 * gdbserver/linux-x86-64-low.c: Ditto.
7261 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7263 * gdbserver/server.c (main): Call target_signal_to_host_p
7264 and target_signal_to_host on signals received from the remote.
7265 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7266 target_signal_from_host on signals sent to the remote.
7267 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7268 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7270 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7272 * signals/signals.c: Include "server.h" in gdbserver build.
7273 (target_signal_from_name): Don't use STREQ.
7274 (_initialize_signals): Likewise. Don't include function in
7277 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7279 * signals.c: Moved to...
7280 * signals/signals.c: Here.
7281 * Makefile (signals.o): Update.
7283 2002-03-26 Jeff Law (law@redhat.com)
7285 * somread.c (som_symtab_read): Remove some commented out code and
7286 updated related comments. Do not set the minimal symbol table to
7287 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7288 in a dynamic executable.
7289 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7290 where we are unable to find the minimal symbol for the given
7293 2002-03-25 Jeff Law (law@redhat.com)
7295 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7297 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7299 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7301 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7303 * command.h: Update copyright.
7304 (struct cmd_list_element): Replace definition with opaque
7306 (enum cmd_types): Document that it will eventually be moved to
7308 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7309 (MALLOCED_REPLACEMENT): Delete macro.
7310 * Makefile.in (cli_decode_h): Add $(command_h).
7311 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7312 * top.c: Include "cli/cli-decode.h".
7313 * completer.c: Include "cli/cli-decode.h".
7314 * maint.c: Include "cli/cli-decode.h".
7315 * cli/cli-decode.h: Include "command.h".
7316 (enum command_class): Delete.
7317 (enum cmd_types): Comment out.
7318 (enum cmd_auto_boolean): Delete.
7319 (enum var_types): Delete.
7321 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7323 * cli/cli-decode.c: Include "gdb_assert.h".
7324 (add_set_or_show_cmd): New static function.
7325 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7326 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7327 all fields, such as func, from the set command.
7329 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7331 * MAINTAINERS (sh-elf): Change warning flag to -w.
7333 2002-03-23 Andrew Cagney <cagney@redhat.com>
7335 * defs.h (error): Add printf format attribute.
7336 * thread-db.c (thread_from_lwp): Fix error format string.
7337 * stack.c (parse_frame_specification): Ditto.
7338 * cli/cli-decode.c (undef_cmd_error): Ditto.
7339 * scm-lang.c (scm_lookup_name): Ditto.
7340 * tracepoint.c (trace_error): Ditto.
7341 * remote-utils.c (usage): Ditto.
7342 * remote.c (compare_sections_command): Ditto.
7345 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7347 * gdbtypes.c (append_composite_type_field): New function.
7348 (init_composite_type): New function.
7349 * gdbtypes.h (append_composite_type_field): Declare.
7350 (init_composite_type): Ditto.
7352 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7354 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7356 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7357 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7358 structure returning convention for SYSV ABI case, but not
7359 for GNU/Linux, FreeBSD, or NetBSD.
7361 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7363 * symtab.h (lookup_block_symbol): Add mangled_name argument
7366 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7367 with new mangled_name argument.
7368 * linespec.c (decode_line_1): Likewise.
7369 * valops (value_of_this): Likewise.
7370 * symtab.c (lookup_transparent_type): Likewise.
7371 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7372 (lookup_symbol): If we are given a mangled name, pass it down
7373 to lookup_symbol_aux.
7374 (lookup_block_symbol): If we are given a mangled name to check
7375 against, only return symbols which match it.
7377 2002-03-22 Christopher Faylor <cgf@redhat.com>
7379 * win32-nat.c (child_create_inferior): Check for proper shell to use
7380 here, in case the user changes it on the fly.
7381 (_initialize_inftarg): Remove shell path considerations.
7383 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7385 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7386 for gdbarch_max_register_raw_size and max_register_virtual_size.
7387 Adjust copyright year.
7389 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7391 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7392 in a function to cover the entire beginning of the function
7393 as well if it does not already.
7395 2002-03-21 Tom Rix <trix@redhat.com>
7397 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7398 (rs6000_ptrace64): Renamed from ptrace64.
7400 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7402 * gdbserver/remote-utils.c (remote_open): Don't call
7403 getprotobyname, we're all using TCP here so just use
7405 * gdbserver/gdbreplay.c (remote_open): Ditto.
7407 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7409 * regcache.c (_initialize_regcache): No need to call
7410 build_regcache() at this time; it gets called whenever
7411 the gdbarch changes.
7413 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7415 * sparc-nat.c: Include sys/param.h where possible.
7417 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7420 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7421 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7422 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7424 * stabsread.c (rs6000_builtin_type): Likewise.
7425 (read_sun_floating_type): Likewise.
7427 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7429 * stabsread.c (read_member_functions): Remove skip code for duplicate
7430 constructor/destructor methods. Use standard parsing for these
7431 methods and just do not chain them to the list of methods after
7434 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7436 * coffread.c: Remove redundant static declarations. Replace
7437 occurrences of `PTR' with `void *'.
7438 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7439 * top.h (quit_cover): Likewise.
7440 * defs.h (catch_errors): Likewise.
7442 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7444 * defs.h (XMALLOC): Define.
7445 * gdb-events.sh (XMALLOC): Delete macro.
7446 * gdb-events.c, gdb-events.h: Regenerate.
7447 * gdbarch.sh (XMALLOC): Delete macro.
7448 * gdbarch.c: Regenerate.
7449 * serial.c (XMALLOC): Delete macro.
7450 * ui-file.c (XMALLOC): Ditto.
7451 * ser-unix.h (XMALLOC): Ditto.
7452 * sh-tdep.c (XMALLOC): Ditto.
7453 * ui-out.c (XMALLOC): Ditto.
7454 * utils.c (XMALLOC): Ditto.
7455 * i386-tdep.c (XMALLOC): Ditto.
7456 * gdb-events.c (XMALLOC): Ditto.
7457 * d10v-tdep.c (XMALLOC): Ditto.
7458 * cli-out.c (XMALLOC): Ditto.
7460 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7461 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7462 * ui-file.c, ui-out.c: Ditto.
7464 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7466 * command.h (struct cmd_list_element): Add field context.
7467 (set_cmd_context, get_cmd_context): Declare.
7468 * cli/cli-decode.h: Ditto.
7469 * cli/cli-decode.c (get_cmd_context): New function.
7470 (set_cmd_context): New function.
7471 (add_cmd): Initialize context.
7472 Part of fixing PR gdb/145 and PR gdb/146.
7474 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7476 * cli/cli-decode.c (cmd_type): New function.
7477 * command.h (cmd_type): Declare.
7478 * infrun.c (set_schedlock_func): Call function cmd_type.
7479 * kod.c (kod_set_os): Call cmd_type.
7480 * cris-tdep.c (cris_version_update): Use function cmd_type.
7481 (cris_mode_update, cris_abi_update): Ditto.
7483 * command.h: (execute_cmd_post_hook): Declare.
7484 (execute_cmd_pre_hook): Declare.
7485 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7486 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7487 functions. Execute pre/post hook while ensuring that afterwords
7489 * top.c (execute_command): Use execute_cmd_post_hook, and
7490 execute_cmd_pre_hook to execute pre/post commands.
7491 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7493 (hook_stop_stub): Call execute_cmd_pre_hook.
7495 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7497 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7498 set'' and this leads to a core dump. Move xstrdup of
7499 operating_system to after check that it is not NULL.
7501 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7503 * kod.c (kod_set_os): Remove unnecessary check that
7504 ``command->type'' is set_cmd.
7506 * valprint.c (set_input_radix): Use input_radix.
7507 (set_output_radix): Use output_radix.
7508 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7511 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7513 * value.h (struct value): Delete field ``substring_addr''. Change
7514 aligner fields to force_doublest_align, force_longest_align,
7515 force_core_addr_align and force_pointer_aligh.
7517 * value.h (struct value): Fix typo in above change.
7519 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7521 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7522 to fix internal_error from ``maintenance print architecture''.
7524 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7526 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7527 for gcc versions after gcc-2.8.1.
7529 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7531 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7532 for method resolution. Restore adjustment of ``this'' pointer after
7533 calling value_struct_elt, which was accidentally removed during the
7536 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7538 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7540 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7542 * value.h (value_of_register): Update.
7544 2002-03-14 Richard Henderson <rth@redhat.com>
7546 * configure.in: Detect declaration for canonicalize_file_name.
7547 * utils.c (canonicalize_file_name): Declare, if needed.
7548 (gdb_realpath): Prefer realpath if available and usable.
7549 * config.in, configure: Rebuild.
7551 2002-03-14 Richard Henderson <rth@redhat.com>
7553 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7554 a constant array bound.
7556 * MAINTAINERS: Add myself to write-after-approval.
7558 2002-03-14 Michael Snyder <msnyder@redhat.com>
7560 * symfile.c (syms_from_objfile): Return immediately if no syms.
7561 (symbol_file_add): Return immediately if no syms.
7562 (find_sym_fns): Return immediately if no syms.
7564 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7566 * gdbserver/remote-util.c (remote_open): Print remote-side's
7567 IP address when remote debugging over the network.
7569 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7571 * config/sparc/fbsd.mh: Fix copyright.
7572 * config/sparc/fbsd.mt: Likewise.
7574 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7576 * MAINTAINERS: Fix typo in name of gdb warnings option.
7577 (x86-64): Fix formating so that this can be parsed by awk.
7579 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7581 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7582 * defs.h: Include "gdb/signals.h".
7583 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7585 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7587 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7588 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7591 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7592 Don Howard <dhoward@redhat.com>
7594 * mips-tdep.c (ST0_FR): Define.
7595 (mips2_fp_compat): New function, temporarily disabled.
7596 (mips_read_fp_register_single): New function.
7597 (mips_read_fp_register_double): New function.
7598 (mips_print_register): Use them.
7599 (do_fp_register_row): Likewise.
7601 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7603 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7606 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7608 * stabsread.c (read_member_functions): Fix is_stub test for
7609 static member functions, improve comment.
7611 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7613 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7614 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7615 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7616 commands that set boolean values.
7617 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7618 (arm_rdi_resume): Always initialize PC.
7619 (arm_rdi_open): Don't use rslt as a boolean.
7620 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7621 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7622 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7623 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7625 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7627 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7628 * configure: Rebuilt.
7630 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7632 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7633 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7635 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7637 * cli/cli-decode.c (set_cmd_completer): New function.
7638 * command.h (set_cmd_completer): Declare.
7639 * cli/cli-decode.h (set_cmd_completer): Ditto.
7641 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7642 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7643 * win32-nat.c (_initialize_inftarg): Ditto.
7644 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7645 * proc-api.c (_initialize_proc_api): Ditto.
7646 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7647 * source.c (_initialize_source): Ditto.
7648 * exec.c (_initialize_exec): Ditto.
7649 * solib.c (_initialize_solib): Ditto.
7650 * top.c (init_main): Ditto.
7651 * tracepoint.c (_initialize_tracepoint): Ditto.
7652 * symfile.c (_initialize_symfile): Ditto.
7653 * printcmd.c (_initialize_printcmd): Ditto.
7654 * infcmd.c (_initialize_infcmd): Ditto.
7655 * corefile.c (_initialize_core): Ditto.
7657 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7659 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7661 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7663 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7665 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7667 * NEWS: Update headings, 5.2 has branched.
7669 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7671 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7672 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7673 (register_addr, REGISTER_RAW_SIZE): Likewise.
7674 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7675 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7677 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7679 * MAINTAINERS (x86-64): Add myself.
7680 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7681 changed value_ptr -> struct value *
7683 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7685 * configure.host (sparc64-*-freebsd): Add.
7686 * configure.tgt: Likewise.
7687 * config/sparc/fbsd.mh: New file.
7688 * config/sparc/fbsd.mt: Likewise.
7689 * config/sparc/nm-fbsd.h: Likewise.
7690 * config/sparc/tm-fbsd.h: Likewise.
7692 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7694 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7695 regformats/reg-s390x.dat.
7697 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7699 * utils.c: Add FIXME explaining true/false problem.
7701 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7703 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7705 2002-02-28 Michael Chastain <mec@shout.net>
7707 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7709 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7711 * gdbserver/linux-s390-low.c: New file.
7712 * regformats/reg-s390.dat: New file.
7713 * regformats/reg-s390x.dat: New file.
7714 * gdbserver/configure.srv: Add S/390.
7715 * gdbserver/Makefile.in: Add S/390.
7716 * configure.tgt: Enable gdbserver for S/390.
7718 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7720 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7721 first line of the doc string for "info dos", except at the end of
7722 the sentence, since the short help stops at the first period.
7724 2002-02-28 Jason Merrill <jason@redhat.com>
7726 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7728 2002-02-27 Fred Fish <fnf@redhat.com>
7730 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7731 comment (dumy -> dummy).
7733 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7735 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7737 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7739 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7741 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7743 * gdbserver/acconfig.h: New file.
7744 * gdbserver/i387-fp.c: New file.
7745 * gdbserver/i387-fp.h: New file.
7746 * gdbserver/linux-x86-64.c: New file.
7747 * regformats/reg-x86-64.dat: New file.
7748 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7749 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7750 * gdbserver/configure.in: Add support for regsets.
7751 * gdbserver/config.in: Regenerate.
7752 * gdbserver/configure: Regenerate.
7753 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7754 * gdbserver/linux-low.h: New file.
7755 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7757 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7758 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7759 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7760 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7761 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7762 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7763 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7764 "i387-fp.h". Add PTRACE_GETREGS and friends.
7765 * gdbserver/regcache.c (supply_register): New function.
7766 (supply_register_by_name): New function.
7767 (collect_register): New function.
7768 (collect_register_by_name): New function.
7770 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7772 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7773 (config.status): Add configure.srv dependency.
7774 (server_h): Add config.h dependency.
7776 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7778 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7779 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7780 * gdbserver/configure.srv: Change i386-*-linux* to use
7783 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7785 * x86-64-tdep.c: Re-indent. Update copyright date.
7787 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7789 From Michal Ludvig <mludvig@suse.cz>:
7790 * x86-64-tdep.c (value.h): Delete.
7791 (gdb_assert.h): Include.
7792 (x86_64_register_convert_to_virtual,
7793 x86_64_register_convert_to_raw ): Add check which lets only
7794 floating-point values to be converted.
7795 (value_push): Delete.
7796 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7797 (i386_gdbarch_init): Number of register_bytes fixed.
7799 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7801 * MAINTAINERS: Add x86-64 target.
7803 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7805 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7806 * osfsolib.c (solib_map_sections): Ditto.
7807 * irix5-nat.c (solib_map_sections): Ditto.
7808 * corelow.c (gdb_check_format): Ditto.
7809 * symfile.c (symfile_bfd_open): Ditto.
7810 * solib.c (solib_map_sections): Ditto.
7813 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7815 * remote.c (_initialize_remote): By default, disable ``e'' and
7816 ``E'' step out-of-range packets.
7818 2002-02-26 Andreas Schwab <schwab@suse.de>
7820 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7821 m68k_linux_frame_saved_pc.
7822 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7824 (SIGCONTEXT_PC_OFFSET): Remove.
7825 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7826 m68k_linux_sigtramp_saved_pc): New functions.
7827 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7828 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7829 (UCONTEXT_PC_OFFSET): Define.
7830 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7831 non-RT and RT signal trampolines.
7833 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7835 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7836 (TARGET_NBPG, STACK_END_ADDR): Delete
7837 (VARIABLES_INSIDE_BLOCK): Delete.
7839 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7841 * utils.c (perror_with_name): Make string parameter constant.
7842 (print_sys_errmsg): Ditto.
7844 * defs.h (perror_with_name): Update.
7845 (print_sys_errmsg): Update.
7848 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7850 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7851 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7853 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7855 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7856 if it already matches the current architecture from the exec file.
7857 Include arch-utils.h for gdbarch_info_init prototype.
7858 * Makefile.in (rs6000-nat.o): Update dependencies.
7860 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7862 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7863 list of exported variables.
7865 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7867 * gdbserver/configure.srv: New file.
7868 * gdbserver/configure.in: Use configure.srv instead
7869 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7871 * gdbserver/configure: Regenerated.
7872 * gdbserver/terminal.h: New file.
7873 * gdbserver/Makefile.in: Update for configure changes. Remove
7874 more unneeded include paths.
7876 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7878 From wiz at danbala:
7879 * config/sparc/tm-sp64.h: Fix grammar and typos.
7882 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7884 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7885 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7886 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7887 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7888 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7889 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7890 * s390-tdep.c: Ditto.
7891 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7892 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7893 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7894 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7895 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7896 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7897 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7898 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7899 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7900 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7903 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7905 * lin-thread.c: Delete file.
7906 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7907 to gdb_proc_service.h.
7908 * configure: Re-generate.
7910 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7911 * serial.c (serial_open): Delete check for "ocd".
7914 * Makefile.in (linux-thread.o): Delete target.
7915 * linux-thread.c: Delete file.
7917 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7918 renamed SH files to be consistent.
7920 * symtab.c (sort_search_symbols): Use xfree.
7922 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7924 * arm-linux-tdep.c (arm_linux_init_abi): Register
7925 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7926 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7927 definition with undef, since we don't want the sysvr4 definition.
7928 (SKIP_TRAMPOLINE_CODE): Likewise.
7930 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7932 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7934 * configure.in: (AC_CHECK_FUNCS) Added test for
7935 canonicalize_file_name Regenerated.
7936 * config.in, configure: Regenerated.
7937 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7938 defined use canonicalize_file_name.
7940 2002-02-23 Michael Chastain <mec@shout.net>
7942 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7944 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7946 * README: Remove references to cygnus.com.
7947 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7948 dot com'' form. Remove references to cygnus.com and sourceware.
7950 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7952 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7953 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7954 1003.1-2001 no longer allows "head -1".
7955 * gdb/Makefile.in (version.c): Likewise.
7956 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7957 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7958 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7960 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7962 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7963 * command.h (cmd_cfunc_eq): Declare.
7964 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7966 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7967 ``struct cmd_list_element *''.
7968 * cli/cli-cmds.c (is_complete_command): Update. Use
7970 * top.c (execute_command): Pass the command to
7971 is_complete_command.
7972 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7974 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7976 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7977 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7978 architecture defines.
7979 * s390-tdep.c (s390_gdbarch_init): Likewise.
7981 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7983 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7984 (arm_linux_push_arguments): Likewise.
7985 (arm_linux_init_abi): Register them. Also register linux-specific
7987 (find_minsym_and_objfile): Use strcmp, not STREQ.
7988 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7989 (arm_linux_call_dummy_words): Delete declaration.
7990 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7991 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7993 (LOWEST_PC): Delete.
7995 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7997 * maint.c (print_section_info): Do not prepend `0x' to filepos
7998 output, it will be handled by local_hex_string_custom.
8000 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8002 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8003 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8004 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8006 2002-02-22 Jim Blandy <jimb@redhat.com>
8008 Indicate that the bcache functions don't change the strings
8010 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8011 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8013 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8015 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8017 2002-02-21 Christopher Faylor <cgf@redhat.com>
8019 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8020 find the complete path to a loaded DLL.
8022 2002-02-21 Fred Fish <fnf@redhat.com>
8024 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8025 that marks the end of the range of a function, enter a line number
8026 entry that has a line number of zero and a PC offset that matches
8027 the end of the function. This starts a range of PC's for which no
8028 line number information is known.
8029 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8030 PC's for which no line number info is found (line number is zero)
8031 then we didn't find any valid line information.
8032 * symtab.h: Document use of zero line number entry.
8034 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8036 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8037 (have_ptrace_getvrregs): Define for run time checks.
8038 (gdb_vrregset_t): New type for Altivec register handling.
8039 (fetch_register, store_register): Fetch/store altivec register
8041 (fetch_altivec_register, store_altivec_register): New functions.
8042 (supply_vrregset, fill_vrregset): New functions.
8043 (fetch_altivec_registers, store_altivec_registers): New functions.
8044 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8047 2002-02-21 Jiri Smid <smid@suse.cz>
8049 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8051 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8053 * Makefile.in (armnbsd-nat.o): Update dependencies.
8054 * armnbsd-nat.c (supply_gregset): New function. Common code to
8055 supply the integer register set.
8056 (supply_fparegset): New function. Similar for FPA registers.
8057 (fetch_regs, fetch_fp_regs): Use them.
8058 (fetch_core_registers): Likewise.
8059 (fetch_elfcore_registers): New function.
8060 (arm_netbsd_elfcore_fns): New core-file type specification.
8061 (_initialize_arm_netbsd_nat): Register it.
8063 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8065 * armnbsd-nat.c: Include gdbcore.h.
8066 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8067 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8068 'void' to declaration, to shut up ARI.
8069 (fetch_core_registers): Make static. Rewrite using supply_register.
8070 (arm_netbsd_core_fns): New core-file type specification.
8071 (_initialize_arm_netbsd_nat): New function.
8073 2002-02-21 Christopher Faylor <cgf@redhat.com>
8075 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8078 2002-02-20 Christopher Faylor <cgf@redhat.com>
8080 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8083 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8085 * jv-exp.y (parse_number): Change type of implicit longs
8086 to builtin_type_uint64.
8088 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8090 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8091 to be an integer instead of a `union wait'.
8093 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8095 * mips-linux-nat.c: Call the operating system GNU/Linux.
8096 * mips-linux-tdep.c: Likewise.
8097 * mips-tdep.c: Likewise.
8099 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8102 * jv-exp.y (parse_number): Handle 64-bit integers.
8104 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8106 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8107 AC_STDC_HEADERS to AC_HEADER_STDC.
8108 * gdbserver/configure: Regenerated.
8110 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8112 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8114 * sparc-tdep.c (get_longjmp_target): Likewise.
8116 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8118 * News: Add news about ARM and Multi-arch. Mention the new target
8121 2002-02-19 Jim Blandy <jimb@redhat.com>
8123 * stabsread.c (error_type_complaint): Improve error message.
8125 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8127 * gdbserver/README: Update documentation.
8128 * gdbserver/configure.in: Update configury to match documentation.
8129 * gdbserver/Makefile.in: Likewise.
8130 * gdbserver/configure: Regenerated.
8131 * gdbserver/aclocal.m4: New file, generated by aclocal.
8132 * gdbserver/config.in: New file, generated by autoheader.
8134 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8136 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8139 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8141 * arm-tdep.h (enum arm_float_model): New enum.
8142 (struct gdbarch_tdep): Add fp_model.
8143 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8144 up floating-point conversions until we know the floating-point model
8145 in use by the inferior. Don't complain about being unable to
8146 determine the ABI of the inferior when we don't have one.
8147 (arm_extract_return_value): Support different floating-point models.
8148 (arm_store_return_value): Likewise.
8149 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8151 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8153 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8155 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8156 of ``current_gdbarch''.
8158 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8160 * armnbsd-nat.c : ANSIfy all function declarations.
8161 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8162 (fetch_inferior_registers): Re-implement in terms of above.
8163 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8164 (store_inferior_registers): Re-implement in terms of above.
8166 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8168 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8170 * arm-linux-tdep.c: Likewise.
8171 * config/arm/tm-linux.h: Likewise.
8173 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8175 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8176 * config/arm/nbsd.mt (TM_FILE): Delete.
8177 * config/arm/tm-nbsd.h: Delete.
8179 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8181 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8182 Initialize CALL_DUMMY_LENGTH.
8184 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8186 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8188 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8189 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8190 defines one thing and that is incorrect for this port.
8191 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8193 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8195 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8197 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8199 * win32-nat.c (display_selector): New function. Displays information
8200 about the information returned by GetThreadSelectorEntry API function.
8201 (display_selectors): New function. Displays the infomation of
8202 the selector given as argument, or of CS, DS ans FS selectors
8203 if no argument is given.
8204 ( _initialize_inftarg): Add "w32" as info prefix command.
8205 Add "info w32 selector" as command calling display_selectors.
8207 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8209 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8210 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8213 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8215 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8217 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8219 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8220 (arm_fix_call_dummy): Call it.
8221 (arm_call_dummy_breakpoint_offset): Delete.
8222 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8223 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8225 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8227 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8228 Default to func_frame_chain_valid.
8229 * gdbarch.h, gdbarch.c: Re-generate.
8230 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8232 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8234 * ppc-linux-nat.c: Update copyright.
8235 (fetch_register, store_register): Add tid parameter, don't compute
8237 (fetch_ppc_registers, store_ppc_registers): Add tid
8238 parameter. Pass it along to callees.
8239 (fetch_inferior_registers, store_inferior_registers): Compute tid
8240 here, and pass it to calleed functions.
8241 (fill_gregset, supply_fpregset): Clean up formatting.
8243 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8245 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8246 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8248 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8250 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8251 * gdbarch.c gdbarch.h: Regenerate.
8252 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8254 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8255 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8256 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8258 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8259 * arm-tdep.c (arm_get_longjmp_target): New function.
8260 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8261 this to a positive value register arm_get_longjmp_target as the
8263 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8264 (arm_linux_init_abi): Set up longjmp description in tdep.
8265 * armnbsd-nat.c (get_longjmp_target): Delete.
8266 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8267 description in tdep.
8268 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8269 (get_longjmp_target): Delete declaration.
8270 (GET_LONGJMP_TARGET): Delete.
8271 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8272 (GET_LONGJMP_TARGET): Delete.
8274 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8276 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8277 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8278 of ``current_gdbarch''.
8280 2002-02-17 Tom Tromey <tromey@redhat.com>
8282 * cli/cli-cmds.c (compare_strings): New function.
8283 (complete_command): Only print each unique item once.
8284 * completer.h (complete_line): Declare.
8285 * completer.c (complete_line): New function.
8286 (line_completion_function): Use it.
8288 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8290 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8291 * gdbarch.h, gdbarch.c: Re-generate.
8293 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8295 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8297 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8299 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8300 * valops.c (value_arg_coerce): Don't take the address of a reference
8301 to convert an argument to a reference.
8303 2002-02-15 Christopher Faylor <cgf@redhat.com>
8305 * win32-nat.c (get_image_name): New function.
8306 (handle_load_dll): Use get_image_name function.
8307 (get_child_debug_event): Avoid registering debug events until possibly
8308 execed process is started.
8309 (child_create_inferior): Allow invocation via shell so that command
8310 line redirection, etc. works ok.
8311 (_initialize_inftarg): Add new command: "set shell" to control whether
8312 a shell is used to start a process.
8314 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8316 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8317 instead of find_register_by_number.
8318 (cannot_store_register): Likewise.
8320 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8322 * dwarf2read.c: Replace fprintf (stderr, ...) by
8323 fprintf_unfiltered (gdb_stderr, ...).
8325 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8327 * gdbserver/gdbserver.1: Document --attach.
8329 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8331 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8333 * arm-tdep.c (arm_default_arm_le_breakpoint)
8334 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8335 (arm_default_thumb_be_breakpoint): New. Initialize them from
8336 traditional breakpoint defines.
8337 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8338 (arm_gdbarch_init): Initialize new breakpoint variables.
8339 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8340 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8341 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8342 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8344 (arm_netbsd_init_abi_common): ... here; new function.
8345 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8346 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8347 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8348 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8350 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8352 * arm-tdep.h (enum arm_abi): New enum.
8353 (struct gdbarch_tdep): New structure.
8354 (LOWEST_PC): Provide a default.
8355 (arm_gdbarch_register_os_abi): Declare new function.
8356 * arm-tdep.c (arm_abi_names): New array.
8357 (process_note_abi_tag_sections): New function.
8358 (get_elfosabi): New function.
8359 (arm_gdbarch_register_os_abi): New function.
8360 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8361 support for that ABI has been built in, then call the appropriate
8362 configuration routine. Use gdbarch_num_regs() to get the number
8364 (arm_dump_tdep): New function.
8365 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8366 place-holder functions.
8367 (_initialize_arm_tdep): Register them.
8368 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8370 * armnbsd-tdep.c: New file.
8371 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8372 * config/arm/nbsd.mt (TDEPFILES): Add it.
8373 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8375 * armnbsd-nat.c: Include regcache.h.
8376 * Makefile.in (armnbsd-nat.o): Update dependency list.
8378 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8380 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8382 * gdbserver/Makefile.in: Fix typos in target rules.
8384 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8386 Fix part of PR gdb/267.
8387 * linespec.c (find_methods): Handle constructors specially for now.
8389 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8391 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8393 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8394 standard_coerce_float_to_double().
8396 2002-02-14 Christopher Faylor <cgf@redhat.com>
8398 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8401 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8403 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8404 find_variant_by_name, because it confuses the multiarch
8405 framework. Return NULL if there isn't an architecture with the
8406 user supplied name, instead of forcing a different one without
8407 recording the change with the multiarch machinery.
8408 (find_variant_by_name): Delete.
8410 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8412 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8413 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8415 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8417 * stack.c (print_frame_info_base): When calling
8418 print_frame_info_listing_hook, set current_source_symtab.
8420 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8422 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8423 and remove unused $(INCLUDE_DIR).
8424 Add regcache.c to OBS.
8425 Add generated register protocol files to clean target.
8426 Update dependencies for new objects, obsolete old target code.
8428 * gdbserver/linux-low.c: Remove all platform-specific code to
8429 new files. Remove various dead code. Update to use regcache
8431 * gdbserver/remote-utils.c (fromhex): Add return statement
8433 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8435 (input_interrupt): Add integer parameter to match prototype
8436 of a signal handler.
8437 (outreg): Use register_data ().
8438 (prepare_resume_reply): Use gdbserver_expedite_regs.
8439 * gdbserver/server.c (main): Dynamically allocate own_buf because
8440 PBUFSIZ is no longer constant. Use registers_to_string () and
8441 registers_from_string ().
8442 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8443 for error (), fatal (), and warning (). Update definition of
8444 PBUFSIZ to use regcache functionality. Add include guard.
8445 * gdbserver/utils.c (fatal): Add missing ``const''.
8446 (warning): New function.
8448 * regformats/regdat.sh: Include "regcache.h" in generated files.
8449 Provide init_registers () function.
8450 * regformats/regdef.h: Add prototype for set_register_cache ().
8453 * gdbserver/linux-arm-low.c: New file.
8454 * gdbserver/linux-i386-low.c: New file.
8455 * gdbserver/linux-ia64-low.c: New file.
8456 * gdbserver/linux-m68k-low.c: New file.
8457 * gdbserver/linux-mips-low.c: New file.
8458 * gdbserver/linux-ppc-low.c: New file.
8459 * gdbserver/linux-sh-low.c: New file.
8461 * gdbserver/regcache.c: New file.
8462 * gdbserver/regcache.h: New file.
8464 * gdbserver/low-linux.c: Removed obsolete file.
8466 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8468 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8469 * config/i386/linux.mt: Likewise.
8470 * config/ia64/linux.mt: Likewise.
8471 * config/m68k/linux.mh: Likewise.
8472 * config/powerpc/linux.mh: Likewise.
8473 * config/mips/linux.mt: Likewise.
8475 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8477 * config/i386/i386lynx.mh: Mark gdbserver variables
8478 as (currently) obsolete for this target.
8479 * config/i386/nbsd.mt: Likewise.
8480 * config/i386/nbsdelf.mt: Likewise.
8481 * config/m32r/m32r.mt: Likewise.
8482 * config/m68k/m68klynx.mh: Likewise.
8483 * config/m68k/nbsd.mt: Likewise.
8484 * config/m68k/sun3os4.mh: Likewise.
8485 * config/mips/vr5000.mt: Likewise.
8486 * config/ns32k/nbsd.mt: Likewise.
8487 * config/pa/hppabsd.mh: Likewise.
8488 * config/pa/hppaosf.mh: Likewise.
8489 * config/powerpc/nbsd.mt: Likewise.
8490 * config/rs6000/rs6000lynx.mh: Likewise.
8491 * config/s390/s390.mt: Likewise.
8492 * config/s390/s390x.mt: Likewise.
8493 * config/sparc/sparclynx.mh: Likewise.
8494 * config/sparc/sun4os4.mh: Likewise.
8495 * config/i386/x86-64linux.mt: Likewise.
8496 * config/sparc/linux.mh: Likewise.
8498 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8500 * configure.tgt: Configure gdbserver only for known working
8501 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8502 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8503 SUBDIRS if it is configured. Update comment for ${nativefile}.
8504 * configure: Regenerated.
8506 2002-02-13 Michael Snyder <msnyder@redhat.com>
8508 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8510 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8511 (default_gcore_mach): Just return 0, work around a problem in bfd.
8512 (default_gcore_target): OK to return NULL if exec_bfd is null.
8513 (make_mem_sec): Use a cast, avoid a warning.
8515 * procfs.c (find_memory_regions_callback): Use a cast instead of
8516 calling host_pointer_to_address (which complains if
8517 sizeof (host pointer) != sizeof (target pointer)).
8518 (procfs_make_note_section): Avoid overflow in psargs string.
8520 * procfs.c (procfs_make_note_section): Make the default
8521 implementation return an error.
8523 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8525 * procfs.c (procfs_make_note_section): Provide a default definition
8526 (for alpha-dec-osf4.0f). Fix typos.
8528 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8530 * linux-proc.c: Add include of regcache.h.
8531 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8533 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8535 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8536 * memattr.c (create_mem_region): Disallow useless empty region.
8537 Regions are half-open intervals, so allow [A..B) [B..C) as
8540 2002-02-13 Michael Chastain <mec@shout.net>
8542 * defs.h: Kill CONST_PTR.
8543 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8544 * c-lang.c (c_builtin_types): Likewise.
8545 * ch-lang.c (ch_builtin_types): Likewise.
8546 * f-lang.c (f_builtin_types): Likewise.
8547 * language.c (unknown_builtin_types): Likewise.
8548 * m2-lang.c (m2_builtin_types): Likewise.
8549 * p-lang.c (pascal_builtin_types): Likewise.
8550 * scm-lang.c (c_builtin_types): Likewise.
8552 2002-02-13 Keith Seitz <keiths@redhat.com>
8554 * arm-tdep.h (arm_get_next_pc): Add declaration.
8556 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8558 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8559 with other related struct-returning functions.
8560 (arm_extract_struct_value_address): New function.
8561 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8562 initialize float_format, double_format and long_double_format as
8563 appropriate to the endianness of the target.
8564 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8565 (arm_use_struct_convention): Delete declaration.
8566 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8568 2002-02-13 Keith Seitz <keiths@redhat.com>
8570 * defs.h (core_addr_to_string_nz): New function.
8572 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8574 Apply missing bits of 2002-01-15 patch.
8575 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8576 (fill_fpregset): Use i387_fill_fsave.
8578 2002-02-12 Keith Seitz <keiths@redhat.com>
8580 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8581 (core_addr_to_string_nz): New function.
8583 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8585 * arm-linux-nat.c: Really include arm-tdep.h.
8586 * config/arm/tm-linux.h (struct type, struct value): Declare.
8588 2002-02-11 Michael Snyder <msnyder@redhat.com>
8590 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8591 (gcore section): Ifdef for Solaris and Unixware only.
8592 (procfs_do_thread_registers): Unixware needs one lwpstatus
8593 per thread (not one prstatus or pstatus).
8594 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8595 not over all gdb threads. For unixware, call elfcore_write_pstatus
8596 once before iterating over threads.
8598 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8600 * arm-tdep.h: New file.
8601 * arm-tdep.c: Include arm-tdep.h.
8602 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8603 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8604 (arm_print_float_info, arm_register_type, convert_to_extended)
8605 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8606 (arm_extract_return_value, arm_register_name): Make static.
8607 (arm_software_single_step): Similarly. Fix types in declaration.
8608 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8609 (arm_store_return_value, arm_store_struct_return): New functions.
8610 (arm_gdbarch_init): Register the above functions. Also register
8611 call_dummy_start_offset, sizeof_call_dummy_words,
8612 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8613 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8614 max_register_virtual_size, register_size. Set up
8615 prologue_cache.saved_regs here, rather than ...
8616 (_initialize_arm_tdep): ... here.
8617 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8619 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8620 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8621 (arm_print_float_info, arm_register_type, convert_to_extended)
8622 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8623 (arm_extract_return_value, arm_register_name): Delete declarations.
8624 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8625 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8626 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8627 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8628 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8629 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8630 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8631 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8632 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8633 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8634 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8635 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8637 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8638 * remote-rdi.c remote-rdp.c: Likewise.
8639 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8640 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8641 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8644 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8645 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8646 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8647 from non-ARM_ prefixed definitions.
8648 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8650 * remote-rdi.c remote-rdp.c: Likewise.
8651 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8653 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8655 * arm-tdep.c (arm_frameless_function_invocation)
8656 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8657 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8658 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8659 (arm_pop_frame, arm_get_next_pc): Make static.
8660 (arm_gdbarch_init): Register above in gdbarch structure.
8661 (arm_read_fp): Renamed from arm_target_read_fp.
8662 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8663 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8664 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8665 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8666 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8667 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8668 (arm_pc_is_thumb_dummy): Delete declarations.
8669 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8670 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8671 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8672 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8674 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8676 * symtab.c (compare_search_syms): New function.
8677 (sort_search_symbols): New function.
8678 (search_symbols): Sort symbols after searching rather than
8681 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8683 * NEWS: Linux -> GNU/Linux.
8685 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8687 * gdbarch.sh: For for level one methods, disallow a definition
8688 when partially multi-arched. Add comments explaining rationale.
8689 * gdbarch.h: Re-generate.
8691 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8693 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8696 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8698 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8700 * gdbarch.c: Re-generate.
8702 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8704 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8705 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8708 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8710 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8712 (PUSH_ARGUMENTS): Switch to using predefault.
8713 * gdbarch.c: Regenerate.
8715 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8717 * valops.c (PUSH_ARGUMENTS): Delete definition.
8718 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8719 partial. Default to default_push_arguments.
8720 * gdbarch.h, gdbarch.c: Regenerate.
8722 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8724 * defs.h (throw_exception): Rename return_to_top_level. Update
8726 * utils.c (error_stream, internal_verror, quit): Ditto.
8727 * top.c (throw_exception, catcher): Ditto.
8728 * sparclet-rom.c (sparclet_load): Ditto.
8729 * remote.c (interrupt_query, minitelnet): Ditto.
8730 * remote-sds.c (interrupt_query): Ditto.
8731 * remote-mips.c (mips_error, mips_kill): Ditto.
8732 * ocd.c (interrupt_query): Ditto.
8733 * monitor.c (monitor_interrupt_query): Ditto.
8734 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8735 * target.h: Update comment.
8737 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8739 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8741 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8742 default_double_format.
8743 * gdbarch.h, gdbarch.c: Re-generate.
8744 * findvar.c (floatformat_unknown): Delete variable definition.
8745 * doublest.h (floatformat_unknown): Delete variable declaration.
8747 2002-02-09 Jim Blandy <jimb@redhat.com>
8749 * stabsread.c (read_type): Add code to parse Sun's syntax for
8750 prototyped function types.
8752 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8754 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8755 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8757 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8759 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8760 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8761 now _initialize_xcoffsolib gets called again and overrides the
8762 commands from solib.c in a native configuration.
8764 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8766 * doublest.c (store_typed_floating): Don't try to return a value.
8769 2002-02-08 Jim Blandy <jimb@redhat.com>
8771 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8772 is prototyped and has no arguments, print its argument list as
8775 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8777 * MAINTAINERS (write-after-approval): Add myself.
8778 (paper-trail): I've escaped!
8780 2002-02-08 Christopher Faylor <cgf@redhat.com>
8782 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8784 (_initialize_check_for_gdb_ini): Ditto.
8786 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8788 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8789 xaprintf -> xasprintf.
8791 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8793 * win32-nat.c: Remove use of printf and sprintf functions.
8795 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8797 * arm-tdep.c (arm_frame_chain_valid): Make static.
8798 (arm_push_arguments): Likewise.
8799 (arm_gdbarch_init): New function.
8800 (_initialize_arm_tdep): Call it.
8801 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8802 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8803 (FRAME_CHAIN_VALID): Delete.
8804 (arm_frame_chain_valid): Delete declaration.
8805 (PUSH_ARGUMENTS): Delete.
8806 (arm_push_arguments): Delete declaration.
8807 (CALL_DUMMY_P): Delete.
8809 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8810 Corinna Vinschen <vinschen@redhat.com>
8812 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8813 on builtin float types.
8815 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8817 * utils.c: Include <curses.h> before "bfd.h".
8818 * tui/tui-hooks.c: Likewise.
8819 * tui/tui.c: Likewise.
8820 * tui/tuiCommand.c: Likewise.
8821 * tui/tuiData.c: Likewise.
8822 * tui/tuiDataWin.c: Likewise.
8823 * tui/tuiDisassem.c: Likewise.
8824 * tui/tuiGeneralWin.c: Likewise.
8825 * tui/tuiIO.c: Likewise.
8826 * tui/tuiLayout.c: Likewise.
8827 * tui/tuiRegs.c: Likewise.
8828 * tui/tuiSource.c: Likewise.
8829 * tui/tuiSourceWin.c: Likewise.
8830 * tui/tuiStack.c: Likewise.
8831 * tui/tuiWin.c: Likewise.
8833 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8835 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8836 to include space for pseudoregs as well. Update loops accordingly.
8837 (sh_fp_frame_init_saved_regs): Ditto.
8838 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8840 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8842 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8843 Add Richard Earnshaw to Arm maintainers.
8845 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8847 * defs.h (warning_begin): Delete declaration.
8849 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8852 2002-02-07 Michael Snyder <msnyder@redhat.com>
8854 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8855 Logic bug, remove misplaced else.
8857 2002-02-07 Klee Dienes <klee@apple.com>
8859 * fork-inferior.c (fork_inferior): Add '!' to the list of
8860 characters that need to be quoted when building a string for the
8861 shell. Quote '!' specifically with a backslash, since CSH chokes
8862 when trying to evaluate "str!str".
8864 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8866 * rdi-share/host.h: Only provide a typedef for bool if it is not
8869 2002-02-04 Michael Snyder <msnyder@redhat.com>
8871 * breakpoint.h (enum bptype): Add new overlay event bp type.
8872 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8874 * breakpoint.c (create_internal_breakpoint): New function.
8875 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8876 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8877 (create_thread_event_breakpoint): Ditto.
8878 (create_solib_event_breakpoint): Ditto.
8879 (create_overlay_event_breakpoint): New function.
8880 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8881 (update_breakpoints_after_exec): Delete and re-initialize
8882 overlay event breakpoints after an exec. Add FIXME comment
8883 about longjmp breakpoint.
8884 (print_it_typical): Ignore overlay event breakpoints.
8885 (print_one_breakpoint): Ditto.
8887 (bpstat_what): Do not stop for overlay event breakpoints.
8888 (delete_breakpoint): Don't delete overlay event breakpoints.
8889 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8890 (breakpoint_re_set): Re-create overlay event breakpoint.
8892 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8893 (overlay_manual_command): Disable overlay breakpoints.
8894 (overlay_off_command): Disable overlay breakpoints.
8896 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8898 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8899 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8900 to here from config/tm-arm.h.
8901 (coff_sym_is_thumb): Make static.
8902 (arm_elf_make_msymbol_special): New function.
8903 (arm_coff_make_msymbol_special): New function.
8904 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8905 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8906 (coff_sym_is_thumb): Delete declaration.
8907 (arm_elf_make_msymbol_special): Declare.
8908 (arm_coff_make_msymbol_special): Declare.
8909 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8910 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8912 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8914 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8916 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8918 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8919 * gdbarch.c gdbarch.h: Regenerate.
8920 * arch-utils.c (default_print_float_info): New function.
8921 * arch-utils.h (default_print_float_info): Prototype it.
8922 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8923 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8924 (PRINT_FLOAT_INFO): Document it.
8926 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8927 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8928 (PRINT_FLOAT_INFO): Define.
8930 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8932 * win32-nat.c (_initialize_check_for_gdb_ini):
8933 Add typecast to sprintf argument to suppress a warning.
8935 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8937 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8938 to allow easier handling of pass state.
8939 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8940 that gives exception name and address.
8941 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8942 and set last_sig value to ourstatus->value.sig. Some missing
8944 (child_continue): Correctly report continue_status.
8945 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8946 TARGET_SIGNAL_0 (new default value).
8947 (child_resume): consider sig argument passed to decide if
8948 the exception should be passed to debuggee or not.
8950 2002-02-05 Michael Snyder <msnyder@redhat.com>
8952 * regcache.c (fetch_register): Call target_fetch_register
8953 only if we don't call FETCH_PSEUDO_REGISTER.
8954 (store_register): Call target_store_register only if we
8955 don't call STORE_PSEUDO_REGISTER.
8957 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8959 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8960 ELF_MAKE_MSYMBOL_SPECIAL.
8961 * gdbarch.c, gdbarch.h: Regenerate.
8962 * arch-utils.c (default_make_msymbol_special): New function.
8963 * arch-utils.h (default_make_msymbol_special): Export.
8964 * elfread.c (elf_symtab_read): Compile use of
8965 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8967 * coffread.c (coff_symtab_read): Ditto, for
8968 COFF_MAKE_MSYMBOL_SPECIAL.
8970 2002-02-05 Jim Blandy <jimb@redhat.com>
8972 * solib-svr4.c (svr4_truncate_ptr): New function.
8973 (svr4_relocate_section_addresses): Do the address arithmetic with
8974 the appropriate truncation for target addresses, even when
8975 CORE_ADDR is larger than a target address.
8977 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8979 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8982 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8984 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8987 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8989 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8991 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8993 * gdbserver/linux-low.c: Remove unused include files.
8995 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8997 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8998 (read_inferior_memory): Use it.
8999 (write_inferior_memory): Likewise.
9001 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9003 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9004 grubbing through sys_errlist.
9006 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9008 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9010 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9011 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9013 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9015 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9016 (do_sfunc, set_cmd_sfunc): New functions.
9018 * command.h (struct cmd_list_element): Add field func.
9019 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9020 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9021 * cli/cli-decode.h: Ditto.
9023 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9024 (help_all, help_cmd_list): Ditto.
9025 (find_cmd, complete_on_cmdlist): Ditto.
9026 * top.c (execute_command): Ditto.
9028 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9031 * infcmd.c (notice_args_read): Fix function signature.
9033 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9034 * cli/cli-decode.c (add_set_cmd): Ditto.
9035 * utils.c (initialize_utils): Ditto.
9036 * maint.c (_initialize_maint_cmds): Ditto.
9037 * infrun.c (_initialize_infrun): Ditto.
9038 * demangle.c (_initialize_demangler): Ditto.
9039 * remote.c (add_packet_config_cmd): Ditto.
9040 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9041 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9042 * proc-api.c (_initialize_proc_api): Ditto.
9043 * kod.c (_initialize_kod): Ditto.
9044 * valprint.c (_initialize_valprint): Ditto.
9045 * top.c (init_main): Ditto.
9046 * infcmd.c (_initialize_infcmd): Ditto.
9047 * corefile.c (_initialize_core): Ditto.
9048 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9049 * arch-utils.c (initialize_current_architecture): Ditto.
9050 (_initialize_gdbarch_utils): Ditto.
9051 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9053 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9054 * wince.c (_initialize_inftarg): Ditto.
9055 * symfile.c (_initialize_symfile): Ditto.
9056 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9057 * language.c (_initialize_language): Ditto.
9058 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9060 2002-02-04 Michael Snyder <msnyder@redhat.com>
9062 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9064 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9066 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9067 Add rules for building the register data files.
9069 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9071 * regformats/regdat.sh: Add braces to the definition of
9072 expedite_regs_${arch}.
9074 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9076 * regformats/regdef.h (struct reg): Add comment describing the
9077 requirements for offset and size fields.
9079 2002-02-04 Andreas Schwab <schwab@suse.de>
9081 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9082 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9084 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9086 * gdbarch.sh (copyright): Update years in generated header.
9087 (SMASH_TEXT_ADDRESS): Add rule.
9088 * gdbarch.h, gdbarch.c: Re-generate.
9089 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9090 * dbxread.c: Likewise.
9091 * dwarfread.c: Likewise.
9092 * elfread.c: Likewise.
9093 * somread.c: Likewise.
9095 * arm-tdep.c (arm_smash_text_address): New function.
9096 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9098 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9100 Add support for hardware watchpoints on win32 native.
9101 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9102 CONTEXT_DEBUG_REGISTERS.
9103 (dr variable): New variable. Static array containing a local copy
9105 (debug_registers_changed): New variable. Reflects when debug registers
9106 are changed and need to be written to inferior.
9107 (debug_registers_used): New variable. Reflects when any debug register
9108 was set, used when new threads are created.
9109 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9111 (thread_rec): Set dr array if id is the thread of current_event .
9112 (child_continue, child_resume): Change the debug registers for all
9113 threads if debug_registers_changed.
9114 (child_add_thread): Change the debug registers if debug_registers_used.
9115 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9116 Link nm.h to new nm-cygwin.h file.
9117 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9118 of hardware registers.
9120 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9122 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9123 Restore behavour broken by 2002-01-20 Andrew Cagney
9124 <ac131313@redhat.com> IEEE_FLOAT removal.
9126 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9128 * c-valprint.c (c_val_print): Pass a proper valaddr to
9129 cp_print_class_method.
9130 * valops.c (search_struct_method): If there is only one method
9131 and args is NULL, return that method.
9133 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9135 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9136 accessing tag_name directly.
9138 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9140 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9141 of accessing tag_name directly.
9143 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9146 * gdbtypes.c (replace_type): New function.
9147 * gdbtypes.h (replace_type): Add prototype.
9148 * stabsread.c (read_type): Use replace_type.
9150 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9152 * Makefile.in (memattr.o): Add missing dependencies rule.
9154 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9156 * breakpoint.c (break_at_finish_command): Really export.
9157 (break_at_finish_at_depth_command): Ditto.
9158 (tbreak_at_finish_command): Ditto.
9159 * hppa-tdep.c: Include completer.h.
9160 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9161 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9163 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9165 * utils.c (do_write): New function.
9166 (error_stream): Rewrite combining the code from error_begin and
9168 (verror): Rewrite using error_stream.
9169 (error_begin): Delete function.
9171 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9173 * utils.c (error_begin): Make static.
9174 * defs.h (error_begin): Delete declaration.
9176 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9177 (decode_line_1): Use cplusplus_error instead of error_begin,
9178 cplusplus_hint and return_to_top_level.
9179 * coffread.c (coff_symfile_read): Use error instead of error_begin
9180 and return_to_top_level.
9181 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9183 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9185 * language.h (type_error, range_error): Make string parameter
9187 * language.c (warning_pre_print): Delete extern declaration.
9188 * dwarfread.c (warning_pre_print): Ditto.
9189 * language.c (type_error, range_error): Rewrite to use verror and
9190 vwarning instead of warning_begin.
9192 2002-02-01 Michael Snyder <msnyder@redhat.com>
9194 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9195 (set_ignore_count): Move misplaced comment back where it belongs.
9197 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9199 * command.h (NO_FUNCTION): Delete macro.
9200 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9201 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9202 * tracepoint.c (_initialize_tracepoint): Ditto.
9203 * cli/cli-decode.c (add_set_cmd): Ditto.
9204 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9206 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9208 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9209 Update ``this'' pointer when calling virtual functions.
9211 2002-02-01 Michael Snyder <msnyder@redhat.com>
9213 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9214 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9216 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9218 * regformats/reg-arm.dat: New file.
9219 * regformats/reg-i386.dat: New file.
9220 * regformats/reg-ia64.dat: New file.
9221 * regformats/reg-m68k.dat: New file.
9222 * regformats/reg-mips.dat: New file.
9223 * regformats/reg-ppc.dat: New file.
9224 * regformats/reg-sh.dat: New file.
9225 * regformats/regdef.h: New file.
9226 * regformats/regdat.sh: New file.
9228 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9230 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9231 (arm_frame_args_address, arm_frame_locals_address): New functions.
9232 (arm_frame_num_args): New function.
9233 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9234 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9235 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9237 2002-01-31 Michael Snyder <msnyder@redhat.com>
9239 * breakpoint.c (break_at_finish_command): Export.
9240 (break_at_finish_at_depth_command): Export.
9241 (tbreak_at_finish_command): Export.
9242 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9243 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9244 "tbreak" commands, which are HPPA specific.
9246 * printcmd.c (disassemble_command): Remove an ancient
9247 artifact of an old merge.
9249 * symfile.h (enum overlay_debugging_state):
9250 Define enum constant values for overlay mode.
9251 * symfile.c (overlay_debugging): Use enums instead of literals.
9252 (overlay_is_mapped, overlay_auto_command,
9253 overlay_manual_command): Ditto.
9255 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9256 breakpoint_here_p, breakpoint_inserted_here_p,
9257 breakpoint_thread_match, bpstat_stop_status,
9258 describe_other_breakpoints, check_duplicates, clear_command):
9259 Coding standard fixes.
9261 * target.c (target_xfer_memory): Add spaces, coding standard.
9262 (do_xfer_memory): Add missing line to trust-readonly
9263 code: check bfd SEC_READONLY flag for section.
9265 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9267 * PROBLEMS: Fix typo, 5.1->5.1.1.
9269 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9271 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9272 data symbols, since we search based on textlow and texthigh.
9273 (find_pc_sect_symtab): Likewise.
9275 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9277 * defs.h (vwarning): Declare.
9278 * utils.c (vwarning): New function.
9279 (warning): Call vwarning.
9280 (warning_begin): Delete function.
9282 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9283 the warning message.
9284 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9287 2002-01-30 Michael Snyder <msnyder@redhat.com>
9289 * NEWS: Mention "set trust-readonly-sections" command.
9290 Mention generate-core-file command.
9292 2002-01-15 Michael Snyder <msnyder@redhat.com>
9294 * target.c: New command, "set trust-readonly-sections on".
9295 (do_xfer_memory): Honor the suggestion to trust readonly sections
9296 by reading them from the object file instead of from the target.
9297 (initialize_targets): Register command "set trust-readonly-sections".
9299 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9301 * parse.c (target_map_name_to_register): Simplify, search regs and
9302 pseudo-regs using a single loop.
9304 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9306 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9308 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9310 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9311 * config/i386/i386v42mp.mh: Add i387-nat.o .
9312 * i386v4-nat.c: Include i387-nat.h.
9313 (supply_fpregset): Use i387_supply_fsave.
9314 (fill_fpregset): Use i387_fill_fsave.
9316 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9318 * arm-tdep.c (arm_call_dummy_words): Define.
9319 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9320 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9321 (CALL_DUMMY_WORDS): Define.
9322 (arm_call_dummy_words): Declare.
9323 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9324 (arm_linux_call_dummy_words): Declare.
9326 2002-01-30 Andreas Schwab <schwab@suse.de>
9328 * m68klinux-nat.c: Fix last change to use regcache_collect
9329 instead of referencing registers[] directly.
9331 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9333 * parse.c (target_map_name_to_register): Delete code wrapped in
9334 #ifdef REGISTER_NAME_ALIAS_HOOK.
9336 2002-01-28 Michael Snyder <msnyder@redhat.com>
9338 * regcache.c (legacy_read_register_gen): Need to be able to
9339 read pseudo-register as well as real register.
9340 (legacy_write_register_gen): Ditto.
9342 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9344 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9345 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9346 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9347 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9348 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9349 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9350 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9351 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9352 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9353 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9354 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9355 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9356 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9357 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9358 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9359 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9360 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9361 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9362 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9363 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9365 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9367 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9368 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9369 (initialize_current_architecture): Update target_byte_order using
9370 information from BFD.
9371 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9372 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9374 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9376 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9377 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9379 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9380 #ifdef INVALID_FLOAT.
9381 * infcmd.c (do_registers_info): Ditto.
9382 * values.c (unpack_double): Ditto. Add comment.
9384 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9385 already commented out.
9387 2002-01-26 Andreas Schwab <schwab@suse.de>
9389 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9390 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9391 registers and add support for PTRACE_GETREGS.
9393 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9395 GDB 5.1.1 released from 5.1 branch.
9396 * NEWS: Add 5.1.1 news.
9397 * README: Sync with 5.1 branch.
9399 2002-01-23 Fred Fish <fnf@redhat.com>
9401 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9402 stabstring on initial malloc. Reallocing will copy it for us,
9405 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9407 * Makefile.in (hpread_h): Delete.
9408 (HFILES_NO_SRCDIR): Remove hpread.h.
9409 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9410 (hpread.o): Update dependencies.
9411 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9413 * hp-psymtab-read.c: Remove file.
9414 * hp-symtab-read.c: Remove file.
9415 * hpread.h: Remove file.
9417 * hpread.c: Merge all contents of hp-psymtab-read.c,
9418 hp-symtab-read.c and hpread.h into this file, as it was prior to
9421 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9422 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9423 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9424 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9426 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9428 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9429 fill_gregset): Call gdbarch_tdep() just once, assign result to
9430 variable and use that, instead of calling the function several
9433 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9435 * configure.host: Accept sparcv9 as alias for sparc64.
9436 * configure.tgt: Likewise.
9438 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9440 * solib-aix5.c (build_so_list_from_mapfile)
9441 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9442 arguments is not reversed.
9443 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9444 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9446 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9448 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9449 modified version of obsolete sh_fetch_pseudo_register.
9450 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9451 (sh4_register_read): New function.
9452 (sh_pseudo_register_write): New function. Renamed and modified
9453 version of obsolete sh_store_pseudo_register.
9454 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9455 (sh4_register_write): New function.
9456 (sh_gdbarch_init): Remove setting of gdbarch function
9457 fetch_pseudo_register and store_pseudo_register. Remove setting of
9458 register_convert_to_raw, register_convert_to_virtual,
9459 register_convertible.
9460 (sh_sh4_register_convertible): Delete. No longer needed. All is
9461 taken care by architecture specific functions
9462 register_read/register_write.
9463 (sh_sh4_register_convert_to_virtual): Make static.
9464 (sh_sh4_register_convert_to_raw): Ditto.
9466 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9468 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9469 (floatformat_is_nan, floatformat_mantissa): Ditto.
9471 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9472 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9473 builtin_type_ieee_double_little,
9474 builtin_type_ieee_double_littlebyte_bigword,
9475 builtin_type_m68881_ext, builtin_type_i960_ext,
9476 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9477 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9478 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9479 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9481 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9483 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9484 parameter. Set frameless flag if it exists and depended of
9485 whether the scanned function is frameless or not.
9486 (xstormy16_skip_prologue): If function is frameless, return
9487 result of xstormy16_scan_prologue().
9488 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9491 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9493 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9494 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9495 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9496 sh_sh4_register_byte, sh_sh4_register_raw_size,
9497 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9498 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9499 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9500 sh_store_pseudo_register, sh_do_pseudo_register): Call
9501 gdbarch_tdep() just once, assign result to variable and use that,
9502 instead of calling the function several times.
9504 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9506 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9507 macros instead of LAST_FPU_CTRL_REGNUM.
9508 (store_register): Likewise.
9510 2002-01-21 Jim Blandy <jimb@redhat.com>
9512 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9513 is up-to-date before running the program, not just when a program
9516 2002-01-21 Fred Fish <fnf@redhat.com>
9518 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9519 when we have found all instructions we are looking for.
9521 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9523 * arm-tdep.c (arm_register_name): New function.
9524 (arm_registers_names): Make static.
9525 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9526 (arm_register_name): Declare.
9527 (REGISTER_NAME): Use it.
9529 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9530 Kevin Buettner <kevinb@redhat.com>
9532 Convert arm targets to new FRAME interface.
9533 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9534 (arm_frame_find_save_regs): Delete.
9535 (arm_frame_init_saved_regs): New.
9536 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9537 Allocate extra_info as required. Convert all uses of fsr.regs
9538 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9540 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9541 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9542 (check_prologue_cache, save_prologue_cache): Likewise.
9543 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9544 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9545 (FRAME_FIND_SAVED_REGS): Delete.
9546 (arm_frame_find_saved_regs): Delete prototype.
9547 (arm_frame_init_saved_regs): New prototype.
9548 (FRAME_INIT_SAVED_REGS): Define.
9550 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9552 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9554 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9556 From Jeff Law <law@redhat.com>:
9557 * infttrace.c: Include <sys/pstat.h>.
9558 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9559 exec file if the ttrace equivalent fails.
9561 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9563 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9564 (closeLogFile): Ditto.
9566 2002-01-20 Michael Chastain <mec@shout.net>
9568 * top.c (print_gdb_version): Bump copyright year to 2002.
9570 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9572 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9573 Zannoni and Eli Zaretskii.
9575 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9577 * buildsym.c: Update copyright years.
9578 * c-typeprint.c: Likewise.
9579 * dwarf2read.c: Likewise.
9580 * f-typeprint.c: Likewise.
9581 * gdbtypes.c: Likewise.
9582 * gdbtypes.h: Likewise.
9583 * hp-symtab-read.c: Likewise.
9584 * hpread.c: Likewise.
9585 * mdebugread.c: Likewise.
9586 * p-typeprint.c: Likewise.
9588 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9590 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9591 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9592 byte-order selectable.
9593 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9594 * arch-utils.c: Ditto.
9595 (set_endian): Ditto.
9596 (set_endian_from_file): Ditto.
9597 * gdbserver/low-sim.c (create_inferior): Ditto.
9598 * gdbarch.sh: Ditto.
9599 * gdbarch.h: Re-generate.
9600 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9601 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9602 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9603 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9604 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9605 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9606 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9607 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9609 * config/mips/tm-wince.h: Remove #undef of macro
9610 TARGET_BYTE_ORDER_SELECTABLE.
9611 * config/sh/tm-wince.h: Ditto.
9613 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9615 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9616 member function fields. Add accessor macro
9617 TYPE_FN_FIELD_ARTIFICIAL.
9618 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9619 * c-typeprint.c (c_type_print_base): Skip artificial member
9622 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9624 * f-typeprint.c: Delete unused function f_type_print_args.
9625 * p-typeprint.c: Delete unused function pascal_type_print_args.
9627 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9629 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9630 comment. Add ``artificial'' to ``union field_location''.
9632 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9634 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9635 * mdebugread.c (parse_symbol): Likewise.
9636 * stabsread.c (define_symbol): Likewise.
9637 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9638 initializing TYPE_FIELD_BITPOS to n (obsolete).
9639 (hpread_doc_function_type): Likewise.
9640 * hpread.c (hpread_function_type): Likewise.
9642 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9644 * configure.in (host_makefile_frag): Only require a host makefile
9645 fragment when a native build.
9646 * configure: Re-generate.
9648 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9650 * doublest.h (floatformat_from_type): Declare.
9651 * doublest.c (floatformat_from_type): New function.
9652 (convert_typed_floating): Use.
9654 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9655 call to function floatformat_from_type.
9657 * gdbarch.sh (IEEE_FLOAT): Delete.
9658 * gdbarch.h, gdbarch.c: Re-generate.
9659 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9660 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9661 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9662 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9663 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9664 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9665 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9666 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9667 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9668 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9669 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9670 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9672 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9673 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9674 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9675 * sh-tdep.c (sh_gdbarch_init): Ditto.
9676 * mips-tdep.c (mips_gdbarch_init): Ditto.
9677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9678 * cris-tdep.c (cris_gdbarch_init): Ditto.
9680 2002-01-20 Jiri Smid <smid@suse.cz>
9682 * configure.host, configure.tgt: Support x86-64.
9683 * NEWS: Note new target x86-64.
9685 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9686 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9687 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9688 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9689 x86-64-linux-nat.o): Fix dependencies.
9691 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9693 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9694 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9695 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9696 * config/sparc/xm-sun4os4.h: Delete file.
9697 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9699 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9701 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9702 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9703 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9704 * config/i386/i386lynx.mh (XM_FILE): Delete.
9705 * config/rs6000/xm-rs6000ly.h: Delete file.
9706 * config/sparc/xm-sparclynx.h: Delete file.
9707 * config/m68k/xm-m68klynx.h: Delete file.
9708 * config/i386/xm-i386lynx.h: Delete file.
9709 * config/xm-lynx.h: Delete file.
9710 * config/djgpp/fnchange.lst: Update.
9712 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9714 * alpha-tdep.c (alpha_register_byte): New function.
9715 (alpha_register_raw_size): Ditto.
9716 (alpha_register_virtual_size): Ditto.
9717 (alpha_skip_prologue_internal): Renamed from
9718 alpha_skip_prologue.
9719 (alpha_skip_prologue): New version that calls
9720 alpha_skip_prologue_internal.
9721 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9722 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9723 second argument from alpha_skip_prologue.
9724 (REGISTER_BYTE): Use alpha_register_byte.
9725 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9726 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9727 (FRAMELESS_FUNCTION_INVOCATION): Use
9728 generic_frameless_function_invocation_not.
9729 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9730 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9732 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9734 * config/mips/xm-news-mips.h: Delete file.
9735 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9737 * config/m88k/xm-m88k.h: Delete file.
9738 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9739 * config/m88k/xm-delta88v4.h: Ditto.
9740 * config/m88k/xm-delta88.h: Ditto.
9742 * config/alpha/xm-fbsd.h: Delete file.
9743 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9745 * config/sparc/xm-sparc.h: Delete file.
9746 * Makefile.in (xm-sun4os4.h): Delete dependency.
9747 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9748 * config/sparc/xm-sun4os4.h: Ditto.
9749 * config/sparc/xm-linux.h: Ditto.
9751 * config/i386/xm-windows.h: Delete file.
9753 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9755 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9756 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9758 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9760 * alpha-tdep.c (alpha_call_dummy_words): New.
9761 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9762 (CALL_DUMMY_P): Define.
9763 (CALL_DUMMY_WORDS): Define.
9764 (SIZEOF_CALL_DUMMY_WORDS): Define.
9766 2002-01-19 Per Bothner <per@bothner.com>
9768 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9769 isn't NULL, which can happen with some gcj-3.x-produced code.
9771 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9773 * alpha-tdep.c (alpha_register_virtual_type): New function.
9774 (alpha_init_frame_pc_first): Ditto.
9775 (alpha_fix_call_dummy): Ditto.
9776 (alpha_store_struct_return): Ditto.
9777 (alpha_extract_struct_value_address): Ditto.
9778 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9779 alpha_register_virtual_type.
9780 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9781 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9782 alpha_extract_struct_value_address.
9783 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9784 (INIT_FRAME_PC): Use init_frame_pc_noop.
9785 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9787 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9789 * i386gnu-nat.c: Include "i386-tdep.h".
9790 (fetch_fpregs): Simplify code dealing with uninitialized floating
9791 point states such that it doesn't require FP7_REGNUM.
9793 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9795 * alpha-tdep.c (frame_extra_info): New.
9796 (alpha_find_saved_regs): Make static. Use
9798 (alpha_frame_init_saved_regs): New function.
9799 (alpha_frame_saved_pc): Use frame->extra_info.
9800 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9801 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9802 (init_extra_frame_info): Rename to...
9803 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9804 (alpha_print_extra_frame_info): New function.
9805 (alpha_frame_locals_address): Ditto.
9806 (alpha_frame_args_address): Ditto.
9807 (alpha_pop_frame): Use frame->extra_info.
9808 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9809 alpha_frame_args_address.
9810 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9811 (alpha_find_saved_regs): Remove prototype.
9812 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9813 (EXTRA_FRAME_INFO): Remove.
9814 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9815 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9817 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9819 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9820 (alpha_cannot_fetch_register): Ditto.
9821 (alpha_cannot_store_register): Ditto.
9822 (alpha_register_convertible): Ditto.
9823 (alpha_use_struct_convention): Ditto.
9824 * config/alpha/tm-alpha.h: Update copyright years.
9825 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9826 (INNER_THAN): Use core_addr_lessthan.
9827 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9828 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9829 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9830 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9831 (FRAME_CHAIN): Remove unnecessary cast.
9833 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9835 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9838 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9840 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9841 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9842 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9843 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9844 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9845 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9846 * x86-64-linux-nat.c: Ditto.
9848 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9850 * alpha-tdep.c (alpha_register_name): New function.
9851 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9852 (REGISTER_NAME): Define.
9854 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9856 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9858 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9860 * alpha-tdep.c: Update copyright years.
9861 (alpha_next_pc): New function.
9862 (alpha_software_single_step): Ditto.
9863 * config/alpha/tm-alpha.h: Add prototype for
9864 alpha_software_single_step.
9866 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9868 * alphabsd-nat.c: Update copyright years.
9869 (fill_gregset): Use regcache_collect.
9870 (fill_fpregset): Likewise.
9871 (fetch_inferior_registers): Only fetch integer registers
9872 if requested to do so.
9873 (store_inferior_registers): Only store integer registers
9874 if requested to do so.
9876 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9878 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9879 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9880 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9881 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9882 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9883 * config/arm/linux.mh (XDEPFILES): Delete.
9884 * config/arm/nbsd.mh (XDEPFILES): Delete.
9885 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9886 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9887 * config/i386/i386m3.mh (XDEPFILES): Delete.
9888 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9889 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9890 * config/i386/fbsd.mh (XDEPFILES): Delete.
9891 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9892 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9893 * config/i386/i386v4.mh (XDEPFILES): Delete.
9894 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9895 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9896 * config/i386/i386aix.mh (XDEPFILES): Delete.
9897 * config/i386/go32.mh (XDEPFILES): Delete.
9898 * config/i386/cygwin.mh (XDEPFILES): Delete.
9899 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9900 * config/i386/i386mach.mh (XDEPFILES): Delete.
9901 * config/i386/i386v32.mh (XDEPFILES): Delete.
9902 * config/i386/linux.mh (XDEPFILES): Delete.
9903 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9904 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9905 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9906 * config/i386/i386sco.mh (XDEPFILES): Delete.
9907 * config/i386/i386v.mh (XDEPFILES): Delete.
9908 * config/i386/nbsd.mh (XDEPFILES): Delete.
9909 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9910 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9911 * config/i386/symmetry.mh (XDEPFILES): Delete.
9912 * config/i386/obsd.mh (XDEPFILES): Delete.
9913 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9914 * config/ia64/linux.mh (XDEPFILES): Delete.
9915 * config/ia64/aix.mh (XDEPFILES): Delete.
9916 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9917 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9918 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9919 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9920 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9921 * config/m68k/linux.mh (XDEPFILES): Delete.
9922 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9923 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9924 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9925 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9926 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9927 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9928 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9929 * config/m88k/delta88.mh (XDEPFILES): Delete.
9930 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9931 * config/m88k/m88k.mh (XDEPFILES): Delete.
9932 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9933 * config/mips/linux.mh (XDEPFILES): Delete.
9934 * config/mips/irix6.mh (XDEPFILES): Delete.
9935 * config/mips/irix5.mh (XDEPFILES): Delete.
9936 * config/mips/irix4.mh (XDEPFILES): Delete.
9937 * config/mips/irix3.mh (XDEPFILES): Delete.
9938 * config/mips/decstation.mh (XDEPFILES): Delete.
9939 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9940 (NATDEPFILES): Move core-aout.o to here.
9941 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9942 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9943 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9944 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9945 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9946 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9947 * config/pa/hpux11.mh (XDEPFILES): Delete.
9948 * config/powerpc/aix.mh (XDEPFILES): Delete.
9949 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9950 * config/powerpc/linux.mh (XDEPFILES): Delete.
9951 * config/romp/rtbsd.mh: Rename XDEPFILES.
9952 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9953 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9954 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9955 * config/s390/s390.mh (XDEPFILES): Delete.
9956 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9957 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9958 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9959 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9960 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9961 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9962 * config/sparc/linux.mh (XDEPFILES): Delete.
9963 * config/vax/vaxult.mh (XDEPFILES): Delete.
9964 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9965 * Makefile.in (DEPFILES): Remove XDEPFILES.
9967 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9969 * utils.c (internal_verror): Fix comments, default is yes not no.
9970 Update queries to match. Default to quit and dump core.
9972 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9974 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9976 * defs.h, event-top.c, gdbcmd.h: Ditto.
9977 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9978 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9979 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9980 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9981 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9982 * mi/mi-main.c:Ditto.
9984 * stack.c, symfile.c: Update copyright.
9986 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9988 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9989 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9990 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9991 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9993 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9995 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9996 * gdbserver/low-lynx.c (myattach): Likewise.
9997 * gdbserver/low-nbsd.c (myattach): Likewise.
9998 * gdbserver/low-sim.c (myattach): Likewise.
9999 * gdbserver/low-sparc.c (myattach): Likewise.
10000 * gdbserver/low-sun3.c (myattach): Likewise.
10002 * gdbserver/low-linux.c (myattach): New function.
10004 * gdbserver/server.c (attach_inferior): New function.
10005 (main): Handle "--attach".
10007 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10009 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10012 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10014 * c-typeprint.c (is_type_conversion_operator): Add additional
10015 check for non-conversion operators.
10017 2002-01-15 Michael Snyder <msnyder@redhat.com>
10019 * linux-proc.c: Add "info proc" command, a la procfs.c.
10020 (read_mapping): New function, abstract and re-use code.
10021 (linux_find_memory_regions): Use new func read_mapping.
10022 (linux_info_proc_cmd): New function, implement "info proc".
10023 (_initialize_linux_proc): Add new command "info proc".
10025 2002-01-15 Michael Snyder <msnyder@redhat.com>
10027 * symfile.c (generic_load): Use bfd_map_over_sections method
10028 instead of manipulating bfd structure members directly.
10029 (add_section_size_callback): New function, bfd sections callback
10030 used by generic_load.
10031 (load_sections_callback): New function, bfd sections callback
10032 used by generic_load.
10034 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10036 [Based on work by Jim Blandy]
10037 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10038 (builtin_type_vec128): Export.
10039 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10041 (builtin_type_vec128): New builtin type for 128 bit vector
10043 (build_gdbtypes): Initialize builtin_type_v16qi and
10044 builtin_type_v8hi. Create the vec128 register builtin type
10046 (build_builtin_type_vec128): New function.
10047 (_initialize_gdbtypes): Register builtin_type_v16qi and
10048 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10049 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10050 AltiVec register to new builtin type.
10052 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10054 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10057 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10059 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10060 CLEAN_UP_REGISTER_VALUE.
10061 * regcache.c (supply_register): Update only call.
10063 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10065 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10066 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10067 a29k-*-vxworks* targets as obsolete.
10069 2002-01-14 Michael Snyder <msnyder@redhat.com>
10071 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10072 until we can resolve portability issues.
10073 * gregset.h: Remove references to fpxregs.
10074 * gcore.c (gcore_command): Initialize note_sec to NULL.
10076 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10078 * signals.c (target_signal_to_name): Rewrite. Only use
10079 signals[].name when in bounds and non-NULL.
10081 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10083 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10084 * signals.c (target_signal_to_name): Verify that SIG is within the
10085 bounds of the signals array.
10087 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10089 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10091 2002-01-13 Keith Seitz <keiths@redhat.com>
10093 * stack.c (print_frame_info_base): Print the frame's pc
10094 only if when print_frame_info_listing_hook is not defined.
10096 2002-01-13 Keith Seitz <keiths@redhat.com>
10098 * varobj.c (varobj_set_value): Make sure that there were no
10099 errors evaluating the object before attempting to set its
10101 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10102 so this offset adjustment is no longer necessary.
10103 (create_child): Don't set the error flag if the child is
10104 a CPLUS_FAKE_CHILD.
10105 (value_of_child): If value_fetch_lazy fails, return NULL
10106 so that callers will be notified that an error occurred.
10107 (c_value_of_variable): Delay check of variable's validity
10108 until later. We actually want all structs and unions to have
10110 Do not return "???" for variables which could not be evaluated.
10111 This error condition must be returned to the caller so that it
10112 can get the error condition from gdb.
10113 (cplus_name_of_child): Adjust index for vptr before figuring
10114 out the name of the child.
10115 (cplus_value_of_child): If a child's (real) parent is not valid,
10116 don't even bother trying to give a value for it. Just return
10117 an error. Change all instances in this function.
10118 (cplus_type_of_child): If our parent is one of the "fake"
10119 parents, we need to get at the type of the real parent, and
10120 derive the child's true type using this information.
10122 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10124 From 2002-01-09 John Marshall <johnm@falch.net>:
10125 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10126 sources.redhat.com, and tweak some related URLs which had
10127 suffered from linkrot.
10129 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10132 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10133 structures passed in registers.
10135 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10137 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10138 white space which prevented compilation. Reported by DSK
10139 <dsk@student.unsw.edu.au>.
10141 2002-01-11 Michael Snyder <msnyder@redhat.com>
10143 * symfile.c (build_section_addr_info_from_section_tab):
10144 Use bfd access method instead of manipulating bfd directly.
10145 (syms_from_objfile): Ditto.
10146 (simple_overlay_update_1): Ditto.
10147 (simple_overlay_update): Ditto.
10148 (generic_load): Ditto.
10149 (overlay_unmapped_address): FIXME comment, bfd access methods.
10150 (sections_overlap): FIXME comment, bfd access methods.
10151 (pc_in_mapped_range): FIXME comment, bfd access methods.
10152 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10153 (section_is_mapped): FIXME comment, bfd access methods.
10154 (section_is_overlay): FIXME comment, bfd access methods.
10156 * symfile.c (generic_load): Whitespace and long line cleanups.
10157 Remove duplicate variable, change several local variables to
10158 more appropriate data types.
10159 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10161 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10163 From Peter Schauer:
10164 * language.c (longest_local_hex_string_custom): Use phex_nz to
10165 convert NUM to a hex string.
10167 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10169 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10171 Update Copyright year.
10173 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10175 * language.c (longest_raw_hex_string): Delete unused function.
10177 2002-01-11 Petr Sorfa <petrs@caldera.com>
10179 * MAINTAINERS (write-after-approval): Add myself.
10180 * dwarf2read.c (read_tag_string_type): Handling of
10182 (read_tag_string_type): FORTRAN fix to prevent propagation of
10184 (set_cu_language): Handling of DW_LANG_Fortran95
10186 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10188 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10189 GETPID(inferior_ptid).
10190 (store_inferior_registers): Likewise.
10192 2002-01-10 Jason Merrill <jason@redhat.com>
10194 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10197 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10199 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10200 and bfd/elf32-sh-nbsd.c.
10202 2002-01-10 Michael Snyder <msnyder@redhat.com>
10204 * NEWS: Mention --pid and corefile/proc-id behavior change.
10206 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10207 * gcore.c: Include cli/cli-decode.h instead of command.h.
10209 * main.c (captured_main): Add new command line option "--pid".
10210 If the second command line argument (following the symbol-file)
10211 begins with a digit, try to attach to it before trying to open
10213 (print_gdb_help): Document the "--pid" argument.
10215 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10217 * completer.c (command_completer): New function.
10219 * completer.h <command_completer>: Add prototype.
10221 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10222 completer for the "help" command.
10224 2002-01-09 Jason Merrill <jason@redhat.com>
10226 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10228 2002-01-09 Michael Snyder <msnyder@redhat.com>
10230 * i386-linux-nat.c (fill_fpxregset): Make global.
10231 (store_fpxregset): Ditto.
10233 * gregset.h (gdb_fpxregset_t): Define.
10234 (supply_fpxregset): Prototype.
10235 (fill_fpxregset): Prototype.
10237 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10239 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10241 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10242 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10243 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10245 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10247 * MAINTAINERS: Update target maintainer rules so that any
10248 Maintainer can approve a tested patch for a maintenance-only
10251 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10253 * MAINTAINERS (write-after-approval): Add myself.
10255 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10258 2002-01-08 Michael Snyder <msnyder@redhat.com>
10260 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10261 real name of the executable, rather than the /proc name.
10263 2002-01-03 Michael Snyder <msnyder@redhat.com>
10265 Implement a "generate-core-file" command in gdb, save target state.
10266 * gcore.c: New file. Implement new command 'generate-core-file'.
10267 Save a corefile image of the current state of the inferior.
10268 * linux-proc.c: Add linux-specific code for saving corefiles.
10269 * target.h (struct target_ops): Add new target vectors for saving
10270 corefiles; to_find_memory_regions and to_make_corefile_notes.
10271 (target_find_memory_regions): New macro.
10272 (target_make_corefile_notes): New macro.
10273 * target.c (update_current_target): Inherit new target methods.
10274 (dummy_find_memory_regions): New place-holder method.
10275 (dummy_make_corefile_notes): New place-holder method.
10276 (init_dummy_target): Initialize new dummy target vectors.
10277 * exec.c (exec_set_find_memory_regions): New function.
10278 Allow the exec_ops vector for memory regions to be taken over.
10279 (exec_make_note_section): New function, target vector method.
10280 * defs.h (exec_set_find_memory_regions): Export prototype.
10281 * procfs.c (proc_find_memory_regions): New function, corefile method.
10282 (procfs_make_note_section): New function, corefile method.
10283 (init_procfs_ops): Set new target vector pointers.
10284 (find_memory_regions_callback): New function.
10285 (procfs_do_thread_registers): New function.
10286 (procfs_corefile_thread_callback): New function.
10287 * sol-thread.c (sol_find_memory_regions): New function.
10288 (sol_make_note_section): New function.
10289 (init_sol_thread_ops): Initialize new target vectors.
10290 * inftarg.c (inftarg_set_find_memory_regions): New function.
10291 Allow to_find_memory_regions vector to be taken over.
10292 (inftarg_set_make_corefile_notes): New function.
10293 Allow to_make_corefile_notes vector to be taken over.
10294 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10295 interface layer if not target_has_execution (may be a corefile).
10296 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10297 * config/sparc/sun4sol2.mh: Ditto.
10298 * config/alpha/alpha-linux.mh: Ditto.
10299 * config/arm/linux.mh: Ditto.
10300 * config/i386/x86-64linux.mh: Ditto.
10301 * config/ia64/linux.mh: Ditto.
10302 * config/m68k/linux.mh: Ditto.
10303 * config/mips/linux.mh: Ditto.
10304 * config/powerpc/linux.mh: Ditto.
10305 * config/sparc/linux.mh: Ditto.
10307 2002-01-07 Michael Snyder <msnyder@redhat.com>
10309 * arm-linux-nat.c: Remove references to regcache.c internal data
10310 (registers[] and register_valid[]).
10312 2002-01-07 Michael Snyder <msnyder@redhat.com>
10314 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10315 so that attaching to a pid will automatically read the process's
10316 symbol file and shlibs.
10317 * Makefile.in: Add rule for linux-proc.o.
10318 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10319 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10320 * config/arm/linux.mh: Ditto.
10321 * config/i386/linux.mh: Ditto.
10322 * config/i386/x86-64linux.mh: Ditto.
10323 * config/ia64/linux.mh: Ditto.
10324 * config/m68k/linux.mh: Ditto.
10325 * config/mips/linux.mh: Ditto.
10326 * config/powerpc/linux.mh: Ditto.
10327 * config/sparc/linux.mh: Ditto.
10329 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10331 * win32-nat.c: Add i386-tdep.h dependency.
10333 2002-01-07 Michael Snyder <msnyder@redhat.com>
10335 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10336 instead of bfd_get_arch_size. Don't bail out just because
10337 there's no exec_bfd.
10339 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10340 * p-valprint.c (pascal_object_print_value): Ditto.
10341 * somread.c (som_symtab_read): Ditto.
10342 * symfile.c (simple_free_overlay_region_table): Ditto.
10343 * valops.c (value_assign): Ditto.
10345 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10346 use tilde_expand and strerror for opening save-tracepoints file.
10348 * thread-db.c (thread_db_new_objfile): Indendation fix.
10350 * infptrace.c (GDB_MAX_ALLOCA): New define.
10351 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10352 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10353 can be overridden with whatever value is appropriate to the host).
10354 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10355 alloca to allocate potentially large buffer.
10356 * rs6000-nat.c (child_xfer_memory): Ditto.
10357 * symm-nat.c (child_xfer_memory): Ditto.
10358 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10360 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10362 From Nick Clifton <nickc@redhat.com>
10363 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10365 2002-01-07 Michael Snyder <msnyder@redhat.com>
10367 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10368 Don't use exec_bfd if it's NULL.
10370 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10372 * valops.c (value_arg_coerce): Fix formatting.
10374 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10376 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10377 * gnu-nat.c: Ditto.
10379 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10381 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10382 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10383 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10384 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10385 z8k-coff have not been multi-arched. Update z8k-coff build
10388 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10390 * MAINTAINERS: Mark a29k target as obsolete.
10391 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10392 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10394 * NEWS: Note that a29k targets are obsolete.
10395 * a29k-tdep.c: Mark as obsolete.
10396 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10397 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10398 a29k-*-vxworks* targets as obsolete.
10399 * remote-adapt.c: Obsolete.
10400 * remote-eb.c: Obsolete.
10401 * remote-mm.c: Obsolete.
10402 * remote-udi.c: Obsolete.
10403 * config/a29k/a29k-udi.mt: Obsolete.
10404 * config/a29k/a29k.mt: Obsolete.
10405 * config/a29k/tm-a29k.h: Obsolete.
10406 * config/a29k/tm-vx29k.h: Obsolete.
10407 * config/a29k/vx29k.mt: Obsolete.
10409 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10411 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10412 with BFD_ENDIAN_BIG.
10414 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10416 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10417 * configure, config.in: Re-generate.
10418 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10419 * defs.h: Do not include <endian.h>.
10421 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10423 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10424 * config.in: Regenerate.
10425 * configure.in: Update copyright years.
10426 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10427 * configure: Regenerate.
10428 * i386bsd-nat.c: Update copyright years.
10429 (fill_gregset): Use regcache_collect.
10430 (fetch_inferior_registers): Only fetch integer registers
10431 if requested to do so. Add support for XMM registers
10432 using PT_GETXMMREGS.
10433 (store_inferior_registers): Only store integer registers
10434 if requested to do so. Add support for XMM registers
10435 using PT_SETXMMREGS.
10436 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10437 (store_inferior_registers): Remove.
10438 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10439 (fetch_elfcore_registers): New function.
10440 (i386nbsd_elfcore_fns): New.
10441 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10442 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10444 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10445 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10446 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10447 * config/i386/tm-nbsd.h: Update copyright years.
10448 (HAVE_SSE_REGS): Define.
10449 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10450 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10451 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10452 (SIGCONTEXT_PC_OFFSET): Remove.
10453 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10455 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10457 * configure.tgt: Remove powerpc-*-macos* target.
10458 * config/m68k/xm-mpw.h: Delete file.
10459 * config/xm-mpw.h: Delete file.
10460 * ser-mac.c: Delete file.
10461 * mpw-make.sed: Delete file.
10462 * mpw-config.in: Delete file.
10463 * mac-xdep.c: Delete file.
10464 * mac-gdb.r: Delete file.
10465 * mac-defs.h: Delete file.
10466 * mac-nat.c: Delete file.
10467 * config/powerpc/macos.mh: Delete file.
10468 * config/powerpc/macos.mt: Delete file.
10469 * config/powerpc/nm-macos.h: Delete file.
10470 * config/powerpc/tm-macos.h: Delete file.
10471 * source.c (openp, open_source_file): Remove obsolete code.
10472 * top.c (gdb_readline): Ditto.
10473 * utils.c (query): Ditto.
10474 * event-top.c (display_gdb_prompt): Ditto.
10475 * Makefile.in (ser-mac.o): Delete obsolete target.
10478 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10480 * defs.h (BIG_ENDIAN): Delete macro definition.
10481 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10482 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10483 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10484 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10485 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10486 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10487 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10488 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10489 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10490 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10491 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10492 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10493 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10494 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10495 * gdbarch.c: Re-generate.
10497 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10499 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10502 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10504 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10506 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10508 * value.h (value_ptr): Delete typedef.
10510 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10512 * i386nbsd-nat.c: Update copyright years.
10513 Include i386-tdep.h.
10515 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10517 * stabsread.c: Update copyright years.
10519 From Debashis Mahata <debashis.mahata@wipro.com>:
10520 (read_struct_fields): Deal with Sun C compiler erroneous stab
10521 output for structs and unions.
10524 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10526 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10529 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10531 * cp-abi.c: Fix whitespace.
10532 (baseclass_offset): New wrapper function.
10533 * cp-abi.h (baseclass_offset): Add prototype.
10534 (struct cp_abi_ops): Add baseclass_offset pointer.
10536 * valops.c (vb_match): Move to...
10537 * gnu-v2-abi.c (vb_match): here.
10538 * valops.c (baseclass_offset): Move to...
10539 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10541 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10543 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10544 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10545 * hpacc-abi.c (init_hpacc_ops): Likewise.
10547 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10549 * valops.c (find_overload_match): Accept obj as a
10550 reference parameter. Update it before returning.
10551 * value.h (find_overload_match): Update prototype.
10552 * eval.c (evaluate_subexp_standard): Pass object to
10553 find_overload_match by reference.
10555 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10557 * valarith.c: Replace value_ptr with struct value pointer. Remove
10558 register attribute from value declarations.
10561 * scm-lang.c (scm_lookup_name): Ditto.
10563 2002-01-03 Michael Snyder <msnyder@redhat.com>
10565 Abstract the functionality of iterating over mapped memory
10566 regions into a general purpose iterator function.
10567 * procfs.c (iterate_over_mappings): New function, general purpose
10568 iterator for memory sections.
10569 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10570 (solib_mappings_callback): New function, callback for above.
10571 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10572 (info_mappings_callback): New function, callback for above.
10574 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10576 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10578 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10579 * i386-tdep.c: Include "elf-bfd.h".
10580 (process_note_abi_tag_sections): New function.
10581 (i386_gdbarch_init): Add code to recognize various OS/ABI
10584 * maint.c (_initialize_maint_cmds): Add missing \ in
10587 For older changes see ChangeLog-2001
10593 version-control: never