1 2002-08-20 David Carlton <carlton@math.stanford.edu>
3 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5 (read_file_scope): Check that line_header is nonzero before
6 decoding macro information.
8 2002-08-20 Mark Kettenis <kettenis@gnu.org>
10 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
11 flag the general-purpose registers as floating-point on targets
12 that don't support the floating-point registers.
14 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
16 * rs6000-tdep.c (altivec_register_p): Delete.
17 (rs6000_do_altivec_registers): Delete.
18 (rs6000_altivec_registers_info): Delete.
19 (rs6000_do_registers_info): Delete.
20 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
21 (rs6000_gdbarch_init): Remove setting of do_registers_info.
23 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
25 * infcmd.c (do_registers_info): Print vector registers in hex
27 (print_vector_info): Check that printing registers
29 (print_float_info): Ditto.
31 2002-08-20 Andrew Cagney <ac131313@redhat.com>
33 * mips-tdep.c (mips_gdbarch_init): Update.
34 (mips_o32_extract_return_value): Rewrite.
35 (mips_o32_store_return_value): Rewrite.
36 (mips_o32_xfer_return_value): New function.
37 (mips_xfer_register): Tweak debug print message. Allow for
38 buf_offset when dumping the value transfered.
40 2002-08-20 Andrew Cagney <ac131313@redhat.com>
42 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
43 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
44 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
45 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
46 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
48 2002-08-14 Michael Snyder <msnyder@redhat.com>
50 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
52 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
54 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
56 (P): New macro to define a register as a pseudo register.
57 (R, R4, R8, R16, FR32, R64, R0): Updated.
58 (struct variant): Add new fields for number of pseudo registers
59 and number of total registers.
60 (tot_num_registers): New macro replacing....
61 (num_registers): ...deleted macro.
62 (num_registers): New function.
63 (num_pseudo_registers): New function.
64 (variants): Update all variants to intialize new fields correctly.
65 Postpone initialization of number of pseudo regs and real regs.
66 (init_variants): New function.
67 (rs6000_gdbarch_init): Initialize variants. Update calculation of
70 2002-08-19 David Carlton <carlton@math.stanford.edu>
72 * valops.c (search_struct_field): Change error message to treat
73 return value of 0 from value_static_field as meaning that field is
75 (value_struct_elt_for_reference): Ditto.
76 * values.c (value_static_field): Treat an unresolved location the
77 same as a nonexistent symbol. Fix PR gdb/635.
78 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
79 enclosed. Fix PR gdb/574.
80 * MAINTAINERS: Add self to Write After Approval list.
82 2002-08-19 Andrew Cagney <ac131313@redhat.com>
84 * mips-tdep.c (mips_xfer_register): New function.
85 (mips_n32n64_extract_return_value): Rewrite.
86 (mips_gdbarch_init): For N32 and N64, set extract_return_value
87 instead of deprecated_extract_return_value.
89 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
91 * rs6000-tdep.c (TDEP): Delete macro.
92 (branch_dest): Replace use of TDEP macro with its body.
93 (rs6000_pop_frame): Ditto.
94 (rs6000_push_arguments): Ditto.
95 (rs6000_skip_trampoline_code): Ditto.
96 (rs6000_frame_saved_pc): Ditto.
97 (rs6000_frame_chain): Ditto.
98 (rs6000_register_name): Ditto.
99 (rs6000_register_byte): Ditto.
100 (rs6000_register_raw_size): Ditto.
101 (rs6000_register_virtual_type): Ditto.
102 (rs6000_register_convertible): Ditto.
103 (rs6000_convert_from_func_ptr_addr): Ditto.
105 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
107 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
109 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
110 MIPS_LINUX_JB_ELEMENT_SIZE.
111 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
112 for MAX_REGISTER_RAW_SIZE arrays.
113 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
114 MIPS_LINUX_JB_ELEMENT_SIZE.
116 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
118 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
120 2002-08-19 Aidan Skinner <aidan@velvet.net>
122 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
123 ada-valprint.c ada-tasks.c.
124 (YYFILES): Add ada-exp.y.
125 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
126 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
127 (ada-exp.tab.o): New target.
129 2002-08-18 Andrew Cagney <ac131313@redhat.com>
131 * regcache.c (regcache_xfer_part): New function.
132 (regcache_raw_read_part): New function.
133 (regcache_raw_write_part): New function.
134 (regcache_cooked_read_part): New function.
135 (regcache_cooked_write_part): New function.
136 * regcache.h (regcache_raw_read_part): Declare.
137 (regcache_raw_write_part): Declare.
138 (regcache_cooked_read_part): Declare.
139 (regcache_cooked_write_part): Declare.
141 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
143 * remote.c (remote_open_1): Add async_p.
144 (remote_async_open_1): Delete.
145 (open_remote_target): Delete.
146 (remote_open, extended_remote_open): Update calls to remote_open_1.
147 (remote_async_open, extended_remote_async_open): Call
148 remote_open_1 instead of remote_async_open_1.
150 2002-08-19 Mark Kettenis <kettenis@gnu.org>
152 * blockframe.c: Fix a few coding standard violations.
154 2002-08-19 Mark Kettenis <kettenis@gnu.org>
156 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
158 * config/i386/tm-i386sco5.h: ... here. File removed.
159 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
161 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
162 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
163 (TM_FILE): Set to tm-i386.h.
164 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
165 * config/i386/tm-i386v.h: Remove file.
166 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
167 instead of "i386/tm-i386v.h".
168 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
169 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
171 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
172 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
175 2002-08-18 Mark Kettenis <kettenis@gnu.org>
177 * config/i386/nm-i386v.h: Add protection against
179 (i386_register_u_addr): Remove prototype.
180 (register_u_addr): New prototype.
181 (REGISTER_U_ADDR): Redefine accordingly.
182 * i386v-nat.c: Improve several comments.
183 (i386_register_u_addr): Change signature and rename to
184 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
187 2002-08-18 Andrew Cagney <ac131313@redhat.com>
189 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
190 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
191 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
192 deprecated_extract_return_value.
193 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
194 rename mips_o32o64_push_arguments.
195 (mips_gdbarch_init): Update.
196 (mips_extract_return_value): Delete.
197 (mips_o32_extract_return_value): Clone mips_extract_return_value.
198 (mips_o64_extract_return_value): Clone mips_extract_return_value.
199 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
200 (mips_n32n64_extract_return_value): Clone
201 mips_extract_return_value.
202 (mips_store_return_value): Delete.
203 (mips_o32_store_return_value): Clone mips_store_return_value.
204 (mips_o64_store_return_value): Clone mips_store_return_value.
205 (mips_eabi_store_return_value): Clone mips_store_return_value.
206 (mips_n32n64_store_return_value): Clone mips_store_return_value.
208 2002-08-18 Aidan Skinner <aidan@velvet.net>
210 * ada-lang.c: Use gdb_string.h instead of <string.h>.
211 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
213 2002-08-18 Aidan Skinner <aidan@velvet.net>
215 * ada-lang.c: Run through gdb_indent.sh.
216 * ada-lang.h: Run through gdb_indent.sh.
217 * ada-tasks.c: Run through gdb_indent.sh.
218 * ada-typeprint.c: Run through gdb_indent.sh.
219 * ada-valprint.c: Run through gdb_indent.sh.
221 2002-08-18 Andrew Cagney <ac131313@redhat.com>
223 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
226 2002-08-18 Mark Kettenis <kettenis@gnu.org>
228 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
230 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
231 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
233 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
234 write_register_gen instead of write_register_bytes.
236 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
237 i[3456]-*-osf1mk* configurations have been made obsolete.
238 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
239 i[3456]86-*-osf1mk* hosts obsolete.
240 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
242 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
243 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
244 config/i386/i386m3.mt, config/i386/nm-m3.h,
245 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
246 config/i386/i386mk.mh, config/i386/i386mk.mt,
247 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
249 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
250 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
251 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
253 2002-08-18 Andrew Cagney <ac131313@redhat.com>
255 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
256 (hppa_value_returned_from_stack): Declare.
257 (hppa_extract_return_value): Declare.
258 * config/pa/hppa.mt: New file.
259 * configure.tgt: Recognize hppa*-*-*.
260 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
262 2002-08-18 Mark Kettenis <kettenis@gnu.org>
264 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
267 2002-08-17 Mark Kettenis <kettenis@gnu.org>
269 * top.c (gdb_rl_operate_and_get_next): Make sure
270 operate-and-get-next functions correctly even when the history
271 list is completely filled.
273 2002-08-18 Andrew Cagney <ac131313@redhat.com>
275 * MAINTAINERS (Target Instruction Set Architectures): Rename
276 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
277 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
278 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
279 already listed under Host/Native.
281 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
282 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
285 2002-08-17 Andrew Cagney <ac131313@redhat.com>
287 * config/ia64/ia64.mt: New file.
288 * config/alpha/alpha.mt: New file.
289 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
290 ia64-linux-gnu. Mention that ia64-elf is broken.
291 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
293 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
295 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
296 generic_func_frame_valid instead of func_frame_valid.
298 2002-08-16 Joel Brobecker <brobecker@gnat.com>
300 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
301 procfs appears to be broken when debugging on multi-processor
302 machines. So enable software single stepping in order to avoid
303 using the procfs interface to do next/step operations, using
304 internal breakpoints instead.
306 * infrun.c (handle_inferior_event): Readjust the stop_pc by
307 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
308 make this pc address equal to the value it would have if the
309 system stepping capability was used. Also set a new flag used
310 to ensure that we don't readjust the PC one more time later.
312 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
313 address by DECR_PC_AFTER_BREAK when software single step is
314 in use for this architecture, as this has already been taken
315 care of in handle_inferior_event().
317 2002-08-16 Joel Brobecker <brobecker@gnat.com>
319 * infrun.c (handle_inferior_event): Minor reformatting, to make
320 a rather long condition expression easier to read.
322 2002-08-16 Andrew Cagney <ac131313@redhat.com>
324 * Makefile.in (gdbtk.o): Move to end of file.
325 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
326 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
327 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
328 (gdbtk-wrapper.o, gdbres.o): Ditto.
330 2002-08-16 Andrew Cagney <ac131313@redhat.com>
332 * Makefile.in (copying.o): Separate out compile rule.
333 (hpux-thread.o, procfs.o, signals.o): Ditto.
334 (v850ice.o, z8k-tdep.o): Ditto.
335 (tui-file.o): Move to TUI section.
336 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
337 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
339 2002-08-16 Joel Brobecker <brobecker@gnat.com>
341 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
342 skip_trampoline_code, for better namespace-proofing.
344 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
346 2002-08-16 Joel Brobecker <brobecker@gnat.com>
348 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
350 2002-08-16 Joel Brobecker <brobecker@gnat.com>
352 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
353 signal, check whether we hit a breakpoint before checking for a
354 single step breakpoint. Otherwise, GDB fails to notice that a
355 breakpoint has been hit when stepping onto a breakpoint.
357 2002-08-16 Keith Seitz <keiths@redhat.com>
359 * gdb-events.sh (clear_gdb_event_hooks): New function.
360 * gdb-events.c: Regenerate.
361 * gdb-events.h: Regenerate.
363 2002-08-16 Andrew Cagney <ac131313@redhat.com>
365 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
367 * breakpoint.h (bpstat_stop_status): Add parameter names.
369 2002-08-16 Grace Sainsbury <graces@redhat.com>
371 * remote.c (remote_insert_hw_breakpoint)
372 (remote_remove_hw_breakpoint): Fix calculation of length field
375 2002-08-15 Michael Snyder <msnyder@redhat.com>
377 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
378 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
379 (supply_fpregset): Ditto.
381 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
382 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
383 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
384 (TARGET_READ_SP): Delete.
385 (DO_REGISTERS_INFO): Delete.
386 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
388 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
389 from macros to functions.
391 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
392 (mips_register_convertible, mips_register_convert_to_virtual,
393 mips_register_convert_to_raw): Make static.
394 (mips_read_sp): New function.
395 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
396 (mips_do_registers_info): Make static.
397 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
398 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
399 (mips_register_convert_from_type, mips_register_convert_to_type):
401 (mips_gdbarch_init): Set up function_start_offset,
402 register_virtual_size, pc_in_sigtramp.
404 2002-08-15 Andrew Cagney <ac131313@redhat.com>
406 * infcmd.c (vector_info): New function.
407 (_initialize_infcmd): Add command "info vector".
408 (print_vector_info): New function.
410 * gdbarch.sh (PRINT_VECTOR_INFO): New method
411 * gdbarch.h, gdbarch.c: Regenerate.
413 2002-08-15 Andrew Cagney <ac131313@redhat.com>
415 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
416 ``print_all''. Only print vector registers when ``print_all''.
418 2002-08-15 Andrew Cagney <ac131313@redhat.com>
420 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
421 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
423 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
424 Add `args' parameter.
425 * gdbarch.h, gdbarch.c: Regenerate.
427 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
429 * infcmd.c (float_info): Call print_float_info.
430 (print_float_info): New function. By default, print the
431 floating-point registers.
433 * arch-utils.h (default_print_float_info): Delete declaration.
434 * arch-utils.c (default_print_float_info): Delete function.
436 2002-08-16 Mark Kettenis <kettenis@gnu.org>
438 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
441 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
444 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
445 * configure.host: Make i[3456]86-*-aix host obsolete.
446 * configure.tgt: Make i[3456]86-*-aix target obsolete.
447 * config/i386/i386aix.mh, config/i386/i386aix.mt,
448 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
449 config/i386/xm-i386aix.h: Make files obsolete.
450 * i386aix-nat.c: Make file obsolete.
451 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
452 (i386aix-nat.o): Make target obsolete.
454 * config/i386/nm-gnu.h: Removed.
455 * config/i386/nm-i386gnu.h: New file.
456 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
457 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
459 * config/i386/tm-i386gnu.h: ... here. Removed.
460 * config/i386/xm-i386gnu.h: Removed.
461 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
462 (NAT_FILE): Set to nm-i386gnu.h.
463 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
464 * i386-tdep.c: New file.
465 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
466 (i386gnu-tdep.o): Specify dependencies.
468 2002-08-15 Mark Kettenis <kettenis@gnu.org>
470 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
471 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
472 Adjust a few comments to reflect reality a bit closer.
473 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
474 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
475 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
476 target_insert_watchpoint, target_remove_watchpoint):
478 * config/i386/nm-i386sco5.h: ... here.
479 (kernel_u_size): Add prototype. Improve a few comments and add
480 protection against multiple inclusion.
482 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
485 * uw-thread.c (SP_ARG0): Define if not already defined.
486 * config/i386/tm-i386.h (SO_ARG0): Remove define.
488 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
490 * config/i386/tm-i386.h: Don't include "regcache.h".
492 * i387-tdep.h (i387_print_float_info): New prototype.
493 * i387-tdep.c (print_i387_value, print_i387_ext,
494 print_i387_status_word, print_i387_control_word): Add `struct
495 ui_file *' argument and use it for output.
496 (i387_print_float_info): Renamed from i387_float_info. Add
497 `struct gdbarch *' and `struct ui_file *' arguments and use the
499 * i386-tdep.c: Include "i387-tdep.h".
500 (i386_gdbarch_init): Set print_float_info.
501 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
502 (FLOAT_INFO): Remove define.
504 2002-08-13 Michael Snyder <msnyder@redhat.com>
506 * mips-tdep.c (mips_push_arguments): Rename to
507 mips_eabi_push_arguments, and tune for EABI.
508 (MIPS_REGS_HAVE_HOME_P): Delete.
509 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
510 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
511 Delete references to mips_regs_have_home_p.
513 2002-08-14 Keith Seitz <keiths@redhat.com>
515 * Makefile.in (install-gdbtk): Create insight plugin directory.
516 Install plugins.tcl file.
518 2002-08-14 Keith Seitz <keiths@redhat.com>
520 * configure.in: Move SUBDIRS to near top of the file so that
521 --enable options may add things to it.
522 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
523 * configure: Regenerate.
525 2002-08-13 Michael Snyder <msnyder@redhat.com>
527 * mips-tdep.c (mips_o32o64_push_arguments): New function,
528 cloned from mips_push_arguments, tuned for o32/o64 ABI.
529 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
531 2002-08-13 Andrew Cagney <ac131313@redhat.com>
533 * vax-tdep.c (vax_get_saved_register): Delete function.
534 (vax_gdbarch_init): Update.
535 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
536 (ns32k_gdbarch_init): Update.
537 * alpha-tdep.c (alpha_get_saved_register): Delete function.
538 (alpha_gdbarch_init): Update.
540 2002-08-13 Andrew Cagney <cagney@redhat.com>
542 * regcache.c (init_regcache_descr): Overallocate the
543 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
544 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
546 (set_register_cached): Add range checking assertions. Use
549 2002-08-13 Mark Kettenis <kettenis@gnu.org>
551 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
552 numbers for MMX registers.
554 2002-08-13 Andrew Cagney <cagney@redhat.com>
556 * i386-tdep.c (i386_gdbarch_init): Use
557 generic_unwind_get_saved_register.
559 2002-08-13 Kevin Buettner <kevinb@redhat.com>
561 * procfs.c (procfs_can_use_hw_breakpoint): New function.
562 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
564 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
565 Delete. Add comment regarding this now-deleted target method.
567 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
569 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
570 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
571 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
572 real PC and the page number (if it's within the memory bank window).
573 (m68hc11_pseudo_register_write): Likewise when saving.
574 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
575 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
576 (m68hc11_register_raw_size): And use 32-bit for it.
577 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
578 16K memory bank is used by the prog; also use the virtual pc.
580 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
582 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
583 (m68hc11_gdbarch_init): Install it in gdbarch.
584 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
585 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
586 (MSYMBOL_SIZE): New for documentation.
587 (insn_return_kind): Enum to specify how a function returns.
588 (frame_extra_info): Cleanup and record the return mode.
589 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
590 register in address computation.
591 (m68hc11_get_return_insn): New to obtain the return instruction used
593 (m68hc11_frame_init_saved_regs): Take into account the return
594 instruction used by the function for far and interrupt functions.
595 (m68hc11_init_extra_frame_info): Take into account page register.
596 (m68hc11_frame_args_address): Adjust according to the return mode.
597 (show_regs): Print page register only when it's used.
599 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
601 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
602 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
603 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
605 (m68hc11_register_raw_size): Likewise.
607 2002-08-13 Andrew Cagney <cagney@redhat.com>
609 * i386-tdep.c (i386_register_name): Handle mmx registers.
610 (mmx_regnum_p): New function.
611 (i386_mmx_names): New array.
612 (mmx_num_regs): New variable.
613 (i386_pseudo_register_read): New function.
614 (i386_pseudo_register_write): New function.
615 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
617 * regcache.c (regcache_raw_read_unsigned): New function.
618 (regcache_raw_read_signed): New function.
619 * regcache.h (regcache_raw_read_unsigned): Declare.
620 (regcache_raw_read_signed): Declare.
622 2002-08-13 Andrew Cagney <cagney@redhat.com>
624 * regcache.c (regcache_raw_read_as_address): Delete function.
625 (regcache_cooked_read_signed): New function.
626 (regcache_cooked_read_unsigned): New function.
627 * regcache.h (regcache_cooked_read_signed): Declare.
628 (regcache_cooked_read_unsigned): Declare.
629 (regcache_raw_read_as_address): Delete declaration.
631 * blockframe.c (generic_read_register_dummy): Use
632 regcache_cooked_read_unsigned.
633 * i386-tdep.c (i386_extract_struct_value_address): Use
634 regcache_cooked_read_unsigned.
636 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
639 double sizes according to ELF ABI flags.
640 (gdbarch_tdep): Record elf_flags.
642 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
644 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
645 (m6812_prolog): They can appear in 68HC12 function prologue.
646 (m68hc11_frame_chain): Cleanup.
648 2002-08-12 Andrew Cagney <cagney@redhat.com>
650 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
652 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
653 (i386_linux_register_raw_size): Delete function.
654 (i386_linux_init_abi): Update.
655 * i386-tdep.c (i386_register_raw_size): Delete function.
656 (i386_register_byte): Delete function.
657 (i386_gdbarch_init): Update.
658 (i386_register_size): Delete array.
659 (i386_register_offset): Delete array.
661 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
662 (REGISTER_RAW_SIZE): Delete macro.
663 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
664 (REGISTER_BYTE): Delete macro.
666 2002-08-11 Aidan Skinner <aidan@velvet.net>
668 * ada-lang.c (ada_lookup_partial_symbol)
669 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
670 prototype names so that grep ^func works properly.
672 * ada-lang.c (ada_array_element_type)
673 (ada_lookup_partial_symbol): Fix typos in parameter list.
675 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
676 Fix prototype names so that grep ^func works properly.
678 2002-08-10 Andrew Cagney <cagney@redhat.com>
679 Elena Zannoni <ezannoni@redhat.com>
680 Martin M. Hunt <hunt@redhat.com>
682 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
683 (build_builtin_type_vec128i): Set the vector bit.
684 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
685 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
686 (build_builtin_type_vec64): New function.
687 (build_builtin_type_vec64i): New function.
688 (build_gdbtypes): Initialize builtin_type_vec64 and
691 2002-08-09 Andrew Cagney <cagney@redhat.com>
693 * regcache.c (regcache_dump): Compare the register offset
695 * arch-utils.c (generic_register_byte): New function.
696 * arch-utils.h (generic_register_byte): Declare.
697 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
698 * gdbarch.h, gdbarch.c: Regenerate.
700 2002-08-09 Andrew Cagney <cagney@redhat.com>
702 * regcache.c: Include "gdbcmd.h"
703 (_initialize_regcache): Add commands "maintenance print
704 registers", "maintenance print raw-registers" and "maintenance
705 print cooked-registers".
706 (enum regcache_dump_what): Define.
707 (dump_endian_bytes): New function.
708 (regcache_dump): New function.
709 (regcache_print): New function.
710 (maintenance_print_registers): New function.
711 (maintenance_print_raw_registers): New function.
712 (maintenance_print_cooked_registers): New function.
713 * Makefile.in (regcache.o): Update dependencies.
715 2002-08-09 Michael Snyder <msnyder@redhat.com>
717 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
718 (mips_push_arguments): Correct some comments. Use paddr_nz
719 for printing addresses in debug output. Replace static
720 allocation using MAX_REGISTER_RAW_SIZE with alloca.
721 (mips_n32n64_push_arguments): New function, cloned from
722 mips_push_arguments and tuned for the n32/n64 ABI.
723 (mips_push_register): Buffer needs dynamic allocation.
724 (mips_print_register): Ditto.
725 (do_gp_register_row): Ditto.
726 (mips_store_return_value): Ditto.
727 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
729 2002-08-09 Don Howard <dhoward@redhat.com>
731 * memattr.c (mem_info_command): Print special case of upper bound
732 as max CORE_ADDR + 1.
734 2002-08-08 Michael Snyder <msnyder@redhat.com>
736 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
737 returns structs by ref if they're too big to fit in two registers.
739 2002-08-09 Kevin Buettner <kevinb@redhat.com>
741 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
743 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
744 mips_find_saved_regs().
745 (mips_pop_frame): Likewise.
747 2002-08-09 Kevin Buettner <kevinb@redhat.com>
749 * blockframe.c (frame_saved_regs_register_unwind): Revise
750 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
753 2002-08-09 Grace Sainsbury <graces@redhat.com>
755 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
756 T-packets; the 'a' is not taken as a register number.
757 (remote_check_watch_resources, remote_stopped_by_watchpoint)
758 (remote_stopped_data_address): New functions; add to target
760 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
761 prototypes to match other implementations of this
762 function. replace integer argument with pointer -- the length
763 field in the Z-packet is the length of what is pointed to or 1 if
764 pointer is null. Add to target vector.
765 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
769 * remote.c (remote_wait): Add support to extract optional
770 watchpoint information from T-packet. Ignore unrecognized
771 optional info in T-packet.
772 (remote_async_wait): Ditto.
774 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
776 * cli/cli-dump.c: Change fopen modes to use binary open modes
777 as defined in include/fopen-bin.h throughout.
779 2002-08-08 Michael Snyder <msnyder@redhat.com>
781 * mips-tdep.c: Minor whitespace and indentation clean-ups.
783 2002-08-08 Kevin Buettner <kevinb@redhat.com>
785 * doublest.c (store_floating): Avoid floatformat_from_doublest()
786 assertion failure by returning early after a warning.
788 2002-08-08 Kevin Buettner <kevinb@redhat.com>
790 * mips-tdep.c (mips_find_saved_regs): Make static.
791 (mips_frame_init_saved_regs): New function.
792 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
793 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
794 (mips_find_saved_regs): Delete declaration.
796 2002-08-08 Grace Sainsbury <graces@redhat.com>
798 * remote.c (remote_wait, remote_async_wait): Change
799 thread_num from int to ULONGEST.
800 (unpack_varlen_hex): Change result parameter from
803 2002-08-08 Andrew Cagney <ac131313@redhat.com>
805 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
806 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
808 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
810 2002-08-08 Andrew Cagney <cagney@redhat.com>
812 * gcore.c (override_derive_stack_segment): Delete variable.
813 (preempt_derive_stack_segment): Delete function.
814 (derive_stack_segment): Delete function.
815 (default_derive_stack_segment): Renamed to derive_stack_segment.
816 (override_derive_heap_segment): Delete variable.
817 (preempt_derive_heap_segment): Delete function.
818 (derive_heap_segment): Delete function.
819 (default_derive_heap_segment): Rename to derive_heap_segment.
821 2002-08-06 Michael Snyder <msnyder@redhat.com>
823 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
824 * mips-tdep.c (mips_EABI_use_struct_convention,
825 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
826 New functions. (mips_use_struct_convention): Delete.
827 (mips_gdbarch_init): set use_gdbarch_convention.
829 2002-08-06 Michael Snyder <msnyder@redhat.com>
831 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
832 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
833 mips_o32_reg_struct_has_addr): New functions.
834 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
836 2002-08-07 Andrew Cagney <ac131313@redhat.com>
838 * regcache.c (pseudo_register): Delete function.
839 (fetch_register): Delete function.
840 (store_register): Delete function.
841 (regcache_raw_read, legacy_read_register_gen): Use
842 target_fetch_registers instead of fetch_register.
843 (legacy_write_register_gen, regcache_raw_write): Use
844 target_store_register instead of store_register.
845 (write_register_bytes): Ditto.
847 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
848 (STORE_PSEUDO_REGISTER): Delete.
849 * gdbarch.h, gdbarch.c: Regenerate.
851 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
853 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
854 write dump file binary.
856 2002-08-05 Michael Snyder <msnyder@redhat.com>
858 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
859 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
860 (mips_gdbarch_init): Set N32 target to be mips64.
862 2002-08-06 Kevin Buettner <kevinb@redhat.com>
864 * frame.c (find_saved_register): Break out of loop once saved
865 register address is found. Don't mention sparc in loop comment
868 2002-08-06 Kevin Buettner <kevinb@redhat.com>
870 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
871 mips_default_saved_regsize to 8.
873 2002-08-06 Andrew Cagney <ac131313@redhat.com>
875 * gcore.c: Do not include <sys/procfs.h>.
876 * Makefile.in (gcore.o): Update dependencies.
878 2002-08-06 Andrew Cagney <cagney@redhat.com>
880 * configure.tgt: Make arc-*-* obsolete.
881 * NEWS: Mention that arc-*-* has been identifed as obsolete.
882 * MAINTAINERS: Make arc-elf obsolete.
883 * arc-tdep.c: Make file obsolete.
884 * config/arc/arc.mt: Ditto.
885 * config/arc/tm-arc.h: Ditto.
887 2002-08-05 Theodore A. Roth <troth@verinet.com>
889 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
891 2002-08-05 Andrew Cagney <ac131313@redhat.com>
893 * mcore-tdep.c (mcore_gdbarch_init): Use
894 generic_unwind_get_saved_register instead of
895 generic_get_saved_register.
896 * v850-tdep.c (v850_gdbarch_init): Ditto.
897 * frv-tdep.c (frv_gdbarch_init): Ditto.
898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
899 * s390-tdep.c (s390_gdbarch_init): Ditto.
900 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
901 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
902 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
904 2002-08-05 Joel Brobecker <brobecker@gnat.com>
906 * objfiles.h: Add missing #include "symfile.h"
908 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
910 2002-08-04 Andrew Cagney <ac131313@redhat.com>
912 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
913 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
916 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
918 * NEWS: Cleanup and nitpick.
920 2002-08-03 Andrew Cagney <ac131313@redhat.com>
922 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
924 2002-08-03 Andrew Cagney <ac131313@redhat.com>
926 * Makefile.in (gdbtk-bp.o): Update dependencies.
927 (gdbtk-register.o): Ditto.
928 (gdbtk-varobj.o): Ditto.
930 2002-08-03 Andrew Cagney <cagney@redhat.com>
932 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
933 m68hc11_fetch_pseudo_register.
934 (m68hc11_pseudo_register_write): Replace
935 m68hc11_store_pseudo_register.
936 (m68hc11_gdbarch_init): Update.
938 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
940 * gdbarch.sh: Include "gdb_string.h".
941 * gdbarch.c: Regenerate.
943 * regcache.c: Include "gdb_string.h".
944 * ax-general.c: Ditto.
947 * fbsd-proc.c: Ditto.
950 * Makefile.in (regcache.o): Update dependencies.
951 (thread.o, gdbarch.o): Ditto.
952 (ax-general.o, gdbarch.o): Ditto.
953 (varobj.o, std-regs.o): Ditto.
954 (fbsd-proc.o): Specify dependencies.
956 2002-08-02 Andrew Cagney <cagney@redhat.com>
958 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
960 (regcache_cooked_write): Ditto.
962 2002-08-02 Andrew Cagney <ac131313@redhat.com>
964 * regcache.c (regcache_cooked_read): New function.
965 (regcache_cooked_write): New function.
966 (read_register_gen): Rewrite using regcache_cooked_read.
967 (write_register_gen): Rewrite using regcache_cooked_write.
969 * regcache.h (regcache_cooked_read, regcache_cooked_write):
972 2002-08-02 Andrew Cagney <cagney@redhat.com>
974 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
975 Replace the architecture methods register_read and register_write.
976 * gdbarch.h, gdbarch.c: Regenerate.
977 * regcache.c (init_regcache_descr): Update.
978 (read_register_gen): Update.
979 (write_register_gen): Update.
980 (supply_register): Update comment.
982 * sh-tdep.c (sh_gdbarch_init): Update.
983 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
984 `regcache' and `gdbarch' parameters. Make `buffer' a void
985 pointer. Update code.
986 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
987 `regcache' and `gdbarch' parameters. Make `buffer' a constant
988 void pointer. Update code.
989 (sh64_register_write): Delete.
990 (sh4_register_read): Delete.
991 (sh64_register_read): Delete.
992 (sh4_register_write): Delete.
993 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
994 void pointer, `to' parameter a void pointer.
995 (sh_sh64_register_convert_to_raw): Ditto.
997 2002-08-01 Kevin Buettner <kevinb@redhat.com>
999 * mips-tdep.c (mips_register_virtual_type): Use architecture
1000 invariant return values.
1002 2002-08-01 Andrew Cagney <cagney@redhat.com>
1004 * linux-proc.c: Include "gdb_string.h".
1005 * Makefile.in (linux-proc.o): Update dependency list.
1007 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1009 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1012 2002-08-01 Grace Sainsbury <graces@redhat.com>
1014 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1015 to_insert_watchpoint, to_remove_watchpoint,
1016 to_stopped_by_watchpoint, to_stopped_data_address,
1017 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1018 target vecctor. Define their corresponding macros so they call
1021 * target.c: Add default and debug versions of for
1022 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1023 to_insert_watchpoint, to_remove_watchpoint,
1024 to_stopped_by_watchpoint, to_stopped_data_address,
1025 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1027 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1029 * mips-tdep.c (mips_register_virtual_type): New function.
1030 (mips_gdbarch_init): Register mips_register_virtual_type()
1031 with gdbarch machinery.
1032 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1033 this file instead of tm-bigmips.h.
1034 (MIPS_REGSIZE): Delete this macro.
1035 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1036 multiarch version in mips-tdep.c will be found.
1038 2002-08-01 Andrew Cagney <cagney@redhat.com>
1040 * NEWS: Menion that CHILL has been made obsolete.
1042 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1043 * gdbserver/Makefile.in: Ditto.
1044 * stabsread.c (read_range_type): Ditto.
1045 * gdbtypes.h: Ditto.
1046 * language.c (binop_type_check): Ditto.
1047 (binop_result_type): Ditto.
1048 (integral_type): Ditto.
1049 (character_type): Ditto.
1050 (string_type): Ditto.
1051 (boolean_type): Ditto.
1052 (structured_type): Ditto.
1053 (lang_bool_type): Ditto.
1054 (binop_type_check): Ditto.
1055 * language.h (_LANG_chill): Ditto.
1056 * dwarfread.c (set_cu_language): Ditto.
1057 * dwarfread.c (CHILL_PRODUCER): Ditto.
1058 * dwarfread.c (handle_producer): Ditto.
1059 * expression.h (enum exp_opcode): Ditto.
1060 * eval.c: Ditto for comments.
1061 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1062 * expprint.c (print_subexp): Ditto.
1063 (print_subexp): Ditto.
1064 * valops.c (value_cast): Ditto.
1065 (search_struct_field): Ditto.
1066 * value.h (COERCE_VARYING_ARRAY): Ditto.
1067 * symfile.c (init_filename_language_table): Ditto.
1068 (add_psymbol_with_dem_name_to_list): Ditto.
1069 * valarith.c (value_binop): Ditto.
1071 * valops.c (value_slice): Ditto.
1072 * symtab.h (union language_specific): Ditto.
1073 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1074 (SYMBOL_DEMANGLED_NAME): Ditto.
1075 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1076 * defs.h (enum language): Ditto.
1077 * symtab.c (got_symtab): Ditto.
1078 * utils.c (fprintf_symbol_filtered): Ditto.
1080 * ch-typeprint.c: Make file obsolete.
1081 * ch-valprint.c: Make file obsolete.
1082 * ch-lang.h: Make file obsolete.
1083 * ch-exp.c: Make file obsolete.
1084 * ch-lang.c: Make file obsolete.
1086 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1088 (TARGET_FLAGS_TO_PASS): Ditto.
1089 (CHILLFLAGS): Obsolete.
1091 (CHILL_FOR_TARGET): Obsolete.
1092 (CHILL_LIB): Obsolete.
1093 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1095 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1096 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1098 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1101 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1103 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1104 This does not change anything at the moment, but will be helpful
1105 later when full Ada support is integrated.
1107 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1109 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1112 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1114 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1115 and save it in a local variable. Use variable in later test.
1117 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1119 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1120 test. (Thanks to Daniel Jacobowitz.)
1122 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1124 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1125 (mips_abi_strings): Add "n64".
1126 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1128 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1130 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1131 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1133 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1135 * utils.c (host_pointer_to_address, address_to_host_pointer):
1136 Use gdb_assert() instead of explicit call to internal_error().
1138 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1140 * Makefile.in (rs6000-nat.o): Update dependencies.
1142 From Nicholas Duffek:
1143 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1144 (aix-thread.o): New rule.
1145 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1146 * config/powerpc/aix432.mh: New file.
1148 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1150 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1151 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1152 (fetch_core_registers, ppc_linux_supply_gregset)
1153 (ppc_linux_supply_fpregset): New functions.
1154 (ppc_linux_regset_core_fns): New.
1155 (_initialize_ppc_linux_tdep): Call add_core_fns.
1156 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1157 and ppc_linux_supply_gregset.
1158 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1159 (supply_fpregset): Call ppc_linux_supply_fpregset.
1160 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1162 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1164 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1166 * symtab.c (lookup_symbol): Demangle before lowercasing.
1168 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1170 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1172 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1173 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1174 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1175 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1177 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1178 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1179 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1180 (avr-tdep.o, mon960-rom.o): Ditto.
1181 (aout_stabs_gnu_h): Define.
1182 (symtab_h): Remove $(gdb_obstack_h).
1184 2002-07-30 Jim Blandy <jimb@redhat.com>
1186 Patch from David Carlton <carlton@math.stanford.edu>:
1187 * gdbinit.in: Move the `dir' commands that add GDB's own source
1188 directory to the search path to the end, so that the `gdb' source
1189 directory will be searched first.
1191 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1193 * gdb_obstack.h: New file.
1194 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1195 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1196 * objfiles.h: Include "gdb_obstack.h".
1197 * Makefile.in (gdb_obstack_h): Define.
1198 (symtab_h): Add $(gdb_obstack_h).
1199 (objfiles_h): Add $(gdb_obstack_h).
1201 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1202 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1203 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1204 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1205 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1206 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1207 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1208 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1210 * Makefile.in (bcache.o): Update dependencies.
1211 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1212 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1213 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1214 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1215 (stabsread.o, symfile.o, symmisc.o): Ditto.
1216 (symtab.o, typeprint.o, macroexp.o): Ditto.
1217 (macrotab.o, mdebugread.o): Ditto.
1218 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1219 (coff_ecoff_h, aout_aout64_h): Define.
1220 (aout_stabs_gnu_h, libaout_h): Define.
1222 2002-07-29 Andrew Cagney <cagney@redhat.com>
1224 * regcache.c (struct regcache_descr): Rename nr_registers to
1225 nr_cooked_registers. Revise comments describing the structure
1227 (init_regcache_descr): Update.
1228 (init_legacy_regcache_descr): Update.
1229 (read_register_gen, write_register_gen): When a cooked register in
1230 the raw register range, directly access the value from the raw
1233 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1235 * z8k-tdep.c: Do not include "obstack.h".
1236 * h8300-tdep.c, h8500-tdep.c: Ditto.
1237 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1238 * valprint.c, v850-tdep.c: Ditto.
1239 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1240 * mn10200-tdep.c: Ditto.
1242 * Makefile.in (z8k-tdep.o): Update dependencies.
1243 (m68hc11-tdep.o, valprint.o): Ditto.
1244 (v850-tdep.o, d10v-tdep.o): Ditto.
1245 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1246 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1247 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1248 (sh_opc_h, gdb_sim_sh_h): Define.
1249 (elf_sh_h, elf_bfd_h): Define.
1250 (opcode_m68hc11_h): Define.
1251 (OPCODES_SRC, OPCODES_DIR): define.
1252 (OPCODES): Use $(OPCODES_DIR).
1253 (gdb_sim_d10v_h): Rename sim_d10v_h.
1254 (gdb_sim_arm_h): Rename sim_arm_h.
1256 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1258 * utils.c (host_pointer_to_address, address_to_host_pointer):
1259 Change internal_error() message to indicate function responsible
1262 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1264 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1265 calls to local_hex_string_custom().
1267 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1269 * irix5-nat.c: Move IRIX shared library support from here...
1270 * solib-irix.c: ...to here. Revised substantially to work with
1271 generic solib framework.
1273 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1274 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1275 * mips-irix-tdep.c: New file.
1277 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1278 (mips-irix-tdep.o, solib-irix.o): New rules.
1279 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1281 * config/mips/irix6.mt (TDEPFILES): Likewise.
1282 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1284 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1286 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1287 disabled (via ``#if 0'') includes.
1289 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1291 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1292 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1293 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1294 Add support for the fpscr register.
1295 * rs6000-nat.c (regmap, fetch_inferior_registers)
1296 (store_inferior_registers, fetch_core_registers): Likewise.
1298 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1300 * rs6000-nat.c (language.h): Include.
1301 (special_regs): Delete this array.
1302 (regmap): New function.
1303 (fetch_register, store_register): Use regmap() to map gdb
1304 register numbers to ptrace register numbers. Also, use
1305 outputs from regmap() to make decisions regarding type of
1306 ptrace() call to make. In particular, don't compare against
1307 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1308 (fetch_inferior_registers, store_inferior_registers): Where
1309 possible, obtain register numbers from tdep struct. Don't
1310 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1311 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1312 (LAST_UISA_SP_REGNUM): Delete.
1314 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1316 * rs6000-nat.c (ppc-tdep.h): Include.
1317 (fetch_registers, store_register, fetch_core_registers): Don't
1318 access registers[] directly. Instead, use supply_register() or
1319 regcache_collect() as appropriate.
1320 (find_toc_address): Format hex address with local_hex_string().
1322 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1324 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1327 2002-07-24 Tom Tromey <tromey@redhat.com>
1329 * jv-exp.y: Marked all strings with _().
1330 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1332 (MethodInvocation, CastExpression, parse_number, yyerror,
1333 java_type_from_name, push_expression_name, yylex): Typo fixes.
1335 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1337 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1338 (tee_file_flush, tee_file_write, tee_file_fputs)
1339 (tee_file_isatty): New.
1340 * ui-file.h (tee_file_new): Add prototype.
1342 2002-07-24 Aidan Skinner <aidan@velvet.net>
1344 * ada-lang.c: Change k&r style function definitions to prototyped
1346 * ada-typeprint.c: Change k&r style function definitions to prototyped
1348 * ada-valprint.c: Change k&r style function definitions to prototyped
1351 2002-07-24 Andrew Cagney <cagney@redhat.com>
1353 * README: Remove reference to remote-bug.
1354 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1356 (m88k-nat.o): Delete rule.
1357 (m88k-tdep.o): Delete rule.
1358 (remote-bug.o): Delete rule.
1359 * MAINTAINERS: Mark as obsolete.
1360 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1361 * m88k-tdep.c: Make file obsolete.
1362 * config/m88k/m88k.mh: Ditto.
1363 * config/m88k/delta88v4.mh: Ditto.
1364 * config/m88k/delta88v4.mt: Ditto.
1365 * config/m88k/delta88.mt: Ditto.
1366 * config/m88k/delta88.mh: Ditto.
1367 * remote-bug.c: Ditto.
1368 * config/m88k/tm-delta88.h: Ditto.
1369 * config/m88k/nm-delta88v4.h: Ditto.
1370 * config/m88k/xm-delta88.h: Ditto.
1371 * config/m88k/xm-dgux.h: Ditto.
1372 * config/m88k/tm-m88k.h: Ditto.
1373 * config/m88k/nm-m88k.h: Ditto.
1374 * config/m88k/tm-delta88v4.h: Ditto.
1375 * m88k-nat.c: Ditto.
1376 * cxux-nat.c: Ditto.
1377 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1378 and m88*-*-* obsolete.
1379 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1382 2002-07-24 Andrew Cagney <cagney@redhat.com>
1384 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1385 constant. Same for local pointer variables.
1386 (extract_signed_integer): Ditto.
1387 * defs.h (extract_unsigned_integer): Update.
1388 (extract_signed_integer): Update.
1390 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1392 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1393 * gdbserver/configure: Regenerate.
1394 * gdbserver/config.in: Regenerate.
1396 2002-07-24 Andrew Cagney <cagney@redhat.com>
1398 * regcache.c (regcache_raw_write): Change buf parameter to a
1399 constant void pointer.
1400 (regcache_raw_read): Change buf parameter to a void pointer.
1401 (legacy_write_register_gen): Change myaddr parameter a constant
1403 (supply_register): Change val parameter to a const void pointer.
1404 * regcache.h (regcache_raw_write): Update declaration.
1405 (regcache_raw_read): Update declaration.
1406 (supply_register): Update declaration.
1408 2002-07-24 Tom Tromey <tromey@redhat.com>
1410 * defs.h (gdb_readline_wrapper): Declare.
1411 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1412 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1413 * top.c (gdb_readline_wrapper): New function.
1414 (command_line_input): Use it.
1416 2002-07-24 Andrew Cagney <cagney@redhat.com>
1418 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1419 regcache_read and regcache_write.
1420 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1421 * regcache.c: Update.
1422 * sh-tdep.c (sh64_push_arguments): Update comment.
1423 (sh_pseudo_register_read): Update.
1424 (sh_pseudo_register_write): Update.
1425 (sh4_register_read): Update.
1426 (sh4_register_write): Update.
1427 (sh64_pseudo_register_read): Update.
1428 (sh64_pseudo_register_write): Update.
1429 (sh64_register_read): Update.
1430 (sh64_register_write): Update.
1431 * i386-tdep.c (i386_extract_return_value): Update.
1432 (i386_extract_struct_value_address): Update.
1433 (i386_extract_return_value): Update.
1434 * blockframe.c (generic_read_register_dummy): Update.
1435 (generic_call_dummy_register_unwind): Update
1436 * infrun.c (write_inferior_status_register): Update.
1438 2002-07-23 Jim Blandy <jimb@redhat.com>
1440 * parser-defs.h (expression_context_pc): Make this extern.
1441 (Thanks to Michael Snyder.)
1443 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1445 GDB 5.2.1 released from 5.2 branch.
1446 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1447 * README: Update to mention 5.2.1.
1449 2002-07-23 Mark Salter <msalter@redhat.com>
1451 * remote.c (remote_read_bytes): Fix check for error.
1453 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1455 * aix-thread.c (language.h): Include.
1456 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1457 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1458 Print newlines at end of debug messages.
1459 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1460 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1462 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1464 * aix-thread.c (ppc-tdep.h): Include.
1465 (special_register_p): New function.
1466 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1467 (store_regs_user_thread): Use register number information from
1468 gdbarch_tdep struct instead of hardcoded offsets relative to
1469 FIRST_UISA_SP_REGNUM.
1470 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1471 special_register_p() instead of using FPLAST_REGNUM and
1472 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1473 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1474 will be MQ's register number.
1476 2002-07-22 Michael Snyder <msnyder@redhat.com>
1478 * aix-thread.c (ops): Rename to aix_thread_ops.
1479 (base_ops): Rename to base_target.
1480 (ops_attach): Rename to aix_thread_attach.
1481 (ops_detach): Rename to aix_thread_detach.
1482 (ops_resume): Rename to aix_thread_detach.
1483 (ops_wait): Rename to aix_thread_wait.
1484 (ops_kill): Rename to aix_thread_kill.
1485 (init_ops): Rename to init_aix_thread_ops.
1486 (ops_fetch_register): Rename to aix_thread_fetch_register.
1487 (ops_store_register): Rename to aix_thread_store_register.
1488 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1489 (ops_thread_alive): Rename to aix_thread_thread_alive.
1490 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1491 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1492 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1493 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1494 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1495 (store_regs_lib): Rename to store_regs_user_thread.
1496 (store_regs_kern): Rename to store_regs_kernel_thread.
1498 2002-07-22 Michael Snyder <msnyder@redhat.com>
1500 * aix-thread.c (ops_prepare_to_store): Eliminate.
1501 (init_ops): Don't initialize ops.prepare_to_store.
1502 (store_regs_kern): Pre-fetch register buffers from child,
1503 because some registers may not be in the cache. Copy
1504 regs from register cache only if they are cached.
1505 (store_regs_lib): Copy regs from register cache only
1507 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1508 fill_gprs64): Ditto.
1510 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1512 * aix-thread.c (gdb_assert.h): Include.
1513 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1514 register sizes (from register cache) match size of buffer holding
1516 (fill_sprs32): Change parameter types to match those in the ptrace()
1518 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1519 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1521 2002-07-22 Michael Snyder <msnyder@redhat.com>
1523 * aix-thread.c (supply_sprs64): Cosmetic change.
1524 (supply_sprs32): Cosmetic change.
1525 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1526 (fill_sprs64): Use regcache_collect instead of read_register.
1527 (store_regs_lib): Use regcache_collect instead of
1528 read_register. Use fill_sprs32 instead of fill_sprs64,
1529 if debugging a 32-bit architecture.
1530 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1531 out of the register cache, instead of passing a pointer into
1532 the register cache directly to ptrace. Use regcache_collect
1533 insteaad of read_register.
1534 (ops_prepare_to_store): Use target_read_registers instead
1535 of read_register_bytes.
1537 2002-07-20 Aidan Skinner <aidan@velvet.net>
1539 * MAINTAINERS: Add self under write after approval.
1541 2002-07-20 Aidan Skinner <aidan@velvet.net>
1543 * ada-tasks.c: Change k&r style function definitions to prototyped
1546 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1548 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1549 * x86-64-tdep.c: Include "objfiles.h".
1550 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1551 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1553 2002-07-17 Michal Ludvig <michal@suse.cz>
1555 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1556 (update_context): Initialise cfa variable.
1558 2002-07-17 Michael Snyder <msnyder@redhat.com>
1560 * aix-thread.c: Shorten some long lines.
1561 Bring comments into line with code spec.
1563 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1565 * infrun.c: Re-indent using gdb_indent.sh.
1567 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1569 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1570 Leave the indentation temporarily untouched, to minimize the diffs.
1572 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1574 * stabsread.c: Make os9k sections of the code obsolete,
1576 * stabsread.h: Make os9k sections of the code obsolete.
1578 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1580 * linux-low.c (regsets_store_inferior_registers): Add free()
1581 at the end of a loop to prevent memory leak.
1582 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1583 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1584 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1586 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1588 2002-07-17 Jim Blandy <jimb@redhat.com>
1590 * macrocmd.c (info_macro_command): Remove newline from error
1593 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1595 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1596 (sh_gdbarch_init): Use it for sh-dsp.
1598 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1600 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1601 64-bit DWARF2 format.
1603 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1605 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1606 <sys/proc.h> when not available.
1608 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1610 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1611 * stabsread.c: Make os9k sections of the code obsolete.
1612 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1613 * config/i386/i386os9k.mt: Make file obsolete.
1614 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1615 (COMMON_OBS): Remove os9kread.o
1616 (SFILES): Remove os9kread.c.
1617 (os9kread.o, remote-os9k.o): Make target obsolete.
1618 * remote-os9k.c: Make file obsolete.
1619 * os9kread.c: Make file obsolete.
1622 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1624 * NEWS: Mention that the FR30 has been made obsolete.
1625 * fr30-tdep.c: Make file obsolete.
1626 * config/fr30/tm-fr30.h: Ditto.
1627 * config/fr30/fr30.mt: Ditto.
1628 * configure.tgt: Make fr30-*-elf obsolete.
1629 * MAINTAINERS: Make fr30-elf obsolete.
1631 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1633 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1634 found is not inside a section.
1636 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1638 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1640 (pdc_realloc): Use xrealloc() instead of realloc().
1642 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1644 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1645 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1646 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1649 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1651 * aix-thread.c (ptrace_check): Eliminate goto.
1652 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1655 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1657 * aix-thread.c (gdbcmd.h): Include.
1658 (DEBUG, DBG, DBG2, dbg): Eliminate.
1659 (debug_aix_thread): New static global.
1660 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1661 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1662 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1663 invocations to DBG and DBG2 macros to test against
1664 ``debug_aix_thread'' and call fprintf_unfiltered().
1665 (_initialize_aix_thread): Add new command "set debug aix-thread".
1667 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1669 From Gerhard Tonn <TON@de.ibm.com>:
1670 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1671 instead of supply_register.
1673 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1675 * dwarf2cfi.c: Include "gdb_assert.h".
1676 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1678 (update_context): Do not use __func__. Add missing ``break''.
1679 (update_context): Do not use __func__.
1681 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1683 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1684 and its setting. Set gdbarch instruction printing functions
1685 directly. For non-rs6000 case use new function
1686 gdb_print_insn_powerpc.
1687 (gdb_print_insn_powerpc): New function.
1689 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1691 * NEWS: Mention that the d30v has been marked obsolete.
1692 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1693 * configure.tgt: Mark d30v-*-* as obsolete.
1694 * d30v-tdep.c: Mark file as obsolete.
1695 * config/d30v/d30v.mt: Ditto.
1696 * config/d30v/tm-d30v.h: Ditto.
1698 2002-07-13 Aidan Skinner <aidan@velvet.net>
1700 * ada-tasks.c (add_task_entry): replace calls to
1701 malloc() with xmalloc
1702 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1704 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1705 ada_finish_decode_line_1, all_sals_for_line
1706 ada_breakpoint_rewrite): replace calls to free() with xfree()
1708 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1710 From Nicholas Duffek (with minor changes by Martin Hunt,
1711 Louis Hamilton, and Kevin Buettner):
1712 * aix-thread.c: New file.
1714 2002-07-12 Petr Sorfa <petrs@caldera.com>
1716 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1717 complaint for invalid attribute class or form.
1718 (read_func_scope): DW_AT_frame_base
1719 better handling of DW_AT_block*.
1720 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1721 better handling of DW_AT_block*.
1722 (read_common_block): DW_AT_location
1723 better handling of DW_AT_block*.
1724 (read_partial_die): DW_AT_location better handling
1726 (new_symbol): DW_AT_external better handling of
1727 DW_AT_block*. Proper initialization of variable
1729 (attr_form_is_block): New function that returns true
1730 if the attribute's form is of DW_FORM_block*.
1732 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1734 * valops.c (find_method_list): Remove comment about
1735 removed STATIC_MEMFUNCP argument.
1736 (value_find_oload_method_list): Likewise.
1738 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1740 From Nicholas Duffek:
1741 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1742 target_new_objfile_hook.
1744 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1746 From Nicholas Duffek:
1747 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1750 2002-07-12 Andrew Cagney <cagney@redhat.com>
1752 * MAINTAINERS: Mention --enable-sim-build-warnings.
1753 (m68hc11-elf): Disable sim build warnings.
1754 (m32r-elf): Mark as broken obsolete candidate.
1755 (x86_64-linux-gnu): Mark as buildable with -Werror.
1756 (arm-elf): Change -w to ``,'' which enables warnings but not
1759 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1761 * bcache.h: Update copyright.
1762 (struct bstring, struct bcache): Move definition to "bcache.c".
1763 Replaced by opaque declaration.
1764 (bcache_xfree): Replace free_bcache.
1765 (bcache_xmalloc, bcache_memory_used): Declare.
1767 * bcache.c: Update copyright.
1768 (struct bstring, struct bcache): Moved to here from "bcache.h".
1770 (bcache_xmalloc, bcache_memory_used): New functions.
1771 (bcache_xfree): Replace function free_bcache.
1773 * Makefile.in (objfiles.o): Add $(bcache_h).
1774 (objfiles_h): Remove $(bcache_h).
1775 (symfile.o): Add $(bcache_h).
1777 * symmisc.c: Update copyright.
1778 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1779 (print_objfile_statistics): Use bcache_memory_used.
1781 * symfile.c: Include "bcache.h".
1782 (reread_symbols): Use bcache_xfree.
1783 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1784 (add_psymbol_to_list): Pass psymbol_cache by value.
1785 (add_psymbol_with_dem_name_to_list): Ditto.
1787 * objfiles.h: Update copyright.
1788 (struct bcache): Declare opaque. Do not include "bcache.h".
1789 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1791 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1793 * objfiles.c: Include "bcache.h". Update copyright.
1794 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1796 (free_objfile): Use bcache_xfree.
1798 2002-07-11 Grace Sainsbury <graces@redhat.com>
1800 * monitor.c (monitor_fetch_register): Make name a constant.
1801 (monitor_store_register): Same.
1803 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1805 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1806 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1807 (finish_block) For non-function blocks, hash the symbol table. For
1808 function blocks, mark the symbol table as unhashed.
1809 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1810 (msymbol_hash_iw): Likewise.
1811 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1813 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1814 (lookup_minimal_symbol): Likewise for both.
1815 * symtab.h (struct block): Add `hashtable' flag. Comment the
1817 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1818 (ALL_BLOCK_SYMBOLS): Update.
1819 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1820 (struct symbol): Add `hash_next' pointer.
1821 * symtab.c (lookup_block_symbol): Search using the hash table when
1823 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1824 (search_symbols, find_addr_symbol): Likewise.
1826 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1827 (read_dst_symtab): Likewise.
1828 * jv-lang.c (get_java_class_symtab): Likewise.
1829 * mdebugread.c: Include "gdb_assert.h".
1830 (shrink_block): Assert that the block being modified is not hashed.
1831 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1832 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1834 (dump_symtab): Recognize hashed blocks.
1835 * printcmd.c (print_frame_args): Assert that function blocks do not
1836 have hashed symbol tables.
1837 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1838 (fill_in_ada_prototype, debug_print_block): Likewise.
1839 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1841 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1843 * stack.c (print_frame): Use result of frame_address_in_block()
1844 instead of fi->pc when evaluating symbols.
1845 (backtrace_command_1): Ditto.
1847 2002-07-11 Andrew Cagney <cagney@redhat.com>
1849 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1852 * arm-tdep.c (arm_register_name): Make return type constant.
1854 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1856 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1858 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1859 * s390-tdep.c (s390_fp_regnum): Ditto.
1860 (s390_read_fp): Ditto.
1861 (s390_pop_frame): Ditto.
1862 (_initialize_s390_tdep): Ditto.
1863 * remote.c (get_remote_state): Ditto.
1864 * procfs.c (mappingflags): Ditto.
1865 * memattr.c (_initialize_mem): Ditto.
1866 * mcore-tdep.c (mcore_pop_frame): Ditto.
1867 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1868 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1869 * language.c (set_case_str): Ditto.
1870 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1871 * frv-tdep.c (new_variant): Ditto.
1872 (frv_stopped_data_address): Ditto.
1873 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1874 (context_alloc): Ditto.
1875 (frame_state_alloc): Ditto.
1876 (unwind_tmp_obstack_init): Ditto.
1877 (unwind_tmp_obstack_free): Ditto.
1878 (cfi_read_fp): Ditto.
1879 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1880 (cris_pop_frame): Ditto.
1881 * c-lang.c (scanning_macro_expansion): Ditto.
1882 (finished_macro_expansion): Ditto.
1883 (c_preprocess_and_parse): Ditto.
1884 * gdbarch.sh: Ditto.
1885 * gdbarch.h, gdbarch.c: Regenerate.
1886 * config/mn10200/tm-mn10200.h: Adjust indentation.
1887 * target.c: Adjust indentation.
1888 * symtab.h: Adjust indentation.
1889 * stabsread.h: Adjust indentation.
1890 * remote-es.c: Adjust indentation.
1891 * os9kread.c: Adjust indentation.
1893 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1895 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1896 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1898 2002-07-10 Grace Sainsbury <graces@redhat.com>
1900 * NEWS: Mention m68k, mcore multi-arching.
1901 * MAINTAINERS: Change status of m68k, mcore to reflect
1904 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1906 * valops.c (find_overload_match): Free oload_syms.
1908 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1910 Define HAVE_SYS_PROC_H if sys/proc.h exists
1911 * configure.in: Add check for sys/proc.h
1912 * config.in: Regenerate.
1913 * configure: Regenerate.
1915 2002-07-09 Grace Sainsbury <graces@redhat.com>
1917 * config/m68k/tm-m68k.h: Remove macros wrapped in
1918 #if !GDB_MULTI_ARCH.
1920 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1922 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1923 (perror_with_name, remote_close, remote_open, expect, play): Static.
1925 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1927 * config.in, configure: Regenerate.
1929 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1931 * dwarf2cfi.c: Include "gcore.h".
1932 (execute_stack_op): Fix implementation of the
1933 DW_OP_deref and DW_OP_deref_size operators by letting do their
1934 lookup in the target.
1936 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1938 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1939 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1942 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1944 Fix PR gdb/595, gdb/602
1945 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1946 Don't call value_cast, just read the vtable pointer; update comments
1949 2002-07-05 Grace Sainsbury <graces@redhat.com>
1951 * config/mcore/tm-mcore.h: Remove file.
1952 * config/mcore/mcore.mt: Remove definition of TM_FILE
1953 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1955 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1957 * i386bsd-tdep.c: Include "gdb_string.h".
1959 2002-07-04 Grace Sainsbury <graces@redhat.com>
1961 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1962 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1964 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1965 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1966 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1967 (RETVAL_REGNUM): Move macros from tm-mcore.h
1968 (mcore_reg_struct_has_addr): New function.
1969 (mcore_gdbarch_init): Added initializations for the macros removed
1972 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1974 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1975 traditonal string branding within the ELF header.
1977 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1979 * symtab.c (remove_params): New function.
1980 (make_symbol_overload_list): Use it instead of cplus_demangle.
1981 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1983 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1985 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1987 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1989 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1990 and tdep->sigtramp_end.
1991 * i386obsd-nat.c: New file.
1992 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1994 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1995 Don't call get_current_frame().
1997 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1999 * i386-nat.c (child_post_startup_inferior): New function
2000 calling i386_cleanup_dregs if
2001 I386_USE_GENERIC_WATCHPOINTS is defined.
2002 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2003 conditional to acknowledge that i386-nat.c has its
2004 own child_post_startup_inferior function.
2006 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2008 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2009 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2010 instead of MAX_REGISTER_RAW_SIZE.
2011 (i386_extract_return_value, i386_extract_struct_value_address):
2012 Convert to use regcache.
2013 (i386_gdbarch_init): Set max_register_raw_size and
2014 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2015 Set extract_return_value and extract_struct_value_address instead
2016 of their deprecated variants.
2018 Convert i386 target to generic dummy frames.
2019 * i386-tdep.c: Include "symfile.h".
2020 (i386_frameless_signal_p): Consider a function to be frameless if
2021 the pc points at the first instruction of the function.
2022 (i386_frame_chain): Handle (generic) call dummies.
2023 (i386_frame_saved_pc): Likewise.
2024 (i386_frame_init_saved_regs): Remove code dealing with call
2025 dummies on the stack.
2026 (i386_push_dummy_frame): Removed.
2027 (i386_call_dummy_words): Removed.
2028 (i386_fix_call_dummy): Removed.
2029 (i386_push_return_address): New function.
2030 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2031 parameter, and don't call get_current_frame.
2032 (i386_pop_frame): New function.
2033 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2034 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2035 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2036 call_dummy_length to 0, set call_dummy_words to NULL, set
2037 sizeof_call_dummy_words to 0, set fix_call_dummy to
2038 generic_fix_call_dummy, set pc_in_call_dummy to
2039 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2040 generic_push_dummy_frame, set push_return_address to
2041 i386_push_return_address and set frame_chain_valid to
2042 generic_file_frame_chain_valid.
2044 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2046 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2047 byte offsets instead of an array of indexes.
2048 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2050 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2052 * gdbarch.sh (struct regcache): Add opaque declaration.
2053 (EXTRACT_RETURN_VALUE): New architecture method.
2054 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2055 * gdbarch.h, gdbarch.c: Regenerate.
2056 * arch-utils.c (legacy_extract_return_value): New function.
2057 * arch-utils.h (legacy_extract_return_value): Declare.
2058 * values.c (value_being_returned): Re-enable code handling
2059 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2060 deprecated_grub_regcache_for_registers call to block handling
2061 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2062 (EXTRACT_RETURN_VALUE): Do not define.
2064 2002-07-03 Grace Sainsbury <graces@redhat.com>
2066 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2067 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2068 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2069 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2070 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2071 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2072 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2073 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2074 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2075 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2076 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2077 argument so the function fits the prototype in the architecture
2079 (mcore_pop_frame): Remove argument so the function fits the
2080 prototype. Use get_current_frame instead of the argument.
2081 (mcore_push_arguments): Change type of struct_return so the
2082 function can be used in the architecture vector.
2083 (mcore_store_struct_return): Add.
2084 (mcore_frame_init_saved_regs): Add.
2085 (mcore_gdbarch_init): Add function calls to replace the macros
2086 removed from tm-mcore.h
2088 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2090 * infcmd.c (print_return_value): Remove compatibility code calling
2091 deprecated_grub_regcache_for_registers.
2093 * values.c: Include "regcache.h".
2094 (value_being_returned): Update. Use
2095 deprecated_grub_regcache_for_registers to extract the register
2097 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2098 ``struct regcache''.
2099 * Makefile.in (values.o): Add dependency on $(regcache_h).
2101 * inferior.h (run_stack_dummy): Change type of second parameter to
2102 a ``struct regcache''.
2103 * valops.c (hand_function_call): Change type of retbuf to ``struct
2104 regcache''. Allocate using regcache_xmalloc, clean using
2105 make_cleanup_regcache_xfree.
2106 * infcmd.c (run_stack_dummy): Update. Use
2107 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2109 * regcache.c (do_regcache_xfree): New function.
2110 (make_cleanup_regcache_xfree): New function.
2111 * regcache.h (make_cleanup_regcache_xfree): Declare.
2113 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2115 * event-top.c (command_line_handler): Don't read past
2116 beginning of buffer.
2118 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2120 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2122 (varobj_create): Store frame_id for root.
2123 (varobj_gen_name): Use xasprintf.
2124 (varobj_update): Save and restore frame using get_frame_id() and
2126 (create_child): Use xasprintf.
2127 (new_root_variable): Initialize frame_id.
2128 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2129 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2130 to prevent memory leak.
2132 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2134 * valops.c (hand_function_call): Move declaration of retbuf to
2135 start of function, allocate using malloc, add a cleanup but before
2136 the inf_status cleanup, cleanup the buffer. Rename local variable
2137 old_chain to inf_status_cleanup.
2139 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2141 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2143 * cli/cli-decode.c (cmd_func_p): New function.
2144 (cmd_func): New function.
2146 * command.h: Add cmd_func() and cmd_func_p().
2148 2002-07-03 Grace Sainsbury <graces@redhat.com>
2150 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2151 (REGISTER_SIZE): Remove.
2152 (MAX_REGISTER_RAW_SIZE): Remove.
2153 (REGISTER_VIRTUAL_TYPE): Remove.
2154 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2155 (REGISTER_NAME): Remove.
2156 (USE_GENERIC_DUMMY_FRAMES): Remove.
2157 (CALL_DUMMY): Remove.
2158 (CALL_DUMMY_START_OFFSET): Remove.
2159 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2160 (CALL_DUMMY_LOCATION): Remove.
2161 (FIX_CALL_DUMMY): Remove.
2162 (CALL_DUMMY_ADDRESS): Remove.
2163 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2164 (SAVE_DUMMY_FRAME_TOS): Remove.
2165 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2166 (mcore_register_virtual_type): New function.
2167 (mcore_register_byte): New function.
2168 (mcore_register_size): New function.
2169 (mcore_register_name): New function.
2170 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2171 macros removed from tm-mcore.h.
2172 (mcore_dump_tdep): Add.
2173 (_initialize_mcore_tdep): Add gdbarch_register call.
2175 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2177 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2178 frameless_look_for_prologue, such that we actually call this
2181 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2183 * frame.h (frame_address_in_block): New function.
2185 * blockframe.c (frame_address_in_block): New function extracted
2186 from get_frame_block().
2187 (get_frame_block): Use frame_address_in_block().
2188 (block_innermost_frame): Use frame_address_in_block() to match
2189 the frame pc address against the block boundaries rather than
2190 the frame pc directly. This prevents a failure when a frame pc
2191 is actually a return-address pointing immediately after the end
2194 2002-07-02 Grace Sainsbury <graces@redhat.com>
2196 * MAINTAINERS: Add self under write after approval.
2198 2002-07-02 Grace Sainsbury <graces@redhat.com>
2200 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2201 used in architecture vector. The default is
2202 m68k_local_breakpoint_from_pc.
2203 (m68k_local_breakpoint_from_pc): Add.
2204 (enum): Add register numbers from tm-m68k.h.
2205 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2207 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2208 GDB_MULTI_ARCH_PARTIAL.
2209 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2210 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2212 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2213 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2214 to enum in m68k-tdep.c
2216 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2218 * solib-osf.c (open_map): Compute the list of shared libraries
2219 loaded by the inferior, rather than the list of libraries loaded
2220 by GDB itself. Otherwise, GDB ends up reading the symbols from
2221 the wrong shared libraries...
2223 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2225 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2226 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2228 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2230 (FRAMELESS_SIGNAL): Remove function.
2231 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2232 i386_linux_saved_pc_after_call): Removed.
2233 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2234 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2235 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2237 * i386-tdep.c (i386_frameless_signal_p): New function.
2238 (i386_frame_chain): Deal with frameless signals.
2239 (i386_sigtramp_saved_sp): New function.
2240 (i386_frame_saved_pc): Deal with frameless signals.
2241 (i386_saved_pc_after_call): Make sure the correct value is
2242 returned just after entry into a sigtramp.
2243 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2244 i386fbsd4_sc_sp_offset): New variables.
2245 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2246 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2247 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2248 similiar to what we already did for sc_pc_offset.
2249 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2252 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2254 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2256 * config/i386/tm-x86-64linux.h: New.
2257 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2259 * config/i386/nm-x86-64.h: Rename to ...
2260 * config/i386/nm-x86-64linux.h: ... this one.
2261 * config/i386/x86-64linux.mh: Reflect the above change.
2263 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2265 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2266 with sigcontext_addr. Add sc_sp_offset.
2267 (i386bsd_sigtramp_saved_pc): Remove prototype.
2268 (i386bsd_sicontext_addr): Add prototype.
2269 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2270 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2271 (i386_svr4_sigtramp_saved_pc): Removed.
2272 (i386_svr4_sigcontext_addr): New function.
2273 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2274 Initialize tdep->sigcontext_addr instead. Initialize
2275 tdep->sc_pc_offset and tdep->sc_sp_offset.
2276 (i386_gdbarch_init): Likewise.
2277 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2279 (i386bsd_sigtramp_saved_pc): Remove function.
2280 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2281 Initialize tdep->sigcontext_addr instead. Initialize
2283 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2284 of tdep->sigtramp_saved_pc.
2285 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2286 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2289 * i386-tdep.c (i386_frameless_function_invocation,
2290 i386_frame_num_args, i386_frame_init_saved_regs,
2291 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2292 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2293 i386_extract_return_value, i386_store_return_value,
2294 i386_extract_struct_value_address, i386_register_virtual_type,
2295 i386_register_convertible, i386_register_convert_to_virtual,
2296 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2297 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2300 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2302 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2304 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2305 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2306 this macro. Include "value.h".
2308 2002-06-30 Aidan Skinner <aidan@velvet.net>
2310 * ada-exp.tab.c: remove as it's a generated file
2311 * ada-lex.c: remove as it's a generated file
2313 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2315 * config/i386/tm-i386.h (struct frame_info, struct
2316 frame_saved_regs, struct value, struct type): Remove forward
2319 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2320 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2321 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2322 (FILL_FPXREGSET): Define.
2324 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2326 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2327 i[3456]86-*-netbsd* case.
2328 * config/i386/tm-obsd.h: Removed.
2329 * config/i386/obsd.mt: Removed.
2330 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2332 (MH_CFLAGS): Add -DYYDEBUG=0.
2334 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2335 i386nbsd_sc_pc_offset on OpenBSD too.
2337 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2338 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2339 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2341 * i386bsd-tdep.c: Include "arch-utils.h".
2342 (i386bsd_aout_in_solib_call_trampoline): New function.
2343 (i386bsd_init_abi): Set in_solib_call_trampoline to
2344 i386bsd_aout_in_solib_call_trampoline.
2345 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2346 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2348 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2350 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2351 (struct obstack, struct bcache): Add opaque declarations.
2352 * Makefile.in (macrotab_h): Update
2354 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2356 * blockframe.c (generic_find_dummy_frame): Change return type to
2357 ``struct regcache''.
2358 (struct dummy_frame): Replace field ``registers'' with regcache, a
2359 struct regcache object.
2360 (generic_find_dummy_frame): Update.
2361 (generic_push_dummy_frame): Update. Use regcache_xfree,
2362 regcache_xmalloc and regcache_cpy.
2363 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2365 (deprecated_generic_find_dummy_frame): Update.
2366 (generic_read_register_dummy): Update. Use
2367 regcache_read_as_address.
2368 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2369 (generic_get_saved_register): Update. Use regcache_read.
2371 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2373 * Makefile.in (objfiles_h): Add $(bcache_h).
2374 * objfiles.h: Include "bcache.h".
2376 * Makefile.in (symtab_h): Remove $(bcache_h).
2377 * symtab.h: Do not include "bcache.h".
2379 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2381 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2382 generic_func_frame_chain_valid.
2384 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2386 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2387 * config/i386/tm-fbsd.h: Likewise.
2389 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2391 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2392 generic_unwind_get_saved_register.
2394 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2396 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2397 * regcache.c (supply_register): Add missing argument to
2398 register_buffer call.
2400 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2402 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2403 Solaris /bin/grep does not not like it. From Peter Schauer.
2405 2002-06-26 Tom Tromey <tromey@redhat.com>
2407 * command.h (add_setshow_cmd): Declare.
2408 (add_setshow_cmd_full): Declare.
2409 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2410 returns void. Use add_setshow_cmd_full.
2411 (add_setshow_cmd_full): New function.
2412 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2413 (add_setshow_boolean_cmd): Likewise.
2415 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2417 * config/vax/tm-vax.h: Protect from multiple inclusion.
2418 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2419 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2420 * config/vax/tm-vaxbsd.h: ...here. New file.
2421 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2423 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2425 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2426 (BELIEVE_PCC_PROMOTION): Remove.
2427 (AP_REGNUM): Move to...
2428 * config/vax/nm-vax.h: ...here.
2429 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2430 (vax_breakpoint_from_pc): New function.
2431 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2432 and gdbarch_believe_pcc_promotion.
2434 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2436 * Makefile.in (vax_tdep_h): Define.
2437 (vax-tdep.o): Use $(vax_tdep_h).
2438 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2439 (vax_dump_tdep): New function.
2440 (_initialize_vax_tdep): Register vax_dump_tdep.
2441 * vax-tdep.h: Include osabi.h.
2442 (struct gdbarch_tdep): New.
2444 2002-06-26 Andrew Cagney <cagney@redhat.com>
2446 * frame.h (deprecated_generic_find_dummy_frame): Rename
2447 generic_find_dummy_frame.
2448 * blockframe.c (generic_find_dummy_frame): Make static.
2449 (deprecated_generic_find_dummy_frame): New function.
2450 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2451 generic_find_dummy_frame with deprecated_find_dummy_frame.
2452 (sh64_nofp_frame_init_saved_regs): Ditto.
2453 (sh_fp_frame_init_saved_regs): Ditto.
2454 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2455 (s390_frame_chain): Ditto.
2456 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2458 2002-06-26 Grace Sainsbury <graces@redhat.com>
2460 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2461 gdbarch vector are at the top.
2463 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2464 (FRAME_ARGS_ADDRESS): Remove.
2465 (FRAME_LOCALS_ADDRESS): Remove.
2466 (FRAME_NUM_ARGS): Remove.
2467 (FRAME_ARGS_SKIP): Remove.
2468 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2469 (m68k_gdbarch_init): Add gdbarch initializations for macros
2470 undefined in tm-m68k.h
2472 2002-06-26 Grace Sainsbury <graces@redhat.com>
2474 * monitor.h: Add the function regname to monitor_ops
2475 structure. This way NUM_REGS does not have to be a constant.
2476 * monitor.c (monitor_fetch_register): Added support for regname
2477 function. The function is called if the array regnames is NULL.
2478 (monitor_store_register): Same.
2479 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2481 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2482 cpu32bug_cmds.regname to point to new function.
2483 * abug-rom.c (abug_regname): Same as above.
2484 (init_abug_cmds): Same.
2485 * dbug-rom.c (dbug_regname): Same as above.
2486 (init_dbug_cmds): Same.
2487 * remote-est.c (est_regname): Same.
2488 (init_est_cmds): Same.
2489 * rom68k-rom.c (rom68k_regname): Same.
2490 (init_rom68k_cmds): Same.
2492 2002-06-25 Tom Tromey <tromey@redhat.com>
2494 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2496 2002-06-25 Andrew Cagney <cagney@redhat.com>
2498 * infrun.c (stop_registers): Change variable's type to ``struct
2500 (xmalloc_inferior_status): Delete function.
2501 (free_inferior_status): Delete function.
2502 (normal_stop): Use regcache_cpy.
2503 (struct inferior_status): Change type of fields ``stop_registers''
2504 and ``registers'' to ``struct regcache''.
2505 (write_inferior_status_register): Use regcache_write.
2506 (save_inferior_status): Instead of calling
2507 xmalloc_inferior_status, allocate the inf_status buffer directly.
2508 Use regcache_dup_no_passthrough and regcache_dup to save the
2510 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2511 Replace the stop_registers regcache instead of overriding it. Use
2512 regcache_xfree. Instead of calling free_inferior_status, xfree
2513 the buffer directly.
2514 (discard_inferior_status): Use regcache_xfree. Instead of calling
2515 free_inferior_status, xfree the buffer directly.
2516 (build_infrun): Use regcache_xmalloc.
2517 (_initialize_infrun): Delete redundant call to build_infrun.
2519 * Makefile.in (infcmd.o): Add $(regcache_h).
2521 * infcmd.c: Include "regcache.h".
2522 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2523 obtain the address of `stop_registers' register buffer.
2524 (print_return_value): Ditto.
2526 * inferior.h (struct regcache): Add opaque declaration.
2527 (stop_registers): Change variable's declared type to ``struct
2530 2002-06-24 Tom Tromey <tromey@redhat.com>
2532 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2533 * target.c (initialize_targets): Fixed typo in
2534 trust-readonly-sections `show' documentation.
2536 * main.c: Marked all strings with _().
2538 2002-06-24 Don Howard <dhoward@redhat.com>
2540 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2541 that means max CORE_ADDR+1.
2542 (lookup_mem_region): Ditto.
2543 (mem_info_command): Ditto.
2545 2002-06-24 Grace Sainsbury <graces@redhat.com>
2547 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2548 (REGISTER_BYTES_OK): Remove.
2549 (REGISTER_BYTES): Remove.
2550 (STORE_STRUCT_RETURN): Remove.
2551 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2552 (STORE_RETURN_VALUE): Remove.
2553 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2554 (FRAME_CHAIN): Remove.
2555 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2556 (FRAME_SAVED_PC): Remove.
2557 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2558 (m68k_store_struct_return): Add.
2559 (m68k_deprecated_extract_return_value): Add.
2560 (m68k_deprecated_extract_struct_value_address): Add.
2561 (m68k_store_return_value): Add.
2562 (m68k_frame_chain): Add.
2563 (m68k_frameless_function_invocation): Add.
2564 (m68k_frame_saved_pc): Add.
2565 (m68k_gdbarch_init): added set_gdbarch calls for new
2566 functions and deleted macros.
2568 2002-06-23 Tom Tromey <tromey@redhat.com>
2570 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2571 (ALLDEPFILES): Likewise.
2572 (udiheaders): Removed.
2573 (udip2soc.o): Likewise.
2574 (udi2go32.o): Likewise.
2576 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2578 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2580 * infrun.c (_initialize_infrun): Delete unnecessary call to
2583 * regcache.h: Update comments describing the regcache_cpy family
2585 (regcache_save, regcache_restore): Delete declaration.
2586 (regcache_save_no_passthrough): Delete declaration.
2587 (regcache_restore_no_passthrough): Delete declaration.
2588 * regcache.c (regcache_save): Delete function.
2589 (regcache_save_no_passthrough): Delete function.
2590 (regcache_restore): Delete function.
2591 (regcache_restore_no_passthrough): Delete function.
2593 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2595 * config/m68k/tm-m68k.h: Fix typo.
2596 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2597 (m68k_frame_init_saved_regs): Declare.
2599 2002-06-21 Jim Blandy <jimb@redhat.com>
2601 Remove some vestiges of Harris 88k support.
2602 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2603 register numbering quirk.
2604 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2605 odd symbols occurring in Harris 88k ELF targets.
2607 2002-06-21 Tom Tromey <tromey@redhat.com>
2609 * gdb_locale.h: New file.
2610 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2611 (defs_h): Added gdb_locale.h.
2612 * configure, config.in: Rebuilt.
2613 * configure.in (PACKAGE): Define.
2614 * defs.h: Include gdb_locale.h.
2615 * main.c (captured_main): Call setlocale, bindtextdomain,
2618 2002-06-21 Dave Brolley <brolley@redhat.com>
2620 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2621 * config/frv/frv.mt: New file.
2622 * config/frv/tm-frv.h: New file.
2623 * configure.tgt: Support frv-*-*.
2624 * Makefile.in (frv-tdep.o): New target.
2625 * frv-tdep.c: New file.
2626 * NEWS: Mention frv.
2628 2002-06-21 Dave Brolley <brolley@redhat.com>
2630 * MAINTAINERS: Add self to "Write After Approval" list.
2632 2002-06-21 Grace Sainsbury <graces@redhat.com>
2634 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2635 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2636 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2637 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2638 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2640 * m68k-tdep.c: Include arch-utils.h
2641 (m68k_register_raw_size): Add.
2642 (m68k_register_virtual_size): Add.
2643 (m68k_register_virtual_type): Add.
2644 (m68k_register_name): Add.
2645 (m68k_stack_align): Add.
2646 (m68k_register_byte): Add.
2647 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2650 2002-06-21 Grace Sainsbury <graces@redhat.com>
2652 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2653 m68k_find_saved_regs.
2654 (m68k_pop_frame): Removed saved_regs structure, and replaced
2655 references to it with frame->saved_regs.
2656 (m68k_gdbarch_init): Added function calls to initialize the
2658 (m68k_fix_call_dummy): Add.
2659 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2660 (CALL_DUMMY): Remove.
2661 (CALL_DUMMY_LENGTH): Remove.
2662 (CALL_DUMMY_START_OFFSET): Remove.
2663 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2664 (FIX_CALL_DUMMY): Remove.
2665 (PUSH_DUMMY_FRAME): Remove.
2666 (POP_FRAME): Remove.
2668 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2670 * parse.c (parse_fprintf): New function used to avoid calls to
2671 fprintf in bison parser generated debug code.
2672 * parser-defs.h: Declaration of new parse_fprintf function.
2673 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2674 Set YYDEBUG to 1 by default.
2675 Set YYFPRINTF as parse_fprintf.
2677 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2679 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2681 (pointer_encoding, enum ptr_encoding): New.
2682 (execute_cfa_program): Take care about pointer encoding.
2683 (dwarf2_build_frame_info): Only call parse_frame_info for
2684 .debug_frame and .eh_frame.
2685 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2686 fixed augmentation handling, added relative addressing,
2687 ignore duplicate FDEs. Added comments.
2688 * dwarf2cfi.c: Reindented.
2690 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2692 * event-top.c (command_handler): Don't use space_at_cmd_start
2693 unless there is sbrk() on the host. Assign time and space data
2694 to union fields of the appropriate length.
2696 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2698 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2699 x86_64_register_name. Return type changed to 'const char *'.
2700 (x86_64_register_name2nr): Rename to x86_64_register_number.
2701 (x86_64_gdbarch_init): Update to reflect the change.
2702 * x86-64-tdep.h: Ditto.
2703 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2704 (supply_fpregset): Ditto.
2706 2002-06-19 Andrew Cagney <cagney@redhat.com>
2708 * regcache.h: Update copyright.
2709 (struct regcache, struct gdbarch): Add opaque declarations.
2710 (current_regcache): Declare global variable.
2711 (regcache_read, regcache_write): Add gdbarch parameter.
2712 (regcache_save, regcache_save_no_passthrough)
2713 (regcache_restore, regcache_restore_no_passthrough)
2714 (regcache_dup, regcache_dup_no_passthrough)
2715 (regcache_cpy, regcache_cpy_no_passthrough)
2716 (deprecated_grub_regcache_for_registers)
2717 (deprecated_grub_regcache_for_register_valid)
2718 (regcache_valid_p): Add function declarations.
2720 * regcache.c: Update copyright.
2721 (regcache_descr_handle): New global variable.
2722 (struct regcache_descr): Define.
2723 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2724 (regcache_descr, xfree_regcache_descr): New functions.
2725 (struct regcache): Define.
2726 (regcache_xmalloc, regcache_xfree): New functions.
2727 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2728 (regcache_dup, regcache_dup_no_passthrough): New functions.
2729 (regcache_valid_p, regcache_read_as_address): New functions.
2730 (deprecated_grub_regcache_for_registers): New function.
2731 (deprecated_grub_regcache_for_register_valid): New function.
2732 (current_regcache): New global variable.
2733 (register_buffer): Add regcache parameter. Update calls.
2734 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2735 (read_register_gen, write_register_gen): Update register_buffer
2736 call. Test for legacy_p instead of gdbarch_register_read_p or
2737 gdbarch_register_write_p.
2738 (regcache_collect): Update register_buffer call.
2739 (build_regcache): Rewrite. Use deprecated grub functions.
2740 (regcache_save, regcache_save_no_passthrough): New functions.
2741 (regcache_restore, regcache_restore_no_passthrough): New
2743 (_initialize_regcache): Create the regcache_data_handle. Swap
2744 current_regcache global variable.
2746 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2747 parameter to regcache_read and regcache_write calls.
2748 (sh4_register_read): Ditto.
2749 (sh64_pseudo_register_read): Ditto.
2750 (sh64_register_read): Ditto.
2751 (sh_pseudo_register_write): Ditto.
2752 (sh4_register_write): Ditto.
2753 (sh64_pseudo_register_write): Ditto.
2754 (sh64_register_write): Ditto.
2756 * defs.h (XCALLOC): Define.
2758 2002-06-19 Grace Sainsbury <graces@redhat.com>
2760 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2761 * m68k-tdep.c (m68k_gdbarch_init): Added.
2762 (m68k_dump_tdep): Added.
2764 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2766 * ada-lang.c (fill_in_ada_prototype): Update comment.
2768 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2770 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2772 (mips_abi_string, mips_abi_strings): New.
2773 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2774 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2775 tdep->mips_abi_string. Honor mips_abi_string. Default to
2776 O32 if no ABI is found.
2777 (mips_dump_tdep): Use mips_abi_strings.
2778 (mips_abi_update): New function.
2779 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2780 ``set mips abi'' and ``show mips abi''. Check the size of
2783 2002-06-19 Andrew Cagney <cagney@redhat.com>
2785 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2788 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2790 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2791 current frame using only the first stack size adjustment. All
2792 subsequent size adjustments are not considered to be part of
2793 the "static" part of the current frame.
2794 Compute the address of the saved registers relative to the
2795 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2796 in use in this frame.
2798 2002-06-18 Don Howard <dhoward@redhat.com>
2800 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2801 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2802 suggesting this solution.
2804 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2806 * config/romp/xm-rtbsd.h: Delete file.
2807 * config/romp/rtbsd.mh: Delete file.
2809 2002-06-18 Keith Seitz <keiths@redhat.com>
2811 * breakpoint.c (condition_command): Post breakpoint_modify
2812 when a condition is added to an existing breakpoint.
2813 (commands_command): Likewise for commands.
2814 (set_ignore_count): Likewise for ignore counts.
2815 If no tty, do not simply return, still need to send event
2817 (ignore_command): Only print a newline if the command came
2819 Don't call breakpoints_changed, since this is now properly
2820 handled by set_ignore_count.
2822 2002-06-18 Andrew Cagney <cagney@redhat.com>
2824 * MAINTAINERS: Note that cris-elf target can be compiled with
2826 * cris-tdep.c (cris_register_name): Make return type constant.
2827 (cris_breakpoint_from_pc): Ditto.
2829 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2831 * frame.h (struct frame_info): Change type of context to
2834 2002-06-17 Andrew Cagney <cagney@redhat.com>
2836 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2838 * gdbarch.h, gdbarch.c: Regenerate.
2839 * config/mips/tm-mips.h (mips_register_name): Update.
2840 * i386-tdep.h (i386_register_name): Update.
2841 * mips-tdep.c (mips_register_name): Update
2842 * alpha-tdep.c (alpha_register_name): Update.
2843 * arch-utils.c (legacy_register_name): Update.
2844 * arch-utils.h (legacy_register_name): Update.
2845 * avr-tdep.c (avr_register_name): Update.
2846 * ia64-tdep.c (ia64_register_name): Update.
2847 * i386-tdep.c (i386_register_name): Update.
2848 * sparc-tdep.c (sparc32_register_name): Update.
2849 (sparc64_register_name): Update.
2850 (sparclite_register_name): Update.
2851 (sparclet_register_name): Update.
2852 * sh-tdep.c (sh_generic_register_name): Update.
2853 (sh_sh_register_name): Update.
2854 (sh_sh3_register_name): Update.
2855 (sh_sh3e_register_name): Update.
2856 (sh_sh_dsp_register_name): Update.
2857 (sh_sh3_dsp_register_name): Update.
2858 (sh_sh4_register_name): Update.
2859 (sh_sh64_register_name): Update.
2860 * s390-tdep.c (s390_register_name): Update.
2861 * rs6000-tdep.c (rs6000_register_name): Update.
2862 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2863 (ns32k_register_name_32382): Update.
2864 * d10v-tdep.c (d10v_ts2_register_name): Update.
2865 (d10v_ts3_register_name): Update.
2866 * xstormy16-tdep.c (xstormy16_register_name): Update.
2867 * vax-tdep.c (vax_register_name): Update.
2868 * v850-tdep.c (v850_register_name): Update.
2869 * m68hc11-tdep.c (m68hc11_register_name): Update.
2870 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2871 (am33_register_name): Update.
2873 2002-06-17 Grace Sainsbury <graces@redhat.com>
2875 * m68k-tdep.c: Reindented.
2877 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2879 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2880 list of predefined types.
2882 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2884 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2885 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2886 REGISTER_CONVERT_TO_RAW): Remove defines.
2887 (i386_register_virtual_type, i386_register_convertible,
2888 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2890 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2891 macros mentioned above.
2893 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2894 (i386lynx_saved_pc_after_call): Remove prototype.
2895 * i386ly-tdep.c: Include "i386-tdep.h".
2896 (i386lynx_saved_pc_after_call): Make static. Use
2897 read_memory_nobpt instead of read_memory. Use
2898 read_memory_unsigned_integer instead of read_memory_integer.
2899 (i386lynx_init_abi): New function.
2900 (i386lynx_coff_osabi_sniffer): New function.
2901 (_initialize_i386bsd_tdep): New function.
2903 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2904 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2905 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2906 (i386_fix_call_dummy): Remove prototype.
2907 * i386-tdep.c (i386_call_dummy_words): New variable.
2908 (i386_gdbarch_init): Adjust for removal of the
2909 macros mentioned above.
2911 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2913 * command.h (add_setshow_auto_boolean_cmd): Replace
2914 add_set_auto_boolean_cmd.
2915 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2916 add_set_auto_boolean_cmd.
2917 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2918 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2919 mask-address'' command.
2920 (show_mask_address): Add cmd parameter.
2921 * remote.c (add_packet_config_cmd): Update. Change type of
2922 set_func and show_func to cmd_sfunc_ftype.
2923 (_initialize_remote): Update `set remote Z-packet'
2924 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2925 (show_remote_protocol_e_packet_cmd): Ditto.
2926 (show_remote_protocol_E_packet_cmd): Ditto.
2927 (show_remote_protocol_P_packet_cmd): Ditto.
2928 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2929 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2930 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2931 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2932 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2933 (show_remote_protocol_Z_packet_cmd): Ditto.
2934 (show_remote_protocol_binary_download_cmd): Ditto.
2935 (show_remote_cmd): Pass NULL to all of above.
2937 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2939 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2940 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2941 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2942 POP_FRAME): Remove defines.
2943 (i386_push_arguments, i386_store_struct_return,
2944 i386_extract_return_value, i386_store_return_value,
2945 i386_extract_struct_value_address, i386_push_dummy_frame,
2946 i386_pop_frame): Renove prototypes.
2947 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2948 macros mentioned above.
2950 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2952 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2953 add_set_boolean_cmd.
2954 (add_setshow_cmd): New function.
2955 * command.h (add_setshow_boolean_cmd): Replace
2956 add_set_boolean_cmd.
2957 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2958 and ``set rdiromatzero''.
2959 * maint.c (_initialize_maint_cmds): Update commented out code.
2960 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2961 * target.c (initialize_targets): Update `set
2962 trust-readonly-sections'.
2963 * remote.c (_initialize_remote): Update `set remotebreak'.
2965 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2967 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2968 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2969 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2970 fit into multi-arch framework.
2971 (i386_breakpoint_from_pc): New function.
2972 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2975 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2976 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2977 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2978 (i386_frameless_function_invocation, i386_frame_num_args,
2979 i386_frame_init_saved_regs): Remove prototypes.
2980 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2981 macros mentioned above.
2983 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2985 * cli/cli-decode.c (set_cmd_cfunc): Update.
2986 (set_cmd_sfunc): Update.
2987 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2988 (set_cmd_sfunc, set_cmd_cfunc): Update.
2989 * cli/cli-decode.h: Update.
2991 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2993 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2994 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2996 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2998 * defs.h (auto_boolean): Declare enum.
2999 * command.h (cmd_auto_boolean): Delete enum.
3000 * mips-tdep.c (mask_address_var): Update.
3001 (mips_mask_address_p): Update.
3002 (show_mask_address): Update.
3003 * remote.c (struct packet_config): Update.
3004 (update_packet_config): Update.
3005 (show_packet_config_cmd): Update.
3006 (packet_ok): Update.
3007 (add_packet_config_cmd): Update.
3008 (_initialize_remote):
3009 * command.h: Update.
3010 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3011 (do_setshow_command): Update.
3012 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3013 * cli/cli-decode.h: Update.
3015 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3017 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3018 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3019 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3020 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3021 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3022 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3024 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3025 list of DJGPP COFF targets.
3027 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3028 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3029 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3030 (FP0_REGNUM): Remove define.
3031 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3032 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3033 (i386_register_virtual_size): Remove protoype.
3034 * i386-tdep.c (i386_register_virtual_size): Removed.
3035 (i386_extract_return_value, i386_store_return_value): Use
3036 FP0_REGNUM instead of NUM_FREGS to determine whether the
3037 floating-point registers are available.
3038 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3039 Adjust for removal of macros mentioned above.
3041 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3043 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3045 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3047 (supply_gregset, fill_gregset): Remove use of register keyword and
3048 remove declaration for regmap. Use I386_NUM_GREGS instead of
3049 NUM_REGS and NUM_FREGS.
3050 (FPREGSET_FSAVE_OFFSET): Remove.
3051 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3052 NUM_FREGS to determine whether the floating-point registers are
3055 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3056 gnu_store_registers): Replace usage of NUM_GREGS with
3059 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3060 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3061 usage of NUM_GREGS with I386_NUM_GREGS.
3063 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3065 * i386bsd-nat.c: Include "i386-tdep.h".
3066 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3069 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3070 and associated comment. They no longer make any sense, since we
3071 don't use this file anymore on Linux.
3073 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3074 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3075 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3076 elements in these arrays.
3077 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3080 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3082 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3083 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3085 2002-06-14 Andrew Cagney <cagney@redhat.com>
3087 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3088 EXTRACT_RETURN_VALUE.
3089 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3090 EXTRACT_STRUCT_VALUE_ADDRESS.
3091 * gdbarch.h, gdbarch.c: Regenerate.
3093 * values.c (value_being_returned): Handle
3094 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3095 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3097 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3098 * arm-tdep.c (arm_gdbarch_init): Update.
3099 * avr-tdep.c (avr_gdbarch_init): Update.
3100 * cris-tdep.c (cris_gdbarch_init): Update.
3101 * d10v-tdep.c (d10v_gdbarch_init): Update.
3102 * ia64-tdep.c (ia64_gdbarch_init): Update.
3103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3104 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3105 * s390-tdep.c (s390_gdbarch_init): Update.
3106 * sh-tdep.c (sh_gdbarch_init): Update.
3107 * s390-tdep.c (s390_gdbarch_init): Update.
3108 * sparc-tdep.c (sparc_gdbarch_init): Update.
3109 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3110 * v850-tdep.c (v850_gdbarch_init): Update.
3111 * vax-tdep.c (vax_gdbarch_init): Update.
3112 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3115 * config/arc/tm-arc.h: Update.
3116 * config/d30v/tm-d30v.h: Update.
3117 * config/fr30/tm-fr30.h: Update.
3118 * config/h8300/tm-h8300.h: Update.
3119 * config/h8500/tm-h8500.h: Update.
3120 * config/i386/tm-i386.h: Update.
3121 * config/i386/tm-ptx.h: Update.
3122 * config/i386/tm-symmetry.h: Update.
3123 * config/i960/tm-i960.h: Update.
3124 * config/m32r/tm-m32r.h: Update.
3125 * config/m68k/tm-delta68.h: Update.
3126 * config/m68k/tm-linux.h: Update.
3127 * config/m68k/tm-m68k.h: Update.
3128 * config/m88k/tm-m88k.h: Update.
3129 * config/mcore/tm-mcore.h: Update.
3130 * config/mips/tm-mips.h: Update.
3131 * config/mn10200/tm-mn10200.h: Update.
3132 * config/pa/tm-hppa.h: Update.
3133 * config/pa/tm-hppa64.h: Update.
3134 * config/sparc/tm-sp64.h: Update.
3135 * config/sparc/tm-sparc.h: Update.
3136 * config/sparc/tm-sparclet.h: Update.
3137 * config/z8k/tm-z8k.h: Update.
3139 2002-06-14 Andrew Cagney <cagney@redhat.com>
3141 * Makefile.in (i386_linux_tdep_h): Define.
3142 (i386_tdep_h, i387_tdep_h): Define.
3143 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3144 $(i386_tdep_h) and $(i387_tdep_h).
3145 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3147 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3149 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3150 Already covered by the default.
3152 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3153 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3154 (i386_gdbarch_init): Initialize long_double_format and long_double
3157 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3158 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3160 * config/i386/i386sol2.mh: ... here.
3161 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3162 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3163 (SIGCONTEXT_PC_OFFSET): Remove define.
3164 (IN_SIGTRAMP): Remove define.
3165 * i386-sol2-tdep.c: New file.
3167 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3168 * config/i386/tm-i386nw.h: Removed.
3170 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3171 USE_STRUCT_CONVENTION): Remove defines.
3172 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3173 (get_longjmp_target): Remove prototype.
3174 (IN_SIGTRAMP): Remove define.
3175 (i386bsd_in_sigtramp): Remove prototype.
3176 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3177 function. Update comment accordingly
3178 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3179 (FRAME_SAVED_PC): Remove define.
3180 (i386bsd_frame_saved_pc): Remove prototype.
3181 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3182 GET_LONGJMP_TARGET): Remove defines.
3183 (get_longjmp_target): Remove prototype.
3184 (IN_SIGTRAMP): Remove define.
3185 (i386bsd_in_sigtramp): Remove prototype.
3186 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3187 function. Update comment accordingly
3188 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3189 (FRAME_SAVED_PC): Remove define.
3190 (i386bsd_frame_saved_pc): Remove prototype.
3191 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3193 (USE_STRUCT_CONVENTION): Remove prototype.
3194 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3196 (_initialize_i386bsd_nat): Revise logic to determine some
3197 constants at compile time when compiling a native GDB. Warn if
3198 things don't match up with what we expect.
3199 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3201 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3202 to use date stored in `struct gdbarch_tdep'.
3203 (i386bsd_sigcontext_offset): Remove varaible.
3204 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3205 stored in `struct gdbarch_tdep'.
3206 (i386bsd_frame_saved_pc): Make static.
3207 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3208 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3209 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3210 i386fbsd4_sc_pc_offset): New variables.
3211 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3212 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3214 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3216 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3217 Modify the value of i386fbsd_sigtramp_start and
3218 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3219 i386fbsd_sigtramp_end.
3220 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3223 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3224 define to i386-linux-tdep.h.
3225 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3226 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3228 (i386_linux_register_name, i386_linux_register_byte,
3229 i386_linux_register_raw_size): Remove prototypes.
3230 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3231 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3232 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3233 TARGET_WRITE_PC): Remove defines.
3234 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3235 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3236 i386_linux_write_pc): Remove prototypes.
3237 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3238 (get_longjmp_target): Remove prototype.
3239 * i386-linux-tdep.h: New file.
3240 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3241 * i386-linux-tdep.c: Include "i386-tdep.h" and
3242 "i386-linux-tdep.h".
3243 (i386_linux_register_name, i386_linux_register_byte,
3244 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3245 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3247 (i386_linux_init_abi): New function.
3248 (_initialize_i386_linux_tdep): New function.
3250 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3251 (i386_saved_pc_after_call): Remove prototype.
3252 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3253 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3254 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3255 (i386_register_name, i386_stab_reg_to_regnum,
3256 i386_dwarf_reg_to_regnum): Remove prototypes.
3257 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3258 SIZEOF_SSE_REGS): Remove defines.
3259 (REGISTER_BYTES): Remove define.
3260 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3261 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3262 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3263 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3264 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3265 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3266 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3267 (get_longjmp_target): Remove prototype.
3268 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3269 (sigtramp_saved_pc): Remove define.
3270 (i386v4_sigtramp_saved_pc): Remove prototype.
3271 * config/i386/tm-go32.h (FRAME_CHAIN,
3272 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3273 (i386go32_frame_saved_pc): Remove prototype.
3274 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3275 (get_longjmp_target): Remove prototype.
3276 * i386-tdep.h: Include "osabi.h".
3277 (enum i386_abi): Removed.
3278 (enum struct_return): New enum.
3279 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3280 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3281 sc_pc_offset members.
3282 (i386_gdbarch_register_os_abi): Remove prototype.
3283 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3284 I386_SSE_NUM_REGS): New defines.
3285 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3286 I386_SSE_SIZEOF_REGS): New defines.
3287 (i386_register_name, i386_register_byte, i386_register_raw_size):
3289 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3290 (i386bsd_sigtramp_saved_pc): New prototype.
3291 * i386-tdep.c: Don't include "elf-bfd.h".
3292 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3293 i386_frame_chain, i386_saved_pc_after_call): Make static.
3294 (i386_frame_saved_pc): Rewrite to call architecture dependent
3295 function to deal with signal handlers. Make static.
3296 (i386go32_frame_saved_pc): Removed.
3297 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3299 (i386_get_longjmp_target): New function.
3300 (default_struct_convention, pcc_struct_convention,
3301 reg_struct_convention, valid_conventions, struct_convention): New
3303 (i386_use_struct_convention): New function.
3304 (i386v4_sigtramp_saved_pc): Renamed to
3305 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3306 (i386_pc_in_sigtramp): New function.
3307 (i386_abi_names): Removed.
3308 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3309 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3311 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3312 i386_gdbarch_register_os_abi): Removed.
3313 (struct i386_abi_handler): Removed.
3314 (i386_abi_handler_list): Removed.
3315 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3317 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3318 i386_nw_init_abi): New functions.
3319 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3320 Use set_gdbarch_xxx() calls instead of relying on macros for a
3322 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3323 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3324 Register the various architecture variants defined in this file.
3326 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3328 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3329 (struct main_type): Remove arg_types member. Update comments for
3331 (TYPE_ARG_TYPES): Remove.
3332 (TYPE_FN_FIELD_ARGS): Update.
3333 (smash_to_method_type): Update prototype.
3335 * c-typeprint.c (cp_type_print_method_args): Take method type
3336 instead of argument list. Use new argument layout. Simplify.
3337 (c_type_print_args): Use new argument layout. Simplify.
3338 (c_type_print_base): Update call to cp_type_print_method_args.
3339 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3340 argument; use die->type instead. Update call to
3341 smash_to_method_type.
3342 (read_structure_scope): Update call to dwarf2_add_member_fn.
3343 * gdbtypes.c (allocate_stub_method): Update comment.
3344 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3345 Use new argument layout.
3346 (check_stub_method): Use new argument layout. Don't count
3347 void as an argument.
3348 (print_arg_types): Update comments. Use new argument layout.
3349 (recursive_dump_type): Don't print arg_types member.
3350 * hpread.c (hpread_read_struct_type): Use new argument layout.
3351 (fixup_class_method_type): Likewise.
3352 (hpread_type_lookup): Likewise.
3353 * stabsread.c (read_type): Update calls to read_args and
3354 smash_to_method_type.
3355 (read_args): Use new argument layout. Simplify.
3356 * valops.c (typecmp): Use new argument layout. Update parameters
3357 and comments. Simplify.
3358 (hand_function_call): Use new argument layout.
3359 (search_struct_method): Update call to typecmp.
3360 (find_overload_match): Use new argument layout.
3362 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3364 * NEWS: Mention multithreaded debug support for gdbserver.
3366 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3368 * MAINTAINERS: Mention NEWS.
3370 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3372 * gdbserver/regcache.c: Add comment.
3374 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3376 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3377 (struct mips_objfile_private, compare_pdr_entries): New.
3378 (non_heuristic_proc_desc): Read the ".pdr" section if it
3381 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3383 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3384 (arm_debug): New static variable.
3385 (_initialize_arm_tdep): Add ``set debug arm'' command.
3387 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3389 * Makefile.in (sim_arm_h): Define.
3390 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3391 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3392 (arm_register_sim_regno): New function, map an internal REGNUM
3393 onto a simulator register number.
3394 (arm_gdbarch_init): Set register_sim_regno.
3396 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3398 * MAINTAINERS: Add self.
3400 2002-06-11 Jim Blandy <jimb@redhat.com>
3402 * source.c (source_info): Mention whether the symtab has
3403 information about preprocessor macros.
3405 Call the command `info macro', not `show macro'.
3406 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3408 (_initialize_macrocmd): Register `info_macro_command' in
3409 `infolist', not `showlist'.
3411 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3413 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3414 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3415 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3416 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3417 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3419 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3420 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3421 (_initialize_mips_tdep): Remove dead code.
3422 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3423 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3424 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3425 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3426 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3427 MIPS_LAST_FP_ARG_REGNUM): Remove.
3429 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3431 * gdbserver/thread-db.c: New file.
3432 * gdbserver/proc-service.c: New file.
3433 * gdbserver/acinclude.m4: New file.
3434 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3435 proc-service.o, and thread-db.o.
3436 (linux-low.o): Add USE_THREAD_DB.
3437 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3438 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3439 * gdbserver/aclocal.m4: Regenerated.
3440 * gdbserver/config.in: Regenerated.
3441 * gdbserver/configure: Regenerated.
3442 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3443 thread_db.h, and linux/elf.h headrs.
3444 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3445 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3446 Check for -lthread_db and thread support.
3447 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3448 PowerPC, and SuperH.
3449 * gdbserver/i387-fp.c: Constify arguments.
3450 * gdbserver/i387-fp.h: Likewise.
3451 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3452 `struct inferior_info'. Remove PID member. Use generic inferior
3453 list header. All uses updated.
3454 (inferiors, signal_pid): Removed.
3455 (all_threads): New variable.
3456 (get_thread): Define.
3457 (add_inferior_to_list): New function.
3458 (for_each_inferior): New function.
3459 (change_inferior_id): New function.
3460 (add_inferior): Removed.
3461 (remove_inferior): New function.
3462 (add_thread): New function.
3463 (free_one_thread): New function.
3464 (remove_thread): New function.
3465 (clear_inferiors): Use for_each_inferior and free_one_thread.
3466 (find_inferior): New function.
3467 (find_inferior_id): New function.
3468 (inferior_target_data): Update argument type.
3469 (set_inferior_target_data): Likewise.
3470 (inferior_regcache_data): Likewise.
3471 (set_inferior_regcache_data): Likewise.
3472 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3473 (all_processes, stopping_threads, using_thrads)
3474 (struct pending_signals, debug_threads, pid_of): New.
3475 (inferior_pid): Replace with macro.
3476 (struct inferior_linux_data): Remove.
3477 (get_stop_pc, add_process): New functions.
3478 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3479 Use add_process and add_thread.
3480 (linux_attach_lwp): New function, based on old linux_attach. Use
3481 add_process and add_thread. Set stop_expected for new threads.
3482 (linux_attach): New function.
3483 (linux_kill_one_process): New function.
3484 (linux_kill): Kill all LWPs.
3485 (linux_thread_alive): Use find_inferior_id.
3486 (check_removed_breakpoints, status_pending_p): New functions.
3487 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3488 Update. Use WNOHANG. Wait for cloned processes also. Update process
3489 struct for the found process.
3490 (linux_wait_for_event): New function.
3491 (linux_wait): Use it. Support LWPs.
3492 (send_sigstop, wait_for_sigstop, stop_all_processes)
3493 (linux_resume_one_process, linux_continue_one_process): New functions.
3494 (linux_resume): Support LWPs.
3495 (REGISTER_RAW_SIZE): Remove.
3496 (fetch_register): Use register_size instead. Call supply_register.
3497 (usr_store_inferior_registers): Likewise. Call collect_register.
3499 (regsets_fetch_inferior_registers): Improve error message.
3500 (regsets_store_inferior_registers): Add debugging.
3501 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3502 (unstopped_p, linux_signal_pid): New functions.
3503 (linux_target_ops): Add linux_signal_pid.
3504 (linux_init_signals): New function.
3505 (initialize_low): Call it. Initialize using_threads.
3506 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3508 (get_regcache): Fetch registers lazily. Add fetch argument
3509 and update all callers.
3510 (regcache_invalidate_one, regcache_invalidate): New
3512 (new_register_cache): Renamed from create_register_cache.
3513 Return the new regcache.
3514 (free_register_cache): Change argument to a void *.
3515 (registers_to_string, registers_from_string): Call get_regcache
3516 with fetch flag set.
3517 (register_data): Make static. Pass fetch flag to get_regcache.
3518 (supply_register): Call get_regcache with fetch flag clear.
3519 (collect_register): Call get_regcache with fetch flag set.
3520 (collect_register_as_string): New function.
3521 * gdbserver/regcache.h: Update.
3522 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3524 Handle input interrupts while waiting for an ACK.
3525 (input_interrupt): Use signal_pid method.
3526 (getpkt): Flush after debug output and use stderr.
3527 (outreg): Use collect_register_as_string.
3528 (new_thread_notify, dead_thread_notify): New functions.
3529 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3531 (look_up_one_symbol): Flush after debug output.
3532 * gdbserver/server.c (step_thread, server_waiting): New variables.
3533 (start_inferior): Don't use signal_pid. Update call to mywait.
3534 (attach_inferior): Update call to mywait.
3535 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3536 (main): Don't fetch/store registers explicitly. Use
3537 set_desired_inferior. Support proposed ``Hs'' packet. Update
3539 * gdbserver/server.h: Update.
3540 (struct inferior_list, struct_inferior_list_entry): New.
3541 * gdbserver/target.c (set_desired_inferior): New.
3542 (write_inferior_memory): Constify.
3543 (mywait): New function.
3544 * gdbserver/target.h: Update.
3545 (struct target_ops): New signal_pid method.
3546 (mywait): Removed macro, added prototype.
3548 * gdbserver/linux-low.h (regset_func): Removed.
3549 (regset_fill_func, regset_store_func): New.
3550 (enum regset_type): New.
3551 (struct regset_info): Add type field. Use new operation types.
3552 (struct linux_target_ops): stop_pc renamed to get_pc.
3553 Add decr_pc_after_break and breakpoint_at.
3554 (get_process, get_thread_proess, get_process_thread)
3555 (strut process_info, all_processes, linux_attach_lwp)
3556 (thread_db_init): New.
3558 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3559 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3560 (the_low_target): Add new members.
3561 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3562 (i386_store_fpxregset): Constify.
3563 (target_regsets): Add new kind identifier.
3564 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3565 (i386_set_pc): Add debugging.
3566 (i386_breakpoint_at): New function.
3567 (the_low_target): Add new members.
3568 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3569 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3570 (mips_breakpoint_at): New.
3571 (the_low_target): Add new members.
3572 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3573 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3574 (the_low_target): Add new members.
3575 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3576 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3577 (the_low_target): Add new members.
3578 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3581 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3583 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3584 (unwind_tmp_obstack_free, parse_frame_info)
3585 (update_context, cfi_read_fp, cfi_write_fp)
3586 (cfi_frame_chain, cfi_init_extra_frame_info)
3587 (cfi_virtual_frame_pointer): Use the above function.
3588 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3590 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3592 * v850-tdep.c (v850_type_is_scalar): New function.
3593 (v850_use_struct_convention): Match current gcc implementation
3594 as close as possible.
3595 (v850_push_arguments): Fix stack_offset handling. Don't write
3596 struct_addr into register. This is done by v850_store_struct_return.
3597 (v850_extract_return_value): Care for structs.
3598 (v850_store_return_value): Ditto.
3599 (v850_store_struct_return): Actually write address.
3601 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3603 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3604 without debug information too.
3606 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3608 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3609 Make multi-arch pure.
3610 * gdbarch.h, gdbarch.c: Re-generate.
3611 * arm-tdep.c (arm_print_float_info): Update.
3612 * arch-utils.h (default_print_float_info): Update.
3613 * arch-utils.c (default_print_float_info): Update.
3614 * infcmd.c (float_info): Update call.
3616 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3618 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3619 the front of the initialize list.
3621 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3623 * infrun.c (struct inferior_status): Replace fields
3624 selected_frame_address and selected_level with field
3626 (save_inferior_status): Update. Use get_frame_id.
3627 (struct restore_selected_frame_args): Delete.
3628 (restore_selected_frame): Update. Use frame_find_by_id.
3629 (restore_inferior_status): Update.
3631 * breakpoint.h (struct breakpoint): Change type of
3632 watchpoint_frame to frame_id.
3633 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3634 call to get_current_frame.
3635 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3637 (watchpoint_check): Use frame_find_by_id.
3639 * frame.h (record_selected_frame): Delete declaration.
3640 * stack.c (record_selected_frame): Delete function.
3642 * frame.h (struct frame_id): Define.
3643 (get_frame_id): Declare.
3644 (frame_find_by_id): Declare.
3645 * frame.c (frame_find_by_id): New function.
3646 (get_frame_id): New function.
3648 2002-06-10 Andrey Volkov <avolkov@transas.com>
3650 * ser-e7kpc.c: Fix duplicated define and call of
3651 _initialize_ser_e7000pc
3653 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3655 * signals/signals.c (target_signal_from_host): Fix #ifdef
3657 (do_target_signal_to_host): Likewise.
3659 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3661 * mips-tdep.c (mips_find_abi_section): New function.
3662 (mips_gdbarch_init): Call it.
3664 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3666 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3667 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3668 after Andrew's 2002-06-08 gdbarch change.
3670 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3672 * i386-linux-nat.c (suppy_gregset): Don't supply
3673 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3675 (fill_gregset): Don't fetch it under the same circumstances.
3677 2002-06-09 Andrew Cagney <cagney@redhat.com>
3679 * Makefile.in (callback_h): Define.
3680 (remote_sim_h): Update path to remote-sim.h.
3681 (remote-rdp.o): Add $(callback_h).
3682 (remote-sim.o): Use $(callback_h).
3683 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3684 * remote-rdp.c: Include "gdb/callback.h".
3686 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3688 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3689 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3691 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3693 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3694 * rdi-share/serpardr.c: Ditto.
3695 * rdi-share/unixcomm.c: Ditto.
3696 * rdi-share/serdrv.c: Ditto.
3697 * rdi-share/hostchan.h: Ditto.
3698 * rdi-share/hostchan.c: Ditto.
3699 * rdi-share/host.h: Ditto.
3700 * rdi-share/devsw.c: Ditto.
3702 * objfiles.h: Change type of obj_private to void pointer.
3703 * pa64solib.c: Update copyright. Don't include "assert.h", use
3704 strcmp instead of STREQ, use LONGEST, do not use PTR
3705 * somsolib.c: Ditto.
3707 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3708 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3709 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3711 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3713 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3714 (default_get_saved_register): Delete function.
3715 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3716 generic_unwind_get_saved_register.
3717 * gdbarch.h, gdbarch.c: Re-generate.
3719 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3721 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3722 generic_func_frame_chain_valid.
3723 * gdbarch.h, gdbarch.c: Re-generate.
3724 * blockframe.c (generic_func_frame_chain_valid): Only check
3725 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3726 passing FP to PC_IN_CALL_DUMMY.
3729 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3731 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3732 (register_gdbarch_data): Initialize init_p.
3733 (gdbarch_data): Initialize data pointer using the init function.
3734 (init_gdbarch_data): Delete function.
3735 (gdbarch_update_p): Update.
3736 (initialize_non_multiarch): Update.
3737 (struct gdbarch): Add field initialized_p.
3738 * gdbarch.h, gdbarch.c: Re-generate.
3740 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3742 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3743 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3744 better do the things actually here.
3745 * x86-64-tdep.c (x86_64_register_name2nr): New.
3746 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3747 (x86_64_gdbarch_init): Respect the above change.
3748 * x86-64-tdep.h (x86_64_register_name2nr)
3749 (x86_64_register_nr2name): Add prototypes.
3750 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3752 2002-06-06 Michael Snyder <msnyder@redhat.com>
3754 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3755 Delete extra braces and re-indent.
3756 (d10v_store_return_value): Char return values
3757 must be shifted over by one byte in R0.
3758 (d10v_extract_return_value): Delete extra braces, re-indent.
3760 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3762 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3763 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3764 (d10v_integer_to_address): Rewrite.
3765 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3766 the d10v specific functions which take care of converting to the
3769 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3771 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3772 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3774 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3776 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3778 * config/tm-linux.h: Ditto.
3779 * config/alpha/tm-alphalinux.h: Ditto.
3780 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3781 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3782 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3783 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3784 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3785 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3786 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3787 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3788 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3789 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3790 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3791 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3792 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3793 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3794 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3795 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3796 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3797 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3798 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3799 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3800 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3801 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3802 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3803 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3804 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3805 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3806 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3807 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3808 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3809 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3810 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3811 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3812 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3813 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3814 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3815 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3816 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3818 2002-05-04 Aidan Skinner <aidan@velvet.net>
3820 * ada-exp.tab.c: New file
3821 * ada-exp.y: New file
3822 * ada-lang.c: New file
3823 * ada-lang.h: New file
3824 * ada-lex.c: New file
3825 * ada-lex.l: New file
3826 * ada-tasks.c: New file
3827 * ada-typeprint.c: New file
3828 * ada-valprint.c: New file
3830 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3832 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3833 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3835 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3837 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3838 insetead of ppc-linux-tdep.o.
3839 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3840 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3842 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3844 2002-05-07 Christian Groessler <chris@groessler.org>
3845 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3846 bit register contents for little endian hosts.
3848 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3850 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3853 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3855 * gdbarch.h: Regenerate.
3857 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3859 * MAINTAINERS: Add everyone to write-after-approval list.
3861 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3863 * stack.c (frame_info): Use frame_register_unwind instead of
3864 saved_regs. Mention when the SP is on the stack or in a register.
3866 * frame.h (frame_register_unwind_ftype): Define. Document.
3867 (struct frame_info): Add field register_unwind and
3868 register_unwind_cache.
3869 (frame_register_unwind): Declare.
3870 (generic_unwind_get_saved_register): Declare.
3872 * frame.c (frame_register_unwind): New function.
3873 (generic_unwind_get_saved_register): New function.
3875 * blockframe.c (generic_call_dummy_register_unwind): New function.
3876 (frame_saved_regs_register_unwind): New function.
3877 (set_unwind_by_pc): New function.
3878 (create_new_frame): New function.
3879 (get_prev_frame): New function.
3881 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3883 * a29k-share/: Delete directory.
3884 * remote-vx29k.c: Delete file.
3886 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3888 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3889 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3891 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3893 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3894 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3897 (sparcnbsd-tdep.o): New dependency lists.
3898 * NEWS: Note new UltraSPARC NetBSD native configuration.
3899 * configure.host (sparc64-*-netbsd*): New host.
3900 * configure.tgt (sparc-*-netbsdelf*)
3901 (sparc-*-netbsd*): Set gdb_target to nbsd.
3902 (sparc64-*-netbsd*): New target.
3903 * sparc64nbsd-nat.c: New file.
3904 * sparcnbsd-nat.c: New file.
3905 * sparcnbsd-tdep.c: New file.
3906 * sparcnbsd-tdep.h: New file.
3907 * config/sparc/nbsd.mt: New file.
3908 * config/sparc/nbsd64.mh: New file.
3909 * config/sparc/nbsd64.mt: New file.
3910 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3911 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3913 * config/sparc/nbsdaout.mt: Remove.
3914 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3915 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3917 * config/sparc/nbsdelf.mt: Remove.
3918 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3919 sparc-nat.c compatiblity defines.
3920 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3921 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3922 * config/sparc/tm-nbsd64.h: New file.
3923 * config/sparc/tm-nbsdaout.h: Remove.
3924 * config/sparc/xm-nbsd.h: Remove.
3926 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3928 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3929 * sparc-tdep.c: Include osabi.h.
3930 (gdbarch_tdep): Add osabi member.
3931 (_initialize_sparc_tdep): Use gdbarch_register.
3932 (sparc_gdbarch_init): Use generic OS ABI framework.
3933 (sparc_dump_tdep): New function.
3935 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3937 * corefile.c (do_captured_read_memory_integer): Return non-zero
3939 (safe_read_memory_integer): Copy result of memory read when
3940 status is non-zero. Also, add comments.
3942 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3944 * Makefile.in (ppc_tdep_h): Define.
3947 (rs6000-tdep.o): Use $(ppc_tdep_h).
3950 (ppcnbsd-tdep.o): New dependency lists.
3951 * ppc-tdep.h: Use generic OS ABI framework.
3952 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3953 (ppc_linux_init_abi): New functions.
3954 (ppc_sysv_abi_broken_use_struct_convention)
3955 (ppc_sysv_abi_use_struct_convention)
3956 (ppc_sysv_abi_push_arguments): Move to...
3957 * ppc-sysv-tdep.c: ...here.
3958 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3959 * rs6000-tdep.c (process_note_abi_tag_sections)
3960 (get_elfosabi): Remove.
3961 (rs6000_gdbarch_init): Use generic OS ABI framework.
3962 (rs6000_dump_tdep): New function.
3963 (_initialize_rs6000_tdep): Use gdbarch_register.
3964 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3965 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3966 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3967 of ppc-linux-tdep.o.
3968 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3969 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3970 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3971 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3972 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3973 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3975 2002-05-29 Jim Blandy <jimb@redhat.com>
3977 * macroscope.c (default_macro_scope): Put `void' in empty argument
3980 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3982 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3983 * arch-utils.c: Include "sim-regno.h".
3984 * gdbarch.sh: Don't include "sim-regno.h".
3985 * gdbarch.h, gdbarch.c: Regenerate.
3986 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3988 * arch-utils.h (legacy_register_sim_regno): To here.
3989 * remote-sim.c (legacy_register_sim_regno): Move function from
3991 * arch-utils.c (legacy_register_sim_regno): To here.
3993 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3995 * sim-regno.h: New file.
3996 * Makefile.in (sim_regno_h): Define.
3997 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3998 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3999 (legacy_register_sim_regno): New function.
4000 (one2one_register_sim_regno): New function.
4001 (gdbsim_fetch_register): Rewrite.
4002 (gdbsim_store_register): Only store a register when
4003 REGISTER_SIM_REGNO is valid.
4004 * d10v-tdep.c: Include "sim-regno.h".
4005 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4006 (d10v_ts3_register_sim_regno): Ditto.
4007 * gdbarch.sh: Include "sim-regno.h".
4008 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4009 * gdbarch.h, gdbarch.c: Regenerate.
4010 * arch-utils.h (default_register_sim_regno): Delete declaration.
4011 * arch-utils.c (default_register_sim_regno): Delete function.
4013 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4015 * ppcnbsd-nat.c: Rewrite.
4016 * ppcnbsd-tdep.c: New file.
4017 * ppcnbsd-tdep.h: New file.
4018 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4019 solib.o, and solib-svr4.o.
4020 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4021 nbsd-tdep.o, and corelow.o.
4023 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4025 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4026 `tr' and `sed'. Mention that `broken' targets are not expected to
4029 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4031 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4032 Let PC point right after the prologue before looking up symbols.
4034 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4036 * i386-tdep.c (i386_register_virtual_type): Return
4037 builtin_type_vec128i for SSE registers.
4039 * gdbtypes.h (builtin_type_vec128i): Declare.
4041 * gdbtypes.c (build_builtin_type_vec128i): New function.
4042 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4043 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4044 (build_gdbtypes): Initialize new builtin vector types.
4045 (_initialize_gdbtypes): Register new vector types with gdbarch.
4047 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4049 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4050 since it has been multi-arch'd.
4051 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4052 Move Alpha and VAX multi-arch news entries to same section
4053 as other multi-arch news.
4055 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4057 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4058 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4059 static. Rename some register numbers to put them in ns32k-tdep
4061 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4062 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4064 (_initialize_ns32k_tdep): Use gdbarch_register.
4065 * ns32k-tdep.h: New file.
4066 * ns32knbsd-tdep.c: New file.
4067 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4068 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4069 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4070 REGISTER_BYTES, REGISTER_BYTE): Remove.
4071 * config/ns32k/tm-ns32k.h: New file.
4072 * config/ns32k/tm-umax.h: Remove.
4074 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4076 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4077 ns32k_store_struct_return, ns32k_extract_return_value,
4078 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4080 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4081 ns32k_saved_pc_after_call.
4082 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4083 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4084 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4085 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4086 ns32k_extract_struct_value_address.
4088 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4090 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4091 ns32k_fix_call_dummy): New.
4092 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4093 ns32k_call_dummy_words.
4094 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4095 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4096 CALL_DUMMY_NARGS): Remove.
4097 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4099 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4101 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4102 ns32k_frame_saved_pc, ns32k_frame_args_address,
4103 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4104 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4105 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4106 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4107 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4108 (BREAKPOINT): Remove..
4109 (FRAME_CHAIN): Define as ns32k_frame_chain.
4110 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4111 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4112 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4113 (FRAME_FIND_SAVED_REGS): Remove.
4114 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4115 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4116 (POP_FRAME): Define as ns32k_pop_frame.
4118 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4120 * ns32k-tdep.c (ns32k_register_byte_32082,
4121 ns32k_register_byte_32382, ns32k_register_raw_size,
4122 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4124 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4125 ns32k_register_byte_32382.
4126 * config/ns32k/tm-umax.h: Update copyright years.
4127 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4128 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4129 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4130 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4131 (ns32k_get_enter_addr): Fix prototype.
4133 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4135 * ns32k-tdep.c: Update copyright years.
4136 (ns32k_register_name_32082): New function.
4137 (ns32k_register_name_32382): Ditto.
4138 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4139 (REGISTER_NAME): Define as ns32k_register_name_32382.
4140 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4141 (REGISTER_NAME): Define as ns32k_register_name_32082.
4143 2002-05-24 Jim Blandy <jimb@redhat.com>
4145 * dwarf2read.c (free_line_header): Use xfree, not free.
4147 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4149 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4150 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4152 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4154 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4156 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4158 From Ross Alexander at NEC Europe:
4159 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4161 2002-05-23 Michael Snyder <msnyder@redhat.com>
4163 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4164 for input, rather than parse_and_eval_address.
4166 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4168 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4169 * Makefile.in (sim_d10v_h): Update definition.
4171 2002-05-24 Andrew Cagney <cagney@redhat.com>
4173 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4174 change `2002-05-22 Michael Snyder' below.
4175 (d10v_push_arguments): Ditto.
4176 (d10v_extract_return_value): Ditto.
4178 2002-05-23 Jim Blandy <jimb@redhat.com>
4180 * macrotab.c (check_for_redefinition): Don't complain if the new
4181 definition is the same as the previous one. Take more arguments
4182 to allow the comparison.
4183 (macro_define_object, macro_define_function): Pass more arguments
4184 to check_for_redefinition.
4186 2002-05-22 Michael Snyder <msnyder@redhat.com>
4188 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4189 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4190 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4191 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4192 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4193 Add a temp variable to save a call (and a memory read).
4194 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4195 if possible (so that PC_IN_CALL_DUMMY will work).
4197 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4199 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4201 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4203 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4205 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4206 (dwarf2_build_frame_info): Add offset to fde->initial_location
4207 so that frames of shared libraries are mapped correctly.
4208 (execute_stack_op): Change type of 'result' from ULONGEST to
4211 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4213 * config/alpha/tm-nbsd.h: Include solib.h.
4215 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4217 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4218 assumptions about the host's byte order.
4220 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4222 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4224 * alphanbsd-tdep.c: Include solib-svr4.h.
4225 * shnbsd-tdep.c: Ditto.
4227 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4229 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4230 nbsd-tdep.h to dependency list.
4231 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4232 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4233 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4234 nbsdaout.mh and nbsdelf.mh consistently.
4235 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4236 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4237 nbsdaout.mt and nbsdelf.mh consistently.
4238 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4239 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4240 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4241 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4242 a.out shared library stuff from here...
4243 * config/nm-nbsdaout.h: ...to here.
4244 * config/tm-nbsd.h: Remove.
4245 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4246 * config/arm/nbsd.mh: Remove.
4247 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4249 * config/arm/nbsdaout.mh: New file.
4250 * config/arm/nbsdelf.mh: New file.
4251 * config/arm/nm-nbsdaout.h: New file.
4252 * config/i386/nbsd.mh: Remove.
4253 * config/i386/nbsd.mt: Remove.
4254 * config/i386/nbsdaout.mh: New file.
4255 * config/i386/nbsdaout.mt: New file.
4256 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4257 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4258 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4259 i386_register_u_addr): Remove.
4260 * config/i386/nm-nbsdaout.h: New file.
4261 * config/i386/nm-nbsdelf.h: Remove.
4262 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4263 (USE_STRUCT_CONVENTION): Remove.
4264 * config/i386/tm-nbsdaout.h: New file.
4265 * config/i386/tm-nbsdelf.h: Remove.
4266 * config/m68k/nbsd.mh: Remove.
4267 * config/m68k/nbsd.mt: Remove.
4268 * config/m68k/nbsdaout.mh: New file.
4269 * config/m68k/nbsdaout.mt: New file.
4270 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4271 * config/m68k/nm-nbsdaout.h: New file.
4272 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4273 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4274 * config/ns32k/nbsd.mh: Remove.
4275 * config/ns32k/nbsd.mt: Remove.
4276 * config/ns32k/nbsdaout.mh: New file.
4277 * config/ns32k/nbsdaout.mt: New file.
4278 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4279 * config/ns32k/nm-nbsdaout.h: New file.
4280 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4281 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4282 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4283 (SVR4_SHARED_LIBS): Remove.
4284 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4285 * config/sparc/nbsd.mh: Remove.
4286 * config/sparc/nbsd.mt: Remove.
4287 * config/sparc/nbsdaout.mh: New file.
4288 * config/sparc/nbsdaout.mt: New file.
4289 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4290 * config/sparc/nbsdelf.mt: New file.
4291 * config/sparc/nm-nbsdaout.h: New file.
4292 * config/sparc/nm-nbsdelf.h: Remove.
4293 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4294 * config/sparc/tm-nbsdaout.h: New file.
4296 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4298 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4300 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4302 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4304 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4306 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4308 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4310 * NEWS: Note new MIPS NetBSD native configuration.
4311 * configure.host (mips*-*-netbsd*): New host.
4312 * configure.tgt (mips*-*-netbsd*): New target.
4313 * mipsnbsd-nat.c: New file.
4314 * mipsnbsd-tdep.c: New file.
4315 * mipsnbsd-tdep.h: New file.
4316 * config/mips/nbsd.mh: New file.
4317 * config/mips/nbsd.mt: New file.
4318 * config/mips/nm-nbsd.h: New file.
4319 * config/mips/tm-nbsd.h: New file.
4321 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4323 * Makefile.in (SFILES): Add osabi.c.
4324 (COMMON_OBS): Add osabi.o.
4325 (osabi.o): New dependency list.
4326 * osabi.c: New file.
4327 * osabi.h: New file.
4328 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4330 * Makefile.in (alpha_tdep_h): Define and use instead of
4332 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4333 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4335 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4336 * alpha-tdep.h: Include osabi.h.
4337 (alpha_abi): Remove.
4338 (gdbarch_tdep): Use generic OS ABI framework.
4339 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4340 gdbarch_register_osabi.
4341 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4342 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4343 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4345 * Makefile.in (sh_tdep_h): Add osabi.h.
4346 * sh-tdep.h (sh_osabi): Remove.
4347 (gdbarch_tdep): Use generic OS ABI framework.
4348 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4349 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4350 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4351 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4353 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4354 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4355 gdbarch_register_osabi.
4356 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4357 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4358 (get_elfosabi): Rename to...
4359 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4360 ABI framework support routines.
4361 (arm_gdbarch_init): Use generic OS ABI framework.
4362 (arm_dump_tdep): Likewise.
4363 (_initialize_arm_tdep): Likewise.
4364 * arm-tdep.h: Include osabi.h.
4366 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4368 (arm_gdbarch_register_os_abi): Remove prototype.
4369 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4370 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4372 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4373 * mips-tdep.c: Include osabi.h.
4374 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4377 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4379 * h8300-tdep.c: Fix formatting.
4381 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4383 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4384 printing vector registers.
4386 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4388 From Fernando Nasser:
4389 * remote.c (remote_async_open_1): Re-throw the exception when the
4391 (remote_cisco_open): Ditto.
4392 (remote_open_1): Ditto.
4394 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4396 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4397 (remote_start_remote): Add uiout parameter. Pass through to
4398 remote_start_remote_dummy.
4399 (remote_open_1): Use catch_exception instead of catch_errors.
4400 (remote_async_open_1): Ditto.
4401 (remote_cisco_open): Ditto.
4403 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4405 * remote.c (remote_start_remote): Replace PTR with void pointer.
4406 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4409 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4411 * gdb_indent.sh: Allow the script to be run in the sim directory.
4413 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4415 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4416 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4418 * corelow.c (core_open): Only call set_gdbarch_from_file if
4421 2002-05-17 Andrey Volkov <avolkov@transas.com>
4423 * h8300-tdep.c: Add support of EXR register
4424 * config/h8300/tm-h8300.h: Ditto.
4426 2002-05-17 Andrey Volkov <avolkov@transas.com>
4428 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4430 2002-05-17 Andrey Volkov <avolkov@transas.com>
4432 * h8300-tdep.c: Change literal regnums to REGNO.
4434 2002-05-17 Jim Blandy <jimb@redhat.com>
4436 * NEWS: Note addition of macro support.
4438 Expand preprocessor macros in C expressions.
4439 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4440 (scan_macro_expansion, scanning_macro_expansion,
4441 finished_macro_expansion): New function declarations.
4442 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4443 variable declarations.
4444 * parser-defs.h (expression_context_pc): New declaration.
4445 * parse.c (expression_context_pc): New variable.
4446 (parse_exp_1): Set expression_context_pc, as well as
4447 expression_context_block.
4448 * c-exp.y (yylex): If we're not already reading the result of a
4449 macro expansion, try to macro-expand the next token. When we're
4450 done scanning a macro expansion, switch back to the mainline text.
4451 Commas and `if's in a macro's expansion don't terminate the input.
4452 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4453 (macro_original_text, macro_expanded_text,
4454 expression_macro_lookup_func, expression_macro_lookup_baton): New
4456 (scan_macro_expansion, scanning_macro_expansion,
4457 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4458 c_preprocess_and_parse): New functions.
4459 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4460 c_preprocess_and_parse, instead of c_parse.
4461 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4462 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4464 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4466 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4467 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4468 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4470 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4472 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4474 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4476 * Makefile.in (sh_tdep_h): Define and use.
4477 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4478 register enum): Move to...
4479 * * sh-tdep.h: ...here.
4480 * sh-tdep.c: Include sh-tdep.h.
4481 * sh3-rom.c: Likewise.
4482 * shnbsd-tdep.c: Likewise.
4484 2002-05-16 Michael Snyder <msnyder@redhat.com>
4486 * arm-tdep.c: Spelling fix in comment.
4488 2002-05-16 Jim Blandy <jimb@redhat.com>
4490 Add commands for manually expanding macros and showing their
4492 * macrocmd.c, macroscope.c, macroscope.h: New files.
4493 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4494 (macroscope_h): New variable.
4495 (HFILES_NO_SRCDIR): Add macroscope.h.
4496 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4497 (macroscope.o, macrocmd.o): New rules.
4499 Teach the Dwarf 2 reader to read macro information.
4500 * dwarf2read.c: #include "macrotab.h".
4501 (dwarf_macinfo_buffer): New variable.
4502 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4504 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4505 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4506 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4507 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4508 dwarf2_macro_spaces_in_definition): New complaints.
4509 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4510 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4511 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4512 the partial symbol table.
4513 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4514 from what's recorded in the partial symbol table.
4515 (read_file_scope): If the compilation unit has a
4516 `DW_AT_macro_info' attribute, read its macro information.
4517 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4519 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4522 * ser-tcp.c: Don't include <netinet/udp.h>.
4524 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4526 * MAINTAINERS: Update my email address.
4528 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4530 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4531 include file of the same name.
4533 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4535 * configure.tgt: Mark v850 as multi-arched.
4536 * config/v850/tm-v850.h: Remove file.
4537 * config/v850/v850.mt: Eliminate TM_FILE.
4539 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4541 * v850-tdep.c: Full multi-arch.
4542 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4543 Define GDB_MULTI_ARCH to 2.
4545 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4547 * p-exp.y (current_type): New static variable.
4548 Carries the type of the expression at the position that is parsed.
4549 (push_current_type, pop_current_type): Two new functions. Used
4550 to store/restore current_type in expression on specific tokens.
4551 (search_field): New static variable. Set to one after parsing a point
4552 as at that point only a FIELDNAME token should be searched.
4553 (FIELDNAME): New token. After a point only a token belonging to
4554 current_type type definition is allowed.
4555 (all over token rules): reset and change current_type according
4557 (exp '[' rule): insert implicit array index field if
4558 exp is a pascal string type.
4560 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4562 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4563 frame info. Use frame_info's saved_regs instead of matching member
4564 in extra_frame_info throughout.
4565 (v850_frame_init_saved_regs): New function.
4566 (v850_init_extra_frame_info): Move most functionality into
4567 v850_frame_init_saved_regs().
4568 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4569 (v850_frame_find_saved_regs): Remove declaration.
4570 (FRAME_FIND_SAVED_REGS): Remove definition.
4571 (v850_frame_init_saved_regs): Add declaration.
4572 (FRAME_INIT_SAVED_REGS): Add definition.
4574 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4576 * v850-tdep.c: Begin multi-arch'ing v850.
4577 (v850_target_architecture_hook): Remove function.
4578 (v850_gdbarch_init): New function. Add code previously in
4579 v850_target_architecture_hook().
4580 (_initialize_v850_tdep): Don't set target_architecture_hook.
4581 Call register_gdbarch_init() instead.
4583 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4585 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4586 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4587 (fixup_class_method_type): Likewise.
4589 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4591 From Martin Pool <mbp@samba.org>:
4592 * gdbserver/server.c (gdbserver_usage): New function.
4595 2002-05-15 Jim Blandy <jimb@redhat.com>
4597 Add macro structures to GDB's symbol tables. Nobody puts anything
4599 * symtab.h (struct symtab): New member: `macro_table'.
4600 * buildsym.h (pending_macros): New global variable.
4601 * buildsym.c: #include "macrotab.h".
4602 (buildsym_init): Initialize `pending_macros'.
4603 (end_symtab): If we found macro information while reading a CU's
4604 debugging info, do build a symtab structure for it. Make the
4605 symtab point to the macro information, and clear the
4606 `pending_macros' pointer which held it while we were reading the
4608 (really_free_pendings): Free any pending macro table.
4609 * objfiles.h (struct objfile): New member: `macro_cache'.
4610 * objfiles.c (allocate_objfile): Set allocate and free functions
4611 for the macro cache's objstack.
4612 (free_objfile): Empty the macro cache's obstack.
4613 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4614 set new allocate and free functions for it.
4615 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4616 free functions for the macro cache's objstack. (Why is this
4617 function building its own objfile?)
4618 * symmisc.c (print_objfile_statistics): Print statistics on the
4620 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4622 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4624 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4625 (REGISTER_U_ADDR): Delete definition.
4626 (arm_register_u_addr): Delete declaration.
4628 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4630 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4631 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4633 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4635 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4638 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4640 * regcache.c (register_valid): Revise comments refering to "Not
4641 available" and "unavailable".
4642 * frame.c (frame_register_read): Ditto.
4643 * findvar.c (value_of_register): Ditto.
4645 2002-05-15 Andrew Cagney <cagney@redhat.com>
4647 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4648 (remote-sim.o): Update dependencies.
4649 (d10v-tdep.o): Specify dependencies.
4650 (sim_d10v_h): Define.
4652 2002-05-14 Jim Blandy <jimb@redhat.com>
4654 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4655 * macrotab.c (macro_lookup_inclusion, find_definition,
4656 new_macro_table): Same.
4658 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4659 not `! strcmp ()'. This is a dubious improvement.
4660 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4662 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4663 although it's not necessary, to avoid a warning.
4665 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4667 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4668 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4669 TYPE_INSTANCE_FLAGS.
4670 (struct main_type): New.
4671 (struct type): Move most members to struct main_type. Change
4672 cv_type and as_type to new type_chain member. Add instance_flags.
4673 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4674 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4675 (finish_cv_type): Remove prototype.
4676 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4678 (alloc_type_instance): New function.
4679 (smash_type): New function.
4680 (make_pointer_type, make_reference_type, make_function_type)
4681 (smash_to_member_type, smash_to_method_type): Call smash_type.
4682 (make_qualified_type): New function.
4683 (make_type_with_address_space): Call make_qualified_type.
4684 (make_cv_type): Likewise.
4685 (finish_cv_type): Remove unnecessary function.
4686 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4687 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4688 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4689 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4690 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4691 * hpread.c (hpread_read_struct_type): Likewise.
4692 * stabsread.c (read_struct_type): Likewise.
4694 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4696 * configure.tgt: Add a catch all sh* target, for cases like
4697 sh[2,3,4]-elf and sh-hms.
4699 2002-05-14 Keith Seitz <keiths@redhat.com>
4701 * event-loop.c (create_file_handler): Don't do anything but
4702 update data when we are given a fd which we are already
4705 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4707 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4708 (update_context): Use __func__ in warnings.
4710 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4712 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4713 and tcp_close to net_open and net_close.
4714 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4715 using UDP if requested. Don't try to disable Nagle on UDP
4717 * remote.c (remote_serial_open): New function. Warn about UDP.
4718 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4720 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4722 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4724 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4726 * configure.tgt: Remove sh-hms target.
4727 * MAINTAINERS: Don't list sh-hms as a separate target.
4729 2002-05-13 Jim Blandy <jimb@redhat.com>
4731 Add first preprocessor macro-expansion files.
4732 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4733 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4734 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4735 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4736 (COMMON_OBS): Add macrotab.o, macroexp.o.
4737 (macroexp.o, macrotab.o): New rules.
4739 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4741 * config/m88k/tm-m88k.h: Update copyright.
4742 (m88k_target_write_pc): Declare
4743 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4744 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4745 (SHIFT_INST_REGS): Update definition.
4746 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4747 using old definition of TARGET_WRITE_PC.
4748 * regcache.c (generic_target_write_pc): Delete code handling
4750 * gdbarch.sh (NNPC_REGNUM): Delete.
4751 * gdbarch.h, gdbarch.c: Regenerate.
4753 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4755 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4758 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4760 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4761 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4762 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4764 * c-typeprint.c (cp_type_print_method_args): Likewise.
4765 (c_type_print_args): Likewise.
4766 * d10v-tdep.c (d10v_push_arguments): Likewise.
4767 (d10v_extract_return_value): Likewise.
4768 * expprint.c (print_subexp): Likewise.
4769 * gdbtypes.c (lookup_primitive_typename): Likewise.
4770 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4771 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4772 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4773 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4774 (TYPE_VECTOR): Likewise.
4775 * hpread.c (hpread_read_struct_type)
4776 (fix_static_member_physnames, fixup_class_method_type)
4777 (hpread_type_lookup): Likewise.
4778 * mdebugread.c (parse_symbol, parse_type): Likewise.
4779 * p-lang.c (is_pascal_string_type): Likewise.
4780 * valops.c (hand_function_call): Likewise.
4781 * x86-64-tdep.c (classify_argument): Likewise.
4783 * hpread.c (hpread_read_function_type)
4784 (hpread_read_doc_function_type): Call replace_type.
4785 * dstread.c (create_new_type): Delete.
4786 (decode_dst_structure, process_dst_function): Call alloc_type.
4787 Use type access macros.
4789 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4791 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4792 the're not supported by the current architecture.
4793 (i387_fill_fxsave): Likewise.
4795 2002-05-12 Fred Fish <fnf@redhat.com>
4797 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4798 sect_index_xxx members to index the first slot in section_offsets
4799 if all of the section_offsets are zero.
4801 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4803 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4804 checked in with last change.
4806 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4808 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4809 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4812 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4814 * Makefile.in: Update dependencies.
4816 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4818 * language.c (local_hex_string_custom): Simplify. Do not depend
4819 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4821 * memattr.c (mem_info_command): Replace calls to
4822 longest_local_hex_string and longest_local_hex_string_custom.
4823 * buildsym.c (make_blockvector): Ditto.
4824 * solib.c (info_sharedlibrary_command): Ditto.
4825 * tracepoint.c (tracepoints_info): Ditto.
4826 * symtab.c (print_msymbol_info): Ditto.
4828 * language.c (local_hex_string): Delete.
4829 (local_hex_string_custom): Delete.
4830 (longest_local_hex_string): Rename to local_hex_string.
4831 (longest_local_hex_string_custom): Rename to
4832 local_hex_string_custom.
4833 * language.h (local_hex_string): Change parameter type to LONGEST.
4834 (local_hex_string_custom): Ditto.
4835 (longest_local_hex_string): Delete declaration.
4836 (longest_local_hex_string_custom): Ditto.
4838 * solib.c: Update copyright.
4839 * memattr.c: Update copyright.
4841 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4843 * arch-utils.h (legacy_register_to_value): Declare.
4844 (legacy_value_to_register): Declare.
4845 (legacy_convert_register_p): Declare.
4846 * arch-utils.c (legacy_register_to_value): New function.
4847 (legacy_value_to_register): New function.
4848 (legacy_convert_register_p): New function.
4850 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4851 (VALUE_TO_REGISTER): Define.
4852 (CONVERT_REGISTER_P): Define.
4853 * gdbarch.h, gdbarch.c: Regenerate.
4855 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4857 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4860 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4861 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4863 * Makefile.in: Update dependencies for valops.c.
4864 * valops.c: Include "gdb_assert.h".
4865 (typecmp): Skip THIS parameter to methods.
4866 (find_method_list): Remove static_memfuncp argument,
4867 update callers. Check for stub methods.
4868 (find_value_oload_method_list): Don't set *static_memfuncp.
4869 (find_overload_match): Don't check for stub methods. Assert
4870 that methods are not stubbed. Handle static methods.
4871 (value_find_oload_method_list): Remove static_memfuncp argument.
4872 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4873 to the argument list for static stub methods.
4874 * value.h (value_find_oload_method_list): Update prototype.
4876 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4878 * arch-utils.h (generic_register_size): Declare.
4879 (generic_register_raw_size, generic_register_virtual_size): Delete
4881 * arch-utils.c (generic_register_raw_size): Delete.
4882 (generic_register_size): New function.
4883 (generic_register_virtual_size): Delete.
4885 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4886 default generic_register_size.
4887 * gdbarch.h, gdbarch.c: Re-generate.
4889 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4890 register_virtual_size.
4891 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4892 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4894 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4896 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4897 * gdbarch.h, gdbarch.c: Regenerate.
4898 * gnu-v3-abi.c: Update copyright.
4899 (vtable_address_point_offset): Update.
4900 (gnuv3_rtti_type): Update.
4901 (gnuv3_baseclass_offset): Update.
4902 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4903 (init_fetch_link_map_offsets): Update.
4904 * remote.c (get_remote_state): Update.
4906 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4908 * TODO: Remove value_headof/value_from_vtable_info comment.
4909 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4910 * values.c (value_headof, value_from_vtable_info): Delete.
4911 * value.h (value_from_vtable_info): Delete prototype.
4913 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4915 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4916 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4918 (gdb_assert_h): Define.
4919 (gdb_wait_h): Define.
4920 (gdb_regex_h): Define.
4922 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4924 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4925 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4927 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4929 * nbsd-tdep.c: Fix comment.
4931 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4933 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4934 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4935 (nbsd-tdep.o): New dependency list.
4936 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4938 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4939 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4940 * nbsd-tdep.c: New file.
4941 * nbsd-tdep.h: New file.
4942 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4944 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4945 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4946 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4947 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4949 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4951 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4952 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4953 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4954 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4955 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4956 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4958 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4960 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4961 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4962 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4963 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4964 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4965 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4966 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4968 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4970 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4971 fetch_elfcore_registers to...
4972 * i386nbsd-tdep.c: ...here.
4973 (i386nbsd_use_struct_convention): Rename to...
4974 (i386nbsd_aout_use_struct_convention): ...this.
4975 (i386nbsd_supply_reg): New function.
4976 (i386nbsd_fill_reg): New function.
4977 (fetch_core_registers): Use i386nbsd_supply_reg.
4978 (fetch_elfcore_registers): Likewise.
4979 (_initialize_i386nbsd_tdep): New function.
4980 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4981 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4982 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4983 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4984 (i386nbsd_aout_use_struct_convention): ...this.
4986 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4988 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4989 (store_inferior_registers): Use shnbsd_fill_reg.
4990 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4991 sh_nbsd_supply_register): Collapse into...
4992 (shnbsd_supply_reg): ...this.
4993 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4994 (shnbsd_fill_reg): ...this.
4995 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4996 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4997 (fetch_core_registers): Use shnbsd_supply_reg.
4998 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4999 (sh_nbsd_core_fns): Rename to...
5000 (shnbsd_core_fns): ...this.
5001 (sh_nbsd_elfcore_fns): Rename to...
5002 (shnbsd_elfcore_fns): ...this.
5003 (sh_nbsd_init_abi): Rename to...
5004 (shnbsd_init_abi): ...this.
5005 (_initialize_sh_nbsd_tdep): Rename to...
5006 (_initialize_shnbsd_tdep): ...this.
5007 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5008 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5009 sh_nbsd_fill_register): Remove prototypes.
5010 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5012 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5014 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5015 (i387-nat.o): Delete dependency list.
5016 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5017 (x86-64-linux-nat.o): Likewise.
5018 * i387-nat.c: Delete file, moving contents to...
5019 * i387-tdep.c: ...here.
5020 * i387-nat.h: Rename...
5021 * i387-tdep.h: ...to this.
5022 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5023 * i386-linux-nat.c: Likewise.
5024 * i386bsd-nat.c: Likewise.
5025 * i386gnu-nat.c: Likewise.
5026 * i386nbsd-nat.c: Likewise.
5027 * i386v4-nat.c: Likewise.
5028 * x86-64-linux-nat.c: Likewise.
5029 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5030 * config/i386/go32.mh (NATDEPFILES): Likewise.
5031 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5032 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5033 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5034 * config/i386/linux.mh (NATDEPFILES): Likewise.
5035 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5036 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5037 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5038 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5040 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5042 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5043 (alphanbsd-nat.o): Remove dependency list.
5044 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5045 * alphanbsd-nat.c: Delete. Contents moved to...
5046 * alphanbsd-tdep.c: ...here.
5047 (_initialize_alphanbsd_tdep): Register core functions.
5048 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5050 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5052 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5053 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5054 (alphanbsd-nat.o): Likewise.
5055 (alphabsd-tdep.o): New dependency list.
5056 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5057 (fill_gregset): Use alphabsd_fill_reg.
5058 (supply_fpregset): Use alphabsd_supply_fpreg.
5059 (fill_fpregset): Use alphabsd_fill_fpreg.
5060 (fetch_inferior_registers): Use struct reg and struct fpreg
5061 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5062 and alphabsd_supply_fpreg.
5063 (store_inferior_registers): Use struct reg and struct fpreg
5064 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5065 and alphabsd_fill_fpreg.
5066 * alphabsd-tdep.c: New file.
5067 * alphabsd-tdep.h: New file.
5068 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5069 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5070 alphabsd_supply_fpreg.
5071 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5072 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5074 2002-05-11 Eric Christopher <echristo@redhat.com>
5076 * mips-tdep.c (mips_double_register_type): Fix thinko.
5077 (mips_single_register_type): Ditto.
5078 * MAINTAINERS: Add self.
5080 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5082 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5083 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5084 right thing on architectures with different endianness and/or
5087 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5089 From Christian Limpach <chris@Pin.LU>
5090 * configure.in: Change sed expression which comments out
5091 NATDEPFILES to also comment out continuation lines.
5092 * configure: Regenerate.
5094 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5096 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5099 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5101 * sh-tdep.c: Include correct file.
5103 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5105 New support for sh64-elf (sh5) target.
5107 * configure.tgt: For sh64-elf target, default to sh-elf.
5109 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5110 (struct gdbarch_tdep): Add new fields for new registers and ABI
5113 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5114 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5115 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5116 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5117 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5118 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5119 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5120 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5121 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5122 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5123 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5124 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5125 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5126 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5127 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5128 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5129 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5130 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5131 sign_extend, sh64_nofp_frame_init_saved_regs,
5132 sh64_init_extra_frame_info, sh64_get_saved_register,
5133 sh64_extract_struct_value_address, sh64_pop_frame,
5134 sh64_push_arguments, sh64_extract_return_value,
5135 sh64_store_return_value, sh64_show_media_regs,
5136 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5137 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5138 sh_sh64_register_virtual_type,
5139 sh_sh64_register_convert_to_virtual,
5140 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5141 sh64_register_read, sh64_pseudo_register_write,
5142 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5143 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5144 sh64_do_pseudo_register, sh_compact_do_registers_info,
5145 sh64_do_registers_info, sh_gdbarch_init): New functions.
5147 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5149 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5151 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5153 * linespec.c (decode_line_1): Check for a double quote after
5154 a filename correctly.
5156 2002-05-10 Jim Blandy <jimb@redhat.com>
5158 Properly track the size of the current objfile's .debug_line section.
5159 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5160 (DWARF_LINE_SIZE): New macro.
5161 (dwarf2_build_psymtabs_hard): Record the line section's size in
5162 the partial symbol table.
5163 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5166 2002-05-10 Petr Sorfa <petrs@caldera.com>
5168 * ia64-tdep.c: Handle breakpoints on L instruction type
5169 in MLX instruction bundle by moving the breakpoint to
5170 the third slot (X instruction type) as L holds only data.
5172 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5174 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5175 (process_one_symbol): Complain about discarding local symbols
5176 due to a misplaced N_LBRAC entry.
5178 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5180 From Daniel Berlin <dan@cgsoftware.com>
5181 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5182 decrease the depth we are at, in the case of templates.
5184 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5186 * mips-tdep.c (mips_float_register_type): New function.
5187 (mips_double_register_type): New function.
5188 (mips_print_register): Use them.
5189 (do_fp_register_row): Likewise.
5191 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5193 * signals/signals.c (signals): Remove conditional compilation around
5194 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5195 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5197 2002-05-09 Michael Snyder <msnyder@redhat.com>
5199 * remote-rdp.c (remote_rdp_can_run): Remove.
5201 2002-05-09 Tom Tromey <tromey@redhat.com>
5203 * jv-valprint.c (java_val_print): Handle `char' as a special case
5206 2002-05-09 Michael Snyder <msnyder@redhat.com>
5208 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5209 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5210 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5211 str r(0123),[sp,#nn].
5212 (arm_skip_prologue): Ditto. Also make disassembly
5213 order-independent by placing it in a loop.
5215 2002-05-06 Michael Snyder <msnyder@redhat.com>
5217 * stabsread.c (read_type): Add recognition for new attribute:
5218 "@V;" means that an array type is actually a vector.
5219 This is analogous to the vector flag that's been added to dwarf2.
5221 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5223 * i386-tdep.h (i386_abi): New enum.
5224 (struct gdbarch_tdep): Replace os_ident member with abi.
5225 (i386_gdbarch_register_os_abi): New prototype.
5226 * i386-tdep.c (i386_abi_names): New array.
5227 (process_note_abi_tag_sections): Removed.
5228 (process_note_sections): New function.
5229 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5230 (struct i386_abi_handler): New struct.
5231 (i386_abi_handler_list): New variable.
5232 (i386_gdbarch_register_os_abi): New function.
5233 (i386_gdbarch_init): Adapt for the changes given above.
5235 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5237 * gregset.h: Say "GNU/Linux".
5239 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5241 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5242 (build_gdbtypes): Build builtin_type_v2_float.
5243 (_initialize_gdbtypes): Register new builtin type.
5245 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5247 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5248 (clear_gdbarch_swap): New function.
5249 (initialize_non_multiarch): Call.
5250 (gdbarch_update_p): Before calling init(), swap out and clear the
5251 existing architecture.
5252 * gdbarch.c: Regenerate.
5254 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5256 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5259 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5261 * sh-nbsd-nat.c: Rename to...
5262 * shnbsd-nat.c: ...this.
5263 * sh-nbsd-tdep.c: Rename to...
5264 * shnbsd-tdep.c: ...this.
5265 * sh-nbsd-tdep.h: Rename to...
5266 * shnbsd-tdep.h: ...this.
5267 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5268 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5270 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5272 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5273 concatenation for command help messages.
5275 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5277 * NEWS: Note new sh*-*-netbsdelf* configuration.
5278 * configure.host: Set gdb_host_cpu to sh for all sh*.
5279 (sh*-*-netbsdelf*): New host.
5280 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5281 (sh*-*-netbsdelf*): New target.
5282 * sh-nbsd-nat.c: New file.
5283 * sh-nbsd-tdep.c: New file.
5284 * sh-nbsd-tdep.h: New file.
5285 * config/sh/nbsd.mh: New file.
5286 * config/sh/nbsd.mt: New file.
5287 * config/sh/nm-nbsd.h: New file.
5288 * config/sh/tm-nbsd.h: New file.
5290 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5292 * sh-tdep.c (sh_osabi_names): Declare.
5293 (process_note_abi_tag_sections): New function.
5294 (get_elfosabi): Ditto.
5295 (sh_gdbarch_register_os_abi): Ditto.
5296 (sh_dump_tdep): Ditto.
5297 _initialize_sh_tdep): Use gdbarch_register to register
5298 sh_gdbarch_init and sh_dump_tdep.
5299 * config/sh/tm-sh.h (sh_osabi): Declare.
5300 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5302 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5304 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5305 (thumb_scan_prologue): Ditto.
5306 (arm_find_callers_reg): Ditto.
5307 (arm_frame_chain): Ditto.
5308 (arm_init_extra_frame_info): Ditto.
5309 (arm_frame_saved_pc): Ditto.
5310 (arm_pop_frame): Ditto.
5311 (arm_push_return_address): New function.
5312 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5313 call_dummy_location, call_dummy_breakpoint_offset_p,
5314 call_dummy_breakpoint_offset, call_dummy_p,
5315 call_dummy_stack_adjust_p, call_dummy_words,
5316 sizeof_call_dummy_words, call_dummy_start_offset,
5317 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5318 call_dummy_address, push_return_address and push_dummy_frame for
5319 generic dummy frames.
5321 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5323 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5324 size computation for alloca.
5325 (sh_fp_frame_init_saved_regs): Likewise.
5327 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5329 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5330 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5331 * arm-tdep.c (arm_store_return_value): Use them.
5332 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5333 * remote-rdp.c (remote_rdp_fetch_register): Use
5334 ARM_MAX_REGISTER_RAW_SIZE.
5335 (remote_rdp_store_register): Likewise.
5337 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5339 * dwarf2cfi.c: Code cleanup, removed unused variables,
5340 added default labels to switch {} statements.
5341 * x86-64-tdep.c: Ditto.
5342 * x86-64-linux-nat.c: Ditto.
5344 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5346 * solib.h: Protect against multiple inclusion.
5348 2002-05-06 Jim Blandy <jimb@redhat.com>
5350 Add first preprocessor macro-expansion files.
5351 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5352 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5353 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5354 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5355 (COMMON_OBS): Add macrotab.o, macroexp.o.
5356 (macroexp.o, macrotab.o): New rules.
5358 Separate the job of reading the line number info statement program
5359 header (...expialidocious) out into its own function.
5360 * dwarf2read.c (struct line_head, struct filenames, struct
5361 directories): Replace with...
5362 (struct line_header): New structure, containing the full
5363 contents of the statement program header, including the
5364 include directory and file name tables.
5365 (read_file_scope): If we have line number info, instead of just
5366 calling dwarf_decode_lines to do all the work, call
5367 dwarf_decode_line_header first to get a `struct line_header'
5368 containing the data in the statement program header, and then
5369 pass that to dwarf_decode_lines, which will pick up where that
5370 left off. Be sure to clean up the `struct line_header' object.
5371 (dwarf_decode_line_header, free_line_header, add_include_dir,
5372 add_file_name): New functions.
5373 (dwarf_decode_lines): Move all the code to read the statement
5374 program header into dwarf_decode_line_header. Take the line
5375 header it built as the first argument, instead of the offset to
5376 the compilation unit's line number info. Use the new `struct
5377 line_header' type instead of the old structures. No need to do
5378 cleanups here now, since we don't allocate anything.
5379 (dwarf2_statement_list_fits_in_line_number_section,
5380 dwarf2_line_header_too_long): New complaints.
5382 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5384 * gdbtypes.c (init_vector_type): New function.
5385 (build_builtin_type_vec128): Simplify the representation of SIMD
5387 (build_gdbtypes): Initialize new builtin vector types.
5388 (_initialize_gdbtypes): Register new vector types with gdbarch.
5389 (builtin_type_v4_float, builtin_type_v4_int32,
5390 builtin_type_v8_int16, builtin_type_v16_int8,
5391 builtin_type_v2_int32, builtin_type_v4_int16,
5392 builtin_type_v8_int8): New (renamed) SIMD types.
5394 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5396 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5397 (i387_fill_fxsave): Likewise.
5399 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5401 * alpha-tdep.c (alpha_extract_return_value): Don't use
5402 non-constant array size in prototype.
5404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5406 From Brian Taylor <briant at model dot com>:
5407 * ui-out.c (ui_out_field_core_addr): Use the function
5408 longest_local_hex_string_custom'to format addresses > 32 bits
5411 * ui-out.c (ui_out_field_core_addr): Update comment.
5413 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5415 * stack.c (select_and_print_frame): Make static. Delete the
5417 (func_command): Update call.
5418 (select_frame_command): Delete code computing the frame level.
5419 * frame.h (select_and_print_frame): Delete declaration.
5421 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5423 * sparc-tdep.c (sparc_get_saved_register): Comment why
5424 get_prev_frame call is safe.
5426 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5428 * frame.h (select_frame): Delete level parameter.
5429 * stack.c (select_frame): Update. Use frame_relative_level to
5430 obtain the frame's level.
5431 (select_and_print_frame): Update call.
5432 (select_frame_command): Ditto.
5433 (up_silently_base): Ditto.
5434 (down_silently_base): Ditto.
5435 * ocd.c (ocd_start_remote): Ditto.
5436 * remote-rdp.c (remote_rdp_open): Ditto.
5437 * remote-mips.c (mips_initialize): Ditto.
5438 (common_open): Ditto.
5439 * remote-e7000.c (e7000_start_remote): Ditto.
5440 * m3-nat.c (select_thread): Ditto.
5441 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5442 (child_get_current_exception_event): Ditto.
5443 * varobj.c (varobj_create): Ditto.
5444 (varobj_update): Ditto.
5445 (c_value_of_root): Ditto.
5446 * tracepoint.c (finish_tfind_command): Ditto.
5447 * corelow.c (core_open): Ditto.
5448 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5449 * thread.c (info_threads_command): Ditto.
5450 (switch_to_thread): Ditto.
5451 * infrun.c (normal_stop): Ditto.
5452 (restore_selected_frame): Ditto.
5453 (restore_inferior_status): Ditto.
5454 * breakpoint.c (insert_breakpoints): Ditto.
5455 (watchpoint_check): Ditto.
5456 (bpstat_stop_status): Ditto.
5457 (do_enable_breakpoint): Ditto.
5458 * blockframe.c (flush_cached_frames): Ditto.
5459 (reinit_frame_cache): Ditto.
5461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5463 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5466 2002-05-04 Jim Blandy <jimb@redhat.com>
5468 * gdbtypes.c (replace_type): Doc fix.
5470 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5472 * valprint.c (strcat_longest): Delete commented out function.
5475 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5477 * MAINTAINERS: Mark a29k as deleted.
5478 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5479 Move new configurations to the top.
5480 * configure.tgt: Remove a29k.
5481 * config/a29k/tm-vx29k.h: Delete.
5482 * config/a29k/vx29k.mt: Delete.
5483 * config/a29k/tm-a29k.h: Delete.
5484 * config/a29k/a29k-udi.mt: Delete.
5485 * config/a29k/a29k.mt: Delete.
5486 * a29k-tdep.c: Delete.
5487 * remote-udi.c: Delete.
5488 * remote-mm.c: Delete.
5489 * remote-eb.c: Delete.
5490 * remote-adapt.c: Delete.
5491 * Makefile.in: Remove obsolete code.
5492 * gdbserver/Makefile.in: Ditto.
5493 * config/s390/s390x.mt: Ditto.
5494 * config/s390/s390.mt: Ditto.
5495 * config/sparc/sparclynx.mh: Ditto.
5496 * config/sparc/linux.mh: Ditto.
5497 * config/pa/hppaosf.mh: Ditto.
5498 * config/pa/hppabsd.mh: Ditto.
5499 * config/ns32k/nbsd.mt: Ditto.
5500 * config/mips/vr5000.mt: Ditto.
5501 * config/m68k/sun3os4.mh: Ditto.
5502 * config/m68k/nbsd.mt: Ditto.
5503 * config/m68k/m68klynx.mh: Ditto.
5504 * config/m32r/m32r.mt: Ditto.
5505 * config/i386/x86-64linux.mt: Ditto.
5506 * config/i386/nbsdelf.mt: Ditto.
5507 * config/i386/nbsd.mt: Ditto.
5508 * config/i386/i386lynx.mh: Ditto.
5510 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5512 * target.c (debug_print_register): New function. Handle oversize
5514 (debug_to_fetch_registers): Call.
5515 (debug_to_store_registers): Call.
5517 2002-05-03 Jim Blandy <jimb@redhat.com>
5519 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5520 (read_type): Doc fix.
5521 * gdbtypes.c (replace_type): Doc fix.
5523 * stabsread.c (multiply_defined_struct): New complaint.
5524 (read_struct_type): If the type we were passed isn't empty, or
5525 incomplete, don't read the new struct type into it; complain,
5526 and return the original type unchanged. Take a new `type_code'
5527 argument, which is the type code for the new type.
5528 (read_type): Rather than storing the type's type code here, pass
5529 it as an argument to read_struct_type, and let that take care of
5530 storing it. That way, we don't overwrite the original type code,
5531 so read_struct_type can use it to decide whether we're overwriting
5532 something we shouldn't.
5533 (complain_about_struct_wipeout): New function.
5535 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5537 * gdbarch.sh: Assert that gdbarch is non-NULL.
5538 * gdbarch.c: Regenerate.
5540 2002-05-03 Jason Merrill <jason@redhat.com>
5542 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5545 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5547 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5548 (x86_64_dwarf2gdb_regno_map_length),
5549 (x86_64_dwarf2_reg_to_regnum): Added.
5550 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5551 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5552 (_initialize_x86_64_tdep): Synced with the change above.
5553 (x86_64_skip_prologue): Reformulated message.
5555 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5557 * f-exp.y: Also use new prev_lexptr variable
5558 to improve error reporting. Based on Michael Snyder
5559 2002-04-24 dated patch to c-exp.y.
5560 * jv-exp.y: Likewise.
5561 * m2-exp.y: Likewise.
5563 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5565 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5566 we are dealing with vectors.
5568 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5570 * config/m68k/tm-nbsd.h: Obvious fix,
5571 correct machine name.
5573 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5575 * p-typeprint.c (pascal_type_print_base): Add support
5576 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5578 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5580 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5581 for fondamental pascal 'char' type.
5583 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5585 * p-lang.h (is_pascal_string_type): Declaration changed,
5586 new sixth argument of type char ** added.
5587 * p-lang.c (is_pascal_string_type): Implementation
5588 changed. Args length_pos, length_size, string_pos, char_size
5589 can now be NULL. New argument arrayname set to the field
5590 name of the char array. Return value set to char array
5591 field index plus one.
5592 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5593 is_pascal_string_type function.
5595 2002-05-02 Andrew Cagney <cagney@redhat.com>
5597 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5598 <cagney@redhat.com> change.
5599 * gdbarch.c: Regenerate.
5601 2002-05-02 Andrew Cagney <cagney@redhat.com>
5603 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5604 before probing for a new one. Detect errorenous gdbarch_init
5606 * gdbarch.c: Regenerate.
5608 2002-05-01 Andrew Cagney <cagney@redhat.com>
5610 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5611 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5612 * config/v850/tm-v850.h: Ditto. Update copyright.
5614 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5616 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5619 2002-04-30 Michael Snyder <msnyder@redhat.com>
5621 * arm-tdep.c: Whitespace clean-ups.
5622 (arm_skip_prologue): Fix thinko; two lines
5623 should have been removed as part of 4/24 change.
5625 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5627 * rs6000-tdep.c: Added comment describing how fpscr register
5628 numbers were chosen.
5630 2002-04-30 Michael Snyder <msnyder@redhat.com>
5632 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5634 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5636 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5637 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5638 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5640 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5642 From Louis Hamilton <hamilton@redhat.com>:
5643 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5644 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5645 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5646 not bfd-private xcoff data, to determine wordsize.
5647 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5649 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5651 GDB 5.2 released from 5.2 branch.
5653 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5655 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5656 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5657 (x86_64_register_info_table): Added comments with register numbers.
5659 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5661 * rs6000-tdep.c (rs6000_extract_return_value,
5662 rs6000_store_return_value): Handle returning vectors.
5663 (rs6000_gdbarch_init): Use
5664 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5665 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5667 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5669 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5670 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5672 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5674 * hpread.c (hpread_psymtab_to_symtab_1,
5675 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5676 with fprintf_unfiltered (gdb_stderr,...).
5678 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5680 * remote-array.c (printf_monitor, write_monitor,
5681 array_insert_breakpoint, array_remove_breakpoint ):
5682 Replace fprintf (stderr,...
5683 with fprintf_unfiltered (gdb_stderr,....
5684 * remote-es.c: Likewise.
5685 * remote-os9k.c: Likewise.
5686 * remote-st.c: Likewise.
5688 2002-04-28 Andreas Schwab <schwab@suse.de>
5690 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5691 linux-proc.o and gcore.o.
5693 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5695 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5696 code without frame pointers.
5698 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5700 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5703 2002-04-26 Ben Elliston <bje@redhat.com>
5705 * target.c (do_xfer_memory): Correct reference to the new option
5706 "trust-readonly-sections".
5708 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5710 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5711 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5712 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5714 (read_array_type): Record the fact that this array type is really a
5715 vector (i.e. are passed in by value).
5717 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5719 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5720 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5721 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5722 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5723 * alpha-linux-tdep.c: Include frame.h.
5724 (alpha_linux_sigcontext_addr): New function.
5725 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5726 alpha_linux_sigcontext_addr.
5727 * alpha-osf1-tdep.c: Include gdbcore.h.
5728 (alpha_osf1_sigcontext_addr): New function.
5729 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5730 alpha_osf1_sigcontext_addr.
5731 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5732 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5734 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5736 * stack.c (selected_frame_level):
5737 (select_frame): Do not set selected_frame_level.
5738 * frame.h (selected_frame_level): Delete declaration.
5740 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5742 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5743 convert_from_func_ptr-addr when AIX / PowerOpen.
5745 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5747 * valops.c (hand_function_call): Call
5748 generic_save_call_dummy_addr.
5749 * frame.h (generic_save_call_dummy_addr): Declare.
5750 * blockframe.c (struct dummy_frame): Add fields call_lo and
5752 (generic_find_dummy_frame): Check for PC in range call_lo to
5753 call_hi instead of entry_point_address.
5754 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5755 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5756 (generic_save_call_dummy_addr): New function.
5758 2002-04-24 David S. Miller <davem@redhat.com>
5760 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5761 sparc_skip_prologue.
5762 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5763 information to find prologue when possible.
5764 (sparc_prologue_frameless_p): Call examine_prologue directly.
5765 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5766 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5768 (SKIP_PROLOGUE): Likewise.
5770 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5772 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5773 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5774 indicate that the condition it was testing is always true.
5775 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5776 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5777 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5779 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5781 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5782 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5783 tdep->jb_pc and tdep->jb_elt_size.
5784 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5785 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5786 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5787 * alpha-nat.c (get_longjmp_target): Remove.
5788 (JB_ELEMENT_SIZE): Ditto.
5790 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5791 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5792 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5793 to alpha_get_longjmp_target.
5794 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5795 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5796 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5798 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5800 * README: Update to GDB 5.2.
5802 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5804 * gdbarch.sh (LC_ALL): Set to `c'.
5806 2002-04-25 Theodore A. Roth <troth@verinet.com>
5808 * avr-tdep.c: Ran through gdb_indent.sh.
5810 2002-04-25 Theodore A. Roth <troth@verinet.com>
5812 * MAINTAINERS: Add myself as AVR maintainer.
5813 * NEWS: Note new target avr.
5815 2002-04-25 Theodore A. Roth <troth@verinet.com>
5817 * Makefile.in: Add support for AVR target.
5818 * configure.tgt: Add support for AVR target.
5819 * avr-tdep.c: New file
5820 * config/avr/avr.mt: New file.
5822 2002-04-25 Theodore A. Roth <troth@verinet.com>
5824 * MAINTAINERS: Add myself to write-after-approval.
5826 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5828 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5829 with fprintf_unfiltered (gdb_stderr,....
5831 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5834 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5836 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5838 * p-exp.y: Also use new prev_lexptr variable
5839 to improve error reporting. Based on Michael Snyder
5840 2002-04-24 dated patch to c-exp.y.
5842 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5844 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5845 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5846 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5848 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5850 (FUNCTION_START_OFFSET): Remove.
5851 (BREAKPOINT): Ditto.
5853 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5855 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5858 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5860 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5861 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5862 alpha_linux_pc_in_sigtramp.
5863 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5864 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5865 alpha_osf1_pc_in_sigtramp.
5866 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5867 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5868 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5869 alphafbsd_pc_in_sigtramp.
5870 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5871 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5872 alphanbsd_pc_in_sigtramp.
5873 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5874 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5876 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5878 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5880 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5882 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5884 (alphanbsd-nat.o): New dependency list.
5885 (alphanbsd-tdep.o): Ditto.
5886 * NEWS: Note new native NetBSD/alpha configuration.
5887 * alphanbsd-nat.c: New file.
5888 * alphanbsd-tdep.c: Ditto.
5889 * configure.host (alpha*-*-netbsd*): New host.
5890 * configure.tgt (alpha*-*-netbsd*): New target.
5891 * config/alpha/nbsd.mh: New file.
5892 * config/alpha/nbsd.mt: Ditto.
5893 * config/alpha/nm-nbsd.h: Ditto.
5894 * config/alpha/tm-nbsd.h: Ditto.
5896 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5898 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5899 (alpha-osf1-tdep.o): New dependency list.
5900 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5901 and skip_sigtramp_frame members.
5902 * alpha-linux-tdep.c: Include gdbcore.h.
5903 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5904 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5905 * alpha-osf1-tdep.c: New file.
5906 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5908 (alpha_frame_past_sigtramp_frame): New function.
5909 (alpha_dynamic_sigtramp_offset): Ditto.
5910 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5911 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5912 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5913 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5914 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5915 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5916 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5917 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5918 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5919 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5920 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5921 to find_solib_trampoline_target.
5922 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5923 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5924 (SKIP_TRAMPOLINE_CODE): Remove.
5925 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5926 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5927 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5928 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5929 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5930 (PROC_SIGTRAMP_MAGIC): Ditto.
5931 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5932 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5933 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5934 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5935 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5937 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5939 * NEWS: Note that Alpha targets are now multi-arch.
5941 2002-04-24 Michael Snyder <msnyder@redhat.com>
5943 * parser-defs.h (prev_lexptr): New external variable.
5944 * parse.c (parse_exp_1): Set prev_lexptr to null before
5945 calling the language-specific parser.
5946 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5947 (yyerror): Use prev_lexptr in error reporting.
5949 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5951 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5952 * gregset.h: If FILL_FPXREGSET is defined, provide
5953 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5954 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5955 is defined, call fill_fpxregset.
5957 2002-04-24 Roland McGrath <roland@frob.com>
5959 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5960 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5961 (supply_gregset, supply_fpregset): New functions.
5963 * gnu-nat.c (gnu_find_memory_regions): New function.
5964 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5965 (gnu_xfer_memory): Add a cast.
5967 2002-04-24 Michael Snyder <msnyder@redhat.com>
5969 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5970 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5971 of argument regs ("str r(0123), [r11, #-nn"]).
5972 (arm_skip_prologue): Better handling for frameless functions.
5973 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5974 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5976 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5978 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5979 NUM_PSEUDO_REGS can be used.
5981 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5983 * arch-utils.h: Update copyright.
5985 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5986 * gdbarch.h, gdbarch.c: Re-generate.
5988 * inferior.h (IN_SIGTRAMP): Delete definition.
5989 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5990 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5992 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5993 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5994 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5995 (find_proc_framesize): Ditto.
5996 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5997 (alpha_init_extra_frame_info): Ditto.
5998 * infrun.c (handle_inferior_event): Ditto.
5999 (handle_inferior_event): Ditto.
6000 (check_sigtramp2): Ditto.
6001 * blockframe.c (create_new_frame): Ditto.
6002 (get_prev_frame): Ditto.
6003 * ppc-linux-tdep.c: Update comments.
6004 * i386-linux-tdep.c: Update comments.
6005 * breakpoint.c (bpstat_what): Update comment.
6007 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6009 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6010 (regsets_store_inferior_registers): Removed cast to int from
6012 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6014 2002-04-24 David S. Miller <davem@redhat.com>
6016 * i960-tdep.c (register_in_window_p): New function.
6017 (i960_find_saved_register): Use it instead of
6018 REGISTER_IN_WINDOW_P.
6019 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6021 * symtab.h (find_stab_function_addr): Kill extern.
6022 * minsyms.c (find_stab_function_addr): Remove from here...
6023 * dbxread.c: ... to here, and mark it static.
6025 2002-04-20 David S. Miller <davem@redhat.com>
6027 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6028 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6030 2002-04-21 David S. Miller <davem@redhat.com>
6032 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6033 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6034 (vx_write_register): Likewise.
6036 2002-04-23 J. Brobecker <brobecker@gnat.com>
6038 * source.c (is_regular_file): New function.
6039 (openp): Check wether file to open is a regular file
6040 to avoid opening directories.
6042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6044 * findvar.c (extract_signed_integer): Cast printf argument
6045 to suppress format warning.
6046 (extract_unsigned_integer): Likewise.
6047 * infcmd.c (registers_info): Likewise.
6048 * top.c (get_prompt_1): Likewise.
6049 * valops.c (value_assign): Likewise.
6050 * valprint.c (print_decimal): Likewise.
6052 2002-04-22 H.J. Lu (hjl@gnu.org)
6054 * c-exp.y (typebase): Support
6056 [long|long long|short] [signed|unsigned] [int|]
6060 signed [long|long long|short] int
6062 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6064 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6066 * vax-tdep.h: New file.
6067 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6068 Make several routines static.
6069 (vax_get_saved_register): New function.
6070 (vax_gdbarch_init): New function.
6071 (_initialize_vax_tdep): Register vax_gdbarch_init.
6072 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6073 Remove macros now under the control of gdbarch.
6075 2002-04-22 Michael Snyder <msnyder@redhat.com>
6077 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6078 Some whitespace and coding standards tweaks.
6080 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6082 * vax-tdep.c: Include regcache.h.
6083 (vax_call_dummy_words): New.
6084 (sizeof_vax_call_dummy_words): New.
6085 (vax_fix_call_dummy): New function.
6086 (vax_saved_pc_after_call): Ditto.
6087 * config/vax/tm-vax.h: Don't include regcache.h.
6088 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6089 (CALL_DUMMY): Remove.
6090 (CALL_DUMMY_WORDS): Define.
6091 (SIZEOF_CALL_DUMMY_WORDS): Define.
6092 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6094 2002-04-18 Michael Snyder <msnyder@redhat.com>
6096 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6098 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6100 * vax-tdep.c (vax_frame_chain): New function.
6101 (vax_push_dummy_frame): Ditto.
6102 (vax_pop_frame): Ditto.
6103 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6104 (FRAMELESS_FUNCTION_INVOCATION): Use
6105 generic_frameless_function_invocation_not.
6106 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6107 (POP_FRAME): Use vax_pop_frame.
6109 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6111 * vax-tdep.c (vax_store_struct_return): New function.
6112 (vax_extract_return_value): Ditto.
6113 (vax_store_return_value): Ditto.
6114 (vax_extract_struct_value_address): Ditto.
6115 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6116 vax_store_struct_return.
6117 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6118 (STORE_RETURN_VALUE): Use vax_store_return_value.
6119 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6121 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6123 * vax-tdep.c (vax_frame_saved_pc): New function.
6124 (vax_frame_args_address_correct): Ditto.
6125 (vax_frame_args_address): Ditto.
6126 (vax_frame_locals_address): Ditto.
6127 (vax_frame_num_args): Move code to be in proximity to
6128 other frame-related functions.
6129 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6130 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6131 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6132 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6133 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6135 2002-04-22 H.J. Lu (hjl@gnu.org)
6137 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6140 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6142 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6143 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6144 (FRAME_INIT_SAVED_REGS): New macro.
6146 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6148 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6150 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6152 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6154 (fetch_osf_core_registers): Likewise.
6155 (supply_gregset): Likewise.
6157 2002-04-22 J. Brobecker <brobecker@gnat.com>
6159 * symfile.h (get_section_index): Define.
6160 * symfile.c (get_section_index): New function.
6161 * mdebugread.c (SC_IS_SBSS): New macro.
6162 (SC_IS_BSS): Return true for the scBss storage class only, as
6163 the scSBss storage class refers to the .sbss section.
6164 (parse_partial_symbols): Discard the symbols which associated
6165 section does not exist.
6166 Make sure to use the .sbss section index for symbols which
6167 storage class is scBss, rather than using the .bss section index.
6169 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6171 * vax-tdep.c: Update copyright years.
6172 (vax_register_name): New function.
6173 (vax_register_byte): Ditto.
6174 (vax_register_raw_size): Ditto.
6175 (vax_register_virtual_size): Ditto.
6176 (vax_register_virtual_type): Ditto.
6177 * config/vax/tm-vax.h: Update copyright years.
6178 (REGISTER_NAMES): Remove.
6179 (REGISTER_NAME): Define.
6180 (REGISTER_BYTE): Use vax_register_byte.
6181 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6182 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6183 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6185 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6187 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6189 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6191 2002-04-21 David S. Miller <davem@redhat.com>
6193 * arch-utils.c (generic_prologue_frameless_p): Kill
6194 SKIP_PROLOGUE_FRAMELESS_P code.
6195 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6197 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6198 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6199 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6201 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6202 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6203 (sparc_gdbarch_init): Pass it to
6204 set_gdbarch_prologue_frameless_p.
6206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6208 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6209 (alphabsd-nat.o): New dependency list.
6211 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6213 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6215 (alpha-linux-tdep.o): New dependency list.
6216 (alphafbsd-tdep.o): Likewise.
6218 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6220 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6222 * alpha-tdep.c: ...from here.
6223 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6225 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6227 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6228 prototype from here...
6229 * alpha-tdep.h: ...to here.
6231 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6233 * frame.h (selected_frame_level): Document as deprecated.
6234 (frame_relative_level): Declare.
6235 * stack.c (frame_relative_level): New function.
6236 (selected_frame_level): Document as deprecated.
6237 (select_frame): Do not set the selected_frame_level.
6239 * stack.c (frame_info, record_selected_frame): Update.
6240 (frame_command, current_frame_command): Update.
6241 (up_silently_base, up_command, down_silently_base): Update.
6242 (down_command): Update.
6243 * inflow.c (kill_command): Update.
6244 * tracepoint.c (finish_tfind_command): Update.
6245 * corelow.c (core_open): Update.
6246 * thread.c (info_threads_command): Update.
6247 (do_captured_thread_select): Update.
6248 * infcmd.c (finish_command): Update.
6249 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6251 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6253 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6255 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6257 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6260 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6262 * alphafbsd-tdep.c: Update copyright years. Include
6264 (alphafbsd_use_struct_convention): Make static.
6265 (alphafbsd_init_abi): New function.
6266 (_initialize_alphafbsd_tdep): New function.
6267 * config/alpha/tm-fbsd.h: Update copyright years.
6268 (USE_STRUCT_CONVENTION): Remove.
6270 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6272 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6273 an Alpha ABI variant.
6274 (alpha_abi_handler_list): Declare.
6275 (alpha_gdbarch_register_os_abi): New function.
6276 (alpha_gdbarch_init): Give registered ABI variant handlers a
6277 chance to tweak the gdbarch once we have set up defaults.
6278 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6280 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6282 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6283 to standard_coerce_float_to_double.
6284 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6286 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6288 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6289 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6290 from gdbarch_tdep rather than a constant.
6291 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6292 the default text address for all Alpha Unix ABIs.
6293 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6294 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6296 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6298 * alpha-tdep.h: New file. Includes several Alpha target constants
6300 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6301 let gdbarch deal with.
6302 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6303 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6305 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6306 Alpha target register names.
6307 * alphabsd-nat.c: Likewise.
6308 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6309 Alpha target register names. Make serveral routines static.
6310 (alpha_get_saved_register): New function.
6311 (alpha_abi_names): New.
6312 (process_note_abi_tag_sections): New function.
6313 (get_elfosabi): New function.
6314 (alpha_gdbarch_init): New function.
6315 (alpha_dump_tdep): New function.
6316 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6318 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6320 * frame.c (find_saved_register): Delete #ifdef
6321 HAVE_REGISTER_WINDOWS code.
6322 * config/sparc/tm-sparc.h: Update comments.
6323 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6325 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6327 * i960-tdep.c (i960_find_saved_register): New function.
6328 (i960_get_saved_register): New function.
6329 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6330 (i960_get_saved_register): Declare.
6331 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6333 2002-04-20 David S. Miller <davem@redhat.com>
6335 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6337 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6339 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6340 instead of NUM_PSEUDO_REGS.
6342 2002-04-20 David S. Miller <davem@redhat.com>
6344 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6345 GDB_MULTI_ARCH_PARTIAL
6346 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6347 define, let tm-sp64.h do it.
6349 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6351 * frame.c (find_saved_register): Avoid a NULL pointer
6352 dereference and actually walk the frame list.
6354 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6356 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6357 sorted in most most-recent-used order. Document.
6358 * gdbarch.h, gdbarch.c: Regenerate.
6360 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6362 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6363 (add_inferior): Call create_register_cache.
6364 (clear_inferiors): Call free_register_cache.
6365 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6366 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6367 (registers): Remove.
6368 (get_regcache): New function.
6369 (create_register_cache, free_register_cache): New functions.
6370 (set_register_cache): Don't initialize the register cache here.
6371 (registers_to_string, registers_from_string, register_data): Call
6373 * gdbserver/regcache.h: Add prototypes.
6374 * gdbserver/server.h: Likewise.
6376 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6378 * gdbserver/mem-break.c: New file.
6379 * gdbserver/mem-break.h: New file.
6380 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6382 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6384 (clear_inferiors): Free target_data member if set.
6385 (inferior_target_data, set_inferior_target_data): New functions.
6386 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6387 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6388 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6389 (struct inferior_linux_data): New.
6390 (linux_create_inferior): Use set_inferior_target_data.
6391 (linux_attach): Likewise. Call add_inferior.
6392 (linux_wait_for_one_inferior): New function.
6393 (linux_wait): Call it.
6394 (linux_write_memory): Add const.
6395 (initialize_low): Call set_breakpoint_data.
6396 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6398 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6400 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6402 * gdbserver/target.c (read_inferior_memory)
6403 (write_inferior_memory): New functions.
6404 * gdbserver/target.h (read_inferior_memory)
6405 (write_inferior_memory): Change macros to prototypes.
6406 (struct target_ops): Update comments. Add const to write_memory
6409 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6411 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6413 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6414 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6415 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6418 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6421 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6422 (build_builtin_type_vec128): Ditto.
6423 (append_composite_type_field): Fix calculation of type length in
6426 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6428 * config/djgpp/README: Update.
6430 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6433 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6435 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6436 (alpha_setup_arbitrary_frame): ...to this.
6437 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6438 for alpha_setup_arbitrary_frame.
6440 2002-04-18 Andrew Cagney <cagney@redhat.com>
6442 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6443 * gdbarch.h, gdbarch.c: Regenerate.
6445 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6446 * target.h (memory_breakpoint_from_pc): Update declaration.
6447 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6449 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6450 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6451 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6452 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6453 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6454 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6455 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6456 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6457 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6458 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6459 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6460 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6462 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6464 * monitor.c (monitor_insert_breakpoint): Ditto.
6465 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6467 * config/mcore/tm-mcore.h: Update copyright.
6468 * mem-break.c: Ditto.
6469 * xstormy16-tdep.c: Ditto.
6471 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6473 * p-exp.y: Add precedence rule for '^' token.
6474 This removes the shift/reduce conflicts.
6475 Remove the comment concerning these shift/reduce conflicts.
6477 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6479 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6480 (registers_powerpc_nofp): New register set for processors
6481 without floating point unit.
6483 2002-04-18 David S. Miller <davem@redhat.com>
6485 * MAINTAINERS: Add myself to write-after-approval.
6487 2002-04-17 Michael Snyder <msnyder@redhat.com>
6489 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6491 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6493 * rs6000-tdep.c (frame_initial_stack_address): Use
6494 frame_register_read to read the alloca_reg.
6496 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6498 * frame.c (find_saved_register): Find saved registers in the next
6502 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6504 * gdbarch.sh (LANG): Set to ``c''.
6506 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6508 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6510 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6512 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6515 * hpread.c (hpread_get_lntt): Add declaration.
6516 Also fix PR gdb/391.
6518 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6520 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6521 * aclocal.m4, configure: Re-generate.
6524 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6526 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6527 instead of tm_print_insn.
6529 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6531 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6533 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6535 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6536 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6537 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6539 2002-04-12 Don Howard <dhoward@redhat.com>
6541 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6542 max_user_call_depth.
6543 (init_cmd_lists): Initialize the new value;
6544 * cli/cli-script.c (execute_user_command): Limit the call depth of
6545 user defined commands. This avoids a core-dump when user commands
6546 are infinitly recursive.
6548 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6550 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6551 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6552 from tdep struct instead of DEFAULT_LR_SAVE.
6553 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6554 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6555 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6557 2002-04-12 Michael Snyder <msnyder@redhat.com>
6559 * Remote.c: Spelling fix.
6560 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6561 If no symbol found for "sbrk", try "_sbrk".
6562 (make_output_phdrs): Use bfd_section_name.
6563 (gcore_copy_callback): Use bfd_section_name.
6564 * eval.c: Indentation fix-ups.
6565 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6566 in case it gets applied to an address that is already
6567 in the instruction space.
6568 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6569 * symfile.c: Fix indentation, long lines.
6570 * source.c: White space fix-up.
6572 2002-04-12 Andrew Cagney <cagney@redhat.com>
6574 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6575 * frame.c (frame_register_read): New function. Return non-zero on
6577 (read_relative_register_raw_bytes_for_frame): Delete.
6578 (read_relative_register_raw_bytes): Delete.
6579 * frame.h (frame_register_read): Declare.
6580 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6582 * infcmd.c (do_registers_info): Ditto.
6583 * hppa-tdep.c: Ditto.
6584 * rs6000-tdep.c: Ditto.
6585 * h8500-tdep.c: Ditto.
6586 * mips-tdep.c: Ditto.
6587 * h8300-tdep.c: Ditto.
6588 * z8k-tdep.c: Ditto.
6590 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6592 From Jimi X <jimix@watson.ibm.com>:
6593 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6596 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6598 From Jimi X <jimix@watson.ibm.com>:
6599 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6602 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6604 From Jimi X <jimix@watson.ibm.com>:
6605 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6606 register sets for these processor variants.
6608 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6610 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6611 registers which are allowed to fail to store.
6612 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6613 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6614 (ppc_cannot_store_register): FPSCR may not be storable.
6615 * regformats/reg-ppc.dat: Support FPSCR.
6617 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6619 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6620 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6621 Add fpscr as an invalid/unfetchable register.
6622 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6623 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6624 (fill_fpregset): Add support for register fpscr.
6625 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6626 (fill_gregset): Account for the fact that register ``mq'' might
6628 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6629 (registers_power): Add fpscr to register set at slot 71.
6630 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6631 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6633 2002-04-11 Michael Snyder <msnyder@redhat.com>
6635 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6636 * configure: Regenerate.
6637 * config.in: Regenerate.
6638 * acconfig.h: Add define for _SYSCALL32.
6639 * core-sol2.c: Remove #define _SYSCALL32.
6640 * solib-legacy.c: Remove #define _SYSCALL32.
6642 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6644 * stack.c (select_frame): Cleanup internal error message, do not
6647 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6649 * stack.c (select_frame): Check that selected_frame and the
6650 specified level are as expected.
6651 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6653 * frame.h (struct frame_info): Add field `level'. Update
6655 Work-in-progress PR gdb/464.
6657 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6659 * maint.c (maint_print_section_info): Rename print_section_info.
6660 (print_bfd_section_info, print_objfile_section_info): Update.
6661 * inferior.h (struct gdbarch): Add opaque declaration.
6662 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6663 * gdbarch.h: Regenerate.
6665 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6667 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6668 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6669 (kernel_u_size): Added.
6670 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6671 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6673 2002-04-04 Jim Ingham <jingham@apple.com>
6675 * valarith.c (find_size_for_pointer_math): New function, either returns
6676 the size for a pointer's target, returns 1 for void *, or errors for
6678 (value_add, value_sub): use find_size_for_pointer_math.
6680 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6682 * linux-low.c (linux_look_up_symbols): New hook.
6683 (linux_target_ops): Add linux_look_up_symbols.
6684 * remote-utils.c (decode_address): New function.
6685 (look_up_one_symbol): New function.
6686 * server.c (handle_query): Call target look_up_symbols hook.
6687 * server.h (look_up_one_symbol): Add prototype.
6688 * target.h (struct target_ops): Add look_up_symbols hook.
6690 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6692 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6693 * ChangeLog: Correct paths in last ChangeLog entry.
6695 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6697 * gdbserver/linux-low.h: Remove obsolete prototypes.
6698 (struct linux_target_ops): New.
6699 (extern the_low_target): New.
6700 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6701 (register_addr): Use the_low_target explicitly.
6702 (fetch_register): Likewise.
6703 (usr_fetch_inferior_registers): Likewise.
6704 (usr_store_inferior_registers): Likewise.
6705 * gdbserver/linux-arm-low.c (num_regs): Remove.
6706 (arm_num_regs): Define.
6707 (arm_regmap): Renamed from regmap, made static.
6708 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6710 (arm_cannot_store_register): Renamed from cannot_store_register,
6712 (the_low_target): New.
6713 * gdbserver/linux-i386-low.c (num_regs): Remove.
6714 (i386_num_regs): Define.
6715 (i386_regmap): Renamed from regmap, made static.
6716 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6718 (i386_cannot_store_register): Renamed from cannot_store_register,
6720 (the_low_target): New.
6721 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6722 (ia64_num_regs): Define.
6723 (ia64_regmap): Renamed from regmap, made static.
6724 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6726 (ia64_cannot_store_register): Renamed from cannot_store_register,
6728 (the_low_target): New.
6729 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6730 (m68k_num_regs): Define.
6731 (m68k_regmap): Renamed from regmap, made static.
6732 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6734 (m68k_cannot_store_register): Renamed from cannot_store_register,
6736 (the_low_target): New.
6737 * gdbserver/linux-mips-low.c (num_regs): Remove.
6738 (mips_num_regs): Define.
6739 (mips_regmap): Renamed from regmap, made static.
6740 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6742 (mips_cannot_store_register): Renamed from cannot_store_register,
6744 (the_low_target): New.
6745 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6746 (ppc_num_regs): Define.
6747 (ppc_regmap): Renamed from regmap, made static.
6748 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6750 (ppc_cannot_store_register): Renamed from cannot_store_register,
6752 (the_low_target): New.
6753 * gdbserver/linux-s390-low.c (num_regs): Remove.
6754 (s390_num_regs): Define.
6755 (s390_regmap): Renamed from regmap, made static.
6756 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6758 (s390_cannot_store_register): Renamed from cannot_store_register,
6760 (the_low_target): New.
6761 * gdbserver/linux-sh-low.c (num_regs): Remove.
6762 (sh_num_regs): Define.
6763 (sh_regmap): Renamed from regmap, made static.
6764 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6766 (sh_cannot_store_register): Renamed from cannot_store_register,
6768 (the_low_target): New.
6769 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6770 (the_low_target): New.
6772 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6774 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6775 override FP_REGNUM with frame->fp. Update copyright.
6776 * parse.c (num_std_regs, std_regs): Delete.
6777 (target_map_name_to_register): Do not search std_regs. Update
6778 function description.
6779 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6780 declarations. Update copyright.
6783 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6785 * gdbserver/Makefile.in: Add stamp-h target.
6786 * gdbserver/configure.in: Create stamp-h.
6787 * gdbserver/configure: Regenerated.
6789 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6791 * gdbserver/inferiors.c: New file.
6792 * gdbserver/target.c: New file.
6793 * gdbserver/target.h: New file.
6794 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6796 * gdbserver/linux-low.c (inferior_pid): New static variable,
6797 moved from server.c.
6798 (linux_create_inferior): Renamed from create_inferior.
6799 Call add_inferior. Return 0 on success instead of a PID.
6800 (linux_attach): Renamed from myattach.
6801 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6802 (linux_thread_alive): Renamed from mythread_alive.
6803 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6805 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6806 (regsets_store_inferior_registers): Correct error message.
6807 Add missing ``return 0''.
6808 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6809 (linux_store_registers): Renamed from store_inferior_registers.
6810 (linux_read_memory): Renamed from read_inferior_memory.
6811 (linux_write_memory): Renamed from write_inferior_memory.
6812 (linux_target_ops): New structure.
6813 (initialize_low): Call set_target_ops ().
6814 * gdbserver/remote-utils.c (unhexify): New function.
6815 (hexify): New function.
6816 (input_interrupt): Send signals to ``signal_pid''.
6817 * gdbserver/server.c (inferior_pid): Remove.
6818 (start_inferior): Update create_inferior call.
6819 (attach_inferior): Call add_inferior.
6820 (handle_query): New function.
6821 (main): Call handle_query for `q' packets.
6822 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6823 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6825 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6827 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6829 * gdbserver/configure.in: Check for <string.h>
6830 * gdbserver/configure: Regenerate.
6831 * gdbserver/config.in: Regenerate.
6832 * gdbserver/gdbreplay.c: Include needed system headers.
6833 (remote_open): Remove strchr prototype.
6834 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6835 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6836 (supply_register_by_name): Likewise.
6837 (collect_register): Change buf argument to void *.
6838 (collect_register_by_name): Likewise.
6839 * gdbserver/regcache.h: Add missing prototypes.
6840 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6841 * gdbserver/server.c (handle_query): New function.
6842 (attached): New static variable, moved out of main.
6843 (main): Quiet longjmp clobber warnings.
6844 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6845 * gdbserver/utils.c (error): Remove NORETURN.
6848 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6850 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6851 after the last symbol in a block.
6853 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6855 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6856 is non zero as a found symbol.
6858 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6860 * findvar.c: Include "builtin-regs.h".
6861 (value_of_register): Call value_of_builtin_reg when applicable.
6862 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6863 (target_map_name_to_register): Call
6864 builtin_reg_map_name_to_regnum.
6865 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6866 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6867 (builtin_regs_h): Define.
6868 (builtin-regs.o): New target.
6869 (findvar.o): Add $(builtin_regs_h).
6870 * builtin-regs.c, builtin-regs.h: New files.
6871 * std-regs.c: New file.
6872 Partial fix for PR gdb/251.
6874 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6876 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6877 it's no longer required.
6879 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6881 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6883 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6885 From Jimi X <jimix@watson.ibm.com>:
6886 * rs6000-tdep.c (rs6000_software_single_step): Use
6887 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6888 and size. Use target_insert_breakpoint() and
6889 target_remove_breakpoint() to insert and remove breakpoints
6890 instead of explicit memory reads and writes.
6892 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6894 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6895 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6896 ELF_OBJECT_FORMAT ifdef.
6898 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6900 From Jimi X <jimix@watson.ibm.com>:
6901 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6903 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6905 From Jimi X <jimix@watson.ibm.com>:
6906 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6907 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6909 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6911 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6912 s/asprintf/xasprintf/.
6913 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6915 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6917 I believe Jeff Law denies responsability for this one:
6918 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6919 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6920 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6921 Work-around for PR gdb/366.
6923 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6925 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6926 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6927 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6929 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6931 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6932 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6935 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6937 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6940 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6942 * README (Reporting Bugs in GDB): Document the bug web page as the
6943 prefered way of submitting bugs.
6946 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6948 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6950 * gdbarch.h, gdbarch.c: Re-generate.
6952 2002-04-07 Andreas Schwab <schwab@suse.de>
6954 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6955 buffer to regcache_collect.
6957 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6959 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6960 * gdbarch.c, gdbarch.h: Re-generate.
6962 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6964 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6965 declaration. Fix -Werror.
6967 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6969 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6970 * gdbarch.c: Regenerate.
6972 2002-04-05 Michael Snyder <msnyder@redhat.com>
6974 * breakpoint.c (clear_command): Rewrite middle section to
6975 combine two loops with identical control conditions.
6976 Add a cleanup to eliminate a memory leak.
6977 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6979 2002-04-05 H.J. Lu (hjl@gnu.org)
6981 * solib-svr4.c (bkpt_names): Add "__start".
6983 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6985 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6986 as test for 64 bit target.
6988 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6990 * h8500-tdep.c (h8500_write_fp): Delete function.
6991 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6992 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6993 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6995 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6996 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6998 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6999 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7000 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7001 (d10v_write_fp): Delete function.
7002 * inferior.h (write_fp, generic_target_write_fp): Delete
7004 * regcache.c (generic_target_write_fp): Delete function.
7005 (write_fp): Delete function.
7006 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7007 * gdbarch.h, gdbarch.c: Regenerate.
7008 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7009 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7010 (sparc64_write_fp): Delete declaration.
7011 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7012 (h8500_write_fp): Delete declaration.
7014 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7016 * sparc-tdep.c (sparc64_write_fp): Delete.
7017 (sparc_push_dummy_frame): Replace write_fp call with code to store
7019 (sparc_gdbarch_init): Do not initialize write_fp.
7021 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7023 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7026 2002-03-29 Jim Blandy <jimb@redhat.com>
7028 * stack.c (get_selected_block): Add new argument `addr_in_block',
7029 used to return the exact code address we used to select the block,
7031 * blockframe.c (get_frame_block, get_current_block): Same.
7032 * frame.h (get_frame_block, get_current_block,
7033 get_selected_block): Update declarations.
7034 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7035 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7037 2002-04-05 Michael Snyder <msnyder@redhat.com>
7039 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7042 2002-04-05 J. Brobecker <brobecker@gnat.com>
7044 * utils.c (xfullpath): New function.
7045 * defs.h (xfullpath): Add declaration.
7046 * source.c (openp): Use xfullpath in place of gdb_realpath to
7047 avoid resolving the basename part of filenames when the
7048 associated file is a symbolic link. This fixes a potential
7049 inconsistency between the filenames known to GDB and the
7050 filenames it prints in the annotations.
7051 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7052 to be able to match a filename with either the real filename, or
7053 the name of any symbolic link to this file.
7054 (lookup_partial_symtab): Ditto.
7056 2002-04-04 Michael Snyder <msnyder@redhat.com>
7058 * breakpoint.c: Add support for hardware breakpoints in overlays.
7059 (overlay_events_enabled): New state variable.
7060 (insert_breakpoints): Use overlay_events_enabled to decide
7061 whether to attempt to set a breakpoint at the overlay load addr.
7062 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7063 (remove_breakpoint): Use overlay_events_enabled to decide
7064 whether breakpoints need to be removed from overlay load addr.
7065 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7066 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7067 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7068 disable_overlay_breakpoints): Update overlay_events_enabled.
7070 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7072 * dwarf2read.c (struct function_range): New.
7073 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7074 (check_cu_functions): New.
7075 (read_file_scope): Initialize global function lists.
7076 Call dwarf_decode_line after processing children.
7077 (read_func_scope): Add to global function list.
7078 (dwarf_decode_lines): Call check_cu_functions everywhere
7079 record_line is called. Call record_line with a linenumber
7080 of 0 to mark sequence ends.
7082 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7084 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7085 change sync with glibc.
7087 2002-04-03 Jim Blandy <jimb@redhat.com>
7089 * configure.in: Call AC_C_INLINE.
7090 * configure: Regenerated.
7092 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7094 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7095 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7097 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7099 * NEWS: Mention gcore support on FreeBSD/i386.
7101 * fbsd-proc.c: New file.
7102 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7103 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7105 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7108 2002-03-29 Jim Blandy <jimb@redhat.com>
7110 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7111 unescaped newlines in string literals, but newer ones don't. So
7114 2002-03-26 Michael Snyder <msnyder@redhat.com>
7115 Andrew Cagney <cagney@redhat.com>
7117 * cli/cli-dump.c: New file. Dump memory to file,
7118 restore file to memory.
7119 * cli/cli-dump.h: New file.
7120 * Makefile.in: Add rules, dependencies for cli-dump.o.
7121 * NEWS: Mention new commands.
7123 2002-03-28 Michael Snyder <msnyder@redhat.com>
7125 * symfile.c (symbol_file_add): Move test for null symbols to later.
7127 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7129 From veksler at il.ibm.com:
7130 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7131 the xstrduped original path.
7134 2002-03-27 Michael Snyder <msnyder@redhat.com>
7136 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7137 * infcmd.c (_initialize_infcmd): Ditto.
7138 * language.c (_initialize_language): Ditto.
7139 * symfile.c (_initialize_symfile): Ditto.
7140 * top.c (_init_main): Ditto.
7141 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7143 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7145 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7146 vector registers handling.
7147 (skip_prologue): Handle new AltiVec instructions. Fill in new
7148 fields of frame data.
7149 (frame_get_saved_regs): Fill in information for AltiVec registers.
7151 2002-03-27 Jim Blandy <jimb@redhat.com>
7153 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7154 a function; leave this macro here to invoke that function.
7155 (symbol_init_mangled_name): Declaration for that function.
7156 * symtab.c (symbol_init_mangled_name): New function.
7158 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7160 * valarith.c: Replace strerror with safe_strerror.
7161 * tracepoint.c: Ditto.
7163 * go32-nat.c: Ditto.
7167 2002-03-27 Andreas Schwab <schwab@suse.de>
7169 * event-top.c (command_line_handler): Remove useless if.
7171 2002-03-27 Andreas Jaeger <aj@suse.de>
7173 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7176 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7178 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7179 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7180 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7181 (x86_64_linux_dr_get_status, supply_gregset),
7182 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7183 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7184 (x86_64_register_info_table): Add.
7185 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7186 (x86_64_register_raw_size, x86_64_register_virtual_type),
7187 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7188 general x86_64_register_info_table.
7189 (i386_gdbarch_init): gdbarch_register_bytes is now set
7190 dynamicaly during initialization.
7191 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7192 * gdbserver/linux-x86-64-low.c: Ditto.
7194 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7196 * gdbserver/server.c (main): Call target_signal_to_host_p
7197 and target_signal_to_host on signals received from the remote.
7198 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7199 target_signal_from_host on signals sent to the remote.
7200 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7201 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7203 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7205 * signals/signals.c: Include "server.h" in gdbserver build.
7206 (target_signal_from_name): Don't use STREQ.
7207 (_initialize_signals): Likewise. Don't include function in
7210 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7212 * signals.c: Moved to...
7213 * signals/signals.c: Here.
7214 * Makefile (signals.o): Update.
7216 2002-03-26 Jeff Law (law@redhat.com)
7218 * somread.c (som_symtab_read): Remove some commented out code and
7219 updated related comments. Do not set the minimal symbol table to
7220 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7221 in a dynamic executable.
7222 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7223 where we are unable to find the minimal symbol for the given
7226 2002-03-25 Jeff Law (law@redhat.com)
7228 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7230 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7232 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7234 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7236 * command.h: Update copyright.
7237 (struct cmd_list_element): Replace definition with opaque
7239 (enum cmd_types): Document that it will eventually be moved to
7241 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7242 (MALLOCED_REPLACEMENT): Delete macro.
7243 * Makefile.in (cli_decode_h): Add $(command_h).
7244 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7245 * top.c: Include "cli/cli-decode.h".
7246 * completer.c: Include "cli/cli-decode.h".
7247 * maint.c: Include "cli/cli-decode.h".
7248 * cli/cli-decode.h: Include "command.h".
7249 (enum command_class): Delete.
7250 (enum cmd_types): Comment out.
7251 (enum cmd_auto_boolean): Delete.
7252 (enum var_types): Delete.
7254 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7256 * cli/cli-decode.c: Include "gdb_assert.h".
7257 (add_set_or_show_cmd): New static function.
7258 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7259 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7260 all fields, such as func, from the set command.
7262 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7264 * MAINTAINERS (sh-elf): Change warning flag to -w.
7266 2002-03-23 Andrew Cagney <cagney@redhat.com>
7268 * defs.h (error): Add printf format attribute.
7269 * thread-db.c (thread_from_lwp): Fix error format string.
7270 * stack.c (parse_frame_specification): Ditto.
7271 * cli/cli-decode.c (undef_cmd_error): Ditto.
7272 * scm-lang.c (scm_lookup_name): Ditto.
7273 * tracepoint.c (trace_error): Ditto.
7274 * remote-utils.c (usage): Ditto.
7275 * remote.c (compare_sections_command): Ditto.
7278 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7280 * gdbtypes.c (append_composite_type_field): New function.
7281 (init_composite_type): New function.
7282 * gdbtypes.h (append_composite_type_field): Declare.
7283 (init_composite_type): Ditto.
7285 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7287 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7289 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7290 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7291 structure returning convention for SYSV ABI case, but not
7292 for GNU/Linux, FreeBSD, or NetBSD.
7294 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7296 * symtab.h (lookup_block_symbol): Add mangled_name argument
7299 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7300 with new mangled_name argument.
7301 * linespec.c (decode_line_1): Likewise.
7302 * valops (value_of_this): Likewise.
7303 * symtab.c (lookup_transparent_type): Likewise.
7304 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7305 (lookup_symbol): If we are given a mangled name, pass it down
7306 to lookup_symbol_aux.
7307 (lookup_block_symbol): If we are given a mangled name to check
7308 against, only return symbols which match it.
7310 2002-03-22 Christopher Faylor <cgf@redhat.com>
7312 * win32-nat.c (child_create_inferior): Check for proper shell to use
7313 here, in case the user changes it on the fly.
7314 (_initialize_inftarg): Remove shell path considerations.
7316 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7318 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7319 for gdbarch_max_register_raw_size and max_register_virtual_size.
7320 Adjust copyright year.
7322 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7324 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7325 in a function to cover the entire beginning of the function
7326 as well if it does not already.
7328 2002-03-21 Tom Rix <trix@redhat.com>
7330 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7331 (rs6000_ptrace64): Renamed from ptrace64.
7333 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7335 * gdbserver/remote-utils.c (remote_open): Don't call
7336 getprotobyname, we're all using TCP here so just use
7338 * gdbserver/gdbreplay.c (remote_open): Ditto.
7340 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7342 * regcache.c (_initialize_regcache): No need to call
7343 build_regcache() at this time; it gets called whenever
7344 the gdbarch changes.
7346 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7348 * sparc-nat.c: Include sys/param.h where possible.
7350 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7353 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7354 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7355 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7357 * stabsread.c (rs6000_builtin_type): Likewise.
7358 (read_sun_floating_type): Likewise.
7360 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7362 * stabsread.c (read_member_functions): Remove skip code for duplicate
7363 constructor/destructor methods. Use standard parsing for these
7364 methods and just do not chain them to the list of methods after
7367 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7369 * coffread.c: Remove redundant static declarations. Replace
7370 occurrences of `PTR' with `void *'.
7371 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7372 * top.h (quit_cover): Likewise.
7373 * defs.h (catch_errors): Likewise.
7375 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7377 * defs.h (XMALLOC): Define.
7378 * gdb-events.sh (XMALLOC): Delete macro.
7379 * gdb-events.c, gdb-events.h: Regenerate.
7380 * gdbarch.sh (XMALLOC): Delete macro.
7381 * gdbarch.c: Regenerate.
7382 * serial.c (XMALLOC): Delete macro.
7383 * ui-file.c (XMALLOC): Ditto.
7384 * ser-unix.h (XMALLOC): Ditto.
7385 * sh-tdep.c (XMALLOC): Ditto.
7386 * ui-out.c (XMALLOC): Ditto.
7387 * utils.c (XMALLOC): Ditto.
7388 * i386-tdep.c (XMALLOC): Ditto.
7389 * gdb-events.c (XMALLOC): Ditto.
7390 * d10v-tdep.c (XMALLOC): Ditto.
7391 * cli-out.c (XMALLOC): Ditto.
7393 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7394 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7395 * ui-file.c, ui-out.c: Ditto.
7397 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7399 * command.h (struct cmd_list_element): Add field context.
7400 (set_cmd_context, get_cmd_context): Declare.
7401 * cli/cli-decode.h: Ditto.
7402 * cli/cli-decode.c (get_cmd_context): New function.
7403 (set_cmd_context): New function.
7404 (add_cmd): Initialize context.
7405 Part of fixing PR gdb/145 and PR gdb/146.
7407 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7409 * cli/cli-decode.c (cmd_type): New function.
7410 * command.h (cmd_type): Declare.
7411 * infrun.c (set_schedlock_func): Call function cmd_type.
7412 * kod.c (kod_set_os): Call cmd_type.
7413 * cris-tdep.c (cris_version_update): Use function cmd_type.
7414 (cris_mode_update, cris_abi_update): Ditto.
7416 * command.h: (execute_cmd_post_hook): Declare.
7417 (execute_cmd_pre_hook): Declare.
7418 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7419 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7420 functions. Execute pre/post hook while ensuring that afterwords
7422 * top.c (execute_command): Use execute_cmd_post_hook, and
7423 execute_cmd_pre_hook to execute pre/post commands.
7424 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7426 (hook_stop_stub): Call execute_cmd_pre_hook.
7428 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7430 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7431 set'' and this leads to a core dump. Move xstrdup of
7432 operating_system to after check that it is not NULL.
7434 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7436 * kod.c (kod_set_os): Remove unnecessary check that
7437 ``command->type'' is set_cmd.
7439 * valprint.c (set_input_radix): Use input_radix.
7440 (set_output_radix): Use output_radix.
7441 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7444 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7446 * value.h (struct value): Delete field ``substring_addr''. Change
7447 aligner fields to force_doublest_align, force_longest_align,
7448 force_core_addr_align and force_pointer_aligh.
7450 * value.h (struct value): Fix typo in above change.
7452 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7454 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7455 to fix internal_error from ``maintenance print architecture''.
7457 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7459 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7460 for gcc versions after gcc-2.8.1.
7462 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7464 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7465 for method resolution. Restore adjustment of ``this'' pointer after
7466 calling value_struct_elt, which was accidentally removed during the
7469 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7471 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7473 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7475 * value.h (value_of_register): Update.
7477 2002-03-14 Richard Henderson <rth@redhat.com>
7479 * configure.in: Detect declaration for canonicalize_file_name.
7480 * utils.c (canonicalize_file_name): Declare, if needed.
7481 (gdb_realpath): Prefer realpath if available and usable.
7482 * config.in, configure: Rebuild.
7484 2002-03-14 Richard Henderson <rth@redhat.com>
7486 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7487 a constant array bound.
7489 * MAINTAINERS: Add myself to write-after-approval.
7491 2002-03-14 Michael Snyder <msnyder@redhat.com>
7493 * symfile.c (syms_from_objfile): Return immediately if no syms.
7494 (symbol_file_add): Return immediately if no syms.
7495 (find_sym_fns): Return immediately if no syms.
7497 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7499 * gdbserver/remote-util.c (remote_open): Print remote-side's
7500 IP address when remote debugging over the network.
7502 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7504 * config/sparc/fbsd.mh: Fix copyright.
7505 * config/sparc/fbsd.mt: Likewise.
7507 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7509 * MAINTAINERS: Fix typo in name of gdb warnings option.
7510 (x86-64): Fix formating so that this can be parsed by awk.
7512 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7514 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7515 * defs.h: Include "gdb/signals.h".
7516 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7518 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7520 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7521 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7524 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7525 Don Howard <dhoward@redhat.com>
7527 * mips-tdep.c (ST0_FR): Define.
7528 (mips2_fp_compat): New function, temporarily disabled.
7529 (mips_read_fp_register_single): New function.
7530 (mips_read_fp_register_double): New function.
7531 (mips_print_register): Use them.
7532 (do_fp_register_row): Likewise.
7534 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7536 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7539 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7541 * stabsread.c (read_member_functions): Fix is_stub test for
7542 static member functions, improve comment.
7544 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7546 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7547 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7548 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7549 commands that set boolean values.
7550 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7551 (arm_rdi_resume): Always initialize PC.
7552 (arm_rdi_open): Don't use rslt as a boolean.
7553 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7554 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7555 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7556 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7558 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7560 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7561 * configure: Rebuilt.
7563 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7565 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7566 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7568 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7570 * cli/cli-decode.c (set_cmd_completer): New function.
7571 * command.h (set_cmd_completer): Declare.
7572 * cli/cli-decode.h (set_cmd_completer): Ditto.
7574 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7575 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7576 * win32-nat.c (_initialize_inftarg): Ditto.
7577 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7578 * proc-api.c (_initialize_proc_api): Ditto.
7579 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7580 * source.c (_initialize_source): Ditto.
7581 * exec.c (_initialize_exec): Ditto.
7582 * solib.c (_initialize_solib): Ditto.
7583 * top.c (init_main): Ditto.
7584 * tracepoint.c (_initialize_tracepoint): Ditto.
7585 * symfile.c (_initialize_symfile): Ditto.
7586 * printcmd.c (_initialize_printcmd): Ditto.
7587 * infcmd.c (_initialize_infcmd): Ditto.
7588 * corefile.c (_initialize_core): Ditto.
7590 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7592 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7594 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7596 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7598 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7600 * NEWS: Update headings, 5.2 has branched.
7602 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7604 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7605 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7606 (register_addr, REGISTER_RAW_SIZE): Likewise.
7607 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7608 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7610 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7612 * MAINTAINERS (x86-64): Add myself.
7613 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7614 changed value_ptr -> struct value *
7616 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7618 * configure.host (sparc64-*-freebsd): Add.
7619 * configure.tgt: Likewise.
7620 * config/sparc/fbsd.mh: New file.
7621 * config/sparc/fbsd.mt: Likewise.
7622 * config/sparc/nm-fbsd.h: Likewise.
7623 * config/sparc/tm-fbsd.h: Likewise.
7625 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7627 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7628 regformats/reg-s390x.dat.
7630 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7632 * utils.c: Add FIXME explaining true/false problem.
7634 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7636 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7638 2002-02-28 Michael Chastain <mec@shout.net>
7640 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7642 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7644 * gdbserver/linux-s390-low.c: New file.
7645 * regformats/reg-s390.dat: New file.
7646 * regformats/reg-s390x.dat: New file.
7647 * gdbserver/configure.srv: Add S/390.
7648 * gdbserver/Makefile.in: Add S/390.
7649 * configure.tgt: Enable gdbserver for S/390.
7651 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7653 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7654 first line of the doc string for "info dos", except at the end of
7655 the sentence, since the short help stops at the first period.
7657 2002-02-28 Jason Merrill <jason@redhat.com>
7659 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7661 2002-02-27 Fred Fish <fnf@redhat.com>
7663 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7664 comment (dumy -> dummy).
7666 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7668 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7670 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7672 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7674 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7676 * gdbserver/acconfig.h: New file.
7677 * gdbserver/i387-fp.c: New file.
7678 * gdbserver/i387-fp.h: New file.
7679 * gdbserver/linux-x86-64.c: New file.
7680 * regformats/reg-x86-64.dat: New file.
7681 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7682 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7683 * gdbserver/configure.in: Add support for regsets.
7684 * gdbserver/config.in: Regenerate.
7685 * gdbserver/configure: Regenerate.
7686 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7687 * gdbserver/linux-low.h: New file.
7688 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7690 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7691 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7692 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7693 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7694 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7695 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7696 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7697 "i387-fp.h". Add PTRACE_GETREGS and friends.
7698 * gdbserver/regcache.c (supply_register): New function.
7699 (supply_register_by_name): New function.
7700 (collect_register): New function.
7701 (collect_register_by_name): New function.
7703 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7705 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7706 (config.status): Add configure.srv dependency.
7707 (server_h): Add config.h dependency.
7709 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7711 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7712 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7713 * gdbserver/configure.srv: Change i386-*-linux* to use
7716 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7718 * x86-64-tdep.c: Re-indent. Update copyright date.
7720 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7722 From Michal Ludvig <mludvig@suse.cz>:
7723 * x86-64-tdep.c (value.h): Delete.
7724 (gdb_assert.h): Include.
7725 (x86_64_register_convert_to_virtual,
7726 x86_64_register_convert_to_raw ): Add check which lets only
7727 floating-point values to be converted.
7728 (value_push): Delete.
7729 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7730 (i386_gdbarch_init): Number of register_bytes fixed.
7732 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7734 * MAINTAINERS: Add x86-64 target.
7736 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7738 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7739 * osfsolib.c (solib_map_sections): Ditto.
7740 * irix5-nat.c (solib_map_sections): Ditto.
7741 * corelow.c (gdb_check_format): Ditto.
7742 * symfile.c (symfile_bfd_open): Ditto.
7743 * solib.c (solib_map_sections): Ditto.
7746 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7748 * remote.c (_initialize_remote): By default, disable ``e'' and
7749 ``E'' step out-of-range packets.
7751 2002-02-26 Andreas Schwab <schwab@suse.de>
7753 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7754 m68k_linux_frame_saved_pc.
7755 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7757 (SIGCONTEXT_PC_OFFSET): Remove.
7758 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7759 m68k_linux_sigtramp_saved_pc): New functions.
7760 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7761 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7762 (UCONTEXT_PC_OFFSET): Define.
7763 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7764 non-RT and RT signal trampolines.
7766 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7768 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7769 (TARGET_NBPG, STACK_END_ADDR): Delete
7770 (VARIABLES_INSIDE_BLOCK): Delete.
7772 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7774 * utils.c (perror_with_name): Make string parameter constant.
7775 (print_sys_errmsg): Ditto.
7777 * defs.h (perror_with_name): Update.
7778 (print_sys_errmsg): Update.
7781 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7783 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7784 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7786 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7788 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7789 if it already matches the current architecture from the exec file.
7790 Include arch-utils.h for gdbarch_info_init prototype.
7791 * Makefile.in (rs6000-nat.o): Update dependencies.
7793 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7795 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7796 list of exported variables.
7798 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7800 * gdbserver/configure.srv: New file.
7801 * gdbserver/configure.in: Use configure.srv instead
7802 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7804 * gdbserver/configure: Regenerated.
7805 * gdbserver/terminal.h: New file.
7806 * gdbserver/Makefile.in: Update for configure changes. Remove
7807 more unneeded include paths.
7809 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7811 From wiz at danbala:
7812 * config/sparc/tm-sp64.h: Fix grammar and typos.
7815 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7817 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7818 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7819 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7820 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7821 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7822 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7823 * s390-tdep.c: Ditto.
7824 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7825 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7826 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7827 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7828 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7829 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7830 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7831 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7832 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7833 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7836 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7838 * lin-thread.c: Delete file.
7839 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7840 to gdb_proc_service.h.
7841 * configure: Re-generate.
7843 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7844 * serial.c (serial_open): Delete check for "ocd".
7847 * Makefile.in (linux-thread.o): Delete target.
7848 * linux-thread.c: Delete file.
7850 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7851 renamed SH files to be consistent.
7853 * symtab.c (sort_search_symbols): Use xfree.
7855 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7857 * arm-linux-tdep.c (arm_linux_init_abi): Register
7858 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7859 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7860 definition with undef, since we don't want the sysvr4 definition.
7861 (SKIP_TRAMPOLINE_CODE): Likewise.
7863 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7865 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7867 * configure.in: (AC_CHECK_FUNCS) Added test for
7868 canonicalize_file_name Regenerated.
7869 * config.in, configure: Regenerated.
7870 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7871 defined use canonicalize_file_name.
7873 2002-02-23 Michael Chastain <mec@shout.net>
7875 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7877 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7879 * README: Remove references to cygnus.com.
7880 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7881 dot com'' form. Remove references to cygnus.com and sourceware.
7883 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7885 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7886 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7887 1003.1-2001 no longer allows "head -1".
7888 * gdb/Makefile.in (version.c): Likewise.
7889 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7890 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7891 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7893 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7895 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7896 * command.h (cmd_cfunc_eq): Declare.
7897 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7899 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7900 ``struct cmd_list_element *''.
7901 * cli/cli-cmds.c (is_complete_command): Update. Use
7903 * top.c (execute_command): Pass the command to
7904 is_complete_command.
7905 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7907 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7909 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7910 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7911 architecture defines.
7912 * s390-tdep.c (s390_gdbarch_init): Likewise.
7914 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7916 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7917 (arm_linux_push_arguments): Likewise.
7918 (arm_linux_init_abi): Register them. Also register linux-specific
7920 (find_minsym_and_objfile): Use strcmp, not STREQ.
7921 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7922 (arm_linux_call_dummy_words): Delete declaration.
7923 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7924 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7926 (LOWEST_PC): Delete.
7928 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7930 * maint.c (print_section_info): Do not prepend `0x' to filepos
7931 output, it will be handled by local_hex_string_custom.
7933 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7935 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7936 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7937 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7939 2002-02-22 Jim Blandy <jimb@redhat.com>
7941 Indicate that the bcache functions don't change the strings
7943 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7944 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7946 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7948 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7950 2002-02-21 Christopher Faylor <cgf@redhat.com>
7952 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7953 find the complete path to a loaded DLL.
7955 2002-02-21 Fred Fish <fnf@redhat.com>
7957 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7958 that marks the end of the range of a function, enter a line number
7959 entry that has a line number of zero and a PC offset that matches
7960 the end of the function. This starts a range of PC's for which no
7961 line number information is known.
7962 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7963 PC's for which no line number info is found (line number is zero)
7964 then we didn't find any valid line information.
7965 * symtab.h: Document use of zero line number entry.
7967 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7969 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7970 (have_ptrace_getvrregs): Define for run time checks.
7971 (gdb_vrregset_t): New type for Altivec register handling.
7972 (fetch_register, store_register): Fetch/store altivec register
7974 (fetch_altivec_register, store_altivec_register): New functions.
7975 (supply_vrregset, fill_vrregset): New functions.
7976 (fetch_altivec_registers, store_altivec_registers): New functions.
7977 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7980 2002-02-21 Jiri Smid <smid@suse.cz>
7982 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7984 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7986 * Makefile.in (armnbsd-nat.o): Update dependencies.
7987 * armnbsd-nat.c (supply_gregset): New function. Common code to
7988 supply the integer register set.
7989 (supply_fparegset): New function. Similar for FPA registers.
7990 (fetch_regs, fetch_fp_regs): Use them.
7991 (fetch_core_registers): Likewise.
7992 (fetch_elfcore_registers): New function.
7993 (arm_netbsd_elfcore_fns): New core-file type specification.
7994 (_initialize_arm_netbsd_nat): Register it.
7996 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7998 * armnbsd-nat.c: Include gdbcore.h.
7999 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8000 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8001 'void' to declaration, to shut up ARI.
8002 (fetch_core_registers): Make static. Rewrite using supply_register.
8003 (arm_netbsd_core_fns): New core-file type specification.
8004 (_initialize_arm_netbsd_nat): New function.
8006 2002-02-21 Christopher Faylor <cgf@redhat.com>
8008 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8011 2002-02-20 Christopher Faylor <cgf@redhat.com>
8013 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8016 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8018 * jv-exp.y (parse_number): Change type of implicit longs
8019 to builtin_type_uint64.
8021 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8023 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8024 to be an integer instead of a `union wait'.
8026 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8028 * mips-linux-nat.c: Call the operating system GNU/Linux.
8029 * mips-linux-tdep.c: Likewise.
8030 * mips-tdep.c: Likewise.
8032 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8035 * jv-exp.y (parse_number): Handle 64-bit integers.
8037 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8039 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8040 AC_STDC_HEADERS to AC_HEADER_STDC.
8041 * gdbserver/configure: Regenerated.
8043 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8045 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8047 * sparc-tdep.c (get_longjmp_target): Likewise.
8049 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8051 * News: Add news about ARM and Multi-arch. Mention the new target
8054 2002-02-19 Jim Blandy <jimb@redhat.com>
8056 * stabsread.c (error_type_complaint): Improve error message.
8058 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8060 * gdbserver/README: Update documentation.
8061 * gdbserver/configure.in: Update configury to match documentation.
8062 * gdbserver/Makefile.in: Likewise.
8063 * gdbserver/configure: Regenerated.
8064 * gdbserver/aclocal.m4: New file, generated by aclocal.
8065 * gdbserver/config.in: New file, generated by autoheader.
8067 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8069 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8072 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8074 * arm-tdep.h (enum arm_float_model): New enum.
8075 (struct gdbarch_tdep): Add fp_model.
8076 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8077 up floating-point conversions until we know the floating-point model
8078 in use by the inferior. Don't complain about being unable to
8079 determine the ABI of the inferior when we don't have one.
8080 (arm_extract_return_value): Support different floating-point models.
8081 (arm_store_return_value): Likewise.
8082 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8084 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8086 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8088 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8089 of ``current_gdbarch''.
8091 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8093 * armnbsd-nat.c : ANSIfy all function declarations.
8094 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8095 (fetch_inferior_registers): Re-implement in terms of above.
8096 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8097 (store_inferior_registers): Re-implement in terms of above.
8099 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8101 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8103 * arm-linux-tdep.c: Likewise.
8104 * config/arm/tm-linux.h: Likewise.
8106 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8108 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8109 * config/arm/nbsd.mt (TM_FILE): Delete.
8110 * config/arm/tm-nbsd.h: Delete.
8112 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8114 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8115 Initialize CALL_DUMMY_LENGTH.
8117 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8119 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8121 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8122 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8123 defines one thing and that is incorrect for this port.
8124 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8126 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8128 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8130 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8132 * win32-nat.c (display_selector): New function. Displays information
8133 about the information returned by GetThreadSelectorEntry API function.
8134 (display_selectors): New function. Displays the infomation of
8135 the selector given as argument, or of CS, DS ans FS selectors
8136 if no argument is given.
8137 ( _initialize_inftarg): Add "w32" as info prefix command.
8138 Add "info w32 selector" as command calling display_selectors.
8140 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8142 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8143 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8146 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8148 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8150 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8152 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8153 (arm_fix_call_dummy): Call it.
8154 (arm_call_dummy_breakpoint_offset): Delete.
8155 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8156 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8158 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8160 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8161 Default to func_frame_chain_valid.
8162 * gdbarch.h, gdbarch.c: Re-generate.
8163 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8165 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8167 * ppc-linux-nat.c: Update copyright.
8168 (fetch_register, store_register): Add tid parameter, don't compute
8170 (fetch_ppc_registers, store_ppc_registers): Add tid
8171 parameter. Pass it along to callees.
8172 (fetch_inferior_registers, store_inferior_registers): Compute tid
8173 here, and pass it to calleed functions.
8174 (fill_gregset, supply_fpregset): Clean up formatting.
8176 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8178 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8179 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8181 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8183 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8184 * gdbarch.c gdbarch.h: Regenerate.
8185 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8187 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8188 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8189 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8191 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8192 * arm-tdep.c (arm_get_longjmp_target): New function.
8193 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8194 this to a positive value register arm_get_longjmp_target as the
8196 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8197 (arm_linux_init_abi): Set up longjmp description in tdep.
8198 * armnbsd-nat.c (get_longjmp_target): Delete.
8199 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8200 description in tdep.
8201 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8202 (get_longjmp_target): Delete declaration.
8203 (GET_LONGJMP_TARGET): Delete.
8204 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8205 (GET_LONGJMP_TARGET): Delete.
8207 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8209 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8210 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8211 of ``current_gdbarch''.
8213 2002-02-17 Tom Tromey <tromey@redhat.com>
8215 * cli/cli-cmds.c (compare_strings): New function.
8216 (complete_command): Only print each unique item once.
8217 * completer.h (complete_line): Declare.
8218 * completer.c (complete_line): New function.
8219 (line_completion_function): Use it.
8221 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8223 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8224 * gdbarch.h, gdbarch.c: Re-generate.
8226 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8228 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8230 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8232 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8233 * valops.c (value_arg_coerce): Don't take the address of a reference
8234 to convert an argument to a reference.
8236 2002-02-15 Christopher Faylor <cgf@redhat.com>
8238 * win32-nat.c (get_image_name): New function.
8239 (handle_load_dll): Use get_image_name function.
8240 (get_child_debug_event): Avoid registering debug events until possibly
8241 execed process is started.
8242 (child_create_inferior): Allow invocation via shell so that command
8243 line redirection, etc. works ok.
8244 (_initialize_inftarg): Add new command: "set shell" to control whether
8245 a shell is used to start a process.
8247 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8249 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8250 instead of find_register_by_number.
8251 (cannot_store_register): Likewise.
8253 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8255 * dwarf2read.c: Replace fprintf (stderr, ...) by
8256 fprintf_unfiltered (gdb_stderr, ...).
8258 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8260 * gdbserver/gdbserver.1: Document --attach.
8262 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8264 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8266 * arm-tdep.c (arm_default_arm_le_breakpoint)
8267 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8268 (arm_default_thumb_be_breakpoint): New. Initialize them from
8269 traditional breakpoint defines.
8270 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8271 (arm_gdbarch_init): Initialize new breakpoint variables.
8272 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8273 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8274 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8275 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8277 (arm_netbsd_init_abi_common): ... here; new function.
8278 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8279 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8280 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8281 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8283 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8285 * arm-tdep.h (enum arm_abi): New enum.
8286 (struct gdbarch_tdep): New structure.
8287 (LOWEST_PC): Provide a default.
8288 (arm_gdbarch_register_os_abi): Declare new function.
8289 * arm-tdep.c (arm_abi_names): New array.
8290 (process_note_abi_tag_sections): New function.
8291 (get_elfosabi): New function.
8292 (arm_gdbarch_register_os_abi): New function.
8293 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8294 support for that ABI has been built in, then call the appropriate
8295 configuration routine. Use gdbarch_num_regs() to get the number
8297 (arm_dump_tdep): New function.
8298 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8299 place-holder functions.
8300 (_initialize_arm_tdep): Register them.
8301 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8303 * armnbsd-tdep.c: New file.
8304 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8305 * config/arm/nbsd.mt (TDEPFILES): Add it.
8306 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8308 * armnbsd-nat.c: Include regcache.h.
8309 * Makefile.in (armnbsd-nat.o): Update dependency list.
8311 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8313 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8315 * gdbserver/Makefile.in: Fix typos in target rules.
8317 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8319 Fix part of PR gdb/267.
8320 * linespec.c (find_methods): Handle constructors specially for now.
8322 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8324 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8326 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8327 standard_coerce_float_to_double().
8329 2002-02-14 Christopher Faylor <cgf@redhat.com>
8331 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8334 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8336 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8337 find_variant_by_name, because it confuses the multiarch
8338 framework. Return NULL if there isn't an architecture with the
8339 user supplied name, instead of forcing a different one without
8340 recording the change with the multiarch machinery.
8341 (find_variant_by_name): Delete.
8343 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8345 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8346 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8348 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8350 * stack.c (print_frame_info_base): When calling
8351 print_frame_info_listing_hook, set current_source_symtab.
8353 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8355 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8356 and remove unused $(INCLUDE_DIR).
8357 Add regcache.c to OBS.
8358 Add generated register protocol files to clean target.
8359 Update dependencies for new objects, obsolete old target code.
8361 * gdbserver/linux-low.c: Remove all platform-specific code to
8362 new files. Remove various dead code. Update to use regcache
8364 * gdbserver/remote-utils.c (fromhex): Add return statement
8366 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8368 (input_interrupt): Add integer parameter to match prototype
8369 of a signal handler.
8370 (outreg): Use register_data ().
8371 (prepare_resume_reply): Use gdbserver_expedite_regs.
8372 * gdbserver/server.c (main): Dynamically allocate own_buf because
8373 PBUFSIZ is no longer constant. Use registers_to_string () and
8374 registers_from_string ().
8375 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8376 for error (), fatal (), and warning (). Update definition of
8377 PBUFSIZ to use regcache functionality. Add include guard.
8378 * gdbserver/utils.c (fatal): Add missing ``const''.
8379 (warning): New function.
8381 * regformats/regdat.sh: Include "regcache.h" in generated files.
8382 Provide init_registers () function.
8383 * regformats/regdef.h: Add prototype for set_register_cache ().
8386 * gdbserver/linux-arm-low.c: New file.
8387 * gdbserver/linux-i386-low.c: New file.
8388 * gdbserver/linux-ia64-low.c: New file.
8389 * gdbserver/linux-m68k-low.c: New file.
8390 * gdbserver/linux-mips-low.c: New file.
8391 * gdbserver/linux-ppc-low.c: New file.
8392 * gdbserver/linux-sh-low.c: New file.
8394 * gdbserver/regcache.c: New file.
8395 * gdbserver/regcache.h: New file.
8397 * gdbserver/low-linux.c: Removed obsolete file.
8399 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8401 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8402 * config/i386/linux.mt: Likewise.
8403 * config/ia64/linux.mt: Likewise.
8404 * config/m68k/linux.mh: Likewise.
8405 * config/powerpc/linux.mh: Likewise.
8406 * config/mips/linux.mt: Likewise.
8408 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8410 * config/i386/i386lynx.mh: Mark gdbserver variables
8411 as (currently) obsolete for this target.
8412 * config/i386/nbsd.mt: Likewise.
8413 * config/i386/nbsdelf.mt: Likewise.
8414 * config/m32r/m32r.mt: Likewise.
8415 * config/m68k/m68klynx.mh: Likewise.
8416 * config/m68k/nbsd.mt: Likewise.
8417 * config/m68k/sun3os4.mh: Likewise.
8418 * config/mips/vr5000.mt: Likewise.
8419 * config/ns32k/nbsd.mt: Likewise.
8420 * config/pa/hppabsd.mh: Likewise.
8421 * config/pa/hppaosf.mh: Likewise.
8422 * config/powerpc/nbsd.mt: Likewise.
8423 * config/rs6000/rs6000lynx.mh: Likewise.
8424 * config/s390/s390.mt: Likewise.
8425 * config/s390/s390x.mt: Likewise.
8426 * config/sparc/sparclynx.mh: Likewise.
8427 * config/sparc/sun4os4.mh: Likewise.
8428 * config/i386/x86-64linux.mt: Likewise.
8429 * config/sparc/linux.mh: Likewise.
8431 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8433 * configure.tgt: Configure gdbserver only for known working
8434 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8435 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8436 SUBDIRS if it is configured. Update comment for ${nativefile}.
8437 * configure: Regenerated.
8439 2002-02-13 Michael Snyder <msnyder@redhat.com>
8441 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8443 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8444 (default_gcore_mach): Just return 0, work around a problem in bfd.
8445 (default_gcore_target): OK to return NULL if exec_bfd is null.
8446 (make_mem_sec): Use a cast, avoid a warning.
8448 * procfs.c (find_memory_regions_callback): Use a cast instead of
8449 calling host_pointer_to_address (which complains if
8450 sizeof (host pointer) != sizeof (target pointer)).
8451 (procfs_make_note_section): Avoid overflow in psargs string.
8453 * procfs.c (procfs_make_note_section): Make the default
8454 implementation return an error.
8456 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8458 * procfs.c (procfs_make_note_section): Provide a default definition
8459 (for alpha-dec-osf4.0f). Fix typos.
8461 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8463 * linux-proc.c: Add include of regcache.h.
8464 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8466 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8468 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8469 * memattr.c (create_mem_region): Disallow useless empty region.
8470 Regions are half-open intervals, so allow [A..B) [B..C) as
8473 2002-02-13 Michael Chastain <mec@shout.net>
8475 * defs.h: Kill CONST_PTR.
8476 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8477 * c-lang.c (c_builtin_types): Likewise.
8478 * ch-lang.c (ch_builtin_types): Likewise.
8479 * f-lang.c (f_builtin_types): Likewise.
8480 * language.c (unknown_builtin_types): Likewise.
8481 * m2-lang.c (m2_builtin_types): Likewise.
8482 * p-lang.c (pascal_builtin_types): Likewise.
8483 * scm-lang.c (c_builtin_types): Likewise.
8485 2002-02-13 Keith Seitz <keiths@redhat.com>
8487 * arm-tdep.h (arm_get_next_pc): Add declaration.
8489 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8491 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8492 with other related struct-returning functions.
8493 (arm_extract_struct_value_address): New function.
8494 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8495 initialize float_format, double_format and long_double_format as
8496 appropriate to the endianness of the target.
8497 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8498 (arm_use_struct_convention): Delete declaration.
8499 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8501 2002-02-13 Keith Seitz <keiths@redhat.com>
8503 * defs.h (core_addr_to_string_nz): New function.
8505 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8507 Apply missing bits of 2002-01-15 patch.
8508 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8509 (fill_fpregset): Use i387_fill_fsave.
8511 2002-02-12 Keith Seitz <keiths@redhat.com>
8513 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8514 (core_addr_to_string_nz): New function.
8516 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8518 * arm-linux-nat.c: Really include arm-tdep.h.
8519 * config/arm/tm-linux.h (struct type, struct value): Declare.
8521 2002-02-11 Michael Snyder <msnyder@redhat.com>
8523 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8524 (gcore section): Ifdef for Solaris and Unixware only.
8525 (procfs_do_thread_registers): Unixware needs one lwpstatus
8526 per thread (not one prstatus or pstatus).
8527 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8528 not over all gdb threads. For unixware, call elfcore_write_pstatus
8529 once before iterating over threads.
8531 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8533 * arm-tdep.h: New file.
8534 * arm-tdep.c: Include arm-tdep.h.
8535 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8536 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8537 (arm_print_float_info, arm_register_type, convert_to_extended)
8538 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8539 (arm_extract_return_value, arm_register_name): Make static.
8540 (arm_software_single_step): Similarly. Fix types in declaration.
8541 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8542 (arm_store_return_value, arm_store_struct_return): New functions.
8543 (arm_gdbarch_init): Register the above functions. Also register
8544 call_dummy_start_offset, sizeof_call_dummy_words,
8545 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8546 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8547 max_register_virtual_size, register_size. Set up
8548 prologue_cache.saved_regs here, rather than ...
8549 (_initialize_arm_tdep): ... here.
8550 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8552 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8553 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8554 (arm_print_float_info, arm_register_type, convert_to_extended)
8555 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8556 (arm_extract_return_value, arm_register_name): Delete declarations.
8557 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8558 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8559 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8560 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8561 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8562 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8563 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8564 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8565 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8566 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8567 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8568 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8570 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8571 * remote-rdi.c remote-rdp.c: Likewise.
8572 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8573 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8574 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8577 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8578 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8579 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8580 from non-ARM_ prefixed definitions.
8581 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8583 * remote-rdi.c remote-rdp.c: Likewise.
8584 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8586 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8588 * arm-tdep.c (arm_frameless_function_invocation)
8589 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8590 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8591 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8592 (arm_pop_frame, arm_get_next_pc): Make static.
8593 (arm_gdbarch_init): Register above in gdbarch structure.
8594 (arm_read_fp): Renamed from arm_target_read_fp.
8595 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8596 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8597 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8598 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8599 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8600 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8601 (arm_pc_is_thumb_dummy): Delete declarations.
8602 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8603 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8604 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8605 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8607 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8609 * symtab.c (compare_search_syms): New function.
8610 (sort_search_symbols): New function.
8611 (search_symbols): Sort symbols after searching rather than
8614 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8616 * NEWS: Linux -> GNU/Linux.
8618 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8620 * gdbarch.sh: For for level one methods, disallow a definition
8621 when partially multi-arched. Add comments explaining rationale.
8622 * gdbarch.h: Re-generate.
8624 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8626 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8629 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8631 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8633 * gdbarch.c: Re-generate.
8635 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8637 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8638 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8643 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8645 (PUSH_ARGUMENTS): Switch to using predefault.
8646 * gdbarch.c: Regenerate.
8648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8650 * valops.c (PUSH_ARGUMENTS): Delete definition.
8651 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8652 partial. Default to default_push_arguments.
8653 * gdbarch.h, gdbarch.c: Regenerate.
8655 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8657 * defs.h (throw_exception): Rename return_to_top_level. Update
8659 * utils.c (error_stream, internal_verror, quit): Ditto.
8660 * top.c (throw_exception, catcher): Ditto.
8661 * sparclet-rom.c (sparclet_load): Ditto.
8662 * remote.c (interrupt_query, minitelnet): Ditto.
8663 * remote-sds.c (interrupt_query): Ditto.
8664 * remote-mips.c (mips_error, mips_kill): Ditto.
8665 * ocd.c (interrupt_query): Ditto.
8666 * monitor.c (monitor_interrupt_query): Ditto.
8667 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8668 * target.h: Update comment.
8670 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8672 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8674 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8675 default_double_format.
8676 * gdbarch.h, gdbarch.c: Re-generate.
8677 * findvar.c (floatformat_unknown): Delete variable definition.
8678 * doublest.h (floatformat_unknown): Delete variable declaration.
8680 2002-02-09 Jim Blandy <jimb@redhat.com>
8682 * stabsread.c (read_type): Add code to parse Sun's syntax for
8683 prototyped function types.
8685 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8687 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8688 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8690 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8692 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8693 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8694 now _initialize_xcoffsolib gets called again and overrides the
8695 commands from solib.c in a native configuration.
8697 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8699 * doublest.c (store_typed_floating): Don't try to return a value.
8702 2002-02-08 Jim Blandy <jimb@redhat.com>
8704 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8705 is prototyped and has no arguments, print its argument list as
8708 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8710 * MAINTAINERS (write-after-approval): Add myself.
8711 (paper-trail): I've escaped!
8713 2002-02-08 Christopher Faylor <cgf@redhat.com>
8715 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8717 (_initialize_check_for_gdb_ini): Ditto.
8719 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8721 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8722 xaprintf -> xasprintf.
8724 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8726 * win32-nat.c: Remove use of printf and sprintf functions.
8728 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8730 * arm-tdep.c (arm_frame_chain_valid): Make static.
8731 (arm_push_arguments): Likewise.
8732 (arm_gdbarch_init): New function.
8733 (_initialize_arm_tdep): Call it.
8734 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8735 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8736 (FRAME_CHAIN_VALID): Delete.
8737 (arm_frame_chain_valid): Delete declaration.
8738 (PUSH_ARGUMENTS): Delete.
8739 (arm_push_arguments): Delete declaration.
8740 (CALL_DUMMY_P): Delete.
8742 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8743 Corinna Vinschen <vinschen@redhat.com>
8745 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8746 on builtin float types.
8748 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8750 * utils.c: Include <curses.h> before "bfd.h".
8751 * tui/tui-hooks.c: Likewise.
8752 * tui/tui.c: Likewise.
8753 * tui/tuiCommand.c: Likewise.
8754 * tui/tuiData.c: Likewise.
8755 * tui/tuiDataWin.c: Likewise.
8756 * tui/tuiDisassem.c: Likewise.
8757 * tui/tuiGeneralWin.c: Likewise.
8758 * tui/tuiIO.c: Likewise.
8759 * tui/tuiLayout.c: Likewise.
8760 * tui/tuiRegs.c: Likewise.
8761 * tui/tuiSource.c: Likewise.
8762 * tui/tuiSourceWin.c: Likewise.
8763 * tui/tuiStack.c: Likewise.
8764 * tui/tuiWin.c: Likewise.
8766 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8768 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8769 to include space for pseudoregs as well. Update loops accordingly.
8770 (sh_fp_frame_init_saved_regs): Ditto.
8771 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8773 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8775 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8776 Add Richard Earnshaw to Arm maintainers.
8778 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8780 * defs.h (warning_begin): Delete declaration.
8782 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8785 2002-02-07 Michael Snyder <msnyder@redhat.com>
8787 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8788 Logic bug, remove misplaced else.
8790 2002-02-07 Klee Dienes <klee@apple.com>
8792 * fork-inferior.c (fork_inferior): Add '!' to the list of
8793 characters that need to be quoted when building a string for the
8794 shell. Quote '!' specifically with a backslash, since CSH chokes
8795 when trying to evaluate "str!str".
8797 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8799 * rdi-share/host.h: Only provide a typedef for bool if it is not
8802 2002-02-04 Michael Snyder <msnyder@redhat.com>
8804 * breakpoint.h (enum bptype): Add new overlay event bp type.
8805 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8807 * breakpoint.c (create_internal_breakpoint): New function.
8808 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8809 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8810 (create_thread_event_breakpoint): Ditto.
8811 (create_solib_event_breakpoint): Ditto.
8812 (create_overlay_event_breakpoint): New function.
8813 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8814 (update_breakpoints_after_exec): Delete and re-initialize
8815 overlay event breakpoints after an exec. Add FIXME comment
8816 about longjmp breakpoint.
8817 (print_it_typical): Ignore overlay event breakpoints.
8818 (print_one_breakpoint): Ditto.
8820 (bpstat_what): Do not stop for overlay event breakpoints.
8821 (delete_breakpoint): Don't delete overlay event breakpoints.
8822 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8823 (breakpoint_re_set): Re-create overlay event breakpoint.
8825 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8826 (overlay_manual_command): Disable overlay breakpoints.
8827 (overlay_off_command): Disable overlay breakpoints.
8829 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8831 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8832 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8833 to here from config/tm-arm.h.
8834 (coff_sym_is_thumb): Make static.
8835 (arm_elf_make_msymbol_special): New function.
8836 (arm_coff_make_msymbol_special): New function.
8837 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8838 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8839 (coff_sym_is_thumb): Delete declaration.
8840 (arm_elf_make_msymbol_special): Declare.
8841 (arm_coff_make_msymbol_special): Declare.
8842 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8843 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8845 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8847 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8849 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8851 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8852 * gdbarch.c gdbarch.h: Regenerate.
8853 * arch-utils.c (default_print_float_info): New function.
8854 * arch-utils.h (default_print_float_info): Prototype it.
8855 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8856 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8857 (PRINT_FLOAT_INFO): Document it.
8859 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8860 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8861 (PRINT_FLOAT_INFO): Define.
8863 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8865 * win32-nat.c (_initialize_check_for_gdb_ini):
8866 Add typecast to sprintf argument to suppress a warning.
8868 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8870 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8871 to allow easier handling of pass state.
8872 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8873 that gives exception name and address.
8874 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8875 and set last_sig value to ourstatus->value.sig. Some missing
8877 (child_continue): Correctly report continue_status.
8878 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8879 TARGET_SIGNAL_0 (new default value).
8880 (child_resume): consider sig argument passed to decide if
8881 the exception should be passed to debuggee or not.
8883 2002-02-05 Michael Snyder <msnyder@redhat.com>
8885 * regcache.c (fetch_register): Call target_fetch_register
8886 only if we don't call FETCH_PSEUDO_REGISTER.
8887 (store_register): Call target_store_register only if we
8888 don't call STORE_PSEUDO_REGISTER.
8890 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8892 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8893 ELF_MAKE_MSYMBOL_SPECIAL.
8894 * gdbarch.c, gdbarch.h: Regenerate.
8895 * arch-utils.c (default_make_msymbol_special): New function.
8896 * arch-utils.h (default_make_msymbol_special): Export.
8897 * elfread.c (elf_symtab_read): Compile use of
8898 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8900 * coffread.c (coff_symtab_read): Ditto, for
8901 COFF_MAKE_MSYMBOL_SPECIAL.
8903 2002-02-05 Jim Blandy <jimb@redhat.com>
8905 * solib-svr4.c (svr4_truncate_ptr): New function.
8906 (svr4_relocate_section_addresses): Do the address arithmetic with
8907 the appropriate truncation for target addresses, even when
8908 CORE_ADDR is larger than a target address.
8910 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8912 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8915 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8917 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8920 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8922 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8924 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8926 * gdbserver/linux-low.c: Remove unused include files.
8928 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8930 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8931 (read_inferior_memory): Use it.
8932 (write_inferior_memory): Likewise.
8934 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8936 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8937 grubbing through sys_errlist.
8939 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8941 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8943 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8944 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8946 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8948 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8949 (do_sfunc, set_cmd_sfunc): New functions.
8951 * command.h (struct cmd_list_element): Add field func.
8952 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8953 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8954 * cli/cli-decode.h: Ditto.
8956 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8957 (help_all, help_cmd_list): Ditto.
8958 (find_cmd, complete_on_cmdlist): Ditto.
8959 * top.c (execute_command): Ditto.
8961 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8964 * infcmd.c (notice_args_read): Fix function signature.
8966 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8967 * cli/cli-decode.c (add_set_cmd): Ditto.
8968 * utils.c (initialize_utils): Ditto.
8969 * maint.c (_initialize_maint_cmds): Ditto.
8970 * infrun.c (_initialize_infrun): Ditto.
8971 * demangle.c (_initialize_demangler): Ditto.
8972 * remote.c (add_packet_config_cmd): Ditto.
8973 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8974 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8975 * proc-api.c (_initialize_proc_api): Ditto.
8976 * kod.c (_initialize_kod): Ditto.
8977 * valprint.c (_initialize_valprint): Ditto.
8978 * top.c (init_main): Ditto.
8979 * infcmd.c (_initialize_infcmd): Ditto.
8980 * corefile.c (_initialize_core): Ditto.
8981 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8982 * arch-utils.c (initialize_current_architecture): Ditto.
8983 (_initialize_gdbarch_utils): Ditto.
8984 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8986 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8987 * wince.c (_initialize_inftarg): Ditto.
8988 * symfile.c (_initialize_symfile): Ditto.
8989 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8990 * language.c (_initialize_language): Ditto.
8991 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8993 2002-02-04 Michael Snyder <msnyder@redhat.com>
8995 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8997 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8999 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9000 Add rules for building the register data files.
9002 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9004 * regformats/regdat.sh: Add braces to the definition of
9005 expedite_regs_${arch}.
9007 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9009 * regformats/regdef.h (struct reg): Add comment describing the
9010 requirements for offset and size fields.
9012 2002-02-04 Andreas Schwab <schwab@suse.de>
9014 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9015 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9017 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9019 * gdbarch.sh (copyright): Update years in generated header.
9020 (SMASH_TEXT_ADDRESS): Add rule.
9021 * gdbarch.h, gdbarch.c: Re-generate.
9022 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9023 * dbxread.c: Likewise.
9024 * dwarfread.c: Likewise.
9025 * elfread.c: Likewise.
9026 * somread.c: Likewise.
9028 * arm-tdep.c (arm_smash_text_address): New function.
9029 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9031 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9033 Add support for hardware watchpoints on win32 native.
9034 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9035 CONTEXT_DEBUG_REGISTERS.
9036 (dr variable): New variable. Static array containing a local copy
9038 (debug_registers_changed): New variable. Reflects when debug registers
9039 are changed and need to be written to inferior.
9040 (debug_registers_used): New variable. Reflects when any debug register
9041 was set, used when new threads are created.
9042 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9044 (thread_rec): Set dr array if id is the thread of current_event .
9045 (child_continue, child_resume): Change the debug registers for all
9046 threads if debug_registers_changed.
9047 (child_add_thread): Change the debug registers if debug_registers_used.
9048 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9049 Link nm.h to new nm-cygwin.h file.
9050 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9051 of hardware registers.
9053 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9055 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9056 Restore behavour broken by 2002-01-20 Andrew Cagney
9057 <ac131313@redhat.com> IEEE_FLOAT removal.
9059 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9061 * c-valprint.c (c_val_print): Pass a proper valaddr to
9062 cp_print_class_method.
9063 * valops.c (search_struct_method): If there is only one method
9064 and args is NULL, return that method.
9066 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9068 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9069 accessing tag_name directly.
9071 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9073 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9074 of accessing tag_name directly.
9076 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9079 * gdbtypes.c (replace_type): New function.
9080 * gdbtypes.h (replace_type): Add prototype.
9081 * stabsread.c (read_type): Use replace_type.
9083 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9085 * Makefile.in (memattr.o): Add missing dependencies rule.
9087 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9089 * breakpoint.c (break_at_finish_command): Really export.
9090 (break_at_finish_at_depth_command): Ditto.
9091 (tbreak_at_finish_command): Ditto.
9092 * hppa-tdep.c: Include completer.h.
9093 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9094 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9096 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9098 * utils.c (do_write): New function.
9099 (error_stream): Rewrite combining the code from error_begin and
9101 (verror): Rewrite using error_stream.
9102 (error_begin): Delete function.
9104 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9106 * utils.c (error_begin): Make static.
9107 * defs.h (error_begin): Delete declaration.
9109 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9110 (decode_line_1): Use cplusplus_error instead of error_begin,
9111 cplusplus_hint and return_to_top_level.
9112 * coffread.c (coff_symfile_read): Use error instead of error_begin
9113 and return_to_top_level.
9114 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9116 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9118 * language.h (type_error, range_error): Make string parameter
9120 * language.c (warning_pre_print): Delete extern declaration.
9121 * dwarfread.c (warning_pre_print): Ditto.
9122 * language.c (type_error, range_error): Rewrite to use verror and
9123 vwarning instead of warning_begin.
9125 2002-02-01 Michael Snyder <msnyder@redhat.com>
9127 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9128 (set_ignore_count): Move misplaced comment back where it belongs.
9130 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9132 * command.h (NO_FUNCTION): Delete macro.
9133 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9134 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9135 * tracepoint.c (_initialize_tracepoint): Ditto.
9136 * cli/cli-decode.c (add_set_cmd): Ditto.
9137 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9139 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9141 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9142 Update ``this'' pointer when calling virtual functions.
9144 2002-02-01 Michael Snyder <msnyder@redhat.com>
9146 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9147 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9149 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9151 * regformats/reg-arm.dat: New file.
9152 * regformats/reg-i386.dat: New file.
9153 * regformats/reg-ia64.dat: New file.
9154 * regformats/reg-m68k.dat: New file.
9155 * regformats/reg-mips.dat: New file.
9156 * regformats/reg-ppc.dat: New file.
9157 * regformats/reg-sh.dat: New file.
9158 * regformats/regdef.h: New file.
9159 * regformats/regdat.sh: New file.
9161 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9163 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9164 (arm_frame_args_address, arm_frame_locals_address): New functions.
9165 (arm_frame_num_args): New function.
9166 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9167 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9168 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9170 2002-01-31 Michael Snyder <msnyder@redhat.com>
9172 * breakpoint.c (break_at_finish_command): Export.
9173 (break_at_finish_at_depth_command): Export.
9174 (tbreak_at_finish_command): Export.
9175 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9176 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9177 "tbreak" commands, which are HPPA specific.
9179 * printcmd.c (disassemble_command): Remove an ancient
9180 artifact of an old merge.
9182 * symfile.h (enum overlay_debugging_state):
9183 Define enum constant values for overlay mode.
9184 * symfile.c (overlay_debugging): Use enums instead of literals.
9185 (overlay_is_mapped, overlay_auto_command,
9186 overlay_manual_command): Ditto.
9188 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9189 breakpoint_here_p, breakpoint_inserted_here_p,
9190 breakpoint_thread_match, bpstat_stop_status,
9191 describe_other_breakpoints, check_duplicates, clear_command):
9192 Coding standard fixes.
9194 * target.c (target_xfer_memory): Add spaces, coding standard.
9195 (do_xfer_memory): Add missing line to trust-readonly
9196 code: check bfd SEC_READONLY flag for section.
9198 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9200 * PROBLEMS: Fix typo, 5.1->5.1.1.
9202 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9204 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9205 data symbols, since we search based on textlow and texthigh.
9206 (find_pc_sect_symtab): Likewise.
9208 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9210 * defs.h (vwarning): Declare.
9211 * utils.c (vwarning): New function.
9212 (warning): Call vwarning.
9213 (warning_begin): Delete function.
9215 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9216 the warning message.
9217 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9220 2002-01-30 Michael Snyder <msnyder@redhat.com>
9222 * NEWS: Mention "set trust-readonly-sections" command.
9223 Mention generate-core-file command.
9225 2002-01-15 Michael Snyder <msnyder@redhat.com>
9227 * target.c: New command, "set trust-readonly-sections on".
9228 (do_xfer_memory): Honor the suggestion to trust readonly sections
9229 by reading them from the object file instead of from the target.
9230 (initialize_targets): Register command "set trust-readonly-sections".
9232 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9234 * parse.c (target_map_name_to_register): Simplify, search regs and
9235 pseudo-regs using a single loop.
9237 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9239 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9241 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9243 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9244 * config/i386/i386v42mp.mh: Add i387-nat.o .
9245 * i386v4-nat.c: Include i387-nat.h.
9246 (supply_fpregset): Use i387_supply_fsave.
9247 (fill_fpregset): Use i387_fill_fsave.
9249 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9251 * arm-tdep.c (arm_call_dummy_words): Define.
9252 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9253 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9254 (CALL_DUMMY_WORDS): Define.
9255 (arm_call_dummy_words): Declare.
9256 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9257 (arm_linux_call_dummy_words): Declare.
9259 2002-01-30 Andreas Schwab <schwab@suse.de>
9261 * m68klinux-nat.c: Fix last change to use regcache_collect
9262 instead of referencing registers[] directly.
9264 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9266 * parse.c (target_map_name_to_register): Delete code wrapped in
9267 #ifdef REGISTER_NAME_ALIAS_HOOK.
9269 2002-01-28 Michael Snyder <msnyder@redhat.com>
9271 * regcache.c (legacy_read_register_gen): Need to be able to
9272 read pseudo-register as well as real register.
9273 (legacy_write_register_gen): Ditto.
9275 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9277 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9278 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9279 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9280 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9281 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9282 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9283 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9284 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9285 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9286 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9287 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9288 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9289 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9290 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9291 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9292 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9293 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9294 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9295 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9296 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9298 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9300 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9301 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9302 (initialize_current_architecture): Update target_byte_order using
9303 information from BFD.
9304 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9305 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9307 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9309 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9310 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9312 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9313 #ifdef INVALID_FLOAT.
9314 * infcmd.c (do_registers_info): Ditto.
9315 * values.c (unpack_double): Ditto. Add comment.
9317 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9318 already commented out.
9320 2002-01-26 Andreas Schwab <schwab@suse.de>
9322 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9323 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9324 registers and add support for PTRACE_GETREGS.
9326 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9328 GDB 5.1.1 released from 5.1 branch.
9329 * NEWS: Add 5.1.1 news.
9330 * README: Sync with 5.1 branch.
9332 2002-01-23 Fred Fish <fnf@redhat.com>
9334 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9335 stabstring on initial malloc. Reallocing will copy it for us,
9338 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9340 * Makefile.in (hpread_h): Delete.
9341 (HFILES_NO_SRCDIR): Remove hpread.h.
9342 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9343 (hpread.o): Update dependencies.
9344 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9346 * hp-psymtab-read.c: Remove file.
9347 * hp-symtab-read.c: Remove file.
9348 * hpread.h: Remove file.
9350 * hpread.c: Merge all contents of hp-psymtab-read.c,
9351 hp-symtab-read.c and hpread.h into this file, as it was prior to
9354 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9355 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9356 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9357 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9359 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9361 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9362 fill_gregset): Call gdbarch_tdep() just once, assign result to
9363 variable and use that, instead of calling the function several
9366 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9368 * configure.host: Accept sparcv9 as alias for sparc64.
9369 * configure.tgt: Likewise.
9371 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9373 * solib-aix5.c (build_so_list_from_mapfile)
9374 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9375 arguments is not reversed.
9376 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9377 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9379 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9381 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9382 modified version of obsolete sh_fetch_pseudo_register.
9383 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9384 (sh4_register_read): New function.
9385 (sh_pseudo_register_write): New function. Renamed and modified
9386 version of obsolete sh_store_pseudo_register.
9387 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9388 (sh4_register_write): New function.
9389 (sh_gdbarch_init): Remove setting of gdbarch function
9390 fetch_pseudo_register and store_pseudo_register. Remove setting of
9391 register_convert_to_raw, register_convert_to_virtual,
9392 register_convertible.
9393 (sh_sh4_register_convertible): Delete. No longer needed. All is
9394 taken care by architecture specific functions
9395 register_read/register_write.
9396 (sh_sh4_register_convert_to_virtual): Make static.
9397 (sh_sh4_register_convert_to_raw): Ditto.
9399 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9401 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9402 (floatformat_is_nan, floatformat_mantissa): Ditto.
9404 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9405 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9406 builtin_type_ieee_double_little,
9407 builtin_type_ieee_double_littlebyte_bigword,
9408 builtin_type_m68881_ext, builtin_type_i960_ext,
9409 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9410 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9411 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9412 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9414 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9416 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9417 parameter. Set frameless flag if it exists and depended of
9418 whether the scanned function is frameless or not.
9419 (xstormy16_skip_prologue): If function is frameless, return
9420 result of xstormy16_scan_prologue().
9421 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9424 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9426 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9427 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9428 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9429 sh_sh4_register_byte, sh_sh4_register_raw_size,
9430 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9431 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9432 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9433 sh_store_pseudo_register, sh_do_pseudo_register): Call
9434 gdbarch_tdep() just once, assign result to variable and use that,
9435 instead of calling the function several times.
9437 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9439 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9440 macros instead of LAST_FPU_CTRL_REGNUM.
9441 (store_register): Likewise.
9443 2002-01-21 Jim Blandy <jimb@redhat.com>
9445 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9446 is up-to-date before running the program, not just when a program
9449 2002-01-21 Fred Fish <fnf@redhat.com>
9451 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9452 when we have found all instructions we are looking for.
9454 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9456 * arm-tdep.c (arm_register_name): New function.
9457 (arm_registers_names): Make static.
9458 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9459 (arm_register_name): Declare.
9460 (REGISTER_NAME): Use it.
9462 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9463 Kevin Buettner <kevinb@redhat.com>
9465 Convert arm targets to new FRAME interface.
9466 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9467 (arm_frame_find_save_regs): Delete.
9468 (arm_frame_init_saved_regs): New.
9469 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9470 Allocate extra_info as required. Convert all uses of fsr.regs
9471 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9473 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9474 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9475 (check_prologue_cache, save_prologue_cache): Likewise.
9476 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9477 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9478 (FRAME_FIND_SAVED_REGS): Delete.
9479 (arm_frame_find_saved_regs): Delete prototype.
9480 (arm_frame_init_saved_regs): New prototype.
9481 (FRAME_INIT_SAVED_REGS): Define.
9483 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9485 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9487 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9489 From Jeff Law <law@redhat.com>:
9490 * infttrace.c: Include <sys/pstat.h>.
9491 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9492 exec file if the ttrace equivalent fails.
9494 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9496 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9497 (closeLogFile): Ditto.
9499 2002-01-20 Michael Chastain <mec@shout.net>
9501 * top.c (print_gdb_version): Bump copyright year to 2002.
9503 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9505 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9506 Zannoni and Eli Zaretskii.
9508 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9510 * buildsym.c: Update copyright years.
9511 * c-typeprint.c: Likewise.
9512 * dwarf2read.c: Likewise.
9513 * f-typeprint.c: Likewise.
9514 * gdbtypes.c: Likewise.
9515 * gdbtypes.h: Likewise.
9516 * hp-symtab-read.c: Likewise.
9517 * hpread.c: Likewise.
9518 * mdebugread.c: Likewise.
9519 * p-typeprint.c: Likewise.
9521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9523 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9524 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9525 byte-order selectable.
9526 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9527 * arch-utils.c: Ditto.
9528 (set_endian): Ditto.
9529 (set_endian_from_file): Ditto.
9530 * gdbserver/low-sim.c (create_inferior): Ditto.
9531 * gdbarch.sh: Ditto.
9532 * gdbarch.h: Re-generate.
9533 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9534 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9535 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9536 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9537 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9538 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9539 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9540 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9542 * config/mips/tm-wince.h: Remove #undef of macro
9543 TARGET_BYTE_ORDER_SELECTABLE.
9544 * config/sh/tm-wince.h: Ditto.
9546 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9548 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9549 member function fields. Add accessor macro
9550 TYPE_FN_FIELD_ARTIFICIAL.
9551 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9552 * c-typeprint.c (c_type_print_base): Skip artificial member
9555 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9557 * f-typeprint.c: Delete unused function f_type_print_args.
9558 * p-typeprint.c: Delete unused function pascal_type_print_args.
9560 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9562 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9563 comment. Add ``artificial'' to ``union field_location''.
9565 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9567 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9568 * mdebugread.c (parse_symbol): Likewise.
9569 * stabsread.c (define_symbol): Likewise.
9570 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9571 initializing TYPE_FIELD_BITPOS to n (obsolete).
9572 (hpread_doc_function_type): Likewise.
9573 * hpread.c (hpread_function_type): Likewise.
9575 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9577 * configure.in (host_makefile_frag): Only require a host makefile
9578 fragment when a native build.
9579 * configure: Re-generate.
9581 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9583 * doublest.h (floatformat_from_type): Declare.
9584 * doublest.c (floatformat_from_type): New function.
9585 (convert_typed_floating): Use.
9587 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9588 call to function floatformat_from_type.
9590 * gdbarch.sh (IEEE_FLOAT): Delete.
9591 * gdbarch.h, gdbarch.c: Re-generate.
9592 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9593 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9594 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9595 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9596 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9597 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9598 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9599 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9600 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9601 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9602 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9603 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9605 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9606 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9607 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9608 * sh-tdep.c (sh_gdbarch_init): Ditto.
9609 * mips-tdep.c (mips_gdbarch_init): Ditto.
9610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9611 * cris-tdep.c (cris_gdbarch_init): Ditto.
9613 2002-01-20 Jiri Smid <smid@suse.cz>
9615 * configure.host, configure.tgt: Support x86-64.
9616 * NEWS: Note new target x86-64.
9618 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9619 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9620 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9621 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9622 x86-64-linux-nat.o): Fix dependencies.
9624 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9626 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9627 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9628 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9629 * config/sparc/xm-sun4os4.h: Delete file.
9630 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9632 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9634 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9635 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9636 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9637 * config/i386/i386lynx.mh (XM_FILE): Delete.
9638 * config/rs6000/xm-rs6000ly.h: Delete file.
9639 * config/sparc/xm-sparclynx.h: Delete file.
9640 * config/m68k/xm-m68klynx.h: Delete file.
9641 * config/i386/xm-i386lynx.h: Delete file.
9642 * config/xm-lynx.h: Delete file.
9643 * config/djgpp/fnchange.lst: Update.
9645 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9647 * alpha-tdep.c (alpha_register_byte): New function.
9648 (alpha_register_raw_size): Ditto.
9649 (alpha_register_virtual_size): Ditto.
9650 (alpha_skip_prologue_internal): Renamed from
9651 alpha_skip_prologue.
9652 (alpha_skip_prologue): New version that calls
9653 alpha_skip_prologue_internal.
9654 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9655 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9656 second argument from alpha_skip_prologue.
9657 (REGISTER_BYTE): Use alpha_register_byte.
9658 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9659 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9660 (FRAMELESS_FUNCTION_INVOCATION): Use
9661 generic_frameless_function_invocation_not.
9662 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9663 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9665 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9667 * config/mips/xm-news-mips.h: Delete file.
9668 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9670 * config/m88k/xm-m88k.h: Delete file.
9671 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9672 * config/m88k/xm-delta88v4.h: Ditto.
9673 * config/m88k/xm-delta88.h: Ditto.
9675 * config/alpha/xm-fbsd.h: Delete file.
9676 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9678 * config/sparc/xm-sparc.h: Delete file.
9679 * Makefile.in (xm-sun4os4.h): Delete dependency.
9680 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9681 * config/sparc/xm-sun4os4.h: Ditto.
9682 * config/sparc/xm-linux.h: Ditto.
9684 * config/i386/xm-windows.h: Delete file.
9686 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9688 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9689 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9691 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9693 * alpha-tdep.c (alpha_call_dummy_words): New.
9694 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9695 (CALL_DUMMY_P): Define.
9696 (CALL_DUMMY_WORDS): Define.
9697 (SIZEOF_CALL_DUMMY_WORDS): Define.
9699 2002-01-19 Per Bothner <per@bothner.com>
9701 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9702 isn't NULL, which can happen with some gcj-3.x-produced code.
9704 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9706 * alpha-tdep.c (alpha_register_virtual_type): New function.
9707 (alpha_init_frame_pc_first): Ditto.
9708 (alpha_fix_call_dummy): Ditto.
9709 (alpha_store_struct_return): Ditto.
9710 (alpha_extract_struct_value_address): Ditto.
9711 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9712 alpha_register_virtual_type.
9713 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9714 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9715 alpha_extract_struct_value_address.
9716 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9717 (INIT_FRAME_PC): Use init_frame_pc_noop.
9718 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9720 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9722 * i386gnu-nat.c: Include "i386-tdep.h".
9723 (fetch_fpregs): Simplify code dealing with uninitialized floating
9724 point states such that it doesn't require FP7_REGNUM.
9726 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9728 * alpha-tdep.c (frame_extra_info): New.
9729 (alpha_find_saved_regs): Make static. Use
9731 (alpha_frame_init_saved_regs): New function.
9732 (alpha_frame_saved_pc): Use frame->extra_info.
9733 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9734 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9735 (init_extra_frame_info): Rename to...
9736 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9737 (alpha_print_extra_frame_info): New function.
9738 (alpha_frame_locals_address): Ditto.
9739 (alpha_frame_args_address): Ditto.
9740 (alpha_pop_frame): Use frame->extra_info.
9741 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9742 alpha_frame_args_address.
9743 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9744 (alpha_find_saved_regs): Remove prototype.
9745 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9746 (EXTRA_FRAME_INFO): Remove.
9747 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9748 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9750 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9752 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9753 (alpha_cannot_fetch_register): Ditto.
9754 (alpha_cannot_store_register): Ditto.
9755 (alpha_register_convertible): Ditto.
9756 (alpha_use_struct_convention): Ditto.
9757 * config/alpha/tm-alpha.h: Update copyright years.
9758 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9759 (INNER_THAN): Use core_addr_lessthan.
9760 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9761 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9762 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9763 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9764 (FRAME_CHAIN): Remove unnecessary cast.
9766 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9768 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9771 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9773 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9774 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9775 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9776 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9777 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9778 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9779 * x86-64-linux-nat.c: Ditto.
9781 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9783 * alpha-tdep.c (alpha_register_name): New function.
9784 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9785 (REGISTER_NAME): Define.
9787 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9789 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9791 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9793 * alpha-tdep.c: Update copyright years.
9794 (alpha_next_pc): New function.
9795 (alpha_software_single_step): Ditto.
9796 * config/alpha/tm-alpha.h: Add prototype for
9797 alpha_software_single_step.
9799 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9801 * alphabsd-nat.c: Update copyright years.
9802 (fill_gregset): Use regcache_collect.
9803 (fill_fpregset): Likewise.
9804 (fetch_inferior_registers): Only fetch integer registers
9805 if requested to do so.
9806 (store_inferior_registers): Only store integer registers
9807 if requested to do so.
9809 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9811 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9812 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9813 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9814 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9815 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9816 * config/arm/linux.mh (XDEPFILES): Delete.
9817 * config/arm/nbsd.mh (XDEPFILES): Delete.
9818 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9819 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9820 * config/i386/i386m3.mh (XDEPFILES): Delete.
9821 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9822 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9823 * config/i386/fbsd.mh (XDEPFILES): Delete.
9824 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9825 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9826 * config/i386/i386v4.mh (XDEPFILES): Delete.
9827 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9828 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9829 * config/i386/i386aix.mh (XDEPFILES): Delete.
9830 * config/i386/go32.mh (XDEPFILES): Delete.
9831 * config/i386/cygwin.mh (XDEPFILES): Delete.
9832 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9833 * config/i386/i386mach.mh (XDEPFILES): Delete.
9834 * config/i386/i386v32.mh (XDEPFILES): Delete.
9835 * config/i386/linux.mh (XDEPFILES): Delete.
9836 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9837 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9838 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9839 * config/i386/i386sco.mh (XDEPFILES): Delete.
9840 * config/i386/i386v.mh (XDEPFILES): Delete.
9841 * config/i386/nbsd.mh (XDEPFILES): Delete.
9842 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9843 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9844 * config/i386/symmetry.mh (XDEPFILES): Delete.
9845 * config/i386/obsd.mh (XDEPFILES): Delete.
9846 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9847 * config/ia64/linux.mh (XDEPFILES): Delete.
9848 * config/ia64/aix.mh (XDEPFILES): Delete.
9849 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9850 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9851 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9852 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9853 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9854 * config/m68k/linux.mh (XDEPFILES): Delete.
9855 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9856 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9857 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9858 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9859 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9860 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9861 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9862 * config/m88k/delta88.mh (XDEPFILES): Delete.
9863 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9864 * config/m88k/m88k.mh (XDEPFILES): Delete.
9865 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9866 * config/mips/linux.mh (XDEPFILES): Delete.
9867 * config/mips/irix6.mh (XDEPFILES): Delete.
9868 * config/mips/irix5.mh (XDEPFILES): Delete.
9869 * config/mips/irix4.mh (XDEPFILES): Delete.
9870 * config/mips/irix3.mh (XDEPFILES): Delete.
9871 * config/mips/decstation.mh (XDEPFILES): Delete.
9872 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9873 (NATDEPFILES): Move core-aout.o to here.
9874 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9875 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9876 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9877 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9878 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9879 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9880 * config/pa/hpux11.mh (XDEPFILES): Delete.
9881 * config/powerpc/aix.mh (XDEPFILES): Delete.
9882 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9883 * config/powerpc/linux.mh (XDEPFILES): Delete.
9884 * config/romp/rtbsd.mh: Rename XDEPFILES.
9885 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9886 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9887 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9888 * config/s390/s390.mh (XDEPFILES): Delete.
9889 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9890 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9891 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9892 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9893 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9894 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9895 * config/sparc/linux.mh (XDEPFILES): Delete.
9896 * config/vax/vaxult.mh (XDEPFILES): Delete.
9897 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9898 * Makefile.in (DEPFILES): Remove XDEPFILES.
9900 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9902 * utils.c (internal_verror): Fix comments, default is yes not no.
9903 Update queries to match. Default to quit and dump core.
9905 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9907 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9909 * defs.h, event-top.c, gdbcmd.h: Ditto.
9910 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9911 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9912 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9913 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9914 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9915 * mi/mi-main.c:Ditto.
9917 * stack.c, symfile.c: Update copyright.
9919 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9921 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9922 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9923 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9924 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9926 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9928 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9929 * gdbserver/low-lynx.c (myattach): Likewise.
9930 * gdbserver/low-nbsd.c (myattach): Likewise.
9931 * gdbserver/low-sim.c (myattach): Likewise.
9932 * gdbserver/low-sparc.c (myattach): Likewise.
9933 * gdbserver/low-sun3.c (myattach): Likewise.
9935 * gdbserver/low-linux.c (myattach): New function.
9937 * gdbserver/server.c (attach_inferior): New function.
9938 (main): Handle "--attach".
9940 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9942 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9945 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9947 * c-typeprint.c (is_type_conversion_operator): Add additional
9948 check for non-conversion operators.
9950 2002-01-15 Michael Snyder <msnyder@redhat.com>
9952 * linux-proc.c: Add "info proc" command, a la procfs.c.
9953 (read_mapping): New function, abstract and re-use code.
9954 (linux_find_memory_regions): Use new func read_mapping.
9955 (linux_info_proc_cmd): New function, implement "info proc".
9956 (_initialize_linux_proc): Add new command "info proc".
9958 2002-01-15 Michael Snyder <msnyder@redhat.com>
9960 * symfile.c (generic_load): Use bfd_map_over_sections method
9961 instead of manipulating bfd structure members directly.
9962 (add_section_size_callback): New function, bfd sections callback
9963 used by generic_load.
9964 (load_sections_callback): New function, bfd sections callback
9965 used by generic_load.
9967 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9969 [Based on work by Jim Blandy]
9970 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9971 (builtin_type_vec128): Export.
9972 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9974 (builtin_type_vec128): New builtin type for 128 bit vector
9976 (build_gdbtypes): Initialize builtin_type_v16qi and
9977 builtin_type_v8hi. Create the vec128 register builtin type
9979 (build_builtin_type_vec128): New function.
9980 (_initialize_gdbtypes): Register builtin_type_v16qi and
9981 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9982 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9983 AltiVec register to new builtin type.
9985 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9987 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9990 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9992 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9993 CLEAN_UP_REGISTER_VALUE.
9994 * regcache.c (supply_register): Update only call.
9996 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9998 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9999 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10000 a29k-*-vxworks* targets as obsolete.
10002 2002-01-14 Michael Snyder <msnyder@redhat.com>
10004 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10005 until we can resolve portability issues.
10006 * gregset.h: Remove references to fpxregs.
10007 * gcore.c (gcore_command): Initialize note_sec to NULL.
10009 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10011 * signals.c (target_signal_to_name): Rewrite. Only use
10012 signals[].name when in bounds and non-NULL.
10014 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10016 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10017 * signals.c (target_signal_to_name): Verify that SIG is within the
10018 bounds of the signals array.
10020 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10022 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10024 2002-01-13 Keith Seitz <keiths@redhat.com>
10026 * stack.c (print_frame_info_base): Print the frame's pc
10027 only if when print_frame_info_listing_hook is not defined.
10029 2002-01-13 Keith Seitz <keiths@redhat.com>
10031 * varobj.c (varobj_set_value): Make sure that there were no
10032 errors evaluating the object before attempting to set its
10034 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10035 so this offset adjustment is no longer necessary.
10036 (create_child): Don't set the error flag if the child is
10037 a CPLUS_FAKE_CHILD.
10038 (value_of_child): If value_fetch_lazy fails, return NULL
10039 so that callers will be notified that an error occurred.
10040 (c_value_of_variable): Delay check of variable's validity
10041 until later. We actually want all structs and unions to have
10043 Do not return "???" for variables which could not be evaluated.
10044 This error condition must be returned to the caller so that it
10045 can get the error condition from gdb.
10046 (cplus_name_of_child): Adjust index for vptr before figuring
10047 out the name of the child.
10048 (cplus_value_of_child): If a child's (real) parent is not valid,
10049 don't even bother trying to give a value for it. Just return
10050 an error. Change all instances in this function.
10051 (cplus_type_of_child): If our parent is one of the "fake"
10052 parents, we need to get at the type of the real parent, and
10053 derive the child's true type using this information.
10055 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10057 From 2002-01-09 John Marshall <johnm@falch.net>:
10058 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10059 sources.redhat.com, and tweak some related URLs which had
10060 suffered from linkrot.
10062 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10065 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10066 structures passed in registers.
10068 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10070 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10071 white space which prevented compilation. Reported by DSK
10072 <dsk@student.unsw.edu.au>.
10074 2002-01-11 Michael Snyder <msnyder@redhat.com>
10076 * symfile.c (build_section_addr_info_from_section_tab):
10077 Use bfd access method instead of manipulating bfd directly.
10078 (syms_from_objfile): Ditto.
10079 (simple_overlay_update_1): Ditto.
10080 (simple_overlay_update): Ditto.
10081 (generic_load): Ditto.
10082 (overlay_unmapped_address): FIXME comment, bfd access methods.
10083 (sections_overlap): FIXME comment, bfd access methods.
10084 (pc_in_mapped_range): FIXME comment, bfd access methods.
10085 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10086 (section_is_mapped): FIXME comment, bfd access methods.
10087 (section_is_overlay): FIXME comment, bfd access methods.
10089 * symfile.c (generic_load): Whitespace and long line cleanups.
10090 Remove duplicate variable, change several local variables to
10091 more appropriate data types.
10092 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10094 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10096 From Peter Schauer:
10097 * language.c (longest_local_hex_string_custom): Use phex_nz to
10098 convert NUM to a hex string.
10100 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10102 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10104 Update Copyright year.
10106 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10108 * language.c (longest_raw_hex_string): Delete unused function.
10110 2002-01-11 Petr Sorfa <petrs@caldera.com>
10112 * MAINTAINERS (write-after-approval): Add myself.
10113 * dwarf2read.c (read_tag_string_type): Handling of
10115 (read_tag_string_type): FORTRAN fix to prevent propagation of
10117 (set_cu_language): Handling of DW_LANG_Fortran95
10119 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10121 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10122 GETPID(inferior_ptid).
10123 (store_inferior_registers): Likewise.
10125 2002-01-10 Jason Merrill <jason@redhat.com>
10127 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10130 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10132 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10133 and bfd/elf32-sh-nbsd.c.
10135 2002-01-10 Michael Snyder <msnyder@redhat.com>
10137 * NEWS: Mention --pid and corefile/proc-id behavior change.
10139 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10140 * gcore.c: Include cli/cli-decode.h instead of command.h.
10142 * main.c (captured_main): Add new command line option "--pid".
10143 If the second command line argument (following the symbol-file)
10144 begins with a digit, try to attach to it before trying to open
10146 (print_gdb_help): Document the "--pid" argument.
10148 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10150 * completer.c (command_completer): New function.
10152 * completer.h <command_completer>: Add prototype.
10154 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10155 completer for the "help" command.
10157 2002-01-09 Jason Merrill <jason@redhat.com>
10159 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10161 2002-01-09 Michael Snyder <msnyder@redhat.com>
10163 * i386-linux-nat.c (fill_fpxregset): Make global.
10164 (store_fpxregset): Ditto.
10166 * gregset.h (gdb_fpxregset_t): Define.
10167 (supply_fpxregset): Prototype.
10168 (fill_fpxregset): Prototype.
10170 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10172 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10174 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10175 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10176 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10178 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10180 * MAINTAINERS: Update target maintainer rules so that any
10181 Maintainer can approve a tested patch for a maintenance-only
10184 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10186 * MAINTAINERS (write-after-approval): Add myself.
10188 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10191 2002-01-08 Michael Snyder <msnyder@redhat.com>
10193 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10194 real name of the executable, rather than the /proc name.
10196 2002-01-03 Michael Snyder <msnyder@redhat.com>
10198 Implement a "generate-core-file" command in gdb, save target state.
10199 * gcore.c: New file. Implement new command 'generate-core-file'.
10200 Save a corefile image of the current state of the inferior.
10201 * linux-proc.c: Add linux-specific code for saving corefiles.
10202 * target.h (struct target_ops): Add new target vectors for saving
10203 corefiles; to_find_memory_regions and to_make_corefile_notes.
10204 (target_find_memory_regions): New macro.
10205 (target_make_corefile_notes): New macro.
10206 * target.c (update_current_target): Inherit new target methods.
10207 (dummy_find_memory_regions): New place-holder method.
10208 (dummy_make_corefile_notes): New place-holder method.
10209 (init_dummy_target): Initialize new dummy target vectors.
10210 * exec.c (exec_set_find_memory_regions): New function.
10211 Allow the exec_ops vector for memory regions to be taken over.
10212 (exec_make_note_section): New function, target vector method.
10213 * defs.h (exec_set_find_memory_regions): Export prototype.
10214 * procfs.c (proc_find_memory_regions): New function, corefile method.
10215 (procfs_make_note_section): New function, corefile method.
10216 (init_procfs_ops): Set new target vector pointers.
10217 (find_memory_regions_callback): New function.
10218 (procfs_do_thread_registers): New function.
10219 (procfs_corefile_thread_callback): New function.
10220 * sol-thread.c (sol_find_memory_regions): New function.
10221 (sol_make_note_section): New function.
10222 (init_sol_thread_ops): Initialize new target vectors.
10223 * inftarg.c (inftarg_set_find_memory_regions): New function.
10224 Allow to_find_memory_regions vector to be taken over.
10225 (inftarg_set_make_corefile_notes): New function.
10226 Allow to_make_corefile_notes vector to be taken over.
10227 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10228 interface layer if not target_has_execution (may be a corefile).
10229 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10230 * config/sparc/sun4sol2.mh: Ditto.
10231 * config/alpha/alpha-linux.mh: Ditto.
10232 * config/arm/linux.mh: Ditto.
10233 * config/i386/x86-64linux.mh: Ditto.
10234 * config/ia64/linux.mh: Ditto.
10235 * config/m68k/linux.mh: Ditto.
10236 * config/mips/linux.mh: Ditto.
10237 * config/powerpc/linux.mh: Ditto.
10238 * config/sparc/linux.mh: Ditto.
10240 2002-01-07 Michael Snyder <msnyder@redhat.com>
10242 * arm-linux-nat.c: Remove references to regcache.c internal data
10243 (registers[] and register_valid[]).
10245 2002-01-07 Michael Snyder <msnyder@redhat.com>
10247 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10248 so that attaching to a pid will automatically read the process's
10249 symbol file and shlibs.
10250 * Makefile.in: Add rule for linux-proc.o.
10251 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10252 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10253 * config/arm/linux.mh: Ditto.
10254 * config/i386/linux.mh: Ditto.
10255 * config/i386/x86-64linux.mh: Ditto.
10256 * config/ia64/linux.mh: Ditto.
10257 * config/m68k/linux.mh: Ditto.
10258 * config/mips/linux.mh: Ditto.
10259 * config/powerpc/linux.mh: Ditto.
10260 * config/sparc/linux.mh: Ditto.
10262 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10264 * win32-nat.c: Add i386-tdep.h dependency.
10266 2002-01-07 Michael Snyder <msnyder@redhat.com>
10268 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10269 instead of bfd_get_arch_size. Don't bail out just because
10270 there's no exec_bfd.
10272 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10273 * p-valprint.c (pascal_object_print_value): Ditto.
10274 * somread.c (som_symtab_read): Ditto.
10275 * symfile.c (simple_free_overlay_region_table): Ditto.
10276 * valops.c (value_assign): Ditto.
10278 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10279 use tilde_expand and strerror for opening save-tracepoints file.
10281 * thread-db.c (thread_db_new_objfile): Indendation fix.
10283 * infptrace.c (GDB_MAX_ALLOCA): New define.
10284 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10285 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10286 can be overridden with whatever value is appropriate to the host).
10287 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10288 alloca to allocate potentially large buffer.
10289 * rs6000-nat.c (child_xfer_memory): Ditto.
10290 * symm-nat.c (child_xfer_memory): Ditto.
10291 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10293 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10295 From Nick Clifton <nickc@redhat.com>
10296 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10298 2002-01-07 Michael Snyder <msnyder@redhat.com>
10300 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10301 Don't use exec_bfd if it's NULL.
10303 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10305 * valops.c (value_arg_coerce): Fix formatting.
10307 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10309 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10310 * gnu-nat.c: Ditto.
10312 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10314 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10315 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10316 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10317 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10318 z8k-coff have not been multi-arched. Update z8k-coff build
10321 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10323 * MAINTAINERS: Mark a29k target as obsolete.
10324 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10325 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10327 * NEWS: Note that a29k targets are obsolete.
10328 * a29k-tdep.c: Mark as obsolete.
10329 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10330 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10331 a29k-*-vxworks* targets as obsolete.
10332 * remote-adapt.c: Obsolete.
10333 * remote-eb.c: Obsolete.
10334 * remote-mm.c: Obsolete.
10335 * remote-udi.c: Obsolete.
10336 * config/a29k/a29k-udi.mt: Obsolete.
10337 * config/a29k/a29k.mt: Obsolete.
10338 * config/a29k/tm-a29k.h: Obsolete.
10339 * config/a29k/tm-vx29k.h: Obsolete.
10340 * config/a29k/vx29k.mt: Obsolete.
10342 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10344 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10345 with BFD_ENDIAN_BIG.
10347 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10349 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10350 * configure, config.in: Re-generate.
10351 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10352 * defs.h: Do not include <endian.h>.
10354 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10356 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10357 * config.in: Regenerate.
10358 * configure.in: Update copyright years.
10359 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10360 * configure: Regenerate.
10361 * i386bsd-nat.c: Update copyright years.
10362 (fill_gregset): Use regcache_collect.
10363 (fetch_inferior_registers): Only fetch integer registers
10364 if requested to do so. Add support for XMM registers
10365 using PT_GETXMMREGS.
10366 (store_inferior_registers): Only store integer registers
10367 if requested to do so. Add support for XMM registers
10368 using PT_SETXMMREGS.
10369 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10370 (store_inferior_registers): Remove.
10371 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10372 (fetch_elfcore_registers): New function.
10373 (i386nbsd_elfcore_fns): New.
10374 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10375 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10377 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10378 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10379 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10380 * config/i386/tm-nbsd.h: Update copyright years.
10381 (HAVE_SSE_REGS): Define.
10382 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10383 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10384 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10385 (SIGCONTEXT_PC_OFFSET): Remove.
10386 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10388 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10390 * configure.tgt: Remove powerpc-*-macos* target.
10391 * config/m68k/xm-mpw.h: Delete file.
10392 * config/xm-mpw.h: Delete file.
10393 * ser-mac.c: Delete file.
10394 * mpw-make.sed: Delete file.
10395 * mpw-config.in: Delete file.
10396 * mac-xdep.c: Delete file.
10397 * mac-gdb.r: Delete file.
10398 * mac-defs.h: Delete file.
10399 * mac-nat.c: Delete file.
10400 * config/powerpc/macos.mh: Delete file.
10401 * config/powerpc/macos.mt: Delete file.
10402 * config/powerpc/nm-macos.h: Delete file.
10403 * config/powerpc/tm-macos.h: Delete file.
10404 * source.c (openp, open_source_file): Remove obsolete code.
10405 * top.c (gdb_readline): Ditto.
10406 * utils.c (query): Ditto.
10407 * event-top.c (display_gdb_prompt): Ditto.
10408 * Makefile.in (ser-mac.o): Delete obsolete target.
10411 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10413 * defs.h (BIG_ENDIAN): Delete macro definition.
10414 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10415 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10416 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10417 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10418 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10419 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10420 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10421 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10422 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10423 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10424 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10425 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10426 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10427 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10428 * gdbarch.c: Re-generate.
10430 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10432 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10435 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10437 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10439 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10441 * value.h (value_ptr): Delete typedef.
10443 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10445 * i386nbsd-nat.c: Update copyright years.
10446 Include i386-tdep.h.
10448 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10450 * stabsread.c: Update copyright years.
10452 From Debashis Mahata <debashis.mahata@wipro.com>:
10453 (read_struct_fields): Deal with Sun C compiler erroneous stab
10454 output for structs and unions.
10457 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10459 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10462 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10464 * cp-abi.c: Fix whitespace.
10465 (baseclass_offset): New wrapper function.
10466 * cp-abi.h (baseclass_offset): Add prototype.
10467 (struct cp_abi_ops): Add baseclass_offset pointer.
10469 * valops.c (vb_match): Move to...
10470 * gnu-v2-abi.c (vb_match): here.
10471 * valops.c (baseclass_offset): Move to...
10472 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10474 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10476 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10477 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10478 * hpacc-abi.c (init_hpacc_ops): Likewise.
10480 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10482 * valops.c (find_overload_match): Accept obj as a
10483 reference parameter. Update it before returning.
10484 * value.h (find_overload_match): Update prototype.
10485 * eval.c (evaluate_subexp_standard): Pass object to
10486 find_overload_match by reference.
10488 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10490 * valarith.c: Replace value_ptr with struct value pointer. Remove
10491 register attribute from value declarations.
10494 * scm-lang.c (scm_lookup_name): Ditto.
10496 2002-01-03 Michael Snyder <msnyder@redhat.com>
10498 Abstract the functionality of iterating over mapped memory
10499 regions into a general purpose iterator function.
10500 * procfs.c (iterate_over_mappings): New function, general purpose
10501 iterator for memory sections.
10502 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10503 (solib_mappings_callback): New function, callback for above.
10504 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10505 (info_mappings_callback): New function, callback for above.
10507 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10509 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10511 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10512 * i386-tdep.c: Include "elf-bfd.h".
10513 (process_note_abi_tag_sections): New function.
10514 (i386_gdbarch_init): Add code to recognize various OS/ABI
10517 * maint.c (_initialize_maint_cmds): Add missing \ in
10520 For older changes see ChangeLog-2001
10526 version-control: never