1 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4 (build_builtin_type_vec64i): Ditto.
5 (build_builtin_type_vec128): Ditto.
6 (build_builtin_type_vec128i): Ditto.
8 2002-08-19 Michael Snyder <msnyder@redhat.com>
10 * mips-tdep.c (mips_frame_num_args): New function.
11 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
12 frame_saved_pc, frame_args_address, frame_locals_address,
13 frame_num_args, and frame_args_skip.
14 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
15 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
16 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
17 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
19 2002-08-20 Michael Snyder <msnyder@redhat.com>
21 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
22 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
23 * mips-tdep.c (mips_store_struct_return): New function.
24 (mips_extract_struct_value_address): New function.
25 (mips_gdbarch_init): Set store_struct_return and
26 extract_struct_value_address.
28 2002-08-20 David Carlton <carlton@math.stanford.edu>
30 * dwarf2read.c (dwarf2_build_psymtabs): Check that
31 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
32 (read_file_scope): Check that line_header is nonzero before
33 decoding macro information.
35 2002-08-20 Mark Kettenis <kettenis@gnu.org>
37 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
38 flag the general-purpose registers as floating-point on targets
39 that don't support the floating-point registers.
41 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
43 * rs6000-tdep.c (altivec_register_p): Delete.
44 (rs6000_do_altivec_registers): Delete.
45 (rs6000_altivec_registers_info): Delete.
46 (rs6000_do_registers_info): Delete.
47 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
48 (rs6000_gdbarch_init): Remove setting of do_registers_info.
50 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
52 * infcmd.c (do_registers_info): Print vector registers in hex
54 (print_vector_info): Check that printing registers
56 (print_float_info): Ditto.
58 2002-08-20 Andrew Cagney <ac131313@redhat.com>
60 * mips-tdep.c (mips_gdbarch_init): Update.
61 (mips_o32_extract_return_value): Rewrite.
62 (mips_o32_store_return_value): Rewrite.
63 (mips_o32_xfer_return_value): New function.
64 (mips_xfer_register): Tweak debug print message. Allow for
65 buf_offset when dumping the value transfered.
67 2002-08-20 Andrew Cagney <ac131313@redhat.com>
69 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
70 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
71 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
72 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
73 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
75 2002-08-14 Michael Snyder <msnyder@redhat.com>
77 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
79 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
81 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
83 (P): New macro to define a register as a pseudo register.
84 (R, R4, R8, R16, FR32, R64, R0): Updated.
85 (struct variant): Add new fields for number of pseudo registers
86 and number of total registers.
87 (tot_num_registers): New macro replacing....
88 (num_registers): ...deleted macro.
89 (num_registers): New function.
90 (num_pseudo_registers): New function.
91 (variants): Update all variants to intialize new fields correctly.
92 Postpone initialization of number of pseudo regs and real regs.
93 (init_variants): New function.
94 (rs6000_gdbarch_init): Initialize variants. Update calculation of
97 2002-08-19 David Carlton <carlton@math.stanford.edu>
99 * valops.c (search_struct_field): Change error message to treat
100 return value of 0 from value_static_field as meaning that field is
102 (value_struct_elt_for_reference): Ditto.
103 * values.c (value_static_field): Treat an unresolved location the
104 same as a nonexistent symbol. Fix PR gdb/635.
105 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
106 enclosed. Fix PR gdb/574.
107 * MAINTAINERS: Add self to Write After Approval list.
109 2002-08-19 Andrew Cagney <ac131313@redhat.com>
111 * mips-tdep.c (mips_xfer_register): New function.
112 (mips_n32n64_extract_return_value): Rewrite.
113 (mips_gdbarch_init): For N32 and N64, set extract_return_value
114 instead of deprecated_extract_return_value.
116 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
118 * rs6000-tdep.c (TDEP): Delete macro.
119 (branch_dest): Replace use of TDEP macro with its body.
120 (rs6000_pop_frame): Ditto.
121 (rs6000_push_arguments): Ditto.
122 (rs6000_skip_trampoline_code): Ditto.
123 (rs6000_frame_saved_pc): Ditto.
124 (rs6000_frame_chain): Ditto.
125 (rs6000_register_name): Ditto.
126 (rs6000_register_byte): Ditto.
127 (rs6000_register_raw_size): Ditto.
128 (rs6000_register_virtual_type): Ditto.
129 (rs6000_register_convertible): Ditto.
130 (rs6000_convert_from_func_ptr_addr): Ditto.
132 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
134 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
136 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
137 MIPS_LINUX_JB_ELEMENT_SIZE.
138 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
139 for MAX_REGISTER_RAW_SIZE arrays.
140 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
141 MIPS_LINUX_JB_ELEMENT_SIZE.
143 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
145 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
147 2002-08-19 Aidan Skinner <aidan@velvet.net>
149 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
150 ada-valprint.c ada-tasks.c.
151 (YYFILES): Add ada-exp.y.
152 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
153 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
154 (ada-exp.tab.o): New target.
156 2002-08-18 Andrew Cagney <ac131313@redhat.com>
158 * regcache.c (regcache_xfer_part): New function.
159 (regcache_raw_read_part): New function.
160 (regcache_raw_write_part): New function.
161 (regcache_cooked_read_part): New function.
162 (regcache_cooked_write_part): New function.
163 * regcache.h (regcache_raw_read_part): Declare.
164 (regcache_raw_write_part): Declare.
165 (regcache_cooked_read_part): Declare.
166 (regcache_cooked_write_part): Declare.
168 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
170 * remote.c (remote_open_1): Add async_p.
171 (remote_async_open_1): Delete.
172 (open_remote_target): Delete.
173 (remote_open, extended_remote_open): Update calls to remote_open_1.
174 (remote_async_open, extended_remote_async_open): Call
175 remote_open_1 instead of remote_async_open_1.
177 2002-08-19 Mark Kettenis <kettenis@gnu.org>
179 * blockframe.c: Fix a few coding standard violations.
181 2002-08-19 Mark Kettenis <kettenis@gnu.org>
183 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
185 * config/i386/tm-i386sco5.h: ... here. File removed.
186 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
188 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
189 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
190 (TM_FILE): Set to tm-i386.h.
191 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
192 * config/i386/tm-i386v.h: Remove file.
193 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
194 instead of "i386/tm-i386v.h".
195 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
196 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
198 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
199 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
202 2002-08-18 Mark Kettenis <kettenis@gnu.org>
204 * config/i386/nm-i386v.h: Add protection against
206 (i386_register_u_addr): Remove prototype.
207 (register_u_addr): New prototype.
208 (REGISTER_U_ADDR): Redefine accordingly.
209 * i386v-nat.c: Improve several comments.
210 (i386_register_u_addr): Change signature and rename to
211 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
214 2002-08-18 Andrew Cagney <ac131313@redhat.com>
216 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
217 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
218 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
219 deprecated_extract_return_value.
220 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
221 rename mips_o32o64_push_arguments.
222 (mips_gdbarch_init): Update.
223 (mips_extract_return_value): Delete.
224 (mips_o32_extract_return_value): Clone mips_extract_return_value.
225 (mips_o64_extract_return_value): Clone mips_extract_return_value.
226 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
227 (mips_n32n64_extract_return_value): Clone
228 mips_extract_return_value.
229 (mips_store_return_value): Delete.
230 (mips_o32_store_return_value): Clone mips_store_return_value.
231 (mips_o64_store_return_value): Clone mips_store_return_value.
232 (mips_eabi_store_return_value): Clone mips_store_return_value.
233 (mips_n32n64_store_return_value): Clone mips_store_return_value.
235 2002-08-18 Aidan Skinner <aidan@velvet.net>
237 * ada-lang.c: Use gdb_string.h instead of <string.h>.
238 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
240 2002-08-18 Aidan Skinner <aidan@velvet.net>
242 * ada-lang.c: Run through gdb_indent.sh.
243 * ada-lang.h: Run through gdb_indent.sh.
244 * ada-tasks.c: Run through gdb_indent.sh.
245 * ada-typeprint.c: Run through gdb_indent.sh.
246 * ada-valprint.c: Run through gdb_indent.sh.
248 2002-08-18 Andrew Cagney <ac131313@redhat.com>
250 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
253 2002-08-18 Mark Kettenis <kettenis@gnu.org>
255 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
257 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
258 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
260 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
261 write_register_gen instead of write_register_bytes.
263 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
264 i[3456]-*-osf1mk* configurations have been made obsolete.
265 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
266 i[3456]86-*-osf1mk* hosts obsolete.
267 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
269 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
270 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
271 config/i386/i386m3.mt, config/i386/nm-m3.h,
272 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
273 config/i386/i386mk.mh, config/i386/i386mk.mt,
274 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
276 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
277 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
278 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
280 2002-08-18 Andrew Cagney <ac131313@redhat.com>
282 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
283 (hppa_value_returned_from_stack): Declare.
284 (hppa_extract_return_value): Declare.
285 * config/pa/hppa.mt: New file.
286 * configure.tgt: Recognize hppa*-*-*.
287 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
289 2002-08-18 Mark Kettenis <kettenis@gnu.org>
291 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
294 2002-08-17 Mark Kettenis <kettenis@gnu.org>
296 * top.c (gdb_rl_operate_and_get_next): Make sure
297 operate-and-get-next functions correctly even when the history
298 list is completely filled.
300 2002-08-18 Andrew Cagney <ac131313@redhat.com>
302 * MAINTAINERS (Target Instruction Set Architectures): Rename
303 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
304 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
305 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
306 already listed under Host/Native.
308 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
309 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
312 2002-08-17 Andrew Cagney <ac131313@redhat.com>
314 * config/ia64/ia64.mt: New file.
315 * config/alpha/alpha.mt: New file.
316 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
317 ia64-linux-gnu. Mention that ia64-elf is broken.
318 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
320 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
322 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
323 generic_func_frame_valid instead of func_frame_valid.
325 2002-08-16 Joel Brobecker <brobecker@gnat.com>
327 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
328 procfs appears to be broken when debugging on multi-processor
329 machines. So enable software single stepping in order to avoid
330 using the procfs interface to do next/step operations, using
331 internal breakpoints instead.
333 * infrun.c (handle_inferior_event): Readjust the stop_pc by
334 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
335 make this pc address equal to the value it would have if the
336 system stepping capability was used. Also set a new flag used
337 to ensure that we don't readjust the PC one more time later.
339 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
340 address by DECR_PC_AFTER_BREAK when software single step is
341 in use for this architecture, as this has already been taken
342 care of in handle_inferior_event().
344 2002-08-16 Joel Brobecker <brobecker@gnat.com>
346 * infrun.c (handle_inferior_event): Minor reformatting, to make
347 a rather long condition expression easier to read.
349 2002-08-16 Andrew Cagney <ac131313@redhat.com>
351 * Makefile.in (gdbtk.o): Move to end of file.
352 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
353 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
354 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
355 (gdbtk-wrapper.o, gdbres.o): Ditto.
357 2002-08-16 Andrew Cagney <ac131313@redhat.com>
359 * Makefile.in (copying.o): Separate out compile rule.
360 (hpux-thread.o, procfs.o, signals.o): Ditto.
361 (v850ice.o, z8k-tdep.o): Ditto.
362 (tui-file.o): Move to TUI section.
363 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
364 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
366 2002-08-16 Joel Brobecker <brobecker@gnat.com>
368 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
369 skip_trampoline_code, for better namespace-proofing.
371 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
373 2002-08-16 Joel Brobecker <brobecker@gnat.com>
375 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
377 2002-08-16 Joel Brobecker <brobecker@gnat.com>
379 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
380 signal, check whether we hit a breakpoint before checking for a
381 single step breakpoint. Otherwise, GDB fails to notice that a
382 breakpoint has been hit when stepping onto a breakpoint.
384 2002-08-16 Keith Seitz <keiths@redhat.com>
386 * gdb-events.sh (clear_gdb_event_hooks): New function.
387 * gdb-events.c: Regenerate.
388 * gdb-events.h: Regenerate.
390 2002-08-16 Andrew Cagney <ac131313@redhat.com>
392 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
394 * breakpoint.h (bpstat_stop_status): Add parameter names.
396 2002-08-16 Grace Sainsbury <graces@redhat.com>
398 * remote.c (remote_insert_hw_breakpoint)
399 (remote_remove_hw_breakpoint): Fix calculation of length field
402 2002-08-15 Michael Snyder <msnyder@redhat.com>
404 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
405 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
406 (supply_fpregset): Ditto.
408 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
409 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
410 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
411 (TARGET_READ_SP): Delete.
412 (DO_REGISTERS_INFO): Delete.
413 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
415 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
416 from macros to functions.
418 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
419 (mips_register_convertible, mips_register_convert_to_virtual,
420 mips_register_convert_to_raw): Make static.
421 (mips_read_sp): New function.
422 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
423 (mips_do_registers_info): Make static.
424 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
425 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
426 (mips_register_convert_from_type, mips_register_convert_to_type):
428 (mips_gdbarch_init): Set up function_start_offset,
429 register_virtual_size, pc_in_sigtramp.
431 2002-08-15 Andrew Cagney <ac131313@redhat.com>
433 * infcmd.c (vector_info): New function.
434 (_initialize_infcmd): Add command "info vector".
435 (print_vector_info): New function.
437 * gdbarch.sh (PRINT_VECTOR_INFO): New method
438 * gdbarch.h, gdbarch.c: Regenerate.
440 2002-08-15 Andrew Cagney <ac131313@redhat.com>
442 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
443 ``print_all''. Only print vector registers when ``print_all''.
445 2002-08-15 Andrew Cagney <ac131313@redhat.com>
447 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
448 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
450 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
451 Add `args' parameter.
452 * gdbarch.h, gdbarch.c: Regenerate.
454 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
456 * infcmd.c (float_info): Call print_float_info.
457 (print_float_info): New function. By default, print the
458 floating-point registers.
460 * arch-utils.h (default_print_float_info): Delete declaration.
461 * arch-utils.c (default_print_float_info): Delete function.
463 2002-08-16 Mark Kettenis <kettenis@gnu.org>
465 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
468 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
471 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
472 * configure.host: Make i[3456]86-*-aix host obsolete.
473 * configure.tgt: Make i[3456]86-*-aix target obsolete.
474 * config/i386/i386aix.mh, config/i386/i386aix.mt,
475 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
476 config/i386/xm-i386aix.h: Make files obsolete.
477 * i386aix-nat.c: Make file obsolete.
478 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
479 (i386aix-nat.o): Make target obsolete.
481 * config/i386/nm-gnu.h: Removed.
482 * config/i386/nm-i386gnu.h: New file.
483 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
484 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
486 * config/i386/tm-i386gnu.h: ... here. Removed.
487 * config/i386/xm-i386gnu.h: Removed.
488 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
489 (NAT_FILE): Set to nm-i386gnu.h.
490 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
491 * i386-tdep.c: New file.
492 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
493 (i386gnu-tdep.o): Specify dependencies.
495 2002-08-15 Mark Kettenis <kettenis@gnu.org>
497 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
498 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
499 Adjust a few comments to reflect reality a bit closer.
500 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
501 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
502 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
503 target_insert_watchpoint, target_remove_watchpoint):
505 * config/i386/nm-i386sco5.h: ... here.
506 (kernel_u_size): Add prototype. Improve a few comments and add
507 protection against multiple inclusion.
509 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
512 * uw-thread.c (SP_ARG0): Define if not already defined.
513 * config/i386/tm-i386.h (SO_ARG0): Remove define.
515 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
517 * config/i386/tm-i386.h: Don't include "regcache.h".
519 * i387-tdep.h (i387_print_float_info): New prototype.
520 * i387-tdep.c (print_i387_value, print_i387_ext,
521 print_i387_status_word, print_i387_control_word): Add `struct
522 ui_file *' argument and use it for output.
523 (i387_print_float_info): Renamed from i387_float_info. Add
524 `struct gdbarch *' and `struct ui_file *' arguments and use the
526 * i386-tdep.c: Include "i387-tdep.h".
527 (i386_gdbarch_init): Set print_float_info.
528 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
529 (FLOAT_INFO): Remove define.
531 2002-08-13 Michael Snyder <msnyder@redhat.com>
533 * mips-tdep.c (mips_push_arguments): Rename to
534 mips_eabi_push_arguments, and tune for EABI.
535 (MIPS_REGS_HAVE_HOME_P): Delete.
536 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
537 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
538 Delete references to mips_regs_have_home_p.
540 2002-08-14 Keith Seitz <keiths@redhat.com>
542 * Makefile.in (install-gdbtk): Create insight plugin directory.
543 Install plugins.tcl file.
545 2002-08-14 Keith Seitz <keiths@redhat.com>
547 * configure.in: Move SUBDIRS to near top of the file so that
548 --enable options may add things to it.
549 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
550 * configure: Regenerate.
552 2002-08-13 Michael Snyder <msnyder@redhat.com>
554 * mips-tdep.c (mips_o32o64_push_arguments): New function,
555 cloned from mips_push_arguments, tuned for o32/o64 ABI.
556 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
558 2002-08-13 Andrew Cagney <ac131313@redhat.com>
560 * vax-tdep.c (vax_get_saved_register): Delete function.
561 (vax_gdbarch_init): Update.
562 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
563 (ns32k_gdbarch_init): Update.
564 * alpha-tdep.c (alpha_get_saved_register): Delete function.
565 (alpha_gdbarch_init): Update.
567 2002-08-13 Andrew Cagney <cagney@redhat.com>
569 * regcache.c (init_regcache_descr): Overallocate the
570 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
571 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
573 (set_register_cached): Add range checking assertions. Use
576 2002-08-13 Mark Kettenis <kettenis@gnu.org>
578 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
579 numbers for MMX registers.
581 2002-08-13 Andrew Cagney <cagney@redhat.com>
583 * i386-tdep.c (i386_gdbarch_init): Use
584 generic_unwind_get_saved_register.
586 2002-08-13 Kevin Buettner <kevinb@redhat.com>
588 * procfs.c (procfs_can_use_hw_breakpoint): New function.
589 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
591 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
592 Delete. Add comment regarding this now-deleted target method.
594 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
596 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
597 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
598 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
599 real PC and the page number (if it's within the memory bank window).
600 (m68hc11_pseudo_register_write): Likewise when saving.
601 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
602 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
603 (m68hc11_register_raw_size): And use 32-bit for it.
604 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
605 16K memory bank is used by the prog; also use the virtual pc.
607 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
609 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
610 (m68hc11_gdbarch_init): Install it in gdbarch.
611 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
612 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
613 (MSYMBOL_SIZE): New for documentation.
614 (insn_return_kind): Enum to specify how a function returns.
615 (frame_extra_info): Cleanup and record the return mode.
616 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
617 register in address computation.
618 (m68hc11_get_return_insn): New to obtain the return instruction used
620 (m68hc11_frame_init_saved_regs): Take into account the return
621 instruction used by the function for far and interrupt functions.
622 (m68hc11_init_extra_frame_info): Take into account page register.
623 (m68hc11_frame_args_address): Adjust according to the return mode.
624 (show_regs): Print page register only when it's used.
626 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
628 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
629 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
630 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
632 (m68hc11_register_raw_size): Likewise.
634 2002-08-13 Andrew Cagney <cagney@redhat.com>
636 * i386-tdep.c (i386_register_name): Handle mmx registers.
637 (mmx_regnum_p): New function.
638 (i386_mmx_names): New array.
639 (mmx_num_regs): New variable.
640 (i386_pseudo_register_read): New function.
641 (i386_pseudo_register_write): New function.
642 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
644 * regcache.c (regcache_raw_read_unsigned): New function.
645 (regcache_raw_read_signed): New function.
646 * regcache.h (regcache_raw_read_unsigned): Declare.
647 (regcache_raw_read_signed): Declare.
649 2002-08-13 Andrew Cagney <cagney@redhat.com>
651 * regcache.c (regcache_raw_read_as_address): Delete function.
652 (regcache_cooked_read_signed): New function.
653 (regcache_cooked_read_unsigned): New function.
654 * regcache.h (regcache_cooked_read_signed): Declare.
655 (regcache_cooked_read_unsigned): Declare.
656 (regcache_raw_read_as_address): Delete declaration.
658 * blockframe.c (generic_read_register_dummy): Use
659 regcache_cooked_read_unsigned.
660 * i386-tdep.c (i386_extract_struct_value_address): Use
661 regcache_cooked_read_unsigned.
663 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
666 double sizes according to ELF ABI flags.
667 (gdbarch_tdep): Record elf_flags.
669 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
671 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
672 (m6812_prolog): They can appear in 68HC12 function prologue.
673 (m68hc11_frame_chain): Cleanup.
675 2002-08-12 Andrew Cagney <cagney@redhat.com>
677 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
679 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
680 (i386_linux_register_raw_size): Delete function.
681 (i386_linux_init_abi): Update.
682 * i386-tdep.c (i386_register_raw_size): Delete function.
683 (i386_register_byte): Delete function.
684 (i386_gdbarch_init): Update.
685 (i386_register_size): Delete array.
686 (i386_register_offset): Delete array.
688 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
689 (REGISTER_RAW_SIZE): Delete macro.
690 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
691 (REGISTER_BYTE): Delete macro.
693 2002-08-11 Aidan Skinner <aidan@velvet.net>
695 * ada-lang.c (ada_lookup_partial_symbol)
696 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
697 prototype names so that grep ^func works properly.
699 * ada-lang.c (ada_array_element_type)
700 (ada_lookup_partial_symbol): Fix typos in parameter list.
702 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
703 Fix prototype names so that grep ^func works properly.
705 2002-08-10 Andrew Cagney <cagney@redhat.com>
706 Elena Zannoni <ezannoni@redhat.com>
707 Martin M. Hunt <hunt@redhat.com>
709 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
710 (build_builtin_type_vec128i): Set the vector bit.
711 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
712 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
713 (build_builtin_type_vec64): New function.
714 (build_builtin_type_vec64i): New function.
715 (build_gdbtypes): Initialize builtin_type_vec64 and
718 2002-08-09 Andrew Cagney <cagney@redhat.com>
720 * regcache.c (regcache_dump): Compare the register offset
722 * arch-utils.c (generic_register_byte): New function.
723 * arch-utils.h (generic_register_byte): Declare.
724 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
725 * gdbarch.h, gdbarch.c: Regenerate.
727 2002-08-09 Andrew Cagney <cagney@redhat.com>
729 * regcache.c: Include "gdbcmd.h"
730 (_initialize_regcache): Add commands "maintenance print
731 registers", "maintenance print raw-registers" and "maintenance
732 print cooked-registers".
733 (enum regcache_dump_what): Define.
734 (dump_endian_bytes): New function.
735 (regcache_dump): New function.
736 (regcache_print): New function.
737 (maintenance_print_registers): New function.
738 (maintenance_print_raw_registers): New function.
739 (maintenance_print_cooked_registers): New function.
740 * Makefile.in (regcache.o): Update dependencies.
742 2002-08-09 Michael Snyder <msnyder@redhat.com>
744 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
745 (mips_push_arguments): Correct some comments. Use paddr_nz
746 for printing addresses in debug output. Replace static
747 allocation using MAX_REGISTER_RAW_SIZE with alloca.
748 (mips_n32n64_push_arguments): New function, cloned from
749 mips_push_arguments and tuned for the n32/n64 ABI.
750 (mips_push_register): Buffer needs dynamic allocation.
751 (mips_print_register): Ditto.
752 (do_gp_register_row): Ditto.
753 (mips_store_return_value): Ditto.
754 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
756 2002-08-09 Don Howard <dhoward@redhat.com>
758 * memattr.c (mem_info_command): Print special case of upper bound
759 as max CORE_ADDR + 1.
761 2002-08-08 Michael Snyder <msnyder@redhat.com>
763 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
764 returns structs by ref if they're too big to fit in two registers.
766 2002-08-09 Kevin Buettner <kevinb@redhat.com>
768 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
770 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
771 mips_find_saved_regs().
772 (mips_pop_frame): Likewise.
774 2002-08-09 Kevin Buettner <kevinb@redhat.com>
776 * blockframe.c (frame_saved_regs_register_unwind): Revise
777 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
780 2002-08-09 Grace Sainsbury <graces@redhat.com>
782 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
783 T-packets; the 'a' is not taken as a register number.
784 (remote_check_watch_resources, remote_stopped_by_watchpoint)
785 (remote_stopped_data_address): New functions; add to target
787 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
788 prototypes to match other implementations of this
789 function. replace integer argument with pointer -- the length
790 field in the Z-packet is the length of what is pointed to or 1 if
791 pointer is null. Add to target vector.
792 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
796 * remote.c (remote_wait): Add support to extract optional
797 watchpoint information from T-packet. Ignore unrecognized
798 optional info in T-packet.
799 (remote_async_wait): Ditto.
801 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
803 * cli/cli-dump.c: Change fopen modes to use binary open modes
804 as defined in include/fopen-bin.h throughout.
806 2002-08-08 Michael Snyder <msnyder@redhat.com>
808 * mips-tdep.c: Minor whitespace and indentation clean-ups.
810 2002-08-08 Kevin Buettner <kevinb@redhat.com>
812 * doublest.c (store_floating): Avoid floatformat_from_doublest()
813 assertion failure by returning early after a warning.
815 2002-08-08 Kevin Buettner <kevinb@redhat.com>
817 * mips-tdep.c (mips_find_saved_regs): Make static.
818 (mips_frame_init_saved_regs): New function.
819 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
820 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
821 (mips_find_saved_regs): Delete declaration.
823 2002-08-08 Grace Sainsbury <graces@redhat.com>
825 * remote.c (remote_wait, remote_async_wait): Change
826 thread_num from int to ULONGEST.
827 (unpack_varlen_hex): Change result parameter from
830 2002-08-08 Andrew Cagney <ac131313@redhat.com>
832 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
833 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
835 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
837 2002-08-08 Andrew Cagney <cagney@redhat.com>
839 * gcore.c (override_derive_stack_segment): Delete variable.
840 (preempt_derive_stack_segment): Delete function.
841 (derive_stack_segment): Delete function.
842 (default_derive_stack_segment): Renamed to derive_stack_segment.
843 (override_derive_heap_segment): Delete variable.
844 (preempt_derive_heap_segment): Delete function.
845 (derive_heap_segment): Delete function.
846 (default_derive_heap_segment): Rename to derive_heap_segment.
848 2002-08-06 Michael Snyder <msnyder@redhat.com>
850 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
851 * mips-tdep.c (mips_EABI_use_struct_convention,
852 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
853 New functions. (mips_use_struct_convention): Delete.
854 (mips_gdbarch_init): set use_gdbarch_convention.
856 2002-08-06 Michael Snyder <msnyder@redhat.com>
858 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
859 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
860 mips_o32_reg_struct_has_addr): New functions.
861 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
863 2002-08-07 Andrew Cagney <ac131313@redhat.com>
865 * regcache.c (pseudo_register): Delete function.
866 (fetch_register): Delete function.
867 (store_register): Delete function.
868 (regcache_raw_read, legacy_read_register_gen): Use
869 target_fetch_registers instead of fetch_register.
870 (legacy_write_register_gen, regcache_raw_write): Use
871 target_store_register instead of store_register.
872 (write_register_bytes): Ditto.
874 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
875 (STORE_PSEUDO_REGISTER): Delete.
876 * gdbarch.h, gdbarch.c: Regenerate.
878 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
880 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
881 write dump file binary.
883 2002-08-05 Michael Snyder <msnyder@redhat.com>
885 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
886 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
887 (mips_gdbarch_init): Set N32 target to be mips64.
889 2002-08-06 Kevin Buettner <kevinb@redhat.com>
891 * frame.c (find_saved_register): Break out of loop once saved
892 register address is found. Don't mention sparc in loop comment
895 2002-08-06 Kevin Buettner <kevinb@redhat.com>
897 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
898 mips_default_saved_regsize to 8.
900 2002-08-06 Andrew Cagney <ac131313@redhat.com>
902 * gcore.c: Do not include <sys/procfs.h>.
903 * Makefile.in (gcore.o): Update dependencies.
905 2002-08-06 Andrew Cagney <cagney@redhat.com>
907 * configure.tgt: Make arc-*-* obsolete.
908 * NEWS: Mention that arc-*-* has been identifed as obsolete.
909 * MAINTAINERS: Make arc-elf obsolete.
910 * arc-tdep.c: Make file obsolete.
911 * config/arc/arc.mt: Ditto.
912 * config/arc/tm-arc.h: Ditto.
914 2002-08-05 Theodore A. Roth <troth@verinet.com>
916 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
918 2002-08-05 Andrew Cagney <ac131313@redhat.com>
920 * mcore-tdep.c (mcore_gdbarch_init): Use
921 generic_unwind_get_saved_register instead of
922 generic_get_saved_register.
923 * v850-tdep.c (v850_gdbarch_init): Ditto.
924 * frv-tdep.c (frv_gdbarch_init): Ditto.
925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
926 * s390-tdep.c (s390_gdbarch_init): Ditto.
927 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
928 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
929 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
931 2002-08-05 Joel Brobecker <brobecker@gnat.com>
933 * objfiles.h: Add missing #include "symfile.h"
935 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
937 2002-08-04 Andrew Cagney <ac131313@redhat.com>
939 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
940 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
943 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
945 * NEWS: Cleanup and nitpick.
947 2002-08-03 Andrew Cagney <ac131313@redhat.com>
949 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
951 2002-08-03 Andrew Cagney <ac131313@redhat.com>
953 * Makefile.in (gdbtk-bp.o): Update dependencies.
954 (gdbtk-register.o): Ditto.
955 (gdbtk-varobj.o): Ditto.
957 2002-08-03 Andrew Cagney <cagney@redhat.com>
959 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
960 m68hc11_fetch_pseudo_register.
961 (m68hc11_pseudo_register_write): Replace
962 m68hc11_store_pseudo_register.
963 (m68hc11_gdbarch_init): Update.
965 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
967 * gdbarch.sh: Include "gdb_string.h".
968 * gdbarch.c: Regenerate.
970 * regcache.c: Include "gdb_string.h".
971 * ax-general.c: Ditto.
974 * fbsd-proc.c: Ditto.
977 * Makefile.in (regcache.o): Update dependencies.
978 (thread.o, gdbarch.o): Ditto.
979 (ax-general.o, gdbarch.o): Ditto.
980 (varobj.o, std-regs.o): Ditto.
981 (fbsd-proc.o): Specify dependencies.
983 2002-08-02 Andrew Cagney <cagney@redhat.com>
985 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
987 (regcache_cooked_write): Ditto.
989 2002-08-02 Andrew Cagney <ac131313@redhat.com>
991 * regcache.c (regcache_cooked_read): New function.
992 (regcache_cooked_write): New function.
993 (read_register_gen): Rewrite using regcache_cooked_read.
994 (write_register_gen): Rewrite using regcache_cooked_write.
996 * regcache.h (regcache_cooked_read, regcache_cooked_write):
999 2002-08-02 Andrew Cagney <cagney@redhat.com>
1001 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1002 Replace the architecture methods register_read and register_write.
1003 * gdbarch.h, gdbarch.c: Regenerate.
1004 * regcache.c (init_regcache_descr): Update.
1005 (read_register_gen): Update.
1006 (write_register_gen): Update.
1007 (supply_register): Update comment.
1009 * sh-tdep.c (sh_gdbarch_init): Update.
1010 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1011 `regcache' and `gdbarch' parameters. Make `buffer' a void
1012 pointer. Update code.
1013 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1014 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1015 void pointer. Update code.
1016 (sh64_register_write): Delete.
1017 (sh4_register_read): Delete.
1018 (sh64_register_read): Delete.
1019 (sh4_register_write): Delete.
1020 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1021 void pointer, `to' parameter a void pointer.
1022 (sh_sh64_register_convert_to_raw): Ditto.
1024 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1026 * mips-tdep.c (mips_register_virtual_type): Use architecture
1027 invariant return values.
1029 2002-08-01 Andrew Cagney <cagney@redhat.com>
1031 * linux-proc.c: Include "gdb_string.h".
1032 * Makefile.in (linux-proc.o): Update dependency list.
1034 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1036 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1039 2002-08-01 Grace Sainsbury <graces@redhat.com>
1041 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1042 to_insert_watchpoint, to_remove_watchpoint,
1043 to_stopped_by_watchpoint, to_stopped_data_address,
1044 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1045 target vecctor. Define their corresponding macros so they call
1048 * target.c: Add default and debug versions of for
1049 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1050 to_insert_watchpoint, to_remove_watchpoint,
1051 to_stopped_by_watchpoint, to_stopped_data_address,
1052 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1054 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1056 * mips-tdep.c (mips_register_virtual_type): New function.
1057 (mips_gdbarch_init): Register mips_register_virtual_type()
1058 with gdbarch machinery.
1059 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1060 this file instead of tm-bigmips.h.
1061 (MIPS_REGSIZE): Delete this macro.
1062 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1063 multiarch version in mips-tdep.c will be found.
1065 2002-08-01 Andrew Cagney <cagney@redhat.com>
1067 * NEWS: Menion that CHILL has been made obsolete.
1069 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1070 * gdbserver/Makefile.in: Ditto.
1071 * stabsread.c (read_range_type): Ditto.
1072 * gdbtypes.h: Ditto.
1073 * language.c (binop_type_check): Ditto.
1074 (binop_result_type): Ditto.
1075 (integral_type): Ditto.
1076 (character_type): Ditto.
1077 (string_type): Ditto.
1078 (boolean_type): Ditto.
1079 (structured_type): Ditto.
1080 (lang_bool_type): Ditto.
1081 (binop_type_check): Ditto.
1082 * language.h (_LANG_chill): Ditto.
1083 * dwarfread.c (set_cu_language): Ditto.
1084 * dwarfread.c (CHILL_PRODUCER): Ditto.
1085 * dwarfread.c (handle_producer): Ditto.
1086 * expression.h (enum exp_opcode): Ditto.
1087 * eval.c: Ditto for comments.
1088 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1089 * expprint.c (print_subexp): Ditto.
1090 (print_subexp): Ditto.
1091 * valops.c (value_cast): Ditto.
1092 (search_struct_field): Ditto.
1093 * value.h (COERCE_VARYING_ARRAY): Ditto.
1094 * symfile.c (init_filename_language_table): Ditto.
1095 (add_psymbol_with_dem_name_to_list): Ditto.
1096 * valarith.c (value_binop): Ditto.
1098 * valops.c (value_slice): Ditto.
1099 * symtab.h (union language_specific): Ditto.
1100 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1101 (SYMBOL_DEMANGLED_NAME): Ditto.
1102 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1103 * defs.h (enum language): Ditto.
1104 * symtab.c (got_symtab): Ditto.
1105 * utils.c (fprintf_symbol_filtered): Ditto.
1107 * ch-typeprint.c: Make file obsolete.
1108 * ch-valprint.c: Make file obsolete.
1109 * ch-lang.h: Make file obsolete.
1110 * ch-exp.c: Make file obsolete.
1111 * ch-lang.c: Make file obsolete.
1113 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1115 (TARGET_FLAGS_TO_PASS): Ditto.
1116 (CHILLFLAGS): Obsolete.
1118 (CHILL_FOR_TARGET): Obsolete.
1119 (CHILL_LIB): Obsolete.
1120 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1122 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1123 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1125 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1128 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1130 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1131 This does not change anything at the moment, but will be helpful
1132 later when full Ada support is integrated.
1134 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1136 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1139 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1141 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1142 and save it in a local variable. Use variable in later test.
1144 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1146 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1147 test. (Thanks to Daniel Jacobowitz.)
1149 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1151 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1152 (mips_abi_strings): Add "n64".
1153 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1155 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1157 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1158 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1160 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1162 * utils.c (host_pointer_to_address, address_to_host_pointer):
1163 Use gdb_assert() instead of explicit call to internal_error().
1165 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1167 * Makefile.in (rs6000-nat.o): Update dependencies.
1169 From Nicholas Duffek:
1170 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1171 (aix-thread.o): New rule.
1172 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1173 * config/powerpc/aix432.mh: New file.
1175 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1177 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1178 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1179 (fetch_core_registers, ppc_linux_supply_gregset)
1180 (ppc_linux_supply_fpregset): New functions.
1181 (ppc_linux_regset_core_fns): New.
1182 (_initialize_ppc_linux_tdep): Call add_core_fns.
1183 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1184 and ppc_linux_supply_gregset.
1185 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1186 (supply_fpregset): Call ppc_linux_supply_fpregset.
1187 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1189 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1191 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1193 * symtab.c (lookup_symbol): Demangle before lowercasing.
1195 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1197 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1199 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1200 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1201 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1202 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1204 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1205 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1206 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1207 (avr-tdep.o, mon960-rom.o): Ditto.
1208 (aout_stabs_gnu_h): Define.
1209 (symtab_h): Remove $(gdb_obstack_h).
1211 2002-07-30 Jim Blandy <jimb@redhat.com>
1213 Patch from David Carlton <carlton@math.stanford.edu>:
1214 * gdbinit.in: Move the `dir' commands that add GDB's own source
1215 directory to the search path to the end, so that the `gdb' source
1216 directory will be searched first.
1218 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1220 * gdb_obstack.h: New file.
1221 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1222 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1223 * objfiles.h: Include "gdb_obstack.h".
1224 * Makefile.in (gdb_obstack_h): Define.
1225 (symtab_h): Add $(gdb_obstack_h).
1226 (objfiles_h): Add $(gdb_obstack_h).
1228 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1229 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1230 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1231 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1232 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1233 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1234 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1235 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1237 * Makefile.in (bcache.o): Update dependencies.
1238 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1239 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1240 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1241 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1242 (stabsread.o, symfile.o, symmisc.o): Ditto.
1243 (symtab.o, typeprint.o, macroexp.o): Ditto.
1244 (macrotab.o, mdebugread.o): Ditto.
1245 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1246 (coff_ecoff_h, aout_aout64_h): Define.
1247 (aout_stabs_gnu_h, libaout_h): Define.
1249 2002-07-29 Andrew Cagney <cagney@redhat.com>
1251 * regcache.c (struct regcache_descr): Rename nr_registers to
1252 nr_cooked_registers. Revise comments describing the structure
1254 (init_regcache_descr): Update.
1255 (init_legacy_regcache_descr): Update.
1256 (read_register_gen, write_register_gen): When a cooked register in
1257 the raw register range, directly access the value from the raw
1260 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1262 * z8k-tdep.c: Do not include "obstack.h".
1263 * h8300-tdep.c, h8500-tdep.c: Ditto.
1264 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1265 * valprint.c, v850-tdep.c: Ditto.
1266 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1267 * mn10200-tdep.c: Ditto.
1269 * Makefile.in (z8k-tdep.o): Update dependencies.
1270 (m68hc11-tdep.o, valprint.o): Ditto.
1271 (v850-tdep.o, d10v-tdep.o): Ditto.
1272 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1273 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1274 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1275 (sh_opc_h, gdb_sim_sh_h): Define.
1276 (elf_sh_h, elf_bfd_h): Define.
1277 (opcode_m68hc11_h): Define.
1278 (OPCODES_SRC, OPCODES_DIR): define.
1279 (OPCODES): Use $(OPCODES_DIR).
1280 (gdb_sim_d10v_h): Rename sim_d10v_h.
1281 (gdb_sim_arm_h): Rename sim_arm_h.
1283 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1285 * utils.c (host_pointer_to_address, address_to_host_pointer):
1286 Change internal_error() message to indicate function responsible
1289 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1291 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1292 calls to local_hex_string_custom().
1294 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1296 * irix5-nat.c: Move IRIX shared library support from here...
1297 * solib-irix.c: ...to here. Revised substantially to work with
1298 generic solib framework.
1300 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1301 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1302 * mips-irix-tdep.c: New file.
1304 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1305 (mips-irix-tdep.o, solib-irix.o): New rules.
1306 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1308 * config/mips/irix6.mt (TDEPFILES): Likewise.
1309 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1311 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1313 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1314 disabled (via ``#if 0'') includes.
1316 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1318 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1319 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1320 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1321 Add support for the fpscr register.
1322 * rs6000-nat.c (regmap, fetch_inferior_registers)
1323 (store_inferior_registers, fetch_core_registers): Likewise.
1325 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1327 * rs6000-nat.c (language.h): Include.
1328 (special_regs): Delete this array.
1329 (regmap): New function.
1330 (fetch_register, store_register): Use regmap() to map gdb
1331 register numbers to ptrace register numbers. Also, use
1332 outputs from regmap() to make decisions regarding type of
1333 ptrace() call to make. In particular, don't compare against
1334 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1335 (fetch_inferior_registers, store_inferior_registers): Where
1336 possible, obtain register numbers from tdep struct. Don't
1337 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1338 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1339 (LAST_UISA_SP_REGNUM): Delete.
1341 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1343 * rs6000-nat.c (ppc-tdep.h): Include.
1344 (fetch_registers, store_register, fetch_core_registers): Don't
1345 access registers[] directly. Instead, use supply_register() or
1346 regcache_collect() as appropriate.
1347 (find_toc_address): Format hex address with local_hex_string().
1349 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1351 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1354 2002-07-24 Tom Tromey <tromey@redhat.com>
1356 * jv-exp.y: Marked all strings with _().
1357 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1359 (MethodInvocation, CastExpression, parse_number, yyerror,
1360 java_type_from_name, push_expression_name, yylex): Typo fixes.
1362 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1364 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1365 (tee_file_flush, tee_file_write, tee_file_fputs)
1366 (tee_file_isatty): New.
1367 * ui-file.h (tee_file_new): Add prototype.
1369 2002-07-24 Aidan Skinner <aidan@velvet.net>
1371 * ada-lang.c: Change k&r style function definitions to prototyped
1373 * ada-typeprint.c: Change k&r style function definitions to prototyped
1375 * ada-valprint.c: Change k&r style function definitions to prototyped
1378 2002-07-24 Andrew Cagney <cagney@redhat.com>
1380 * README: Remove reference to remote-bug.
1381 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1383 (m88k-nat.o): Delete rule.
1384 (m88k-tdep.o): Delete rule.
1385 (remote-bug.o): Delete rule.
1386 * MAINTAINERS: Mark as obsolete.
1387 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1388 * m88k-tdep.c: Make file obsolete.
1389 * config/m88k/m88k.mh: Ditto.
1390 * config/m88k/delta88v4.mh: Ditto.
1391 * config/m88k/delta88v4.mt: Ditto.
1392 * config/m88k/delta88.mt: Ditto.
1393 * config/m88k/delta88.mh: Ditto.
1394 * remote-bug.c: Ditto.
1395 * config/m88k/tm-delta88.h: Ditto.
1396 * config/m88k/nm-delta88v4.h: Ditto.
1397 * config/m88k/xm-delta88.h: Ditto.
1398 * config/m88k/xm-dgux.h: Ditto.
1399 * config/m88k/tm-m88k.h: Ditto.
1400 * config/m88k/nm-m88k.h: Ditto.
1401 * config/m88k/tm-delta88v4.h: Ditto.
1402 * m88k-nat.c: Ditto.
1403 * cxux-nat.c: Ditto.
1404 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1405 and m88*-*-* obsolete.
1406 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1409 2002-07-24 Andrew Cagney <cagney@redhat.com>
1411 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1412 constant. Same for local pointer variables.
1413 (extract_signed_integer): Ditto.
1414 * defs.h (extract_unsigned_integer): Update.
1415 (extract_signed_integer): Update.
1417 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1419 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1420 * gdbserver/configure: Regenerate.
1421 * gdbserver/config.in: Regenerate.
1423 2002-07-24 Andrew Cagney <cagney@redhat.com>
1425 * regcache.c (regcache_raw_write): Change buf parameter to a
1426 constant void pointer.
1427 (regcache_raw_read): Change buf parameter to a void pointer.
1428 (legacy_write_register_gen): Change myaddr parameter a constant
1430 (supply_register): Change val parameter to a const void pointer.
1431 * regcache.h (regcache_raw_write): Update declaration.
1432 (regcache_raw_read): Update declaration.
1433 (supply_register): Update declaration.
1435 2002-07-24 Tom Tromey <tromey@redhat.com>
1437 * defs.h (gdb_readline_wrapper): Declare.
1438 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1439 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1440 * top.c (gdb_readline_wrapper): New function.
1441 (command_line_input): Use it.
1443 2002-07-24 Andrew Cagney <cagney@redhat.com>
1445 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1446 regcache_read and regcache_write.
1447 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1448 * regcache.c: Update.
1449 * sh-tdep.c (sh64_push_arguments): Update comment.
1450 (sh_pseudo_register_read): Update.
1451 (sh_pseudo_register_write): Update.
1452 (sh4_register_read): Update.
1453 (sh4_register_write): Update.
1454 (sh64_pseudo_register_read): Update.
1455 (sh64_pseudo_register_write): Update.
1456 (sh64_register_read): Update.
1457 (sh64_register_write): Update.
1458 * i386-tdep.c (i386_extract_return_value): Update.
1459 (i386_extract_struct_value_address): Update.
1460 (i386_extract_return_value): Update.
1461 * blockframe.c (generic_read_register_dummy): Update.
1462 (generic_call_dummy_register_unwind): Update
1463 * infrun.c (write_inferior_status_register): Update.
1465 2002-07-23 Jim Blandy <jimb@redhat.com>
1467 * parser-defs.h (expression_context_pc): Make this extern.
1468 (Thanks to Michael Snyder.)
1470 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1472 GDB 5.2.1 released from 5.2 branch.
1473 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1474 * README: Update to mention 5.2.1.
1476 2002-07-23 Mark Salter <msalter@redhat.com>
1478 * remote.c (remote_read_bytes): Fix check for error.
1480 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1482 * aix-thread.c (language.h): Include.
1483 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1484 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1485 Print newlines at end of debug messages.
1486 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1487 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1489 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1491 * aix-thread.c (ppc-tdep.h): Include.
1492 (special_register_p): New function.
1493 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1494 (store_regs_user_thread): Use register number information from
1495 gdbarch_tdep struct instead of hardcoded offsets relative to
1496 FIRST_UISA_SP_REGNUM.
1497 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1498 special_register_p() instead of using FPLAST_REGNUM and
1499 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1500 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1501 will be MQ's register number.
1503 2002-07-22 Michael Snyder <msnyder@redhat.com>
1505 * aix-thread.c (ops): Rename to aix_thread_ops.
1506 (base_ops): Rename to base_target.
1507 (ops_attach): Rename to aix_thread_attach.
1508 (ops_detach): Rename to aix_thread_detach.
1509 (ops_resume): Rename to aix_thread_detach.
1510 (ops_wait): Rename to aix_thread_wait.
1511 (ops_kill): Rename to aix_thread_kill.
1512 (init_ops): Rename to init_aix_thread_ops.
1513 (ops_fetch_register): Rename to aix_thread_fetch_register.
1514 (ops_store_register): Rename to aix_thread_store_register.
1515 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1516 (ops_thread_alive): Rename to aix_thread_thread_alive.
1517 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1518 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1519 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1520 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1521 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1522 (store_regs_lib): Rename to store_regs_user_thread.
1523 (store_regs_kern): Rename to store_regs_kernel_thread.
1525 2002-07-22 Michael Snyder <msnyder@redhat.com>
1527 * aix-thread.c (ops_prepare_to_store): Eliminate.
1528 (init_ops): Don't initialize ops.prepare_to_store.
1529 (store_regs_kern): Pre-fetch register buffers from child,
1530 because some registers may not be in the cache. Copy
1531 regs from register cache only if they are cached.
1532 (store_regs_lib): Copy regs from register cache only
1534 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1535 fill_gprs64): Ditto.
1537 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1539 * aix-thread.c (gdb_assert.h): Include.
1540 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1541 register sizes (from register cache) match size of buffer holding
1543 (fill_sprs32): Change parameter types to match those in the ptrace()
1545 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1546 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1548 2002-07-22 Michael Snyder <msnyder@redhat.com>
1550 * aix-thread.c (supply_sprs64): Cosmetic change.
1551 (supply_sprs32): Cosmetic change.
1552 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1553 (fill_sprs64): Use regcache_collect instead of read_register.
1554 (store_regs_lib): Use regcache_collect instead of
1555 read_register. Use fill_sprs32 instead of fill_sprs64,
1556 if debugging a 32-bit architecture.
1557 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1558 out of the register cache, instead of passing a pointer into
1559 the register cache directly to ptrace. Use regcache_collect
1560 insteaad of read_register.
1561 (ops_prepare_to_store): Use target_read_registers instead
1562 of read_register_bytes.
1564 2002-07-20 Aidan Skinner <aidan@velvet.net>
1566 * MAINTAINERS: Add self under write after approval.
1568 2002-07-20 Aidan Skinner <aidan@velvet.net>
1570 * ada-tasks.c: Change k&r style function definitions to prototyped
1573 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1575 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1576 * x86-64-tdep.c: Include "objfiles.h".
1577 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1578 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1580 2002-07-17 Michal Ludvig <michal@suse.cz>
1582 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1583 (update_context): Initialise cfa variable.
1585 2002-07-17 Michael Snyder <msnyder@redhat.com>
1587 * aix-thread.c: Shorten some long lines.
1588 Bring comments into line with code spec.
1590 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1592 * infrun.c: Re-indent using gdb_indent.sh.
1594 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1596 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1597 Leave the indentation temporarily untouched, to minimize the diffs.
1599 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1601 * stabsread.c: Make os9k sections of the code obsolete,
1603 * stabsread.h: Make os9k sections of the code obsolete.
1605 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1607 * linux-low.c (regsets_store_inferior_registers): Add free()
1608 at the end of a loop to prevent memory leak.
1609 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1610 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1611 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1613 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1615 2002-07-17 Jim Blandy <jimb@redhat.com>
1617 * macrocmd.c (info_macro_command): Remove newline from error
1620 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1622 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1623 (sh_gdbarch_init): Use it for sh-dsp.
1625 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1627 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1628 64-bit DWARF2 format.
1630 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1632 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1633 <sys/proc.h> when not available.
1635 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1637 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1638 * stabsread.c: Make os9k sections of the code obsolete.
1639 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1640 * config/i386/i386os9k.mt: Make file obsolete.
1641 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1642 (COMMON_OBS): Remove os9kread.o
1643 (SFILES): Remove os9kread.c.
1644 (os9kread.o, remote-os9k.o): Make target obsolete.
1645 * remote-os9k.c: Make file obsolete.
1646 * os9kread.c: Make file obsolete.
1649 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1651 * NEWS: Mention that the FR30 has been made obsolete.
1652 * fr30-tdep.c: Make file obsolete.
1653 * config/fr30/tm-fr30.h: Ditto.
1654 * config/fr30/fr30.mt: Ditto.
1655 * configure.tgt: Make fr30-*-elf obsolete.
1656 * MAINTAINERS: Make fr30-elf obsolete.
1658 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1660 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1661 found is not inside a section.
1663 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1665 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1667 (pdc_realloc): Use xrealloc() instead of realloc().
1669 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1671 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1672 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1673 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1676 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1678 * aix-thread.c (ptrace_check): Eliminate goto.
1679 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1682 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1684 * aix-thread.c (gdbcmd.h): Include.
1685 (DEBUG, DBG, DBG2, dbg): Eliminate.
1686 (debug_aix_thread): New static global.
1687 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1688 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1689 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1690 invocations to DBG and DBG2 macros to test against
1691 ``debug_aix_thread'' and call fprintf_unfiltered().
1692 (_initialize_aix_thread): Add new command "set debug aix-thread".
1694 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1696 From Gerhard Tonn <TON@de.ibm.com>:
1697 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1698 instead of supply_register.
1700 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1702 * dwarf2cfi.c: Include "gdb_assert.h".
1703 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1705 (update_context): Do not use __func__. Add missing ``break''.
1706 (update_context): Do not use __func__.
1708 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1710 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1711 and its setting. Set gdbarch instruction printing functions
1712 directly. For non-rs6000 case use new function
1713 gdb_print_insn_powerpc.
1714 (gdb_print_insn_powerpc): New function.
1716 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1718 * NEWS: Mention that the d30v has been marked obsolete.
1719 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1720 * configure.tgt: Mark d30v-*-* as obsolete.
1721 * d30v-tdep.c: Mark file as obsolete.
1722 * config/d30v/d30v.mt: Ditto.
1723 * config/d30v/tm-d30v.h: Ditto.
1725 2002-07-13 Aidan Skinner <aidan@velvet.net>
1727 * ada-tasks.c (add_task_entry): replace calls to
1728 malloc() with xmalloc
1729 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1731 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1732 ada_finish_decode_line_1, all_sals_for_line
1733 ada_breakpoint_rewrite): replace calls to free() with xfree()
1735 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1737 From Nicholas Duffek (with minor changes by Martin Hunt,
1738 Louis Hamilton, and Kevin Buettner):
1739 * aix-thread.c: New file.
1741 2002-07-12 Petr Sorfa <petrs@caldera.com>
1743 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1744 complaint for invalid attribute class or form.
1745 (read_func_scope): DW_AT_frame_base
1746 better handling of DW_AT_block*.
1747 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1748 better handling of DW_AT_block*.
1749 (read_common_block): DW_AT_location
1750 better handling of DW_AT_block*.
1751 (read_partial_die): DW_AT_location better handling
1753 (new_symbol): DW_AT_external better handling of
1754 DW_AT_block*. Proper initialization of variable
1756 (attr_form_is_block): New function that returns true
1757 if the attribute's form is of DW_FORM_block*.
1759 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1761 * valops.c (find_method_list): Remove comment about
1762 removed STATIC_MEMFUNCP argument.
1763 (value_find_oload_method_list): Likewise.
1765 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1767 From Nicholas Duffek:
1768 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1769 target_new_objfile_hook.
1771 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1773 From Nicholas Duffek:
1774 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1777 2002-07-12 Andrew Cagney <cagney@redhat.com>
1779 * MAINTAINERS: Mention --enable-sim-build-warnings.
1780 (m68hc11-elf): Disable sim build warnings.
1781 (m32r-elf): Mark as broken obsolete candidate.
1782 (x86_64-linux-gnu): Mark as buildable with -Werror.
1783 (arm-elf): Change -w to ``,'' which enables warnings but not
1786 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1788 * bcache.h: Update copyright.
1789 (struct bstring, struct bcache): Move definition to "bcache.c".
1790 Replaced by opaque declaration.
1791 (bcache_xfree): Replace free_bcache.
1792 (bcache_xmalloc, bcache_memory_used): Declare.
1794 * bcache.c: Update copyright.
1795 (struct bstring, struct bcache): Moved to here from "bcache.h".
1797 (bcache_xmalloc, bcache_memory_used): New functions.
1798 (bcache_xfree): Replace function free_bcache.
1800 * Makefile.in (objfiles.o): Add $(bcache_h).
1801 (objfiles_h): Remove $(bcache_h).
1802 (symfile.o): Add $(bcache_h).
1804 * symmisc.c: Update copyright.
1805 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1806 (print_objfile_statistics): Use bcache_memory_used.
1808 * symfile.c: Include "bcache.h".
1809 (reread_symbols): Use bcache_xfree.
1810 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1811 (add_psymbol_to_list): Pass psymbol_cache by value.
1812 (add_psymbol_with_dem_name_to_list): Ditto.
1814 * objfiles.h: Update copyright.
1815 (struct bcache): Declare opaque. Do not include "bcache.h".
1816 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1818 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1820 * objfiles.c: Include "bcache.h". Update copyright.
1821 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1823 (free_objfile): Use bcache_xfree.
1825 2002-07-11 Grace Sainsbury <graces@redhat.com>
1827 * monitor.c (monitor_fetch_register): Make name a constant.
1828 (monitor_store_register): Same.
1830 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1832 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1833 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1834 (finish_block) For non-function blocks, hash the symbol table. For
1835 function blocks, mark the symbol table as unhashed.
1836 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1837 (msymbol_hash_iw): Likewise.
1838 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1840 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1841 (lookup_minimal_symbol): Likewise for both.
1842 * symtab.h (struct block): Add `hashtable' flag. Comment the
1844 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1845 (ALL_BLOCK_SYMBOLS): Update.
1846 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1847 (struct symbol): Add `hash_next' pointer.
1848 * symtab.c (lookup_block_symbol): Search using the hash table when
1850 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1851 (search_symbols, find_addr_symbol): Likewise.
1853 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1854 (read_dst_symtab): Likewise.
1855 * jv-lang.c (get_java_class_symtab): Likewise.
1856 * mdebugread.c: Include "gdb_assert.h".
1857 (shrink_block): Assert that the block being modified is not hashed.
1858 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1859 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1861 (dump_symtab): Recognize hashed blocks.
1862 * printcmd.c (print_frame_args): Assert that function blocks do not
1863 have hashed symbol tables.
1864 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1865 (fill_in_ada_prototype, debug_print_block): Likewise.
1866 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1868 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1870 * stack.c (print_frame): Use result of frame_address_in_block()
1871 instead of fi->pc when evaluating symbols.
1872 (backtrace_command_1): Ditto.
1874 2002-07-11 Andrew Cagney <cagney@redhat.com>
1876 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1879 * arm-tdep.c (arm_register_name): Make return type constant.
1881 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1883 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1885 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1886 * s390-tdep.c (s390_fp_regnum): Ditto.
1887 (s390_read_fp): Ditto.
1888 (s390_pop_frame): Ditto.
1889 (_initialize_s390_tdep): Ditto.
1890 * remote.c (get_remote_state): Ditto.
1891 * procfs.c (mappingflags): Ditto.
1892 * memattr.c (_initialize_mem): Ditto.
1893 * mcore-tdep.c (mcore_pop_frame): Ditto.
1894 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1895 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1896 * language.c (set_case_str): Ditto.
1897 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1898 * frv-tdep.c (new_variant): Ditto.
1899 (frv_stopped_data_address): Ditto.
1900 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1901 (context_alloc): Ditto.
1902 (frame_state_alloc): Ditto.
1903 (unwind_tmp_obstack_init): Ditto.
1904 (unwind_tmp_obstack_free): Ditto.
1905 (cfi_read_fp): Ditto.
1906 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1907 (cris_pop_frame): Ditto.
1908 * c-lang.c (scanning_macro_expansion): Ditto.
1909 (finished_macro_expansion): Ditto.
1910 (c_preprocess_and_parse): Ditto.
1911 * gdbarch.sh: Ditto.
1912 * gdbarch.h, gdbarch.c: Regenerate.
1913 * config/mn10200/tm-mn10200.h: Adjust indentation.
1914 * target.c: Adjust indentation.
1915 * symtab.h: Adjust indentation.
1916 * stabsread.h: Adjust indentation.
1917 * remote-es.c: Adjust indentation.
1918 * os9kread.c: Adjust indentation.
1920 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1922 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1923 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1925 2002-07-10 Grace Sainsbury <graces@redhat.com>
1927 * NEWS: Mention m68k, mcore multi-arching.
1928 * MAINTAINERS: Change status of m68k, mcore to reflect
1931 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1933 * valops.c (find_overload_match): Free oload_syms.
1935 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1937 Define HAVE_SYS_PROC_H if sys/proc.h exists
1938 * configure.in: Add check for sys/proc.h
1939 * config.in: Regenerate.
1940 * configure: Regenerate.
1942 2002-07-09 Grace Sainsbury <graces@redhat.com>
1944 * config/m68k/tm-m68k.h: Remove macros wrapped in
1945 #if !GDB_MULTI_ARCH.
1947 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1949 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1950 (perror_with_name, remote_close, remote_open, expect, play): Static.
1952 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1954 * config.in, configure: Regenerate.
1956 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1958 * dwarf2cfi.c: Include "gcore.h".
1959 (execute_stack_op): Fix implementation of the
1960 DW_OP_deref and DW_OP_deref_size operators by letting do their
1961 lookup in the target.
1963 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1965 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1966 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1969 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1971 Fix PR gdb/595, gdb/602
1972 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1973 Don't call value_cast, just read the vtable pointer; update comments
1976 2002-07-05 Grace Sainsbury <graces@redhat.com>
1978 * config/mcore/tm-mcore.h: Remove file.
1979 * config/mcore/mcore.mt: Remove definition of TM_FILE
1980 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1982 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1984 * i386bsd-tdep.c: Include "gdb_string.h".
1986 2002-07-04 Grace Sainsbury <graces@redhat.com>
1988 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1989 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1991 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1992 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1993 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1994 (RETVAL_REGNUM): Move macros from tm-mcore.h
1995 (mcore_reg_struct_has_addr): New function.
1996 (mcore_gdbarch_init): Added initializations for the macros removed
1999 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2001 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2002 traditonal string branding within the ELF header.
2004 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2006 * symtab.c (remove_params): New function.
2007 (make_symbol_overload_list): Use it instead of cplus_demangle.
2008 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2010 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2012 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2014 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2016 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2017 and tdep->sigtramp_end.
2018 * i386obsd-nat.c: New file.
2019 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2021 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2022 Don't call get_current_frame().
2024 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2026 * i386-nat.c (child_post_startup_inferior): New function
2027 calling i386_cleanup_dregs if
2028 I386_USE_GENERIC_WATCHPOINTS is defined.
2029 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2030 conditional to acknowledge that i386-nat.c has its
2031 own child_post_startup_inferior function.
2033 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2035 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2036 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2037 instead of MAX_REGISTER_RAW_SIZE.
2038 (i386_extract_return_value, i386_extract_struct_value_address):
2039 Convert to use regcache.
2040 (i386_gdbarch_init): Set max_register_raw_size and
2041 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2042 Set extract_return_value and extract_struct_value_address instead
2043 of their deprecated variants.
2045 Convert i386 target to generic dummy frames.
2046 * i386-tdep.c: Include "symfile.h".
2047 (i386_frameless_signal_p): Consider a function to be frameless if
2048 the pc points at the first instruction of the function.
2049 (i386_frame_chain): Handle (generic) call dummies.
2050 (i386_frame_saved_pc): Likewise.
2051 (i386_frame_init_saved_regs): Remove code dealing with call
2052 dummies on the stack.
2053 (i386_push_dummy_frame): Removed.
2054 (i386_call_dummy_words): Removed.
2055 (i386_fix_call_dummy): Removed.
2056 (i386_push_return_address): New function.
2057 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2058 parameter, and don't call get_current_frame.
2059 (i386_pop_frame): New function.
2060 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2061 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2062 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2063 call_dummy_length to 0, set call_dummy_words to NULL, set
2064 sizeof_call_dummy_words to 0, set fix_call_dummy to
2065 generic_fix_call_dummy, set pc_in_call_dummy to
2066 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2067 generic_push_dummy_frame, set push_return_address to
2068 i386_push_return_address and set frame_chain_valid to
2069 generic_file_frame_chain_valid.
2071 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2073 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2074 byte offsets instead of an array of indexes.
2075 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2077 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2079 * gdbarch.sh (struct regcache): Add opaque declaration.
2080 (EXTRACT_RETURN_VALUE): New architecture method.
2081 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2082 * gdbarch.h, gdbarch.c: Regenerate.
2083 * arch-utils.c (legacy_extract_return_value): New function.
2084 * arch-utils.h (legacy_extract_return_value): Declare.
2085 * values.c (value_being_returned): Re-enable code handling
2086 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2087 deprecated_grub_regcache_for_registers call to block handling
2088 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2089 (EXTRACT_RETURN_VALUE): Do not define.
2091 2002-07-03 Grace Sainsbury <graces@redhat.com>
2093 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2094 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2095 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2096 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2097 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2098 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2099 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2100 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2101 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2102 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2103 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2104 argument so the function fits the prototype in the architecture
2106 (mcore_pop_frame): Remove argument so the function fits the
2107 prototype. Use get_current_frame instead of the argument.
2108 (mcore_push_arguments): Change type of struct_return so the
2109 function can be used in the architecture vector.
2110 (mcore_store_struct_return): Add.
2111 (mcore_frame_init_saved_regs): Add.
2112 (mcore_gdbarch_init): Add function calls to replace the macros
2113 removed from tm-mcore.h
2115 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2117 * infcmd.c (print_return_value): Remove compatibility code calling
2118 deprecated_grub_regcache_for_registers.
2120 * values.c: Include "regcache.h".
2121 (value_being_returned): Update. Use
2122 deprecated_grub_regcache_for_registers to extract the register
2124 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2125 ``struct regcache''.
2126 * Makefile.in (values.o): Add dependency on $(regcache_h).
2128 * inferior.h (run_stack_dummy): Change type of second parameter to
2129 a ``struct regcache''.
2130 * valops.c (hand_function_call): Change type of retbuf to ``struct
2131 regcache''. Allocate using regcache_xmalloc, clean using
2132 make_cleanup_regcache_xfree.
2133 * infcmd.c (run_stack_dummy): Update. Use
2134 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2136 * regcache.c (do_regcache_xfree): New function.
2137 (make_cleanup_regcache_xfree): New function.
2138 * regcache.h (make_cleanup_regcache_xfree): Declare.
2140 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2142 * event-top.c (command_line_handler): Don't read past
2143 beginning of buffer.
2145 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2147 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2149 (varobj_create): Store frame_id for root.
2150 (varobj_gen_name): Use xasprintf.
2151 (varobj_update): Save and restore frame using get_frame_id() and
2153 (create_child): Use xasprintf.
2154 (new_root_variable): Initialize frame_id.
2155 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2156 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2157 to prevent memory leak.
2159 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2161 * valops.c (hand_function_call): Move declaration of retbuf to
2162 start of function, allocate using malloc, add a cleanup but before
2163 the inf_status cleanup, cleanup the buffer. Rename local variable
2164 old_chain to inf_status_cleanup.
2166 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2168 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2170 * cli/cli-decode.c (cmd_func_p): New function.
2171 (cmd_func): New function.
2173 * command.h: Add cmd_func() and cmd_func_p().
2175 2002-07-03 Grace Sainsbury <graces@redhat.com>
2177 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2178 (REGISTER_SIZE): Remove.
2179 (MAX_REGISTER_RAW_SIZE): Remove.
2180 (REGISTER_VIRTUAL_TYPE): Remove.
2181 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2182 (REGISTER_NAME): Remove.
2183 (USE_GENERIC_DUMMY_FRAMES): Remove.
2184 (CALL_DUMMY): Remove.
2185 (CALL_DUMMY_START_OFFSET): Remove.
2186 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2187 (CALL_DUMMY_LOCATION): Remove.
2188 (FIX_CALL_DUMMY): Remove.
2189 (CALL_DUMMY_ADDRESS): Remove.
2190 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2191 (SAVE_DUMMY_FRAME_TOS): Remove.
2192 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2193 (mcore_register_virtual_type): New function.
2194 (mcore_register_byte): New function.
2195 (mcore_register_size): New function.
2196 (mcore_register_name): New function.
2197 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2198 macros removed from tm-mcore.h.
2199 (mcore_dump_tdep): Add.
2200 (_initialize_mcore_tdep): Add gdbarch_register call.
2202 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2204 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2205 frameless_look_for_prologue, such that we actually call this
2208 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2210 * frame.h (frame_address_in_block): New function.
2212 * blockframe.c (frame_address_in_block): New function extracted
2213 from get_frame_block().
2214 (get_frame_block): Use frame_address_in_block().
2215 (block_innermost_frame): Use frame_address_in_block() to match
2216 the frame pc address against the block boundaries rather than
2217 the frame pc directly. This prevents a failure when a frame pc
2218 is actually a return-address pointing immediately after the end
2221 2002-07-02 Grace Sainsbury <graces@redhat.com>
2223 * MAINTAINERS: Add self under write after approval.
2225 2002-07-02 Grace Sainsbury <graces@redhat.com>
2227 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2228 used in architecture vector. The default is
2229 m68k_local_breakpoint_from_pc.
2230 (m68k_local_breakpoint_from_pc): Add.
2231 (enum): Add register numbers from tm-m68k.h.
2232 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2234 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2235 GDB_MULTI_ARCH_PARTIAL.
2236 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2237 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2239 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2240 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2241 to enum in m68k-tdep.c
2243 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2245 * solib-osf.c (open_map): Compute the list of shared libraries
2246 loaded by the inferior, rather than the list of libraries loaded
2247 by GDB itself. Otherwise, GDB ends up reading the symbols from
2248 the wrong shared libraries...
2250 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2252 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2253 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2255 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2257 (FRAMELESS_SIGNAL): Remove function.
2258 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2259 i386_linux_saved_pc_after_call): Removed.
2260 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2261 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2262 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2264 * i386-tdep.c (i386_frameless_signal_p): New function.
2265 (i386_frame_chain): Deal with frameless signals.
2266 (i386_sigtramp_saved_sp): New function.
2267 (i386_frame_saved_pc): Deal with frameless signals.
2268 (i386_saved_pc_after_call): Make sure the correct value is
2269 returned just after entry into a sigtramp.
2270 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2271 i386fbsd4_sc_sp_offset): New variables.
2272 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2273 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2274 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2275 similiar to what we already did for sc_pc_offset.
2276 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2279 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2281 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2283 * config/i386/tm-x86-64linux.h: New.
2284 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2286 * config/i386/nm-x86-64.h: Rename to ...
2287 * config/i386/nm-x86-64linux.h: ... this one.
2288 * config/i386/x86-64linux.mh: Reflect the above change.
2290 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2292 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2293 with sigcontext_addr. Add sc_sp_offset.
2294 (i386bsd_sigtramp_saved_pc): Remove prototype.
2295 (i386bsd_sicontext_addr): Add prototype.
2296 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2297 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2298 (i386_svr4_sigtramp_saved_pc): Removed.
2299 (i386_svr4_sigcontext_addr): New function.
2300 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2301 Initialize tdep->sigcontext_addr instead. Initialize
2302 tdep->sc_pc_offset and tdep->sc_sp_offset.
2303 (i386_gdbarch_init): Likewise.
2304 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2306 (i386bsd_sigtramp_saved_pc): Remove function.
2307 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2308 Initialize tdep->sigcontext_addr instead. Initialize
2310 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2311 of tdep->sigtramp_saved_pc.
2312 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2313 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2316 * i386-tdep.c (i386_frameless_function_invocation,
2317 i386_frame_num_args, i386_frame_init_saved_regs,
2318 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2319 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2320 i386_extract_return_value, i386_store_return_value,
2321 i386_extract_struct_value_address, i386_register_virtual_type,
2322 i386_register_convertible, i386_register_convert_to_virtual,
2323 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2324 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2327 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2329 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2331 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2332 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2333 this macro. Include "value.h".
2335 2002-06-30 Aidan Skinner <aidan@velvet.net>
2337 * ada-exp.tab.c: remove as it's a generated file
2338 * ada-lex.c: remove as it's a generated file
2340 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2342 * config/i386/tm-i386.h (struct frame_info, struct
2343 frame_saved_regs, struct value, struct type): Remove forward
2346 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2347 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2348 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2349 (FILL_FPXREGSET): Define.
2351 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2353 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2354 i[3456]86-*-netbsd* case.
2355 * config/i386/tm-obsd.h: Removed.
2356 * config/i386/obsd.mt: Removed.
2357 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2359 (MH_CFLAGS): Add -DYYDEBUG=0.
2361 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2362 i386nbsd_sc_pc_offset on OpenBSD too.
2364 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2365 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2366 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2368 * i386bsd-tdep.c: Include "arch-utils.h".
2369 (i386bsd_aout_in_solib_call_trampoline): New function.
2370 (i386bsd_init_abi): Set in_solib_call_trampoline to
2371 i386bsd_aout_in_solib_call_trampoline.
2372 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2373 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2375 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2377 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2378 (struct obstack, struct bcache): Add opaque declarations.
2379 * Makefile.in (macrotab_h): Update
2381 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2383 * blockframe.c (generic_find_dummy_frame): Change return type to
2384 ``struct regcache''.
2385 (struct dummy_frame): Replace field ``registers'' with regcache, a
2386 struct regcache object.
2387 (generic_find_dummy_frame): Update.
2388 (generic_push_dummy_frame): Update. Use regcache_xfree,
2389 regcache_xmalloc and regcache_cpy.
2390 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2392 (deprecated_generic_find_dummy_frame): Update.
2393 (generic_read_register_dummy): Update. Use
2394 regcache_read_as_address.
2395 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2396 (generic_get_saved_register): Update. Use regcache_read.
2398 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2400 * Makefile.in (objfiles_h): Add $(bcache_h).
2401 * objfiles.h: Include "bcache.h".
2403 * Makefile.in (symtab_h): Remove $(bcache_h).
2404 * symtab.h: Do not include "bcache.h".
2406 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2408 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2409 generic_func_frame_chain_valid.
2411 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2413 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2414 * config/i386/tm-fbsd.h: Likewise.
2416 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2418 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2419 generic_unwind_get_saved_register.
2421 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2423 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2424 * regcache.c (supply_register): Add missing argument to
2425 register_buffer call.
2427 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2429 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2430 Solaris /bin/grep does not not like it. From Peter Schauer.
2432 2002-06-26 Tom Tromey <tromey@redhat.com>
2434 * command.h (add_setshow_cmd): Declare.
2435 (add_setshow_cmd_full): Declare.
2436 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2437 returns void. Use add_setshow_cmd_full.
2438 (add_setshow_cmd_full): New function.
2439 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2440 (add_setshow_boolean_cmd): Likewise.
2442 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2444 * config/vax/tm-vax.h: Protect from multiple inclusion.
2445 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2446 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2447 * config/vax/tm-vaxbsd.h: ...here. New file.
2448 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2450 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2452 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2453 (BELIEVE_PCC_PROMOTION): Remove.
2454 (AP_REGNUM): Move to...
2455 * config/vax/nm-vax.h: ...here.
2456 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2457 (vax_breakpoint_from_pc): New function.
2458 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2459 and gdbarch_believe_pcc_promotion.
2461 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2463 * Makefile.in (vax_tdep_h): Define.
2464 (vax-tdep.o): Use $(vax_tdep_h).
2465 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2466 (vax_dump_tdep): New function.
2467 (_initialize_vax_tdep): Register vax_dump_tdep.
2468 * vax-tdep.h: Include osabi.h.
2469 (struct gdbarch_tdep): New.
2471 2002-06-26 Andrew Cagney <cagney@redhat.com>
2473 * frame.h (deprecated_generic_find_dummy_frame): Rename
2474 generic_find_dummy_frame.
2475 * blockframe.c (generic_find_dummy_frame): Make static.
2476 (deprecated_generic_find_dummy_frame): New function.
2477 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2478 generic_find_dummy_frame with deprecated_find_dummy_frame.
2479 (sh64_nofp_frame_init_saved_regs): Ditto.
2480 (sh_fp_frame_init_saved_regs): Ditto.
2481 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2482 (s390_frame_chain): Ditto.
2483 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2485 2002-06-26 Grace Sainsbury <graces@redhat.com>
2487 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2488 gdbarch vector are at the top.
2490 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2491 (FRAME_ARGS_ADDRESS): Remove.
2492 (FRAME_LOCALS_ADDRESS): Remove.
2493 (FRAME_NUM_ARGS): Remove.
2494 (FRAME_ARGS_SKIP): Remove.
2495 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2496 (m68k_gdbarch_init): Add gdbarch initializations for macros
2497 undefined in tm-m68k.h
2499 2002-06-26 Grace Sainsbury <graces@redhat.com>
2501 * monitor.h: Add the function regname to monitor_ops
2502 structure. This way NUM_REGS does not have to be a constant.
2503 * monitor.c (monitor_fetch_register): Added support for regname
2504 function. The function is called if the array regnames is NULL.
2505 (monitor_store_register): Same.
2506 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2508 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2509 cpu32bug_cmds.regname to point to new function.
2510 * abug-rom.c (abug_regname): Same as above.
2511 (init_abug_cmds): Same.
2512 * dbug-rom.c (dbug_regname): Same as above.
2513 (init_dbug_cmds): Same.
2514 * remote-est.c (est_regname): Same.
2515 (init_est_cmds): Same.
2516 * rom68k-rom.c (rom68k_regname): Same.
2517 (init_rom68k_cmds): Same.
2519 2002-06-25 Tom Tromey <tromey@redhat.com>
2521 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2523 2002-06-25 Andrew Cagney <cagney@redhat.com>
2525 * infrun.c (stop_registers): Change variable's type to ``struct
2527 (xmalloc_inferior_status): Delete function.
2528 (free_inferior_status): Delete function.
2529 (normal_stop): Use regcache_cpy.
2530 (struct inferior_status): Change type of fields ``stop_registers''
2531 and ``registers'' to ``struct regcache''.
2532 (write_inferior_status_register): Use regcache_write.
2533 (save_inferior_status): Instead of calling
2534 xmalloc_inferior_status, allocate the inf_status buffer directly.
2535 Use regcache_dup_no_passthrough and regcache_dup to save the
2537 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2538 Replace the stop_registers regcache instead of overriding it. Use
2539 regcache_xfree. Instead of calling free_inferior_status, xfree
2540 the buffer directly.
2541 (discard_inferior_status): Use regcache_xfree. Instead of calling
2542 free_inferior_status, xfree the buffer directly.
2543 (build_infrun): Use regcache_xmalloc.
2544 (_initialize_infrun): Delete redundant call to build_infrun.
2546 * Makefile.in (infcmd.o): Add $(regcache_h).
2548 * infcmd.c: Include "regcache.h".
2549 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2550 obtain the address of `stop_registers' register buffer.
2551 (print_return_value): Ditto.
2553 * inferior.h (struct regcache): Add opaque declaration.
2554 (stop_registers): Change variable's declared type to ``struct
2557 2002-06-24 Tom Tromey <tromey@redhat.com>
2559 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2560 * target.c (initialize_targets): Fixed typo in
2561 trust-readonly-sections `show' documentation.
2563 * main.c: Marked all strings with _().
2565 2002-06-24 Don Howard <dhoward@redhat.com>
2567 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2568 that means max CORE_ADDR+1.
2569 (lookup_mem_region): Ditto.
2570 (mem_info_command): Ditto.
2572 2002-06-24 Grace Sainsbury <graces@redhat.com>
2574 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2575 (REGISTER_BYTES_OK): Remove.
2576 (REGISTER_BYTES): Remove.
2577 (STORE_STRUCT_RETURN): Remove.
2578 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2579 (STORE_RETURN_VALUE): Remove.
2580 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2581 (FRAME_CHAIN): Remove.
2582 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2583 (FRAME_SAVED_PC): Remove.
2584 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2585 (m68k_store_struct_return): Add.
2586 (m68k_deprecated_extract_return_value): Add.
2587 (m68k_deprecated_extract_struct_value_address): Add.
2588 (m68k_store_return_value): Add.
2589 (m68k_frame_chain): Add.
2590 (m68k_frameless_function_invocation): Add.
2591 (m68k_frame_saved_pc): Add.
2592 (m68k_gdbarch_init): added set_gdbarch calls for new
2593 functions and deleted macros.
2595 2002-06-23 Tom Tromey <tromey@redhat.com>
2597 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2598 (ALLDEPFILES): Likewise.
2599 (udiheaders): Removed.
2600 (udip2soc.o): Likewise.
2601 (udi2go32.o): Likewise.
2603 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2605 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2607 * infrun.c (_initialize_infrun): Delete unnecessary call to
2610 * regcache.h: Update comments describing the regcache_cpy family
2612 (regcache_save, regcache_restore): Delete declaration.
2613 (regcache_save_no_passthrough): Delete declaration.
2614 (regcache_restore_no_passthrough): Delete declaration.
2615 * regcache.c (regcache_save): Delete function.
2616 (regcache_save_no_passthrough): Delete function.
2617 (regcache_restore): Delete function.
2618 (regcache_restore_no_passthrough): Delete function.
2620 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2622 * config/m68k/tm-m68k.h: Fix typo.
2623 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2624 (m68k_frame_init_saved_regs): Declare.
2626 2002-06-21 Jim Blandy <jimb@redhat.com>
2628 Remove some vestiges of Harris 88k support.
2629 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2630 register numbering quirk.
2631 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2632 odd symbols occurring in Harris 88k ELF targets.
2634 2002-06-21 Tom Tromey <tromey@redhat.com>
2636 * gdb_locale.h: New file.
2637 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2638 (defs_h): Added gdb_locale.h.
2639 * configure, config.in: Rebuilt.
2640 * configure.in (PACKAGE): Define.
2641 * defs.h: Include gdb_locale.h.
2642 * main.c (captured_main): Call setlocale, bindtextdomain,
2645 2002-06-21 Dave Brolley <brolley@redhat.com>
2647 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2648 * config/frv/frv.mt: New file.
2649 * config/frv/tm-frv.h: New file.
2650 * configure.tgt: Support frv-*-*.
2651 * Makefile.in (frv-tdep.o): New target.
2652 * frv-tdep.c: New file.
2653 * NEWS: Mention frv.
2655 2002-06-21 Dave Brolley <brolley@redhat.com>
2657 * MAINTAINERS: Add self to "Write After Approval" list.
2659 2002-06-21 Grace Sainsbury <graces@redhat.com>
2661 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2662 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2663 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2664 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2665 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2667 * m68k-tdep.c: Include arch-utils.h
2668 (m68k_register_raw_size): Add.
2669 (m68k_register_virtual_size): Add.
2670 (m68k_register_virtual_type): Add.
2671 (m68k_register_name): Add.
2672 (m68k_stack_align): Add.
2673 (m68k_register_byte): Add.
2674 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2677 2002-06-21 Grace Sainsbury <graces@redhat.com>
2679 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2680 m68k_find_saved_regs.
2681 (m68k_pop_frame): Removed saved_regs structure, and replaced
2682 references to it with frame->saved_regs.
2683 (m68k_gdbarch_init): Added function calls to initialize the
2685 (m68k_fix_call_dummy): Add.
2686 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2687 (CALL_DUMMY): Remove.
2688 (CALL_DUMMY_LENGTH): Remove.
2689 (CALL_DUMMY_START_OFFSET): Remove.
2690 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2691 (FIX_CALL_DUMMY): Remove.
2692 (PUSH_DUMMY_FRAME): Remove.
2693 (POP_FRAME): Remove.
2695 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2697 * parse.c (parse_fprintf): New function used to avoid calls to
2698 fprintf in bison parser generated debug code.
2699 * parser-defs.h: Declaration of new parse_fprintf function.
2700 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2701 Set YYDEBUG to 1 by default.
2702 Set YYFPRINTF as parse_fprintf.
2704 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2706 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2708 (pointer_encoding, enum ptr_encoding): New.
2709 (execute_cfa_program): Take care about pointer encoding.
2710 (dwarf2_build_frame_info): Only call parse_frame_info for
2711 .debug_frame and .eh_frame.
2712 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2713 fixed augmentation handling, added relative addressing,
2714 ignore duplicate FDEs. Added comments.
2715 * dwarf2cfi.c: Reindented.
2717 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2719 * event-top.c (command_handler): Don't use space_at_cmd_start
2720 unless there is sbrk() on the host. Assign time and space data
2721 to union fields of the appropriate length.
2723 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2725 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2726 x86_64_register_name. Return type changed to 'const char *'.
2727 (x86_64_register_name2nr): Rename to x86_64_register_number.
2728 (x86_64_gdbarch_init): Update to reflect the change.
2729 * x86-64-tdep.h: Ditto.
2730 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2731 (supply_fpregset): Ditto.
2733 2002-06-19 Andrew Cagney <cagney@redhat.com>
2735 * regcache.h: Update copyright.
2736 (struct regcache, struct gdbarch): Add opaque declarations.
2737 (current_regcache): Declare global variable.
2738 (regcache_read, regcache_write): Add gdbarch parameter.
2739 (regcache_save, regcache_save_no_passthrough)
2740 (regcache_restore, regcache_restore_no_passthrough)
2741 (regcache_dup, regcache_dup_no_passthrough)
2742 (regcache_cpy, regcache_cpy_no_passthrough)
2743 (deprecated_grub_regcache_for_registers)
2744 (deprecated_grub_regcache_for_register_valid)
2745 (regcache_valid_p): Add function declarations.
2747 * regcache.c: Update copyright.
2748 (regcache_descr_handle): New global variable.
2749 (struct regcache_descr): Define.
2750 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2751 (regcache_descr, xfree_regcache_descr): New functions.
2752 (struct regcache): Define.
2753 (regcache_xmalloc, regcache_xfree): New functions.
2754 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2755 (regcache_dup, regcache_dup_no_passthrough): New functions.
2756 (regcache_valid_p, regcache_read_as_address): New functions.
2757 (deprecated_grub_regcache_for_registers): New function.
2758 (deprecated_grub_regcache_for_register_valid): New function.
2759 (current_regcache): New global variable.
2760 (register_buffer): Add regcache parameter. Update calls.
2761 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2762 (read_register_gen, write_register_gen): Update register_buffer
2763 call. Test for legacy_p instead of gdbarch_register_read_p or
2764 gdbarch_register_write_p.
2765 (regcache_collect): Update register_buffer call.
2766 (build_regcache): Rewrite. Use deprecated grub functions.
2767 (regcache_save, regcache_save_no_passthrough): New functions.
2768 (regcache_restore, regcache_restore_no_passthrough): New
2770 (_initialize_regcache): Create the regcache_data_handle. Swap
2771 current_regcache global variable.
2773 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2774 parameter to regcache_read and regcache_write calls.
2775 (sh4_register_read): Ditto.
2776 (sh64_pseudo_register_read): Ditto.
2777 (sh64_register_read): Ditto.
2778 (sh_pseudo_register_write): Ditto.
2779 (sh4_register_write): Ditto.
2780 (sh64_pseudo_register_write): Ditto.
2781 (sh64_register_write): Ditto.
2783 * defs.h (XCALLOC): Define.
2785 2002-06-19 Grace Sainsbury <graces@redhat.com>
2787 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2788 * m68k-tdep.c (m68k_gdbarch_init): Added.
2789 (m68k_dump_tdep): Added.
2791 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2793 * ada-lang.c (fill_in_ada_prototype): Update comment.
2795 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2797 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2799 (mips_abi_string, mips_abi_strings): New.
2800 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2801 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2802 tdep->mips_abi_string. Honor mips_abi_string. Default to
2803 O32 if no ABI is found.
2804 (mips_dump_tdep): Use mips_abi_strings.
2805 (mips_abi_update): New function.
2806 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2807 ``set mips abi'' and ``show mips abi''. Check the size of
2810 2002-06-19 Andrew Cagney <cagney@redhat.com>
2812 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2815 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2817 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2818 current frame using only the first stack size adjustment. All
2819 subsequent size adjustments are not considered to be part of
2820 the "static" part of the current frame.
2821 Compute the address of the saved registers relative to the
2822 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2823 in use in this frame.
2825 2002-06-18 Don Howard <dhoward@redhat.com>
2827 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2828 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2829 suggesting this solution.
2831 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2833 * config/romp/xm-rtbsd.h: Delete file.
2834 * config/romp/rtbsd.mh: Delete file.
2836 2002-06-18 Keith Seitz <keiths@redhat.com>
2838 * breakpoint.c (condition_command): Post breakpoint_modify
2839 when a condition is added to an existing breakpoint.
2840 (commands_command): Likewise for commands.
2841 (set_ignore_count): Likewise for ignore counts.
2842 If no tty, do not simply return, still need to send event
2844 (ignore_command): Only print a newline if the command came
2846 Don't call breakpoints_changed, since this is now properly
2847 handled by set_ignore_count.
2849 2002-06-18 Andrew Cagney <cagney@redhat.com>
2851 * MAINTAINERS: Note that cris-elf target can be compiled with
2853 * cris-tdep.c (cris_register_name): Make return type constant.
2854 (cris_breakpoint_from_pc): Ditto.
2856 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2858 * frame.h (struct frame_info): Change type of context to
2861 2002-06-17 Andrew Cagney <cagney@redhat.com>
2863 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2865 * gdbarch.h, gdbarch.c: Regenerate.
2866 * config/mips/tm-mips.h (mips_register_name): Update.
2867 * i386-tdep.h (i386_register_name): Update.
2868 * mips-tdep.c (mips_register_name): Update
2869 * alpha-tdep.c (alpha_register_name): Update.
2870 * arch-utils.c (legacy_register_name): Update.
2871 * arch-utils.h (legacy_register_name): Update.
2872 * avr-tdep.c (avr_register_name): Update.
2873 * ia64-tdep.c (ia64_register_name): Update.
2874 * i386-tdep.c (i386_register_name): Update.
2875 * sparc-tdep.c (sparc32_register_name): Update.
2876 (sparc64_register_name): Update.
2877 (sparclite_register_name): Update.
2878 (sparclet_register_name): Update.
2879 * sh-tdep.c (sh_generic_register_name): Update.
2880 (sh_sh_register_name): Update.
2881 (sh_sh3_register_name): Update.
2882 (sh_sh3e_register_name): Update.
2883 (sh_sh_dsp_register_name): Update.
2884 (sh_sh3_dsp_register_name): Update.
2885 (sh_sh4_register_name): Update.
2886 (sh_sh64_register_name): Update.
2887 * s390-tdep.c (s390_register_name): Update.
2888 * rs6000-tdep.c (rs6000_register_name): Update.
2889 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2890 (ns32k_register_name_32382): Update.
2891 * d10v-tdep.c (d10v_ts2_register_name): Update.
2892 (d10v_ts3_register_name): Update.
2893 * xstormy16-tdep.c (xstormy16_register_name): Update.
2894 * vax-tdep.c (vax_register_name): Update.
2895 * v850-tdep.c (v850_register_name): Update.
2896 * m68hc11-tdep.c (m68hc11_register_name): Update.
2897 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2898 (am33_register_name): Update.
2900 2002-06-17 Grace Sainsbury <graces@redhat.com>
2902 * m68k-tdep.c: Reindented.
2904 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2906 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2907 list of predefined types.
2909 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2911 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2912 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2913 REGISTER_CONVERT_TO_RAW): Remove defines.
2914 (i386_register_virtual_type, i386_register_convertible,
2915 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2917 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2918 macros mentioned above.
2920 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2921 (i386lynx_saved_pc_after_call): Remove prototype.
2922 * i386ly-tdep.c: Include "i386-tdep.h".
2923 (i386lynx_saved_pc_after_call): Make static. Use
2924 read_memory_nobpt instead of read_memory. Use
2925 read_memory_unsigned_integer instead of read_memory_integer.
2926 (i386lynx_init_abi): New function.
2927 (i386lynx_coff_osabi_sniffer): New function.
2928 (_initialize_i386bsd_tdep): New function.
2930 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2931 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2932 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2933 (i386_fix_call_dummy): Remove prototype.
2934 * i386-tdep.c (i386_call_dummy_words): New variable.
2935 (i386_gdbarch_init): Adjust for removal of the
2936 macros mentioned above.
2938 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2940 * command.h (add_setshow_auto_boolean_cmd): Replace
2941 add_set_auto_boolean_cmd.
2942 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2943 add_set_auto_boolean_cmd.
2944 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2945 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2946 mask-address'' command.
2947 (show_mask_address): Add cmd parameter.
2948 * remote.c (add_packet_config_cmd): Update. Change type of
2949 set_func and show_func to cmd_sfunc_ftype.
2950 (_initialize_remote): Update `set remote Z-packet'
2951 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2952 (show_remote_protocol_e_packet_cmd): Ditto.
2953 (show_remote_protocol_E_packet_cmd): Ditto.
2954 (show_remote_protocol_P_packet_cmd): Ditto.
2955 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2956 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2957 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2958 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2959 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2960 (show_remote_protocol_Z_packet_cmd): Ditto.
2961 (show_remote_protocol_binary_download_cmd): Ditto.
2962 (show_remote_cmd): Pass NULL to all of above.
2964 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2966 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2967 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2968 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2969 POP_FRAME): Remove defines.
2970 (i386_push_arguments, i386_store_struct_return,
2971 i386_extract_return_value, i386_store_return_value,
2972 i386_extract_struct_value_address, i386_push_dummy_frame,
2973 i386_pop_frame): Renove prototypes.
2974 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2975 macros mentioned above.
2977 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2979 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2980 add_set_boolean_cmd.
2981 (add_setshow_cmd): New function.
2982 * command.h (add_setshow_boolean_cmd): Replace
2983 add_set_boolean_cmd.
2984 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2985 and ``set rdiromatzero''.
2986 * maint.c (_initialize_maint_cmds): Update commented out code.
2987 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2988 * target.c (initialize_targets): Update `set
2989 trust-readonly-sections'.
2990 * remote.c (_initialize_remote): Update `set remotebreak'.
2992 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2994 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2995 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2996 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2997 fit into multi-arch framework.
2998 (i386_breakpoint_from_pc): New function.
2999 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3002 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3003 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3004 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3005 (i386_frameless_function_invocation, i386_frame_num_args,
3006 i386_frame_init_saved_regs): Remove prototypes.
3007 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3008 macros mentioned above.
3010 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3012 * cli/cli-decode.c (set_cmd_cfunc): Update.
3013 (set_cmd_sfunc): Update.
3014 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3015 (set_cmd_sfunc, set_cmd_cfunc): Update.
3016 * cli/cli-decode.h: Update.
3018 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3020 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3021 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3023 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3025 * defs.h (auto_boolean): Declare enum.
3026 * command.h (cmd_auto_boolean): Delete enum.
3027 * mips-tdep.c (mask_address_var): Update.
3028 (mips_mask_address_p): Update.
3029 (show_mask_address): Update.
3030 * remote.c (struct packet_config): Update.
3031 (update_packet_config): Update.
3032 (show_packet_config_cmd): Update.
3033 (packet_ok): Update.
3034 (add_packet_config_cmd): Update.
3035 (_initialize_remote):
3036 * command.h: Update.
3037 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3038 (do_setshow_command): Update.
3039 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3040 * cli/cli-decode.h: Update.
3042 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3044 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3045 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3046 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3047 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3048 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3049 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3051 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3052 list of DJGPP COFF targets.
3054 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3055 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3056 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3057 (FP0_REGNUM): Remove define.
3058 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3059 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3060 (i386_register_virtual_size): Remove protoype.
3061 * i386-tdep.c (i386_register_virtual_size): Removed.
3062 (i386_extract_return_value, i386_store_return_value): Use
3063 FP0_REGNUM instead of NUM_FREGS to determine whether the
3064 floating-point registers are available.
3065 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3066 Adjust for removal of macros mentioned above.
3068 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3070 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3072 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3074 (supply_gregset, fill_gregset): Remove use of register keyword and
3075 remove declaration for regmap. Use I386_NUM_GREGS instead of
3076 NUM_REGS and NUM_FREGS.
3077 (FPREGSET_FSAVE_OFFSET): Remove.
3078 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3079 NUM_FREGS to determine whether the floating-point registers are
3082 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3083 gnu_store_registers): Replace usage of NUM_GREGS with
3086 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3087 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3088 usage of NUM_GREGS with I386_NUM_GREGS.
3090 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3092 * i386bsd-nat.c: Include "i386-tdep.h".
3093 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3096 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3097 and associated comment. They no longer make any sense, since we
3098 don't use this file anymore on Linux.
3100 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3101 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3102 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3103 elements in these arrays.
3104 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3107 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3109 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3110 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3112 2002-06-14 Andrew Cagney <cagney@redhat.com>
3114 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3115 EXTRACT_RETURN_VALUE.
3116 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3117 EXTRACT_STRUCT_VALUE_ADDRESS.
3118 * gdbarch.h, gdbarch.c: Regenerate.
3120 * values.c (value_being_returned): Handle
3121 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3122 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3124 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3125 * arm-tdep.c (arm_gdbarch_init): Update.
3126 * avr-tdep.c (avr_gdbarch_init): Update.
3127 * cris-tdep.c (cris_gdbarch_init): Update.
3128 * d10v-tdep.c (d10v_gdbarch_init): Update.
3129 * ia64-tdep.c (ia64_gdbarch_init): Update.
3130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3132 * s390-tdep.c (s390_gdbarch_init): Update.
3133 * sh-tdep.c (sh_gdbarch_init): Update.
3134 * s390-tdep.c (s390_gdbarch_init): Update.
3135 * sparc-tdep.c (sparc_gdbarch_init): Update.
3136 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3137 * v850-tdep.c (v850_gdbarch_init): Update.
3138 * vax-tdep.c (vax_gdbarch_init): Update.
3139 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3142 * config/arc/tm-arc.h: Update.
3143 * config/d30v/tm-d30v.h: Update.
3144 * config/fr30/tm-fr30.h: Update.
3145 * config/h8300/tm-h8300.h: Update.
3146 * config/h8500/tm-h8500.h: Update.
3147 * config/i386/tm-i386.h: Update.
3148 * config/i386/tm-ptx.h: Update.
3149 * config/i386/tm-symmetry.h: Update.
3150 * config/i960/tm-i960.h: Update.
3151 * config/m32r/tm-m32r.h: Update.
3152 * config/m68k/tm-delta68.h: Update.
3153 * config/m68k/tm-linux.h: Update.
3154 * config/m68k/tm-m68k.h: Update.
3155 * config/m88k/tm-m88k.h: Update.
3156 * config/mcore/tm-mcore.h: Update.
3157 * config/mips/tm-mips.h: Update.
3158 * config/mn10200/tm-mn10200.h: Update.
3159 * config/pa/tm-hppa.h: Update.
3160 * config/pa/tm-hppa64.h: Update.
3161 * config/sparc/tm-sp64.h: Update.
3162 * config/sparc/tm-sparc.h: Update.
3163 * config/sparc/tm-sparclet.h: Update.
3164 * config/z8k/tm-z8k.h: Update.
3166 2002-06-14 Andrew Cagney <cagney@redhat.com>
3168 * Makefile.in (i386_linux_tdep_h): Define.
3169 (i386_tdep_h, i387_tdep_h): Define.
3170 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3171 $(i386_tdep_h) and $(i387_tdep_h).
3172 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3174 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3176 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3177 Already covered by the default.
3179 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3180 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3181 (i386_gdbarch_init): Initialize long_double_format and long_double
3184 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3185 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3187 * config/i386/i386sol2.mh: ... here.
3188 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3189 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3190 (SIGCONTEXT_PC_OFFSET): Remove define.
3191 (IN_SIGTRAMP): Remove define.
3192 * i386-sol2-tdep.c: New file.
3194 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3195 * config/i386/tm-i386nw.h: Removed.
3197 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3198 USE_STRUCT_CONVENTION): Remove defines.
3199 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3200 (get_longjmp_target): Remove prototype.
3201 (IN_SIGTRAMP): Remove define.
3202 (i386bsd_in_sigtramp): Remove prototype.
3203 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3204 function. Update comment accordingly
3205 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3206 (FRAME_SAVED_PC): Remove define.
3207 (i386bsd_frame_saved_pc): Remove prototype.
3208 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3209 GET_LONGJMP_TARGET): Remove defines.
3210 (get_longjmp_target): Remove prototype.
3211 (IN_SIGTRAMP): Remove define.
3212 (i386bsd_in_sigtramp): Remove prototype.
3213 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3214 function. Update comment accordingly
3215 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3216 (FRAME_SAVED_PC): Remove define.
3217 (i386bsd_frame_saved_pc): Remove prototype.
3218 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3220 (USE_STRUCT_CONVENTION): Remove prototype.
3221 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3223 (_initialize_i386bsd_nat): Revise logic to determine some
3224 constants at compile time when compiling a native GDB. Warn if
3225 things don't match up with what we expect.
3226 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3228 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3229 to use date stored in `struct gdbarch_tdep'.
3230 (i386bsd_sigcontext_offset): Remove varaible.
3231 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3232 stored in `struct gdbarch_tdep'.
3233 (i386bsd_frame_saved_pc): Make static.
3234 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3235 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3236 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3237 i386fbsd4_sc_pc_offset): New variables.
3238 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3239 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3241 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3243 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3244 Modify the value of i386fbsd_sigtramp_start and
3245 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3246 i386fbsd_sigtramp_end.
3247 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3250 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3251 define to i386-linux-tdep.h.
3252 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3253 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3255 (i386_linux_register_name, i386_linux_register_byte,
3256 i386_linux_register_raw_size): Remove prototypes.
3257 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3258 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3259 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3260 TARGET_WRITE_PC): Remove defines.
3261 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3262 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3263 i386_linux_write_pc): Remove prototypes.
3264 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3265 (get_longjmp_target): Remove prototype.
3266 * i386-linux-tdep.h: New file.
3267 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3268 * i386-linux-tdep.c: Include "i386-tdep.h" and
3269 "i386-linux-tdep.h".
3270 (i386_linux_register_name, i386_linux_register_byte,
3271 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3272 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3274 (i386_linux_init_abi): New function.
3275 (_initialize_i386_linux_tdep): New function.
3277 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3278 (i386_saved_pc_after_call): Remove prototype.
3279 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3280 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3281 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3282 (i386_register_name, i386_stab_reg_to_regnum,
3283 i386_dwarf_reg_to_regnum): Remove prototypes.
3284 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3285 SIZEOF_SSE_REGS): Remove defines.
3286 (REGISTER_BYTES): Remove define.
3287 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3288 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3289 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3290 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3291 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3292 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3293 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3294 (get_longjmp_target): Remove prototype.
3295 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3296 (sigtramp_saved_pc): Remove define.
3297 (i386v4_sigtramp_saved_pc): Remove prototype.
3298 * config/i386/tm-go32.h (FRAME_CHAIN,
3299 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3300 (i386go32_frame_saved_pc): Remove prototype.
3301 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3302 (get_longjmp_target): Remove prototype.
3303 * i386-tdep.h: Include "osabi.h".
3304 (enum i386_abi): Removed.
3305 (enum struct_return): New enum.
3306 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3307 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3308 sc_pc_offset members.
3309 (i386_gdbarch_register_os_abi): Remove prototype.
3310 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3311 I386_SSE_NUM_REGS): New defines.
3312 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3313 I386_SSE_SIZEOF_REGS): New defines.
3314 (i386_register_name, i386_register_byte, i386_register_raw_size):
3316 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3317 (i386bsd_sigtramp_saved_pc): New prototype.
3318 * i386-tdep.c: Don't include "elf-bfd.h".
3319 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3320 i386_frame_chain, i386_saved_pc_after_call): Make static.
3321 (i386_frame_saved_pc): Rewrite to call architecture dependent
3322 function to deal with signal handlers. Make static.
3323 (i386go32_frame_saved_pc): Removed.
3324 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3326 (i386_get_longjmp_target): New function.
3327 (default_struct_convention, pcc_struct_convention,
3328 reg_struct_convention, valid_conventions, struct_convention): New
3330 (i386_use_struct_convention): New function.
3331 (i386v4_sigtramp_saved_pc): Renamed to
3332 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3333 (i386_pc_in_sigtramp): New function.
3334 (i386_abi_names): Removed.
3335 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3336 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3338 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3339 i386_gdbarch_register_os_abi): Removed.
3340 (struct i386_abi_handler): Removed.
3341 (i386_abi_handler_list): Removed.
3342 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3344 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3345 i386_nw_init_abi): New functions.
3346 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3347 Use set_gdbarch_xxx() calls instead of relying on macros for a
3349 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3350 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3351 Register the various architecture variants defined in this file.
3353 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3355 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3356 (struct main_type): Remove arg_types member. Update comments for
3358 (TYPE_ARG_TYPES): Remove.
3359 (TYPE_FN_FIELD_ARGS): Update.
3360 (smash_to_method_type): Update prototype.
3362 * c-typeprint.c (cp_type_print_method_args): Take method type
3363 instead of argument list. Use new argument layout. Simplify.
3364 (c_type_print_args): Use new argument layout. Simplify.
3365 (c_type_print_base): Update call to cp_type_print_method_args.
3366 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3367 argument; use die->type instead. Update call to
3368 smash_to_method_type.
3369 (read_structure_scope): Update call to dwarf2_add_member_fn.
3370 * gdbtypes.c (allocate_stub_method): Update comment.
3371 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3372 Use new argument layout.
3373 (check_stub_method): Use new argument layout. Don't count
3374 void as an argument.
3375 (print_arg_types): Update comments. Use new argument layout.
3376 (recursive_dump_type): Don't print arg_types member.
3377 * hpread.c (hpread_read_struct_type): Use new argument layout.
3378 (fixup_class_method_type): Likewise.
3379 (hpread_type_lookup): Likewise.
3380 * stabsread.c (read_type): Update calls to read_args and
3381 smash_to_method_type.
3382 (read_args): Use new argument layout. Simplify.
3383 * valops.c (typecmp): Use new argument layout. Update parameters
3384 and comments. Simplify.
3385 (hand_function_call): Use new argument layout.
3386 (search_struct_method): Update call to typecmp.
3387 (find_overload_match): Use new argument layout.
3389 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3391 * NEWS: Mention multithreaded debug support for gdbserver.
3393 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3395 * MAINTAINERS: Mention NEWS.
3397 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3399 * gdbserver/regcache.c: Add comment.
3401 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3403 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3404 (struct mips_objfile_private, compare_pdr_entries): New.
3405 (non_heuristic_proc_desc): Read the ".pdr" section if it
3408 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3410 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3411 (arm_debug): New static variable.
3412 (_initialize_arm_tdep): Add ``set debug arm'' command.
3414 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3416 * Makefile.in (sim_arm_h): Define.
3417 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3418 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3419 (arm_register_sim_regno): New function, map an internal REGNUM
3420 onto a simulator register number.
3421 (arm_gdbarch_init): Set register_sim_regno.
3423 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3425 * MAINTAINERS: Add self.
3427 2002-06-11 Jim Blandy <jimb@redhat.com>
3429 * source.c (source_info): Mention whether the symtab has
3430 information about preprocessor macros.
3432 Call the command `info macro', not `show macro'.
3433 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3435 (_initialize_macrocmd): Register `info_macro_command' in
3436 `infolist', not `showlist'.
3438 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3440 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3441 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3442 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3443 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3444 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3446 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3447 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3448 (_initialize_mips_tdep): Remove dead code.
3449 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3450 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3451 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3452 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3453 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3454 MIPS_LAST_FP_ARG_REGNUM): Remove.
3456 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3458 * gdbserver/thread-db.c: New file.
3459 * gdbserver/proc-service.c: New file.
3460 * gdbserver/acinclude.m4: New file.
3461 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3462 proc-service.o, and thread-db.o.
3463 (linux-low.o): Add USE_THREAD_DB.
3464 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3465 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3466 * gdbserver/aclocal.m4: Regenerated.
3467 * gdbserver/config.in: Regenerated.
3468 * gdbserver/configure: Regenerated.
3469 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3470 thread_db.h, and linux/elf.h headrs.
3471 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3472 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3473 Check for -lthread_db and thread support.
3474 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3475 PowerPC, and SuperH.
3476 * gdbserver/i387-fp.c: Constify arguments.
3477 * gdbserver/i387-fp.h: Likewise.
3478 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3479 `struct inferior_info'. Remove PID member. Use generic inferior
3480 list header. All uses updated.
3481 (inferiors, signal_pid): Removed.
3482 (all_threads): New variable.
3483 (get_thread): Define.
3484 (add_inferior_to_list): New function.
3485 (for_each_inferior): New function.
3486 (change_inferior_id): New function.
3487 (add_inferior): Removed.
3488 (remove_inferior): New function.
3489 (add_thread): New function.
3490 (free_one_thread): New function.
3491 (remove_thread): New function.
3492 (clear_inferiors): Use for_each_inferior and free_one_thread.
3493 (find_inferior): New function.
3494 (find_inferior_id): New function.
3495 (inferior_target_data): Update argument type.
3496 (set_inferior_target_data): Likewise.
3497 (inferior_regcache_data): Likewise.
3498 (set_inferior_regcache_data): Likewise.
3499 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3500 (all_processes, stopping_threads, using_thrads)
3501 (struct pending_signals, debug_threads, pid_of): New.
3502 (inferior_pid): Replace with macro.
3503 (struct inferior_linux_data): Remove.
3504 (get_stop_pc, add_process): New functions.
3505 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3506 Use add_process and add_thread.
3507 (linux_attach_lwp): New function, based on old linux_attach. Use
3508 add_process and add_thread. Set stop_expected for new threads.
3509 (linux_attach): New function.
3510 (linux_kill_one_process): New function.
3511 (linux_kill): Kill all LWPs.
3512 (linux_thread_alive): Use find_inferior_id.
3513 (check_removed_breakpoints, status_pending_p): New functions.
3514 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3515 Update. Use WNOHANG. Wait for cloned processes also. Update process
3516 struct for the found process.
3517 (linux_wait_for_event): New function.
3518 (linux_wait): Use it. Support LWPs.
3519 (send_sigstop, wait_for_sigstop, stop_all_processes)
3520 (linux_resume_one_process, linux_continue_one_process): New functions.
3521 (linux_resume): Support LWPs.
3522 (REGISTER_RAW_SIZE): Remove.
3523 (fetch_register): Use register_size instead. Call supply_register.
3524 (usr_store_inferior_registers): Likewise. Call collect_register.
3526 (regsets_fetch_inferior_registers): Improve error message.
3527 (regsets_store_inferior_registers): Add debugging.
3528 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3529 (unstopped_p, linux_signal_pid): New functions.
3530 (linux_target_ops): Add linux_signal_pid.
3531 (linux_init_signals): New function.
3532 (initialize_low): Call it. Initialize using_threads.
3533 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3535 (get_regcache): Fetch registers lazily. Add fetch argument
3536 and update all callers.
3537 (regcache_invalidate_one, regcache_invalidate): New
3539 (new_register_cache): Renamed from create_register_cache.
3540 Return the new regcache.
3541 (free_register_cache): Change argument to a void *.
3542 (registers_to_string, registers_from_string): Call get_regcache
3543 with fetch flag set.
3544 (register_data): Make static. Pass fetch flag to get_regcache.
3545 (supply_register): Call get_regcache with fetch flag clear.
3546 (collect_register): Call get_regcache with fetch flag set.
3547 (collect_register_as_string): New function.
3548 * gdbserver/regcache.h: Update.
3549 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3551 Handle input interrupts while waiting for an ACK.
3552 (input_interrupt): Use signal_pid method.
3553 (getpkt): Flush after debug output and use stderr.
3554 (outreg): Use collect_register_as_string.
3555 (new_thread_notify, dead_thread_notify): New functions.
3556 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3558 (look_up_one_symbol): Flush after debug output.
3559 * gdbserver/server.c (step_thread, server_waiting): New variables.
3560 (start_inferior): Don't use signal_pid. Update call to mywait.
3561 (attach_inferior): Update call to mywait.
3562 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3563 (main): Don't fetch/store registers explicitly. Use
3564 set_desired_inferior. Support proposed ``Hs'' packet. Update
3566 * gdbserver/server.h: Update.
3567 (struct inferior_list, struct_inferior_list_entry): New.
3568 * gdbserver/target.c (set_desired_inferior): New.
3569 (write_inferior_memory): Constify.
3570 (mywait): New function.
3571 * gdbserver/target.h: Update.
3572 (struct target_ops): New signal_pid method.
3573 (mywait): Removed macro, added prototype.
3575 * gdbserver/linux-low.h (regset_func): Removed.
3576 (regset_fill_func, regset_store_func): New.
3577 (enum regset_type): New.
3578 (struct regset_info): Add type field. Use new operation types.
3579 (struct linux_target_ops): stop_pc renamed to get_pc.
3580 Add decr_pc_after_break and breakpoint_at.
3581 (get_process, get_thread_proess, get_process_thread)
3582 (strut process_info, all_processes, linux_attach_lwp)
3583 (thread_db_init): New.
3585 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3586 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3587 (the_low_target): Add new members.
3588 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3589 (i386_store_fpxregset): Constify.
3590 (target_regsets): Add new kind identifier.
3591 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3592 (i386_set_pc): Add debugging.
3593 (i386_breakpoint_at): New function.
3594 (the_low_target): Add new members.
3595 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3596 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3597 (mips_breakpoint_at): New.
3598 (the_low_target): Add new members.
3599 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3600 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3601 (the_low_target): Add new members.
3602 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3603 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3604 (the_low_target): Add new members.
3605 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3608 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3610 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3611 (unwind_tmp_obstack_free, parse_frame_info)
3612 (update_context, cfi_read_fp, cfi_write_fp)
3613 (cfi_frame_chain, cfi_init_extra_frame_info)
3614 (cfi_virtual_frame_pointer): Use the above function.
3615 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3617 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3619 * v850-tdep.c (v850_type_is_scalar): New function.
3620 (v850_use_struct_convention): Match current gcc implementation
3621 as close as possible.
3622 (v850_push_arguments): Fix stack_offset handling. Don't write
3623 struct_addr into register. This is done by v850_store_struct_return.
3624 (v850_extract_return_value): Care for structs.
3625 (v850_store_return_value): Ditto.
3626 (v850_store_struct_return): Actually write address.
3628 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3630 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3631 without debug information too.
3633 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3635 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3636 Make multi-arch pure.
3637 * gdbarch.h, gdbarch.c: Re-generate.
3638 * arm-tdep.c (arm_print_float_info): Update.
3639 * arch-utils.h (default_print_float_info): Update.
3640 * arch-utils.c (default_print_float_info): Update.
3641 * infcmd.c (float_info): Update call.
3643 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3645 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3646 the front of the initialize list.
3648 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3650 * infrun.c (struct inferior_status): Replace fields
3651 selected_frame_address and selected_level with field
3653 (save_inferior_status): Update. Use get_frame_id.
3654 (struct restore_selected_frame_args): Delete.
3655 (restore_selected_frame): Update. Use frame_find_by_id.
3656 (restore_inferior_status): Update.
3658 * breakpoint.h (struct breakpoint): Change type of
3659 watchpoint_frame to frame_id.
3660 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3661 call to get_current_frame.
3662 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3664 (watchpoint_check): Use frame_find_by_id.
3666 * frame.h (record_selected_frame): Delete declaration.
3667 * stack.c (record_selected_frame): Delete function.
3669 * frame.h (struct frame_id): Define.
3670 (get_frame_id): Declare.
3671 (frame_find_by_id): Declare.
3672 * frame.c (frame_find_by_id): New function.
3673 (get_frame_id): New function.
3675 2002-06-10 Andrey Volkov <avolkov@transas.com>
3677 * ser-e7kpc.c: Fix duplicated define and call of
3678 _initialize_ser_e7000pc
3680 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3682 * signals/signals.c (target_signal_from_host): Fix #ifdef
3684 (do_target_signal_to_host): Likewise.
3686 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3688 * mips-tdep.c (mips_find_abi_section): New function.
3689 (mips_gdbarch_init): Call it.
3691 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3693 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3694 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3695 after Andrew's 2002-06-08 gdbarch change.
3697 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3699 * i386-linux-nat.c (suppy_gregset): Don't supply
3700 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3702 (fill_gregset): Don't fetch it under the same circumstances.
3704 2002-06-09 Andrew Cagney <cagney@redhat.com>
3706 * Makefile.in (callback_h): Define.
3707 (remote_sim_h): Update path to remote-sim.h.
3708 (remote-rdp.o): Add $(callback_h).
3709 (remote-sim.o): Use $(callback_h).
3710 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3711 * remote-rdp.c: Include "gdb/callback.h".
3713 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3715 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3716 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3718 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3720 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3721 * rdi-share/serpardr.c: Ditto.
3722 * rdi-share/unixcomm.c: Ditto.
3723 * rdi-share/serdrv.c: Ditto.
3724 * rdi-share/hostchan.h: Ditto.
3725 * rdi-share/hostchan.c: Ditto.
3726 * rdi-share/host.h: Ditto.
3727 * rdi-share/devsw.c: Ditto.
3729 * objfiles.h: Change type of obj_private to void pointer.
3730 * pa64solib.c: Update copyright. Don't include "assert.h", use
3731 strcmp instead of STREQ, use LONGEST, do not use PTR
3732 * somsolib.c: Ditto.
3734 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3735 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3736 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3738 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3740 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3741 (default_get_saved_register): Delete function.
3742 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3743 generic_unwind_get_saved_register.
3744 * gdbarch.h, gdbarch.c: Re-generate.
3746 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3748 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3749 generic_func_frame_chain_valid.
3750 * gdbarch.h, gdbarch.c: Re-generate.
3751 * blockframe.c (generic_func_frame_chain_valid): Only check
3752 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3753 passing FP to PC_IN_CALL_DUMMY.
3756 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3758 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3759 (register_gdbarch_data): Initialize init_p.
3760 (gdbarch_data): Initialize data pointer using the init function.
3761 (init_gdbarch_data): Delete function.
3762 (gdbarch_update_p): Update.
3763 (initialize_non_multiarch): Update.
3764 (struct gdbarch): Add field initialized_p.
3765 * gdbarch.h, gdbarch.c: Re-generate.
3767 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3769 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3770 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3771 better do the things actually here.
3772 * x86-64-tdep.c (x86_64_register_name2nr): New.
3773 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3774 (x86_64_gdbarch_init): Respect the above change.
3775 * x86-64-tdep.h (x86_64_register_name2nr)
3776 (x86_64_register_nr2name): Add prototypes.
3777 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3779 2002-06-06 Michael Snyder <msnyder@redhat.com>
3781 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3782 Delete extra braces and re-indent.
3783 (d10v_store_return_value): Char return values
3784 must be shifted over by one byte in R0.
3785 (d10v_extract_return_value): Delete extra braces, re-indent.
3787 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3789 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3790 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3791 (d10v_integer_to_address): Rewrite.
3792 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3793 the d10v specific functions which take care of converting to the
3796 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3798 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3799 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3801 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3803 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3805 * config/tm-linux.h: Ditto.
3806 * config/alpha/tm-alphalinux.h: Ditto.
3807 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3808 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3809 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3810 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3811 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3812 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3813 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3814 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3815 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3816 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3817 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3818 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3819 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3820 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3821 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3822 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3823 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3824 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3825 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3826 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3827 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3828 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3829 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3830 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3831 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3832 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3833 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3834 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3835 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3836 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3837 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3838 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3839 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3840 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3841 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3842 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3843 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3845 2002-05-04 Aidan Skinner <aidan@velvet.net>
3847 * ada-exp.tab.c: New file
3848 * ada-exp.y: New file
3849 * ada-lang.c: New file
3850 * ada-lang.h: New file
3851 * ada-lex.c: New file
3852 * ada-lex.l: New file
3853 * ada-tasks.c: New file
3854 * ada-typeprint.c: New file
3855 * ada-valprint.c: New file
3857 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3859 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3860 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3862 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3864 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3865 insetead of ppc-linux-tdep.o.
3866 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3867 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3869 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3871 2002-05-07 Christian Groessler <chris@groessler.org>
3872 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3873 bit register contents for little endian hosts.
3875 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3877 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3880 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3882 * gdbarch.h: Regenerate.
3884 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3886 * MAINTAINERS: Add everyone to write-after-approval list.
3888 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3890 * stack.c (frame_info): Use frame_register_unwind instead of
3891 saved_regs. Mention when the SP is on the stack or in a register.
3893 * frame.h (frame_register_unwind_ftype): Define. Document.
3894 (struct frame_info): Add field register_unwind and
3895 register_unwind_cache.
3896 (frame_register_unwind): Declare.
3897 (generic_unwind_get_saved_register): Declare.
3899 * frame.c (frame_register_unwind): New function.
3900 (generic_unwind_get_saved_register): New function.
3902 * blockframe.c (generic_call_dummy_register_unwind): New function.
3903 (frame_saved_regs_register_unwind): New function.
3904 (set_unwind_by_pc): New function.
3905 (create_new_frame): New function.
3906 (get_prev_frame): New function.
3908 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3910 * a29k-share/: Delete directory.
3911 * remote-vx29k.c: Delete file.
3913 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3915 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3916 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3918 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3920 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3921 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3924 (sparcnbsd-tdep.o): New dependency lists.
3925 * NEWS: Note new UltraSPARC NetBSD native configuration.
3926 * configure.host (sparc64-*-netbsd*): New host.
3927 * configure.tgt (sparc-*-netbsdelf*)
3928 (sparc-*-netbsd*): Set gdb_target to nbsd.
3929 (sparc64-*-netbsd*): New target.
3930 * sparc64nbsd-nat.c: New file.
3931 * sparcnbsd-nat.c: New file.
3932 * sparcnbsd-tdep.c: New file.
3933 * sparcnbsd-tdep.h: New file.
3934 * config/sparc/nbsd.mt: New file.
3935 * config/sparc/nbsd64.mh: New file.
3936 * config/sparc/nbsd64.mt: New file.
3937 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3938 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3940 * config/sparc/nbsdaout.mt: Remove.
3941 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3942 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3944 * config/sparc/nbsdelf.mt: Remove.
3945 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3946 sparc-nat.c compatiblity defines.
3947 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3948 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3949 * config/sparc/tm-nbsd64.h: New file.
3950 * config/sparc/tm-nbsdaout.h: Remove.
3951 * config/sparc/xm-nbsd.h: Remove.
3953 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3955 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3956 * sparc-tdep.c: Include osabi.h.
3957 (gdbarch_tdep): Add osabi member.
3958 (_initialize_sparc_tdep): Use gdbarch_register.
3959 (sparc_gdbarch_init): Use generic OS ABI framework.
3960 (sparc_dump_tdep): New function.
3962 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3964 * corefile.c (do_captured_read_memory_integer): Return non-zero
3966 (safe_read_memory_integer): Copy result of memory read when
3967 status is non-zero. Also, add comments.
3969 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3971 * Makefile.in (ppc_tdep_h): Define.
3974 (rs6000-tdep.o): Use $(ppc_tdep_h).
3977 (ppcnbsd-tdep.o): New dependency lists.
3978 * ppc-tdep.h: Use generic OS ABI framework.
3979 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3980 (ppc_linux_init_abi): New functions.
3981 (ppc_sysv_abi_broken_use_struct_convention)
3982 (ppc_sysv_abi_use_struct_convention)
3983 (ppc_sysv_abi_push_arguments): Move to...
3984 * ppc-sysv-tdep.c: ...here.
3985 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3986 * rs6000-tdep.c (process_note_abi_tag_sections)
3987 (get_elfosabi): Remove.
3988 (rs6000_gdbarch_init): Use generic OS ABI framework.
3989 (rs6000_dump_tdep): New function.
3990 (_initialize_rs6000_tdep): Use gdbarch_register.
3991 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3992 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3993 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3994 of ppc-linux-tdep.o.
3995 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3996 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3997 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3998 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3999 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4000 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4002 2002-05-29 Jim Blandy <jimb@redhat.com>
4004 * macroscope.c (default_macro_scope): Put `void' in empty argument
4007 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4009 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4010 * arch-utils.c: Include "sim-regno.h".
4011 * gdbarch.sh: Don't include "sim-regno.h".
4012 * gdbarch.h, gdbarch.c: Regenerate.
4013 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4015 * arch-utils.h (legacy_register_sim_regno): To here.
4016 * remote-sim.c (legacy_register_sim_regno): Move function from
4018 * arch-utils.c (legacy_register_sim_regno): To here.
4020 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4022 * sim-regno.h: New file.
4023 * Makefile.in (sim_regno_h): Define.
4024 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4025 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4026 (legacy_register_sim_regno): New function.
4027 (one2one_register_sim_regno): New function.
4028 (gdbsim_fetch_register): Rewrite.
4029 (gdbsim_store_register): Only store a register when
4030 REGISTER_SIM_REGNO is valid.
4031 * d10v-tdep.c: Include "sim-regno.h".
4032 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4033 (d10v_ts3_register_sim_regno): Ditto.
4034 * gdbarch.sh: Include "sim-regno.h".
4035 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4036 * gdbarch.h, gdbarch.c: Regenerate.
4037 * arch-utils.h (default_register_sim_regno): Delete declaration.
4038 * arch-utils.c (default_register_sim_regno): Delete function.
4040 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4042 * ppcnbsd-nat.c: Rewrite.
4043 * ppcnbsd-tdep.c: New file.
4044 * ppcnbsd-tdep.h: New file.
4045 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4046 solib.o, and solib-svr4.o.
4047 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4048 nbsd-tdep.o, and corelow.o.
4050 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4052 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4053 `tr' and `sed'. Mention that `broken' targets are not expected to
4056 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4058 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4059 Let PC point right after the prologue before looking up symbols.
4061 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4063 * i386-tdep.c (i386_register_virtual_type): Return
4064 builtin_type_vec128i for SSE registers.
4066 * gdbtypes.h (builtin_type_vec128i): Declare.
4068 * gdbtypes.c (build_builtin_type_vec128i): New function.
4069 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4070 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4071 (build_gdbtypes): Initialize new builtin vector types.
4072 (_initialize_gdbtypes): Register new vector types with gdbarch.
4074 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4076 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4077 since it has been multi-arch'd.
4078 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4079 Move Alpha and VAX multi-arch news entries to same section
4080 as other multi-arch news.
4082 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4084 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4085 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4086 static. Rename some register numbers to put them in ns32k-tdep
4088 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4089 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4091 (_initialize_ns32k_tdep): Use gdbarch_register.
4092 * ns32k-tdep.h: New file.
4093 * ns32knbsd-tdep.c: New file.
4094 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4095 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4096 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4097 REGISTER_BYTES, REGISTER_BYTE): Remove.
4098 * config/ns32k/tm-ns32k.h: New file.
4099 * config/ns32k/tm-umax.h: Remove.
4101 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4103 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4104 ns32k_store_struct_return, ns32k_extract_return_value,
4105 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4107 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4108 ns32k_saved_pc_after_call.
4109 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4110 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4111 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4112 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4113 ns32k_extract_struct_value_address.
4115 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4117 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4118 ns32k_fix_call_dummy): New.
4119 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4120 ns32k_call_dummy_words.
4121 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4122 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4123 CALL_DUMMY_NARGS): Remove.
4124 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4126 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4128 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4129 ns32k_frame_saved_pc, ns32k_frame_args_address,
4130 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4131 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4132 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4133 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4134 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4135 (BREAKPOINT): Remove..
4136 (FRAME_CHAIN): Define as ns32k_frame_chain.
4137 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4138 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4139 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4140 (FRAME_FIND_SAVED_REGS): Remove.
4141 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4142 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4143 (POP_FRAME): Define as ns32k_pop_frame.
4145 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4147 * ns32k-tdep.c (ns32k_register_byte_32082,
4148 ns32k_register_byte_32382, ns32k_register_raw_size,
4149 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4151 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4152 ns32k_register_byte_32382.
4153 * config/ns32k/tm-umax.h: Update copyright years.
4154 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4155 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4156 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4157 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4158 (ns32k_get_enter_addr): Fix prototype.
4160 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4162 * ns32k-tdep.c: Update copyright years.
4163 (ns32k_register_name_32082): New function.
4164 (ns32k_register_name_32382): Ditto.
4165 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4166 (REGISTER_NAME): Define as ns32k_register_name_32382.
4167 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4168 (REGISTER_NAME): Define as ns32k_register_name_32082.
4170 2002-05-24 Jim Blandy <jimb@redhat.com>
4172 * dwarf2read.c (free_line_header): Use xfree, not free.
4174 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4176 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4177 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4179 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4181 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4183 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4185 From Ross Alexander at NEC Europe:
4186 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4188 2002-05-23 Michael Snyder <msnyder@redhat.com>
4190 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4191 for input, rather than parse_and_eval_address.
4193 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4195 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4196 * Makefile.in (sim_d10v_h): Update definition.
4198 2002-05-24 Andrew Cagney <cagney@redhat.com>
4200 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4201 change `2002-05-22 Michael Snyder' below.
4202 (d10v_push_arguments): Ditto.
4203 (d10v_extract_return_value): Ditto.
4205 2002-05-23 Jim Blandy <jimb@redhat.com>
4207 * macrotab.c (check_for_redefinition): Don't complain if the new
4208 definition is the same as the previous one. Take more arguments
4209 to allow the comparison.
4210 (macro_define_object, macro_define_function): Pass more arguments
4211 to check_for_redefinition.
4213 2002-05-22 Michael Snyder <msnyder@redhat.com>
4215 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4216 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4217 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4218 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4219 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4220 Add a temp variable to save a call (and a memory read).
4221 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4222 if possible (so that PC_IN_CALL_DUMMY will work).
4224 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4226 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4228 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4230 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4232 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4233 (dwarf2_build_frame_info): Add offset to fde->initial_location
4234 so that frames of shared libraries are mapped correctly.
4235 (execute_stack_op): Change type of 'result' from ULONGEST to
4238 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4240 * config/alpha/tm-nbsd.h: Include solib.h.
4242 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4244 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4245 assumptions about the host's byte order.
4247 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4249 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4251 * alphanbsd-tdep.c: Include solib-svr4.h.
4252 * shnbsd-tdep.c: Ditto.
4254 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4256 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4257 nbsd-tdep.h to dependency list.
4258 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4259 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4260 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4261 nbsdaout.mh and nbsdelf.mh consistently.
4262 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4263 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4264 nbsdaout.mt and nbsdelf.mh consistently.
4265 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4266 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4267 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4268 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4269 a.out shared library stuff from here...
4270 * config/nm-nbsdaout.h: ...to here.
4271 * config/tm-nbsd.h: Remove.
4272 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4273 * config/arm/nbsd.mh: Remove.
4274 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4276 * config/arm/nbsdaout.mh: New file.
4277 * config/arm/nbsdelf.mh: New file.
4278 * config/arm/nm-nbsdaout.h: New file.
4279 * config/i386/nbsd.mh: Remove.
4280 * config/i386/nbsd.mt: Remove.
4281 * config/i386/nbsdaout.mh: New file.
4282 * config/i386/nbsdaout.mt: New file.
4283 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4284 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4285 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4286 i386_register_u_addr): Remove.
4287 * config/i386/nm-nbsdaout.h: New file.
4288 * config/i386/nm-nbsdelf.h: Remove.
4289 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4290 (USE_STRUCT_CONVENTION): Remove.
4291 * config/i386/tm-nbsdaout.h: New file.
4292 * config/i386/tm-nbsdelf.h: Remove.
4293 * config/m68k/nbsd.mh: Remove.
4294 * config/m68k/nbsd.mt: Remove.
4295 * config/m68k/nbsdaout.mh: New file.
4296 * config/m68k/nbsdaout.mt: New file.
4297 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4298 * config/m68k/nm-nbsdaout.h: New file.
4299 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4300 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4301 * config/ns32k/nbsd.mh: Remove.
4302 * config/ns32k/nbsd.mt: Remove.
4303 * config/ns32k/nbsdaout.mh: New file.
4304 * config/ns32k/nbsdaout.mt: New file.
4305 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4306 * config/ns32k/nm-nbsdaout.h: New file.
4307 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4308 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4309 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4310 (SVR4_SHARED_LIBS): Remove.
4311 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4312 * config/sparc/nbsd.mh: Remove.
4313 * config/sparc/nbsd.mt: Remove.
4314 * config/sparc/nbsdaout.mh: New file.
4315 * config/sparc/nbsdaout.mt: New file.
4316 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4317 * config/sparc/nbsdelf.mt: New file.
4318 * config/sparc/nm-nbsdaout.h: New file.
4319 * config/sparc/nm-nbsdelf.h: Remove.
4320 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4321 * config/sparc/tm-nbsdaout.h: New file.
4323 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4325 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4327 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4329 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4331 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4333 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4335 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4337 * NEWS: Note new MIPS NetBSD native configuration.
4338 * configure.host (mips*-*-netbsd*): New host.
4339 * configure.tgt (mips*-*-netbsd*): New target.
4340 * mipsnbsd-nat.c: New file.
4341 * mipsnbsd-tdep.c: New file.
4342 * mipsnbsd-tdep.h: New file.
4343 * config/mips/nbsd.mh: New file.
4344 * config/mips/nbsd.mt: New file.
4345 * config/mips/nm-nbsd.h: New file.
4346 * config/mips/tm-nbsd.h: New file.
4348 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4350 * Makefile.in (SFILES): Add osabi.c.
4351 (COMMON_OBS): Add osabi.o.
4352 (osabi.o): New dependency list.
4353 * osabi.c: New file.
4354 * osabi.h: New file.
4355 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4357 * Makefile.in (alpha_tdep_h): Define and use instead of
4359 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4360 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4362 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4363 * alpha-tdep.h: Include osabi.h.
4364 (alpha_abi): Remove.
4365 (gdbarch_tdep): Use generic OS ABI framework.
4366 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4367 gdbarch_register_osabi.
4368 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4369 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4370 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4372 * Makefile.in (sh_tdep_h): Add osabi.h.
4373 * sh-tdep.h (sh_osabi): Remove.
4374 (gdbarch_tdep): Use generic OS ABI framework.
4375 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4376 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4377 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4378 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4380 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4381 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4382 gdbarch_register_osabi.
4383 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4384 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4385 (get_elfosabi): Rename to...
4386 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4387 ABI framework support routines.
4388 (arm_gdbarch_init): Use generic OS ABI framework.
4389 (arm_dump_tdep): Likewise.
4390 (_initialize_arm_tdep): Likewise.
4391 * arm-tdep.h: Include osabi.h.
4393 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4395 (arm_gdbarch_register_os_abi): Remove prototype.
4396 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4397 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4399 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4400 * mips-tdep.c: Include osabi.h.
4401 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4404 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4406 * h8300-tdep.c: Fix formatting.
4408 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4410 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4411 printing vector registers.
4413 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4415 From Fernando Nasser:
4416 * remote.c (remote_async_open_1): Re-throw the exception when the
4418 (remote_cisco_open): Ditto.
4419 (remote_open_1): Ditto.
4421 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4423 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4424 (remote_start_remote): Add uiout parameter. Pass through to
4425 remote_start_remote_dummy.
4426 (remote_open_1): Use catch_exception instead of catch_errors.
4427 (remote_async_open_1): Ditto.
4428 (remote_cisco_open): Ditto.
4430 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4432 * remote.c (remote_start_remote): Replace PTR with void pointer.
4433 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4436 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4438 * gdb_indent.sh: Allow the script to be run in the sim directory.
4440 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4442 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4443 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4445 * corelow.c (core_open): Only call set_gdbarch_from_file if
4448 2002-05-17 Andrey Volkov <avolkov@transas.com>
4450 * h8300-tdep.c: Add support of EXR register
4451 * config/h8300/tm-h8300.h: Ditto.
4453 2002-05-17 Andrey Volkov <avolkov@transas.com>
4455 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4457 2002-05-17 Andrey Volkov <avolkov@transas.com>
4459 * h8300-tdep.c: Change literal regnums to REGNO.
4461 2002-05-17 Jim Blandy <jimb@redhat.com>
4463 * NEWS: Note addition of macro support.
4465 Expand preprocessor macros in C expressions.
4466 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4467 (scan_macro_expansion, scanning_macro_expansion,
4468 finished_macro_expansion): New function declarations.
4469 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4470 variable declarations.
4471 * parser-defs.h (expression_context_pc): New declaration.
4472 * parse.c (expression_context_pc): New variable.
4473 (parse_exp_1): Set expression_context_pc, as well as
4474 expression_context_block.
4475 * c-exp.y (yylex): If we're not already reading the result of a
4476 macro expansion, try to macro-expand the next token. When we're
4477 done scanning a macro expansion, switch back to the mainline text.
4478 Commas and `if's in a macro's expansion don't terminate the input.
4479 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4480 (macro_original_text, macro_expanded_text,
4481 expression_macro_lookup_func, expression_macro_lookup_baton): New
4483 (scan_macro_expansion, scanning_macro_expansion,
4484 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4485 c_preprocess_and_parse): New functions.
4486 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4487 c_preprocess_and_parse, instead of c_parse.
4488 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4489 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4491 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4493 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4494 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4495 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4497 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4499 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4501 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4503 * Makefile.in (sh_tdep_h): Define and use.
4504 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4505 register enum): Move to...
4506 * * sh-tdep.h: ...here.
4507 * sh-tdep.c: Include sh-tdep.h.
4508 * sh3-rom.c: Likewise.
4509 * shnbsd-tdep.c: Likewise.
4511 2002-05-16 Michael Snyder <msnyder@redhat.com>
4513 * arm-tdep.c: Spelling fix in comment.
4515 2002-05-16 Jim Blandy <jimb@redhat.com>
4517 Add commands for manually expanding macros and showing their
4519 * macrocmd.c, macroscope.c, macroscope.h: New files.
4520 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4521 (macroscope_h): New variable.
4522 (HFILES_NO_SRCDIR): Add macroscope.h.
4523 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4524 (macroscope.o, macrocmd.o): New rules.
4526 Teach the Dwarf 2 reader to read macro information.
4527 * dwarf2read.c: #include "macrotab.h".
4528 (dwarf_macinfo_buffer): New variable.
4529 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4531 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4532 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4533 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4534 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4535 dwarf2_macro_spaces_in_definition): New complaints.
4536 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4537 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4538 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4539 the partial symbol table.
4540 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4541 from what's recorded in the partial symbol table.
4542 (read_file_scope): If the compilation unit has a
4543 `DW_AT_macro_info' attribute, read its macro information.
4544 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4546 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4549 * ser-tcp.c: Don't include <netinet/udp.h>.
4551 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4553 * MAINTAINERS: Update my email address.
4555 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4557 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4558 include file of the same name.
4560 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4562 * configure.tgt: Mark v850 as multi-arched.
4563 * config/v850/tm-v850.h: Remove file.
4564 * config/v850/v850.mt: Eliminate TM_FILE.
4566 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4568 * v850-tdep.c: Full multi-arch.
4569 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4570 Define GDB_MULTI_ARCH to 2.
4572 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4574 * p-exp.y (current_type): New static variable.
4575 Carries the type of the expression at the position that is parsed.
4576 (push_current_type, pop_current_type): Two new functions. Used
4577 to store/restore current_type in expression on specific tokens.
4578 (search_field): New static variable. Set to one after parsing a point
4579 as at that point only a FIELDNAME token should be searched.
4580 (FIELDNAME): New token. After a point only a token belonging to
4581 current_type type definition is allowed.
4582 (all over token rules): reset and change current_type according
4584 (exp '[' rule): insert implicit array index field if
4585 exp is a pascal string type.
4587 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4589 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4590 frame info. Use frame_info's saved_regs instead of matching member
4591 in extra_frame_info throughout.
4592 (v850_frame_init_saved_regs): New function.
4593 (v850_init_extra_frame_info): Move most functionality into
4594 v850_frame_init_saved_regs().
4595 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4596 (v850_frame_find_saved_regs): Remove declaration.
4597 (FRAME_FIND_SAVED_REGS): Remove definition.
4598 (v850_frame_init_saved_regs): Add declaration.
4599 (FRAME_INIT_SAVED_REGS): Add definition.
4601 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4603 * v850-tdep.c: Begin multi-arch'ing v850.
4604 (v850_target_architecture_hook): Remove function.
4605 (v850_gdbarch_init): New function. Add code previously in
4606 v850_target_architecture_hook().
4607 (_initialize_v850_tdep): Don't set target_architecture_hook.
4608 Call register_gdbarch_init() instead.
4610 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4612 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4613 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4614 (fixup_class_method_type): Likewise.
4616 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4618 From Martin Pool <mbp@samba.org>:
4619 * gdbserver/server.c (gdbserver_usage): New function.
4622 2002-05-15 Jim Blandy <jimb@redhat.com>
4624 Add macro structures to GDB's symbol tables. Nobody puts anything
4626 * symtab.h (struct symtab): New member: `macro_table'.
4627 * buildsym.h (pending_macros): New global variable.
4628 * buildsym.c: #include "macrotab.h".
4629 (buildsym_init): Initialize `pending_macros'.
4630 (end_symtab): If we found macro information while reading a CU's
4631 debugging info, do build a symtab structure for it. Make the
4632 symtab point to the macro information, and clear the
4633 `pending_macros' pointer which held it while we were reading the
4635 (really_free_pendings): Free any pending macro table.
4636 * objfiles.h (struct objfile): New member: `macro_cache'.
4637 * objfiles.c (allocate_objfile): Set allocate and free functions
4638 for the macro cache's objstack.
4639 (free_objfile): Empty the macro cache's obstack.
4640 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4641 set new allocate and free functions for it.
4642 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4643 free functions for the macro cache's objstack. (Why is this
4644 function building its own objfile?)
4645 * symmisc.c (print_objfile_statistics): Print statistics on the
4647 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4649 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4651 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4652 (REGISTER_U_ADDR): Delete definition.
4653 (arm_register_u_addr): Delete declaration.
4655 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4657 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4658 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4660 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4662 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4665 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4667 * regcache.c (register_valid): Revise comments refering to "Not
4668 available" and "unavailable".
4669 * frame.c (frame_register_read): Ditto.
4670 * findvar.c (value_of_register): Ditto.
4672 2002-05-15 Andrew Cagney <cagney@redhat.com>
4674 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4675 (remote-sim.o): Update dependencies.
4676 (d10v-tdep.o): Specify dependencies.
4677 (sim_d10v_h): Define.
4679 2002-05-14 Jim Blandy <jimb@redhat.com>
4681 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4682 * macrotab.c (macro_lookup_inclusion, find_definition,
4683 new_macro_table): Same.
4685 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4686 not `! strcmp ()'. This is a dubious improvement.
4687 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4689 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4690 although it's not necessary, to avoid a warning.
4692 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4694 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4695 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4696 TYPE_INSTANCE_FLAGS.
4697 (struct main_type): New.
4698 (struct type): Move most members to struct main_type. Change
4699 cv_type and as_type to new type_chain member. Add instance_flags.
4700 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4701 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4702 (finish_cv_type): Remove prototype.
4703 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4705 (alloc_type_instance): New function.
4706 (smash_type): New function.
4707 (make_pointer_type, make_reference_type, make_function_type)
4708 (smash_to_member_type, smash_to_method_type): Call smash_type.
4709 (make_qualified_type): New function.
4710 (make_type_with_address_space): Call make_qualified_type.
4711 (make_cv_type): Likewise.
4712 (finish_cv_type): Remove unnecessary function.
4713 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4714 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4715 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4716 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4717 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4718 * hpread.c (hpread_read_struct_type): Likewise.
4719 * stabsread.c (read_struct_type): Likewise.
4721 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4723 * configure.tgt: Add a catch all sh* target, for cases like
4724 sh[2,3,4]-elf and sh-hms.
4726 2002-05-14 Keith Seitz <keiths@redhat.com>
4728 * event-loop.c (create_file_handler): Don't do anything but
4729 update data when we are given a fd which we are already
4732 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4734 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4735 (update_context): Use __func__ in warnings.
4737 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4739 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4740 and tcp_close to net_open and net_close.
4741 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4742 using UDP if requested. Don't try to disable Nagle on UDP
4744 * remote.c (remote_serial_open): New function. Warn about UDP.
4745 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4747 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4749 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4751 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4753 * configure.tgt: Remove sh-hms target.
4754 * MAINTAINERS: Don't list sh-hms as a separate target.
4756 2002-05-13 Jim Blandy <jimb@redhat.com>
4758 Add first preprocessor macro-expansion files.
4759 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4760 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4761 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4762 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4763 (COMMON_OBS): Add macrotab.o, macroexp.o.
4764 (macroexp.o, macrotab.o): New rules.
4766 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4768 * config/m88k/tm-m88k.h: Update copyright.
4769 (m88k_target_write_pc): Declare
4770 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4771 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4772 (SHIFT_INST_REGS): Update definition.
4773 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4774 using old definition of TARGET_WRITE_PC.
4775 * regcache.c (generic_target_write_pc): Delete code handling
4777 * gdbarch.sh (NNPC_REGNUM): Delete.
4778 * gdbarch.h, gdbarch.c: Regenerate.
4780 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4782 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4785 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4787 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4788 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4789 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4791 * c-typeprint.c (cp_type_print_method_args): Likewise.
4792 (c_type_print_args): Likewise.
4793 * d10v-tdep.c (d10v_push_arguments): Likewise.
4794 (d10v_extract_return_value): Likewise.
4795 * expprint.c (print_subexp): Likewise.
4796 * gdbtypes.c (lookup_primitive_typename): Likewise.
4797 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4798 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4799 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4800 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4801 (TYPE_VECTOR): Likewise.
4802 * hpread.c (hpread_read_struct_type)
4803 (fix_static_member_physnames, fixup_class_method_type)
4804 (hpread_type_lookup): Likewise.
4805 * mdebugread.c (parse_symbol, parse_type): Likewise.
4806 * p-lang.c (is_pascal_string_type): Likewise.
4807 * valops.c (hand_function_call): Likewise.
4808 * x86-64-tdep.c (classify_argument): Likewise.
4810 * hpread.c (hpread_read_function_type)
4811 (hpread_read_doc_function_type): Call replace_type.
4812 * dstread.c (create_new_type): Delete.
4813 (decode_dst_structure, process_dst_function): Call alloc_type.
4814 Use type access macros.
4816 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4818 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4819 the're not supported by the current architecture.
4820 (i387_fill_fxsave): Likewise.
4822 2002-05-12 Fred Fish <fnf@redhat.com>
4824 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4825 sect_index_xxx members to index the first slot in section_offsets
4826 if all of the section_offsets are zero.
4828 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4830 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4831 checked in with last change.
4833 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4835 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4836 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4839 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4841 * Makefile.in: Update dependencies.
4843 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4845 * language.c (local_hex_string_custom): Simplify. Do not depend
4846 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4848 * memattr.c (mem_info_command): Replace calls to
4849 longest_local_hex_string and longest_local_hex_string_custom.
4850 * buildsym.c (make_blockvector): Ditto.
4851 * solib.c (info_sharedlibrary_command): Ditto.
4852 * tracepoint.c (tracepoints_info): Ditto.
4853 * symtab.c (print_msymbol_info): Ditto.
4855 * language.c (local_hex_string): Delete.
4856 (local_hex_string_custom): Delete.
4857 (longest_local_hex_string): Rename to local_hex_string.
4858 (longest_local_hex_string_custom): Rename to
4859 local_hex_string_custom.
4860 * language.h (local_hex_string): Change parameter type to LONGEST.
4861 (local_hex_string_custom): Ditto.
4862 (longest_local_hex_string): Delete declaration.
4863 (longest_local_hex_string_custom): Ditto.
4865 * solib.c: Update copyright.
4866 * memattr.c: Update copyright.
4868 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4870 * arch-utils.h (legacy_register_to_value): Declare.
4871 (legacy_value_to_register): Declare.
4872 (legacy_convert_register_p): Declare.
4873 * arch-utils.c (legacy_register_to_value): New function.
4874 (legacy_value_to_register): New function.
4875 (legacy_convert_register_p): New function.
4877 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4878 (VALUE_TO_REGISTER): Define.
4879 (CONVERT_REGISTER_P): Define.
4880 * gdbarch.h, gdbarch.c: Regenerate.
4882 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4884 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4887 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4888 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4890 * Makefile.in: Update dependencies for valops.c.
4891 * valops.c: Include "gdb_assert.h".
4892 (typecmp): Skip THIS parameter to methods.
4893 (find_method_list): Remove static_memfuncp argument,
4894 update callers. Check for stub methods.
4895 (find_value_oload_method_list): Don't set *static_memfuncp.
4896 (find_overload_match): Don't check for stub methods. Assert
4897 that methods are not stubbed. Handle static methods.
4898 (value_find_oload_method_list): Remove static_memfuncp argument.
4899 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4900 to the argument list for static stub methods.
4901 * value.h (value_find_oload_method_list): Update prototype.
4903 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4905 * arch-utils.h (generic_register_size): Declare.
4906 (generic_register_raw_size, generic_register_virtual_size): Delete
4908 * arch-utils.c (generic_register_raw_size): Delete.
4909 (generic_register_size): New function.
4910 (generic_register_virtual_size): Delete.
4912 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4913 default generic_register_size.
4914 * gdbarch.h, gdbarch.c: Re-generate.
4916 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4917 register_virtual_size.
4918 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4921 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4923 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4924 * gdbarch.h, gdbarch.c: Regenerate.
4925 * gnu-v3-abi.c: Update copyright.
4926 (vtable_address_point_offset): Update.
4927 (gnuv3_rtti_type): Update.
4928 (gnuv3_baseclass_offset): Update.
4929 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4930 (init_fetch_link_map_offsets): Update.
4931 * remote.c (get_remote_state): Update.
4933 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4935 * TODO: Remove value_headof/value_from_vtable_info comment.
4936 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4937 * values.c (value_headof, value_from_vtable_info): Delete.
4938 * value.h (value_from_vtable_info): Delete prototype.
4940 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4942 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4943 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4945 (gdb_assert_h): Define.
4946 (gdb_wait_h): Define.
4947 (gdb_regex_h): Define.
4949 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4951 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4952 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4954 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4956 * nbsd-tdep.c: Fix comment.
4958 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4960 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4961 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4962 (nbsd-tdep.o): New dependency list.
4963 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4965 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4966 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4967 * nbsd-tdep.c: New file.
4968 * nbsd-tdep.h: New file.
4969 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4971 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4972 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4973 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4974 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4976 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4978 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4979 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4980 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4981 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4982 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4983 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4985 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4987 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4988 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4989 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4990 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4991 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4992 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4993 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4995 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4997 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4998 fetch_elfcore_registers to...
4999 * i386nbsd-tdep.c: ...here.
5000 (i386nbsd_use_struct_convention): Rename to...
5001 (i386nbsd_aout_use_struct_convention): ...this.
5002 (i386nbsd_supply_reg): New function.
5003 (i386nbsd_fill_reg): New function.
5004 (fetch_core_registers): Use i386nbsd_supply_reg.
5005 (fetch_elfcore_registers): Likewise.
5006 (_initialize_i386nbsd_tdep): New function.
5007 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5008 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5009 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5010 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5011 (i386nbsd_aout_use_struct_convention): ...this.
5013 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5015 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5016 (store_inferior_registers): Use shnbsd_fill_reg.
5017 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5018 sh_nbsd_supply_register): Collapse into...
5019 (shnbsd_supply_reg): ...this.
5020 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5021 (shnbsd_fill_reg): ...this.
5022 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5023 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5024 (fetch_core_registers): Use shnbsd_supply_reg.
5025 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5026 (sh_nbsd_core_fns): Rename to...
5027 (shnbsd_core_fns): ...this.
5028 (sh_nbsd_elfcore_fns): Rename to...
5029 (shnbsd_elfcore_fns): ...this.
5030 (sh_nbsd_init_abi): Rename to...
5031 (shnbsd_init_abi): ...this.
5032 (_initialize_sh_nbsd_tdep): Rename to...
5033 (_initialize_shnbsd_tdep): ...this.
5034 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5035 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5036 sh_nbsd_fill_register): Remove prototypes.
5037 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5039 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5041 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5042 (i387-nat.o): Delete dependency list.
5043 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5044 (x86-64-linux-nat.o): Likewise.
5045 * i387-nat.c: Delete file, moving contents to...
5046 * i387-tdep.c: ...here.
5047 * i387-nat.h: Rename...
5048 * i387-tdep.h: ...to this.
5049 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5050 * i386-linux-nat.c: Likewise.
5051 * i386bsd-nat.c: Likewise.
5052 * i386gnu-nat.c: Likewise.
5053 * i386nbsd-nat.c: Likewise.
5054 * i386v4-nat.c: Likewise.
5055 * x86-64-linux-nat.c: Likewise.
5056 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5057 * config/i386/go32.mh (NATDEPFILES): Likewise.
5058 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5059 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5060 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5061 * config/i386/linux.mh (NATDEPFILES): Likewise.
5062 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5063 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5064 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5065 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5067 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5069 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5070 (alphanbsd-nat.o): Remove dependency list.
5071 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5072 * alphanbsd-nat.c: Delete. Contents moved to...
5073 * alphanbsd-tdep.c: ...here.
5074 (_initialize_alphanbsd_tdep): Register core functions.
5075 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5077 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5079 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5080 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5081 (alphanbsd-nat.o): Likewise.
5082 (alphabsd-tdep.o): New dependency list.
5083 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5084 (fill_gregset): Use alphabsd_fill_reg.
5085 (supply_fpregset): Use alphabsd_supply_fpreg.
5086 (fill_fpregset): Use alphabsd_fill_fpreg.
5087 (fetch_inferior_registers): Use struct reg and struct fpreg
5088 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5089 and alphabsd_supply_fpreg.
5090 (store_inferior_registers): Use struct reg and struct fpreg
5091 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5092 and alphabsd_fill_fpreg.
5093 * alphabsd-tdep.c: New file.
5094 * alphabsd-tdep.h: New file.
5095 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5096 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5097 alphabsd_supply_fpreg.
5098 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5099 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5101 2002-05-11 Eric Christopher <echristo@redhat.com>
5103 * mips-tdep.c (mips_double_register_type): Fix thinko.
5104 (mips_single_register_type): Ditto.
5105 * MAINTAINERS: Add self.
5107 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5109 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5110 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5111 right thing on architectures with different endianness and/or
5114 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5116 From Christian Limpach <chris@Pin.LU>
5117 * configure.in: Change sed expression which comments out
5118 NATDEPFILES to also comment out continuation lines.
5119 * configure: Regenerate.
5121 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5123 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5126 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5128 * sh-tdep.c: Include correct file.
5130 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5132 New support for sh64-elf (sh5) target.
5134 * configure.tgt: For sh64-elf target, default to sh-elf.
5136 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5137 (struct gdbarch_tdep): Add new fields for new registers and ABI
5140 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5141 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5142 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5143 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5144 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5145 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5146 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5147 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5148 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5149 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5150 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5151 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5152 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5153 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5154 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5155 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5156 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5157 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5158 sign_extend, sh64_nofp_frame_init_saved_regs,
5159 sh64_init_extra_frame_info, sh64_get_saved_register,
5160 sh64_extract_struct_value_address, sh64_pop_frame,
5161 sh64_push_arguments, sh64_extract_return_value,
5162 sh64_store_return_value, sh64_show_media_regs,
5163 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5164 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5165 sh_sh64_register_virtual_type,
5166 sh_sh64_register_convert_to_virtual,
5167 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5168 sh64_register_read, sh64_pseudo_register_write,
5169 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5170 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5171 sh64_do_pseudo_register, sh_compact_do_registers_info,
5172 sh64_do_registers_info, sh_gdbarch_init): New functions.
5174 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5176 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5178 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5180 * linespec.c (decode_line_1): Check for a double quote after
5181 a filename correctly.
5183 2002-05-10 Jim Blandy <jimb@redhat.com>
5185 Properly track the size of the current objfile's .debug_line section.
5186 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5187 (DWARF_LINE_SIZE): New macro.
5188 (dwarf2_build_psymtabs_hard): Record the line section's size in
5189 the partial symbol table.
5190 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5193 2002-05-10 Petr Sorfa <petrs@caldera.com>
5195 * ia64-tdep.c: Handle breakpoints on L instruction type
5196 in MLX instruction bundle by moving the breakpoint to
5197 the third slot (X instruction type) as L holds only data.
5199 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5201 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5202 (process_one_symbol): Complain about discarding local symbols
5203 due to a misplaced N_LBRAC entry.
5205 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5207 From Daniel Berlin <dan@cgsoftware.com>
5208 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5209 decrease the depth we are at, in the case of templates.
5211 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5213 * mips-tdep.c (mips_float_register_type): New function.
5214 (mips_double_register_type): New function.
5215 (mips_print_register): Use them.
5216 (do_fp_register_row): Likewise.
5218 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5220 * signals/signals.c (signals): Remove conditional compilation around
5221 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5222 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5224 2002-05-09 Michael Snyder <msnyder@redhat.com>
5226 * remote-rdp.c (remote_rdp_can_run): Remove.
5228 2002-05-09 Tom Tromey <tromey@redhat.com>
5230 * jv-valprint.c (java_val_print): Handle `char' as a special case
5233 2002-05-09 Michael Snyder <msnyder@redhat.com>
5235 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5236 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5237 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5238 str r(0123),[sp,#nn].
5239 (arm_skip_prologue): Ditto. Also make disassembly
5240 order-independent by placing it in a loop.
5242 2002-05-06 Michael Snyder <msnyder@redhat.com>
5244 * stabsread.c (read_type): Add recognition for new attribute:
5245 "@V;" means that an array type is actually a vector.
5246 This is analogous to the vector flag that's been added to dwarf2.
5248 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5250 * i386-tdep.h (i386_abi): New enum.
5251 (struct gdbarch_tdep): Replace os_ident member with abi.
5252 (i386_gdbarch_register_os_abi): New prototype.
5253 * i386-tdep.c (i386_abi_names): New array.
5254 (process_note_abi_tag_sections): Removed.
5255 (process_note_sections): New function.
5256 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5257 (struct i386_abi_handler): New struct.
5258 (i386_abi_handler_list): New variable.
5259 (i386_gdbarch_register_os_abi): New function.
5260 (i386_gdbarch_init): Adapt for the changes given above.
5262 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5264 * gregset.h: Say "GNU/Linux".
5266 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5268 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5269 (build_gdbtypes): Build builtin_type_v2_float.
5270 (_initialize_gdbtypes): Register new builtin type.
5272 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5274 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5275 (clear_gdbarch_swap): New function.
5276 (initialize_non_multiarch): Call.
5277 (gdbarch_update_p): Before calling init(), swap out and clear the
5278 existing architecture.
5279 * gdbarch.c: Regenerate.
5281 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5283 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5286 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5288 * sh-nbsd-nat.c: Rename to...
5289 * shnbsd-nat.c: ...this.
5290 * sh-nbsd-tdep.c: Rename to...
5291 * shnbsd-tdep.c: ...this.
5292 * sh-nbsd-tdep.h: Rename to...
5293 * shnbsd-tdep.h: ...this.
5294 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5295 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5297 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5299 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5300 concatenation for command help messages.
5302 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5304 * NEWS: Note new sh*-*-netbsdelf* configuration.
5305 * configure.host: Set gdb_host_cpu to sh for all sh*.
5306 (sh*-*-netbsdelf*): New host.
5307 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5308 (sh*-*-netbsdelf*): New target.
5309 * sh-nbsd-nat.c: New file.
5310 * sh-nbsd-tdep.c: New file.
5311 * sh-nbsd-tdep.h: New file.
5312 * config/sh/nbsd.mh: New file.
5313 * config/sh/nbsd.mt: New file.
5314 * config/sh/nm-nbsd.h: New file.
5315 * config/sh/tm-nbsd.h: New file.
5317 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5319 * sh-tdep.c (sh_osabi_names): Declare.
5320 (process_note_abi_tag_sections): New function.
5321 (get_elfosabi): Ditto.
5322 (sh_gdbarch_register_os_abi): Ditto.
5323 (sh_dump_tdep): Ditto.
5324 _initialize_sh_tdep): Use gdbarch_register to register
5325 sh_gdbarch_init and sh_dump_tdep.
5326 * config/sh/tm-sh.h (sh_osabi): Declare.
5327 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5329 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5331 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5332 (thumb_scan_prologue): Ditto.
5333 (arm_find_callers_reg): Ditto.
5334 (arm_frame_chain): Ditto.
5335 (arm_init_extra_frame_info): Ditto.
5336 (arm_frame_saved_pc): Ditto.
5337 (arm_pop_frame): Ditto.
5338 (arm_push_return_address): New function.
5339 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5340 call_dummy_location, call_dummy_breakpoint_offset_p,
5341 call_dummy_breakpoint_offset, call_dummy_p,
5342 call_dummy_stack_adjust_p, call_dummy_words,
5343 sizeof_call_dummy_words, call_dummy_start_offset,
5344 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5345 call_dummy_address, push_return_address and push_dummy_frame for
5346 generic dummy frames.
5348 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5350 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5351 size computation for alloca.
5352 (sh_fp_frame_init_saved_regs): Likewise.
5354 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5356 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5357 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5358 * arm-tdep.c (arm_store_return_value): Use them.
5359 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5360 * remote-rdp.c (remote_rdp_fetch_register): Use
5361 ARM_MAX_REGISTER_RAW_SIZE.
5362 (remote_rdp_store_register): Likewise.
5364 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5366 * dwarf2cfi.c: Code cleanup, removed unused variables,
5367 added default labels to switch {} statements.
5368 * x86-64-tdep.c: Ditto.
5369 * x86-64-linux-nat.c: Ditto.
5371 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5373 * solib.h: Protect against multiple inclusion.
5375 2002-05-06 Jim Blandy <jimb@redhat.com>
5377 Add first preprocessor macro-expansion files.
5378 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5379 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5380 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5381 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5382 (COMMON_OBS): Add macrotab.o, macroexp.o.
5383 (macroexp.o, macrotab.o): New rules.
5385 Separate the job of reading the line number info statement program
5386 header (...expialidocious) out into its own function.
5387 * dwarf2read.c (struct line_head, struct filenames, struct
5388 directories): Replace with...
5389 (struct line_header): New structure, containing the full
5390 contents of the statement program header, including the
5391 include directory and file name tables.
5392 (read_file_scope): If we have line number info, instead of just
5393 calling dwarf_decode_lines to do all the work, call
5394 dwarf_decode_line_header first to get a `struct line_header'
5395 containing the data in the statement program header, and then
5396 pass that to dwarf_decode_lines, which will pick up where that
5397 left off. Be sure to clean up the `struct line_header' object.
5398 (dwarf_decode_line_header, free_line_header, add_include_dir,
5399 add_file_name): New functions.
5400 (dwarf_decode_lines): Move all the code to read the statement
5401 program header into dwarf_decode_line_header. Take the line
5402 header it built as the first argument, instead of the offset to
5403 the compilation unit's line number info. Use the new `struct
5404 line_header' type instead of the old structures. No need to do
5405 cleanups here now, since we don't allocate anything.
5406 (dwarf2_statement_list_fits_in_line_number_section,
5407 dwarf2_line_header_too_long): New complaints.
5409 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5411 * gdbtypes.c (init_vector_type): New function.
5412 (build_builtin_type_vec128): Simplify the representation of SIMD
5414 (build_gdbtypes): Initialize new builtin vector types.
5415 (_initialize_gdbtypes): Register new vector types with gdbarch.
5416 (builtin_type_v4_float, builtin_type_v4_int32,
5417 builtin_type_v8_int16, builtin_type_v16_int8,
5418 builtin_type_v2_int32, builtin_type_v4_int16,
5419 builtin_type_v8_int8): New (renamed) SIMD types.
5421 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5423 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5424 (i387_fill_fxsave): Likewise.
5426 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5428 * alpha-tdep.c (alpha_extract_return_value): Don't use
5429 non-constant array size in prototype.
5431 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5433 From Brian Taylor <briant at model dot com>:
5434 * ui-out.c (ui_out_field_core_addr): Use the function
5435 longest_local_hex_string_custom'to format addresses > 32 bits
5438 * ui-out.c (ui_out_field_core_addr): Update comment.
5440 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5442 * stack.c (select_and_print_frame): Make static. Delete the
5444 (func_command): Update call.
5445 (select_frame_command): Delete code computing the frame level.
5446 * frame.h (select_and_print_frame): Delete declaration.
5448 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5450 * sparc-tdep.c (sparc_get_saved_register): Comment why
5451 get_prev_frame call is safe.
5453 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5455 * frame.h (select_frame): Delete level parameter.
5456 * stack.c (select_frame): Update. Use frame_relative_level to
5457 obtain the frame's level.
5458 (select_and_print_frame): Update call.
5459 (select_frame_command): Ditto.
5460 (up_silently_base): Ditto.
5461 (down_silently_base): Ditto.
5462 * ocd.c (ocd_start_remote): Ditto.
5463 * remote-rdp.c (remote_rdp_open): Ditto.
5464 * remote-mips.c (mips_initialize): Ditto.
5465 (common_open): Ditto.
5466 * remote-e7000.c (e7000_start_remote): Ditto.
5467 * m3-nat.c (select_thread): Ditto.
5468 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5469 (child_get_current_exception_event): Ditto.
5470 * varobj.c (varobj_create): Ditto.
5471 (varobj_update): Ditto.
5472 (c_value_of_root): Ditto.
5473 * tracepoint.c (finish_tfind_command): Ditto.
5474 * corelow.c (core_open): Ditto.
5475 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5476 * thread.c (info_threads_command): Ditto.
5477 (switch_to_thread): Ditto.
5478 * infrun.c (normal_stop): Ditto.
5479 (restore_selected_frame): Ditto.
5480 (restore_inferior_status): Ditto.
5481 * breakpoint.c (insert_breakpoints): Ditto.
5482 (watchpoint_check): Ditto.
5483 (bpstat_stop_status): Ditto.
5484 (do_enable_breakpoint): Ditto.
5485 * blockframe.c (flush_cached_frames): Ditto.
5486 (reinit_frame_cache): Ditto.
5488 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5490 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5493 2002-05-04 Jim Blandy <jimb@redhat.com>
5495 * gdbtypes.c (replace_type): Doc fix.
5497 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5499 * valprint.c (strcat_longest): Delete commented out function.
5502 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5504 * MAINTAINERS: Mark a29k as deleted.
5505 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5506 Move new configurations to the top.
5507 * configure.tgt: Remove a29k.
5508 * config/a29k/tm-vx29k.h: Delete.
5509 * config/a29k/vx29k.mt: Delete.
5510 * config/a29k/tm-a29k.h: Delete.
5511 * config/a29k/a29k-udi.mt: Delete.
5512 * config/a29k/a29k.mt: Delete.
5513 * a29k-tdep.c: Delete.
5514 * remote-udi.c: Delete.
5515 * remote-mm.c: Delete.
5516 * remote-eb.c: Delete.
5517 * remote-adapt.c: Delete.
5518 * Makefile.in: Remove obsolete code.
5519 * gdbserver/Makefile.in: Ditto.
5520 * config/s390/s390x.mt: Ditto.
5521 * config/s390/s390.mt: Ditto.
5522 * config/sparc/sparclynx.mh: Ditto.
5523 * config/sparc/linux.mh: Ditto.
5524 * config/pa/hppaosf.mh: Ditto.
5525 * config/pa/hppabsd.mh: Ditto.
5526 * config/ns32k/nbsd.mt: Ditto.
5527 * config/mips/vr5000.mt: Ditto.
5528 * config/m68k/sun3os4.mh: Ditto.
5529 * config/m68k/nbsd.mt: Ditto.
5530 * config/m68k/m68klynx.mh: Ditto.
5531 * config/m32r/m32r.mt: Ditto.
5532 * config/i386/x86-64linux.mt: Ditto.
5533 * config/i386/nbsdelf.mt: Ditto.
5534 * config/i386/nbsd.mt: Ditto.
5535 * config/i386/i386lynx.mh: Ditto.
5537 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5539 * target.c (debug_print_register): New function. Handle oversize
5541 (debug_to_fetch_registers): Call.
5542 (debug_to_store_registers): Call.
5544 2002-05-03 Jim Blandy <jimb@redhat.com>
5546 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5547 (read_type): Doc fix.
5548 * gdbtypes.c (replace_type): Doc fix.
5550 * stabsread.c (multiply_defined_struct): New complaint.
5551 (read_struct_type): If the type we were passed isn't empty, or
5552 incomplete, don't read the new struct type into it; complain,
5553 and return the original type unchanged. Take a new `type_code'
5554 argument, which is the type code for the new type.
5555 (read_type): Rather than storing the type's type code here, pass
5556 it as an argument to read_struct_type, and let that take care of
5557 storing it. That way, we don't overwrite the original type code,
5558 so read_struct_type can use it to decide whether we're overwriting
5559 something we shouldn't.
5560 (complain_about_struct_wipeout): New function.
5562 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5564 * gdbarch.sh: Assert that gdbarch is non-NULL.
5565 * gdbarch.c: Regenerate.
5567 2002-05-03 Jason Merrill <jason@redhat.com>
5569 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5572 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5574 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5575 (x86_64_dwarf2gdb_regno_map_length),
5576 (x86_64_dwarf2_reg_to_regnum): Added.
5577 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5578 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5579 (_initialize_x86_64_tdep): Synced with the change above.
5580 (x86_64_skip_prologue): Reformulated message.
5582 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5584 * f-exp.y: Also use new prev_lexptr variable
5585 to improve error reporting. Based on Michael Snyder
5586 2002-04-24 dated patch to c-exp.y.
5587 * jv-exp.y: Likewise.
5588 * m2-exp.y: Likewise.
5590 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5592 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5593 we are dealing with vectors.
5595 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5597 * config/m68k/tm-nbsd.h: Obvious fix,
5598 correct machine name.
5600 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5602 * p-typeprint.c (pascal_type_print_base): Add support
5603 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5605 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5607 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5608 for fondamental pascal 'char' type.
5610 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5612 * p-lang.h (is_pascal_string_type): Declaration changed,
5613 new sixth argument of type char ** added.
5614 * p-lang.c (is_pascal_string_type): Implementation
5615 changed. Args length_pos, length_size, string_pos, char_size
5616 can now be NULL. New argument arrayname set to the field
5617 name of the char array. Return value set to char array
5618 field index plus one.
5619 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5620 is_pascal_string_type function.
5622 2002-05-02 Andrew Cagney <cagney@redhat.com>
5624 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5625 <cagney@redhat.com> change.
5626 * gdbarch.c: Regenerate.
5628 2002-05-02 Andrew Cagney <cagney@redhat.com>
5630 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5631 before probing for a new one. Detect errorenous gdbarch_init
5633 * gdbarch.c: Regenerate.
5635 2002-05-01 Andrew Cagney <cagney@redhat.com>
5637 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5638 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5639 * config/v850/tm-v850.h: Ditto. Update copyright.
5641 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5643 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5646 2002-04-30 Michael Snyder <msnyder@redhat.com>
5648 * arm-tdep.c: Whitespace clean-ups.
5649 (arm_skip_prologue): Fix thinko; two lines
5650 should have been removed as part of 4/24 change.
5652 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5654 * rs6000-tdep.c: Added comment describing how fpscr register
5655 numbers were chosen.
5657 2002-04-30 Michael Snyder <msnyder@redhat.com>
5659 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5661 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5663 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5664 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5665 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5667 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5669 From Louis Hamilton <hamilton@redhat.com>:
5670 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5671 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5672 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5673 not bfd-private xcoff data, to determine wordsize.
5674 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5676 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5678 GDB 5.2 released from 5.2 branch.
5680 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5682 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5683 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5684 (x86_64_register_info_table): Added comments with register numbers.
5686 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5688 * rs6000-tdep.c (rs6000_extract_return_value,
5689 rs6000_store_return_value): Handle returning vectors.
5690 (rs6000_gdbarch_init): Use
5691 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5692 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5694 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5696 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5697 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5699 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5701 * hpread.c (hpread_psymtab_to_symtab_1,
5702 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5703 with fprintf_unfiltered (gdb_stderr,...).
5705 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5707 * remote-array.c (printf_monitor, write_monitor,
5708 array_insert_breakpoint, array_remove_breakpoint ):
5709 Replace fprintf (stderr,...
5710 with fprintf_unfiltered (gdb_stderr,....
5711 * remote-es.c: Likewise.
5712 * remote-os9k.c: Likewise.
5713 * remote-st.c: Likewise.
5715 2002-04-28 Andreas Schwab <schwab@suse.de>
5717 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5718 linux-proc.o and gcore.o.
5720 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5722 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5723 code without frame pointers.
5725 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5727 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5730 2002-04-26 Ben Elliston <bje@redhat.com>
5732 * target.c (do_xfer_memory): Correct reference to the new option
5733 "trust-readonly-sections".
5735 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5737 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5738 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5739 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5741 (read_array_type): Record the fact that this array type is really a
5742 vector (i.e. are passed in by value).
5744 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5746 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5747 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5748 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5749 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5750 * alpha-linux-tdep.c: Include frame.h.
5751 (alpha_linux_sigcontext_addr): New function.
5752 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5753 alpha_linux_sigcontext_addr.
5754 * alpha-osf1-tdep.c: Include gdbcore.h.
5755 (alpha_osf1_sigcontext_addr): New function.
5756 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5757 alpha_osf1_sigcontext_addr.
5758 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5759 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5761 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5763 * stack.c (selected_frame_level):
5764 (select_frame): Do not set selected_frame_level.
5765 * frame.h (selected_frame_level): Delete declaration.
5767 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5769 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5770 convert_from_func_ptr-addr when AIX / PowerOpen.
5772 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5774 * valops.c (hand_function_call): Call
5775 generic_save_call_dummy_addr.
5776 * frame.h (generic_save_call_dummy_addr): Declare.
5777 * blockframe.c (struct dummy_frame): Add fields call_lo and
5779 (generic_find_dummy_frame): Check for PC in range call_lo to
5780 call_hi instead of entry_point_address.
5781 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5782 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5783 (generic_save_call_dummy_addr): New function.
5785 2002-04-24 David S. Miller <davem@redhat.com>
5787 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5788 sparc_skip_prologue.
5789 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5790 information to find prologue when possible.
5791 (sparc_prologue_frameless_p): Call examine_prologue directly.
5792 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5793 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5795 (SKIP_PROLOGUE): Likewise.
5797 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5799 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5800 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5801 indicate that the condition it was testing is always true.
5802 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5803 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5804 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5806 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5808 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5809 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5810 tdep->jb_pc and tdep->jb_elt_size.
5811 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5812 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5813 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5814 * alpha-nat.c (get_longjmp_target): Remove.
5815 (JB_ELEMENT_SIZE): Ditto.
5817 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5818 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5819 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5820 to alpha_get_longjmp_target.
5821 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5822 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5823 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5825 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5827 * README: Update to GDB 5.2.
5829 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5831 * gdbarch.sh (LC_ALL): Set to `c'.
5833 2002-04-25 Theodore A. Roth <troth@verinet.com>
5835 * avr-tdep.c: Ran through gdb_indent.sh.
5837 2002-04-25 Theodore A. Roth <troth@verinet.com>
5839 * MAINTAINERS: Add myself as AVR maintainer.
5840 * NEWS: Note new target avr.
5842 2002-04-25 Theodore A. Roth <troth@verinet.com>
5844 * Makefile.in: Add support for AVR target.
5845 * configure.tgt: Add support for AVR target.
5846 * avr-tdep.c: New file
5847 * config/avr/avr.mt: New file.
5849 2002-04-25 Theodore A. Roth <troth@verinet.com>
5851 * MAINTAINERS: Add myself to write-after-approval.
5853 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5855 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5856 with fprintf_unfiltered (gdb_stderr,....
5858 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5861 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5863 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5865 * p-exp.y: Also use new prev_lexptr variable
5866 to improve error reporting. Based on Michael Snyder
5867 2002-04-24 dated patch to c-exp.y.
5869 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5871 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5872 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5873 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5875 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5877 (FUNCTION_START_OFFSET): Remove.
5878 (BREAKPOINT): Ditto.
5880 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5882 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5885 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5887 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5888 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5889 alpha_linux_pc_in_sigtramp.
5890 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5891 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5892 alpha_osf1_pc_in_sigtramp.
5893 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5894 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5895 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5896 alphafbsd_pc_in_sigtramp.
5897 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5898 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5899 alphanbsd_pc_in_sigtramp.
5900 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5901 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5903 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5905 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5907 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5909 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5911 (alphanbsd-nat.o): New dependency list.
5912 (alphanbsd-tdep.o): Ditto.
5913 * NEWS: Note new native NetBSD/alpha configuration.
5914 * alphanbsd-nat.c: New file.
5915 * alphanbsd-tdep.c: Ditto.
5916 * configure.host (alpha*-*-netbsd*): New host.
5917 * configure.tgt (alpha*-*-netbsd*): New target.
5918 * config/alpha/nbsd.mh: New file.
5919 * config/alpha/nbsd.mt: Ditto.
5920 * config/alpha/nm-nbsd.h: Ditto.
5921 * config/alpha/tm-nbsd.h: Ditto.
5923 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5925 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5926 (alpha-osf1-tdep.o): New dependency list.
5927 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5928 and skip_sigtramp_frame members.
5929 * alpha-linux-tdep.c: Include gdbcore.h.
5930 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5931 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5932 * alpha-osf1-tdep.c: New file.
5933 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5935 (alpha_frame_past_sigtramp_frame): New function.
5936 (alpha_dynamic_sigtramp_offset): Ditto.
5937 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5938 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5939 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5940 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5941 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5942 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5943 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5944 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5945 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5946 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5947 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5948 to find_solib_trampoline_target.
5949 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5950 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5951 (SKIP_TRAMPOLINE_CODE): Remove.
5952 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5953 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5954 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5955 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5956 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5957 (PROC_SIGTRAMP_MAGIC): Ditto.
5958 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5959 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5960 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5961 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5962 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5964 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5966 * NEWS: Note that Alpha targets are now multi-arch.
5968 2002-04-24 Michael Snyder <msnyder@redhat.com>
5970 * parser-defs.h (prev_lexptr): New external variable.
5971 * parse.c (parse_exp_1): Set prev_lexptr to null before
5972 calling the language-specific parser.
5973 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5974 (yyerror): Use prev_lexptr in error reporting.
5976 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5978 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5979 * gregset.h: If FILL_FPXREGSET is defined, provide
5980 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5981 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5982 is defined, call fill_fpxregset.
5984 2002-04-24 Roland McGrath <roland@frob.com>
5986 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5987 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5988 (supply_gregset, supply_fpregset): New functions.
5990 * gnu-nat.c (gnu_find_memory_regions): New function.
5991 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5992 (gnu_xfer_memory): Add a cast.
5994 2002-04-24 Michael Snyder <msnyder@redhat.com>
5996 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5997 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5998 of argument regs ("str r(0123), [r11, #-nn"]).
5999 (arm_skip_prologue): Better handling for frameless functions.
6000 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6001 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6003 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6005 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6006 NUM_PSEUDO_REGS can be used.
6008 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6010 * arch-utils.h: Update copyright.
6012 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6013 * gdbarch.h, gdbarch.c: Re-generate.
6015 * inferior.h (IN_SIGTRAMP): Delete definition.
6016 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6017 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6019 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6020 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6021 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6022 (find_proc_framesize): Ditto.
6023 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6024 (alpha_init_extra_frame_info): Ditto.
6025 * infrun.c (handle_inferior_event): Ditto.
6026 (handle_inferior_event): Ditto.
6027 (check_sigtramp2): Ditto.
6028 * blockframe.c (create_new_frame): Ditto.
6029 (get_prev_frame): Ditto.
6030 * ppc-linux-tdep.c: Update comments.
6031 * i386-linux-tdep.c: Update comments.
6032 * breakpoint.c (bpstat_what): Update comment.
6034 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6036 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6037 (regsets_store_inferior_registers): Removed cast to int from
6039 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6041 2002-04-24 David S. Miller <davem@redhat.com>
6043 * i960-tdep.c (register_in_window_p): New function.
6044 (i960_find_saved_register): Use it instead of
6045 REGISTER_IN_WINDOW_P.
6046 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6048 * symtab.h (find_stab_function_addr): Kill extern.
6049 * minsyms.c (find_stab_function_addr): Remove from here...
6050 * dbxread.c: ... to here, and mark it static.
6052 2002-04-20 David S. Miller <davem@redhat.com>
6054 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6055 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6057 2002-04-21 David S. Miller <davem@redhat.com>
6059 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6060 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6061 (vx_write_register): Likewise.
6063 2002-04-23 J. Brobecker <brobecker@gnat.com>
6065 * source.c (is_regular_file): New function.
6066 (openp): Check wether file to open is a regular file
6067 to avoid opening directories.
6069 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6071 * findvar.c (extract_signed_integer): Cast printf argument
6072 to suppress format warning.
6073 (extract_unsigned_integer): Likewise.
6074 * infcmd.c (registers_info): Likewise.
6075 * top.c (get_prompt_1): Likewise.
6076 * valops.c (value_assign): Likewise.
6077 * valprint.c (print_decimal): Likewise.
6079 2002-04-22 H.J. Lu (hjl@gnu.org)
6081 * c-exp.y (typebase): Support
6083 [long|long long|short] [signed|unsigned] [int|]
6087 signed [long|long long|short] int
6089 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6091 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6093 * vax-tdep.h: New file.
6094 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6095 Make several routines static.
6096 (vax_get_saved_register): New function.
6097 (vax_gdbarch_init): New function.
6098 (_initialize_vax_tdep): Register vax_gdbarch_init.
6099 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6100 Remove macros now under the control of gdbarch.
6102 2002-04-22 Michael Snyder <msnyder@redhat.com>
6104 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6105 Some whitespace and coding standards tweaks.
6107 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6109 * vax-tdep.c: Include regcache.h.
6110 (vax_call_dummy_words): New.
6111 (sizeof_vax_call_dummy_words): New.
6112 (vax_fix_call_dummy): New function.
6113 (vax_saved_pc_after_call): Ditto.
6114 * config/vax/tm-vax.h: Don't include regcache.h.
6115 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6116 (CALL_DUMMY): Remove.
6117 (CALL_DUMMY_WORDS): Define.
6118 (SIZEOF_CALL_DUMMY_WORDS): Define.
6119 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6121 2002-04-18 Michael Snyder <msnyder@redhat.com>
6123 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6125 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6127 * vax-tdep.c (vax_frame_chain): New function.
6128 (vax_push_dummy_frame): Ditto.
6129 (vax_pop_frame): Ditto.
6130 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6131 (FRAMELESS_FUNCTION_INVOCATION): Use
6132 generic_frameless_function_invocation_not.
6133 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6134 (POP_FRAME): Use vax_pop_frame.
6136 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6138 * vax-tdep.c (vax_store_struct_return): New function.
6139 (vax_extract_return_value): Ditto.
6140 (vax_store_return_value): Ditto.
6141 (vax_extract_struct_value_address): Ditto.
6142 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6143 vax_store_struct_return.
6144 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6145 (STORE_RETURN_VALUE): Use vax_store_return_value.
6146 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6148 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6150 * vax-tdep.c (vax_frame_saved_pc): New function.
6151 (vax_frame_args_address_correct): Ditto.
6152 (vax_frame_args_address): Ditto.
6153 (vax_frame_locals_address): Ditto.
6154 (vax_frame_num_args): Move code to be in proximity to
6155 other frame-related functions.
6156 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6157 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6158 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6159 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6160 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6162 2002-04-22 H.J. Lu (hjl@gnu.org)
6164 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6167 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6169 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6170 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6171 (FRAME_INIT_SAVED_REGS): New macro.
6173 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6175 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6177 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6179 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6181 (fetch_osf_core_registers): Likewise.
6182 (supply_gregset): Likewise.
6184 2002-04-22 J. Brobecker <brobecker@gnat.com>
6186 * symfile.h (get_section_index): Define.
6187 * symfile.c (get_section_index): New function.
6188 * mdebugread.c (SC_IS_SBSS): New macro.
6189 (SC_IS_BSS): Return true for the scBss storage class only, as
6190 the scSBss storage class refers to the .sbss section.
6191 (parse_partial_symbols): Discard the symbols which associated
6192 section does not exist.
6193 Make sure to use the .sbss section index for symbols which
6194 storage class is scBss, rather than using the .bss section index.
6196 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6198 * vax-tdep.c: Update copyright years.
6199 (vax_register_name): New function.
6200 (vax_register_byte): Ditto.
6201 (vax_register_raw_size): Ditto.
6202 (vax_register_virtual_size): Ditto.
6203 (vax_register_virtual_type): Ditto.
6204 * config/vax/tm-vax.h: Update copyright years.
6205 (REGISTER_NAMES): Remove.
6206 (REGISTER_NAME): Define.
6207 (REGISTER_BYTE): Use vax_register_byte.
6208 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6209 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6210 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6212 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6214 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6216 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6218 2002-04-21 David S. Miller <davem@redhat.com>
6220 * arch-utils.c (generic_prologue_frameless_p): Kill
6221 SKIP_PROLOGUE_FRAMELESS_P code.
6222 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6224 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6225 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6226 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6228 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6229 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6230 (sparc_gdbarch_init): Pass it to
6231 set_gdbarch_prologue_frameless_p.
6233 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6235 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6236 (alphabsd-nat.o): New dependency list.
6238 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6240 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6242 (alpha-linux-tdep.o): New dependency list.
6243 (alphafbsd-tdep.o): Likewise.
6245 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6247 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6249 * alpha-tdep.c: ...from here.
6250 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6252 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6254 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6255 prototype from here...
6256 * alpha-tdep.h: ...to here.
6258 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6260 * frame.h (selected_frame_level): Document as deprecated.
6261 (frame_relative_level): Declare.
6262 * stack.c (frame_relative_level): New function.
6263 (selected_frame_level): Document as deprecated.
6264 (select_frame): Do not set the selected_frame_level.
6266 * stack.c (frame_info, record_selected_frame): Update.
6267 (frame_command, current_frame_command): Update.
6268 (up_silently_base, up_command, down_silently_base): Update.
6269 (down_command): Update.
6270 * inflow.c (kill_command): Update.
6271 * tracepoint.c (finish_tfind_command): Update.
6272 * corelow.c (core_open): Update.
6273 * thread.c (info_threads_command): Update.
6274 (do_captured_thread_select): Update.
6275 * infcmd.c (finish_command): Update.
6276 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6280 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6282 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6284 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6287 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6289 * alphafbsd-tdep.c: Update copyright years. Include
6291 (alphafbsd_use_struct_convention): Make static.
6292 (alphafbsd_init_abi): New function.
6293 (_initialize_alphafbsd_tdep): New function.
6294 * config/alpha/tm-fbsd.h: Update copyright years.
6295 (USE_STRUCT_CONVENTION): Remove.
6297 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6299 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6300 an Alpha ABI variant.
6301 (alpha_abi_handler_list): Declare.
6302 (alpha_gdbarch_register_os_abi): New function.
6303 (alpha_gdbarch_init): Give registered ABI variant handlers a
6304 chance to tweak the gdbarch once we have set up defaults.
6305 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6309 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6310 to standard_coerce_float_to_double.
6311 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6313 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6315 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6316 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6317 from gdbarch_tdep rather than a constant.
6318 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6319 the default text address for all Alpha Unix ABIs.
6320 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6321 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6323 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6325 * alpha-tdep.h: New file. Includes several Alpha target constants
6327 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6328 let gdbarch deal with.
6329 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6330 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6332 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6333 Alpha target register names.
6334 * alphabsd-nat.c: Likewise.
6335 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6336 Alpha target register names. Make serveral routines static.
6337 (alpha_get_saved_register): New function.
6338 (alpha_abi_names): New.
6339 (process_note_abi_tag_sections): New function.
6340 (get_elfosabi): New function.
6341 (alpha_gdbarch_init): New function.
6342 (alpha_dump_tdep): New function.
6343 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6345 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6347 * frame.c (find_saved_register): Delete #ifdef
6348 HAVE_REGISTER_WINDOWS code.
6349 * config/sparc/tm-sparc.h: Update comments.
6350 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6352 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6354 * i960-tdep.c (i960_find_saved_register): New function.
6355 (i960_get_saved_register): New function.
6356 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6357 (i960_get_saved_register): Declare.
6358 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6360 2002-04-20 David S. Miller <davem@redhat.com>
6362 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6364 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6366 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6367 instead of NUM_PSEUDO_REGS.
6369 2002-04-20 David S. Miller <davem@redhat.com>
6371 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6372 GDB_MULTI_ARCH_PARTIAL
6373 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6374 define, let tm-sp64.h do it.
6376 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6378 * frame.c (find_saved_register): Avoid a NULL pointer
6379 dereference and actually walk the frame list.
6381 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6383 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6384 sorted in most most-recent-used order. Document.
6385 * gdbarch.h, gdbarch.c: Regenerate.
6387 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6389 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6390 (add_inferior): Call create_register_cache.
6391 (clear_inferiors): Call free_register_cache.
6392 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6393 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6394 (registers): Remove.
6395 (get_regcache): New function.
6396 (create_register_cache, free_register_cache): New functions.
6397 (set_register_cache): Don't initialize the register cache here.
6398 (registers_to_string, registers_from_string, register_data): Call
6400 * gdbserver/regcache.h: Add prototypes.
6401 * gdbserver/server.h: Likewise.
6403 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6405 * gdbserver/mem-break.c: New file.
6406 * gdbserver/mem-break.h: New file.
6407 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6409 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6411 (clear_inferiors): Free target_data member if set.
6412 (inferior_target_data, set_inferior_target_data): New functions.
6413 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6414 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6415 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6416 (struct inferior_linux_data): New.
6417 (linux_create_inferior): Use set_inferior_target_data.
6418 (linux_attach): Likewise. Call add_inferior.
6419 (linux_wait_for_one_inferior): New function.
6420 (linux_wait): Call it.
6421 (linux_write_memory): Add const.
6422 (initialize_low): Call set_breakpoint_data.
6423 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6425 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6427 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6429 * gdbserver/target.c (read_inferior_memory)
6430 (write_inferior_memory): New functions.
6431 * gdbserver/target.h (read_inferior_memory)
6432 (write_inferior_memory): Change macros to prototypes.
6433 (struct target_ops): Update comments. Add const to write_memory
6436 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6438 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6440 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6441 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6442 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6445 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6448 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6449 (build_builtin_type_vec128): Ditto.
6450 (append_composite_type_field): Fix calculation of type length in
6453 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6455 * config/djgpp/README: Update.
6457 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6460 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6462 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6463 (alpha_setup_arbitrary_frame): ...to this.
6464 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6465 for alpha_setup_arbitrary_frame.
6467 2002-04-18 Andrew Cagney <cagney@redhat.com>
6469 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6470 * gdbarch.h, gdbarch.c: Regenerate.
6472 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6473 * target.h (memory_breakpoint_from_pc): Update declaration.
6474 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6476 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6477 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6478 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6479 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6480 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6481 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6482 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6483 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6484 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6485 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6486 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6487 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6489 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6491 * monitor.c (monitor_insert_breakpoint): Ditto.
6492 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6494 * config/mcore/tm-mcore.h: Update copyright.
6495 * mem-break.c: Ditto.
6496 * xstormy16-tdep.c: Ditto.
6498 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6500 * p-exp.y: Add precedence rule for '^' token.
6501 This removes the shift/reduce conflicts.
6502 Remove the comment concerning these shift/reduce conflicts.
6504 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6506 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6507 (registers_powerpc_nofp): New register set for processors
6508 without floating point unit.
6510 2002-04-18 David S. Miller <davem@redhat.com>
6512 * MAINTAINERS: Add myself to write-after-approval.
6514 2002-04-17 Michael Snyder <msnyder@redhat.com>
6516 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6518 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6520 * rs6000-tdep.c (frame_initial_stack_address): Use
6521 frame_register_read to read the alloca_reg.
6523 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6525 * frame.c (find_saved_register): Find saved registers in the next
6529 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6531 * gdbarch.sh (LANG): Set to ``c''.
6533 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6535 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6537 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6539 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6542 * hpread.c (hpread_get_lntt): Add declaration.
6543 Also fix PR gdb/391.
6545 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6547 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6548 * aclocal.m4, configure: Re-generate.
6551 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6553 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6554 instead of tm_print_insn.
6556 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6558 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6560 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6562 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6563 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6564 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6566 2002-04-12 Don Howard <dhoward@redhat.com>
6568 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6569 max_user_call_depth.
6570 (init_cmd_lists): Initialize the new value;
6571 * cli/cli-script.c (execute_user_command): Limit the call depth of
6572 user defined commands. This avoids a core-dump when user commands
6573 are infinitly recursive.
6575 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6577 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6578 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6579 from tdep struct instead of DEFAULT_LR_SAVE.
6580 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6581 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6582 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6584 2002-04-12 Michael Snyder <msnyder@redhat.com>
6586 * Remote.c: Spelling fix.
6587 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6588 If no symbol found for "sbrk", try "_sbrk".
6589 (make_output_phdrs): Use bfd_section_name.
6590 (gcore_copy_callback): Use bfd_section_name.
6591 * eval.c: Indentation fix-ups.
6592 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6593 in case it gets applied to an address that is already
6594 in the instruction space.
6595 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6596 * symfile.c: Fix indentation, long lines.
6597 * source.c: White space fix-up.
6599 2002-04-12 Andrew Cagney <cagney@redhat.com>
6601 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6602 * frame.c (frame_register_read): New function. Return non-zero on
6604 (read_relative_register_raw_bytes_for_frame): Delete.
6605 (read_relative_register_raw_bytes): Delete.
6606 * frame.h (frame_register_read): Declare.
6607 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6609 * infcmd.c (do_registers_info): Ditto.
6610 * hppa-tdep.c: Ditto.
6611 * rs6000-tdep.c: Ditto.
6612 * h8500-tdep.c: Ditto.
6613 * mips-tdep.c: Ditto.
6614 * h8300-tdep.c: Ditto.
6615 * z8k-tdep.c: Ditto.
6617 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6619 From Jimi X <jimix@watson.ibm.com>:
6620 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6623 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6625 From Jimi X <jimix@watson.ibm.com>:
6626 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6629 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6631 From Jimi X <jimix@watson.ibm.com>:
6632 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6633 register sets for these processor variants.
6635 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6637 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6638 registers which are allowed to fail to store.
6639 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6640 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6641 (ppc_cannot_store_register): FPSCR may not be storable.
6642 * regformats/reg-ppc.dat: Support FPSCR.
6644 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6646 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6647 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6648 Add fpscr as an invalid/unfetchable register.
6649 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6650 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6651 (fill_fpregset): Add support for register fpscr.
6652 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6653 (fill_gregset): Account for the fact that register ``mq'' might
6655 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6656 (registers_power): Add fpscr to register set at slot 71.
6657 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6658 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6660 2002-04-11 Michael Snyder <msnyder@redhat.com>
6662 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6663 * configure: Regenerate.
6664 * config.in: Regenerate.
6665 * acconfig.h: Add define for _SYSCALL32.
6666 * core-sol2.c: Remove #define _SYSCALL32.
6667 * solib-legacy.c: Remove #define _SYSCALL32.
6669 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6671 * stack.c (select_frame): Cleanup internal error message, do not
6674 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6676 * stack.c (select_frame): Check that selected_frame and the
6677 specified level are as expected.
6678 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6680 * frame.h (struct frame_info): Add field `level'. Update
6682 Work-in-progress PR gdb/464.
6684 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6686 * maint.c (maint_print_section_info): Rename print_section_info.
6687 (print_bfd_section_info, print_objfile_section_info): Update.
6688 * inferior.h (struct gdbarch): Add opaque declaration.
6689 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6690 * gdbarch.h: Regenerate.
6692 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6694 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6695 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6696 (kernel_u_size): Added.
6697 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6698 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6700 2002-04-04 Jim Ingham <jingham@apple.com>
6702 * valarith.c (find_size_for_pointer_math): New function, either returns
6703 the size for a pointer's target, returns 1 for void *, or errors for
6705 (value_add, value_sub): use find_size_for_pointer_math.
6707 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6709 * linux-low.c (linux_look_up_symbols): New hook.
6710 (linux_target_ops): Add linux_look_up_symbols.
6711 * remote-utils.c (decode_address): New function.
6712 (look_up_one_symbol): New function.
6713 * server.c (handle_query): Call target look_up_symbols hook.
6714 * server.h (look_up_one_symbol): Add prototype.
6715 * target.h (struct target_ops): Add look_up_symbols hook.
6717 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6719 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6720 * ChangeLog: Correct paths in last ChangeLog entry.
6722 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6724 * gdbserver/linux-low.h: Remove obsolete prototypes.
6725 (struct linux_target_ops): New.
6726 (extern the_low_target): New.
6727 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6728 (register_addr): Use the_low_target explicitly.
6729 (fetch_register): Likewise.
6730 (usr_fetch_inferior_registers): Likewise.
6731 (usr_store_inferior_registers): Likewise.
6732 * gdbserver/linux-arm-low.c (num_regs): Remove.
6733 (arm_num_regs): Define.
6734 (arm_regmap): Renamed from regmap, made static.
6735 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6737 (arm_cannot_store_register): Renamed from cannot_store_register,
6739 (the_low_target): New.
6740 * gdbserver/linux-i386-low.c (num_regs): Remove.
6741 (i386_num_regs): Define.
6742 (i386_regmap): Renamed from regmap, made static.
6743 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6745 (i386_cannot_store_register): Renamed from cannot_store_register,
6747 (the_low_target): New.
6748 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6749 (ia64_num_regs): Define.
6750 (ia64_regmap): Renamed from regmap, made static.
6751 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6753 (ia64_cannot_store_register): Renamed from cannot_store_register,
6755 (the_low_target): New.
6756 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6757 (m68k_num_regs): Define.
6758 (m68k_regmap): Renamed from regmap, made static.
6759 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6761 (m68k_cannot_store_register): Renamed from cannot_store_register,
6763 (the_low_target): New.
6764 * gdbserver/linux-mips-low.c (num_regs): Remove.
6765 (mips_num_regs): Define.
6766 (mips_regmap): Renamed from regmap, made static.
6767 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6769 (mips_cannot_store_register): Renamed from cannot_store_register,
6771 (the_low_target): New.
6772 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6773 (ppc_num_regs): Define.
6774 (ppc_regmap): Renamed from regmap, made static.
6775 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6777 (ppc_cannot_store_register): Renamed from cannot_store_register,
6779 (the_low_target): New.
6780 * gdbserver/linux-s390-low.c (num_regs): Remove.
6781 (s390_num_regs): Define.
6782 (s390_regmap): Renamed from regmap, made static.
6783 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6785 (s390_cannot_store_register): Renamed from cannot_store_register,
6787 (the_low_target): New.
6788 * gdbserver/linux-sh-low.c (num_regs): Remove.
6789 (sh_num_regs): Define.
6790 (sh_regmap): Renamed from regmap, made static.
6791 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6793 (sh_cannot_store_register): Renamed from cannot_store_register,
6795 (the_low_target): New.
6796 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6797 (the_low_target): New.
6799 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6801 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6802 override FP_REGNUM with frame->fp. Update copyright.
6803 * parse.c (num_std_regs, std_regs): Delete.
6804 (target_map_name_to_register): Do not search std_regs. Update
6805 function description.
6806 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6807 declarations. Update copyright.
6810 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6812 * gdbserver/Makefile.in: Add stamp-h target.
6813 * gdbserver/configure.in: Create stamp-h.
6814 * gdbserver/configure: Regenerated.
6816 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6818 * gdbserver/inferiors.c: New file.
6819 * gdbserver/target.c: New file.
6820 * gdbserver/target.h: New file.
6821 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6823 * gdbserver/linux-low.c (inferior_pid): New static variable,
6824 moved from server.c.
6825 (linux_create_inferior): Renamed from create_inferior.
6826 Call add_inferior. Return 0 on success instead of a PID.
6827 (linux_attach): Renamed from myattach.
6828 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6829 (linux_thread_alive): Renamed from mythread_alive.
6830 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6832 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6833 (regsets_store_inferior_registers): Correct error message.
6834 Add missing ``return 0''.
6835 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6836 (linux_store_registers): Renamed from store_inferior_registers.
6837 (linux_read_memory): Renamed from read_inferior_memory.
6838 (linux_write_memory): Renamed from write_inferior_memory.
6839 (linux_target_ops): New structure.
6840 (initialize_low): Call set_target_ops ().
6841 * gdbserver/remote-utils.c (unhexify): New function.
6842 (hexify): New function.
6843 (input_interrupt): Send signals to ``signal_pid''.
6844 * gdbserver/server.c (inferior_pid): Remove.
6845 (start_inferior): Update create_inferior call.
6846 (attach_inferior): Call add_inferior.
6847 (handle_query): New function.
6848 (main): Call handle_query for `q' packets.
6849 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6850 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6852 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6854 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6856 * gdbserver/configure.in: Check for <string.h>
6857 * gdbserver/configure: Regenerate.
6858 * gdbserver/config.in: Regenerate.
6859 * gdbserver/gdbreplay.c: Include needed system headers.
6860 (remote_open): Remove strchr prototype.
6861 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6862 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6863 (supply_register_by_name): Likewise.
6864 (collect_register): Change buf argument to void *.
6865 (collect_register_by_name): Likewise.
6866 * gdbserver/regcache.h: Add missing prototypes.
6867 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6868 * gdbserver/server.c (handle_query): New function.
6869 (attached): New static variable, moved out of main.
6870 (main): Quiet longjmp clobber warnings.
6871 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6872 * gdbserver/utils.c (error): Remove NORETURN.
6875 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6877 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6878 after the last symbol in a block.
6880 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6882 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6883 is non zero as a found symbol.
6885 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6887 * findvar.c: Include "builtin-regs.h".
6888 (value_of_register): Call value_of_builtin_reg when applicable.
6889 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6890 (target_map_name_to_register): Call
6891 builtin_reg_map_name_to_regnum.
6892 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6893 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6894 (builtin_regs_h): Define.
6895 (builtin-regs.o): New target.
6896 (findvar.o): Add $(builtin_regs_h).
6897 * builtin-regs.c, builtin-regs.h: New files.
6898 * std-regs.c: New file.
6899 Partial fix for PR gdb/251.
6901 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6903 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6904 it's no longer required.
6906 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6908 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6910 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6912 From Jimi X <jimix@watson.ibm.com>:
6913 * rs6000-tdep.c (rs6000_software_single_step): Use
6914 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6915 and size. Use target_insert_breakpoint() and
6916 target_remove_breakpoint() to insert and remove breakpoints
6917 instead of explicit memory reads and writes.
6919 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6921 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6922 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6923 ELF_OBJECT_FORMAT ifdef.
6925 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6927 From Jimi X <jimix@watson.ibm.com>:
6928 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6930 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6932 From Jimi X <jimix@watson.ibm.com>:
6933 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6934 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6936 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6938 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6939 s/asprintf/xasprintf/.
6940 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6942 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6944 I believe Jeff Law denies responsability for this one:
6945 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6946 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6947 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6948 Work-around for PR gdb/366.
6950 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6952 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6953 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6954 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6956 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6958 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6959 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6962 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6964 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6967 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6969 * README (Reporting Bugs in GDB): Document the bug web page as the
6970 prefered way of submitting bugs.
6973 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6975 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6977 * gdbarch.h, gdbarch.c: Re-generate.
6979 2002-04-07 Andreas Schwab <schwab@suse.de>
6981 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6982 buffer to regcache_collect.
6984 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6986 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6987 * gdbarch.c, gdbarch.h: Re-generate.
6989 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6991 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6992 declaration. Fix -Werror.
6994 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6996 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6997 * gdbarch.c: Regenerate.
6999 2002-04-05 Michael Snyder <msnyder@redhat.com>
7001 * breakpoint.c (clear_command): Rewrite middle section to
7002 combine two loops with identical control conditions.
7003 Add a cleanup to eliminate a memory leak.
7004 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7006 2002-04-05 H.J. Lu (hjl@gnu.org)
7008 * solib-svr4.c (bkpt_names): Add "__start".
7010 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7012 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7013 as test for 64 bit target.
7015 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7017 * h8500-tdep.c (h8500_write_fp): Delete function.
7018 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7019 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7020 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7023 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7025 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7026 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7027 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7028 (d10v_write_fp): Delete function.
7029 * inferior.h (write_fp, generic_target_write_fp): Delete
7031 * regcache.c (generic_target_write_fp): Delete function.
7032 (write_fp): Delete function.
7033 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7034 * gdbarch.h, gdbarch.c: Regenerate.
7035 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7036 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7037 (sparc64_write_fp): Delete declaration.
7038 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7039 (h8500_write_fp): Delete declaration.
7041 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7043 * sparc-tdep.c (sparc64_write_fp): Delete.
7044 (sparc_push_dummy_frame): Replace write_fp call with code to store
7046 (sparc_gdbarch_init): Do not initialize write_fp.
7048 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7050 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7053 2002-03-29 Jim Blandy <jimb@redhat.com>
7055 * stack.c (get_selected_block): Add new argument `addr_in_block',
7056 used to return the exact code address we used to select the block,
7058 * blockframe.c (get_frame_block, get_current_block): Same.
7059 * frame.h (get_frame_block, get_current_block,
7060 get_selected_block): Update declarations.
7061 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7062 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7064 2002-04-05 Michael Snyder <msnyder@redhat.com>
7066 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7069 2002-04-05 J. Brobecker <brobecker@gnat.com>
7071 * utils.c (xfullpath): New function.
7072 * defs.h (xfullpath): Add declaration.
7073 * source.c (openp): Use xfullpath in place of gdb_realpath to
7074 avoid resolving the basename part of filenames when the
7075 associated file is a symbolic link. This fixes a potential
7076 inconsistency between the filenames known to GDB and the
7077 filenames it prints in the annotations.
7078 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7079 to be able to match a filename with either the real filename, or
7080 the name of any symbolic link to this file.
7081 (lookup_partial_symtab): Ditto.
7083 2002-04-04 Michael Snyder <msnyder@redhat.com>
7085 * breakpoint.c: Add support for hardware breakpoints in overlays.
7086 (overlay_events_enabled): New state variable.
7087 (insert_breakpoints): Use overlay_events_enabled to decide
7088 whether to attempt to set a breakpoint at the overlay load addr.
7089 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7090 (remove_breakpoint): Use overlay_events_enabled to decide
7091 whether breakpoints need to be removed from overlay load addr.
7092 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7093 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7094 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7095 disable_overlay_breakpoints): Update overlay_events_enabled.
7097 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7099 * dwarf2read.c (struct function_range): New.
7100 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7101 (check_cu_functions): New.
7102 (read_file_scope): Initialize global function lists.
7103 Call dwarf_decode_line after processing children.
7104 (read_func_scope): Add to global function list.
7105 (dwarf_decode_lines): Call check_cu_functions everywhere
7106 record_line is called. Call record_line with a linenumber
7107 of 0 to mark sequence ends.
7109 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7111 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7112 change sync with glibc.
7114 2002-04-03 Jim Blandy <jimb@redhat.com>
7116 * configure.in: Call AC_C_INLINE.
7117 * configure: Regenerated.
7119 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7121 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7122 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7124 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7126 * NEWS: Mention gcore support on FreeBSD/i386.
7128 * fbsd-proc.c: New file.
7129 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7130 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7132 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7135 2002-03-29 Jim Blandy <jimb@redhat.com>
7137 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7138 unescaped newlines in string literals, but newer ones don't. So
7141 2002-03-26 Michael Snyder <msnyder@redhat.com>
7142 Andrew Cagney <cagney@redhat.com>
7144 * cli/cli-dump.c: New file. Dump memory to file,
7145 restore file to memory.
7146 * cli/cli-dump.h: New file.
7147 * Makefile.in: Add rules, dependencies for cli-dump.o.
7148 * NEWS: Mention new commands.
7150 2002-03-28 Michael Snyder <msnyder@redhat.com>
7152 * symfile.c (symbol_file_add): Move test for null symbols to later.
7154 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7156 From veksler at il.ibm.com:
7157 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7158 the xstrduped original path.
7161 2002-03-27 Michael Snyder <msnyder@redhat.com>
7163 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7164 * infcmd.c (_initialize_infcmd): Ditto.
7165 * language.c (_initialize_language): Ditto.
7166 * symfile.c (_initialize_symfile): Ditto.
7167 * top.c (_init_main): Ditto.
7168 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7170 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7172 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7173 vector registers handling.
7174 (skip_prologue): Handle new AltiVec instructions. Fill in new
7175 fields of frame data.
7176 (frame_get_saved_regs): Fill in information for AltiVec registers.
7178 2002-03-27 Jim Blandy <jimb@redhat.com>
7180 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7181 a function; leave this macro here to invoke that function.
7182 (symbol_init_mangled_name): Declaration for that function.
7183 * symtab.c (symbol_init_mangled_name): New function.
7185 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7187 * valarith.c: Replace strerror with safe_strerror.
7188 * tracepoint.c: Ditto.
7190 * go32-nat.c: Ditto.
7194 2002-03-27 Andreas Schwab <schwab@suse.de>
7196 * event-top.c (command_line_handler): Remove useless if.
7198 2002-03-27 Andreas Jaeger <aj@suse.de>
7200 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7203 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7205 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7206 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7207 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7208 (x86_64_linux_dr_get_status, supply_gregset),
7209 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7210 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7211 (x86_64_register_info_table): Add.
7212 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7213 (x86_64_register_raw_size, x86_64_register_virtual_type),
7214 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7215 general x86_64_register_info_table.
7216 (i386_gdbarch_init): gdbarch_register_bytes is now set
7217 dynamicaly during initialization.
7218 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7219 * gdbserver/linux-x86-64-low.c: Ditto.
7221 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7223 * gdbserver/server.c (main): Call target_signal_to_host_p
7224 and target_signal_to_host on signals received from the remote.
7225 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7226 target_signal_from_host on signals sent to the remote.
7227 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7228 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7230 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7232 * signals/signals.c: Include "server.h" in gdbserver build.
7233 (target_signal_from_name): Don't use STREQ.
7234 (_initialize_signals): Likewise. Don't include function in
7237 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7239 * signals.c: Moved to...
7240 * signals/signals.c: Here.
7241 * Makefile (signals.o): Update.
7243 2002-03-26 Jeff Law (law@redhat.com)
7245 * somread.c (som_symtab_read): Remove some commented out code and
7246 updated related comments. Do not set the minimal symbol table to
7247 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7248 in a dynamic executable.
7249 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7250 where we are unable to find the minimal symbol for the given
7253 2002-03-25 Jeff Law (law@redhat.com)
7255 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7257 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7259 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7261 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7263 * command.h: Update copyright.
7264 (struct cmd_list_element): Replace definition with opaque
7266 (enum cmd_types): Document that it will eventually be moved to
7268 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7269 (MALLOCED_REPLACEMENT): Delete macro.
7270 * Makefile.in (cli_decode_h): Add $(command_h).
7271 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7272 * top.c: Include "cli/cli-decode.h".
7273 * completer.c: Include "cli/cli-decode.h".
7274 * maint.c: Include "cli/cli-decode.h".
7275 * cli/cli-decode.h: Include "command.h".
7276 (enum command_class): Delete.
7277 (enum cmd_types): Comment out.
7278 (enum cmd_auto_boolean): Delete.
7279 (enum var_types): Delete.
7281 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7283 * cli/cli-decode.c: Include "gdb_assert.h".
7284 (add_set_or_show_cmd): New static function.
7285 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7286 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7287 all fields, such as func, from the set command.
7289 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7291 * MAINTAINERS (sh-elf): Change warning flag to -w.
7293 2002-03-23 Andrew Cagney <cagney@redhat.com>
7295 * defs.h (error): Add printf format attribute.
7296 * thread-db.c (thread_from_lwp): Fix error format string.
7297 * stack.c (parse_frame_specification): Ditto.
7298 * cli/cli-decode.c (undef_cmd_error): Ditto.
7299 * scm-lang.c (scm_lookup_name): Ditto.
7300 * tracepoint.c (trace_error): Ditto.
7301 * remote-utils.c (usage): Ditto.
7302 * remote.c (compare_sections_command): Ditto.
7305 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7307 * gdbtypes.c (append_composite_type_field): New function.
7308 (init_composite_type): New function.
7309 * gdbtypes.h (append_composite_type_field): Declare.
7310 (init_composite_type): Ditto.
7312 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7314 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7316 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7318 structure returning convention for SYSV ABI case, but not
7319 for GNU/Linux, FreeBSD, or NetBSD.
7321 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7323 * symtab.h (lookup_block_symbol): Add mangled_name argument
7326 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7327 with new mangled_name argument.
7328 * linespec.c (decode_line_1): Likewise.
7329 * valops (value_of_this): Likewise.
7330 * symtab.c (lookup_transparent_type): Likewise.
7331 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7332 (lookup_symbol): If we are given a mangled name, pass it down
7333 to lookup_symbol_aux.
7334 (lookup_block_symbol): If we are given a mangled name to check
7335 against, only return symbols which match it.
7337 2002-03-22 Christopher Faylor <cgf@redhat.com>
7339 * win32-nat.c (child_create_inferior): Check for proper shell to use
7340 here, in case the user changes it on the fly.
7341 (_initialize_inftarg): Remove shell path considerations.
7343 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7345 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7346 for gdbarch_max_register_raw_size and max_register_virtual_size.
7347 Adjust copyright year.
7349 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7351 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7352 in a function to cover the entire beginning of the function
7353 as well if it does not already.
7355 2002-03-21 Tom Rix <trix@redhat.com>
7357 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7358 (rs6000_ptrace64): Renamed from ptrace64.
7360 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7362 * gdbserver/remote-utils.c (remote_open): Don't call
7363 getprotobyname, we're all using TCP here so just use
7365 * gdbserver/gdbreplay.c (remote_open): Ditto.
7367 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7369 * regcache.c (_initialize_regcache): No need to call
7370 build_regcache() at this time; it gets called whenever
7371 the gdbarch changes.
7373 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7375 * sparc-nat.c: Include sys/param.h where possible.
7377 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7380 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7381 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7382 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7384 * stabsread.c (rs6000_builtin_type): Likewise.
7385 (read_sun_floating_type): Likewise.
7387 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7389 * stabsread.c (read_member_functions): Remove skip code for duplicate
7390 constructor/destructor methods. Use standard parsing for these
7391 methods and just do not chain them to the list of methods after
7394 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7396 * coffread.c: Remove redundant static declarations. Replace
7397 occurrences of `PTR' with `void *'.
7398 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7399 * top.h (quit_cover): Likewise.
7400 * defs.h (catch_errors): Likewise.
7402 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7404 * defs.h (XMALLOC): Define.
7405 * gdb-events.sh (XMALLOC): Delete macro.
7406 * gdb-events.c, gdb-events.h: Regenerate.
7407 * gdbarch.sh (XMALLOC): Delete macro.
7408 * gdbarch.c: Regenerate.
7409 * serial.c (XMALLOC): Delete macro.
7410 * ui-file.c (XMALLOC): Ditto.
7411 * ser-unix.h (XMALLOC): Ditto.
7412 * sh-tdep.c (XMALLOC): Ditto.
7413 * ui-out.c (XMALLOC): Ditto.
7414 * utils.c (XMALLOC): Ditto.
7415 * i386-tdep.c (XMALLOC): Ditto.
7416 * gdb-events.c (XMALLOC): Ditto.
7417 * d10v-tdep.c (XMALLOC): Ditto.
7418 * cli-out.c (XMALLOC): Ditto.
7420 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7421 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7422 * ui-file.c, ui-out.c: Ditto.
7424 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7426 * command.h (struct cmd_list_element): Add field context.
7427 (set_cmd_context, get_cmd_context): Declare.
7428 * cli/cli-decode.h: Ditto.
7429 * cli/cli-decode.c (get_cmd_context): New function.
7430 (set_cmd_context): New function.
7431 (add_cmd): Initialize context.
7432 Part of fixing PR gdb/145 and PR gdb/146.
7434 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7436 * cli/cli-decode.c (cmd_type): New function.
7437 * command.h (cmd_type): Declare.
7438 * infrun.c (set_schedlock_func): Call function cmd_type.
7439 * kod.c (kod_set_os): Call cmd_type.
7440 * cris-tdep.c (cris_version_update): Use function cmd_type.
7441 (cris_mode_update, cris_abi_update): Ditto.
7443 * command.h: (execute_cmd_post_hook): Declare.
7444 (execute_cmd_pre_hook): Declare.
7445 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7446 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7447 functions. Execute pre/post hook while ensuring that afterwords
7449 * top.c (execute_command): Use execute_cmd_post_hook, and
7450 execute_cmd_pre_hook to execute pre/post commands.
7451 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7453 (hook_stop_stub): Call execute_cmd_pre_hook.
7455 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7457 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7458 set'' and this leads to a core dump. Move xstrdup of
7459 operating_system to after check that it is not NULL.
7461 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7463 * kod.c (kod_set_os): Remove unnecessary check that
7464 ``command->type'' is set_cmd.
7466 * valprint.c (set_input_radix): Use input_radix.
7467 (set_output_radix): Use output_radix.
7468 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7471 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7473 * value.h (struct value): Delete field ``substring_addr''. Change
7474 aligner fields to force_doublest_align, force_longest_align,
7475 force_core_addr_align and force_pointer_aligh.
7477 * value.h (struct value): Fix typo in above change.
7479 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7481 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7482 to fix internal_error from ``maintenance print architecture''.
7484 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7486 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7487 for gcc versions after gcc-2.8.1.
7489 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7491 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7492 for method resolution. Restore adjustment of ``this'' pointer after
7493 calling value_struct_elt, which was accidentally removed during the
7496 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7498 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7500 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7502 * value.h (value_of_register): Update.
7504 2002-03-14 Richard Henderson <rth@redhat.com>
7506 * configure.in: Detect declaration for canonicalize_file_name.
7507 * utils.c (canonicalize_file_name): Declare, if needed.
7508 (gdb_realpath): Prefer realpath if available and usable.
7509 * config.in, configure: Rebuild.
7511 2002-03-14 Richard Henderson <rth@redhat.com>
7513 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7514 a constant array bound.
7516 * MAINTAINERS: Add myself to write-after-approval.
7518 2002-03-14 Michael Snyder <msnyder@redhat.com>
7520 * symfile.c (syms_from_objfile): Return immediately if no syms.
7521 (symbol_file_add): Return immediately if no syms.
7522 (find_sym_fns): Return immediately if no syms.
7524 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7526 * gdbserver/remote-util.c (remote_open): Print remote-side's
7527 IP address when remote debugging over the network.
7529 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7531 * config/sparc/fbsd.mh: Fix copyright.
7532 * config/sparc/fbsd.mt: Likewise.
7534 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7536 * MAINTAINERS: Fix typo in name of gdb warnings option.
7537 (x86-64): Fix formating so that this can be parsed by awk.
7539 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7541 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7542 * defs.h: Include "gdb/signals.h".
7543 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7545 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7547 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7548 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7551 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7552 Don Howard <dhoward@redhat.com>
7554 * mips-tdep.c (ST0_FR): Define.
7555 (mips2_fp_compat): New function, temporarily disabled.
7556 (mips_read_fp_register_single): New function.
7557 (mips_read_fp_register_double): New function.
7558 (mips_print_register): Use them.
7559 (do_fp_register_row): Likewise.
7561 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7563 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7566 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7568 * stabsread.c (read_member_functions): Fix is_stub test for
7569 static member functions, improve comment.
7571 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7573 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7574 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7575 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7576 commands that set boolean values.
7577 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7578 (arm_rdi_resume): Always initialize PC.
7579 (arm_rdi_open): Don't use rslt as a boolean.
7580 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7581 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7582 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7583 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7585 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7587 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7588 * configure: Rebuilt.
7590 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7592 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7593 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7595 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7597 * cli/cli-decode.c (set_cmd_completer): New function.
7598 * command.h (set_cmd_completer): Declare.
7599 * cli/cli-decode.h (set_cmd_completer): Ditto.
7601 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7602 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7603 * win32-nat.c (_initialize_inftarg): Ditto.
7604 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7605 * proc-api.c (_initialize_proc_api): Ditto.
7606 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7607 * source.c (_initialize_source): Ditto.
7608 * exec.c (_initialize_exec): Ditto.
7609 * solib.c (_initialize_solib): Ditto.
7610 * top.c (init_main): Ditto.
7611 * tracepoint.c (_initialize_tracepoint): Ditto.
7612 * symfile.c (_initialize_symfile): Ditto.
7613 * printcmd.c (_initialize_printcmd): Ditto.
7614 * infcmd.c (_initialize_infcmd): Ditto.
7615 * corefile.c (_initialize_core): Ditto.
7617 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7619 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7621 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7623 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7625 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7627 * NEWS: Update headings, 5.2 has branched.
7629 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7631 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7632 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7633 (register_addr, REGISTER_RAW_SIZE): Likewise.
7634 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7635 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7637 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7639 * MAINTAINERS (x86-64): Add myself.
7640 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7641 changed value_ptr -> struct value *
7643 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7645 * configure.host (sparc64-*-freebsd): Add.
7646 * configure.tgt: Likewise.
7647 * config/sparc/fbsd.mh: New file.
7648 * config/sparc/fbsd.mt: Likewise.
7649 * config/sparc/nm-fbsd.h: Likewise.
7650 * config/sparc/tm-fbsd.h: Likewise.
7652 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7654 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7655 regformats/reg-s390x.dat.
7657 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7659 * utils.c: Add FIXME explaining true/false problem.
7661 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7663 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7665 2002-02-28 Michael Chastain <mec@shout.net>
7667 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7669 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7671 * gdbserver/linux-s390-low.c: New file.
7672 * regformats/reg-s390.dat: New file.
7673 * regformats/reg-s390x.dat: New file.
7674 * gdbserver/configure.srv: Add S/390.
7675 * gdbserver/Makefile.in: Add S/390.
7676 * configure.tgt: Enable gdbserver for S/390.
7678 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7680 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7681 first line of the doc string for "info dos", except at the end of
7682 the sentence, since the short help stops at the first period.
7684 2002-02-28 Jason Merrill <jason@redhat.com>
7686 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7688 2002-02-27 Fred Fish <fnf@redhat.com>
7690 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7691 comment (dumy -> dummy).
7693 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7695 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7697 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7699 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7701 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7703 * gdbserver/acconfig.h: New file.
7704 * gdbserver/i387-fp.c: New file.
7705 * gdbserver/i387-fp.h: New file.
7706 * gdbserver/linux-x86-64.c: New file.
7707 * regformats/reg-x86-64.dat: New file.
7708 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7709 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7710 * gdbserver/configure.in: Add support for regsets.
7711 * gdbserver/config.in: Regenerate.
7712 * gdbserver/configure: Regenerate.
7713 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7714 * gdbserver/linux-low.h: New file.
7715 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7717 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7718 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7719 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7720 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7721 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7722 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7723 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7724 "i387-fp.h". Add PTRACE_GETREGS and friends.
7725 * gdbserver/regcache.c (supply_register): New function.
7726 (supply_register_by_name): New function.
7727 (collect_register): New function.
7728 (collect_register_by_name): New function.
7730 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7732 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7733 (config.status): Add configure.srv dependency.
7734 (server_h): Add config.h dependency.
7736 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7738 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7739 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7740 * gdbserver/configure.srv: Change i386-*-linux* to use
7743 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7745 * x86-64-tdep.c: Re-indent. Update copyright date.
7747 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7749 From Michal Ludvig <mludvig@suse.cz>:
7750 * x86-64-tdep.c (value.h): Delete.
7751 (gdb_assert.h): Include.
7752 (x86_64_register_convert_to_virtual,
7753 x86_64_register_convert_to_raw ): Add check which lets only
7754 floating-point values to be converted.
7755 (value_push): Delete.
7756 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7757 (i386_gdbarch_init): Number of register_bytes fixed.
7759 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7761 * MAINTAINERS: Add x86-64 target.
7763 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7765 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7766 * osfsolib.c (solib_map_sections): Ditto.
7767 * irix5-nat.c (solib_map_sections): Ditto.
7768 * corelow.c (gdb_check_format): Ditto.
7769 * symfile.c (symfile_bfd_open): Ditto.
7770 * solib.c (solib_map_sections): Ditto.
7773 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7775 * remote.c (_initialize_remote): By default, disable ``e'' and
7776 ``E'' step out-of-range packets.
7778 2002-02-26 Andreas Schwab <schwab@suse.de>
7780 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7781 m68k_linux_frame_saved_pc.
7782 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7784 (SIGCONTEXT_PC_OFFSET): Remove.
7785 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7786 m68k_linux_sigtramp_saved_pc): New functions.
7787 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7788 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7789 (UCONTEXT_PC_OFFSET): Define.
7790 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7791 non-RT and RT signal trampolines.
7793 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7795 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7796 (TARGET_NBPG, STACK_END_ADDR): Delete
7797 (VARIABLES_INSIDE_BLOCK): Delete.
7799 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7801 * utils.c (perror_with_name): Make string parameter constant.
7802 (print_sys_errmsg): Ditto.
7804 * defs.h (perror_with_name): Update.
7805 (print_sys_errmsg): Update.
7808 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7810 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7811 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7813 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7815 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7816 if it already matches the current architecture from the exec file.
7817 Include arch-utils.h for gdbarch_info_init prototype.
7818 * Makefile.in (rs6000-nat.o): Update dependencies.
7820 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7822 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7823 list of exported variables.
7825 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7827 * gdbserver/configure.srv: New file.
7828 * gdbserver/configure.in: Use configure.srv instead
7829 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7831 * gdbserver/configure: Regenerated.
7832 * gdbserver/terminal.h: New file.
7833 * gdbserver/Makefile.in: Update for configure changes. Remove
7834 more unneeded include paths.
7836 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7838 From wiz at danbala:
7839 * config/sparc/tm-sp64.h: Fix grammar and typos.
7842 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7844 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7845 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7846 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7847 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7848 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7849 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7850 * s390-tdep.c: Ditto.
7851 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7852 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7853 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7854 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7855 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7856 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7857 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7858 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7859 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7860 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7863 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7865 * lin-thread.c: Delete file.
7866 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7867 to gdb_proc_service.h.
7868 * configure: Re-generate.
7870 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7871 * serial.c (serial_open): Delete check for "ocd".
7874 * Makefile.in (linux-thread.o): Delete target.
7875 * linux-thread.c: Delete file.
7877 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7878 renamed SH files to be consistent.
7880 * symtab.c (sort_search_symbols): Use xfree.
7882 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7884 * arm-linux-tdep.c (arm_linux_init_abi): Register
7885 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7886 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7887 definition with undef, since we don't want the sysvr4 definition.
7888 (SKIP_TRAMPOLINE_CODE): Likewise.
7890 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7892 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7894 * configure.in: (AC_CHECK_FUNCS) Added test for
7895 canonicalize_file_name Regenerated.
7896 * config.in, configure: Regenerated.
7897 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7898 defined use canonicalize_file_name.
7900 2002-02-23 Michael Chastain <mec@shout.net>
7902 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7904 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7906 * README: Remove references to cygnus.com.
7907 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7908 dot com'' form. Remove references to cygnus.com and sourceware.
7910 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7912 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7913 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7914 1003.1-2001 no longer allows "head -1".
7915 * gdb/Makefile.in (version.c): Likewise.
7916 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7917 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7918 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7920 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7922 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7923 * command.h (cmd_cfunc_eq): Declare.
7924 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7926 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7927 ``struct cmd_list_element *''.
7928 * cli/cli-cmds.c (is_complete_command): Update. Use
7930 * top.c (execute_command): Pass the command to
7931 is_complete_command.
7932 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7934 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7936 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7937 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7938 architecture defines.
7939 * s390-tdep.c (s390_gdbarch_init): Likewise.
7941 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7943 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7944 (arm_linux_push_arguments): Likewise.
7945 (arm_linux_init_abi): Register them. Also register linux-specific
7947 (find_minsym_and_objfile): Use strcmp, not STREQ.
7948 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7949 (arm_linux_call_dummy_words): Delete declaration.
7950 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7951 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7953 (LOWEST_PC): Delete.
7955 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7957 * maint.c (print_section_info): Do not prepend `0x' to filepos
7958 output, it will be handled by local_hex_string_custom.
7960 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7962 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7963 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7964 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7966 2002-02-22 Jim Blandy <jimb@redhat.com>
7968 Indicate that the bcache functions don't change the strings
7970 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7971 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7973 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7975 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7977 2002-02-21 Christopher Faylor <cgf@redhat.com>
7979 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7980 find the complete path to a loaded DLL.
7982 2002-02-21 Fred Fish <fnf@redhat.com>
7984 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7985 that marks the end of the range of a function, enter a line number
7986 entry that has a line number of zero and a PC offset that matches
7987 the end of the function. This starts a range of PC's for which no
7988 line number information is known.
7989 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7990 PC's for which no line number info is found (line number is zero)
7991 then we didn't find any valid line information.
7992 * symtab.h: Document use of zero line number entry.
7994 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7996 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7997 (have_ptrace_getvrregs): Define for run time checks.
7998 (gdb_vrregset_t): New type for Altivec register handling.
7999 (fetch_register, store_register): Fetch/store altivec register
8001 (fetch_altivec_register, store_altivec_register): New functions.
8002 (supply_vrregset, fill_vrregset): New functions.
8003 (fetch_altivec_registers, store_altivec_registers): New functions.
8004 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8007 2002-02-21 Jiri Smid <smid@suse.cz>
8009 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8011 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8013 * Makefile.in (armnbsd-nat.o): Update dependencies.
8014 * armnbsd-nat.c (supply_gregset): New function. Common code to
8015 supply the integer register set.
8016 (supply_fparegset): New function. Similar for FPA registers.
8017 (fetch_regs, fetch_fp_regs): Use them.
8018 (fetch_core_registers): Likewise.
8019 (fetch_elfcore_registers): New function.
8020 (arm_netbsd_elfcore_fns): New core-file type specification.
8021 (_initialize_arm_netbsd_nat): Register it.
8023 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8025 * armnbsd-nat.c: Include gdbcore.h.
8026 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8027 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8028 'void' to declaration, to shut up ARI.
8029 (fetch_core_registers): Make static. Rewrite using supply_register.
8030 (arm_netbsd_core_fns): New core-file type specification.
8031 (_initialize_arm_netbsd_nat): New function.
8033 2002-02-21 Christopher Faylor <cgf@redhat.com>
8035 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8038 2002-02-20 Christopher Faylor <cgf@redhat.com>
8040 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8043 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8045 * jv-exp.y (parse_number): Change type of implicit longs
8046 to builtin_type_uint64.
8048 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8050 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8051 to be an integer instead of a `union wait'.
8053 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8055 * mips-linux-nat.c: Call the operating system GNU/Linux.
8056 * mips-linux-tdep.c: Likewise.
8057 * mips-tdep.c: Likewise.
8059 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8062 * jv-exp.y (parse_number): Handle 64-bit integers.
8064 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8066 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8067 AC_STDC_HEADERS to AC_HEADER_STDC.
8068 * gdbserver/configure: Regenerated.
8070 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8072 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8074 * sparc-tdep.c (get_longjmp_target): Likewise.
8076 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8078 * News: Add news about ARM and Multi-arch. Mention the new target
8081 2002-02-19 Jim Blandy <jimb@redhat.com>
8083 * stabsread.c (error_type_complaint): Improve error message.
8085 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8087 * gdbserver/README: Update documentation.
8088 * gdbserver/configure.in: Update configury to match documentation.
8089 * gdbserver/Makefile.in: Likewise.
8090 * gdbserver/configure: Regenerated.
8091 * gdbserver/aclocal.m4: New file, generated by aclocal.
8092 * gdbserver/config.in: New file, generated by autoheader.
8094 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8096 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8099 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8101 * arm-tdep.h (enum arm_float_model): New enum.
8102 (struct gdbarch_tdep): Add fp_model.
8103 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8104 up floating-point conversions until we know the floating-point model
8105 in use by the inferior. Don't complain about being unable to
8106 determine the ABI of the inferior when we don't have one.
8107 (arm_extract_return_value): Support different floating-point models.
8108 (arm_store_return_value): Likewise.
8109 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8111 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8113 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8115 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8116 of ``current_gdbarch''.
8118 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8120 * armnbsd-nat.c : ANSIfy all function declarations.
8121 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8122 (fetch_inferior_registers): Re-implement in terms of above.
8123 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8124 (store_inferior_registers): Re-implement in terms of above.
8126 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8128 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8130 * arm-linux-tdep.c: Likewise.
8131 * config/arm/tm-linux.h: Likewise.
8133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8135 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8136 * config/arm/nbsd.mt (TM_FILE): Delete.
8137 * config/arm/tm-nbsd.h: Delete.
8139 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8141 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8142 Initialize CALL_DUMMY_LENGTH.
8144 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8146 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8148 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8149 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8150 defines one thing and that is incorrect for this port.
8151 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8153 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8155 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8157 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8159 * win32-nat.c (display_selector): New function. Displays information
8160 about the information returned by GetThreadSelectorEntry API function.
8161 (display_selectors): New function. Displays the infomation of
8162 the selector given as argument, or of CS, DS ans FS selectors
8163 if no argument is given.
8164 ( _initialize_inftarg): Add "w32" as info prefix command.
8165 Add "info w32 selector" as command calling display_selectors.
8167 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8169 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8170 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8173 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8175 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8177 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8179 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8180 (arm_fix_call_dummy): Call it.
8181 (arm_call_dummy_breakpoint_offset): Delete.
8182 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8183 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8185 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8187 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8188 Default to func_frame_chain_valid.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8192 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8194 * ppc-linux-nat.c: Update copyright.
8195 (fetch_register, store_register): Add tid parameter, don't compute
8197 (fetch_ppc_registers, store_ppc_registers): Add tid
8198 parameter. Pass it along to callees.
8199 (fetch_inferior_registers, store_inferior_registers): Compute tid
8200 here, and pass it to calleed functions.
8201 (fill_gregset, supply_fpregset): Clean up formatting.
8203 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8205 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8206 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8208 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8210 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8211 * gdbarch.c gdbarch.h: Regenerate.
8212 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8214 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8215 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8216 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8218 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8219 * arm-tdep.c (arm_get_longjmp_target): New function.
8220 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8221 this to a positive value register arm_get_longjmp_target as the
8223 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8224 (arm_linux_init_abi): Set up longjmp description in tdep.
8225 * armnbsd-nat.c (get_longjmp_target): Delete.
8226 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8227 description in tdep.
8228 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8229 (get_longjmp_target): Delete declaration.
8230 (GET_LONGJMP_TARGET): Delete.
8231 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8232 (GET_LONGJMP_TARGET): Delete.
8234 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8236 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8237 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8238 of ``current_gdbarch''.
8240 2002-02-17 Tom Tromey <tromey@redhat.com>
8242 * cli/cli-cmds.c (compare_strings): New function.
8243 (complete_command): Only print each unique item once.
8244 * completer.h (complete_line): Declare.
8245 * completer.c (complete_line): New function.
8246 (line_completion_function): Use it.
8248 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8250 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8251 * gdbarch.h, gdbarch.c: Re-generate.
8253 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8255 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8257 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8259 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8260 * valops.c (value_arg_coerce): Don't take the address of a reference
8261 to convert an argument to a reference.
8263 2002-02-15 Christopher Faylor <cgf@redhat.com>
8265 * win32-nat.c (get_image_name): New function.
8266 (handle_load_dll): Use get_image_name function.
8267 (get_child_debug_event): Avoid registering debug events until possibly
8268 execed process is started.
8269 (child_create_inferior): Allow invocation via shell so that command
8270 line redirection, etc. works ok.
8271 (_initialize_inftarg): Add new command: "set shell" to control whether
8272 a shell is used to start a process.
8274 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8276 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8277 instead of find_register_by_number.
8278 (cannot_store_register): Likewise.
8280 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8282 * dwarf2read.c: Replace fprintf (stderr, ...) by
8283 fprintf_unfiltered (gdb_stderr, ...).
8285 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8287 * gdbserver/gdbserver.1: Document --attach.
8289 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8291 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8293 * arm-tdep.c (arm_default_arm_le_breakpoint)
8294 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8295 (arm_default_thumb_be_breakpoint): New. Initialize them from
8296 traditional breakpoint defines.
8297 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8298 (arm_gdbarch_init): Initialize new breakpoint variables.
8299 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8300 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8301 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8302 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8304 (arm_netbsd_init_abi_common): ... here; new function.
8305 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8306 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8307 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8308 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8310 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8312 * arm-tdep.h (enum arm_abi): New enum.
8313 (struct gdbarch_tdep): New structure.
8314 (LOWEST_PC): Provide a default.
8315 (arm_gdbarch_register_os_abi): Declare new function.
8316 * arm-tdep.c (arm_abi_names): New array.
8317 (process_note_abi_tag_sections): New function.
8318 (get_elfosabi): New function.
8319 (arm_gdbarch_register_os_abi): New function.
8320 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8321 support for that ABI has been built in, then call the appropriate
8322 configuration routine. Use gdbarch_num_regs() to get the number
8324 (arm_dump_tdep): New function.
8325 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8326 place-holder functions.
8327 (_initialize_arm_tdep): Register them.
8328 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8330 * armnbsd-tdep.c: New file.
8331 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8332 * config/arm/nbsd.mt (TDEPFILES): Add it.
8333 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8335 * armnbsd-nat.c: Include regcache.h.
8336 * Makefile.in (armnbsd-nat.o): Update dependency list.
8338 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8340 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8342 * gdbserver/Makefile.in: Fix typos in target rules.
8344 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8346 Fix part of PR gdb/267.
8347 * linespec.c (find_methods): Handle constructors specially for now.
8349 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8351 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8353 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8354 standard_coerce_float_to_double().
8356 2002-02-14 Christopher Faylor <cgf@redhat.com>
8358 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8361 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8364 find_variant_by_name, because it confuses the multiarch
8365 framework. Return NULL if there isn't an architecture with the
8366 user supplied name, instead of forcing a different one without
8367 recording the change with the multiarch machinery.
8368 (find_variant_by_name): Delete.
8370 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8372 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8373 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8375 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8377 * stack.c (print_frame_info_base): When calling
8378 print_frame_info_listing_hook, set current_source_symtab.
8380 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8382 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8383 and remove unused $(INCLUDE_DIR).
8384 Add regcache.c to OBS.
8385 Add generated register protocol files to clean target.
8386 Update dependencies for new objects, obsolete old target code.
8388 * gdbserver/linux-low.c: Remove all platform-specific code to
8389 new files. Remove various dead code. Update to use regcache
8391 * gdbserver/remote-utils.c (fromhex): Add return statement
8393 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8395 (input_interrupt): Add integer parameter to match prototype
8396 of a signal handler.
8397 (outreg): Use register_data ().
8398 (prepare_resume_reply): Use gdbserver_expedite_regs.
8399 * gdbserver/server.c (main): Dynamically allocate own_buf because
8400 PBUFSIZ is no longer constant. Use registers_to_string () and
8401 registers_from_string ().
8402 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8403 for error (), fatal (), and warning (). Update definition of
8404 PBUFSIZ to use regcache functionality. Add include guard.
8405 * gdbserver/utils.c (fatal): Add missing ``const''.
8406 (warning): New function.
8408 * regformats/regdat.sh: Include "regcache.h" in generated files.
8409 Provide init_registers () function.
8410 * regformats/regdef.h: Add prototype for set_register_cache ().
8413 * gdbserver/linux-arm-low.c: New file.
8414 * gdbserver/linux-i386-low.c: New file.
8415 * gdbserver/linux-ia64-low.c: New file.
8416 * gdbserver/linux-m68k-low.c: New file.
8417 * gdbserver/linux-mips-low.c: New file.
8418 * gdbserver/linux-ppc-low.c: New file.
8419 * gdbserver/linux-sh-low.c: New file.
8421 * gdbserver/regcache.c: New file.
8422 * gdbserver/regcache.h: New file.
8424 * gdbserver/low-linux.c: Removed obsolete file.
8426 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8428 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8429 * config/i386/linux.mt: Likewise.
8430 * config/ia64/linux.mt: Likewise.
8431 * config/m68k/linux.mh: Likewise.
8432 * config/powerpc/linux.mh: Likewise.
8433 * config/mips/linux.mt: Likewise.
8435 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8437 * config/i386/i386lynx.mh: Mark gdbserver variables
8438 as (currently) obsolete for this target.
8439 * config/i386/nbsd.mt: Likewise.
8440 * config/i386/nbsdelf.mt: Likewise.
8441 * config/m32r/m32r.mt: Likewise.
8442 * config/m68k/m68klynx.mh: Likewise.
8443 * config/m68k/nbsd.mt: Likewise.
8444 * config/m68k/sun3os4.mh: Likewise.
8445 * config/mips/vr5000.mt: Likewise.
8446 * config/ns32k/nbsd.mt: Likewise.
8447 * config/pa/hppabsd.mh: Likewise.
8448 * config/pa/hppaosf.mh: Likewise.
8449 * config/powerpc/nbsd.mt: Likewise.
8450 * config/rs6000/rs6000lynx.mh: Likewise.
8451 * config/s390/s390.mt: Likewise.
8452 * config/s390/s390x.mt: Likewise.
8453 * config/sparc/sparclynx.mh: Likewise.
8454 * config/sparc/sun4os4.mh: Likewise.
8455 * config/i386/x86-64linux.mt: Likewise.
8456 * config/sparc/linux.mh: Likewise.
8458 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8460 * configure.tgt: Configure gdbserver only for known working
8461 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8462 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8463 SUBDIRS if it is configured. Update comment for ${nativefile}.
8464 * configure: Regenerated.
8466 2002-02-13 Michael Snyder <msnyder@redhat.com>
8468 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8470 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8471 (default_gcore_mach): Just return 0, work around a problem in bfd.
8472 (default_gcore_target): OK to return NULL if exec_bfd is null.
8473 (make_mem_sec): Use a cast, avoid a warning.
8475 * procfs.c (find_memory_regions_callback): Use a cast instead of
8476 calling host_pointer_to_address (which complains if
8477 sizeof (host pointer) != sizeof (target pointer)).
8478 (procfs_make_note_section): Avoid overflow in psargs string.
8480 * procfs.c (procfs_make_note_section): Make the default
8481 implementation return an error.
8483 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8485 * procfs.c (procfs_make_note_section): Provide a default definition
8486 (for alpha-dec-osf4.0f). Fix typos.
8488 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8490 * linux-proc.c: Add include of regcache.h.
8491 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8493 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8495 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8496 * memattr.c (create_mem_region): Disallow useless empty region.
8497 Regions are half-open intervals, so allow [A..B) [B..C) as
8500 2002-02-13 Michael Chastain <mec@shout.net>
8502 * defs.h: Kill CONST_PTR.
8503 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8504 * c-lang.c (c_builtin_types): Likewise.
8505 * ch-lang.c (ch_builtin_types): Likewise.
8506 * f-lang.c (f_builtin_types): Likewise.
8507 * language.c (unknown_builtin_types): Likewise.
8508 * m2-lang.c (m2_builtin_types): Likewise.
8509 * p-lang.c (pascal_builtin_types): Likewise.
8510 * scm-lang.c (c_builtin_types): Likewise.
8512 2002-02-13 Keith Seitz <keiths@redhat.com>
8514 * arm-tdep.h (arm_get_next_pc): Add declaration.
8516 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8518 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8519 with other related struct-returning functions.
8520 (arm_extract_struct_value_address): New function.
8521 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8522 initialize float_format, double_format and long_double_format as
8523 appropriate to the endianness of the target.
8524 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8525 (arm_use_struct_convention): Delete declaration.
8526 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8528 2002-02-13 Keith Seitz <keiths@redhat.com>
8530 * defs.h (core_addr_to_string_nz): New function.
8532 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8534 Apply missing bits of 2002-01-15 patch.
8535 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8536 (fill_fpregset): Use i387_fill_fsave.
8538 2002-02-12 Keith Seitz <keiths@redhat.com>
8540 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8541 (core_addr_to_string_nz): New function.
8543 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8545 * arm-linux-nat.c: Really include arm-tdep.h.
8546 * config/arm/tm-linux.h (struct type, struct value): Declare.
8548 2002-02-11 Michael Snyder <msnyder@redhat.com>
8550 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8551 (gcore section): Ifdef for Solaris and Unixware only.
8552 (procfs_do_thread_registers): Unixware needs one lwpstatus
8553 per thread (not one prstatus or pstatus).
8554 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8555 not over all gdb threads. For unixware, call elfcore_write_pstatus
8556 once before iterating over threads.
8558 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8560 * arm-tdep.h: New file.
8561 * arm-tdep.c: Include arm-tdep.h.
8562 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8563 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8564 (arm_print_float_info, arm_register_type, convert_to_extended)
8565 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8566 (arm_extract_return_value, arm_register_name): Make static.
8567 (arm_software_single_step): Similarly. Fix types in declaration.
8568 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8569 (arm_store_return_value, arm_store_struct_return): New functions.
8570 (arm_gdbarch_init): Register the above functions. Also register
8571 call_dummy_start_offset, sizeof_call_dummy_words,
8572 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8573 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8574 max_register_virtual_size, register_size. Set up
8575 prologue_cache.saved_regs here, rather than ...
8576 (_initialize_arm_tdep): ... here.
8577 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8579 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8580 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8581 (arm_print_float_info, arm_register_type, convert_to_extended)
8582 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8583 (arm_extract_return_value, arm_register_name): Delete declarations.
8584 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8585 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8586 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8587 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8588 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8589 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8590 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8591 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8592 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8593 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8594 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8595 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8597 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8598 * remote-rdi.c remote-rdp.c: Likewise.
8599 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8600 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8601 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8604 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8605 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8606 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8607 from non-ARM_ prefixed definitions.
8608 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8610 * remote-rdi.c remote-rdp.c: Likewise.
8611 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8613 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8615 * arm-tdep.c (arm_frameless_function_invocation)
8616 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8617 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8618 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8619 (arm_pop_frame, arm_get_next_pc): Make static.
8620 (arm_gdbarch_init): Register above in gdbarch structure.
8621 (arm_read_fp): Renamed from arm_target_read_fp.
8622 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8623 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8624 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8625 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8626 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8627 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8628 (arm_pc_is_thumb_dummy): Delete declarations.
8629 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8630 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8631 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8632 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8634 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8636 * symtab.c (compare_search_syms): New function.
8637 (sort_search_symbols): New function.
8638 (search_symbols): Sort symbols after searching rather than
8641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8643 * NEWS: Linux -> GNU/Linux.
8645 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8647 * gdbarch.sh: For for level one methods, disallow a definition
8648 when partially multi-arched. Add comments explaining rationale.
8649 * gdbarch.h: Re-generate.
8651 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8653 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8656 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8658 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8660 * gdbarch.c: Re-generate.
8662 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8664 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8665 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8668 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8670 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8672 (PUSH_ARGUMENTS): Switch to using predefault.
8673 * gdbarch.c: Regenerate.
8675 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8677 * valops.c (PUSH_ARGUMENTS): Delete definition.
8678 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8679 partial. Default to default_push_arguments.
8680 * gdbarch.h, gdbarch.c: Regenerate.
8682 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8684 * defs.h (throw_exception): Rename return_to_top_level. Update
8686 * utils.c (error_stream, internal_verror, quit): Ditto.
8687 * top.c (throw_exception, catcher): Ditto.
8688 * sparclet-rom.c (sparclet_load): Ditto.
8689 * remote.c (interrupt_query, minitelnet): Ditto.
8690 * remote-sds.c (interrupt_query): Ditto.
8691 * remote-mips.c (mips_error, mips_kill): Ditto.
8692 * ocd.c (interrupt_query): Ditto.
8693 * monitor.c (monitor_interrupt_query): Ditto.
8694 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8695 * target.h: Update comment.
8697 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8699 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8701 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8702 default_double_format.
8703 * gdbarch.h, gdbarch.c: Re-generate.
8704 * findvar.c (floatformat_unknown): Delete variable definition.
8705 * doublest.h (floatformat_unknown): Delete variable declaration.
8707 2002-02-09 Jim Blandy <jimb@redhat.com>
8709 * stabsread.c (read_type): Add code to parse Sun's syntax for
8710 prototyped function types.
8712 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8714 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8715 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8717 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8719 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8720 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8721 now _initialize_xcoffsolib gets called again and overrides the
8722 commands from solib.c in a native configuration.
8724 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8726 * doublest.c (store_typed_floating): Don't try to return a value.
8729 2002-02-08 Jim Blandy <jimb@redhat.com>
8731 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8732 is prototyped and has no arguments, print its argument list as
8735 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8737 * MAINTAINERS (write-after-approval): Add myself.
8738 (paper-trail): I've escaped!
8740 2002-02-08 Christopher Faylor <cgf@redhat.com>
8742 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8744 (_initialize_check_for_gdb_ini): Ditto.
8746 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8748 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8749 xaprintf -> xasprintf.
8751 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8753 * win32-nat.c: Remove use of printf and sprintf functions.
8755 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8757 * arm-tdep.c (arm_frame_chain_valid): Make static.
8758 (arm_push_arguments): Likewise.
8759 (arm_gdbarch_init): New function.
8760 (_initialize_arm_tdep): Call it.
8761 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8762 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8763 (FRAME_CHAIN_VALID): Delete.
8764 (arm_frame_chain_valid): Delete declaration.
8765 (PUSH_ARGUMENTS): Delete.
8766 (arm_push_arguments): Delete declaration.
8767 (CALL_DUMMY_P): Delete.
8769 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8770 Corinna Vinschen <vinschen@redhat.com>
8772 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8773 on builtin float types.
8775 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8777 * utils.c: Include <curses.h> before "bfd.h".
8778 * tui/tui-hooks.c: Likewise.
8779 * tui/tui.c: Likewise.
8780 * tui/tuiCommand.c: Likewise.
8781 * tui/tuiData.c: Likewise.
8782 * tui/tuiDataWin.c: Likewise.
8783 * tui/tuiDisassem.c: Likewise.
8784 * tui/tuiGeneralWin.c: Likewise.
8785 * tui/tuiIO.c: Likewise.
8786 * tui/tuiLayout.c: Likewise.
8787 * tui/tuiRegs.c: Likewise.
8788 * tui/tuiSource.c: Likewise.
8789 * tui/tuiSourceWin.c: Likewise.
8790 * tui/tuiStack.c: Likewise.
8791 * tui/tuiWin.c: Likewise.
8793 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8795 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8796 to include space for pseudoregs as well. Update loops accordingly.
8797 (sh_fp_frame_init_saved_regs): Ditto.
8798 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8800 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8802 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8803 Add Richard Earnshaw to Arm maintainers.
8805 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8807 * defs.h (warning_begin): Delete declaration.
8809 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8812 2002-02-07 Michael Snyder <msnyder@redhat.com>
8814 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8815 Logic bug, remove misplaced else.
8817 2002-02-07 Klee Dienes <klee@apple.com>
8819 * fork-inferior.c (fork_inferior): Add '!' to the list of
8820 characters that need to be quoted when building a string for the
8821 shell. Quote '!' specifically with a backslash, since CSH chokes
8822 when trying to evaluate "str!str".
8824 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8826 * rdi-share/host.h: Only provide a typedef for bool if it is not
8829 2002-02-04 Michael Snyder <msnyder@redhat.com>
8831 * breakpoint.h (enum bptype): Add new overlay event bp type.
8832 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8834 * breakpoint.c (create_internal_breakpoint): New function.
8835 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8836 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8837 (create_thread_event_breakpoint): Ditto.
8838 (create_solib_event_breakpoint): Ditto.
8839 (create_overlay_event_breakpoint): New function.
8840 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8841 (update_breakpoints_after_exec): Delete and re-initialize
8842 overlay event breakpoints after an exec. Add FIXME comment
8843 about longjmp breakpoint.
8844 (print_it_typical): Ignore overlay event breakpoints.
8845 (print_one_breakpoint): Ditto.
8847 (bpstat_what): Do not stop for overlay event breakpoints.
8848 (delete_breakpoint): Don't delete overlay event breakpoints.
8849 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8850 (breakpoint_re_set): Re-create overlay event breakpoint.
8852 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8853 (overlay_manual_command): Disable overlay breakpoints.
8854 (overlay_off_command): Disable overlay breakpoints.
8856 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8858 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8859 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8860 to here from config/tm-arm.h.
8861 (coff_sym_is_thumb): Make static.
8862 (arm_elf_make_msymbol_special): New function.
8863 (arm_coff_make_msymbol_special): New function.
8864 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8865 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8866 (coff_sym_is_thumb): Delete declaration.
8867 (arm_elf_make_msymbol_special): Declare.
8868 (arm_coff_make_msymbol_special): Declare.
8869 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8870 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8872 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8874 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8876 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8878 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8879 * gdbarch.c gdbarch.h: Regenerate.
8880 * arch-utils.c (default_print_float_info): New function.
8881 * arch-utils.h (default_print_float_info): Prototype it.
8882 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8883 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8884 (PRINT_FLOAT_INFO): Document it.
8886 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8887 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8888 (PRINT_FLOAT_INFO): Define.
8890 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8892 * win32-nat.c (_initialize_check_for_gdb_ini):
8893 Add typecast to sprintf argument to suppress a warning.
8895 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8897 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8898 to allow easier handling of pass state.
8899 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8900 that gives exception name and address.
8901 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8902 and set last_sig value to ourstatus->value.sig. Some missing
8904 (child_continue): Correctly report continue_status.
8905 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8906 TARGET_SIGNAL_0 (new default value).
8907 (child_resume): consider sig argument passed to decide if
8908 the exception should be passed to debuggee or not.
8910 2002-02-05 Michael Snyder <msnyder@redhat.com>
8912 * regcache.c (fetch_register): Call target_fetch_register
8913 only if we don't call FETCH_PSEUDO_REGISTER.
8914 (store_register): Call target_store_register only if we
8915 don't call STORE_PSEUDO_REGISTER.
8917 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8919 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8920 ELF_MAKE_MSYMBOL_SPECIAL.
8921 * gdbarch.c, gdbarch.h: Regenerate.
8922 * arch-utils.c (default_make_msymbol_special): New function.
8923 * arch-utils.h (default_make_msymbol_special): Export.
8924 * elfread.c (elf_symtab_read): Compile use of
8925 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8927 * coffread.c (coff_symtab_read): Ditto, for
8928 COFF_MAKE_MSYMBOL_SPECIAL.
8930 2002-02-05 Jim Blandy <jimb@redhat.com>
8932 * solib-svr4.c (svr4_truncate_ptr): New function.
8933 (svr4_relocate_section_addresses): Do the address arithmetic with
8934 the appropriate truncation for target addresses, even when
8935 CORE_ADDR is larger than a target address.
8937 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8939 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8942 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8944 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8947 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8949 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8953 * gdbserver/linux-low.c: Remove unused include files.
8955 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8957 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8958 (read_inferior_memory): Use it.
8959 (write_inferior_memory): Likewise.
8961 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8963 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8964 grubbing through sys_errlist.
8966 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8968 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8970 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8971 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8973 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8975 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8976 (do_sfunc, set_cmd_sfunc): New functions.
8978 * command.h (struct cmd_list_element): Add field func.
8979 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8980 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8981 * cli/cli-decode.h: Ditto.
8983 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8984 (help_all, help_cmd_list): Ditto.
8985 (find_cmd, complete_on_cmdlist): Ditto.
8986 * top.c (execute_command): Ditto.
8988 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8991 * infcmd.c (notice_args_read): Fix function signature.
8993 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8994 * cli/cli-decode.c (add_set_cmd): Ditto.
8995 * utils.c (initialize_utils): Ditto.
8996 * maint.c (_initialize_maint_cmds): Ditto.
8997 * infrun.c (_initialize_infrun): Ditto.
8998 * demangle.c (_initialize_demangler): Ditto.
8999 * remote.c (add_packet_config_cmd): Ditto.
9000 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9001 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9002 * proc-api.c (_initialize_proc_api): Ditto.
9003 * kod.c (_initialize_kod): Ditto.
9004 * valprint.c (_initialize_valprint): Ditto.
9005 * top.c (init_main): Ditto.
9006 * infcmd.c (_initialize_infcmd): Ditto.
9007 * corefile.c (_initialize_core): Ditto.
9008 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9009 * arch-utils.c (initialize_current_architecture): Ditto.
9010 (_initialize_gdbarch_utils): Ditto.
9011 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9013 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9014 * wince.c (_initialize_inftarg): Ditto.
9015 * symfile.c (_initialize_symfile): Ditto.
9016 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9017 * language.c (_initialize_language): Ditto.
9018 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9020 2002-02-04 Michael Snyder <msnyder@redhat.com>
9022 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9024 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9026 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9027 Add rules for building the register data files.
9029 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9031 * regformats/regdat.sh: Add braces to the definition of
9032 expedite_regs_${arch}.
9034 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9036 * regformats/regdef.h (struct reg): Add comment describing the
9037 requirements for offset and size fields.
9039 2002-02-04 Andreas Schwab <schwab@suse.de>
9041 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9042 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9044 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9046 * gdbarch.sh (copyright): Update years in generated header.
9047 (SMASH_TEXT_ADDRESS): Add rule.
9048 * gdbarch.h, gdbarch.c: Re-generate.
9049 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9050 * dbxread.c: Likewise.
9051 * dwarfread.c: Likewise.
9052 * elfread.c: Likewise.
9053 * somread.c: Likewise.
9055 * arm-tdep.c (arm_smash_text_address): New function.
9056 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9058 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9060 Add support for hardware watchpoints on win32 native.
9061 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9062 CONTEXT_DEBUG_REGISTERS.
9063 (dr variable): New variable. Static array containing a local copy
9065 (debug_registers_changed): New variable. Reflects when debug registers
9066 are changed and need to be written to inferior.
9067 (debug_registers_used): New variable. Reflects when any debug register
9068 was set, used when new threads are created.
9069 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9071 (thread_rec): Set dr array if id is the thread of current_event .
9072 (child_continue, child_resume): Change the debug registers for all
9073 threads if debug_registers_changed.
9074 (child_add_thread): Change the debug registers if debug_registers_used.
9075 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9076 Link nm.h to new nm-cygwin.h file.
9077 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9078 of hardware registers.
9080 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9082 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9083 Restore behavour broken by 2002-01-20 Andrew Cagney
9084 <ac131313@redhat.com> IEEE_FLOAT removal.
9086 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9088 * c-valprint.c (c_val_print): Pass a proper valaddr to
9089 cp_print_class_method.
9090 * valops.c (search_struct_method): If there is only one method
9091 and args is NULL, return that method.
9093 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9095 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9096 accessing tag_name directly.
9098 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9100 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9101 of accessing tag_name directly.
9103 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9106 * gdbtypes.c (replace_type): New function.
9107 * gdbtypes.h (replace_type): Add prototype.
9108 * stabsread.c (read_type): Use replace_type.
9110 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9112 * Makefile.in (memattr.o): Add missing dependencies rule.
9114 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9116 * breakpoint.c (break_at_finish_command): Really export.
9117 (break_at_finish_at_depth_command): Ditto.
9118 (tbreak_at_finish_command): Ditto.
9119 * hppa-tdep.c: Include completer.h.
9120 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9121 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9123 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9125 * utils.c (do_write): New function.
9126 (error_stream): Rewrite combining the code from error_begin and
9128 (verror): Rewrite using error_stream.
9129 (error_begin): Delete function.
9131 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9133 * utils.c (error_begin): Make static.
9134 * defs.h (error_begin): Delete declaration.
9136 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9137 (decode_line_1): Use cplusplus_error instead of error_begin,
9138 cplusplus_hint and return_to_top_level.
9139 * coffread.c (coff_symfile_read): Use error instead of error_begin
9140 and return_to_top_level.
9141 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9143 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9145 * language.h (type_error, range_error): Make string parameter
9147 * language.c (warning_pre_print): Delete extern declaration.
9148 * dwarfread.c (warning_pre_print): Ditto.
9149 * language.c (type_error, range_error): Rewrite to use verror and
9150 vwarning instead of warning_begin.
9152 2002-02-01 Michael Snyder <msnyder@redhat.com>
9154 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9155 (set_ignore_count): Move misplaced comment back where it belongs.
9157 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9159 * command.h (NO_FUNCTION): Delete macro.
9160 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9161 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9162 * tracepoint.c (_initialize_tracepoint): Ditto.
9163 * cli/cli-decode.c (add_set_cmd): Ditto.
9164 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9166 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9168 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9169 Update ``this'' pointer when calling virtual functions.
9171 2002-02-01 Michael Snyder <msnyder@redhat.com>
9173 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9174 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9176 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9178 * regformats/reg-arm.dat: New file.
9179 * regformats/reg-i386.dat: New file.
9180 * regformats/reg-ia64.dat: New file.
9181 * regformats/reg-m68k.dat: New file.
9182 * regformats/reg-mips.dat: New file.
9183 * regformats/reg-ppc.dat: New file.
9184 * regformats/reg-sh.dat: New file.
9185 * regformats/regdef.h: New file.
9186 * regformats/regdat.sh: New file.
9188 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9190 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9191 (arm_frame_args_address, arm_frame_locals_address): New functions.
9192 (arm_frame_num_args): New function.
9193 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9194 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9195 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9197 2002-01-31 Michael Snyder <msnyder@redhat.com>
9199 * breakpoint.c (break_at_finish_command): Export.
9200 (break_at_finish_at_depth_command): Export.
9201 (tbreak_at_finish_command): Export.
9202 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9203 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9204 "tbreak" commands, which are HPPA specific.
9206 * printcmd.c (disassemble_command): Remove an ancient
9207 artifact of an old merge.
9209 * symfile.h (enum overlay_debugging_state):
9210 Define enum constant values for overlay mode.
9211 * symfile.c (overlay_debugging): Use enums instead of literals.
9212 (overlay_is_mapped, overlay_auto_command,
9213 overlay_manual_command): Ditto.
9215 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9216 breakpoint_here_p, breakpoint_inserted_here_p,
9217 breakpoint_thread_match, bpstat_stop_status,
9218 describe_other_breakpoints, check_duplicates, clear_command):
9219 Coding standard fixes.
9221 * target.c (target_xfer_memory): Add spaces, coding standard.
9222 (do_xfer_memory): Add missing line to trust-readonly
9223 code: check bfd SEC_READONLY flag for section.
9225 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9227 * PROBLEMS: Fix typo, 5.1->5.1.1.
9229 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9231 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9232 data symbols, since we search based on textlow and texthigh.
9233 (find_pc_sect_symtab): Likewise.
9235 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9237 * defs.h (vwarning): Declare.
9238 * utils.c (vwarning): New function.
9239 (warning): Call vwarning.
9240 (warning_begin): Delete function.
9242 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9243 the warning message.
9244 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9247 2002-01-30 Michael Snyder <msnyder@redhat.com>
9249 * NEWS: Mention "set trust-readonly-sections" command.
9250 Mention generate-core-file command.
9252 2002-01-15 Michael Snyder <msnyder@redhat.com>
9254 * target.c: New command, "set trust-readonly-sections on".
9255 (do_xfer_memory): Honor the suggestion to trust readonly sections
9256 by reading them from the object file instead of from the target.
9257 (initialize_targets): Register command "set trust-readonly-sections".
9259 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9261 * parse.c (target_map_name_to_register): Simplify, search regs and
9262 pseudo-regs using a single loop.
9264 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9266 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9268 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9270 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9271 * config/i386/i386v42mp.mh: Add i387-nat.o .
9272 * i386v4-nat.c: Include i387-nat.h.
9273 (supply_fpregset): Use i387_supply_fsave.
9274 (fill_fpregset): Use i387_fill_fsave.
9276 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9278 * arm-tdep.c (arm_call_dummy_words): Define.
9279 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9280 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9281 (CALL_DUMMY_WORDS): Define.
9282 (arm_call_dummy_words): Declare.
9283 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9284 (arm_linux_call_dummy_words): Declare.
9286 2002-01-30 Andreas Schwab <schwab@suse.de>
9288 * m68klinux-nat.c: Fix last change to use regcache_collect
9289 instead of referencing registers[] directly.
9291 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9293 * parse.c (target_map_name_to_register): Delete code wrapped in
9294 #ifdef REGISTER_NAME_ALIAS_HOOK.
9296 2002-01-28 Michael Snyder <msnyder@redhat.com>
9298 * regcache.c (legacy_read_register_gen): Need to be able to
9299 read pseudo-register as well as real register.
9300 (legacy_write_register_gen): Ditto.
9302 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9304 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9305 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9306 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9307 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9308 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9309 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9310 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9311 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9312 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9313 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9314 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9315 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9316 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9317 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9318 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9319 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9320 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9321 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9322 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9323 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9325 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9327 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9328 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9329 (initialize_current_architecture): Update target_byte_order using
9330 information from BFD.
9331 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9332 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9334 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9336 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9337 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9339 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9340 #ifdef INVALID_FLOAT.
9341 * infcmd.c (do_registers_info): Ditto.
9342 * values.c (unpack_double): Ditto. Add comment.
9344 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9345 already commented out.
9347 2002-01-26 Andreas Schwab <schwab@suse.de>
9349 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9350 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9351 registers and add support for PTRACE_GETREGS.
9353 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9355 GDB 5.1.1 released from 5.1 branch.
9356 * NEWS: Add 5.1.1 news.
9357 * README: Sync with 5.1 branch.
9359 2002-01-23 Fred Fish <fnf@redhat.com>
9361 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9362 stabstring on initial malloc. Reallocing will copy it for us,
9365 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9367 * Makefile.in (hpread_h): Delete.
9368 (HFILES_NO_SRCDIR): Remove hpread.h.
9369 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9370 (hpread.o): Update dependencies.
9371 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9373 * hp-psymtab-read.c: Remove file.
9374 * hp-symtab-read.c: Remove file.
9375 * hpread.h: Remove file.
9377 * hpread.c: Merge all contents of hp-psymtab-read.c,
9378 hp-symtab-read.c and hpread.h into this file, as it was prior to
9381 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9382 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9383 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9384 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9386 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9388 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9389 fill_gregset): Call gdbarch_tdep() just once, assign result to
9390 variable and use that, instead of calling the function several
9393 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9395 * configure.host: Accept sparcv9 as alias for sparc64.
9396 * configure.tgt: Likewise.
9398 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9400 * solib-aix5.c (build_so_list_from_mapfile)
9401 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9402 arguments is not reversed.
9403 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9404 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9406 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9408 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9409 modified version of obsolete sh_fetch_pseudo_register.
9410 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9411 (sh4_register_read): New function.
9412 (sh_pseudo_register_write): New function. Renamed and modified
9413 version of obsolete sh_store_pseudo_register.
9414 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9415 (sh4_register_write): New function.
9416 (sh_gdbarch_init): Remove setting of gdbarch function
9417 fetch_pseudo_register and store_pseudo_register. Remove setting of
9418 register_convert_to_raw, register_convert_to_virtual,
9419 register_convertible.
9420 (sh_sh4_register_convertible): Delete. No longer needed. All is
9421 taken care by architecture specific functions
9422 register_read/register_write.
9423 (sh_sh4_register_convert_to_virtual): Make static.
9424 (sh_sh4_register_convert_to_raw): Ditto.
9426 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9428 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9429 (floatformat_is_nan, floatformat_mantissa): Ditto.
9431 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9432 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9433 builtin_type_ieee_double_little,
9434 builtin_type_ieee_double_littlebyte_bigword,
9435 builtin_type_m68881_ext, builtin_type_i960_ext,
9436 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9437 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9438 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9439 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9441 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9443 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9444 parameter. Set frameless flag if it exists and depended of
9445 whether the scanned function is frameless or not.
9446 (xstormy16_skip_prologue): If function is frameless, return
9447 result of xstormy16_scan_prologue().
9448 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9451 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9453 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9454 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9455 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9456 sh_sh4_register_byte, sh_sh4_register_raw_size,
9457 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9458 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9459 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9460 sh_store_pseudo_register, sh_do_pseudo_register): Call
9461 gdbarch_tdep() just once, assign result to variable and use that,
9462 instead of calling the function several times.
9464 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9466 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9467 macros instead of LAST_FPU_CTRL_REGNUM.
9468 (store_register): Likewise.
9470 2002-01-21 Jim Blandy <jimb@redhat.com>
9472 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9473 is up-to-date before running the program, not just when a program
9476 2002-01-21 Fred Fish <fnf@redhat.com>
9478 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9479 when we have found all instructions we are looking for.
9481 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9483 * arm-tdep.c (arm_register_name): New function.
9484 (arm_registers_names): Make static.
9485 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9486 (arm_register_name): Declare.
9487 (REGISTER_NAME): Use it.
9489 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9490 Kevin Buettner <kevinb@redhat.com>
9492 Convert arm targets to new FRAME interface.
9493 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9494 (arm_frame_find_save_regs): Delete.
9495 (arm_frame_init_saved_regs): New.
9496 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9497 Allocate extra_info as required. Convert all uses of fsr.regs
9498 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9500 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9501 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9502 (check_prologue_cache, save_prologue_cache): Likewise.
9503 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9504 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9505 (FRAME_FIND_SAVED_REGS): Delete.
9506 (arm_frame_find_saved_regs): Delete prototype.
9507 (arm_frame_init_saved_regs): New prototype.
9508 (FRAME_INIT_SAVED_REGS): Define.
9510 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9512 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9514 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9516 From Jeff Law <law@redhat.com>:
9517 * infttrace.c: Include <sys/pstat.h>.
9518 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9519 exec file if the ttrace equivalent fails.
9521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9523 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9524 (closeLogFile): Ditto.
9526 2002-01-20 Michael Chastain <mec@shout.net>
9528 * top.c (print_gdb_version): Bump copyright year to 2002.
9530 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9532 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9533 Zannoni and Eli Zaretskii.
9535 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9537 * buildsym.c: Update copyright years.
9538 * c-typeprint.c: Likewise.
9539 * dwarf2read.c: Likewise.
9540 * f-typeprint.c: Likewise.
9541 * gdbtypes.c: Likewise.
9542 * gdbtypes.h: Likewise.
9543 * hp-symtab-read.c: Likewise.
9544 * hpread.c: Likewise.
9545 * mdebugread.c: Likewise.
9546 * p-typeprint.c: Likewise.
9548 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9550 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9551 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9552 byte-order selectable.
9553 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9554 * arch-utils.c: Ditto.
9555 (set_endian): Ditto.
9556 (set_endian_from_file): Ditto.
9557 * gdbserver/low-sim.c (create_inferior): Ditto.
9558 * gdbarch.sh: Ditto.
9559 * gdbarch.h: Re-generate.
9560 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9561 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9562 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9563 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9564 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9565 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9566 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9567 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9569 * config/mips/tm-wince.h: Remove #undef of macro
9570 TARGET_BYTE_ORDER_SELECTABLE.
9571 * config/sh/tm-wince.h: Ditto.
9573 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9575 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9576 member function fields. Add accessor macro
9577 TYPE_FN_FIELD_ARTIFICIAL.
9578 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9579 * c-typeprint.c (c_type_print_base): Skip artificial member
9582 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9584 * f-typeprint.c: Delete unused function f_type_print_args.
9585 * p-typeprint.c: Delete unused function pascal_type_print_args.
9587 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9589 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9590 comment. Add ``artificial'' to ``union field_location''.
9592 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9594 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9595 * mdebugread.c (parse_symbol): Likewise.
9596 * stabsread.c (define_symbol): Likewise.
9597 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9598 initializing TYPE_FIELD_BITPOS to n (obsolete).
9599 (hpread_doc_function_type): Likewise.
9600 * hpread.c (hpread_function_type): Likewise.
9602 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9604 * configure.in (host_makefile_frag): Only require a host makefile
9605 fragment when a native build.
9606 * configure: Re-generate.
9608 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9610 * doublest.h (floatformat_from_type): Declare.
9611 * doublest.c (floatformat_from_type): New function.
9612 (convert_typed_floating): Use.
9614 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9615 call to function floatformat_from_type.
9617 * gdbarch.sh (IEEE_FLOAT): Delete.
9618 * gdbarch.h, gdbarch.c: Re-generate.
9619 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9620 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9621 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9622 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9623 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9624 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9625 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9626 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9627 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9628 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9629 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9630 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9632 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9633 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9634 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9635 * sh-tdep.c (sh_gdbarch_init): Ditto.
9636 * mips-tdep.c (mips_gdbarch_init): Ditto.
9637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9638 * cris-tdep.c (cris_gdbarch_init): Ditto.
9640 2002-01-20 Jiri Smid <smid@suse.cz>
9642 * configure.host, configure.tgt: Support x86-64.
9643 * NEWS: Note new target x86-64.
9645 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9646 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9647 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9648 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9649 x86-64-linux-nat.o): Fix dependencies.
9651 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9653 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9654 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9655 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9656 * config/sparc/xm-sun4os4.h: Delete file.
9657 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9659 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9661 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9662 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9663 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9664 * config/i386/i386lynx.mh (XM_FILE): Delete.
9665 * config/rs6000/xm-rs6000ly.h: Delete file.
9666 * config/sparc/xm-sparclynx.h: Delete file.
9667 * config/m68k/xm-m68klynx.h: Delete file.
9668 * config/i386/xm-i386lynx.h: Delete file.
9669 * config/xm-lynx.h: Delete file.
9670 * config/djgpp/fnchange.lst: Update.
9672 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9674 * alpha-tdep.c (alpha_register_byte): New function.
9675 (alpha_register_raw_size): Ditto.
9676 (alpha_register_virtual_size): Ditto.
9677 (alpha_skip_prologue_internal): Renamed from
9678 alpha_skip_prologue.
9679 (alpha_skip_prologue): New version that calls
9680 alpha_skip_prologue_internal.
9681 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9682 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9683 second argument from alpha_skip_prologue.
9684 (REGISTER_BYTE): Use alpha_register_byte.
9685 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9686 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9687 (FRAMELESS_FUNCTION_INVOCATION): Use
9688 generic_frameless_function_invocation_not.
9689 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9690 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9692 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9694 * config/mips/xm-news-mips.h: Delete file.
9695 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9697 * config/m88k/xm-m88k.h: Delete file.
9698 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9699 * config/m88k/xm-delta88v4.h: Ditto.
9700 * config/m88k/xm-delta88.h: Ditto.
9702 * config/alpha/xm-fbsd.h: Delete file.
9703 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9705 * config/sparc/xm-sparc.h: Delete file.
9706 * Makefile.in (xm-sun4os4.h): Delete dependency.
9707 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9708 * config/sparc/xm-sun4os4.h: Ditto.
9709 * config/sparc/xm-linux.h: Ditto.
9711 * config/i386/xm-windows.h: Delete file.
9713 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9715 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9716 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9718 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9720 * alpha-tdep.c (alpha_call_dummy_words): New.
9721 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9722 (CALL_DUMMY_P): Define.
9723 (CALL_DUMMY_WORDS): Define.
9724 (SIZEOF_CALL_DUMMY_WORDS): Define.
9726 2002-01-19 Per Bothner <per@bothner.com>
9728 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9729 isn't NULL, which can happen with some gcj-3.x-produced code.
9731 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9733 * alpha-tdep.c (alpha_register_virtual_type): New function.
9734 (alpha_init_frame_pc_first): Ditto.
9735 (alpha_fix_call_dummy): Ditto.
9736 (alpha_store_struct_return): Ditto.
9737 (alpha_extract_struct_value_address): Ditto.
9738 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9739 alpha_register_virtual_type.
9740 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9741 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9742 alpha_extract_struct_value_address.
9743 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9744 (INIT_FRAME_PC): Use init_frame_pc_noop.
9745 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9747 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9749 * i386gnu-nat.c: Include "i386-tdep.h".
9750 (fetch_fpregs): Simplify code dealing with uninitialized floating
9751 point states such that it doesn't require FP7_REGNUM.
9753 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9755 * alpha-tdep.c (frame_extra_info): New.
9756 (alpha_find_saved_regs): Make static. Use
9758 (alpha_frame_init_saved_regs): New function.
9759 (alpha_frame_saved_pc): Use frame->extra_info.
9760 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9761 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9762 (init_extra_frame_info): Rename to...
9763 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9764 (alpha_print_extra_frame_info): New function.
9765 (alpha_frame_locals_address): Ditto.
9766 (alpha_frame_args_address): Ditto.
9767 (alpha_pop_frame): Use frame->extra_info.
9768 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9769 alpha_frame_args_address.
9770 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9771 (alpha_find_saved_regs): Remove prototype.
9772 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9773 (EXTRA_FRAME_INFO): Remove.
9774 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9775 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9777 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9779 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9780 (alpha_cannot_fetch_register): Ditto.
9781 (alpha_cannot_store_register): Ditto.
9782 (alpha_register_convertible): Ditto.
9783 (alpha_use_struct_convention): Ditto.
9784 * config/alpha/tm-alpha.h: Update copyright years.
9785 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9786 (INNER_THAN): Use core_addr_lessthan.
9787 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9788 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9789 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9790 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9791 (FRAME_CHAIN): Remove unnecessary cast.
9793 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9795 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9798 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9800 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9801 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9802 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9803 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9804 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9805 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9806 * x86-64-linux-nat.c: Ditto.
9808 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9810 * alpha-tdep.c (alpha_register_name): New function.
9811 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9812 (REGISTER_NAME): Define.
9814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9816 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9818 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9820 * alpha-tdep.c: Update copyright years.
9821 (alpha_next_pc): New function.
9822 (alpha_software_single_step): Ditto.
9823 * config/alpha/tm-alpha.h: Add prototype for
9824 alpha_software_single_step.
9826 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9828 * alphabsd-nat.c: Update copyright years.
9829 (fill_gregset): Use regcache_collect.
9830 (fill_fpregset): Likewise.
9831 (fetch_inferior_registers): Only fetch integer registers
9832 if requested to do so.
9833 (store_inferior_registers): Only store integer registers
9834 if requested to do so.
9836 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9838 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9839 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9840 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9841 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9842 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9843 * config/arm/linux.mh (XDEPFILES): Delete.
9844 * config/arm/nbsd.mh (XDEPFILES): Delete.
9845 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9846 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9847 * config/i386/i386m3.mh (XDEPFILES): Delete.
9848 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9849 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9850 * config/i386/fbsd.mh (XDEPFILES): Delete.
9851 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9852 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9853 * config/i386/i386v4.mh (XDEPFILES): Delete.
9854 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9855 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9856 * config/i386/i386aix.mh (XDEPFILES): Delete.
9857 * config/i386/go32.mh (XDEPFILES): Delete.
9858 * config/i386/cygwin.mh (XDEPFILES): Delete.
9859 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9860 * config/i386/i386mach.mh (XDEPFILES): Delete.
9861 * config/i386/i386v32.mh (XDEPFILES): Delete.
9862 * config/i386/linux.mh (XDEPFILES): Delete.
9863 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9864 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9865 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9866 * config/i386/i386sco.mh (XDEPFILES): Delete.
9867 * config/i386/i386v.mh (XDEPFILES): Delete.
9868 * config/i386/nbsd.mh (XDEPFILES): Delete.
9869 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9870 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9871 * config/i386/symmetry.mh (XDEPFILES): Delete.
9872 * config/i386/obsd.mh (XDEPFILES): Delete.
9873 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9874 * config/ia64/linux.mh (XDEPFILES): Delete.
9875 * config/ia64/aix.mh (XDEPFILES): Delete.
9876 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9877 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9878 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9879 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9880 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9881 * config/m68k/linux.mh (XDEPFILES): Delete.
9882 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9883 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9884 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9885 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9886 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9887 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9888 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9889 * config/m88k/delta88.mh (XDEPFILES): Delete.
9890 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9891 * config/m88k/m88k.mh (XDEPFILES): Delete.
9892 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9893 * config/mips/linux.mh (XDEPFILES): Delete.
9894 * config/mips/irix6.mh (XDEPFILES): Delete.
9895 * config/mips/irix5.mh (XDEPFILES): Delete.
9896 * config/mips/irix4.mh (XDEPFILES): Delete.
9897 * config/mips/irix3.mh (XDEPFILES): Delete.
9898 * config/mips/decstation.mh (XDEPFILES): Delete.
9899 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9900 (NATDEPFILES): Move core-aout.o to here.
9901 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9902 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9903 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9904 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9905 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9906 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9907 * config/pa/hpux11.mh (XDEPFILES): Delete.
9908 * config/powerpc/aix.mh (XDEPFILES): Delete.
9909 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9910 * config/powerpc/linux.mh (XDEPFILES): Delete.
9911 * config/romp/rtbsd.mh: Rename XDEPFILES.
9912 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9913 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9914 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9915 * config/s390/s390.mh (XDEPFILES): Delete.
9916 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9917 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9918 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9919 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9920 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9921 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9922 * config/sparc/linux.mh (XDEPFILES): Delete.
9923 * config/vax/vaxult.mh (XDEPFILES): Delete.
9924 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9925 * Makefile.in (DEPFILES): Remove XDEPFILES.
9927 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9929 * utils.c (internal_verror): Fix comments, default is yes not no.
9930 Update queries to match. Default to quit and dump core.
9932 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9934 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9936 * defs.h, event-top.c, gdbcmd.h: Ditto.
9937 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9938 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9939 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9940 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9941 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9942 * mi/mi-main.c:Ditto.
9944 * stack.c, symfile.c: Update copyright.
9946 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9948 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9949 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9950 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9951 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9953 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9955 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9956 * gdbserver/low-lynx.c (myattach): Likewise.
9957 * gdbserver/low-nbsd.c (myattach): Likewise.
9958 * gdbserver/low-sim.c (myattach): Likewise.
9959 * gdbserver/low-sparc.c (myattach): Likewise.
9960 * gdbserver/low-sun3.c (myattach): Likewise.
9962 * gdbserver/low-linux.c (myattach): New function.
9964 * gdbserver/server.c (attach_inferior): New function.
9965 (main): Handle "--attach".
9967 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9969 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9972 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9974 * c-typeprint.c (is_type_conversion_operator): Add additional
9975 check for non-conversion operators.
9977 2002-01-15 Michael Snyder <msnyder@redhat.com>
9979 * linux-proc.c: Add "info proc" command, a la procfs.c.
9980 (read_mapping): New function, abstract and re-use code.
9981 (linux_find_memory_regions): Use new func read_mapping.
9982 (linux_info_proc_cmd): New function, implement "info proc".
9983 (_initialize_linux_proc): Add new command "info proc".
9985 2002-01-15 Michael Snyder <msnyder@redhat.com>
9987 * symfile.c (generic_load): Use bfd_map_over_sections method
9988 instead of manipulating bfd structure members directly.
9989 (add_section_size_callback): New function, bfd sections callback
9990 used by generic_load.
9991 (load_sections_callback): New function, bfd sections callback
9992 used by generic_load.
9994 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9996 [Based on work by Jim Blandy]
9997 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9998 (builtin_type_vec128): Export.
9999 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10001 (builtin_type_vec128): New builtin type for 128 bit vector
10003 (build_gdbtypes): Initialize builtin_type_v16qi and
10004 builtin_type_v8hi. Create the vec128 register builtin type
10006 (build_builtin_type_vec128): New function.
10007 (_initialize_gdbtypes): Register builtin_type_v16qi and
10008 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10009 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10010 AltiVec register to new builtin type.
10012 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10014 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10017 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10019 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10020 CLEAN_UP_REGISTER_VALUE.
10021 * regcache.c (supply_register): Update only call.
10023 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10025 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10026 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10027 a29k-*-vxworks* targets as obsolete.
10029 2002-01-14 Michael Snyder <msnyder@redhat.com>
10031 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10032 until we can resolve portability issues.
10033 * gregset.h: Remove references to fpxregs.
10034 * gcore.c (gcore_command): Initialize note_sec to NULL.
10036 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10038 * signals.c (target_signal_to_name): Rewrite. Only use
10039 signals[].name when in bounds and non-NULL.
10041 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10043 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10044 * signals.c (target_signal_to_name): Verify that SIG is within the
10045 bounds of the signals array.
10047 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10049 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10051 2002-01-13 Keith Seitz <keiths@redhat.com>
10053 * stack.c (print_frame_info_base): Print the frame's pc
10054 only if when print_frame_info_listing_hook is not defined.
10056 2002-01-13 Keith Seitz <keiths@redhat.com>
10058 * varobj.c (varobj_set_value): Make sure that there were no
10059 errors evaluating the object before attempting to set its
10061 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10062 so this offset adjustment is no longer necessary.
10063 (create_child): Don't set the error flag if the child is
10064 a CPLUS_FAKE_CHILD.
10065 (value_of_child): If value_fetch_lazy fails, return NULL
10066 so that callers will be notified that an error occurred.
10067 (c_value_of_variable): Delay check of variable's validity
10068 until later. We actually want all structs and unions to have
10070 Do not return "???" for variables which could not be evaluated.
10071 This error condition must be returned to the caller so that it
10072 can get the error condition from gdb.
10073 (cplus_name_of_child): Adjust index for vptr before figuring
10074 out the name of the child.
10075 (cplus_value_of_child): If a child's (real) parent is not valid,
10076 don't even bother trying to give a value for it. Just return
10077 an error. Change all instances in this function.
10078 (cplus_type_of_child): If our parent is one of the "fake"
10079 parents, we need to get at the type of the real parent, and
10080 derive the child's true type using this information.
10082 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10084 From 2002-01-09 John Marshall <johnm@falch.net>:
10085 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10086 sources.redhat.com, and tweak some related URLs which had
10087 suffered from linkrot.
10089 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10092 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10093 structures passed in registers.
10095 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10097 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10098 white space which prevented compilation. Reported by DSK
10099 <dsk@student.unsw.edu.au>.
10101 2002-01-11 Michael Snyder <msnyder@redhat.com>
10103 * symfile.c (build_section_addr_info_from_section_tab):
10104 Use bfd access method instead of manipulating bfd directly.
10105 (syms_from_objfile): Ditto.
10106 (simple_overlay_update_1): Ditto.
10107 (simple_overlay_update): Ditto.
10108 (generic_load): Ditto.
10109 (overlay_unmapped_address): FIXME comment, bfd access methods.
10110 (sections_overlap): FIXME comment, bfd access methods.
10111 (pc_in_mapped_range): FIXME comment, bfd access methods.
10112 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10113 (section_is_mapped): FIXME comment, bfd access methods.
10114 (section_is_overlay): FIXME comment, bfd access methods.
10116 * symfile.c (generic_load): Whitespace and long line cleanups.
10117 Remove duplicate variable, change several local variables to
10118 more appropriate data types.
10119 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10121 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10123 From Peter Schauer:
10124 * language.c (longest_local_hex_string_custom): Use phex_nz to
10125 convert NUM to a hex string.
10127 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10129 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10131 Update Copyright year.
10133 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10135 * language.c (longest_raw_hex_string): Delete unused function.
10137 2002-01-11 Petr Sorfa <petrs@caldera.com>
10139 * MAINTAINERS (write-after-approval): Add myself.
10140 * dwarf2read.c (read_tag_string_type): Handling of
10142 (read_tag_string_type): FORTRAN fix to prevent propagation of
10144 (set_cu_language): Handling of DW_LANG_Fortran95
10146 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10148 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10149 GETPID(inferior_ptid).
10150 (store_inferior_registers): Likewise.
10152 2002-01-10 Jason Merrill <jason@redhat.com>
10154 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10157 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10159 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10160 and bfd/elf32-sh-nbsd.c.
10162 2002-01-10 Michael Snyder <msnyder@redhat.com>
10164 * NEWS: Mention --pid and corefile/proc-id behavior change.
10166 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10167 * gcore.c: Include cli/cli-decode.h instead of command.h.
10169 * main.c (captured_main): Add new command line option "--pid".
10170 If the second command line argument (following the symbol-file)
10171 begins with a digit, try to attach to it before trying to open
10173 (print_gdb_help): Document the "--pid" argument.
10175 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10177 * completer.c (command_completer): New function.
10179 * completer.h <command_completer>: Add prototype.
10181 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10182 completer for the "help" command.
10184 2002-01-09 Jason Merrill <jason@redhat.com>
10186 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10188 2002-01-09 Michael Snyder <msnyder@redhat.com>
10190 * i386-linux-nat.c (fill_fpxregset): Make global.
10191 (store_fpxregset): Ditto.
10193 * gregset.h (gdb_fpxregset_t): Define.
10194 (supply_fpxregset): Prototype.
10195 (fill_fpxregset): Prototype.
10197 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10199 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10201 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10202 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10203 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10205 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10207 * MAINTAINERS: Update target maintainer rules so that any
10208 Maintainer can approve a tested patch for a maintenance-only
10211 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10213 * MAINTAINERS (write-after-approval): Add myself.
10215 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10218 2002-01-08 Michael Snyder <msnyder@redhat.com>
10220 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10221 real name of the executable, rather than the /proc name.
10223 2002-01-03 Michael Snyder <msnyder@redhat.com>
10225 Implement a "generate-core-file" command in gdb, save target state.
10226 * gcore.c: New file. Implement new command 'generate-core-file'.
10227 Save a corefile image of the current state of the inferior.
10228 * linux-proc.c: Add linux-specific code for saving corefiles.
10229 * target.h (struct target_ops): Add new target vectors for saving
10230 corefiles; to_find_memory_regions and to_make_corefile_notes.
10231 (target_find_memory_regions): New macro.
10232 (target_make_corefile_notes): New macro.
10233 * target.c (update_current_target): Inherit new target methods.
10234 (dummy_find_memory_regions): New place-holder method.
10235 (dummy_make_corefile_notes): New place-holder method.
10236 (init_dummy_target): Initialize new dummy target vectors.
10237 * exec.c (exec_set_find_memory_regions): New function.
10238 Allow the exec_ops vector for memory regions to be taken over.
10239 (exec_make_note_section): New function, target vector method.
10240 * defs.h (exec_set_find_memory_regions): Export prototype.
10241 * procfs.c (proc_find_memory_regions): New function, corefile method.
10242 (procfs_make_note_section): New function, corefile method.
10243 (init_procfs_ops): Set new target vector pointers.
10244 (find_memory_regions_callback): New function.
10245 (procfs_do_thread_registers): New function.
10246 (procfs_corefile_thread_callback): New function.
10247 * sol-thread.c (sol_find_memory_regions): New function.
10248 (sol_make_note_section): New function.
10249 (init_sol_thread_ops): Initialize new target vectors.
10250 * inftarg.c (inftarg_set_find_memory_regions): New function.
10251 Allow to_find_memory_regions vector to be taken over.
10252 (inftarg_set_make_corefile_notes): New function.
10253 Allow to_make_corefile_notes vector to be taken over.
10254 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10255 interface layer if not target_has_execution (may be a corefile).
10256 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10257 * config/sparc/sun4sol2.mh: Ditto.
10258 * config/alpha/alpha-linux.mh: Ditto.
10259 * config/arm/linux.mh: Ditto.
10260 * config/i386/x86-64linux.mh: Ditto.
10261 * config/ia64/linux.mh: Ditto.
10262 * config/m68k/linux.mh: Ditto.
10263 * config/mips/linux.mh: Ditto.
10264 * config/powerpc/linux.mh: Ditto.
10265 * config/sparc/linux.mh: Ditto.
10267 2002-01-07 Michael Snyder <msnyder@redhat.com>
10269 * arm-linux-nat.c: Remove references to regcache.c internal data
10270 (registers[] and register_valid[]).
10272 2002-01-07 Michael Snyder <msnyder@redhat.com>
10274 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10275 so that attaching to a pid will automatically read the process's
10276 symbol file and shlibs.
10277 * Makefile.in: Add rule for linux-proc.o.
10278 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10279 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10280 * config/arm/linux.mh: Ditto.
10281 * config/i386/linux.mh: Ditto.
10282 * config/i386/x86-64linux.mh: Ditto.
10283 * config/ia64/linux.mh: Ditto.
10284 * config/m68k/linux.mh: Ditto.
10285 * config/mips/linux.mh: Ditto.
10286 * config/powerpc/linux.mh: Ditto.
10287 * config/sparc/linux.mh: Ditto.
10289 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10291 * win32-nat.c: Add i386-tdep.h dependency.
10293 2002-01-07 Michael Snyder <msnyder@redhat.com>
10295 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10296 instead of bfd_get_arch_size. Don't bail out just because
10297 there's no exec_bfd.
10299 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10300 * p-valprint.c (pascal_object_print_value): Ditto.
10301 * somread.c (som_symtab_read): Ditto.
10302 * symfile.c (simple_free_overlay_region_table): Ditto.
10303 * valops.c (value_assign): Ditto.
10305 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10306 use tilde_expand and strerror for opening save-tracepoints file.
10308 * thread-db.c (thread_db_new_objfile): Indendation fix.
10310 * infptrace.c (GDB_MAX_ALLOCA): New define.
10311 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10312 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10313 can be overridden with whatever value is appropriate to the host).
10314 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10315 alloca to allocate potentially large buffer.
10316 * rs6000-nat.c (child_xfer_memory): Ditto.
10317 * symm-nat.c (child_xfer_memory): Ditto.
10318 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10320 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10322 From Nick Clifton <nickc@redhat.com>
10323 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10325 2002-01-07 Michael Snyder <msnyder@redhat.com>
10327 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10328 Don't use exec_bfd if it's NULL.
10330 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10332 * valops.c (value_arg_coerce): Fix formatting.
10334 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10336 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10337 * gnu-nat.c: Ditto.
10339 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10341 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10342 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10343 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10344 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10345 z8k-coff have not been multi-arched. Update z8k-coff build
10348 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10350 * MAINTAINERS: Mark a29k target as obsolete.
10351 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10352 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10354 * NEWS: Note that a29k targets are obsolete.
10355 * a29k-tdep.c: Mark as obsolete.
10356 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10357 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10358 a29k-*-vxworks* targets as obsolete.
10359 * remote-adapt.c: Obsolete.
10360 * remote-eb.c: Obsolete.
10361 * remote-mm.c: Obsolete.
10362 * remote-udi.c: Obsolete.
10363 * config/a29k/a29k-udi.mt: Obsolete.
10364 * config/a29k/a29k.mt: Obsolete.
10365 * config/a29k/tm-a29k.h: Obsolete.
10366 * config/a29k/tm-vx29k.h: Obsolete.
10367 * config/a29k/vx29k.mt: Obsolete.
10369 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10371 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10372 with BFD_ENDIAN_BIG.
10374 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10376 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10377 * configure, config.in: Re-generate.
10378 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10379 * defs.h: Do not include <endian.h>.
10381 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10383 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10384 * config.in: Regenerate.
10385 * configure.in: Update copyright years.
10386 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10387 * configure: Regenerate.
10388 * i386bsd-nat.c: Update copyright years.
10389 (fill_gregset): Use regcache_collect.
10390 (fetch_inferior_registers): Only fetch integer registers
10391 if requested to do so. Add support for XMM registers
10392 using PT_GETXMMREGS.
10393 (store_inferior_registers): Only store integer registers
10394 if requested to do so. Add support for XMM registers
10395 using PT_SETXMMREGS.
10396 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10397 (store_inferior_registers): Remove.
10398 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10399 (fetch_elfcore_registers): New function.
10400 (i386nbsd_elfcore_fns): New.
10401 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10402 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10404 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10405 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10406 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10407 * config/i386/tm-nbsd.h: Update copyright years.
10408 (HAVE_SSE_REGS): Define.
10409 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10410 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10411 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10412 (SIGCONTEXT_PC_OFFSET): Remove.
10413 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10415 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10417 * configure.tgt: Remove powerpc-*-macos* target.
10418 * config/m68k/xm-mpw.h: Delete file.
10419 * config/xm-mpw.h: Delete file.
10420 * ser-mac.c: Delete file.
10421 * mpw-make.sed: Delete file.
10422 * mpw-config.in: Delete file.
10423 * mac-xdep.c: Delete file.
10424 * mac-gdb.r: Delete file.
10425 * mac-defs.h: Delete file.
10426 * mac-nat.c: Delete file.
10427 * config/powerpc/macos.mh: Delete file.
10428 * config/powerpc/macos.mt: Delete file.
10429 * config/powerpc/nm-macos.h: Delete file.
10430 * config/powerpc/tm-macos.h: Delete file.
10431 * source.c (openp, open_source_file): Remove obsolete code.
10432 * top.c (gdb_readline): Ditto.
10433 * utils.c (query): Ditto.
10434 * event-top.c (display_gdb_prompt): Ditto.
10435 * Makefile.in (ser-mac.o): Delete obsolete target.
10438 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10440 * defs.h (BIG_ENDIAN): Delete macro definition.
10441 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10442 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10443 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10444 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10445 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10446 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10447 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10448 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10449 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10450 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10451 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10452 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10453 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10454 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10455 * gdbarch.c: Re-generate.
10457 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10459 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10462 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10464 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10466 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10468 * value.h (value_ptr): Delete typedef.
10470 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10472 * i386nbsd-nat.c: Update copyright years.
10473 Include i386-tdep.h.
10475 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10477 * stabsread.c: Update copyright years.
10479 From Debashis Mahata <debashis.mahata@wipro.com>:
10480 (read_struct_fields): Deal with Sun C compiler erroneous stab
10481 output for structs and unions.
10484 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10486 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10489 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10491 * cp-abi.c: Fix whitespace.
10492 (baseclass_offset): New wrapper function.
10493 * cp-abi.h (baseclass_offset): Add prototype.
10494 (struct cp_abi_ops): Add baseclass_offset pointer.
10496 * valops.c (vb_match): Move to...
10497 * gnu-v2-abi.c (vb_match): here.
10498 * valops.c (baseclass_offset): Move to...
10499 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10501 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10503 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10504 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10505 * hpacc-abi.c (init_hpacc_ops): Likewise.
10507 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10509 * valops.c (find_overload_match): Accept obj as a
10510 reference parameter. Update it before returning.
10511 * value.h (find_overload_match): Update prototype.
10512 * eval.c (evaluate_subexp_standard): Pass object to
10513 find_overload_match by reference.
10515 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10517 * valarith.c: Replace value_ptr with struct value pointer. Remove
10518 register attribute from value declarations.
10521 * scm-lang.c (scm_lookup_name): Ditto.
10523 2002-01-03 Michael Snyder <msnyder@redhat.com>
10525 Abstract the functionality of iterating over mapped memory
10526 regions into a general purpose iterator function.
10527 * procfs.c (iterate_over_mappings): New function, general purpose
10528 iterator for memory sections.
10529 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10530 (solib_mappings_callback): New function, callback for above.
10531 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10532 (info_mappings_callback): New function, callback for above.
10534 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10536 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10538 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10539 * i386-tdep.c: Include "elf-bfd.h".
10540 (process_note_abi_tag_sections): New function.
10541 (i386_gdbarch_init): Add code to recognize various OS/ABI
10544 * maint.c (_initialize_maint_cmds): Add missing \ in
10547 For older changes see ChangeLog-2001
10553 version-control: never