2002-08-21 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6d39a69f
AC
12002-08-21 Andrew Cagney <ac131313@redhat.com>
2
3 * Makefile.in (install-gdbtk): Move to install section.
4 (rdi-share/libangsd.a): Move to end of file.
5
fa5f27c7
AC
62002-08-19 Andrew Cagney <ac131313@redhat.com>
7
8 * frame.c (frame_register_unwind): When a register, set addrp to
9 the register's byte.
10
5a89d8aa
MS
112002-08-20 Michael Snyder <msnyder@redhat.com>
12
13 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
14 used locally, so move them from the target machine header to here.
15 (mips_set_processor_type, mips_register_name, mips32_next_pc,
16 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
17 Make static.
18 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
19
822e978b
AC
202002-08-20 Andrew Cagney <cagney@redhat.com>
21
22 * NEWS: Mention that the Apollo line was made obsolete.
23 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
24 m68*-hp-hpux* obsolete.
25 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
26 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
27 * buildsym.c (make_blockvector): Make static.
28 * buildsym.h (make_blockvector): Make extern declaration obsolete.
29 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
30 (ALLDEPFILES): Remove dstread.c.
31 (dstread.o): Obsolete make rule.
32 * dstread.c: Makefile obsolete.
33 * dst.h: Ditto.
34 * config/m68k/hp300hpux.mt: Ditto.
35 * config/m68k/hp300hpux.mh: Ditto.
36 * config/m68k/hp300bsd.mt: Ditto.
37 * config/m68k/hp300bsd.mh: Ditto.
38 * config/m68k/apollo68b.mt: Ditto.
39 * config/m68k/apollo68v.mh: Ditto.
40 * config/m68k/apollo68b.mh: Ditto.
41
e41b17f0
MS
422002-08-20 Michael Snyder <msnyder@redhat.com>
43
44 * mips-tdep.c (mips_in_return_stub): Make static.
45 (mips_gdbarch_init): Set in_solib_return_trampoline.
46 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
47
d50355b6
MS
482002-08-20 Michael Snyder <msnyder@redhat.com>
49
50 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
51 * gdbarch.c, gdbarch.h: Regenerate.
52 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
53 Add.
54 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
55
757a7cc6
MS
562002-08-20 Michael Snyder <msnyder@redhat.com>
57
58 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
59 (mips_gdbarch_init): Set skip_trampoline_code,
60 in_solib_call_trampoline.
61 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
62 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
63
c8001721
EZ
642002-08-20 Elena Zannoni <ezannoni@redhat.com>
65
66 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
67
68 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
69 vector type for ev registers.
70 (e500_pseudo_register_read): New function.
71 (e500_pseudo_register_write): New function.
72 (e500_dwarf2_reg_to_regnum): New function.
73 (PPC_UISA_NOFP_SPRS): New macro.
74 (PPC_EV_REGS): New macro.
75 (PPC_GPRS_PSEUDO_REGS): New macro.
76 (registers_e500): New register set for e500.
77 (variants): Add e500 variant.
78 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
79 before setting architectural dependent variations. Initialize ev
80 registers numbers. Add case for e500 architecture. Set the
81 number of pseudo registers.
82
64366f1c
EZ
832002-08-20 Elena Zannoni <ezannoni@redhat.com>
84
85 * rs6000-tdep.c: Clean up comments.
86
7e78f0ca
AC
872002-08-20 Andrew Cagney <cagney@redhat.com>
88
89 * h8300-tdep.c: Re-indent file.
90
697f7479
JB
912002-08-20 Jim Blandy <jimb@redhat.com>
92
93 * Makefile.in (LDFLAGS): Allow the configure script to establish a
94 default for this.
95 * gdbserver/Makefile.in (LDFLAGS): Same.
96
e86ae29f
KS
972002-08-20 Keith Seitz <keiths@redhat.com>
98
99 * breakpoints.c (watch_command_1): Use internal breakpoint
100 when setting a watchpoint_scope breakpoint.
101
216b504f
EZ
1022002-08-20 Elena Zannoni <ezannoni@redhat.com>
103
104 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
105 (build_builtin_type_vec64i): Ditto.
106 (build_builtin_type_vec128): Ditto.
107 (build_builtin_type_vec128i): Ditto.
108
f7ab6ec6
MS
1092002-08-19 Michael Snyder <msnyder@redhat.com>
110
111 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
112 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
113 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
114 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
115 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
116 CALL_DUMMY_ADDRESS): Delete.
117 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
118 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
119 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
120 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
121 push_return_address.
122 (mips_register_raw_size, mips_eabi_use_struct_convention,
123 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
124 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
125 mips_init_extra_frame_info, mips_eabi_push_arguments,
126 mips_n32n64_push_arguments, mips_push_return_address,
127 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
128 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
129
b5d1566e
MS
1302002-08-19 Michael Snyder <msnyder@redhat.com>
131
132 * mips-tdep.c (mips_frame_num_args): New function.
133 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
134 frame_saved_pc, frame_args_address, frame_locals_address,
135 frame_num_args, and frame_args_skip.
136 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
137 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
138 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
139 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
140
2f1488ce
MS
1412002-08-20 Michael Snyder <msnyder@redhat.com>
142
143 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
144 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
145 * mips-tdep.c (mips_store_struct_return): New function.
146 (mips_extract_struct_value_address): New function.
147 (mips_gdbarch_init): Set store_struct_return and
148 extract_struct_value_address.
149
41ff2da1
DC
1502002-08-20 David Carlton <carlton@math.stanford.edu>
151
152 * dwarf2read.c (dwarf2_build_psymtabs): Check that
153 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
154 (read_file_scope): Check that line_header is nonzero before
155 decoding macro information.
156
e5451d58
MK
1572002-08-20 Mark Kettenis <kettenis@gnu.org>
158
159 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
160 flag the general-purpose registers as floating-point on targets
161 that don't support the floating-point registers.
162
4a6daafa
EZ
1632002-08-20 Elena Zannoni <ezannoni@redhat.com>
164
165 * rs6000-tdep.c (altivec_register_p): Delete.
166 (rs6000_do_altivec_registers): Delete.
167 (rs6000_altivec_registers_info): Delete.
168 (rs6000_do_registers_info): Delete.
169 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
170 (rs6000_gdbarch_init): Remove setting of do_registers_info.
171
ab4327e0
EZ
1722002-08-20 Elena Zannoni <ezannoni@redhat.com>
173
174 * infcmd.c (do_registers_info): Print vector registers in hex
175 format only.
176 (print_vector_info): Check that printing registers
177 makes sense.
178 (print_float_info): Ditto.
179
cb1d2653
AC
1802002-08-20 Andrew Cagney <ac131313@redhat.com>
181
182 * mips-tdep.c (mips_gdbarch_init): Update.
183 (mips_o32_extract_return_value): Rewrite.
184 (mips_o32_store_return_value): Rewrite.
185 (mips_o32_xfer_return_value): New function.
186 (mips_xfer_register): Tweak debug print message. Allow for
187 buf_offset when dumping the value transfered.
188
dfc3d9b2
AC
1892002-08-20 Andrew Cagney <ac131313@redhat.com>
190
191 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
192 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
193 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
194 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
195 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
196
7807aa61
MS
1972002-08-14 Michael Snyder <msnyder@redhat.com>
198
199 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
200
489461e2
EZ
2012002-08-19 Elena Zannoni <ezannoni@redhat.com>
202
203 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
204 register.
205 (P): New macro to define a register as a pseudo register.
206 (R, R4, R8, R16, FR32, R64, R0): Updated.
207 (struct variant): Add new fields for number of pseudo registers
208 and number of total registers.
209 (tot_num_registers): New macro replacing....
210 (num_registers): ...deleted macro.
211 (num_registers): New function.
212 (num_pseudo_registers): New function.
213 (variants): Update all variants to intialize new fields correctly.
214 Postpone initialization of number of pseudo regs and real regs.
215 (init_variants): New function.
216 (rs6000_gdbarch_init): Initialize variants. Update calculation of
217 registers offsets.
218
fcaffe4c
DC
2192002-08-19 David Carlton <carlton@math.stanford.edu>
220
2c2738a0
DC
221 * valops.c (search_struct_field): Change error message to treat
222 return value of 0 from value_static_field as meaning that field is
223 optimized out.
224 (value_struct_elt_for_reference): Ditto.
225 * values.c (value_static_field): Treat an unresolved location the
226 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
227 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
228 enclosed. Fix PR gdb/574.
fcaffe4c
DC
229 * MAINTAINERS: Add self to Write After Approval list.
230
88658117
AC
2312002-08-19 Andrew Cagney <ac131313@redhat.com>
232
233 * mips-tdep.c (mips_xfer_register): New function.
234 (mips_n32n64_extract_return_value): Rewrite.
235 (mips_gdbarch_init): For N32 and N64, set extract_return_value
236 instead of deprecated_extract_return_value.
237
21283beb
EZ
2382002-08-19 Elena Zannoni <ezannoni@redhat.com>
239
240 * rs6000-tdep.c (TDEP): Delete macro.
241 (branch_dest): Replace use of TDEP macro with its body.
242 (rs6000_pop_frame): Ditto.
243 (rs6000_push_arguments): Ditto.
244 (rs6000_skip_trampoline_code): Ditto.
245 (rs6000_frame_saved_pc): Ditto.
246 (rs6000_frame_chain): Ditto.
247 (rs6000_register_name): Ditto.
248 (rs6000_register_byte): Ditto.
249 (rs6000_register_raw_size): Ditto.
250 (rs6000_register_virtual_type): Ditto.
251 (rs6000_register_convertible): Ditto.
252 (rs6000_convert_from_func_ptr_addr): Ditto.
253
bf072999
DJ
2542002-08-19 Daniel Jacobowitz <drow@mvista.com>
255
256 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
257 conditionally.
258 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
259 MIPS_LINUX_JB_ELEMENT_SIZE.
260 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
261 for MAX_REGISTER_RAW_SIZE arrays.
262 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
263 MIPS_LINUX_JB_ELEMENT_SIZE.
264
9b949a49
PM
2652002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
266
267 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
268
6d3e79c6
AS
2692002-08-19 Aidan Skinner <aidan@velvet.net>
270
271 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
272 ada-valprint.c ada-tasks.c.
273 (YYFILES): Add ada-exp.y.
274 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
275 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
276 (ada-exp.tab.o): New target.
277
06c0b04e
AC
2782002-08-18 Andrew Cagney <ac131313@redhat.com>
279
280 * regcache.c (regcache_xfer_part): New function.
281 (regcache_raw_read_part): New function.
282 (regcache_raw_write_part): New function.
283 (regcache_cooked_read_part): New function.
284 (regcache_cooked_write_part): New function.
285 * regcache.h (regcache_raw_read_part): Declare.
286 (regcache_raw_write_part): Declare.
287 (regcache_cooked_read_part): Declare.
288 (regcache_cooked_write_part): Declare.
289
92d1e331
DJ
2902002-08-18 Daniel Jacobowitz <drow@mvista.com>
291
292 * remote.c (remote_open_1): Add async_p.
293 (remote_async_open_1): Delete.
294 (open_remote_target): Delete.
295 (remote_open, extended_remote_open): Update calls to remote_open_1.
296 (remote_async_open, extended_remote_async_open): Call
297 remote_open_1 instead of remote_async_open_1.
298
247055de
MK
2992002-08-19 Mark Kettenis <kettenis@gnu.org>
300
301 * blockframe.c: Fix a few coding standard violations.
302
641eda39
MK
3032002-08-19 Mark Kettenis <kettenis@gnu.org>
304
0b717710
MK
305 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
306 here from ...
307 * config/i386/tm-i386sco5.h: ... here. File removed.
308 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
309
26d28e12 310 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
311 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
312 (TM_FILE): Set to tm-i386.h.
313 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
314 * config/i386/tm-i386v.h: Remove file.
315 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
316 instead of "i386/tm-i386v.h".
317 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
318 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
319 "i386/tm-i386v.h".
320 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
321 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
322 "i386/tm-i386.h".
323
d4e0bab4
MK
3242002-08-18 Mark Kettenis <kettenis@gnu.org>
325
326 * config/i386/nm-i386v.h: Add protection against
327 multiple-inclusion.
328 (i386_register_u_addr): Remove prototype.
329 (register_u_addr): New prototype.
330 (REGISTER_U_ADDR): Redefine accordingly.
331 * i386v-nat.c: Improve several comments.
332 (i386_register_u_addr): Change signature and rename to
333 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
334 ubase variable.
335
46cac009
AC
3362002-08-18 Andrew Cagney <ac131313@redhat.com>
337
338 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
339 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
340 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
341 deprecated_extract_return_value.
342 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
343 rename mips_o32o64_push_arguments.
344 (mips_gdbarch_init): Update.
345 (mips_extract_return_value): Delete.
346 (mips_o32_extract_return_value): Clone mips_extract_return_value.
347 (mips_o64_extract_return_value): Clone mips_extract_return_value.
348 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
349 (mips_n32n64_extract_return_value): Clone
350 mips_extract_return_value.
351 (mips_store_return_value): Delete.
352 (mips_o32_store_return_value): Clone mips_store_return_value.
353 (mips_o64_store_return_value): Clone mips_store_return_value.
354 (mips_eabi_store_return_value): Clone mips_store_return_value.
355 (mips_n32n64_store_return_value): Clone mips_store_return_value.
356
d2e4a39e
AS
3572002-08-18 Aidan Skinner <aidan@velvet.net>
358
0c30c098
AS
359 * ada-lang.c: Use gdb_string.h instead of <string.h>.
360 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
361
3622002-08-18 Aidan Skinner <aidan@velvet.net>
363
364 * ada-lang.c: Run through gdb_indent.sh.
365 * ada-lang.h: Run through gdb_indent.sh.
366 * ada-tasks.c: Run through gdb_indent.sh.
367 * ada-typeprint.c: Run through gdb_indent.sh.
368 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 369
01fc4e33
AC
3702002-08-18 Andrew Cagney <ac131313@redhat.com>
371
372 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
373 ABI.
374
d8ee244c
MK
3752002-08-18 Mark Kettenis <kettenis@gnu.org>
376
c38d8261
MK
377 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
378
222db64c
MK
379 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
380 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
381
c2848c82
MK
382 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
383 write_register_gen instead of write_register_bytes.
384
d8ee244c
MK
385 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
386 i[3456]-*-osf1mk* configurations have been made obsolete.
387 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
388 i[3456]86-*-osf1mk* hosts obsolete.
389 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
390 targets obsolete.
391 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
392 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
393 config/i386/i386m3.mt, config/i386/nm-m3.h,
394 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
395 config/i386/i386mk.mh, config/i386/i386mk.mt,
396 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
397 obsolete.
398 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
399 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
400 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
401
61d8d407
AC
4022002-08-18 Andrew Cagney <ac131313@redhat.com>
403
404 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
405 (hppa_value_returned_from_stack): Declare.
406 (hppa_extract_return_value): Declare.
407 * config/pa/hppa.mt: New file.
408 * configure.tgt: Recognize hppa*-*-*.
409 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
410
0c52bd59
MK
4112002-08-18 Mark Kettenis <kettenis@gnu.org>
412
413 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
414 comment.
415
b5686e99
MK
4162002-08-17 Mark Kettenis <kettenis@gnu.org>
417
418 * top.c (gdb_rl_operate_and_get_next): Make sure
419 operate-and-get-next functions correctly even when the history
420 list is completely filled.
421
c1bab85b
AC
4222002-08-18 Andrew Cagney <ac131313@redhat.com>
423
424 * MAINTAINERS (Target Instruction Set Architectures): Rename
425 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
426 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
427 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
428 already listed under Host/Native.
429
430 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
431 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
432 mips*-*-*.
433
32089c7c
AC
4342002-08-17 Andrew Cagney <ac131313@redhat.com>
435
436 * config/ia64/ia64.mt: New file.
437 * config/alpha/alpha.mt: New file.
438 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
439 ia64-linux-gnu. Mention that ia64-elf is broken.
440 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
441
b4671f85
MK
4422002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
443
444 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
445 generic_func_frame_valid instead of func_frame_valid.
446
c8edd8b4
JB
4472002-08-16 Joel Brobecker <brobecker@gnat.com>
448
449 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
450 procfs appears to be broken when debugging on multi-processor
451 machines. So enable software single stepping in order to avoid
452 using the procfs interface to do next/step operations, using
453 internal breakpoints instead.
454
455 * infrun.c (handle_inferior_event): Readjust the stop_pc by
456 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
457 make this pc address equal to the value it would have if the
458 system stepping capability was used. Also set a new flag used
459 to ensure that we don't readjust the PC one more time later.
460
461 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
462 address by DECR_PC_AFTER_BREAK when software single step is
463 in use for this architecture, as this has already been taken
464 care of in handle_inferior_event().
465
238617f6
JB
4662002-08-16 Joel Brobecker <brobecker@gnat.com>
467
468 * infrun.c (handle_inferior_event): Minor reformatting, to make
469 a rather long condition expression easier to read.
470
541a7aac
AC
4712002-08-16 Andrew Cagney <ac131313@redhat.com>
472
473 * Makefile.in (gdbtk.o): Move to end of file.
474 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
475 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
476 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
477 (gdbtk-wrapper.o, gdbres.o): Ditto.
478
f92d4a7b
AC
4792002-08-16 Andrew Cagney <ac131313@redhat.com>
480
481 * Makefile.in (copying.o): Separate out compile rule.
482 (hpux-thread.o, procfs.o, signals.o): Ditto.
483 (v850ice.o, z8k-tdep.o): Ditto.
484 (tui-file.o): Move to TUI section.
485 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
486 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
487
1cce71eb
JB
4882002-08-16 Joel Brobecker <brobecker@gnat.com>
489
490 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
491 skip_trampoline_code, for better namespace-proofing.
492
493 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
494
0851f23d
JB
4952002-08-16 Joel Brobecker <brobecker@gnat.com>
496
497 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
498
f8d40ec8
JB
4992002-08-16 Joel Brobecker <brobecker@gnat.com>
500
501 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
502 signal, check whether we hit a breakpoint before checking for a
503 single step breakpoint. Otherwise, GDB fails to notice that a
504 breakpoint has been hit when stepping onto a breakpoint.
505
63d022e0
KS
5062002-08-16 Keith Seitz <keiths@redhat.com>
507
508 * gdb-events.sh (clear_gdb_event_hooks): New function.
509 * gdb-events.c: Regenerate.
510 * gdb-events.h: Regenerate.
511
6e31adb3
AC
5122002-08-16 Andrew Cagney <ac131313@redhat.com>
513
514 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
515 not_a_sw_breakpoint.
516 * breakpoint.h (bpstat_stop_status): Add parameter names.
517
c8189ed1
GS
5182002-08-16 Grace Sainsbury <graces@redhat.com>
519
520 * remote.c (remote_insert_hw_breakpoint)
521 (remote_remove_hw_breakpoint): Fix calculation of length field
522 for Z-packet.
523
d05285fa
MS
5242002-08-15 Michael Snyder <msnyder@redhat.com>
525
466d7106
MS
526 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
527 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
528 (supply_fpregset): Ditto.
529
d05285fa
MS
530 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
531 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
532 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 533 (TARGET_READ_SP): Delete.
bf1f5b4c 534 (DO_REGISTERS_INFO): Delete.
102182a9
MS
535 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
536 Delete.
537 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
538 from macros to functions.
bf1f5b4c 539
d05285fa
MS
540 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
541 (mips_register_convertible, mips_register_convert_to_virtual,
542 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
543 (mips_read_sp): New function.
544 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
545 (mips_do_registers_info): Make static.
546 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
547 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
548 (mips_register_convert_from_type, mips_register_convert_to_type):
549 New functions.
550 (mips_gdbarch_init): Set up function_start_offset,
551 register_virtual_size, pc_in_sigtramp.
d05285fa 552
e76f1f2e
AC
5532002-08-15 Andrew Cagney <ac131313@redhat.com>
554
555 * infcmd.c (vector_info): New function.
556 (_initialize_infcmd): Add command "info vector".
557 (print_vector_info): New function.
558
559 * gdbarch.sh (PRINT_VECTOR_INFO): New method
560 * gdbarch.h, gdbarch.c: Regenerate.
561
4782dc19
AC
5622002-08-15 Andrew Cagney <ac131313@redhat.com>
563
564 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
565 ``print_all''. Only print vector registers when ``print_all''.
566
23e3a7ac
AC
5672002-08-15 Andrew Cagney <ac131313@redhat.com>
568
8e186fd6
AC
569 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
570 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
571
23e3a7ac
AC
572 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
573 Add `args' parameter.
574 * gdbarch.h, gdbarch.c: Regenerate.
575
576 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
577
578 * infcmd.c (float_info): Call print_float_info.
579 (print_float_info): New function. By default, print the
580 floating-point registers.
581
582 * arch-utils.h (default_print_float_info): Delete declaration.
583 * arch-utils.c (default_print_float_info): Delete function.
584
e0ca2bb9
MK
5852002-08-16 Mark Kettenis <kettenis@gnu.org>
586
3f733acc
MK
587 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
588 out define.
589
7d8d2918
MK
590 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
591 FRAME.
592
1c7cc583
MK
593 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
594 * configure.host: Make i[3456]86-*-aix host obsolete.
595 * configure.tgt: Make i[3456]86-*-aix target obsolete.
596 * config/i386/i386aix.mh, config/i386/i386aix.mt,
597 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
598 config/i386/xm-i386aix.h: Make files obsolete.
599 * i386aix-nat.c: Make file obsolete.
600 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
601 (i386aix-nat.o): Make target obsolete.
602
e0ca2bb9
MK
603 * config/i386/nm-gnu.h: Removed.
604 * config/i386/nm-i386gnu.h: New file.
605 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
606 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
607 Moved here from ...
608 * config/i386/tm-i386gnu.h: ... here. Removed.
609 * config/i386/xm-i386gnu.h: Removed.
610 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
611 (NAT_FILE): Set to nm-i386gnu.h.
612 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
613 * i386-tdep.c: New file.
614 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
615 (i386gnu-tdep.o): Specify dependencies.
616
16057ec7 6172002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 618
6b99ee2e
MK
619 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
620 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
621 Adjust a few comments to reflect reality a bit closer.
622 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
623 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
624 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
625 target_insert_watchpoint, target_remove_watchpoint):
626 Move defines to ...
627 * config/i386/nm-i386sco5.h: ... here.
628 (kernel_u_size): Add prototype. Improve a few comments and add
629 protection against multiple inclusion.
630
d9a6f65c
MK
631 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
632 out define.
633
047eff6a
MK
634 * uw-thread.c (SP_ARG0): Define if not already defined.
635 * config/i386/tm-i386.h (SO_ARG0): Remove define.
636
dcdb1290
MK
637 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
638
5d2d0b2a
MK
639 * config/i386/tm-i386.h: Don't include "regcache.h".
640
61113f8b
MK
641 * i387-tdep.h (i387_print_float_info): New prototype.
642 * i387-tdep.c (print_i387_value, print_i387_ext,
643 print_i387_status_word, print_i387_control_word): Add `struct
644 ui_file *' argument and use it for output.
645 (i387_print_float_info): Renamed from i387_float_info. Add
646 `struct gdbarch *' and `struct ui_file *' arguments and use the
647 latter for output.
648 * i386-tdep.c: Include "i387-tdep.h".
649 (i386_gdbarch_init): Set print_float_info.
650 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
651 (FLOAT_INFO): Remove define.
652
46e0f506
MS
6532002-08-13 Michael Snyder <msnyder@redhat.com>
654
655 * mips-tdep.c (mips_push_arguments): Rename to
656 mips_eabi_push_arguments, and tune for EABI.
657 (MIPS_REGS_HAVE_HOME_P): Delete.
658 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
659 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
660 Delete references to mips_regs_have_home_p.
661
409268de
KS
6622002-08-14 Keith Seitz <keiths@redhat.com>
663
664 * Makefile.in (install-gdbtk): Create insight plugin directory.
665 Install plugins.tcl file.
666
ffc6a242
KS
6672002-08-14 Keith Seitz <keiths@redhat.com>
668
669 * configure.in: Move SUBDIRS to near top of the file so that
670 --enable options may add things to it.
671 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
672 * configure: Regenerate.
673
ebafbe83
MS
6742002-08-13 Michael Snyder <msnyder@redhat.com>
675
676 * mips-tdep.c (mips_o32o64_push_arguments): New function,
677 cloned from mips_push_arguments, tuned for o32/o64 ABI.
678 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
679
32f6f25d
AC
6802002-08-13 Andrew Cagney <ac131313@redhat.com>
681
682 * vax-tdep.c (vax_get_saved_register): Delete function.
683 (vax_gdbarch_init): Update.
684 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
685 (ns32k_gdbarch_init): Update.
686 * alpha-tdep.c (alpha_get_saved_register): Delete function.
687 (alpha_gdbarch_init): Update.
688
53826de9
AC
6892002-08-13 Andrew Cagney <cagney@redhat.com>
690
691 * regcache.c (init_regcache_descr): Overallocate the
692 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
693 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
694 nr_raw_registers.
695 (set_register_cached): Add range checking assertions. Use
696 current_regcache.
697
16057ec7 6982002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
699
700 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
701 numbers for MMX registers.
702
7b4c2dce
AC
7032002-08-13 Andrew Cagney <cagney@redhat.com>
704
705 * i386-tdep.c (i386_gdbarch_init): Use
706 generic_unwind_get_saved_register.
707
1e03ad20
KB
7082002-08-13 Kevin Buettner <kevinb@redhat.com>
709
710 * procfs.c (procfs_can_use_hw_breakpoint): New function.
711 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
712 target vector.
713 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
714 Delete. Add comment regarding this now-deleted target method.
715
548bcbec
SC
7162002-08-13 Stephane Carrez <stcarrez@nerim.fr>
717
718 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
719 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
720 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
721 real PC and the page number (if it's within the memory bank window).
722 (m68hc11_pseudo_register_write): Likewise when saving.
723 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
724 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
725 (m68hc11_register_raw_size): And use 32-bit for it.
726 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
727 16K memory bank is used by the prog; also use the virtual pc.
728
7df11f59
SC
7292002-08-13 Stephane Carrez <stcarrez@nerim.fr>
730
731 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
732 (m68hc11_gdbarch_init): Install it in gdbarch.
733 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
734 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
735 (MSYMBOL_SIZE): New for documentation.
736 (insn_return_kind): Enum to specify how a function returns.
737 (frame_extra_info): Cleanup and record the return mode.
738 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
739 register in address computation.
740 (m68hc11_get_return_insn): New to obtain the return instruction used
741 by the function.
742 (m68hc11_frame_init_saved_regs): Take into account the return
743 instruction used by the function for far and interrupt functions.
744 (m68hc11_init_extra_frame_info): Take into account page register.
745 (m68hc11_frame_args_address): Adjust according to the return mode.
746 (show_regs): Print page register only when it's used.
747
5706502a
SC
7482002-08-13 Stephane Carrez <stcarrez@nerim.fr>
749
750 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
751 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
752 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
753 registers.
754 (m68hc11_register_raw_size): Likewise.
755
28fc6740
AC
7562002-08-13 Andrew Cagney <cagney@redhat.com>
757
758 * i386-tdep.c (i386_register_name): Handle mmx registers.
759 (mmx_regnum_p): New function.
760 (i386_mmx_names): New array.
761 (mmx_num_regs): New variable.
762 (i386_pseudo_register_read): New function.
763 (i386_pseudo_register_write): New function.
764 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
765
766 * regcache.c (regcache_raw_read_unsigned): New function.
767 (regcache_raw_read_signed): New function.
768 * regcache.h (regcache_raw_read_unsigned): Declare.
769 (regcache_raw_read_signed): Declare.
770
a378f419
AC
7712002-08-13 Andrew Cagney <cagney@redhat.com>
772
773 * regcache.c (regcache_raw_read_as_address): Delete function.
774 (regcache_cooked_read_signed): New function.
775 (regcache_cooked_read_unsigned): New function.
776 * regcache.h (regcache_cooked_read_signed): Declare.
777 (regcache_cooked_read_unsigned): Declare.
778 (regcache_raw_read_as_address): Delete declaration.
779
780 * blockframe.c (generic_read_register_dummy): Use
781 regcache_cooked_read_unsigned.
782 * i386-tdep.c (i386_extract_struct_value_address): Use
783 regcache_cooked_read_unsigned.
784
81967506
SC
7852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
786
787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
788 double sizes according to ELF ABI flags.
789 (gdbarch_tdep): Record elf_flags.
790
ffe1f3ee
SC
7912002-08-13 Stephane Carrez <stcarrez@nerim.fr>
792
793 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
794 (m6812_prolog): They can appear in 68HC12 function prologue.
795 (m68hc11_frame_chain): Cleanup.
796
98216c5d
AC
7972002-08-12 Andrew Cagney <cagney@redhat.com>
798
799 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
800 declarations.
801 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
802 (i386_linux_register_raw_size): Delete function.
803 (i386_linux_init_abi): Update.
804 * i386-tdep.c (i386_register_raw_size): Delete function.
805 (i386_register_byte): Delete function.
806 (i386_gdbarch_init): Update.
807 (i386_register_size): Delete array.
808 (i386_register_offset): Delete array.
809
810 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
811 (REGISTER_RAW_SIZE): Delete macro.
812 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
813 (REGISTER_BYTE): Delete macro.
814
3b19021e
AS
8152002-08-11 Aidan Skinner <aidan@velvet.net>
816
817 * ada-lang.c (ada_lookup_partial_symbol)
818 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
819 prototype names so that grep ^func works properly.
820
821 * ada-lang.c (ada_array_element_type)
822 (ada_lookup_partial_symbol): Fix typos in parameter list.
823
824 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
825 Fix prototype names so that grep ^func works properly.
826
b063e7a2
AC
8272002-08-10 Andrew Cagney <cagney@redhat.com>
828 Elena Zannoni <ezannoni@redhat.com>
829 Martin M. Hunt <hunt@redhat.com>
830
831 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
832 (build_builtin_type_vec128i): Set the vector bit.
833 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
834 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
835 (build_builtin_type_vec64): New function.
836 (build_builtin_type_vec64i): New function.
837 (build_gdbtypes): Initialize builtin_type_vec64 and
838 builtin_type_vec64i.
839
a7e3c2ad
AC
8402002-08-09 Andrew Cagney <cagney@redhat.com>
841
842 * regcache.c (regcache_dump): Compare the register offset
843 with REGISTER_BYTE.
844 * arch-utils.c (generic_register_byte): New function.
845 * arch-utils.h (generic_register_byte): Declare.
846 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
847 * gdbarch.h, gdbarch.c: Regenerate.
848
af030b9a
AC
8492002-08-09 Andrew Cagney <cagney@redhat.com>
850
851 * regcache.c: Include "gdbcmd.h"
852 (_initialize_regcache): Add commands "maintenance print
853 registers", "maintenance print raw-registers" and "maintenance
854 print cooked-registers".
855 (enum regcache_dump_what): Define.
856 (dump_endian_bytes): New function.
857 (regcache_dump): New function.
858 (regcache_print): New function.
859 (maintenance_print_registers): New function.
860 (maintenance_print_raw_registers): New function.
861 (maintenance_print_cooked_registers): New function.
862 * Makefile.in (regcache.o): Update dependencies.
863
cb3d25d1
MS
8642002-08-09 Michael Snyder <msnyder@redhat.com>
865
866 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
867 (mips_push_arguments): Correct some comments. Use paddr_nz
868 for printing addresses in debug output. Replace static
869 allocation using MAX_REGISTER_RAW_SIZE with alloca.
870 (mips_n32n64_push_arguments): New function, cloned from
871 mips_push_arguments and tuned for the n32/n64 ABI.
872 (mips_push_register): Buffer needs dynamic allocation.
873 (mips_print_register): Ditto.
874 (do_gp_register_row): Ditto.
875 (mips_store_return_value): Ditto.
876 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
877
2163ab9d
DH
8782002-08-09 Don Howard <dhoward@redhat.com>
879
880 * memattr.c (mem_info_command): Print special case of upper bound
881 as max CORE_ADDR + 1.
882
b78bcb18
MS
8832002-08-08 Michael Snyder <msnyder@redhat.com>
884
885 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
886 returns structs by ref if they're too big to fit in two registers.
887
ffabd70d
KB
8882002-08-09 Kevin Buettner <kevinb@redhat.com>
889
890 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
891 saved regs value.
892 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
893 mips_find_saved_regs().
894 (mips_pop_frame): Likewise.
895
fbcdb4a3
KB
8962002-08-09 Kevin Buettner <kevinb@redhat.com>
897
898 * blockframe.c (frame_saved_regs_register_unwind): Revise
899 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
900 frames are in use.
901
3c3bea1c
GS
9022002-08-09 Grace Sainsbury <graces@redhat.com>
903
904 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
905 T-packets; the 'a' is not taken as a register number.
906 (remote_check_watch_resources, remote_stopped_by_watchpoint)
907 (remote_stopped_data_address): New functions; add to target
908 vector.
909 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
910 prototypes to match other implementations of this
911 function. replace integer argument with pointer -- the length
912 field in the Z-packet is the length of what is pointed to or 1 if
913 pointer is null. Add to target vector.
914 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
915 target vector.
916
917 From Mark Salter:
918 * remote.c (remote_wait): Add support to extract optional
919 watchpoint information from T-packet. Ignore unrecognized
920 optional info in T-packet.
921 (remote_async_wait): Ditto.
922
5d1d95de
CV
9232002-08-09 Corinna Vinschen <vinschen@redhat.com>
924
925 * cli/cli-dump.c: Change fopen modes to use binary open modes
926 as defined in include/fopen-bin.h throughout.
927
c86b5b38
MS
9282002-08-08 Michael Snyder <msnyder@redhat.com>
929
930 * mips-tdep.c: Minor whitespace and indentation clean-ups.
931
b30590dc
KB
9322002-08-08 Kevin Buettner <kevinb@redhat.com>
933
934 * doublest.c (store_floating): Avoid floatformat_from_doublest()
935 assertion failure by returning early after a warning.
936
498868ed
KB
9372002-08-08 Kevin Buettner <kevinb@redhat.com>
938
939 * mips-tdep.c (mips_find_saved_regs): Make static.
940 (mips_frame_init_saved_regs): New function.
941 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
942 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
943 (mips_find_saved_regs): Delete declaration.
944
b2dd6311
GS
9452002-08-08 Grace Sainsbury <graces@redhat.com>
946
3c3bea1c
GS
947 * remote.c (remote_wait, remote_async_wait): Change
948 thread_num from int to ULONGEST.
949 (unpack_varlen_hex): Change result parameter from
950 int * to ULONGEST *.
b2dd6311 951
ea47855f
AC
9522002-08-08 Andrew Cagney <ac131313@redhat.com>
953
954 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
955 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
956 powerpc*-*-*.
957 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
958
69db8bae
AC
9592002-08-08 Andrew Cagney <cagney@redhat.com>
960
961 * gcore.c (override_derive_stack_segment): Delete variable.
962 (preempt_derive_stack_segment): Delete function.
963 (derive_stack_segment): Delete function.
964 (default_derive_stack_segment): Renamed to derive_stack_segment.
965 (override_derive_heap_segment): Delete variable.
966 (preempt_derive_heap_segment): Delete function.
967 (derive_heap_segment): Delete function.
968 (default_derive_heap_segment): Rename to derive_heap_segment.
969
cb811fe7
MS
9702002-08-06 Michael Snyder <msnyder@redhat.com>
971
972 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
973 * mips-tdep.c (mips_EABI_use_struct_convention,
974 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
975 New functions. (mips_use_struct_convention): Delete.
976 (mips_gdbarch_init): set use_gdbarch_convention.
977
8b389c40
MS
9782002-08-06 Michael Snyder <msnyder@redhat.com>
979
980 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
981 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
982 mips_o32_reg_struct_has_addr): New functions.
983 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
984
5c27f28a
AC
9852002-08-07 Andrew Cagney <ac131313@redhat.com>
986
987 * regcache.c (pseudo_register): Delete function.
988 (fetch_register): Delete function.
989 (store_register): Delete function.
990 (regcache_raw_read, legacy_read_register_gen): Use
991 target_fetch_registers instead of fetch_register.
992 (legacy_write_register_gen, regcache_raw_write): Use
993 target_store_register instead of store_register.
994 (write_register_bytes): Ditto.
995
996 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
997 (STORE_PSEUDO_REGISTER): Delete.
998 * gdbarch.h, gdbarch.c: Regenerate.
999
5b331675
CV
10002002-08-06 Corinna Vinschen <vinschen@redhat.com>
1001
1002 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1003 write dump file binary.
1004
6acdf5c7
MS
10052002-08-05 Michael Snyder <msnyder@redhat.com>
1006
1007 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1008 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1009 (mips_gdbarch_init): Set N32 target to be mips64.
1010
b2f01c35
KB
10112002-08-06 Kevin Buettner <kevinb@redhat.com>
1012
1013 * frame.c (find_saved_register): Break out of loop once saved
1014 register address is found. Don't mention sparc in loop comment
1015 anymore.
1016
63db5580
KB
10172002-08-06 Kevin Buettner <kevinb@redhat.com>
1018
1019 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1020 mips_default_saved_regsize to 8.
1021
5e34e75e
AC
10222002-08-06 Andrew Cagney <ac131313@redhat.com>
1023
1024 * gcore.c: Do not include <sys/procfs.h>.
1025 * Makefile.in (gcore.o): Update dependencies.
1026
eb4c54a2
AC
10272002-08-06 Andrew Cagney <cagney@redhat.com>
1028
1029 * configure.tgt: Make arc-*-* obsolete.
1030 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1031 * MAINTAINERS: Make arc-elf obsolete.
1032 * arc-tdep.c: Make file obsolete.
1033 * config/arc/arc.mt: Ditto.
1034 * config/arc/tm-arc.h: Ditto.
1035
ced15480
TR
10362002-08-05 Theodore A. Roth <troth@verinet.com>
1037
c1bab85b 1038 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1039
b4743822
AC
10402002-08-05 Andrew Cagney <ac131313@redhat.com>
1041
1042 * mcore-tdep.c (mcore_gdbarch_init): Use
1043 generic_unwind_get_saved_register instead of
1044 generic_get_saved_register.
1045 * v850-tdep.c (v850_gdbarch_init): Ditto.
1046 * frv-tdep.c (frv_gdbarch_init): Ditto.
1047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1048 * s390-tdep.c (s390_gdbarch_init): Ditto.
1049 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1050 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1051 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1052
3956d554
JB
10532002-08-05 Joel Brobecker <brobecker@gnat.com>
1054
1055 * objfiles.h: Add missing #include "symfile.h"
1056
1057 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1058
8249c0d6
AC
10592002-08-04 Andrew Cagney <ac131313@redhat.com>
1060
1061 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1062 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1063 of FIELD_BITSIZE.
1064
b9d14705
DJ
10652002-08-04 Daniel Jacobowitz <drow@mvista.com>
1066
1067 * NEWS: Cleanup and nitpick.
1068
dd73b9bb
AC
10692002-08-03 Andrew Cagney <ac131313@redhat.com>
1070
1071 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1072
043a27f8
AC
10732002-08-03 Andrew Cagney <ac131313@redhat.com>
1074
1075 * Makefile.in (gdbtk-bp.o): Update dependencies.
1076 (gdbtk-register.o): Ditto.
1077 (gdbtk-varobj.o): Ditto.
1078
46ce284d
AC
10792002-08-03 Andrew Cagney <cagney@redhat.com>
1080
1081 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1082 m68hc11_fetch_pseudo_register.
1083 (m68hc11_pseudo_register_write): Replace
1084 m68hc11_store_pseudo_register.
1085 (m68hc11_gdbarch_init): Update.
1086
b66d6d2e
AC
1087Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1088
1089 * gdbarch.sh: Include "gdb_string.h".
1090 * gdbarch.c: Regenerate.
1091
1092 * regcache.c: Include "gdb_string.h".
1093 * ax-general.c: Ditto.
1094 * varobj.c: Ditto.
1095 * std-regs.c: Ditto.
1096 * fbsd-proc.c: Ditto.
1097 * thread.c: Ditto.
1098
1099 * Makefile.in (regcache.o): Update dependencies.
1100 (thread.o, gdbarch.o): Ditto.
1101 (ax-general.o, gdbarch.o): Ditto.
1102 (varobj.o, std-regs.o): Ditto.
1103 (fbsd-proc.o): Specify dependencies.
1104
29e1842b
AC
11052002-08-02 Andrew Cagney <cagney@redhat.com>
1106
1107 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1108 regnum.
1109 (regcache_cooked_write): Ditto.
1110
68365089
AC
11112002-08-02 Andrew Cagney <ac131313@redhat.com>
1112
1113 * regcache.c (regcache_cooked_read): New function.
1114 (regcache_cooked_write): New function.
1115 (read_register_gen): Rewrite using regcache_cooked_read.
1116 (write_register_gen): Rewrite using regcache_cooked_write.
1117
1118 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1119 Declare.
1120
d8124050
AC
11212002-08-02 Andrew Cagney <cagney@redhat.com>
1122
1123 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1124 Replace the architecture methods register_read and register_write.
1125 * gdbarch.h, gdbarch.c: Regenerate.
1126 * regcache.c (init_regcache_descr): Update.
1127 (read_register_gen): Update.
1128 (write_register_gen): Update.
1129 (supply_register): Update comment.
1130
1131 * sh-tdep.c (sh_gdbarch_init): Update.
1132 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1133 `regcache' and `gdbarch' parameters. Make `buffer' a void
1134 pointer. Update code.
1135 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1136 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1137 void pointer. Update code.
1138 (sh64_register_write): Delete.
1139 (sh4_register_read): Delete.
1140 (sh64_register_read): Delete.
1141 (sh4_register_write): Delete.
1142 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1143 void pointer, `to' parameter a void pointer.
1144 (sh_sh64_register_convert_to_raw): Ditto.
1145
a6425924
KB
11462002-08-01 Kevin Buettner <kevinb@redhat.com>
1147
1148 * mips-tdep.c (mips_register_virtual_type): Use architecture
1149 invariant return values.
1150
ff5922b5
AC
11512002-08-01 Andrew Cagney <cagney@redhat.com>
1152
1153 * linux-proc.c: Include "gdb_string.h".
1154 * Makefile.in (linux-proc.o): Update dependency list.
1155
32a6503c
KB
11562002-08-01 Kevin Buettner <kevinb@redhat.com>
1157
1158 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1159 comment.
1160
ccaa32c7
GS
11612002-08-01 Grace Sainsbury <graces@redhat.com>
1162
1163 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1164 to_insert_watchpoint, to_remove_watchpoint,
1165 to_stopped_by_watchpoint, to_stopped_data_address,
1166 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1167 target vecctor. Define their corresponding macros so they call
1168 them.
1169
1170 * target.c: Add default and debug versions of for
1171 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1172 to_insert_watchpoint, to_remove_watchpoint,
1173 to_stopped_by_watchpoint, to_stopped_data_address,
1174 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1175
78fde5f8
KB
11762002-08-01 Kevin Buettner <kevinb@redhat.com>
1177
1178 * mips-tdep.c (mips_register_virtual_type): New function.
1179 (mips_gdbarch_init): Register mips_register_virtual_type()
1180 with gdbarch machinery.
1181 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1182 this file instead of tm-bigmips.h.
1183 (MIPS_REGSIZE): Delete this macro.
1184 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1185 multiarch version in mips-tdep.c will be found.
1186
db034ac5
AC
11872002-08-01 Andrew Cagney <cagney@redhat.com>
1188
1189 * NEWS: Menion that CHILL has been made obsolete.
1190
1191 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1192 * gdbserver/Makefile.in: Ditto.
1193 * stabsread.c (read_range_type): Ditto.
1194 * gdbtypes.h: Ditto.
1195 * language.c (binop_type_check): Ditto.
1196 (binop_result_type): Ditto.
1197 (integral_type): Ditto.
1198 (character_type): Ditto.
1199 (string_type): Ditto.
1200 (boolean_type): Ditto.
1201 (structured_type): Ditto.
1202 (lang_bool_type): Ditto.
1203 (binop_type_check): Ditto.
1204 * language.h (_LANG_chill): Ditto.
1205 * dwarfread.c (set_cu_language): Ditto.
1206 * dwarfread.c (CHILL_PRODUCER): Ditto.
1207 * dwarfread.c (handle_producer): Ditto.
1208 * expression.h (enum exp_opcode): Ditto.
1209 * eval.c: Ditto for comments.
1210 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1211 * expprint.c (print_subexp): Ditto.
1212 (print_subexp): Ditto.
1213 * valops.c (value_cast): Ditto.
1214 (search_struct_field): Ditto.
1215 * value.h (COERCE_VARYING_ARRAY): Ditto.
1216 * symfile.c (init_filename_language_table): Ditto.
1217 (add_psymbol_with_dem_name_to_list): Ditto.
1218 * valarith.c (value_binop): Ditto.
1219 (value_neg): Ditto.
1220 * valops.c (value_slice): Ditto.
1221 * symtab.h (union language_specific): Ditto.
1222 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1223 (SYMBOL_DEMANGLED_NAME): Ditto.
1224 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1225 * defs.h (enum language): Ditto.
1226 * symtab.c (got_symtab): Ditto.
1227 * utils.c (fprintf_symbol_filtered): Ditto.
1228
1229 * ch-typeprint.c: Make file obsolete.
1230 * ch-valprint.c: Make file obsolete.
1231 * ch-lang.h: Make file obsolete.
1232 * ch-exp.c: Make file obsolete.
1233 * ch-lang.c: Make file obsolete.
1234
1235 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1236 CHILL_LIB.
1237 (TARGET_FLAGS_TO_PASS): Ditto.
1238 (CHILLFLAGS): Obsolete.
1239 (CHILL): Obsolete.
1240 (CHILL_FOR_TARGET): Obsolete.
1241 (CHILL_LIB): Obsolete.
1242 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1243 ch-valprint.c.
1244 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1245 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1246 ch-lang.o.
1247 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1248 targets.
1249
8aaf0b47
JB
12502002-07-31 Joel Brobecker <brobecker@gnat.com>
1251
1252 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1253 This does not change anything at the moment, but will be helpful
1254 later when full Ada support is integrated.
1255
f3a7b3a5
KB
12562002-07-31 Kevin Buettner <kevinb@redhat.com>
1257
1258 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1259 help message.
1260
fb850278
KB
12612002-07-31 Kevin Buettner <kevinb@redhat.com>
1262
1263 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1264 and save it in a local variable. Use variable in later test.
1265
e3bddbfa
KB
12662002-07-31 Kevin Buettner <kevinb@redhat.com>
1267
1268 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1269 test. (Thanks to Daniel Jacobowitz.)
1270
28d169de
KB
12712002-07-31 Kevin Buettner <kevinb@redhat.com>
1272
1273 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1274 (mips_abi_strings): Add "n64".
1275 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1276
7fe7e44e
KB
12772002-07-31 Kevin Buettner <kevinb@redhat.com>
1278
1279 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1280 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1281
c6caf090
KB
12822002-07-31 Kevin Buettner <kevinb@redhat.com>
1283
1284 * utils.c (host_pointer_to_address, address_to_host_pointer):
1285 Use gdb_assert() instead of explicit call to internal_error().
1286
c41669e0
KB
12872002-07-30 Kevin Buettner <kevinb@redhat.com>
1288
1289 * Makefile.in (rs6000-nat.o): Update dependencies.
1290
1291 From Nicholas Duffek:
1292 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1293 (aix-thread.o): New rule.
1294 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1295 * config/powerpc/aix432.mh: New file.
1296
2fda4977
DJ
12972002-07-30 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1300 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1301 (fetch_core_registers, ppc_linux_supply_gregset)
1302 (ppc_linux_supply_fpregset): New functions.
1303 (ppc_linux_regset_core_fns): New.
1304 (_initialize_ppc_linux_tdep): Call add_core_fns.
1305 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1306 and ppc_linux_supply_gregset.
1307 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1308 (supply_fpregset): Call ppc_linux_supply_fpregset.
1309 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1310 corelow.o.
1311 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1312
729051e6
DJ
13132002-07-30 Daniel Jacobowitz <drow@mvista.com>
1314
1315 * symtab.c (lookup_symbol): Demangle before lowercasing.
1316
5f8a3188
AC
13172002-07-30 Andrew Cagney <ac131313@redhat.com>
1318
1319 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1320 declaration.
1321 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1322 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1323 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1324 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1325 "gdb_string.h".
1326 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1327 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1328 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1329 (avr-tdep.o, mon960-rom.o): Ditto.
1330 (aout_stabs_gnu_h): Define.
1331 (symtab_h): Remove $(gdb_obstack_h).
1332
67f07146
JB
13332002-07-30 Jim Blandy <jimb@redhat.com>
1334
1335 Patch from David Carlton <carlton@math.stanford.edu>:
1336 * gdbinit.in: Move the `dir' commands that add GDB's own source
1337 directory to the search path to the end, so that the `gdb' source
1338 directory will be searched first.
1339
04ea0df1
AC
13402002-07-29 Andrew Cagney <ac131313@redhat.com>
1341
1342 * gdb_obstack.h: New file.
1343 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1344 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1345 * objfiles.h: Include "gdb_obstack.h".
1346 * Makefile.in (gdb_obstack_h): Define.
1347 (symtab_h): Add $(gdb_obstack_h).
1348 (objfiles_h): Add $(gdb_obstack_h).
1349
1350 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1351 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1352 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1353 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1354 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1355 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1356 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1357 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1358
1359 * Makefile.in (bcache.o): Update dependencies.
1360 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1361 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1362 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1363 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1364 (stabsread.o, symfile.o, symmisc.o): Ditto.
1365 (symtab.o, typeprint.o, macroexp.o): Ditto.
1366 (macrotab.o, mdebugread.o): Ditto.
1367 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1368 (coff_ecoff_h, aout_aout64_h): Define.
1369 (aout_stabs_gnu_h, libaout_h): Define.
1370
d138e37a
AC
13712002-07-29 Andrew Cagney <cagney@redhat.com>
1372
1373 * regcache.c (struct regcache_descr): Rename nr_registers to
1374 nr_cooked_registers. Revise comments describing the structure
1375 member fields.
1376 (init_regcache_descr): Update.
1377 (init_legacy_regcache_descr): Update.
1378 (read_register_gen, write_register_gen): When a cooked register in
1379 the raw register range, directly access the value from the raw
1380 register cache.
1381
460e6ec3
AC
13822002-07-29 Andrew Cagney <ac131313@redhat.com>
1383
1384 * z8k-tdep.c: Do not include "obstack.h".
1385 * h8300-tdep.c, h8500-tdep.c: Ditto.
1386 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1387 * valprint.c, v850-tdep.c: Ditto.
1388 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1389 * mn10200-tdep.c: Ditto.
1390
1391 * Makefile.in (z8k-tdep.o): Update dependencies.
1392 (m68hc11-tdep.o, valprint.o): Ditto.
1393 (v850-tdep.o, d10v-tdep.o): Ditto.
1394 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1395 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1396 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1397 (sh_opc_h, gdb_sim_sh_h): Define.
1398 (elf_sh_h, elf_bfd_h): Define.
1399 (opcode_m68hc11_h): Define.
1400 (OPCODES_SRC, OPCODES_DIR): define.
1401 (OPCODES): Use $(OPCODES_DIR).
1402 (gdb_sim_d10v_h): Rename sim_d10v_h.
1403 (gdb_sim_arm_h): Rename sim_arm_h.
1404
790c9cf0
KB
14052002-07-26 Kevin Buettner <kevinb@redhat.com>
1406
1407 * utils.c (host_pointer_to_address, address_to_host_pointer):
1408 Change internal_error() message to indicate function responsible
1409 for the error.
1410
9647fa49
KB
14112002-07-26 Kevin Buettner <kevinb@redhat.com>
1412
1413 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1414 calls to local_hex_string_custom().
1415
dabbe2c0
KB
14162002-07-26 Kevin Buettner <kevinb@redhat.com>
1417
1418 * irix5-nat.c: Move IRIX shared library support from here...
1419 * solib-irix.c: ...to here. Revised substantially to work with
1420 generic solib framework.
1421
b96d0a4e
KB
1422 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1423 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1424 * mips-irix-tdep.c: New file.
1425
313fb2f6
KB
1426 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1427 (mips-irix-tdep.o, solib-irix.o): New rules.
1428 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1429 solib-irix.o.
1430 * config/mips/irix6.mt (TDEPFILES): Likewise.
1431 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1432
ab2eaf26
KB
14332002-07-26 Kevin Buettner <kevinb@redhat.com>
1434
177e4768 1435 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1436 disabled (via ``#if 0'') includes.
1437
7244546a
KB
14382002-07-26 Kevin Buettner <kevinb@redhat.com>
1439
1440 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1441 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1442 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1443 Add support for the fpscr register.
1444 * rs6000-nat.c (regmap, fetch_inferior_registers)
1445 (store_inferior_registers, fetch_core_registers): Likewise.
1446
dd7be90a
KB
14472002-07-26 Kevin Buettner <kevinb@redhat.com>
1448
1449 * rs6000-nat.c (language.h): Include.
1450 (special_regs): Delete this array.
1451 (regmap): New function.
1452 (fetch_register, store_register): Use regmap() to map gdb
1453 register numbers to ptrace register numbers. Also, use
1454 outputs from regmap() to make decisions regarding type of
1455 ptrace() call to make. In particular, don't compare against
1456 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1457 (fetch_inferior_registers, store_inferior_registers): Where
1458 possible, obtain register numbers from tdep struct. Don't
1459 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1460 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1461 (LAST_UISA_SP_REGNUM): Delete.
1462
11bf77db
KB
14632002-07-25 Kevin Buettner <kevinb@redhat.com>
1464
1465 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1466 (fetch_registers, store_register, fetch_core_registers): Don't
1467 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1468 regcache_collect() as appropriate.
1469 (find_toc_address): Format hex address with local_hex_string().
1470
06afebeb
AC
14712002-07-25 Andrew Cagney <ac131313@redhat.com>
1472
1473 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1474 bfd/elf32-frv.c.
1475
8c554d79
TT
14762002-07-24 Tom Tromey <tromey@redhat.com>
1477
1478 * jv-exp.y: Marked all strings with _().
1479 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1480 internal_error.
1481 (MethodInvocation, CastExpression, parse_number, yyerror,
1482 java_type_from_name, push_expression_name, yylex): Typo fixes.
1483
e4c242d9
DJ
14842002-07-24 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1487 (tee_file_flush, tee_file_write, tee_file_fputs)
1488 (tee_file_isatty): New.
1489 * ui-file.h (tee_file_new): Add prototype.
1490
ebf56fd3
AS
14912002-07-24 Aidan Skinner <aidan@velvet.net>
1492
1493 * ada-lang.c: Change k&r style function definitions to prototyped
1494 form.
1495 * ada-typeprint.c: Change k&r style function definitions to prototyped
1496 form.
1497 * ada-valprint.c: Change k&r style function definitions to prototyped
1498 form.
1499
7fb623f7
AC
15002002-07-24 Andrew Cagney <cagney@redhat.com>
1501
1502 * README: Remove reference to remote-bug.
1503 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1504 remote-bug.c.
1505 (m88k-nat.o): Delete rule.
1506 (m88k-tdep.o): Delete rule.
1507 (remote-bug.o): Delete rule.
1508 * MAINTAINERS: Mark as obsolete.
1509 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1510 * m88k-tdep.c: Make file obsolete.
1511 * config/m88k/m88k.mh: Ditto.
1512 * config/m88k/delta88v4.mh: Ditto.
1513 * config/m88k/delta88v4.mt: Ditto.
1514 * config/m88k/delta88.mt: Ditto.
1515 * config/m88k/delta88.mh: Ditto.
1516 * remote-bug.c: Ditto.
1517 * config/m88k/tm-delta88.h: Ditto.
1518 * config/m88k/nm-delta88v4.h: Ditto.
1519 * config/m88k/xm-delta88.h: Ditto.
1520 * config/m88k/xm-dgux.h: Ditto.
1521 * config/m88k/tm-m88k.h: Ditto.
1522 * config/m88k/nm-m88k.h: Ditto.
1523 * config/m88k/tm-delta88v4.h: Ditto.
1524 * m88k-nat.c: Ditto.
1525 * cxux-nat.c: Ditto.
1526 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1527 and m88*-*-* obsolete.
1528 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1529 m88*-*-* obsolete.
1530
37611a2b
AC
15312002-07-24 Andrew Cagney <cagney@redhat.com>
1532
1533 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1534 constant. Same for local pointer variables.
1535 (extract_signed_integer): Ditto.
1536 * defs.h (extract_unsigned_integer): Update.
1537 (extract_signed_integer): Update.
1538
18ff0538
KB
15392002-07-24 Kevin Buettner <kevinb@redhat.com>
1540
1541 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1542 * gdbserver/configure: Regenerate.
1543 * gdbserver/config.in: Regenerate.
1544
1aaa5f99
AC
15452002-07-24 Andrew Cagney <cagney@redhat.com>
1546
1547 * regcache.c (regcache_raw_write): Change buf parameter to a
1548 constant void pointer.
1549 (regcache_raw_read): Change buf parameter to a void pointer.
1550 (legacy_write_register_gen): Change myaddr parameter a constant
1551 void pointer.
1552 (supply_register): Change val parameter to a const void pointer.
1553 * regcache.h (regcache_raw_write): Update declaration.
1554 (regcache_raw_read): Update declaration.
1555 (supply_register): Update declaration.
1556
b4f5539f
TT
15572002-07-24 Tom Tromey <tromey@redhat.com>
1558
1559 * defs.h (gdb_readline_wrapper): Declare.
1560 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1561 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1562 * top.c (gdb_readline_wrapper): New function.
1563 (command_line_input): Use it.
1564
0818c12a
AC
15652002-07-24 Andrew Cagney <cagney@redhat.com>
1566
1567 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1568 regcache_read and regcache_write.
1569 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1570 * regcache.c: Update.
1571 * sh-tdep.c (sh64_push_arguments): Update comment.
1572 (sh_pseudo_register_read): Update.
1573 (sh_pseudo_register_write): Update.
1574 (sh4_register_read): Update.
1575 (sh4_register_write): Update.
1576 (sh64_pseudo_register_read): Update.
1577 (sh64_pseudo_register_write): Update.
1578 (sh64_register_read): Update.
1579 (sh64_register_write): Update.
1580 * i386-tdep.c (i386_extract_return_value): Update.
1581 (i386_extract_struct_value_address): Update.
1582 (i386_extract_return_value): Update.
1583 * blockframe.c (generic_read_register_dummy): Update.
1584 (generic_call_dummy_register_unwind): Update
1585 * infrun.c (write_inferior_status_register): Update.
1586
f7321c06
JB
15872002-07-23 Jim Blandy <jimb@redhat.com>
1588
1589 * parser-defs.h (expression_context_pc): Make this extern.
1590 (Thanks to Michael Snyder.)
1591
2037aebb
AC
15922002-07-23 Andrew Cagney <ac131313@redhat.com>
1593
1594 GDB 5.2.1 released from 5.2 branch.
1595 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1596 * README: Update to mention 5.2.1.
1597
66504d44
MS
15982002-07-23 Mark Salter <msalter@redhat.com>
1599
1600 * remote.c (remote_read_bytes): Fix check for error.
1601
27bae383
KB
16022002-07-22 Kevin Buettner <kevinb@redhat.com>
1603
1604 * aix-thread.c (language.h): Include.
1605 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1606 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1607 Print newlines at end of debug messages.
1608 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1609 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1610
16112002-07-22 Kevin Buettner <kevinb@redhat.com>
1612
1613 * aix-thread.c (ppc-tdep.h): Include.
1614 (special_register_p): New function.
1615 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1616 (store_regs_user_thread): Use register number information from
1617 gdbarch_tdep struct instead of hardcoded offsets relative to
1618 FIRST_UISA_SP_REGNUM.
1619 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1620 special_register_p() instead of using FPLAST_REGNUM and
1621 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1622 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1623 will be MQ's register number.
1624
16252002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1626
1627 * aix-thread.c (ops): Rename to aix_thread_ops.
1628 (base_ops): Rename to base_target.
1629 (ops_attach): Rename to aix_thread_attach.
1630 (ops_detach): Rename to aix_thread_detach.
1631 (ops_resume): Rename to aix_thread_detach.
1632 (ops_wait): Rename to aix_thread_wait.
1633 (ops_kill): Rename to aix_thread_kill.
1634 (init_ops): Rename to init_aix_thread_ops.
1635 (ops_fetch_register): Rename to aix_thread_fetch_register.
1636 (ops_store_register): Rename to aix_thread_store_register.
1637 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1638 (ops_thread_alive): Rename to aix_thread_thread_alive.
1639 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1640 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1641 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1642 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1643 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1644 (store_regs_lib): Rename to store_regs_user_thread.
1645 (store_regs_kern): Rename to store_regs_kernel_thread.
1646
27bae383 16472002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1648
1649 * aix-thread.c (ops_prepare_to_store): Eliminate.
1650 (init_ops): Don't initialize ops.prepare_to_store.
1651 (store_regs_kern): Pre-fetch register buffers from child,
1652 because some registers may not be in the cache. Copy
1653 regs from register cache only if they are cached.
1654 (store_regs_lib): Copy regs from register cache only
1655 if they are cached.
1656 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1657 fill_gprs64): Ditto.
1658
61c5da0b
KB
16592002-07-22 Kevin Buettner <kevinb@redhat.com>
1660
1661 * aix-thread.c (gdb_assert.h): Include.
1662 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1663 register sizes (from register cache) match size of buffer holding
1664 register data.
1665 (fill_sprs32): Change parameter types to match those in the ptrace()
1666 buffer.
1667 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1668 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1669
16702002-07-22 Michael Snyder <msnyder@redhat.com>
1671
1672 * aix-thread.c (supply_sprs64): Cosmetic change.
1673 (supply_sprs32): Cosmetic change.
1674 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1675 (fill_sprs64): Use regcache_collect instead of read_register.
1676 (store_regs_lib): Use regcache_collect instead of
1677 read_register. Use fill_sprs32 instead of fill_sprs64,
1678 if debugging a 32-bit architecture.
1679 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1680 out of the register cache, instead of passing a pointer into
1681 the register cache directly to ptrace. Use regcache_collect
1682 insteaad of read_register.
1683 (ops_prepare_to_store): Use target_read_registers instead
1684 of read_register_bytes.
1685
36479eb1
AS
16862002-07-20 Aidan Skinner <aidan@velvet.net>
1687
1688 * MAINTAINERS: Add self under write after approval.
1689
80ae6ee2
AS
16902002-07-20 Aidan Skinner <aidan@velvet.net>
1691
1692 * ada-tasks.c: Change k&r style function definitions to prototyped
1693 form.
1694
8a8ab2b9
AC
16952002-07-19 Andrew Cagney <ac131313@redhat.com>
1696
1697 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1698 * x86-64-tdep.c: Include "objfiles.h".
1699 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1700 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1701
fb16b900
ML
17022002-07-17 Michal Ludvig <michal@suse.cz>
1703
1704 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1705 (update_context): Initialise cfa variable.
1706
0fe7bf7b
MS
17072002-07-17 Michael Snyder <msnyder@redhat.com>
1708
1709 * aix-thread.c: Shorten some long lines.
1710 Bring comments into line with code spec.
1711
488f131b
JB
17122002-07-18 Joel Brobecker <brobecker@gnat.com>
1713
1714 * infrun.c: Re-indent using gdb_indent.sh.
1715
46c415d2
JB
17162002-07-18 Joel Brobecker <brobecker@gnat.com>
1717
1718 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1719 Leave the indentation temporarily untouched, to minimize the diffs.
1720
cdecafbe
EZ
17212002-07-18 Elena Zannoni <ezannoni@redhat.com>
1722
1723 * stabsread.c: Make os9k sections of the code obsolete,
1724 for real this time.
1725 * stabsread.h: Make os9k sections of the code obsolete.
1726
7b6aa020
ML
17272002-07-18 Michal Ludvig <mludvig@suse.cz>
1728
09ec9b38
ML
1729 * linux-low.c (regsets_store_inferior_registers): Add free()
1730 at the end of a loop to prevent memory leak.
1731 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1732 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1733 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1734 line a comment.
4894ac5d 1735 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1736
233282cd
JB
17372002-07-17 Jim Blandy <jimb@redhat.com>
1738
1739 * macrocmd.c (info_macro_command): Remove newline from error
1740 message.
1741
7b6aa020 17422002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1743
1744 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1745 (sh_gdbarch_init): Use it for sh-dsp.
1746
f7ef9339
KB
17472002-07-16 Kevin Buettner <kevinb@redhat.com>
1748
1749 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1750 64-bit DWARF2 format.
1751
8dd72958
JB
17522002-07-16 Joel Brobecker <brobecker@gnat.com>
1753
1754 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1755 <sys/proc.h> when not available.
1756
a99a9e1b
AC
17572002-07-16 Andrew Cagney <ac131313@redhat.com>
1758
1759 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1760 * stabsread.c: Make os9k sections of the code obsolete.
1761 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1762 * config/i386/i386os9k.mt: Make file obsolete.
1763 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1764 (COMMON_OBS): Remove os9kread.o
1765 (SFILES): Remove os9kread.c.
1766 (os9kread.o, remote-os9k.o): Make target obsolete.
1767 * remote-os9k.c: Make file obsolete.
1768 * os9kread.c: Make file obsolete.
1769 * Makefile.in
1770
7a3085c1
AC
17712002-07-16 Andrew Cagney <ac131313@redhat.com>
1772
1773 * NEWS: Mention that the FR30 has been made obsolete.
1774 * fr30-tdep.c: Make file obsolete.
1775 * config/fr30/tm-fr30.h: Ditto.
1776 * config/fr30/fr30.mt: Ditto.
1777 * configure.tgt: Make fr30-*-elf obsolete.
1778 * MAINTAINERS: Make fr30-elf obsolete.
1779
28a93f5a
PM
17802002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1781
1782 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1783 found is not inside a section.
1784
be006b8b
KB
17852002-07-15 Kevin Buettner <kevinb@redhat.com>
1786
1787 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1788 strerror().
1789 (pdc_realloc): Use xrealloc() instead of realloc().
1790
14fa3751
KB
17912002-07-15 Kevin Buettner <kevinb@redhat.com>
1792
1793 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1794 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1795 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1796 macros.
1797
42cc437f
KB
17982002-07-15 Kevin Buettner <kevinb@redhat.com>
1799
1800 * aix-thread.c (ptrace_check): Eliminate goto.
1801 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1802 problem.
1803
8e2c28d4
KB
18042002-07-15 Kevin Buettner <kevinb@redhat.com>
1805
1806 * aix-thread.c (gdbcmd.h): Include.
1807 (DEBUG, DBG, DBG2, dbg): Eliminate.
1808 (debug_aix_thread): New static global.
1809 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1810 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1811 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1812 invocations to DBG and DBG2 macros to test against
1813 ``debug_aix_thread'' and call fprintf_unfiltered().
1814 (_initialize_aix_thread): Add new command "set debug aix-thread".
1815
30413464
AC
18162002-07-15 Andrew Cagney <ac131313@redhat.com>
1817
1818 From Gerhard Tonn <TON@de.ibm.com>:
1819 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1820 instead of supply_register.
1821
7c43edc1
AC
18222002-07-15 Andrew Cagney <ac131313@redhat.com>
1823
1824 * dwarf2cfi.c: Include "gdb_assert.h".
1825 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1826 non-NULL.
1827 (update_context): Do not use __func__. Add missing ``break''.
1828 (update_context): Do not use __func__.
1829
9364a0ef
EZ
18302002-07-15 Elena Zannoni <ezannoni@redhat.com>
1831
1832 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1833 and its setting. Set gdbarch instruction printing functions
1834 directly. For non-rs6000 case use new function
1835 gdb_print_insn_powerpc.
1836 (gdb_print_insn_powerpc): New function.
1837
3fbeef0b
AC
18382002-07-13 Andrew Cagney <ac131313@redhat.com>
1839
92eb23c5 1840 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1841 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1842 * configure.tgt: Mark d30v-*-* as obsolete.
1843 * d30v-tdep.c: Mark file as obsolete.
1844 * config/d30v/d30v.mt: Ditto.
1845 * config/d30v/tm-d30v.h: Ditto.
1846
aacb1f0a
AS
18472002-07-13 Aidan Skinner <aidan@velvet.net>
1848
1849 * ada-tasks.c (add_task_entry): replace calls to
1850 malloc() with xmalloc
1851 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1852
1853 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1854 ada_finish_decode_line_1, all_sals_for_line
1855 ada_breakpoint_rewrite): replace calls to free() with xfree()
1856
c11d79f2
KB
18572002-07-12 Kevin Buettner <kevinb@redhat.com>
1858
1859 From Nicholas Duffek (with minor changes by Martin Hunt,
1860 Louis Hamilton, and Kevin Buettner):
1861 * aix-thread.c: New file.
1862
8e19ed76
PS
18632002-07-12 Petr Sorfa <petrs@caldera.com>
1864
1865 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1866 complaint for invalid attribute class or form.
1867 (read_func_scope): DW_AT_frame_base
1868 better handling of DW_AT_block*.
1869 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1870 better handling of DW_AT_block*.
1871 (read_common_block): DW_AT_location
1872 better handling of DW_AT_block*.
1873 (read_partial_die): DW_AT_location better handling
1874 of DW_AT_block*.
1875 (new_symbol): DW_AT_external better handling of
1876 DW_AT_block*. Proper initialization of variable
1877 "addr".
1878 (attr_form_is_block): New function that returns true
1879 if the attribute's form is of DW_FORM_block*.
1880
295401f7
DJ
18812002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1882
1883 * valops.c (find_method_list): Remove comment about
1884 removed STATIC_MEMFUNCP argument.
1885 (value_find_oload_method_list): Likewise.
1886
e42dc924
KB
18872002-07-12 Kevin Buettner <kevinb@redhat.com>
1888
1889 From Nicholas Duffek:
1890 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1891 target_new_objfile_hook.
1892
6904b546
KB
18932002-07-12 Kevin Buettner <kevinb@redhat.com>
1894
1895 From Nicholas Duffek:
1896 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1897 csect.
1898
53fe9346
AC
18992002-07-12 Andrew Cagney <cagney@redhat.com>
1900
1901 * MAINTAINERS: Mention --enable-sim-build-warnings.
1902 (m68hc11-elf): Disable sim build warnings.
1903 (m32r-elf): Mark as broken obsolete candidate.
1904 (x86_64-linux-gnu): Mark as buildable with -Werror.
1905 (arm-elf): Change -w to ``,'' which enables warnings but not
1906 -Werror.
1907
af5f3db6
AC
19082002-07-12 Andrew Cagney <ac131313@redhat.com>
1909
1910 * bcache.h: Update copyright.
1911 (struct bstring, struct bcache): Move definition to "bcache.c".
1912 Replaced by opaque declaration.
1913 (bcache_xfree): Replace free_bcache.
1914 (bcache_xmalloc, bcache_memory_used): Declare.
1915
1916 * bcache.c: Update copyright.
1917 (struct bstring, struct bcache): Moved to here from "bcache.h".
1918 Update comments.
1919 (bcache_xmalloc, bcache_memory_used): New functions.
1920 (bcache_xfree): Replace function free_bcache.
1921
1922 * Makefile.in (objfiles.o): Add $(bcache_h).
1923 (objfiles_h): Remove $(bcache_h).
1924 (symfile.o): Add $(bcache_h).
1925
1926 * symmisc.c: Update copyright.
1927 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1928 (print_objfile_statistics): Use bcache_memory_used.
1929
1930 * symfile.c: Include "bcache.h".
1931 (reread_symbols): Use bcache_xfree.
1932 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1933 (add_psymbol_to_list): Pass psymbol_cache by value.
1934 (add_psymbol_with_dem_name_to_list): Ditto.
1935
1936 * objfiles.h: Update copyright.
1937 (struct bcache): Declare opaque. Do not include "bcache.h".
1938 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1939 bcache'' pointers.
1940 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1941
1942 * objfiles.c: Include "bcache.h". Update copyright.
1943 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1944 macro_cache.
1945 (free_objfile): Use bcache_xfree.
1946
444199e7
GS
19472002-07-11 Grace Sainsbury <graces@redhat.com>
1948
1949 * monitor.c (monitor_fetch_register): Make name a constant.
1950 (monitor_store_register): Same.
1951
261397f8
DJ
19522002-07-11 Daniel Jacobowitz <drow@mvista.com>
1953
1954 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1955 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1956 (finish_block) For non-function blocks, hash the symbol table. For
1957 function blocks, mark the symbol table as unhashed.
1958 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1959 (msymbol_hash_iw): Likewise.
1960 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1961 value.
1962 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1963 (lookup_minimal_symbol): Likewise for both.
1964 * symtab.h (struct block): Add `hashtable' flag. Comment the
1965 hashtable.
1966 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1967 (ALL_BLOCK_SYMBOLS): Update.
1968 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1969 (struct symbol): Add `hash_next' pointer.
1970 * symtab.c (lookup_block_symbol): Search using the hash table when
1971 possible.
1972 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1973 (search_symbols, find_addr_symbol): Likewise.
1974
1975 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1976 (read_dst_symtab): Likewise.
1977 * jv-lang.c (get_java_class_symtab): Likewise.
1978 * mdebugread.c: Include "gdb_assert.h".
1979 (shrink_block): Assert that the block being modified is not hashed.
1980 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1981 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1982 symbols.
1983 (dump_symtab): Recognize hashed blocks.
1984 * printcmd.c (print_frame_args): Assert that function blocks do not
1985 have hashed symbol tables.
1986 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1987 (fill_in_ada_prototype, debug_print_block): Likewise.
1988 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1989
6f0eaa01
CV
19902002-07-11 Corinna Vinschen <vinschen@redhat.com>
1991
1992 * stack.c (print_frame): Use result of frame_address_in_block()
1993 instead of fi->pc when evaluating symbols.
1994 (backtrace_command_1): Ditto.
1995
a208b0cb
AC
19962002-07-11 Andrew Cagney <cagney@redhat.com>
1997
1998 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1999 Make static.
2000
2001 * arm-tdep.c (arm_register_name): Make return type constant.
2002
a6b6b089
AC
20032002-07-10 Andrew Cagney <ac131313@redhat.com>
2004
5ae5f592
AC
2005 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2006 prototype.
2007 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2008 * s390-tdep.c (s390_fp_regnum): Ditto.
2009 (s390_read_fp): Ditto.
2010 (s390_pop_frame): Ditto.
2011 (_initialize_s390_tdep): Ditto.
2012 * remote.c (get_remote_state): Ditto.
2013 * procfs.c (mappingflags): Ditto.
2014 * memattr.c (_initialize_mem): Ditto.
2015 * mcore-tdep.c (mcore_pop_frame): Ditto.
2016 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2017 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2018 * language.c (set_case_str): Ditto.
2019 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2020 * frv-tdep.c (new_variant): Ditto.
2021 (frv_stopped_data_address): Ditto.
2022 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2023 (context_alloc): Ditto.
2024 (frame_state_alloc): Ditto.
2025 (unwind_tmp_obstack_init): Ditto.
2026 (unwind_tmp_obstack_free): Ditto.
2027 (cfi_read_fp): Ditto.
2028 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2029 (cris_pop_frame): Ditto.
2030 * c-lang.c (scanning_macro_expansion): Ditto.
2031 (finished_macro_expansion): Ditto.
2032 (c_preprocess_and_parse): Ditto.
2033 * gdbarch.sh: Ditto.
2034 * gdbarch.h, gdbarch.c: Regenerate.
2035 * config/mn10200/tm-mn10200.h: Adjust indentation.
2036 * target.c: Adjust indentation.
2037 * symtab.h: Adjust indentation.
2038 * stabsread.h: Adjust indentation.
2039 * remote-es.c: Adjust indentation.
2040 * os9kread.c: Adjust indentation.
2041
20422002-07-10 Andrew Cagney <ac131313@redhat.com>
2043
a6b6b089
AC
2044 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2045 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2046
a1789893
GS
20472002-07-10 Grace Sainsbury <graces@redhat.com>
2048
2049 * NEWS: Mention m68k, mcore multi-arching.
2050 * MAINTAINERS: Change status of m68k, mcore to reflect
2051 multi-arching.
2052
02f0d45d
DJ
20532002-07-10 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * valops.c (find_overload_match): Free oload_syms.
2056
f15f768e
JB
20572002-07-09 Joel Brobecker <brobecker@gnat.com>
2058
2059 Define HAVE_SYS_PROC_H if sys/proc.h exists
2060 * configure.in: Add check for sys/proc.h
2061 * config.in: Regenerate.
2062 * configure: Regenerate.
2063
902a7139
GS
20642002-07-09 Grace Sainsbury <graces@redhat.com>
2065
2066 * config/m68k/tm-m68k.h: Remove macros wrapped in
2067 #if !GDB_MULTI_ARCH.
2068
82e0fd98
DB
20692002-07-09 David O'Brien <obrien@FreeBSD.org>
2070
2071 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2072 (perror_with_name, remote_close, remote_open, expect, play): Static.
2073
a534e424
AC
20742002-07-08 Andrew Cagney <ac131313@redhat.com>
2075
2076 * config.in, configure: Regenerate.
2077
9b94f7bf
MK
20782002-07-08 Mark Kettenis <kettenis@gnu.org>
2079
2080 * dwarf2cfi.c: Include "gcore.h".
2081 (execute_stack_op): Fix implementation of the
2082 DW_OP_deref and DW_OP_deref_size operators by letting do their
2083 lookup in the target.
2084
1d34db41
MK
20852002-07-07 Mark Kettenis <kettenis@gnu.org>
2086
2087 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2088 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2089 tdep->sc_sp_offset.
2090
79d5b63a
DJ
20912002-07-05 Daniel Jacobowitz <drow@mvista.com>
2092
2093 Fix PR gdb/595, gdb/602
2094 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2095 Don't call value_cast, just read the vtable pointer; update comments
2096 to match.
2097
3bb912e8
GS
20982002-07-05 Grace Sainsbury <graces@redhat.com>
2099
2100 * config/mcore/tm-mcore.h: Remove file.
2101 * config/mcore/mcore.mt: Remove definition of TM_FILE
2102 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2103
ca39387d
MK
21042002-07-05 Mark Kettenis <kettenis@gnu.org>
2105
2106 * i386bsd-tdep.c: Include "gdb_string.h".
2107
efdc1108
GS
21082002-07-04 Grace Sainsbury <graces@redhat.com>
2109
2110 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2111 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2112 mcore-tdep.
2113 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2114 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2115 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2116 (RETVAL_REGNUM): Move macros from tm-mcore.h
2117 (mcore_reg_struct_has_addr): New function.
2118 (mcore_gdbarch_init): Added initializations for the macros removed
2119 from tm-mcore.h.
2120
bb21884d
MK
21212002-07-04 Mark Kettenis <kettenis@gnu.org>
2122
2123 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2124 traditonal string branding within the ELF header.
2125
228c6d41
DJ
21262002-07-04 Daniel Jacobowitz <drow@mvista.com>
2127
2128 * symtab.c (remove_params): New function.
2129 (make_symbol_overload_list): Use it instead of cplus_demangle.
2130 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2131
2404952e
MK
21322002-07-04 Mark Kettenis <kettenis@gnu.org>
2133
e5e4acad
MK
2134 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2135
baadce09
MK
2136 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2137 New variables.
2138 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2139 and tdep->sigtramp_end.
2140 * i386obsd-nat.c: New file.
2141 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2142
2404952e
MK
2143 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2144 Don't call get_current_frame().
2145
9b4f1ba7
PM
21462002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2147
2148 * i386-nat.c (child_post_startup_inferior): New function
2149 calling i386_cleanup_dregs if
2150 I386_USE_GENERIC_WATCHPOINTS is defined.
2151 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2152 conditional to acknowledge that i386-nat.c has its
2153 own child_post_startup_inferior function.
2154
c0d1d883
MK
21552002-07-04 Mark Kettenis <kettenis@gnu.org>
2156
00f8375e
MK
2157 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2158 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2159 instead of MAX_REGISTER_RAW_SIZE.
2160 (i386_extract_return_value, i386_extract_struct_value_address):
2161 Convert to use regcache.
2162 (i386_gdbarch_init): Set max_register_raw_size and
2163 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2164 Set extract_return_value and extract_struct_value_address instead
2165 of their deprecated variants.
2166
c0d1d883
MK
2167 Convert i386 target to generic dummy frames.
2168 * i386-tdep.c: Include "symfile.h".
2169 (i386_frameless_signal_p): Consider a function to be frameless if
2170 the pc points at the first instruction of the function.
2171 (i386_frame_chain): Handle (generic) call dummies.
2172 (i386_frame_saved_pc): Likewise.
2173 (i386_frame_init_saved_regs): Remove code dealing with call
2174 dummies on the stack.
2175 (i386_push_dummy_frame): Removed.
2176 (i386_call_dummy_words): Removed.
2177 (i386_fix_call_dummy): Removed.
2178 (i386_push_return_address): New function.
2179 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2180 parameter, and don't call get_current_frame.
2181 (i386_pop_frame): New function.
2182 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2183 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2184 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2185 call_dummy_length to 0, set call_dummy_words to NULL, set
2186 sizeof_call_dummy_words to 0, set fix_call_dummy to
2187 generic_fix_call_dummy, set pc_in_call_dummy to
2188 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2189 generic_push_dummy_frame, set push_return_address to
2190 i386_push_return_address and set frame_chain_valid to
2191 generic_file_frame_chain_valid.
2192
638c1580
ML
21932002-07-04 Michal Ludvig <mludvig@suse.cz>
2194
2195 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2196 byte offsets instead of an array of indexes.
2197 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2198
049ee0e4
AC
21992002-07-03 Andrew Cagney <ac131313@redhat.com>
2200
2201 * gdbarch.sh (struct regcache): Add opaque declaration.
2202 (EXTRACT_RETURN_VALUE): New architecture method.
2203 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2204 * gdbarch.h, gdbarch.c: Regenerate.
2205 * arch-utils.c (legacy_extract_return_value): New function.
2206 * arch-utils.h (legacy_extract_return_value): Declare.
2207 * values.c (value_being_returned): Re-enable code handling
2208 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2209 deprecated_grub_regcache_for_registers call to block handling
2210 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2211 (EXTRACT_RETURN_VALUE): Do not define.
2212
4e0d9804
GS
22132002-07-03 Grace Sainsbury <graces@redhat.com>
2214
2215 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2216 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2217 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2218 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2219 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2220 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2221 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2222 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2223 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2224 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2225 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2226 argument so the function fits the prototype in the architecture
2227 vector.
2228 (mcore_pop_frame): Remove argument so the function fits the
2229 prototype. Use get_current_frame instead of the argument.
2230 (mcore_push_arguments): Change type of struct_return so the
2231 function can be used in the architecture vector.
2232 (mcore_store_struct_return): Add.
2233 (mcore_frame_init_saved_regs): Add.
2234 (mcore_gdbarch_init): Add function calls to replace the macros
2235 removed from tm-mcore.h
2236
36160dc4
AC
22372002-07-03 Andrew Cagney <ac131313@redhat.com>
2238
2239 * infcmd.c (print_return_value): Remove compatibility code calling
2240 deprecated_grub_regcache_for_registers.
2241
2242 * values.c: Include "regcache.h".
2243 (value_being_returned): Update. Use
2244 deprecated_grub_regcache_for_registers to extract the register
2245 buffer address.
2246 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2247 ``struct regcache''.
2248 * Makefile.in (values.o): Add dependency on $(regcache_h).
2249
2250 * inferior.h (run_stack_dummy): Change type of second parameter to
2251 a ``struct regcache''.
2252 * valops.c (hand_function_call): Change type of retbuf to ``struct
2253 regcache''. Allocate using regcache_xmalloc, clean using
2254 make_cleanup_regcache_xfree.
2255 * infcmd.c (run_stack_dummy): Update. Use
2256 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2257
2258 * regcache.c (do_regcache_xfree): New function.
2259 (make_cleanup_regcache_xfree): New function.
2260 * regcache.h (make_cleanup_regcache_xfree): Declare.
2261
e64d9b3d
MH
22622002-07-03 Martin M. Hunt <hunt@redhat.com>
2263
4dd79c29
MH
2264 * event-top.c (command_line_handler): Don't read past
2265 beginning of buffer.
e64d9b3d 2266
4dd79c29
MH
22672002-07-03 Martin M. Hunt <hunt@redhat.com>
2268
e64d9b3d
MH
2269 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2270 struct frame_id.
2271 (varobj_create): Store frame_id for root.
2272 (varobj_gen_name): Use xasprintf.
2273 (varobj_update): Save and restore frame using get_frame_id() and
2274 frame_find_by_id().
2275 (create_child): Use xasprintf.
2276 (new_root_variable): Initialize frame_id.
2277 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2278 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2279 to prevent memory leak.
2280
26e6c56a
AC
22812002-07-03 Andrew Cagney <ac131313@redhat.com>
2282
2283 * valops.c (hand_function_call): Move declaration of retbuf to
2284 start of function, allocate using malloc, add a cleanup but before
2285 the inf_status cleanup, cleanup the buffer. Rename local variable
2286 old_chain to inf_status_cleanup.
2287
f436dd25
MH
22882002-07-03 Martin M. Hunt <hunt@redhat.com>
2289
2290 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2291
2292 * cli/cli-decode.c (cmd_func_p): New function.
2293 (cmd_func): New function.
2294
2295 * command.h: Add cmd_func() and cmd_func_p().
2296
4cfe2084
GS
22972002-07-03 Grace Sainsbury <graces@redhat.com>
2298
2299 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2300 (REGISTER_SIZE): Remove.
2301 (MAX_REGISTER_RAW_SIZE): Remove.
2302 (REGISTER_VIRTUAL_TYPE): Remove.
2303 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2304 (REGISTER_NAME): Remove.
2305 (USE_GENERIC_DUMMY_FRAMES): Remove.
2306 (CALL_DUMMY): Remove.
2307 (CALL_DUMMY_START_OFFSET): Remove.
2308 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2309 (CALL_DUMMY_LOCATION): Remove.
2310 (FIX_CALL_DUMMY): Remove.
2311 (CALL_DUMMY_ADDRESS): Remove.
2312 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2313 (SAVE_DUMMY_FRAME_TOS): Remove.
2314 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2315 (mcore_register_virtual_type): New function.
2316 (mcore_register_byte): New function.
2317 (mcore_register_size): New function.
2318 (mcore_register_name): New function.
2319 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2320 macros removed from tm-mcore.h.
2321 (mcore_dump_tdep): Add.
2322 (_initialize_mcore_tdep): Add gdbarch_register call.
2323
4fd667e9
MK
23242002-07-03 Mark Kettenis <kettenis@gnu.org>
2325
2326 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2327 frameless_look_for_prologue, such that we actually call this
2328 function.
2329
42f99ac2
JB
23302002-07-02 Joel Brobecker <brobecker@gnat.com>
2331
2332 * frame.h (frame_address_in_block): New function.
2333
2334 * blockframe.c (frame_address_in_block): New function extracted
2335 from get_frame_block().
2336 (get_frame_block): Use frame_address_in_block().
2337 (block_innermost_frame): Use frame_address_in_block() to match
2338 the frame pc address against the block boundaries rather than
2339 the frame pc directly. This prevents a failure when a frame pc
2340 is actually a return-address pointing immediately after the end
2341 of the given block.
2342
103a1597 23432002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2344
2345 * MAINTAINERS: Add self under write after approval.
2346
23472002-07-02 Grace Sainsbury <graces@redhat.com>
2348
103a1597
GS
2349 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2350 used in architecture vector. The default is
2351 m68k_local_breakpoint_from_pc.
2352 (m68k_local_breakpoint_from_pc): Add.
2353 (enum): Add register numbers from tm-m68k.h.
2354 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2355 vector.
2356 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2357 GDB_MULTI_ARCH_PARTIAL.
2358 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2359 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2360 m68k-tdep.c.
2361 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2362 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2363 to enum in m68k-tdep.c
2364
7a5a0534
JB
23652002-07-02 Joel Brobecker <brobecker@gnat.com>
2366
2367 * solib-osf.c (open_map): Compute the list of shared libraries
2368 loaded by the inferior, rather than the list of libraries loaded
2369 by GDB itself. Otherwise, GDB ends up reading the symbols from
2370 the wrong shared libraries...
2371
6f558d74
MK
23722002-07-02 Mark Kettenis <kettenis@gnu.org>
2373
b7d15bf7
MK
2374 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2375 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2376 macros.
2377 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2378 Remove functions.
2379 (FRAMELESS_SIGNAL): Remove function.
2380 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2381 i386_linux_saved_pc_after_call): Removed.
2382 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2383 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2384 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2385
6bff26de
MK
2386 * i386-tdep.c (i386_frameless_signal_p): New function.
2387 (i386_frame_chain): Deal with frameless signals.
2388 (i386_sigtramp_saved_sp): New function.
2389 (i386_frame_saved_pc): Deal with frameless signals.
2390 (i386_saved_pc_after_call): Make sure the correct value is
2391 returned just after entry into a sigtramp.
2392 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2393 i386fbsd4_sc_sp_offset): New variables.
2394 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2395 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2396 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2397 similiar to what we already did for sc_pc_offset.
2398 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2399 tdep->sc_sp_offset.
2400
6f558d74
MK
2401 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2402
145564b7
ML
24032002-07-02 Michal Ludvig <mludvig@suse.cz>
2404
2405 * config/i386/tm-x86-64linux.h: New.
2406 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2407 definitions.
2408 * config/i386/nm-x86-64.h: Rename to ...
2409 * config/i386/nm-x86-64linux.h: ... this one.
2410 * config/i386/x86-64linux.mh: Reflect the above change.
2411
3a1e71e3
MK
24122002-07-01 Mark Kettenis <kettenis@gnu.org>
2413
21d0e8a4
MK
2414 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2415 with sigcontext_addr. Add sc_sp_offset.
2416 (i386bsd_sigtramp_saved_pc): Remove prototype.
2417 (i386bsd_sicontext_addr): Add prototype.
2418 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2419 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2420 (i386_svr4_sigtramp_saved_pc): Removed.
2421 (i386_svr4_sigcontext_addr): New function.
2422 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2423 Initialize tdep->sigcontext_addr instead. Initialize
2424 tdep->sc_pc_offset and tdep->sc_sp_offset.
2425 (i386_gdbarch_init): Likewise.
2426 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2427 any more.
2428 (i386bsd_sigtramp_saved_pc): Remove function.
2429 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2430 Initialize tdep->sigcontext_addr instead. Initialize
2431 tdep->sc_pc_offset.
2432 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2433 of tdep->sigtramp_saved_pc.
2434 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2435 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2436 instead.
2437
3a1e71e3
MK
2438 * i386-tdep.c (i386_frameless_function_invocation,
2439 i386_frame_num_args, i386_frame_init_saved_regs,
2440 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2441 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2442 i386_extract_return_value, i386_store_return_value,
2443 i386_extract_struct_value_address, i386_register_virtual_type,
2444 i386_register_convertible, i386_register_convert_to_virtual,
2445 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2446 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2447 static.
2448
52e9098c
MK
24492002-07-01 Mark Kettenis <kettenis@gnu.org>
2450
77b13a25
MK
2451 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2452
52e9098c
MK
2453 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2454 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2455 this macro. Include "value.h".
2456
1b372fff
AS
24572002-06-30 Aidan Skinner <aidan@velvet.net>
2458
2459 * ada-exp.tab.c: remove as it's a generated file
2460 * ada-lex.c: remove as it's a generated file
2461
9c5045b5
MK
24622002-06-30 Mark Kettenis <kettenis@gnu.org>
2463
4a93c5bb
MK
2464 * config/i386/tm-i386.h (struct frame_info, struct
2465 frame_saved_regs, struct value, struct type): Remove forward
2466 declarations.
2467
322d4fe0
MK
2468 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2469 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2470 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2471 (FILL_FPXREGSET): Define.
2472
fdd8263d
MK
2473 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2474
482e577b
MK
2475 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2476 i[3456]86-*-netbsd* case.
2477 * config/i386/tm-obsd.h: Removed.
2478 * config/i386/obsd.mt: Removed.
2479 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2480 core-aout.o.
2481 (MH_CFLAGS): Add -DYYDEBUG=0.
2482
6916549a
MK
2483 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2484 i386nbsd_sc_pc_offset on OpenBSD too.
2485
9c5045b5
MK
2486 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2487 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2488 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2489 define.
2490 * i386bsd-tdep.c: Include "arch-utils.h".
2491 (i386bsd_aout_in_solib_call_trampoline): New function.
2492 (i386bsd_init_abi): Set in_solib_call_trampoline to
2493 i386bsd_aout_in_solib_call_trampoline.
2494 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2495 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2496
aa84d1bb
AC
24972002-06-28 Andrew Cagney <ac131313@redhat.com>
2498
2499 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2500 (struct obstack, struct bcache): Add opaque declarations.
2501 * Makefile.in (macrotab_h): Update
2502
b4d83933
AC
25032002-06-28 Andrew Cagney <ac131313@redhat.com>
2504
2505 * blockframe.c (generic_find_dummy_frame): Change return type to
2506 ``struct regcache''.
2507 (struct dummy_frame): Replace field ``registers'' with regcache, a
2508 struct regcache object.
2509 (generic_find_dummy_frame): Update.
2510 (generic_push_dummy_frame): Update. Use regcache_xfree,
2511 regcache_xmalloc and regcache_cpy.
2512 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2513 regcache_xfree.
2514 (deprecated_generic_find_dummy_frame): Update.
2515 (generic_read_register_dummy): Update. Use
2516 regcache_read_as_address.
2517 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2518 (generic_get_saved_register): Update. Use regcache_read.
2519
08c0b5bc
AC
25202002-06-28 Andrew Cagney <ac131313@redhat.com>
2521
2522 * Makefile.in (objfiles_h): Add $(bcache_h).
2523 * objfiles.h: Include "bcache.h".
2524
2525 * Makefile.in (symtab_h): Remove $(bcache_h).
2526 * symtab.h: Do not include "bcache.h".
2527
1f89801a
AC
25282002-06-28 Andrew Cagney <ac131313@redhat.com>
2529
2530 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2531 generic_func_frame_chain_valid.
2532
b9644b58
DB
25332002-06-28 David O'Brien <obrien@FreeBSD.org>
2534
2535 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2536 * config/i386/tm-fbsd.h: Likewise.
2537
dd486634
AC
25382002-06-28 Andrew Cagney <ac131313@redhat.com>
2539
2540 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2541 generic_unwind_get_saved_register.
2542
0b434a00
AC
25432002-06-27 Andrew Cagney <ac131313@redhat.com>
2544
2545 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2546 * regcache.c (supply_register): Add missing argument to
2547 register_buffer call.
2548
f30e5a77
AC
25492002-06-27 Andrew Cagney <ac131313@redhat.com>
2550
2551 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2552 Solaris /bin/grep does not not like it. From Peter Schauer.
2553
9f064c95
TT
25542002-06-26 Tom Tromey <tromey@redhat.com>
2555
2556 * command.h (add_setshow_cmd): Declare.
2557 (add_setshow_cmd_full): Declare.
2558 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2559 returns void. Use add_setshow_cmd_full.
2560 (add_setshow_cmd_full): New function.
2561 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2562 (add_setshow_boolean_cmd): Likewise.
2563
099c7589
JT
25642002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2565
2566 * config/vax/tm-vax.h: Protect from multiple inclusion.
2567 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2568 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2569 * config/vax/tm-vaxbsd.h: ...here. New file.
2570 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2571
1d049c5e
JT
25722002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2573
2574 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2575 (BELIEVE_PCC_PROMOTION): Remove.
2576 (AP_REGNUM): Move to...
2577 * config/vax/nm-vax.h: ...here.
2578 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2579 (vax_breakpoint_from_pc): New function.
2580 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2581 and gdbarch_believe_pcc_promotion.
2582
4791e091
JT
25832002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2584
2585 * Makefile.in (vax_tdep_h): Define.
2586 (vax-tdep.o): Use $(vax_tdep_h).
2587 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2588 (vax_dump_tdep): New function.
2589 (_initialize_vax_tdep): Register vax_dump_tdep.
2590 * vax-tdep.h: Include osabi.h.
2591 (struct gdbarch_tdep): New.
2592
da130f98
AC
25932002-06-26 Andrew Cagney <cagney@redhat.com>
2594
2595 * frame.h (deprecated_generic_find_dummy_frame): Rename
2596 generic_find_dummy_frame.
2597 * blockframe.c (generic_find_dummy_frame): Make static.
2598 (deprecated_generic_find_dummy_frame): New function.
2599 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2600 generic_find_dummy_frame with deprecated_find_dummy_frame.
2601 (sh64_nofp_frame_init_saved_regs): Ditto.
2602 (sh_fp_frame_init_saved_regs): Ditto.
2603 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2604 (s390_frame_chain): Ditto.
2605 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2606
6300c360
GS
26072002-06-26 Grace Sainsbury <graces@redhat.com>
2608
2609 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2610 gdbarch vector are at the top.
2611 (NUM_REGS): Remove.
2612 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2613 (FRAME_ARGS_ADDRESS): Remove.
2614 (FRAME_LOCALS_ADDRESS): Remove.
2615 (FRAME_NUM_ARGS): Remove.
2616 (FRAME_ARGS_SKIP): Remove.
2617 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2618 (m68k_gdbarch_init): Add gdbarch initializations for macros
2619 undefined in tm-m68k.h
2620
1c617db8
GS
26212002-06-26 Grace Sainsbury <graces@redhat.com>
2622
2623 * monitor.h: Add the function regname to monitor_ops
2624 structure. This way NUM_REGS does not have to be a constant.
2625 * monitor.c (monitor_fetch_register): Added support for regname
2626 function. The function is called if the array regnames is NULL.
2627 (monitor_store_register): Same.
da130f98
AC
2628 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2629 regnames array.
1c617db8
GS
2630 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2631 cpu32bug_cmds.regname to point to new function.
2632 * abug-rom.c (abug_regname): Same as above.
2633 (init_abug_cmds): Same.
2634 * dbug-rom.c (dbug_regname): Same as above.
2635 (init_dbug_cmds): Same.
2636 * remote-est.c (est_regname): Same.
2637 (init_est_cmds): Same.
2638 * rom68k-rom.c (rom68k_regname): Same.
2639 (init_rom68k_cmds): Same.
2640
ea9365bb
TT
26412002-06-25 Tom Tromey <tromey@redhat.com>
2642
2643 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2644
72cec141
AC
26452002-06-25 Andrew Cagney <cagney@redhat.com>
2646
2647 * infrun.c (stop_registers): Change variable's type to ``struct
2648 regcache'''.
2649 (xmalloc_inferior_status): Delete function.
2650 (free_inferior_status): Delete function.
2651 (normal_stop): Use regcache_cpy.
2652 (struct inferior_status): Change type of fields ``stop_registers''
2653 and ``registers'' to ``struct regcache''.
2654 (write_inferior_status_register): Use regcache_write.
2655 (save_inferior_status): Instead of calling
2656 xmalloc_inferior_status, allocate the inf_status buffer directly.
2657 Use regcache_dup_no_passthrough and regcache_dup to save the
2658 buffers.
2659 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2660 Replace the stop_registers regcache instead of overriding it. Use
2661 regcache_xfree. Instead of calling free_inferior_status, xfree
2662 the buffer directly.
2663 (discard_inferior_status): Use regcache_xfree. Instead of calling
2664 free_inferior_status, xfree the buffer directly.
2665 (build_infrun): Use regcache_xmalloc.
2666 (_initialize_infrun): Delete redundant call to build_infrun.
2667
2668 * Makefile.in (infcmd.o): Add $(regcache_h).
2669
2670 * infcmd.c: Include "regcache.h".
2671 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2672 obtain the address of `stop_registers' register buffer.
2673 (print_return_value): Ditto.
2674
2675 * inferior.h (struct regcache): Add opaque declaration.
2676 (stop_registers): Change variable's declared type to ``struct
2677 regcache''.
2678
defc6f8c
TT
26792002-06-24 Tom Tromey <tromey@redhat.com>
2680
c0e624e7
TT
2681 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2682 * target.c (initialize_targets): Fixed typo in
2683 trust-readonly-sections `show' documentation.
2684
defc6f8c
TT
2685 * main.c: Marked all strings with _().
2686
2b236d82
DH
26872002-06-24 Don Howard <dhoward@redhat.com>
2688
2689 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2690 that means max CORE_ADDR+1.
2691 (lookup_mem_region): Ditto.
2692 (mem_info_command): Ditto.
2693
942dc0e9
GS
26942002-06-24 Grace Sainsbury <graces@redhat.com>
2695
2696 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2697 (REGISTER_BYTES_OK): Remove.
2698 (REGISTER_BYTES): Remove.
2699 (STORE_STRUCT_RETURN): Remove.
2700 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2701 (STORE_RETURN_VALUE): Remove.
2702 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2703 (FRAME_CHAIN): Remove.
2704 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2705 (FRAME_SAVED_PC): Remove.
2706 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2707 (m68k_store_struct_return): Add.
2708 (m68k_deprecated_extract_return_value): Add.
2709 (m68k_deprecated_extract_struct_value_address): Add.
2710 (m68k_store_return_value): Add.
2711 (m68k_frame_chain): Add.
2712 (m68k_frameless_function_invocation): Add.
2713 (m68k_frame_saved_pc): Add.
2714 (m68k_gdbarch_init): added set_gdbarch calls for new
2715 functions and deleted macros.
2716
03c30d4d
TT
27172002-06-23 Tom Tromey <tromey@redhat.com>
2718
2719 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2720 (ALLDEPFILES): Likewise.
2721 (udiheaders): Removed.
2722 (udip2soc.o): Likewise.
2723 (udi2go32.o): Likewise.
2724 (udr.o): Likewise.
2725 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2726
37e71372
AC
27272002-06-22 Andrew Cagney <ac131313@redhat.com>
2728
06a6ac57
AC
2729 * infrun.c (_initialize_infrun): Delete unnecessary call to
2730 build_infrun.
2731
37e71372
AC
2732 * regcache.h: Update comments describing the regcache_cpy family
2733 of functions.
2734 (regcache_save, regcache_restore): Delete declaration.
2735 (regcache_save_no_passthrough): Delete declaration.
2736 (regcache_restore_no_passthrough): Delete declaration.
2737 * regcache.c (regcache_save): Delete function.
2738 (regcache_save_no_passthrough): Delete function.
2739 (regcache_restore): Delete function.
2740 (regcache_restore_no_passthrough): Delete function.
2741
78f6d055
AC
27422002-06-21 Andrew Cagney <ac131313@redhat.com>
2743
2744 * config/m68k/tm-m68k.h: Fix typo.
2745 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2746 (m68k_frame_init_saved_regs): Declare.
2747
78b119cb
JB
27482002-06-21 Jim Blandy <jimb@redhat.com>
2749
2750 Remove some vestiges of Harris 88k support.
2751 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2752 register numbering quirk.
2753 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2754 odd symbols occurring in Harris 88k ELF targets.
2755
0fbb3da7
TT
27562002-06-21 Tom Tromey <tromey@redhat.com>
2757
2758 * gdb_locale.h: New file.
2759 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2760 (defs_h): Added gdb_locale.h.
2761 * configure, config.in: Rebuilt.
2762 * configure.in (PACKAGE): Define.
2763 * defs.h: Include gdb_locale.h.
2764 * main.c (captured_main): Call setlocale, bindtextdomain,
2765 textdomain.
2766
456f8b9d
DB
27672002-06-21 Dave Brolley <brolley@redhat.com>
2768
2769 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2770 * config/frv/frv.mt: New file.
2771 * config/frv/tm-frv.h: New file.
2772 * configure.tgt: Support frv-*-*.
2773 * Makefile.in (frv-tdep.o): New target.
2774 * frv-tdep.c: New file.
2775 * NEWS: Mention frv.
2776
cdd463f9
DB
27772002-06-21 Dave Brolley <brolley@redhat.com>
2778
2779 * MAINTAINERS: Add self to "Write After Approval" list.
2780
5d3ed2e3
GS
27812002-06-21 Grace Sainsbury <graces@redhat.com>
2782
2783 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2784 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2785 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2786 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2787 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2788
2789 * m68k-tdep.c: Include arch-utils.h
2790 (m68k_register_raw_size): Add.
2791 (m68k_register_virtual_size): Add.
2792 (m68k_register_virtual_type): Add.
2793 (m68k_register_name): Add.
2794 (m68k_stack_align): Add.
2795 (m68k_register_byte): Add.
2796 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2797 tm-m68k.h.
2798
7f8e7424
GS
27992002-06-21 Grace Sainsbury <graces@redhat.com>
2800
a2c6a6d5 2801 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2802 m68k_find_saved_regs.
2803 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2804 references to it with frame->saved_regs.
7f8e7424
GS
2805 (m68k_gdbarch_init): Added function calls to initialize the
2806 gdbarch structure.
a2c6a6d5
GS
2807 (m68k_fix_call_dummy): Add.
2808 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2809 (CALL_DUMMY): Remove.
2810 (CALL_DUMMY_LENGTH): Remove.
2811 (CALL_DUMMY_START_OFFSET): Remove.
2812 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2813 (FIX_CALL_DUMMY): Remove.
2814 (PUSH_DUMMY_FRAME): Remove.
2815 (POP_FRAME): Remove.
7f8e7424 2816
f461f5cf
PM
28172002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2818
2819 * parse.c (parse_fprintf): New function used to avoid calls to
2820 fprintf in bison parser generated debug code.
2821 * parser-defs.h: Declaration of new parse_fprintf function.
2822 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2823 Set YYDEBUG to 1 by default.
2824 Set YYFPRINTF as parse_fprintf.
2825
7f0c12ed
ML
28262002-06-21 Michal Ludvig <mludvig@suse.cz>
2827
2828 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2829 encoding anymore.
2830 (pointer_encoding, enum ptr_encoding): New.
2831 (execute_cfa_program): Take care about pointer encoding.
2832 (dwarf2_build_frame_info): Only call parse_frame_info for
2833 .debug_frame and .eh_frame.
2834 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2835 fixed augmentation handling, added relative addressing,
2836 ignore duplicate FDEs. Added comments.
19d833a2 2837 * dwarf2cfi.c: Reindented.
7f0c12ed 2838
87c4a039
EZ
28392002-06-20 Elena Zannoni <ezannoni@redhat.com>
2840
2841 * event-top.c (command_handler): Don't use space_at_cmd_start
2842 unless there is sbrk() on the host. Assign time and space data
2843 to union fields of the appropriate length.
2844
1cf877ad
ML
28452002-06-20 Michal Ludvig <mludvig@suse.cz>
2846
2847 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2848 x86_64_register_name. Return type changed to 'const char *'.
2849 (x86_64_register_name2nr): Rename to x86_64_register_number.
2850 (x86_64_gdbarch_init): Update to reflect the change.
2851 * x86-64-tdep.h: Ditto.
2852 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2853 (supply_fpregset): Ditto.
2854
3fadccb3
AC
28552002-06-19 Andrew Cagney <cagney@redhat.com>
2856
2857 * regcache.h: Update copyright.
2858 (struct regcache, struct gdbarch): Add opaque declarations.
2859 (current_regcache): Declare global variable.
2860 (regcache_read, regcache_write): Add gdbarch parameter.
2861 (regcache_save, regcache_save_no_passthrough)
2862 (regcache_restore, regcache_restore_no_passthrough)
2863 (regcache_dup, regcache_dup_no_passthrough)
2864 (regcache_cpy, regcache_cpy_no_passthrough)
2865 (deprecated_grub_regcache_for_registers)
2866 (deprecated_grub_regcache_for_register_valid)
2867 (regcache_valid_p): Add function declarations.
2868
2869 * regcache.c: Update copyright.
2870 (regcache_descr_handle): New global variable.
2871 (struct regcache_descr): Define.
2872 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2873 (regcache_descr, xfree_regcache_descr): New functions.
2874 (struct regcache): Define.
2875 (regcache_xmalloc, regcache_xfree): New functions.
2876 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2877 (regcache_dup, regcache_dup_no_passthrough): New functions.
2878 (regcache_valid_p, regcache_read_as_address): New functions.
2879 (deprecated_grub_regcache_for_registers): New function.
2880 (deprecated_grub_regcache_for_register_valid): New function.
2881 (current_regcache): New global variable.
2882 (register_buffer): Add regcache parameter. Update calls.
2883 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2884 (read_register_gen, write_register_gen): Update register_buffer
2885 call. Test for legacy_p instead of gdbarch_register_read_p or
2886 gdbarch_register_write_p.
2887 (regcache_collect): Update register_buffer call.
2888 (build_regcache): Rewrite. Use deprecated grub functions.
2889 (regcache_save, regcache_save_no_passthrough): New functions.
2890 (regcache_restore, regcache_restore_no_passthrough): New
2891 functions.
2892 (_initialize_regcache): Create the regcache_data_handle. Swap
2893 current_regcache global variable.
2894
2895 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2896 parameter to regcache_read and regcache_write calls.
2897 (sh4_register_read): Ditto.
2898 (sh64_pseudo_register_read): Ditto.
2899 (sh64_register_read): Ditto.
2900 (sh_pseudo_register_write): Ditto.
2901 (sh4_register_write): Ditto.
2902 (sh64_pseudo_register_write): Ditto.
2903 (sh64_register_write): Ditto.
2904
2905 * defs.h (XCALLOC): Define.
2906
152d9db6
GS
29072002-06-19 Grace Sainsbury <graces@redhat.com>
2908
2909 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2910 * m68k-tdep.c (m68k_gdbarch_init): Added.
2911 (m68k_dump_tdep): Added.
2912
170911c7
DJ
29132002-06-19 Daniel Jacobowitz <drow@mvista.com>
2914
2915 * ada-lang.c (fill_in_ada_prototype): Update comment.
2916
2e4ebe70
DJ
29172002-06-19 Daniel Jacobowitz <drow@mvista.com>
2918
2919 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2920 MIPS_ABI_LAST.
2921 (mips_abi_string, mips_abi_strings): New.
2922 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2923 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2924 tdep->mips_abi_string. Honor mips_abi_string. Default to
2925 O32 if no ABI is found.
2926 (mips_dump_tdep): Use mips_abi_strings.
2927 (mips_abi_update): New function.
2928 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2929 ``set mips abi'' and ``show mips abi''. Check the size of
2930 mips_abi_strings.
2931
16775908
AC
29322002-06-19 Andrew Cagney <cagney@redhat.com>
2933
2934 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2935 constant.
2936
5051bfa4 29372002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2938
5051bfa4
JB
2939 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2940 current frame using only the first stack size adjustment. All
2941 subsequent size adjustments are not considered to be part of
2942 the "static" part of the current frame.
2943 Compute the address of the saved registers relative to the
2944 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2945 in use in this frame.
2946
56468235
DH
29472002-06-18 Don Howard <dhoward@redhat.com>
2948
2949 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2950 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2951 suggesting this solution.
2952
0b624158
AC
29532002-06-18 Andrew Cagney <ac131313@redhat.com>
2954
2955 * config/romp/xm-rtbsd.h: Delete file.
2956 * config/romp/rtbsd.mh: Delete file.
2957
221ea385
KS
29582002-06-18 Keith Seitz <keiths@redhat.com>
2959
2960 * breakpoint.c (condition_command): Post breakpoint_modify
2961 when a condition is added to an existing breakpoint.
2962 (commands_command): Likewise for commands.
2963 (set_ignore_count): Likewise for ignore counts.
2964 If no tty, do not simply return, still need to send event
2965 notification.
2966 (ignore_command): Only print a newline if the command came
2967 from a tty.
2968 Don't call breakpoints_changed, since this is now properly
2969 handled by set_ignore_count.
2970
5402eed1
AC
29712002-06-18 Andrew Cagney <cagney@redhat.com>
2972
2973 * MAINTAINERS: Note that cris-elf target can be compiled with
2974 -Werror.
2975 * cris-tdep.c (cris_register_name): Make return type constant.
2976 (cris_breakpoint_from_pc): Ditto.
2977
cc22880b
ML
29782002-06-18 Michal Ludvig <mludvig@suse.cz>
2979
2980 * frame.h (struct frame_info): Change type of context to
2981 'struct context'.
2982
fa88f677
AC
29832002-06-17 Andrew Cagney <cagney@redhat.com>
2984
2985 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2986 pointer.
2987 * gdbarch.h, gdbarch.c: Regenerate.
2988 * config/mips/tm-mips.h (mips_register_name): Update.
2989 * i386-tdep.h (i386_register_name): Update.
2990 * mips-tdep.c (mips_register_name): Update
2991 * alpha-tdep.c (alpha_register_name): Update.
2992 * arch-utils.c (legacy_register_name): Update.
2993 * arch-utils.h (legacy_register_name): Update.
2994 * avr-tdep.c (avr_register_name): Update.
2995 * ia64-tdep.c (ia64_register_name): Update.
2996 * i386-tdep.c (i386_register_name): Update.
2997 * sparc-tdep.c (sparc32_register_name): Update.
2998 (sparc64_register_name): Update.
2999 (sparclite_register_name): Update.
3000 (sparclet_register_name): Update.
3001 * sh-tdep.c (sh_generic_register_name): Update.
3002 (sh_sh_register_name): Update.
3003 (sh_sh3_register_name): Update.
3004 (sh_sh3e_register_name): Update.
3005 (sh_sh_dsp_register_name): Update.
3006 (sh_sh3_dsp_register_name): Update.
3007 (sh_sh4_register_name): Update.
3008 (sh_sh64_register_name): Update.
3009 * s390-tdep.c (s390_register_name): Update.
3010 * rs6000-tdep.c (rs6000_register_name): Update.
3011 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3012 (ns32k_register_name_32382): Update.
3013 * d10v-tdep.c (d10v_ts2_register_name): Update.
3014 (d10v_ts3_register_name): Update.
3015 * xstormy16-tdep.c (xstormy16_register_name): Update.
3016 * vax-tdep.c (vax_register_name): Update.
3017 * v850-tdep.c (v850_register_name): Update.
3018 * m68hc11-tdep.c (m68hc11_register_name): Update.
3019 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3020 (am33_register_name): Update.
3021
ea1e7ef6
GS
30222002-06-17 Grace Sainsbury <graces@redhat.com>
3023
3024 * m68k-tdep.c: Reindented.
3025
9b02dd1b
AC
30262002-06-17 Andrew Cagney <ac131313@redhat.com>
3027
3028 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3029 list of predefined types.
3030
8758dec1
MK
30312002-06-16 Mark Kettenis <kettenis@gnu.org>
3032
b6197528
MK
3033 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3034 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3035 REGISTER_CONVERT_TO_RAW): Remove defines.
3036 (i386_register_virtual_type, i386_register_convertible,
3037 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3038 Remove prototypes.
3039 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3040 macros mentioned above.
3041
82b47e62
MK
3042 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3043 (i386lynx_saved_pc_after_call): Remove prototype.
3044 * i386ly-tdep.c: Include "i386-tdep.h".
3045 (i386lynx_saved_pc_after_call): Make static. Use
3046 read_memory_nobpt instead of read_memory. Use
3047 read_memory_unsigned_integer instead of read_memory_integer.
3048 (i386lynx_init_abi): New function.
3049 (i386lynx_coff_osabi_sniffer): New function.
3050 (_initialize_i386bsd_tdep): New function.
3051
8758dec1
MK
3052 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3053 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3054 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3055 (i386_fix_call_dummy): Remove prototype.
3056 * i386-tdep.c (i386_call_dummy_words): New variable.
3057 (i386_gdbarch_init): Adjust for removal of the
3058 macros mentioned above.
3059
e9e68a56
AC
30602002-06-15 Andrew Cagney <ac131313@redhat.com>
3061
3062 * command.h (add_setshow_auto_boolean_cmd): Replace
3063 add_set_auto_boolean_cmd.
3064 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3065 add_set_auto_boolean_cmd.
3066 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3067 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3068 mask-address'' command.
3069 (show_mask_address): Add cmd parameter.
3070 * remote.c (add_packet_config_cmd): Update. Change type of
3071 set_func and show_func to cmd_sfunc_ftype.
3072 (_initialize_remote): Update `set remote Z-packet'
3073 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3074 (show_remote_protocol_e_packet_cmd): Ditto.
3075 (show_remote_protocol_E_packet_cmd): Ditto.
3076 (show_remote_protocol_P_packet_cmd): Ditto.
3077 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3078 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3079 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3080 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3081 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3082 (show_remote_protocol_Z_packet_cmd): Ditto.
3083 (show_remote_protocol_binary_download_cmd): Ditto.
3084 (show_remote_cmd): Pass NULL to all of above.
3085
fc08ec52
MK
30862002-06-15 Mark Kettenis <kettenis@gnu.org>
3087
3088 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3089 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3090 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3091 POP_FRAME): Remove defines.
3092 (i386_push_arguments, i386_store_struct_return,
3093 i386_extract_return_value, i386_store_return_value,
3094 i386_extract_struct_value_address, i386_push_dummy_frame,
3095 i386_pop_frame): Renove prototypes.
3096 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3097 macros mentioned above.
3098
e707bbc2
AC
30992002-06-15 Andrew Cagney <ac131313@redhat.com>
3100
3101 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3102 add_set_boolean_cmd.
3103 (add_setshow_cmd): New function.
3104 * command.h (add_setshow_boolean_cmd): Replace
3105 add_set_boolean_cmd.
3106 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3107 and ``set rdiromatzero''.
3108 * maint.c (_initialize_maint_cmds): Update commented out code.
3109 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3110 * target.c (initialize_targets): Update `set
3111 trust-readonly-sections'.
3112 * remote.c (_initialize_remote): Update `set remotebreak'.
3113
42fdc8df
MK
31142002-06-15 Mark Kettenis <kettenis@gnu.org>
3115
93924b6b
MK
3116 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3117 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3118 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3119 fit into multi-arch framework.
3120 (i386_breakpoint_from_pc): New function.
3121 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3122 above.
3123
42fdc8df
MK
3124 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3125 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3126 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3127 (i386_frameless_function_invocation, i386_frame_num_args,
3128 i386_frame_init_saved_regs): Remove prototypes.
3129 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3130 macros mentioned above.
3131
9773a94b
AC
31322002-06-15 Andrew Cagney <ac131313@redhat.com>
3133
3134 * cli/cli-decode.c (set_cmd_cfunc): Update.
3135 (set_cmd_sfunc): Update.
3136 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3137 (set_cmd_sfunc, set_cmd_cfunc): Update.
3138 * cli/cli-decode.h: Update.
3139
6e157172
MK
31402002-06-15 Mark Kettenis <kettenis@gnu.org>
3141
3142 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3143 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3144
7f19b9a2
AC
31452002-06-15 Andrew Cagney <ac131313@redhat.com>
3146
3147 * defs.h (auto_boolean): Declare enum.
3148 * command.h (cmd_auto_boolean): Delete enum.
3149 * mips-tdep.c (mask_address_var): Update.
3150 (mips_mask_address_p): Update.
3151 (show_mask_address): Update.
3152 * remote.c (struct packet_config): Update.
3153 (update_packet_config): Update.
3154 (show_packet_config_cmd): Update.
3155 (packet_ok): Update.
3156 (add_packet_config_cmd): Update.
3157 (_initialize_remote):
3158 * command.h: Update.
3159 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3160 (do_setshow_command): Update.
3161 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3162 * cli/cli-decode.h: Update.
3163
1cf88de5
MK
31642002-06-15 Mark Kettenis <kettenis@gnu.org>
3165
22ba8cf2
MK
3166 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3167 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3168 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3169 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3170 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3171 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3172
762c5349
MK
3173 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3174 list of DJGPP COFF targets.
3175
091198bb
MK
3176 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3177 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3178 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3179 (FP0_REGNUM): Remove define.
3180 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3181 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3182 (i386_register_virtual_size): Remove protoype.
3183 * i386-tdep.c (i386_register_virtual_size): Removed.
3184 (i386_extract_return_value, i386_store_return_value): Use
3185 FP0_REGNUM instead of NUM_FREGS to determine whether the
3186 floating-point registers are available.
3187 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3188 Adjust for removal of macros mentioned above.
3189
31902002-06-15 Mark Kettenis <kettenis@gnu.org>
3191
fcc9bf01
MK
3192 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3193 comments.
3194 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3195 Remove prototypes.
3196 (supply_gregset, fill_gregset): Remove use of register keyword and
3197 remove declaration for regmap. Use I386_NUM_GREGS instead of
3198 NUM_REGS and NUM_FREGS.
3199 (FPREGSET_FSAVE_OFFSET): Remove.
3200 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3201 NUM_FREGS to determine whether the floating-point registers are
3202 available.
3203
65e78234
MK
3204 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3205 gnu_store_registers): Replace usage of NUM_GREGS with
3206 I386_NUM_GREGS.
3207
98df6387
MK
3208 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3209 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3210 usage of NUM_GREGS with I386_NUM_GREGS.
3211
099a9414
MK
3212 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3213
57976e88
MK
3214 * i386bsd-nat.c: Include "i386-tdep.h".
3215 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3216 I386_NUM_GREGS.
3217
b335f4a6
MK
3218 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3219 and associated comment. They no longer make any sense, since we
3220 don't use this file anymore on Linux.
3221
1cf88de5
MK
3222 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3223 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3224 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3225 elements in these arrays.
3226 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3227 MAX_NUM_REGS.
3228
daa66587
MK
32292002-06-15 Mark Kettenis <kettenis@gnu.org>
3230
3231 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3232 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3233
26e9b323
AC
32342002-06-14 Andrew Cagney <cagney@redhat.com>
3235
3236 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3237 EXTRACT_RETURN_VALUE.
3238 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3239 EXTRACT_STRUCT_VALUE_ADDRESS.
3240 * gdbarch.h, gdbarch.c: Regenerate.
3241
3242 * values.c (value_being_returned): Handle
3243 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3244 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3245
3246 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3247 * arm-tdep.c (arm_gdbarch_init): Update.
3248 * avr-tdep.c (avr_gdbarch_init): Update.
3249 * cris-tdep.c (cris_gdbarch_init): Update.
3250 * d10v-tdep.c (d10v_gdbarch_init): Update.
3251 * ia64-tdep.c (ia64_gdbarch_init): Update.
3252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3253 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3254 * s390-tdep.c (s390_gdbarch_init): Update.
3255 * sh-tdep.c (sh_gdbarch_init): Update.
3256 * s390-tdep.c (s390_gdbarch_init): Update.
3257 * sparc-tdep.c (sparc_gdbarch_init): Update.
3258 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3259 * v850-tdep.c (v850_gdbarch_init): Update.
3260 * vax-tdep.c (vax_gdbarch_init): Update.
3261 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3263
3264 * config/arc/tm-arc.h: Update.
3265 * config/d30v/tm-d30v.h: Update.
3266 * config/fr30/tm-fr30.h: Update.
3267 * config/h8300/tm-h8300.h: Update.
3268 * config/h8500/tm-h8500.h: Update.
3269 * config/i386/tm-i386.h: Update.
3270 * config/i386/tm-ptx.h: Update.
3271 * config/i386/tm-symmetry.h: Update.
3272 * config/i960/tm-i960.h: Update.
3273 * config/m32r/tm-m32r.h: Update.
3274 * config/m68k/tm-delta68.h: Update.
3275 * config/m68k/tm-linux.h: Update.
3276 * config/m68k/tm-m68k.h: Update.
3277 * config/m88k/tm-m88k.h: Update.
3278 * config/mcore/tm-mcore.h: Update.
3279 * config/mips/tm-mips.h: Update.
3280 * config/mn10200/tm-mn10200.h: Update.
3281 * config/pa/tm-hppa.h: Update.
3282 * config/pa/tm-hppa64.h: Update.
3283 * config/sparc/tm-sp64.h: Update.
3284 * config/sparc/tm-sparc.h: Update.
3285 * config/sparc/tm-sparclet.h: Update.
3286 * config/z8k/tm-z8k.h: Update.
3287
5179e78f
AC
32882002-06-14 Andrew Cagney <cagney@redhat.com>
3289
3290 * Makefile.in (i386_linux_tdep_h): Define.
3291 (i386_tdep_h, i387_tdep_h): Define.
3292 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3293 $(i386_tdep_h) and $(i387_tdep_h).
3294 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3295
8201327c
MK
32962002-06-14 Mark Kettenis <kettenis@gnu.org>
3297
edf393ac
MK
3298 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3299 Already covered by the default.
3300
896fb97d
MK
3301 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3302 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3303 (i386_gdbarch_init): Initialize long_double_format and long_double
3304 bit.
3305
8201327c
MK
3306 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3307 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3308 Move these to ...
3309 * config/i386/i386sol2.mh: ... here.
3310 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3311 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3312 (SIGCONTEXT_PC_OFFSET): Remove define.
3313 (IN_SIGTRAMP): Remove define.
3314 * i386-sol2-tdep.c: New file.
3315
3316 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3317 * config/i386/tm-i386nw.h: Removed.
3318
3319 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3320 USE_STRUCT_CONVENTION): Remove defines.
3321 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3322 (get_longjmp_target): Remove prototype.
3323 (IN_SIGTRAMP): Remove define.
3324 (i386bsd_in_sigtramp): Remove prototype.
3325 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3326 function. Update comment accordingly
3327 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3328 (FRAME_SAVED_PC): Remove define.
3329 (i386bsd_frame_saved_pc): Remove prototype.
3330 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3331 GET_LONGJMP_TARGET): Remove defines.
3332 (get_longjmp_target): Remove prototype.
3333 (IN_SIGTRAMP): Remove define.
3334 (i386bsd_in_sigtramp): Remove prototype.
3335 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3336 function. Update comment accordingly
3337 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3338 (FRAME_SAVED_PC): Remove define.
3339 (i386bsd_frame_saved_pc): Remove prototype.
3340 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3341 Remove prototype.
3342 (USE_STRUCT_CONVENTION): Remove prototype.
3343 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3344 declaration.
3345 (_initialize_i386bsd_nat): Revise logic to determine some
3346 constants at compile time when compiling a native GDB. Warn if
3347 things don't match up with what we expect.
3348 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3349 Remove variables.
3350 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3351 to use date stored in `struct gdbarch_tdep'.
3352 (i386bsd_sigcontext_offset): Remove varaible.
3353 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3354 stored in `struct gdbarch_tdep'.
3355 (i386bsd_frame_saved_pc): Make static.
3356 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3357 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3358 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3359 i386fbsd4_sc_pc_offset): New variables.
3360 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3361 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3362 functions.
3363 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3364 functions.
3365 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3366 Modify the value of i386fbsd_sigtramp_start and
3367 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3368 i386fbsd_sigtramp_end.
3369 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3370 function.
3371
3372 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3373 define to i386-linux-tdep.h.
3374 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3375 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3376 defines.
3377 (i386_linux_register_name, i386_linux_register_byte,
3378 i386_linux_register_raw_size): Remove prototypes.
3379 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3380 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3381 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3382 TARGET_WRITE_PC): Remove defines.
3383 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3384 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3385 i386_linux_write_pc): Remove prototypes.
3386 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3387 (get_longjmp_target): Remove prototype.
3388 * i386-linux-tdep.h: New file.
3389 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3390 * i386-linux-tdep.c: Include "i386-tdep.h" and
3391 "i386-linux-tdep.h".
3392 (i386_linux_register_name, i386_linux_register_byte,
3393 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3394 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3395 Make static.
3396 (i386_linux_init_abi): New function.
3397 (_initialize_i386_linux_tdep): New function.
3398
3399 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3400 (i386_saved_pc_after_call): Remove prototype.
3401 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3402 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3403 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3404 (i386_register_name, i386_stab_reg_to_regnum,
3405 i386_dwarf_reg_to_regnum): Remove prototypes.
3406 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3407 SIZEOF_SSE_REGS): Remove defines.
3408 (REGISTER_BYTES): Remove define.
3409 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3410 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3411 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3412 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3413 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3414 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3415 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3416 (get_longjmp_target): Remove prototype.
3417 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3418 (sigtramp_saved_pc): Remove define.
3419 (i386v4_sigtramp_saved_pc): Remove prototype.
3420 * config/i386/tm-go32.h (FRAME_CHAIN,
3421 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3422 (i386go32_frame_saved_pc): Remove prototype.
3423 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3424 (get_longjmp_target): Remove prototype.
3425 * i386-tdep.h: Include "osabi.h".
3426 (enum i386_abi): Removed.
3427 (enum struct_return): New enum.
3428 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3429 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3430 sc_pc_offset members.
3431 (i386_gdbarch_register_os_abi): Remove prototype.
3432 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3433 I386_SSE_NUM_REGS): New defines.
3434 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3435 I386_SSE_SIZEOF_REGS): New defines.
3436 (i386_register_name, i386_register_byte, i386_register_raw_size):
3437 New prototypes.
3438 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3439 (i386bsd_sigtramp_saved_pc): New prototype.
3440 * i386-tdep.c: Don't include "elf-bfd.h".
3441 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3442 i386_frame_chain, i386_saved_pc_after_call): Make static.
3443 (i386_frame_saved_pc): Rewrite to call architecture dependent
3444 function to deal with signal handlers. Make static.
3445 (i386go32_frame_saved_pc): Removed.
3446 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3447 Removed.
3448 (i386_get_longjmp_target): New function.
3449 (default_struct_convention, pcc_struct_convention,
3450 reg_struct_convention, valid_conventions, struct_convention): New
3451 variables.
3452 (i386_use_struct_convention): New function.
3453 (i386v4_sigtramp_saved_pc): Renamed to
3454 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3455 (i386_pc_in_sigtramp): New function.
3456 (i386_abi_names): Removed.
3457 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3458 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3459 Removed.
3460 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3461 i386_gdbarch_register_os_abi): Removed.
3462 (struct i386_abi_handler): Removed.
3463 (i386_abi_handler_list): Removed.
3464 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3465 functions.
3466 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3467 i386_nw_init_abi): New functions.
3468 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3469 Use set_gdbarch_xxx() calls instead of relying on macros for a
3470 number of calls.
3471 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3472 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3473 Register the various architecture variants defined in this file.
3474
ad2f7632
DJ
34752002-06-14 Daniel Jacobowitz <drow@mvista.com>
3476
3477 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3478 (struct main_type): Remove arg_types member. Update comments for
3479 struct field.
3480 (TYPE_ARG_TYPES): Remove.
3481 (TYPE_FN_FIELD_ARGS): Update.
3482 (smash_to_method_type): Update prototype.
3483
3484 * c-typeprint.c (cp_type_print_method_args): Take method type
3485 instead of argument list. Use new argument layout. Simplify.
3486 (c_type_print_args): Use new argument layout. Simplify.
3487 (c_type_print_base): Update call to cp_type_print_method_args.
3488 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3489 argument; use die->type instead. Update call to
3490 smash_to_method_type.
3491 (read_structure_scope): Update call to dwarf2_add_member_fn.
3492 * gdbtypes.c (allocate_stub_method): Update comment.
3493 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3494 Use new argument layout.
3495 (check_stub_method): Use new argument layout. Don't count
3496 void as an argument.
3497 (print_arg_types): Update comments. Use new argument layout.
3498 (recursive_dump_type): Don't print arg_types member.
3499 * hpread.c (hpread_read_struct_type): Use new argument layout.
3500 (fixup_class_method_type): Likewise.
3501 (hpread_type_lookup): Likewise.
3502 * stabsread.c (read_type): Update calls to read_args and
3503 smash_to_method_type.
3504 (read_args): Use new argument layout. Simplify.
3505 * valops.c (typecmp): Use new argument layout. Update parameters
3506 and comments. Simplify.
3507 (hand_function_call): Use new argument layout.
3508 (search_struct_method): Update call to typecmp.
3509 (find_overload_match): Use new argument layout.
3510
6da02953
DJ
35112002-06-13 Daniel Jacobowitz <drow@mvista.com>
3512
3513 * NEWS: Mention multithreaded debug support for gdbserver.
3514
519b2366
DJ
35152002-06-13 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * MAINTAINERS: Mention NEWS.
3518
a7f48742
DJ
35192002-06-13 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * gdbserver/regcache.c: Add comment.
3522
6c0d6680
DJ
35232002-06-13 Daniel Jacobowitz <drow@mvista.com>
3524
3525 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3526 (struct mips_objfile_private, compare_pdr_entries): New.
3527 (non_heuristic_proc_desc): Read the ".pdr" section if it
3528 is present.
3529
6529d2dd
AC
35302002-06-12 Andrew Cagney <ac131313@redhat.com>
3531
3532 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3533 (arm_debug): New static variable.
3534 (_initialize_arm_tdep): Add ``set debug arm'' command.
3535
26216b98
AC
35362002-06-12 Andrew Cagney <ac131313@redhat.com>
3537
3538 * Makefile.in (sim_arm_h): Define.
3539 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3540 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3541 (arm_register_sim_regno): New function, map an internal REGNUM
3542 onto a simulator register number.
3543 (arm_gdbarch_init): Set register_sim_regno.
3544
814b3ba0
AH
35452002-06-09 Aldy Hernandez <aldyh@redhat.com>
3546
3547 * MAINTAINERS: Add self.
3548
475b0867
JB
35492002-06-11 Jim Blandy <jimb@redhat.com>
3550
919d772c
JB
3551 * source.c (source_info): Mention whether the symtab has
3552 information about preprocessor macros.
3553
475b0867
JB
3554 Call the command `info macro', not `show macro'.
3555 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3556 Fix error message.
3557 (_initialize_macrocmd): Register `info_macro_command' in
3558 `infolist', not `showlist'.
3559
9e364162
DJ
35602002-06-11 Daniel Jacobowitz <drow@mvista.com>
3561
3562 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3563 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3564 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3565 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3566 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3567 unconditionally.
3568 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3569 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3570 (_initialize_mips_tdep): Remove dead code.
3571 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3572 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3573 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3574 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3575 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3576 MIPS_LAST_FP_ARG_REGNUM): Remove.
3577
35782002-06-11 Daniel Jacobowitz <drow@mvista.com>
3579
3580 * gdbserver/thread-db.c: New file.
3581 * gdbserver/proc-service.c: New file.
3582 * gdbserver/acinclude.m4: New file.
3583 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3584 proc-service.o, and thread-db.o.
3585 (linux-low.o): Add USE_THREAD_DB.
3586 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3587 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3588 * gdbserver/aclocal.m4: Regenerated.
3589 * gdbserver/config.in: Regenerated.
3590 * gdbserver/configure: Regenerated.
3591 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3592 thread_db.h, and linux/elf.h headrs.
3593 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3594 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3595 Check for -lthread_db and thread support.
3596 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3597 PowerPC, and SuperH.
3598 * gdbserver/i387-fp.c: Constify arguments.
3599 * gdbserver/i387-fp.h: Likewise.
3600 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3601 `struct inferior_info'. Remove PID member. Use generic inferior
3602 list header. All uses updated.
3603 (inferiors, signal_pid): Removed.
3604 (all_threads): New variable.
3605 (get_thread): Define.
3606 (add_inferior_to_list): New function.
3607 (for_each_inferior): New function.
3608 (change_inferior_id): New function.
3609 (add_inferior): Removed.
3610 (remove_inferior): New function.
3611 (add_thread): New function.
3612 (free_one_thread): New function.
3613 (remove_thread): New function.
3614 (clear_inferiors): Use for_each_inferior and free_one_thread.
3615 (find_inferior): New function.
3616 (find_inferior_id): New function.
3617 (inferior_target_data): Update argument type.
3618 (set_inferior_target_data): Likewise.
3619 (inferior_regcache_data): Likewise.
3620 (set_inferior_regcache_data): Likewise.
3621 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3622 (all_processes, stopping_threads, using_thrads)
3623 (struct pending_signals, debug_threads, pid_of): New.
3624 (inferior_pid): Replace with macro.
3625 (struct inferior_linux_data): Remove.
3626 (get_stop_pc, add_process): New functions.
3627 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3628 Use add_process and add_thread.
3629 (linux_attach_lwp): New function, based on old linux_attach. Use
3630 add_process and add_thread. Set stop_expected for new threads.
3631 (linux_attach): New function.
3632 (linux_kill_one_process): New function.
3633 (linux_kill): Kill all LWPs.
3634 (linux_thread_alive): Use find_inferior_id.
3635 (check_removed_breakpoints, status_pending_p): New functions.
3636 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3637 Update. Use WNOHANG. Wait for cloned processes also. Update process
3638 struct for the found process.
3639 (linux_wait_for_event): New function.
3640 (linux_wait): Use it. Support LWPs.
3641 (send_sigstop, wait_for_sigstop, stop_all_processes)
3642 (linux_resume_one_process, linux_continue_one_process): New functions.
3643 (linux_resume): Support LWPs.
3644 (REGISTER_RAW_SIZE): Remove.
3645 (fetch_register): Use register_size instead. Call supply_register.
3646 (usr_store_inferior_registers): Likewise. Call collect_register.
3647 Fix recursive case.
3648 (regsets_fetch_inferior_registers): Improve error message.
3649 (regsets_store_inferior_registers): Add debugging.
3650 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3651 (unstopped_p, linux_signal_pid): New functions.
3652 (linux_target_ops): Add linux_signal_pid.
3653 (linux_init_signals): New function.
3654 (initialize_low): Call it. Initialize using_threads.
3655 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3656 flag.
3657 (get_regcache): Fetch registers lazily. Add fetch argument
3658 and update all callers.
3659 (regcache_invalidate_one, regcache_invalidate): New
3660 functions.
3661 (new_register_cache): Renamed from create_register_cache.
3662 Return the new regcache.
3663 (free_register_cache): Change argument to a void *.
3664 (registers_to_string, registers_from_string): Call get_regcache
3665 with fetch flag set.
3666 (register_data): Make static. Pass fetch flag to get_regcache.
3667 (supply_register): Call get_regcache with fetch flag clear.
3668 (collect_register): Call get_regcache with fetch flag set.
3669 (collect_register_as_string): New function.
3670 * gdbserver/regcache.h: Update.
3671 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3672 stderr.
3673 Handle input interrupts while waiting for an ACK.
3674 (input_interrupt): Use signal_pid method.
3675 (getpkt): Flush after debug output and use stderr.
3676 (outreg): Use collect_register_as_string.
3677 (new_thread_notify, dead_thread_notify): New functions.
3678 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3679 and general_thread.
3680 (look_up_one_symbol): Flush after debug output.
3681 * gdbserver/server.c (step_thread, server_waiting): New variables.
3682 (start_inferior): Don't use signal_pid. Update call to mywait.
3683 (attach_inferior): Update call to mywait.
3684 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3685 (main): Don't fetch/store registers explicitly. Use
3686 set_desired_inferior. Support proposed ``Hs'' packet. Update
3687 calls to mywait.
3688 * gdbserver/server.h: Update.
3689 (struct inferior_list, struct_inferior_list_entry): New.
3690 * gdbserver/target.c (set_desired_inferior): New.
3691 (write_inferior_memory): Constify.
3692 (mywait): New function.
3693 * gdbserver/target.h: Update.
3694 (struct target_ops): New signal_pid method.
3695 (mywait): Removed macro, added prototype.
3696
3697 * gdbserver/linux-low.h (regset_func): Removed.
3698 (regset_fill_func, regset_store_func): New.
3699 (enum regset_type): New.
3700 (struct regset_info): Add type field. Use new operation types.
3701 (struct linux_target_ops): stop_pc renamed to get_pc.
3702 Add decr_pc_after_break and breakpoint_at.
3703 (get_process, get_thread_proess, get_process_thread)
3704 (strut process_info, all_processes, linux_attach_lwp)
3705 (thread_db_init): New.
3706
3707 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3708 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3709 (the_low_target): Add new members.
3710 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3711 (i386_store_fpxregset): Constify.
3712 (target_regsets): Add new kind identifier.
3713 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3714 (i386_set_pc): Add debugging.
3715 (i386_breakpoint_at): New function.
3716 (the_low_target): Add new members.
3717 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3718 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3719 (mips_breakpoint_at): New.
3720 (the_low_target): Add new members.
3721 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3722 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3723 (the_low_target): Add new members.
3724 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3725 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3726 (the_low_target): Add new members.
3727 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3728 identifier.
3729
23aa4c72
ML
37302002-06-11 Michal Ludvig <mludvig@suse.cz>
3731
3732 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3733 (unwind_tmp_obstack_free, parse_frame_info)
3734 (update_context, cfi_read_fp, cfi_write_fp)
3735 (cfi_frame_chain, cfi_init_extra_frame_info)
3736 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3737 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3738
70eb15a4
CV
37392002-06-11 Corinna Vinschen <vinschen@redhat.com>
3740
3741 * v850-tdep.c (v850_type_is_scalar): New function.
3742 (v850_use_struct_convention): Match current gcc implementation
3743 as close as possible.
3744 (v850_push_arguments): Fix stack_offset handling. Don't write
3745 struct_addr into register. This is done by v850_store_struct_return.
3746 (v850_extract_return_value): Care for structs.
3747 (v850_store_return_value): Ditto.
3748 (v850_store_struct_return): Actually write address.
3749
482a4d06
ML
37502002-06-11 Michal Ludvig <mludvig@suse.cz>
3751
3752 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3753 without debug information too.
3754
d855c300
AC
37552002-06-10 Andrew Cagney <ac131313@redhat.com>
3756
3757 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3758 Make multi-arch pure.
3759 * gdbarch.h, gdbarch.c: Re-generate.
3760 * arm-tdep.c (arm_print_float_info): Update.
3761 * arch-utils.h (default_print_float_info): Update.
3762 * arch-utils.c (default_print_float_info): Update.
3763 * infcmd.c (float_info): Update call.
3764
dd12a101
AC
37652002-06-10 Andrew Cagney <ac131313@redhat.com>
3766
3767 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3768 the front of the initialize list.
3769
101dcfbe
AC
37702002-06-10 Andrew Cagney <ac131313@redhat.com>
3771
3772 * infrun.c (struct inferior_status): Replace fields
3773 selected_frame_address and selected_level with field
3774 selected_frame_id.
3775 (save_inferior_status): Update. Use get_frame_id.
3776 (struct restore_selected_frame_args): Delete.
3777 (restore_selected_frame): Update. Use frame_find_by_id.
3778 (restore_inferior_status): Update.
3779
3780 * breakpoint.h (struct breakpoint): Change type of
3781 watchpoint_frame to frame_id.
3782 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3783 call to get_current_frame.
3784 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3785 get_current_frame.
3786 (watchpoint_check): Use frame_find_by_id.
3787
3788 * frame.h (record_selected_frame): Delete declaration.
3789 * stack.c (record_selected_frame): Delete function.
3790
3791 * frame.h (struct frame_id): Define.
3792 (get_frame_id): Declare.
3793 (frame_find_by_id): Declare.
3794 * frame.c (frame_find_by_id): New function.
3795 (get_frame_id): New function.
3796
304270b6
AV
37972002-06-10 Andrey Volkov <avolkov@transas.com>
3798
3799 * ser-e7kpc.c: Fix duplicated define and call of
3800 _initialize_ser_e7000pc
3801
2f2cf184
DJ
38022002-06-09 Daniel Jacobowitz <drow@mvista.com>
3803
3804 * signals/signals.c (target_signal_from_host): Fix #ifdef
3805 SIGRTMIN case.
3806 (do_target_signal_to_host): Likewise.
3807
caaa3122
DJ
38082002-06-09 Daniel Jacobowitz <drow@mvista.com>
3809
3810 * mips-tdep.c (mips_find_abi_section): New function.
3811 (mips_gdbarch_init): Call it.
3812
6ac5df3a
MK
38132002-06-09 Mark Kettenis <kettenis@gnu.org>
3814
3815 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3816 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3817 after Andrew's 2002-06-08 gdbarch change.
3818
82ea117a
MK
38192002-06-09 Mark Kettenis <kettenis@gnu.org>
3820
3821 * i386-linux-nat.c (suppy_gregset): Don't supply
3822 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3823 register cache.
3824 (fill_gregset): Don't fetch it under the same circumstances.
3825
3c25f8c7
AC
38262002-06-09 Andrew Cagney <cagney@redhat.com>
3827
3828 * Makefile.in (callback_h): Define.
3829 (remote_sim_h): Update path to remote-sim.h.
3830 (remote-rdp.o): Add $(callback_h).
3831 (remote-sim.o): Use $(callback_h).
3832 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3833 * remote-rdp.c: Include "gdb/callback.h".
3834
1029b7fa
MK
38352002-06-09 Mark Kettenis <kettenis@gnu.org>
3836
3837 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3838 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3839
616675d3
AC
38402002-06-08 Andrew Cagney <ac131313@redhat.com>
3841
a3efda28
AC
3842 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3843 * rdi-share/serpardr.c: Ditto.
3844 * rdi-share/unixcomm.c: Ditto.
3845 * rdi-share/serdrv.c: Ditto.
3846 * rdi-share/hostchan.h: Ditto.
3847 * rdi-share/hostchan.c: Ditto.
3848 * rdi-share/host.h: Ditto.
3849 * rdi-share/devsw.c: Ditto.
3850
c5f10366
AC
3851 * objfiles.h: Change type of obj_private to void pointer.
3852 * pa64solib.c: Update copyright. Don't include "assert.h", use
3853 strcmp instead of STREQ, use LONGEST, do not use PTR
3854 * somsolib.c: Ditto.
3855
616675d3
AC
3856 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3857 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3858 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3859
e4b415d9
AC
38602002-06-08 Andrew Cagney <ac131313@redhat.com>
3861
3862 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3863 (default_get_saved_register): Delete function.
3864 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3865 generic_unwind_get_saved_register.
3866 * gdbarch.h, gdbarch.c: Re-generate.
3867
ca0d0b52
AC
38682002-06-08 Andrew Cagney <ac131313@redhat.com>
3869
3870 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3871 generic_func_frame_chain_valid.
3872 * gdbarch.h, gdbarch.c: Re-generate.
3873 * blockframe.c (generic_func_frame_chain_valid): Only check
3874 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3875 passing FP to PC_IN_CALL_DUMMY.
3876 Fix PR gdb/360.
3877
76860b5f
AC
38782002-06-08 Andrew Cagney <ac131313@redhat.com>
3879
3880 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3881 (register_gdbarch_data): Initialize init_p.
3882 (gdbarch_data): Initialize data pointer using the init function.
3883 (init_gdbarch_data): Delete function.
3884 (gdbarch_update_p): Update.
3885 (initialize_non_multiarch): Update.
3886 (struct gdbarch): Add field initialized_p.
3887 * gdbarch.h, gdbarch.c: Re-generate.
3888
8dda9770
ML
38892002-06-07 Michal Ludvig <mludvig@suse.cz>
3890
3891 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3892 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3893 better do the things actually here.
3894 * x86-64-tdep.c (x86_64_register_name2nr): New.
3895 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3896 (x86_64_gdbarch_init): Respect the above change.
3897 * x86-64-tdep.h (x86_64_register_name2nr)
3898 (x86_64_register_nr2name): Add prototypes.
3899 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3900
3d79a47c
MS
39012002-06-06 Michael Snyder <msnyder@redhat.com>
3902
7bd91a28
MS
3903 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3904 Delete extra braces and re-indent.
3905 (d10v_store_return_value): Char return values
3d79a47c
MS
3906 must be shifted over by one byte in R0.
3907 (d10v_extract_return_value): Delete extra braces, re-indent.
3908
095a4c96
EZ
39092002-06-06 Elena Zannoni <ezannoni@redhat.com>
3910
3911 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3912 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3913 (d10v_integer_to_address): Rewrite.
3914 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3915 the d10v specific functions which take care of converting to the
3916 correct space.
3917
e8a77ca4
EZ
39182002-06-06 Elena Zannoni <ezannoni@redhat.com>
3919
3920 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3921 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3922
4f2e4a4f
AC
39232002-06-02 Andrew Cagney <ac131313@redhat.com>
3924
3925 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3926 includes.
3927 * config/tm-linux.h: Ditto.
3928 * config/alpha/tm-alphalinux.h: Ditto.
3929 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3930 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3931 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3932 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3933 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3934 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3935 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3936 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3937 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3938 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3939 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3940 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3941 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3942 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3943 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3944 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3945 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3946 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3947 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3948 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3949 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3950 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3951 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3952 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3953 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3954 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3955 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3956 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3957 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3958 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3959 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3960 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3961 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3962 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3963 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3964 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3965 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3966
ae2ab2ce
AS
39672002-05-04 Aidan Skinner <aidan@velvet.net>
3968
3969 * ada-exp.tab.c: New file
3970 * ada-exp.y: New file
3971 * ada-lang.c: New file
3972 * ada-lang.h: New file
3973 * ada-lex.c: New file
3974 * ada-lex.l: New file
3975 * ada-tasks.c: New file
3976 * ada-typeprint.c: New file
3977 * ada-valprint.c: New file
3978
0ddd0135
JT
39792002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3980
3981 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3982 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3983
750fbacc
JT
39842002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3985
3986 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3987 insetead of ppc-linux-tdep.o.
3988 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3989 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3990
df94e18a
AC
39912002-06-02 Andrew Cagney <ac131313@redhat.com>
3992
3993 2002-05-07 Christian Groessler <chris@groessler.org>
3994 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3995 bit register contents for little endian hosts.
3996
1a38ab75
AC
39972002-06-01 Andrew Cagney <ac131313@redhat.com>
3998
3999 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4000 any maintainer.
4001
8b1632ac
AC
40022002-06-01 Andrew Cagney <ac131313@redhat.com>
4003
4004 * gdbarch.h: Regenerate.
4005
627054c8
AC
40062002-06-01 Andrew Cagney <ac131313@redhat.com>
4007
4008 * MAINTAINERS: Add everyone to write-after-approval list.
4009
4f460812
AC
40102002-06-01 Andrew Cagney <ac131313@redhat.com>
4011
4012 * stack.c (frame_info): Use frame_register_unwind instead of
4013 saved_regs. Mention when the SP is on the stack or in a register.
4014
4015 * frame.h (frame_register_unwind_ftype): Define. Document.
4016 (struct frame_info): Add field register_unwind and
4017 register_unwind_cache.
4018 (frame_register_unwind): Declare.
4019 (generic_unwind_get_saved_register): Declare.
4020
4021 * frame.c (frame_register_unwind): New function.
4022 (generic_unwind_get_saved_register): New function.
4023
4024 * blockframe.c (generic_call_dummy_register_unwind): New function.
4025 (frame_saved_regs_register_unwind): New function.
4026 (set_unwind_by_pc): New function.
4027 (create_new_frame): New function.
4028 (get_prev_frame): New function.
4029
de888f76
AC
40302002-05-30 Andrew Cagney <ac131313@redhat.com>
4031
4032 * a29k-share/: Delete directory.
4033 * remote-vx29k.c: Delete file.
4034
2f2c3626
JT
40352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4036
4037 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4038 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4039
9ce5c36a
JT
40402002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4043 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4044 (sparc64nbsd-nat.o)
4045 (sparcnbsd-nat.o)
4046 (sparcnbsd-tdep.o): New dependency lists.
4047 * NEWS: Note new UltraSPARC NetBSD native configuration.
4048 * configure.host (sparc64-*-netbsd*): New host.
4049 * configure.tgt (sparc-*-netbsdelf*)
4050 (sparc-*-netbsd*): Set gdb_target to nbsd.
4051 (sparc64-*-netbsd*): New target.
4052 * sparc64nbsd-nat.c: New file.
4053 * sparcnbsd-nat.c: New file.
4054 * sparcnbsd-tdep.c: New file.
4055 * sparcnbsd-tdep.h: New file.
4056 * config/sparc/nbsd.mt: New file.
4057 * config/sparc/nbsd64.mh: New file.
4058 * config/sparc/nbsd64.mt: New file.
4059 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4060 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4061 (HOST_IPC): Remove.
4062 * config/sparc/nbsdaout.mt: Remove.
4063 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4064 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4065 (HOST_IPC): Remove.
4066 * config/sparc/nbsdelf.mt: Remove.
4067 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4068 sparc-nat.c compatiblity defines.
4069 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4070 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4071 * config/sparc/tm-nbsd64.h: New file.
4072 * config/sparc/tm-nbsdaout.h: Remove.
4073 * config/sparc/xm-nbsd.h: Remove.
4074
ef3cf062
JT
40752002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4076
4077 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4078 * sparc-tdep.c: Include osabi.h.
4079 (gdbarch_tdep): Add osabi member.
4080 (_initialize_sparc_tdep): Use gdbarch_register.
4081 (sparc_gdbarch_init): Use generic OS ABI framework.
4082 (sparc_dump_tdep): New function.
4083
ee8ff470
KB
40842002-05-30 Kevin Buettner <kevinb@redhat.com>
4085
4086 * corefile.c (do_captured_read_memory_integer): Return non-zero
4087 result.
4088 (safe_read_memory_integer): Copy result of memory read when
4089 status is non-zero. Also, add comments.
4090
7b112f9c
JT
40912002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4092
4093 * Makefile.in (ppc_tdep_h): Define.
4094 (ppc-linux-nat.o)
4095 (ppc-linux-tdep.o)
4096 (rs6000-tdep.o): Use $(ppc_tdep_h).
4097 (ppc-sysv-tdep.o)
4098 (ppcnbsd-nat.o)
4099 (ppcnbsd-tdep.o): New dependency lists.
4100 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4101 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4102 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4103 (ppc_sysv_abi_broken_use_struct_convention)
4104 (ppc_sysv_abi_use_struct_convention)
4105 (ppc_sysv_abi_push_arguments): Move to...
4106 * ppc-sysv-tdep.c: ...here.
4107 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4108 * rs6000-tdep.c (process_note_abi_tag_sections)
4109 (get_elfosabi): Remove.
4110 (rs6000_gdbarch_init): Use generic OS ABI framework.
4111 (rs6000_dump_tdep): New function.
4112 (_initialize_rs6000_tdep): Use gdbarch_register.
4113 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4114 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4115 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4116 of ppc-linux-tdep.o.
4117 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4118 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4119 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4120 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4121 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4122 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4123
480dd42a
JB
41242002-05-29 Jim Blandy <jimb@redhat.com>
4125
4126 * macroscope.c (default_macro_scope): Put `void' in empty argument
4127 list.
4128
4182591f
AC
41292002-05-29 Andrew Cagney <ac131313@redhat.com>
4130
4131 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4132 * arch-utils.c: Include "sim-regno.h".
4133 * gdbarch.sh: Don't include "sim-regno.h".
4134 * gdbarch.h, gdbarch.c: Regenerate.
4135 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4136 here.
4137 * arch-utils.h (legacy_register_sim_regno): To here.
4138 * remote-sim.c (legacy_register_sim_regno): Move function from
4139 here.
4140 * arch-utils.c (legacy_register_sim_regno): To here.
4141
8238d0bf
AC
41422002-05-28 Andrew Cagney <ac131313@redhat.com>
4143
4144 * sim-regno.h: New file.
4145 * Makefile.in (sim_regno_h): Define.
4146 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4147 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4148 (legacy_register_sim_regno): New function.
4149 (one2one_register_sim_regno): New function.
4150 (gdbsim_fetch_register): Rewrite.
4151 (gdbsim_store_register): Only store a register when
4152 REGISTER_SIM_REGNO is valid.
4153 * d10v-tdep.c: Include "sim-regno.h".
4154 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4155 (d10v_ts3_register_sim_regno): Ditto.
4156 * gdbarch.sh: Include "sim-regno.h".
4157 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4158 * gdbarch.h, gdbarch.c: Regenerate.
4159 * arch-utils.h (default_register_sim_regno): Delete declaration.
4160 * arch-utils.c (default_register_sim_regno): Delete function.
4161
485721b1
JT
41622002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4163
4164 * ppcnbsd-nat.c: Rewrite.
4165 * ppcnbsd-tdep.c: New file.
4166 * ppcnbsd-tdep.h: New file.
4167 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4168 solib.o, and solib-svr4.o.
4169 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4170 nbsd-tdep.o, and corelow.o.
4171
697f244d
AC
41722002-05-28 Andrew Cagney <ac131313@redhat.com>
4173
4174 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4175 `tr' and `sed'. Mention that `broken' targets are not expected to
4176 build.
4177
f08caad1 41782002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4179
4180 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4181 Let PC point right after the prologue before looking up symbols.
4182
3139facc
MH
41832002-05-27 Martin M. Hunt <hunt@redhat.com>
4184
4185 * i386-tdep.c (i386_register_virtual_type): Return
4186 builtin_type_vec128i for SSE registers.
4187
4188 * gdbtypes.h (builtin_type_vec128i): Declare.
4189
4190 * gdbtypes.c (build_builtin_type_vec128i): New function.
4191 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4192 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4193 (build_gdbtypes): Initialize new builtin vector types.
4194 (_initialize_gdbtypes): Register new vector types with gdbarch.
4195
6e3ba3b8
JT
41962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4197
4198 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4199 since it has been multi-arch'd.
4200 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4201 Move Alpha and VAX multi-arch news entries to same section
4202 as other multi-arch news.
4203
93d5585d
JT
42042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4205
4206 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4207 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4208 static. Rename some register numbers to put them in ns32k-tdep
4209 private namespace.
4210 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4211 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4212 functions.
4213 (_initialize_ns32k_tdep): Use gdbarch_register.
4214 * ns32k-tdep.h: New file.
4215 * ns32knbsd-tdep.c: New file.
4216 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4217 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4218 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4219 REGISTER_BYTES, REGISTER_BYTE): Remove.
4220 * config/ns32k/tm-ns32k.h: New file.
4221 * config/ns32k/tm-umax.h: Remove.
4222
efb2c70e
JT
42232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4224
4225 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4226 ns32k_store_struct_return, ns32k_extract_return_value,
4227 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4228 functions.
4229 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4230 ns32k_saved_pc_after_call.
4231 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4232 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4233 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4234 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4235 ns32k_extract_struct_value_address.
4236
7bcc927b
JT
42372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4238
4239 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4240 ns32k_fix_call_dummy): New.
4241 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4242 ns32k_call_dummy_words.
4243 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4244 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4245 CALL_DUMMY_NARGS): Remove.
4246 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4247
78f9d765
JT
42482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4249
4250 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4251 ns32k_frame_saved_pc, ns32k_frame_args_address,
4252 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4253 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4254 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4255 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4256 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4257 (BREAKPOINT): Remove..
4258 (FRAME_CHAIN): Define as ns32k_frame_chain.
4259 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4260 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4261 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4262 (FRAME_FIND_SAVED_REGS): Remove.
4263 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4264 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4265 (POP_FRAME): Define as ns32k_pop_frame.
4266
f2c762e0
JT
42672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4268
4269 * ns32k-tdep.c (ns32k_register_byte_32082,
4270 ns32k_register_byte_32382, ns32k_register_raw_size,
4271 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4272 functions.
4273 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4274 ns32k_register_byte_32382.
4275 * config/ns32k/tm-umax.h: Update copyright years.
4276 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4277 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4278 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4279 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4280 (ns32k_get_enter_addr): Fix prototype.
4281
af137673
JT
42822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4283
4284 * ns32k-tdep.c: Update copyright years.
4285 (ns32k_register_name_32082): New function.
4286 (ns32k_register_name_32382): Ditto.
4287 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4288 (REGISTER_NAME): Define as ns32k_register_name_32382.
4289 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4290 (REGISTER_NAME): Define as ns32k_register_name_32082.
4291
a8bc7b56
JB
42922002-05-24 Jim Blandy <jimb@redhat.com>
4293
4294 * dwarf2read.c (free_line_header): Use xfree, not free.
4295
83a45910
JT
42962002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4297
4298 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4299 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4300
0db71247
AC
43012002-05-23 Andrew Cagney <ac131313@redhat.com>
4302
4303 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4304
b9e5e4dd
AC
43052002-05-23 Andrew Cagney <ac131313@redhat.com>
4306
4307 From Ross Alexander at NEC Europe:
4308 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4309
de530e84
MS
43102002-05-23 Michael Snyder <msnyder@redhat.com>
4311
4312 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4313 for input, rather than parse_and_eval_address.
4314
b91b96f4
AC
43152002-05-23 Andrew Cagney <ac131313@redhat.com>
4316
4317 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4318 * Makefile.in (sim_d10v_h): Update definition.
4319
8b279e7a
AC
43202002-05-24 Andrew Cagney <cagney@redhat.com>
4321
4322 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4323 change `2002-05-22 Michael Snyder' below.
4324 (d10v_push_arguments): Ditto.
4325 (d10v_extract_return_value): Ditto.
4326
0a3d0425
JB
43272002-05-23 Jim Blandy <jimb@redhat.com>
4328
4329 * macrotab.c (check_for_redefinition): Don't complain if the new
4330 definition is the same as the previous one. Take more arguments
4331 to allow the comparison.
4332 (macro_define_object, macro_define_function): Pass more arguments
4333 to check_for_redefinition.
4334
78eac43e
MS
43352002-05-22 Michael Snyder <msnyder@redhat.com>
4336
4337 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4338 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4339 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4340 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4341 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4342 Add a temp variable to save a call (and a memory read).
4343 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4344 if possible (so that PC_IN_CALL_DUMMY will work).
4345
9bc1edb8
CV
43462002-05-22 Corinna Vinschen <vinschen@redhat.com>
4347
4348 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4349
005ef3d2
ML
43502002-05-22 Michal Ludvig <mludvig@suse.cz>
4351
4352 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4353 fde->cie_ptr.
4354 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4355 (dwarf2_build_frame_info): Add offset to fde->initial_location
4356 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4357 (execute_stack_op): Change type of 'result' from ULONGEST to
4358 CORE_ADDR.
005ef3d2 4359
fcf4f891
JT
43602002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4361
4362 * config/alpha/tm-nbsd.h: Include solib.h.
4363
cfef91e4
JT
43642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4365
4366 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4367 assumptions about the host's byte order.
4368
9964235a
JT
43692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4370
4371 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4372 to dependency list.
4373 * alphanbsd-tdep.c: Include solib-svr4.h.
4374 * shnbsd-tdep.c: Ditto.
4375
9eeef8ef
JT
43762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4377
4378 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4379 nbsd-tdep.h to dependency list.
4380 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4381 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4382 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4383 nbsdaout.mh and nbsdelf.mh consistently.
4384 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4385 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4386 nbsdaout.mt and nbsdelf.mh consistently.
4387 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4388 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4389 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4390 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4391 a.out shared library stuff from here...
4392 * config/nm-nbsdaout.h: ...to here.
4393 * config/tm-nbsd.h: Remove.
4394 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4395 * config/arm/nbsd.mh: Remove.
4396 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4397 nbsd-tdep.o.
4398 * config/arm/nbsdaout.mh: New file.
4399 * config/arm/nbsdelf.mh: New file.
4400 * config/arm/nm-nbsdaout.h: New file.
4401 * config/i386/nbsd.mh: Remove.
4402 * config/i386/nbsd.mt: Remove.
4403 * config/i386/nbsdaout.mh: New file.
4404 * config/i386/nbsdaout.mt: New file.
4405 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4406 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4407 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4408 i386_register_u_addr): Remove.
4409 * config/i386/nm-nbsdaout.h: New file.
4410 * config/i386/nm-nbsdelf.h: Remove.
4411 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4412 (USE_STRUCT_CONVENTION): Remove.
4413 * config/i386/tm-nbsdaout.h: New file.
4414 * config/i386/tm-nbsdelf.h: Remove.
4415 * config/m68k/nbsd.mh: Remove.
4416 * config/m68k/nbsd.mt: Remove.
4417 * config/m68k/nbsdaout.mh: New file.
4418 * config/m68k/nbsdaout.mt: New file.
4419 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4420 * config/m68k/nm-nbsdaout.h: New file.
4421 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4422 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4423 * config/ns32k/nbsd.mh: Remove.
4424 * config/ns32k/nbsd.mt: Remove.
4425 * config/ns32k/nbsdaout.mh: New file.
4426 * config/ns32k/nbsdaout.mt: New file.
4427 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4428 * config/ns32k/nm-nbsdaout.h: New file.
4429 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4430 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4431 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4432 (SVR4_SHARED_LIBS): Remove.
4433 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4434 * config/sparc/nbsd.mh: Remove.
4435 * config/sparc/nbsd.mt: Remove.
4436 * config/sparc/nbsdaout.mh: New file.
4437 * config/sparc/nbsdaout.mt: New file.
4438 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4439 * config/sparc/nbsdelf.mt: New file.
4440 * config/sparc/nm-nbsdaout.h: New file.
4441 * config/sparc/nm-nbsdelf.h: Remove.
4442 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4443 * config/sparc/tm-nbsdaout.h: New file.
4444
257ce470
JT
44452002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4446
4447 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4448 mipsnbsd-tdep.c
4449 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4450
76a6d5fe
JT
44512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4452
4453 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4454 shnbsd-nat.c.
4455 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4456
45888261
JT
44572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4458
4459 * NEWS: Note new MIPS NetBSD native configuration.
4460 * configure.host (mips*-*-netbsd*): New host.
4461 * configure.tgt (mips*-*-netbsd*): New target.
4462 * mipsnbsd-nat.c: New file.
4463 * mipsnbsd-tdep.c: New file.
4464 * mipsnbsd-tdep.h: New file.
4465 * config/mips/nbsd.mh: New file.
4466 * config/mips/nbsd.mt: New file.
4467 * config/mips/nm-nbsd.h: New file.
4468 * config/mips/tm-nbsd.h: New file.
4469
70f80edf
JT
44702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4471
4472 * Makefile.in (SFILES): Add osabi.c.
4473 (COMMON_OBS): Add osabi.o.
4474 (osabi.o): New dependency list.
4475 * osabi.c: New file.
4476 * osabi.h: New file.
4477 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4478
4479 * Makefile.in (alpha_tdep_h): Define and use instead of
4480 alpha-tdep.h.
4481 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4482 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4483 Remove.
4484 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4485 * alpha-tdep.h: Include osabi.h.
4486 (alpha_abi): Remove.
4487 (gdbarch_tdep): Use generic OS ABI framework.
4488 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4489 gdbarch_register_osabi.
4490 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4491 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4492 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4493
4494 * Makefile.in (sh_tdep_h): Add osabi.h.
4495 * sh-tdep.h (sh_osabi): Remove.
4496 (gdbarch_tdep): Use generic OS ABI framework.
4497 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4498 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4499 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4500 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4501
4502 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4503 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4504 gdbarch_register_osabi.
4505 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4506 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4507 (get_elfosabi): Rename to...
4508 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4509 ABI framework support routines.
4510 (arm_gdbarch_init): Use generic OS ABI framework.
4511 (arm_dump_tdep): Likewise.
4512 (_initialize_arm_tdep): Likewise.
4513 * arm-tdep.h: Include osabi.h.
4514 (arm_abi): Remove.
4515 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4516 osabi member.
4517 (arm_gdbarch_register_os_abi): Remove prototype.
4518 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4519 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4520
4521 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4522 * mips-tdep.c: Include osabi.h.
4523 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4524 OS ABI framework.
4525
d194345b
KH
45262002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4527
4528 * h8300-tdep.c: Fix formatting.
4529
70c6b0d1
EZ
45302002-05-20 Elena Zannoni <ezannoni@redhat.com>
4531
4532 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4533 printing vector registers.
4534
165b8e33
AC
45352002-05-19 Andrew Cagney <ac131313@redhat.com>
4536
4537 From Fernando Nasser:
4538 * remote.c (remote_async_open_1): Re-throw the exception when the
4539 connection fails.
4540 (remote_cisco_open): Ditto.
4541 (remote_open_1): Ditto.
4542
36918e70
AC
45432002-05-19 Andrew Cagney <ac131313@redhat.com>
4544
4545 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4546 (remote_start_remote): Add uiout parameter. Pass through to
4547 remote_start_remote_dummy.
4548 (remote_open_1): Use catch_exception instead of catch_errors.
4549 (remote_async_open_1): Ditto.
4550 (remote_cisco_open): Ditto.
4551
ae44c0c4
AC
45522002-05-19 Andrew Cagney <ac131313@redhat.com>
4553
4554 * remote.c (remote_start_remote): Replace PTR with void pointer.
4555 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4556 static.
4557
8efe637d
AC
45582002-05-18 Andrew Cagney <ac131313@redhat.com>
4559
4560 * gdb_indent.sh: Allow the script to be run in the sim directory.
4561
2f1b5984
MK
45622002-05-18 Mark Kettenis <kettenis@gnu.org>
4563
f0f625e2
MK
4564 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4565 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4566
2f1b5984
MK
4567 * corelow.c (core_open): Only call set_gdbarch_from_file if
4568 exec_bfd is NULL.
4569
fc974602
AV
45702002-05-17 Andrey Volkov <avolkov@transas.com>
4571
4572 * h8300-tdep.c: Add support of EXR register
4573 * config/h8300/tm-h8300.h: Ditto.
4574
906709f4
AV
45752002-05-17 Andrey Volkov <avolkov@transas.com>
4576
4577 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4578
6e591d68
AV
45792002-05-17 Andrey Volkov <avolkov@transas.com>
4580
4581 * h8300-tdep.c: Change literal regnums to REGNO.
4582
84f0252a
JB
45832002-05-17 Jim Blandy <jimb@redhat.com>
4584
e0e9281e
JB
4585 * NEWS: Note addition of macro support.
4586
84f0252a
JB
4587 Expand preprocessor macros in C expressions.
4588 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4589 (scan_macro_expansion, scanning_macro_expansion,
4590 finished_macro_expansion): New function declarations.
4591 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4592 variable declarations.
4593 * parser-defs.h (expression_context_pc): New declaration.
4594 * parse.c (expression_context_pc): New variable.
4595 (parse_exp_1): Set expression_context_pc, as well as
4596 expression_context_block.
4597 * c-exp.y (yylex): If we're not already reading the result of a
4598 macro expansion, try to macro-expand the next token. When we're
4599 done scanning a macro expansion, switch back to the mainline text.
4600 Commas and `if's in a macro's expansion don't terminate the input.
4601 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4602 (macro_original_text, macro_expanded_text,
4603 expression_macro_lookup_func, expression_macro_lookup_baton): New
4604 variables.
4605 (scan_macro_expansion, scanning_macro_expansion,
4606 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4607 c_preprocess_and_parse): New functions.
4608 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4609 c_preprocess_and_parse, instead of c_parse.
4610 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4611 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4612
1c509ca8
JR
4613Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4614
4615 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4616 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4617 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4618
2250ee0c
CV
46192002-05-17 Corinna Vinschen <vinschen@redhat.com>
4620
4621 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4622
ab3b8126
JT
46232002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4624
4625 * Makefile.in (sh_tdep_h): Define and use.
4626 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4627 register enum): Move to...
4628 * * sh-tdep.h: ...here.
4629 * sh-tdep.c: Include sh-tdep.h.
4630 * sh3-rom.c: Likewise.
4631 * shnbsd-tdep.c: Likewise.
4632
ed9d4749
MS
46332002-05-16 Michael Snyder <msnyder@redhat.com>
4634
4635 * arm-tdep.c: Spelling fix in comment.
4636
2e276125
JB
46372002-05-16 Jim Blandy <jimb@redhat.com>
4638
6821892e
JB
4639 Add commands for manually expanding macros and showing their
4640 definitions.
4641 * macrocmd.c, macroscope.c, macroscope.h: New files.
4642 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4643 (macroscope_h): New variable.
4644 (HFILES_NO_SRCDIR): Add macroscope.h.
4645 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4646 (macroscope.o, macrocmd.o): New rules.
4647
2e276125
JB
4648 Teach the Dwarf 2 reader to read macro information.
4649 * dwarf2read.c: #include "macrotab.h".
4650 (dwarf_macinfo_buffer): New variable.
4651 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4652 dwarf_macinfo_size.
4653 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4654 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4655 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4656 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4657 dwarf2_macro_spaces_in_definition): New complaints.
4658 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4659 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4660 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4661 the partial symbol table.
4662 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4663 from what's recorded in the partial symbol table.
4664 (read_file_scope): If the compilation unit has a
4665 `DW_AT_macro_info' attribute, read its macro information.
4666 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4667
2f53fe6c
DJ
46682002-05-16 Daniel Jacobowitz <drow@mvista.com>
4669
4670 Fix PR gdb/546
4671 * ser-tcp.c: Don't include <netinet/udp.h>.
4672
2be99286
SC
46732002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4674
4675 * MAINTAINERS: Update my email address.
4676
c9af212b 46772002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4678
4679 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4680 include file of the same name.
4681
bf5f1a52
CV
46822002-05-16 Corinna Vinschen <vinschen@redhat.com>
4683
4684 * configure.tgt: Mark v850 as multi-arched.
4685 * config/v850/tm-v850.h: Remove file.
4686 * config/v850/v850.mt: Eliminate TM_FILE.
4687
435e042a
CV
46882002-05-16 Corinna Vinschen <vinschen@redhat.com>
4689
4690 * v850-tdep.c: Full multi-arch.
4691 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4692 Define GDB_MULTI_ARCH to 2.
4693
9819c6c8
PM
46942002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4695
4696 * p-exp.y (current_type): New static variable.
4697 Carries the type of the expression at the position that is parsed.
4698 (push_current_type, pop_current_type): Two new functions. Used
4699 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4700 (search_field): New static variable. Set to one after parsing a point
4701 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4702 (FIELDNAME): New token. After a point only a token belonging to
4703 current_type type definition is allowed.
4704 (all over token rules): reset and change current_type according
4705 to rules.
4706 (exp '[' rule): insert implicit array index field if
4707 exp is a pascal string type.
4708
3a06899a
CV
47092002-05-16 Corinna Vinschen <vinschen@redhat.com>
4710
4711 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4712 frame info. Use frame_info's saved_regs instead of matching member
4713 in extra_frame_info throughout.
4714 (v850_frame_init_saved_regs): New function.
4715 (v850_init_extra_frame_info): Move most functionality into
4716 v850_frame_init_saved_regs().
4717 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4718 (v850_frame_find_saved_regs): Remove declaration.
4719 (FRAME_FIND_SAVED_REGS): Remove definition.
4720 (v850_frame_init_saved_regs): Add declaration.
4721 (FRAME_INIT_SAVED_REGS): Add definition.
4722
6ed14b0e
CV
47232002-05-16 Corinna Vinschen <vinschen@redhat.com>
4724
4725 * v850-tdep.c: Begin multi-arch'ing v850.
4726 (v850_target_architecture_hook): Remove function.
4727 (v850_gdbarch_init): New function. Add code previously in
4728 v850_target_architecture_hook().
4729 (_initialize_v850_tdep): Don't set target_architecture_hook.
4730 Call register_gdbarch_init() instead.
4731
42725910
DJ
47322002-05-16 Daniel Jacobowitz <drow@mvista.com>
4733
4734 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4735 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4736 (fixup_class_method_type): Likewise.
4737
0bc68c49
DJ
47382002-05-15 Daniel Jacobowitz <drow@mvista.com>
4739
4740 From Martin Pool <mbp@samba.org>:
4741 * gdbserver/server.c (gdbserver_usage): New function.
4742 (main): Call it.
4743
99d9066e
JB
47442002-05-15 Jim Blandy <jimb@redhat.com>
4745
4746 Add macro structures to GDB's symbol tables. Nobody puts anything
4747 in them yet.
4748 * symtab.h (struct symtab): New member: `macro_table'.
4749 * buildsym.h (pending_macros): New global variable.
4750 * buildsym.c: #include "macrotab.h".
4751 (buildsym_init): Initialize `pending_macros'.
4752 (end_symtab): If we found macro information while reading a CU's
4753 debugging info, do build a symtab structure for it. Make the
4754 symtab point to the macro information, and clear the
4755 `pending_macros' pointer which held it while we were reading the
4756 debug info.
4757 (really_free_pendings): Free any pending macro table.
4758 * objfiles.h (struct objfile): New member: `macro_cache'.
4759 * objfiles.c (allocate_objfile): Set allocate and free functions
4760 for the macro cache's objstack.
4761 (free_objfile): Empty the macro cache's obstack.
4762 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4763 set new allocate and free functions for it.
4764 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4765 free functions for the macro cache's objstack. (Why is this
4766 function building its own objfile?)
4767 * symmisc.c (print_objfile_statistics): Print statistics on the
4768 macro bcache.
4769 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4770
c899585b
RE
47712002-05-15 Richard Earnshaw <rearnsha@arm.com>
4772
4773 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4774 (REGISTER_U_ADDR): Delete definition.
4775 (arm_register_u_addr): Delete declaration.
4776
a6cdd8c5
RE
47772002-05-15 Richard Earnshaw <rearnsha@arm.com>
4778
4779 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4780 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4781
fd3a5ca1
DJ
47822002-05-14 Daniel Jacobowitz <drow@mvista.com>
4783
4784 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4785 stop_at -> stop_pc.
4786
c97dcfc7
AC
47872002-05-14 Andrew Cagney <ac131313@redhat.com>
4788
4789 * regcache.c (register_valid): Revise comments refering to "Not
4790 available" and "unavailable".
4791 * frame.c (frame_register_read): Ditto.
4792 * findvar.c (value_of_register): Ditto.
4793
93021b7d
AC
47942002-05-15 Andrew Cagney <cagney@redhat.com>
4795
4796 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4797 (remote-sim.o): Update dependencies.
4798 (d10v-tdep.o): Specify dependencies.
4799 (sim_d10v_h): Define.
4800
a86bc61c
JB
48012002-05-14 Jim Blandy <jimb@redhat.com>
4802
4803 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4804 * macrotab.c (macro_lookup_inclusion, find_definition,
4805 new_macro_table): Same.
4806
4807 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4808 not `! strcmp ()'. This is a dubious improvement.
4809 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4810
4811 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4812 although it's not necessary, to avoid a warning.
4813
2fdde8f8
DJ
48142002-05-14 Daniel Jacobowitz <drow@mvista.com>
4815
4816 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4817 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4818 TYPE_INSTANCE_FLAGS.
4819 (struct main_type): New.
4820 (struct type): Move most members to struct main_type. Change
4821 cv_type and as_type to new type_chain member. Add instance_flags.
4822 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4823 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4824 (finish_cv_type): Remove prototype.
4825 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4826 Set TYPE_CHAIN.
4827 (alloc_type_instance): New function.
4828 (smash_type): New function.
4829 (make_pointer_type, make_reference_type, make_function_type)
4830 (smash_to_member_type, smash_to_method_type): Call smash_type.
4831 (make_qualified_type): New function.
4832 (make_type_with_address_space): Call make_qualified_type.
4833 (make_cv_type): Likewise.
4834 (finish_cv_type): Remove unnecessary function.
4835 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4836 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4837 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4838 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4839 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4840 * hpread.c (hpread_read_struct_type): Likewise.
4841 * stabsread.c (read_struct_type): Likewise.
4842
843fedf4
EZ
48432002-05-14 Elena Zannoni <ezannoni@redhat.com>
4844
4845 * configure.tgt: Add a catch all sh* target, for cases like
4846 sh[2,3,4]-elf and sh-hms.
4847
05a6c72c
KS
48482002-05-14 Keith Seitz <keiths@redhat.com>
4849
4850 * event-loop.c (create_file_handler): Don't do anything but
4851 update data when we are given a fd which we are already
4852 monitoring.
4853
5d085aaf
ML
48542002-05-14 Michal Ludvig <mludvig@suse.cz>
4855
4856 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4857 (update_context): Use __func__ in warnings.
4858
9db8d71f
DJ
48592002-05-14 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4862 and tcp_close to net_open and net_close.
4863 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4864 using UDP if requested. Don't try to disable Nagle on UDP
4865 sockets.
4866 * remote.c (remote_serial_open): New function. Warn about UDP.
4867 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4868
5dbc6baa
EZ
48692002-05-13 Elena Zannoni <ezannoni@redhat.com>
4870
4871 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4872
cc3023f7
EZ
48732002-05-13 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * configure.tgt: Remove sh-hms target.
4876 * MAINTAINERS: Don't list sh-hms as a separate target.
4877
ec2bcbe7
JB
48782002-05-13 Jim Blandy <jimb@redhat.com>
4879
4880 Add first preprocessor macro-expansion files.
4881 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4882 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4883 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4884 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4885 (COMMON_OBS): Add macrotab.o, macroexp.o.
4886 (macroexp.o, macrotab.o): New rules.
4887
6d531722
AC
48882002-05-13 Andrew Cagney <ac131313@redhat.com>
4889
4890 * config/m88k/tm-m88k.h: Update copyright.
4891 (m88k_target_write_pc): Declare
4892 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4893 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4894 (SHIFT_INST_REGS): Update definition.
4895 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4896 using old definition of TARGET_WRITE_PC.
4897 * regcache.c (generic_target_write_pc): Delete code handling
4898 NNPC_REGNUM.
4899 * gdbarch.sh (NNPC_REGNUM): Delete.
4900 * gdbarch.h, gdbarch.c: Regenerate.
4901
3e3f2739
RE
49022002-05-13 Richard Earnshaw <rearnsha@arm.com>
4903
4904 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4905 builtin reg number.
4906
0004e5a2
DJ
49072002-05-13 Daniel Jacobowitz <drow@mvista.com>
4908
4909 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4910 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4911 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4912 access macros.
4913 * c-typeprint.c (cp_type_print_method_args): Likewise.
4914 (c_type_print_args): Likewise.
4915 * d10v-tdep.c (d10v_push_arguments): Likewise.
4916 (d10v_extract_return_value): Likewise.
4917 * expprint.c (print_subexp): Likewise.
4918 * gdbtypes.c (lookup_primitive_typename): Likewise.
4919 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4920 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4921 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4922 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4923 (TYPE_VECTOR): Likewise.
4924 * hpread.c (hpread_read_struct_type)
4925 (fix_static_member_physnames, fixup_class_method_type)
4926 (hpread_type_lookup): Likewise.
4927 * mdebugread.c (parse_symbol, parse_type): Likewise.
4928 * p-lang.c (is_pascal_string_type): Likewise.
4929 * valops.c (hand_function_call): Likewise.
4930 * x86-64-tdep.c (classify_argument): Likewise.
4931
4932 * hpread.c (hpread_read_function_type)
4933 (hpread_read_doc_function_type): Call replace_type.
4934 * dstread.c (create_new_type): Delete.
4935 (decode_dst_structure, process_dst_function): Call alloc_type.
4936 Use type access macros.
4937
dff95cc7
MK
49382002-05-12 Mark Kettenis <kettenis@gnu.org>
4939
4940 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4941 the're not supported by the current architecture.
4942 (i387_fill_fxsave): Likewise.
4943
bbcd32ad
FF
49442002-05-12 Fred Fish <fnf@redhat.com>
4945
4946 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4947 sect_index_xxx members to index the first slot in section_offsets
4948 if all of the section_offsets are zero.
4949
89cf4787
MK
49502002-05-12 Mark Kettenis <kettenis@gnu.org>
4951
4952 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4953 checked in with last change.
4954
1f77ffc5
MK
49552002-05-12 Mark Kettenis <kettenis@gnu.org>
4956
4957 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4958 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4959 config.sub.
4960
89b8b4a9
DJ
49612002-05-12 Daniel Jacobowitz <drow@mvista.com>
4962
4963 * Makefile.in: Update dependencies.
4964
14a5e767
AC
49652002-05-11 Andrew Cagney <ac131313@redhat.com>
4966
4967 * language.c (local_hex_string_custom): Simplify. Do not depend
4968 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4969
4970 * memattr.c (mem_info_command): Replace calls to
4971 longest_local_hex_string and longest_local_hex_string_custom.
4972 * buildsym.c (make_blockvector): Ditto.
4973 * solib.c (info_sharedlibrary_command): Ditto.
4974 * tracepoint.c (tracepoints_info): Ditto.
4975 * symtab.c (print_msymbol_info): Ditto.
4976
4977 * language.c (local_hex_string): Delete.
4978 (local_hex_string_custom): Delete.
4979 (longest_local_hex_string): Rename to local_hex_string.
4980 (longest_local_hex_string_custom): Rename to
4981 local_hex_string_custom.
4982 * language.h (local_hex_string): Change parameter type to LONGEST.
4983 (local_hex_string_custom): Ditto.
4984 (longest_local_hex_string): Delete declaration.
4985 (longest_local_hex_string_custom): Ditto.
4986
4987 * solib.c: Update copyright.
4988 * memattr.c: Update copyright.
4989
13d01224
AC
49902002-05-11 Andrew Cagney <ac131313@redhat.com>
4991
4992 * arch-utils.h (legacy_register_to_value): Declare.
4993 (legacy_value_to_register): Declare.
4994 (legacy_convert_register_p): Declare.
4995 * arch-utils.c (legacy_register_to_value): New function.
4996 (legacy_value_to_register): New function.
4997 (legacy_convert_register_p): New function.
4998
4999 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5000 (VALUE_TO_REGISTER): Define.
5001 (CONVERT_REGISTER_P): Define.
5002 * gdbarch.h, gdbarch.c: Regenerate.
5003
5004 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5005 VALUE_TO_REGISTER.
5006 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5007 CONVERT_REGISTER_P.
5008
4a1970e4
DJ
50092005-05-11 Daniel Jacobowitz <drow@mvista.com>
5010 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5011
5012 * Makefile.in: Update dependencies for valops.c.
5013 * valops.c: Include "gdb_assert.h".
5014 (typecmp): Skip THIS parameter to methods.
5015 (find_method_list): Remove static_memfuncp argument,
5016 update callers. Check for stub methods.
5017 (find_value_oload_method_list): Don't set *static_memfuncp.
5018 (find_overload_match): Don't check for stub methods. Assert
5019 that methods are not stubbed. Handle static methods.
5020 (value_find_oload_method_list): Remove static_memfuncp argument.
5021 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5022 to the argument list for static stub methods.
5023 * value.h (value_find_oload_method_list): Update prototype.
5024
b2e75d78
AC
50252002-05-11 Andrew Cagney <ac131313@redhat.com>
5026
5027 * arch-utils.h (generic_register_size): Declare.
5028 (generic_register_raw_size, generic_register_virtual_size): Delete
5029 declarations.
5030 * arch-utils.c (generic_register_raw_size): Delete.
5031 (generic_register_size): New function.
5032 (generic_register_virtual_size): Delete.
5033
5034 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5035 default generic_register_size.
5036 * gdbarch.h, gdbarch.c: Re-generate.
5037
5038 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5039 register_virtual_size.
5040 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5041 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5042
451fbdda
AC
50432002-05-11 Andrew Cagney <ac131313@redhat.com>
5044
5045 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5046 * gdbarch.h, gdbarch.c: Regenerate.
5047 * gnu-v3-abi.c: Update copyright.
5048 (vtable_address_point_offset): Update.
5049 (gnuv3_rtti_type): Update.
5050 (gnuv3_baseclass_offset): Update.
5051 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5052 (init_fetch_link_map_offsets): Update.
5053 * remote.c (get_remote_state): Update.
5054
6d2f5cea
DJ
50552002-05-11 Daniel Jacobowitz <drow@mvista.com>
5056
5057 * TODO: Remove value_headof/value_from_vtable_info comment.
5058 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5059 * values.c (value_headof, value_from_vtable_info): Delete.
5060 * value.h (value_from_vtable_info): Delete prototype.
5061
d2324da4
AC
50622002-05-11 Andrew Cagney <ac131313@redhat.com>
5063
5064 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5065 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5066 $(gdb_regex_h).
5067 (gdb_assert_h): Define.
5068 (gdb_wait_h): Define.
5069 (gdb_regex_h): Define.
5070
5c717440
DJ
50712002-05-11 Daniel Jacobowitz <drow@mvista.com>
5072
5073 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5074 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5075
6c7861b3
JT
50762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5077
5078 * nbsd-tdep.c: Fix comment.
5079
ea5bc2a6
JT
50802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5081
5082 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5083 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5084 (nbsd-tdep.o): New dependency list.
5085 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5086 nbsd-tdep.h.
5087 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5088 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5089 * nbsd-tdep.c: New file.
5090 * nbsd-tdep.h: New file.
5091 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5092 nbsd-tdep.h.
5093 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5094 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5095 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5096 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5097
b28da865
JT
50982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5099
5100 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5101 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5102 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5103 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5104 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5105 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5106
4b8ff1fa
JT
51072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5108
5109 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5110 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5111 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5112 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5113 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5114 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5115 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5116
dfe6eb1f
JT
51172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5118
5119 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5120 fetch_elfcore_registers to...
5121 * i386nbsd-tdep.c: ...here.
5122 (i386nbsd_use_struct_convention): Rename to...
5123 (i386nbsd_aout_use_struct_convention): ...this.
5124 (i386nbsd_supply_reg): New function.
5125 (i386nbsd_fill_reg): New function.
5126 (fetch_core_registers): Use i386nbsd_supply_reg.
5127 (fetch_elfcore_registers): Likewise.
5128 (_initialize_i386nbsd_tdep): New function.
5129 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5130 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5131 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5132 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5133 (i386nbsd_aout_use_struct_convention): ...this.
5134
20cb8cda
JT
51352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5136
5137 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5138 (store_inferior_registers): Use shnbsd_fill_reg.
5139 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5140 sh_nbsd_supply_register): Collapse into...
5141 (shnbsd_supply_reg): ...this.
5142 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5143 (shnbsd_fill_reg): ...this.
5144 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5145 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5146 (fetch_core_registers): Use shnbsd_supply_reg.
5147 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5148 (sh_nbsd_core_fns): Rename to...
5149 (shnbsd_core_fns): ...this.
5150 (sh_nbsd_elfcore_fns): Rename to...
5151 (shnbsd_elfcore_fns): ...this.
5152 (sh_nbsd_init_abi): Rename to...
5153 (shnbsd_init_abi): ...this.
5154 (_initialize_sh_nbsd_tdep): Rename to...
5155 (_initialize_shnbsd_tdep): ...this.
5156 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5157 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5158 sh_nbsd_fill_register): Remove prototypes.
5159 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5160
e750d25e
JT
51612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5162
5163 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5164 (i387-nat.o): Delete dependency list.
5165 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5166 (x86-64-linux-nat.o): Likewise.
5167 * i387-nat.c: Delete file, moving contents to...
5168 * i387-tdep.c: ...here.
5169 * i387-nat.h: Rename...
5170 * i387-tdep.h: ...to this.
5171 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5172 * i386-linux-nat.c: Likewise.
5173 * i386bsd-nat.c: Likewise.
5174 * i386gnu-nat.c: Likewise.
5175 * i386nbsd-nat.c: Likewise.
5176 * i386v4-nat.c: Likewise.
5177 * x86-64-linux-nat.c: Likewise.
5178 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5179 * config/i386/go32.mh (NATDEPFILES): Likewise.
5180 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5181 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5182 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5183 * config/i386/linux.mh (NATDEPFILES): Likewise.
5184 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5185 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5186 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5187 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5188
1aee598a
JT
51892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5190
5191 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5192 (alphanbsd-nat.o): Remove dependency list.
5193 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5194 * alphanbsd-nat.c: Delete. Contents moved to...
5195 * alphanbsd-tdep.c: ...here.
5196 (_initialize_alphanbsd_tdep): Register core functions.
5197 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5198
12bcb0fe
JT
51992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5200
5201 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5202 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5203 (alphanbsd-nat.o): Likewise.
5204 (alphabsd-tdep.o): New dependency list.
5205 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5206 (fill_gregset): Use alphabsd_fill_reg.
5207 (supply_fpregset): Use alphabsd_supply_fpreg.
5208 (fill_fpregset): Use alphabsd_fill_fpreg.
5209 (fetch_inferior_registers): Use struct reg and struct fpreg
5210 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5211 and alphabsd_supply_fpreg.
5212 (store_inferior_registers): Use struct reg and struct fpreg
5213 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5214 and alphabsd_fill_fpreg.
5215 * alphabsd-tdep.c: New file.
5216 * alphabsd-tdep.h: New file.
5217 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5218 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5219 alphabsd_supply_fpreg.
5220 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5221 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5222
361d1df0
EC
52232002-05-11 Eric Christopher <echristo@redhat.com>
5224
5225 * mips-tdep.c (mips_double_register_type): Fix thinko.
5226 (mips_single_register_type): Ditto.
5227 * MAINTAINERS: Add self.
5228
92dd7cee
MK
52292002-05-11 Mark Kettenis <kettenis@gnu.org>
5230
5231 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5232 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5233 right thing on architectures with different endianness and/or
5234 integer sizes.
5235
e27da16d
JT
52362002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5237
5238 From Christian Limpach <chris@Pin.LU>
5239 * configure.in: Change sed expression which comments out
5240 NATDEPFILES to also comment out continuation lines.
5241 * configure: Regenerate.
5242
ddde02bd
EZ
52432002-05-10 Elena Zannoni <ezannoni@redhat.com>
5244
5245 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5246 big patch.
5247
1c922164
EZ
52482002-05-10 Elena Zannoni <ezannoni@redhat.com>
5249
5250 * sh-tdep.c: Include correct file.
5251
283150cd
EZ
52522002-05-10 Elena Zannoni <ezannoni@redhat.com>
5253
5254 New support for sh64-elf (sh5) target.
5255
5256 * configure.tgt: For sh64-elf target, default to sh-elf.
5257
5258 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5259 (struct gdbarch_tdep): Add new fields for new registers and ABI
5260 info.
361d1df0 5261
283150cd
EZ
5262 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5263 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5264 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5265 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5266 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5267 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5268 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5269 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5270 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5271 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5272 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5273 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5274 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5275 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5276 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5277 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5278 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5279 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5280 sign_extend, sh64_nofp_frame_init_saved_regs,
5281 sh64_init_extra_frame_info, sh64_get_saved_register,
5282 sh64_extract_struct_value_address, sh64_pop_frame,
5283 sh64_push_arguments, sh64_extract_return_value,
5284 sh64_store_return_value, sh64_show_media_regs,
5285 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5286 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5287 sh_sh64_register_virtual_type,
5288 sh_sh64_register_convert_to_virtual,
5289 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5290 sh64_register_read, sh64_pseudo_register_write,
5291 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5292 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5293 sh64_do_pseudo_register, sh_compact_do_registers_info,
5294 sh64_do_registers_info, sh_gdbarch_init): New functions.
5295
3117ed25
EZ
52962002-05-10 Elena Zannoni <ezannoni@redhat.com>
5297
5298 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5299
2654e6d4
DJ
53002002-05-10 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * linespec.c (decode_line_1): Check for a double quote after
5303 a filename correctly.
5304
9ab3e532
JB
53052002-05-10 Jim Blandy <jimb@redhat.com>
5306
5307 Properly track the size of the current objfile's .debug_line section.
5308 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5309 (DWARF_LINE_SIZE): New macro.
5310 (dwarf2_build_psymtabs_hard): Record the line section's size in
5311 the partial symbol table.
5312 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5313 symbol table.
5314
126fa72d
PS
53152002-05-10 Petr Sorfa <petrs@caldera.com>
5316
5317 * ia64-tdep.c: Handle breakpoints on L instruction type
5318 in MLX instruction bundle by moving the breakpoint to
5319 the third slot (X instruction type) as L holds only data.
5320
1f077a3e
KB
53212002-05-10 Kevin Buettner <kevinb@redhat.com>
5322
5323 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5324 (process_one_symbol): Complain about discarding local symbols
5325 due to a misplaced N_LBRAC entry.
5326
8120c9d5 53272002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5328
5329 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5330 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5331 decrease the depth we are at, in the case of templates.
361d1df0 5332
67b2c998
DJ
53332002-05-09 Daniel Jacobowitz <drow@mvista.com>
5334
5335 * mips-tdep.c (mips_float_register_type): New function.
5336 (mips_double_register_type): New function.
5337 (mips_print_register): Use them.
5338 (do_fp_register_row): Likewise.
5339
fd326606
DJ
53402002-05-09 Daniel Jacobowitz <drow@mvista.com>
5341
6609d9af 5342 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5343 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5344 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5345
bef35864
MS
53462002-05-09 Michael Snyder <msnyder@redhat.com>
5347
5348 * remote-rdp.c (remote_rdp_can_run): Remove.
5349
c55a3f73
TT
53502002-05-09 Tom Tromey <tromey@redhat.com>
5351
5352 * jv-valprint.c (java_val_print): Handle `char' as a special case
5353 of TYPE_CODE_INT.
5354
b8d5e71d
MS
53552002-05-09 Michael Snyder <msnyder@redhat.com>
5356
5357 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5358 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5359 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5360 str r(0123),[sp,#nn].
361d1df0 5361 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5362 order-independent by placing it in a loop.
5363
e2cd42dd
MS
53642002-05-06 Michael Snyder <msnyder@redhat.com>
5365
5366 * stabsread.c (read_type): Add recognition for new attribute:
5367 "@V;" means that an array type is actually a vector.
5368 This is analogous to the vector flag that's been added to dwarf2.
5369
3ce1502b
MK
53702002-05-09 Mark Kettenis <kettenis@gnu.org>
5371
5372 * i386-tdep.h (i386_abi): New enum.
5373 (struct gdbarch_tdep): Replace os_ident member with abi.
5374 (i386_gdbarch_register_os_abi): New prototype.
5375 * i386-tdep.c (i386_abi_names): New array.
5376 (process_note_abi_tag_sections): Removed.
5377 (process_note_sections): New function.
5378 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5379 (struct i386_abi_handler): New struct.
5380 (i386_abi_handler_list): New variable.
5381 (i386_gdbarch_register_os_abi): New function.
5382 (i386_gdbarch_init): Adapt for the changes given above.
5383
084c156a
DJ
53842002-05-08 Daniel Jacobowitz <drow@mvista.com>
5385
5386 * gregset.h: Say "GNU/Linux".
5387
6599f021
EZ
53882002-05-08 Elena Zannoni <ezannoni@redhat.com>
5389
5390 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5391 (build_gdbtypes): Build builtin_type_v2_float.
5392 (_initialize_gdbtypes): Register new builtin type.
5393
40af4b0c
AC
53942002-05-08 Andrew Cagney <ac131313@redhat.com>
5395
5396 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5397 (clear_gdbarch_swap): New function.
5398 (initialize_non_multiarch): Call.
5399 (gdbarch_update_p): Before calling init(), swap out and clear the
5400 existing architecture.
5401 * gdbarch.c: Regenerate.
5402
4fe84f46
JT
54032002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5404
5405 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5406 alphanbsd-tdep.c.
5407
4015edd1
JT
54082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5409
5410 * sh-nbsd-nat.c: Rename to...
5411 * shnbsd-nat.c: ...this.
5412 * sh-nbsd-tdep.c: Rename to...
5413 * shnbsd-tdep.c: ...this.
5414 * sh-nbsd-tdep.h: Rename to...
5415 * shnbsd-tdep.h: ...this.
5416 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5417 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5418
0e2bd219
RE
54192002-05-08 Richard Earnshaw <rearnsha@arm.com>
5420
5421 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5422 concatenation for command help messages.
5423
13a38d45
JT
54242002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5425
5426 * NEWS: Note new sh*-*-netbsdelf* configuration.
5427 * configure.host: Set gdb_host_cpu to sh for all sh*.
5428 (sh*-*-netbsdelf*): New host.
5429 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5430 (sh*-*-netbsdelf*): New target.
5431 * sh-nbsd-nat.c: New file.
5432 * sh-nbsd-tdep.c: New file.
5433 * sh-nbsd-tdep.h: New file.
5434 * config/sh/nbsd.mh: New file.
5435 * config/sh/nbsd.mt: New file.
5436 * config/sh/nm-nbsd.h: New file.
5437 * config/sh/tm-nbsd.h: New file.
5438
d658f924
JT
54392002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5440
5441 * sh-tdep.c (sh_osabi_names): Declare.
5442 (process_note_abi_tag_sections): New function.
5443 (get_elfosabi): Ditto.
5444 (sh_gdbarch_register_os_abi): Ditto.
5445 (sh_dump_tdep): Ditto.
5446 _initialize_sh_tdep): Use gdbarch_register to register
5447 sh_gdbarch_init and sh_dump_tdep.
5448 * config/sh/tm-sh.h (sh_osabi): Declare.
5449 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5450
848cfffb
AC
54512002-05-07 Andrew Cagney <ac131313@redhat.com>
5452
5453 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5454 (thumb_scan_prologue): Ditto.
5455 (arm_find_callers_reg): Ditto.
5456 (arm_frame_chain): Ditto.
5457 (arm_init_extra_frame_info): Ditto.
5458 (arm_frame_saved_pc): Ditto.
5459 (arm_pop_frame): Ditto.
5460 (arm_push_return_address): New function.
5461 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5462 call_dummy_location, call_dummy_breakpoint_offset_p,
5463 call_dummy_breakpoint_offset, call_dummy_p,
5464 call_dummy_stack_adjust_p, call_dummy_words,
5465 sizeof_call_dummy_words, call_dummy_start_offset,
5466 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5467 call_dummy_address, push_return_address and push_dummy_frame for
5468 generic dummy frames.
5469
e7d717c0
JT
54702002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5471
5472 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5473 size computation for alloca.
5474 (sh_fp_frame_init_saved_regs): Likewise.
5475
7bbcf283
RE
54762002-05-07 Richard Earnshaw <rearnsha@arm.com>
5477
5478 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5479 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5480 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5481 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5482 * remote-rdp.c (remote_rdp_fetch_register): Use
5483 ARM_MAX_REGISTER_RAW_SIZE.
5484 (remote_rdp_store_register): Likewise.
5485
4657573b
ML
54862002-05-07 Michal Ludvig <mludvig@suse.cz>
5487
361d1df0 5488 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5489 added default labels to switch {} statements.
5490 * x86-64-tdep.c: Ditto.
5491 * x86-64-linux-nat.c: Ditto.
5492
010f3b2f
JT
54932002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5494
5495 * solib.h: Protect against multiple inclusion.
5496
debd256d
JB
54972002-05-06 Jim Blandy <jimb@redhat.com>
5498
9ab3e532
JB
5499 Add first preprocessor macro-expansion files.
5500 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5501 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5502 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5503 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5504 (COMMON_OBS): Add macrotab.o, macroexp.o.
5505 (macroexp.o, macrotab.o): New rules.
5506
debd256d
JB
5507 Separate the job of reading the line number info statement program
5508 header (...expialidocious) out into its own function.
5509 * dwarf2read.c (struct line_head, struct filenames, struct
5510 directories): Replace with...
5511 (struct line_header): New structure, containing the full
5512 contents of the statement program header, including the
5513 include directory and file name tables.
5514 (read_file_scope): If we have line number info, instead of just
5515 calling dwarf_decode_lines to do all the work, call
5516 dwarf_decode_line_header first to get a `struct line_header'
5517 containing the data in the statement program header, and then
5518 pass that to dwarf_decode_lines, which will pick up where that
5519 left off. Be sure to clean up the `struct line_header' object.
5520 (dwarf_decode_line_header, free_line_header, add_include_dir,
5521 add_file_name): New functions.
5522 (dwarf_decode_lines): Move all the code to read the statement
5523 program header into dwarf_decode_line_header. Take the line
5524 header it built as the first argument, instead of the offset to
5525 the compilation unit's line number info. Use the new `struct
5526 line_header' type instead of the old structures. No need to do
5527 cleanups here now, since we don't allocate anything.
5528 (dwarf2_statement_list_fits_in_line_number_section,
5529 dwarf2_line_header_too_long): New complaints.
5530
ac3aafc7
EZ
55312002-05-06 Elena Zannoni <ezannoni@redhat.com>
5532
5533 * gdbtypes.c (init_vector_type): New function.
5534 (build_builtin_type_vec128): Simplify the representation of SIMD
5535 registers.
5536 (build_gdbtypes): Initialize new builtin vector types.
5537 (_initialize_gdbtypes): Register new vector types with gdbarch.
5538 (builtin_type_v4_float, builtin_type_v4_int32,
5539 builtin_type_v8_int16, builtin_type_v16_int8,
5540 builtin_type_v2_int32, builtin_type_v4_int16,
5541 builtin_type_v8_int8): New (renamed) SIMD types.
5542
13e49980
MK
55432002-05-06 Mark Kettenis <kettenis@gnu.org>
5544
5545 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5546 (i387_fill_fxsave): Likewise.
5547
997b20b8
AO
55482002-05-05 Alexandre Oliva <aoliva@redhat.com>
5549
5550 * alpha-tdep.c (alpha_extract_return_value): Don't use
5551 non-constant array size in prototype.
5552
535c96ce
AC
55532002-05-04 Andrew Cagney <ac131313@redhat.com>
5554
5555 From Brian Taylor <briant at model dot com>:
5556 * ui-out.c (ui_out_field_core_addr): Use the function
5557 longest_local_hex_string_custom'to format addresses > 32 bits
5558 wide.
5559
5560 * ui-out.c (ui_out_field_core_addr): Update comment.
5561
bedfa57b
AC
55622002-05-04 Andrew Cagney <ac131313@redhat.com>
5563
5564 * stack.c (select_and_print_frame): Make static. Delete the
5565 parameter `level'.
5566 (func_command): Update call.
5567 (select_frame_command): Delete code computing the frame level.
5568 * frame.h (select_and_print_frame): Delete declaration.
5569
f621c63e
AC
55702002-05-04 Andrew Cagney <ac131313@redhat.com>
5571
5572 * sparc-tdep.c (sparc_get_saved_register): Comment why
5573 get_prev_frame call is safe.
5574
0f7d239c
AC
55752002-05-04 Andrew Cagney <ac131313@redhat.com>
5576
5577 * frame.h (select_frame): Delete level parameter.
5578 * stack.c (select_frame): Update. Use frame_relative_level to
5579 obtain the frame's level.
5580 (select_and_print_frame): Update call.
5581 (select_frame_command): Ditto.
5582 (up_silently_base): Ditto.
5583 (down_silently_base): Ditto.
5584 * ocd.c (ocd_start_remote): Ditto.
5585 * remote-rdp.c (remote_rdp_open): Ditto.
5586 * remote-mips.c (mips_initialize): Ditto.
5587 (common_open): Ditto.
5588 * remote-e7000.c (e7000_start_remote): Ditto.
5589 * m3-nat.c (select_thread): Ditto.
5590 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5591 (child_get_current_exception_event): Ditto.
5592 * varobj.c (varobj_create): Ditto.
5593 (varobj_update): Ditto.
5594 (c_value_of_root): Ditto.
5595 * tracepoint.c (finish_tfind_command): Ditto.
5596 * corelow.c (core_open): Ditto.
5597 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5598 * thread.c (info_threads_command): Ditto.
5599 (switch_to_thread): Ditto.
5600 * infrun.c (normal_stop): Ditto.
5601 (restore_selected_frame): Ditto.
5602 (restore_inferior_status): Ditto.
5603 * breakpoint.c (insert_breakpoints): Ditto.
5604 (watchpoint_check): Ditto.
5605 (bpstat_stop_status): Ditto.
5606 (do_enable_breakpoint): Ditto.
5607 * blockframe.c (flush_cached_frames): Ditto.
5608 (reinit_frame_cache): Ditto.
5609
71d6c7b1
AC
56102002-05-04 Andrew Cagney <ac131313@redhat.com>
5611
5612 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5613 maintainer.
5614
cda6c68a
JB
56152002-05-04 Jim Blandy <jimb@redhat.com>
5616
5617 * gdbtypes.c (replace_type): Doc fix.
5618
5c1c87f0
AC
56192002-05-04 Andrew Cagney <ac131313@redhat.com>
5620
5621 * valprint.c (strcat_longest): Delete commented out function.
5622 Update copyright.
5623
cd9bfe15
AC
56242002-05-04 Andrew Cagney <ac131313@redhat.com>
5625
5626 * MAINTAINERS: Mark a29k as deleted.
5627 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5628 Move new configurations to the top.
5629 * configure.tgt: Remove a29k.
5630 * config/a29k/tm-vx29k.h: Delete.
5631 * config/a29k/vx29k.mt: Delete.
5632 * config/a29k/tm-a29k.h: Delete.
5633 * config/a29k/a29k-udi.mt: Delete.
5634 * config/a29k/a29k.mt: Delete.
5635 * a29k-tdep.c: Delete.
5636 * remote-udi.c: Delete.
5637 * remote-mm.c: Delete.
5638 * remote-eb.c: Delete.
5639 * remote-adapt.c: Delete.
5640 * Makefile.in: Remove obsolete code.
5641 * gdbserver/Makefile.in: Ditto.
5642 * config/s390/s390x.mt: Ditto.
5643 * config/s390/s390.mt: Ditto.
5644 * config/sparc/sparclynx.mh: Ditto.
5645 * config/sparc/linux.mh: Ditto.
5646 * config/pa/hppaosf.mh: Ditto.
5647 * config/pa/hppabsd.mh: Ditto.
5648 * config/ns32k/nbsd.mt: Ditto.
5649 * config/mips/vr5000.mt: Ditto.
5650 * config/m68k/sun3os4.mh: Ditto.
5651 * config/m68k/nbsd.mt: Ditto.
5652 * config/m68k/m68klynx.mh: Ditto.
5653 * config/m32r/m32r.mt: Ditto.
5654 * config/i386/x86-64linux.mt: Ditto.
5655 * config/i386/nbsdelf.mt: Ditto.
5656 * config/i386/nbsd.mt: Ditto.
5657 * config/i386/i386lynx.mh: Ditto.
5658
bf0c5130
AC
56592002-05-04 Andrew Cagney <ac131313@redhat.com>
5660
5661 * target.c (debug_print_register): New function. Handle oversize
5662 registers.
5663 (debug_to_fetch_registers): Call.
5664 (debug_to_store_registers): Call.
5665
2ae1c2d2
JB
56662002-05-03 Jim Blandy <jimb@redhat.com>
5667
13a393b0
JB
5668 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5669 (read_type): Doc fix.
5670 * gdbtypes.c (replace_type): Doc fix.
5671
2ae1c2d2
JB
5672 * stabsread.c (multiply_defined_struct): New complaint.
5673 (read_struct_type): If the type we were passed isn't empty, or
5674 incomplete, don't read the new struct type into it; complain,
5675 and return the original type unchanged. Take a new `type_code'
5676 argument, which is the type code for the new type.
5677 (read_type): Rather than storing the type's type code here, pass
5678 it as an argument to read_struct_type, and let that take care of
5679 storing it. That way, we don't overwrite the original type code,
5680 so read_struct_type can use it to decide whether we're overwriting
5681 something we shouldn't.
5682 (complain_about_struct_wipeout): New function.
5683
8de9bdc4
AC
56842002-05-03 Andrew Cagney <ac131313@redhat.com>
5685
5686 * gdbarch.sh: Assert that gdbarch is non-NULL.
5687 * gdbarch.c: Regenerate.
5688
f773fdbb
JM
56892002-05-03 Jason Merrill <jason@redhat.com>
5690
5691 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5692 and return NULL.
5693
0e04a514
ML
56942002-05-03 Michal Ludvig <mludvig@suse.cz>
5695
5696 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5697 (x86_64_dwarf2gdb_regno_map_length),
5698 (x86_64_dwarf2_reg_to_regnum): Added.
5699 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5700 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5701 (_initialize_x86_64_tdep): Synced with the change above.
5702 (x86_64_skip_prologue): Reformulated message.
5703
065432a8
PM
57042002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5705
5706 * f-exp.y: Also use new prev_lexptr variable
5707 to improve error reporting. Based on Michael Snyder
5708 2002-04-24 dated patch to c-exp.y.
5709 * jv-exp.y: Likewise.
5710 * m2-exp.y: Likewise.
5711
a3162708
EZ
57122002-05-02 Elena Zannoni <ezannoni@redhat.com>
5713
5714 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5715 we are dealing with vectors.
5716
03620c38
PM
57172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5718
5719 * config/m68k/tm-nbsd.h: Obvious fix,
5720 correct machine name.
5721
6604db2e
PM
57222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5723
5724 * p-typeprint.c (pascal_type_print_base): Add support
5725 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5726
0906b739
PM
57272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5728
5729 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5730 for fondamental pascal 'char' type.
5731
e2625b33
PM
57322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5733
5734 * p-lang.h (is_pascal_string_type): Declaration changed,
5735 new sixth argument of type char ** added.
361d1df0 5736 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5737 changed. Args length_pos, length_size, string_pos, char_size
5738 can now be NULL. New argument arrayname set to the field
5739 name of the char array. Return value set to char array
5740 field index plus one.
361d1df0 5741 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5742 is_pascal_string_type function.
5743
cf17c188
AC
57442002-05-02 Andrew Cagney <cagney@redhat.com>
5745
5746 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5747 <cagney@redhat.com> change.
5748 * gdbarch.c: Regenerate.
5749
52bca491
AC
57502002-05-02 Andrew Cagney <cagney@redhat.com>
5751
5752 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5753 before probing for a new one. Detect errorenous gdbarch_init
5754 functions.
5755 * gdbarch.c: Regenerate.
5756
d5e72505
AC
57572002-05-01 Andrew Cagney <cagney@redhat.com>
5758
5759 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5760 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5761 * config/v850/tm-v850.h: Ditto. Update copyright.
5762
af566d9f
AC
57632002-04-30 Andrew Cagney <ac131313@redhat.com>
5764
5765 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5766 current_gdbarch.
5767
880d85fa
MS
57682002-04-30 Michael Snyder <msnyder@redhat.com>
5769
94c30b78
MS
5770 * arm-tdep.c: Whitespace clean-ups.
5771 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5772 should have been removed as part of 4/24 change.
5773
6f5987a6
KB
57742002-04-30 Kevin Buettner <kevinb@redhat.com>
5775
5776 * rs6000-tdep.c: Added comment describing how fpscr register
5777 numbers were chosen.
5778
1a113c93
MS
57792002-04-30 Michael Snyder <msnyder@redhat.com>
5780
5781 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5782
9a6f53fe
EZ
57832002-04-29 Elena Zannoni <ezannoni@redhat.com>
5784
5785 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5786 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5787 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5788
11ed25ac
KB
57892002-04-29 Kevin Buettner <kevinb@redhat.com>
5790
5791 From Louis Hamilton <hamilton@redhat.com>:
5792 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5793 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5794 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5795 not bfd-private xcoff data, to determine wordsize.
5796 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5797
ae232405
AC
57982002-04-29 Andrew Cagney <ac131313@redhat.com>
5799
5800 GDB 5.2 released from 5.2 branch.
5801
91fd20f7
ML
58022002-04-29 Michal Ludvig <mludvig@suse.cz>
5803
5804 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5805 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5806 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5807
2dc5091b
EZ
58082002-04-29 Elena Zannoni <ezannoni@redhat.com>
5809
5810 * rs6000-tdep.c (rs6000_extract_return_value,
5811 rs6000_store_return_value): Handle returning vectors.
5812 (rs6000_gdbarch_init): Use
5813 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5814 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5815 New function.
5816 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5817 vectors.
5818 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5819 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5820
2b9848d8
PM
58212002-04-24 Pierre Muller <ics.u-strasbg.fr>
5822
5823 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5824 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5825 with fprintf_unfiltered (gdb_stderr,...).
5826
f8d17dc5
PM
58272002-04-24 Pierre Muller <ics.u-strasbg.fr>
5828
5829 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5830 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5831 Replace fprintf (stderr,...
5832 with fprintf_unfiltered (gdb_stderr,....
5833 * remote-es.c: Likewise.
5834 * remote-os9k.c: Likewise.
5835 * remote-st.c: Likewise.
5836
2f2f1ad1
AS
58372002-04-28 Andreas Schwab <schwab@suse.de>
5838
5839 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5840 linux-proc.o and gcore.o.
5841
b6779aa2
AC
58422002-04-26 Michal Ludvig <mludvig@suse.cz>
5843
5844 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5845 code without frame pointers.
5846
7e57f5f4
AC
58472002-04-26 Andrew Cagney <ac131313@redhat.com>
5848
5849 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5850 ON_STACK is needed.
5851
2ceb85d0
BE
58522002-04-26 Ben Elliston <bje@redhat.com>
5853
5854 * target.c (do_xfer_memory): Correct reference to the new option
5855 "trust-readonly-sections".
5856
f5f8a009
EZ
58572002-04-26 Elena Zannoni <ezannoni@redhat.com>
5858
5859 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5860 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5861 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5862 vectors.
5863 (read_array_type): Record the fact that this array type is really a
5864 vector (i.e. are passed in by value).
5865
5868c862
JT
58662002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5869 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5870 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5871 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5872 * alpha-linux-tdep.c: Include frame.h.
5873 (alpha_linux_sigcontext_addr): New function.
5874 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5875 alpha_linux_sigcontext_addr.
5876 * alpha-osf1-tdep.c: Include gdbcore.h.
5877 (alpha_osf1_sigcontext_addr): New function.
5878 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5879 alpha_osf1_sigcontext_addr.
5880 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5881 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5882
bfb01f37
AC
58832002-04-26 Andrew Cagney <ac131313@redhat.com>
5884
361d1df0 5885 * stack.c (selected_frame_level):
bfb01f37
AC
5886 (select_frame): Do not set selected_frame_level.
5887 * frame.h (selected_frame_level): Delete declaration.
5888
15813d3f
AC
58892002-04-26 Andrew Cagney <ac131313@redhat.com>
5890
5891 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5892 convert_from_func_ptr-addr when AIX / PowerOpen.
5893
6096c27a
AC
58942002-04-25 Andrew Cagney <ac131313@redhat.com>
5895
5896 * valops.c (hand_function_call): Call
5897 generic_save_call_dummy_addr.
5898 * frame.h (generic_save_call_dummy_addr): Declare.
5899 * blockframe.c (struct dummy_frame): Add fields call_lo and
5900 call_hi.
5901 (generic_find_dummy_frame): Check for PC in range call_lo to
5902 call_hi instead of entry_point_address.
5903 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5904 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5905 (generic_save_call_dummy_addr): New function.
5906
f510d44e
DM
59072002-04-24 David S. Miller <davem@redhat.com>
5908
5909 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5910 sparc_skip_prologue.
5911 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5912 information to find prologue when possible.
5913 (sparc_prologue_frameless_p): Call examine_prologue directly.
5914 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5915 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5916 second argument.
5917 (SKIP_PROLOGUE): Likewise.
5918
15d72a92
JT
59192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5920
5921 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5922 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5923 indicate that the condition it was testing is always true.
5924 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5925 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5926 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5927
accc6d1f
JT
59282002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5929
5930 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5931 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5932 tdep->jb_pc and tdep->jb_elt_size.
5933 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5934 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5935 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5936 * alpha-nat.c (get_longjmp_target): Remove.
5937 (JB_ELEMENT_SIZE): Ditto.
5938 (JB_PC): Ditto.
5939 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5940 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5941 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5942 to alpha_get_longjmp_target.
5943 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5944 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5945 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5946
1bfdc549
AC
59472002-04-25 Andrew Cagney <ac131313@redhat.com>
5948
5949 * README: Update to GDB 5.2.
5950
1bd316f0
AC
59512002-04-25 Andrew Cagney <ac131313@redhat.com>
5952
5953 * gdbarch.sh (LC_ALL): Set to `c'.
5954
2e5ff58c
TR
59552002-04-25 Theodore A. Roth <troth@verinet.com>
5956
5957 * avr-tdep.c: Ran through gdb_indent.sh.
5958
e33ce519
TR
59592002-04-25 Theodore A. Roth <troth@verinet.com>
5960
5961 * MAINTAINERS: Add myself as AVR maintainer.
5962 * NEWS: Note new target avr.
5963
8818c391
TR
59642002-04-25 Theodore A. Roth <troth@verinet.com>
5965
5966 * Makefile.in: Add support for AVR target.
5967 * configure.tgt: Add support for AVR target.
5968 * avr-tdep.c: New file
5969 * config/avr/avr.mt: New file.
5970
79509c2d
TR
59712002-04-25 Theodore A. Roth <troth@verinet.com>
5972
5973 * MAINTAINERS: Add myself to write-after-approval.
5974
dac8068e
PM
59752002-04-24 Pierre Muller <ics.u-strasbg.fr>
5976
5977 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5978 with fprintf_unfiltered (gdb_stderr,....
5979
25bf3106
PM
59802002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5981
5982 Fix PR gdb/508.
5983 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5984
24467a86
PM
59852002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5986
5987 * p-exp.y: Also use new prev_lexptr variable
5988 to improve error reporting. Based on Michael Snyder
5989 2002-04-24 dated patch to c-exp.y.
5990
95b80706
JT
59912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5994 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5995 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5996 to 0.
5997 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5998 and struct value.
5999 (FUNCTION_START_OFFSET): Remove.
6000 (BREAKPOINT): Ditto.
6001
e90cc612
JT
60022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6003
6004 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6005 * NEWS: Ditto.
6006
6c72f9f9
JT
60072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6008
6009 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6010 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6011 alpha_linux_pc_in_sigtramp.
6012 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6013 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6014 alpha_osf1_pc_in_sigtramp.
6015 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6016 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6017 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6018 alphafbsd_pc_in_sigtramp.
6019 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6020 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6021 alphanbsd_pc_in_sigtramp.
6022 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6023 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6024
5e4f3379
JT
60252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6026
6027 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6028
da8ca43d
JT
60292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6032 alphanbsd-tdep.c.
6033 (alphanbsd-nat.o): New dependency list.
6034 (alphanbsd-tdep.o): Ditto.
6035 * NEWS: Note new native NetBSD/alpha configuration.
6036 * alphanbsd-nat.c: New file.
6037 * alphanbsd-tdep.c: Ditto.
6038 * configure.host (alpha*-*-netbsd*): New host.
6039 * configure.tgt (alpha*-*-netbsd*): New target.
6040 * config/alpha/nbsd.mh: New file.
6041 * config/alpha/nbsd.mt: Ditto.
6042 * config/alpha/nm-nbsd.h: Ditto.
6043 * config/alpha/tm-nbsd.h: Ditto.
6044
36a6271d
JT
60452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6046
6047 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6048 (alpha-osf1-tdep.o): New dependency list.
6049 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6050 and skip_sigtramp_frame members.
6051 * alpha-linux-tdep.c: Include gdbcore.h.
6052 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6053 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6054 * alpha-osf1-tdep.c: New file.
6055 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6056 alpha-osf1-dep.c.
6057 (alpha_frame_past_sigtramp_frame): New function.
6058 (alpha_dynamic_sigtramp_offset): Ditto.
6059 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6060 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6061 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6062 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6063 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6064 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6065 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6066 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6067 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6068 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6069 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6070 to find_solib_trampoline_target.
6071 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6072 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6073 (SKIP_TRAMPOLINE_CODE): Remove.
6074 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6075 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6076 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6077 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6078 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6079 (PROC_SIGTRAMP_MAGIC): Ditto.
6080 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6081 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6082 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6083 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6084 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6085
2f4bc57b
JT
60862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6087
6088 * NEWS: Note that Alpha targets are now multi-arch.
6089
665132f9
MS
60902002-04-24 Michael Snyder <msnyder@redhat.com>
6091
6092 * parser-defs.h (prev_lexptr): New external variable.
6093 * parse.c (parse_exp_1): Set prev_lexptr to null before
6094 calling the language-specific parser.
6095 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6096 (yyerror): Use prev_lexptr in error reporting.
6097
32872fa7
DJ
60982002-04-24 Daniel Jacobowitz <drow@mvista.com>
6099
6100 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6101 * gregset.h: If FILL_FPXREGSET is defined, provide
6102 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6103 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6104 is defined, call fill_fpxregset.
6105
57e76fac
MS
61062002-04-24 Roland McGrath <roland@frob.com>
6107
6108 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6109 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6110 (supply_gregset, supply_fpregset): New functions.
6111
6112 * gnu-nat.c (gnu_find_memory_regions): New function.
6113 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6114 (gnu_xfer_memory): Add a cast.
6115
f43845b3
MS
61162002-04-24 Michael Snyder <msnyder@redhat.com>
6117
361d1df0 6118 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6119 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6120 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6121 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6122 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6123 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6124
a0abec03
AC
6125Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6126
6127 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6128 NUM_PSEUDO_REGS can be used.
6129
d7bd68ca
AC
61302002-04-24 Andrew Cagney <ac131313@redhat.com>
6131
6132 * arch-utils.h: Update copyright.
6133
6134 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136
6137 * inferior.h (IN_SIGTRAMP): Delete definition.
6138 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6139 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6140
6141 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6142 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6143 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6144 (find_proc_framesize): Ditto.
6145 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6146 (alpha_init_extra_frame_info): Ditto.
6147 * infrun.c (handle_inferior_event): Ditto.
6148 (handle_inferior_event): Ditto.
6149 (check_sigtramp2): Ditto.
6150 * blockframe.c (create_new_frame): Ditto.
6151 (get_prev_frame): Ditto.
6152 * ppc-linux-tdep.c: Update comments.
6153 * i386-linux-tdep.c: Update comments.
6154 * breakpoint.c (bpstat_what): Update comment.
6155
d06f167a
ML
61562002-04-24 Michal Ludvig <mludvig@suse.cz>
6157
6158 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 6159 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
6160 ptrace() calls.
6161 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6162
4867e41e
DM
61632002-04-24 David S. Miller <davem@redhat.com>
6164
21d83aa5
DM
6165 * i960-tdep.c (register_in_window_p): New function.
6166 (i960_find_saved_register): Use it instead of
6167 REGISTER_IN_WINDOW_P.
6168 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6169
4867e41e
DM
6170 * symtab.h (find_stab_function_addr): Kill extern.
6171 * minsyms.c (find_stab_function_addr): Remove from here...
6172 * dbxread.c: ... to here, and mark it static.
6173
69cdf6a2
DM
61742002-04-20 David S. Miller <davem@redhat.com>
6175
6176 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6177 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6178
5a595886
DM
61792002-04-21 David S. Miller <davem@redhat.com>
6180
6181 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6182 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6183 (vx_write_register): Likewise.
6184
1da1a192
JB
61852002-04-23 J. Brobecker <brobecker@gnat.com>
6186
6187 * source.c (is_regular_file): New function.
6188 (openp): Check wether file to open is a regular file
6189 to avoid opening directories.
6190
baa6f10b
JT
61912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6192
6193 * findvar.c (extract_signed_integer): Cast printf argument
6194 to suppress format warning.
6195 (extract_unsigned_integer): Likewise.
6196 * infcmd.c (registers_info): Likewise.
6197 * top.c (get_prompt_1): Likewise.
6198 * valops.c (value_assign): Likewise.
6199 * valprint.c (print_decimal): Likewise.
6200
b2c4da81
L
62012002-04-22 H.J. Lu (hjl@gnu.org)
6202
6203 * c-exp.y (typebase): Support
361d1df0 6204
b2c4da81
L
6205 [long|long long|short] [signed|unsigned] [int|]
6206
6207 and
6208
6209 signed [long|long long|short] int
6210
f267bd6a
JT
62112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6212
6213 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6214 and vax-tdep.h.
6215 * vax-tdep.h: New file.
6216 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6217 Make several routines static.
6218 (vax_get_saved_register): New function.
6219 (vax_gdbarch_init): New function.
6220 (_initialize_vax_tdep): Register vax_gdbarch_init.
6221 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6222 Remove macros now under the control of gdbarch.
6223
da3c6d4a
MS
62242002-04-22 Michael Snyder <msnyder@redhat.com>
6225
11d3b27d
MS
6226 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6227 Some whitespace and coding standards tweaks.
da3c6d4a 6228
a33f7558
JT
62292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6230
6231 * vax-tdep.c: Include regcache.h.
6232 (vax_call_dummy_words): New.
6233 (sizeof_vax_call_dummy_words): New.
6234 (vax_fix_call_dummy): New function.
6235 (vax_saved_pc_after_call): Ditto.
6236 * config/vax/tm-vax.h: Don't include regcache.h.
6237 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6238 (CALL_DUMMY): Remove.
6239 (CALL_DUMMY_WORDS): Define.
6240 (SIZEOF_CALL_DUMMY_WORDS): Define.
6241 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6242
47a73475
MS
62432002-04-18 Michael Snyder <msnyder@redhat.com>
6244
6245 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6246
52efde73
JT
62472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * vax-tdep.c (vax_frame_chain): New function.
6250 (vax_push_dummy_frame): Ditto.
6251 (vax_pop_frame): Ditto.
6252 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6253 (FRAMELESS_FUNCTION_INVOCATION): Use
6254 generic_frameless_function_invocation_not.
6255 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6256 (POP_FRAME): Use vax_pop_frame.
6257
ea74468c
JT
62582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * vax-tdep.c (vax_store_struct_return): New function.
6261 (vax_extract_return_value): Ditto.
6262 (vax_store_return_value): Ditto.
6263 (vax_extract_struct_value_address): Ditto.
6264 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6265 vax_store_struct_return.
6266 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6267 (STORE_RETURN_VALUE): Use vax_store_return_value.
6268 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6269
5516aa92
JT
62702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6271
6272 * vax-tdep.c (vax_frame_saved_pc): New function.
6273 (vax_frame_args_address_correct): Ditto.
6274 (vax_frame_args_address): Ditto.
6275 (vax_frame_locals_address): Ditto.
6276 (vax_frame_num_args): Move code to be in proximity to
6277 other frame-related functions.
6278 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6279 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6280 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6281 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6282 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6283
36af0b35
L
62842002-04-22 H.J. Lu (hjl@gnu.org)
6285
6286 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6287 includedir.
6288
ab62c900
JT
62892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6290
6291 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6292 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6293 (FRAME_INIT_SAVED_REGS): New macro.
6294
7232b100
JT
62952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6296
6297 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6298
b70d2aee
JT
62992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6300
6301 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6302 where needed.
6303 (fetch_osf_core_registers): Likewise.
6304 (supply_gregset): Likewise.
6305
a0e8a2d1 63062002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6307
a0e8a2d1
JB
6308 * symfile.h (get_section_index): Define.
6309 * symfile.c (get_section_index): New function.
6310 * mdebugread.c (SC_IS_SBSS): New macro.
6311 (SC_IS_BSS): Return true for the scBss storage class only, as
6312 the scSBss storage class refers to the .sbss section.
6313 (parse_partial_symbols): Discard the symbols which associated
6314 section does not exist.
6315 Make sure to use the .sbss section index for symbols which
6316 storage class is scBss, rather than using the .bss section index.
6317
51eb8b08
JT
63182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6319
6320 * vax-tdep.c: Update copyright years.
6321 (vax_register_name): New function.
6322 (vax_register_byte): Ditto.
6323 (vax_register_raw_size): Ditto.
6324 (vax_register_virtual_size): Ditto.
6325 (vax_register_virtual_type): Ditto.
6326 * config/vax/tm-vax.h: Update copyright years.
6327 (REGISTER_NAMES): Remove.
6328 (REGISTER_NAME): Define.
6329 (REGISTER_BYTE): Use vax_register_byte.
6330 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6331 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6332 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6333
6cc1c0a8
AC
63342002-04-21 Andrew Cagney <ac131313@redhat.com>
6335
6336 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6337 declaration
6338 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6339
9319a2fe
DM
63402002-04-21 David S. Miller <davem@redhat.com>
6341
6342 * arch-utils.c (generic_prologue_frameless_p): Kill
6343 SKIP_PROLOGUE_FRAMELESS_P code.
6344 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6345 references.
6346 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6347 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6348 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6349 references.
6350 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6351 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6352 (sparc_gdbarch_init): Pass it to
6353 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6354
e9ed6d01
JT
63552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6358 (alphabsd-nat.o): New dependency list.
6359
36012033
JT
63602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6361
6362 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6363 alphafbsd-tdep.c.
6364 (alpha-linux-tdep.o): New dependency list.
6365 (alphafbsd-tdep.o): Likewise.
6366
3379287a
JT
63672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6368
6369 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6370 to here...
6371 * alpha-tdep.c: ...from here.
6372 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6373
4bcbd6cb
JT
63742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6375
6376 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6377 prototype from here...
6378 * alpha-tdep.h: ...to here.
6379
b31da25e
AC
63802002-04-21 Andrew Cagney <ac131313@redhat.com>
6381
6382 * frame.h (selected_frame_level): Document as deprecated.
6383 (frame_relative_level): Declare.
6384 * stack.c (frame_relative_level): New function.
6385 (selected_frame_level): Document as deprecated.
6386 (select_frame): Do not set the selected_frame_level.
6387
6388 * stack.c (frame_info, record_selected_frame): Update.
6389 (frame_command, current_frame_command): Update.
6390 (up_silently_base, up_command, down_silently_base): Update.
6391 (down_command): Update.
6392 * inflow.c (kill_command): Update.
6393 * tracepoint.c (finish_tfind_command): Update.
6394 * corelow.c (core_open): Update.
6395 * thread.c (info_threads_command): Update.
6396 (do_captured_thread_select): Update.
6397 * infcmd.c (finish_command): Update.
6398 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6399
9c1d6fe5
JT
64002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6401
6402 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6403
ab89facf
AC
64042002-04-21 Andrew Cagney <ac131313@redhat.com>
6405
6406 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6407 type const.
6408
82a4efa1
JT
64092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * alphafbsd-tdep.c: Update copyright years. Include
6412 alpha-tdep.h.
6413 (alphafbsd_use_struct_convention): Make static.
6414 (alphafbsd_init_abi): New function.
6415 (_initialize_alphafbsd_tdep): New function.
6416 * config/alpha/tm-fbsd.h: Update copyright years.
6417 (USE_STRUCT_CONVENTION): Remove.
6418
44dffaac
JT
64192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6422 an Alpha ABI variant.
6423 (alpha_abi_handler_list): Declare.
6424 (alpha_gdbarch_register_os_abi): New function.
6425 (alpha_gdbarch_init): Give registered ABI variant handlers a
6426 chance to tweak the gdbarch once we have set up defaults.
6427 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6428
65585be4
JT
64292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6430
6431 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6432 to standard_coerce_float_to_double.
6433 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6434
d9b023cc
JT
64352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6436
6437 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6438 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6439 from gdbarch_tdep rather than a constant.
6440 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6441 the default text address for all Alpha Unix ABIs.
6442 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6443 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6444
dc129d82
JT
64452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6446
6447 * alpha-tdep.h: New file. Includes several Alpha target constants
6448 taken from...
6449 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6450 let gdbarch deal with.
6451 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6452 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6453 to dependency list.
6454 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6455 Alpha target register names.
6456 * alphabsd-nat.c: Likewise.
6457 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6458 Alpha target register names. Make serveral routines static.
6459 (alpha_get_saved_register): New function.
6460 (alpha_abi_names): New.
6461 (process_note_abi_tag_sections): New function.
6462 (get_elfosabi): New function.
6463 (alpha_gdbarch_init): New function.
6464 (alpha_dump_tdep): New function.
6465 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6466
d49d1e0a
AC
64672002-04-21 Andrew Cagney <ac131313@redhat.com>
6468
6469 * frame.c (find_saved_register): Delete #ifdef
6470 HAVE_REGISTER_WINDOWS code.
6471 * config/sparc/tm-sparc.h: Update comments.
6472 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6473
92e8c9ed
AC
64742002-04-21 Andrew Cagney <ac131313@redhat.com>
6475
6476 * i960-tdep.c (i960_find_saved_register): New function.
6477 (i960_get_saved_register): New function.
6478 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6479 (i960_get_saved_register): Declare.
6480 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6481
e1925118
DM
64822002-04-20 David S. Miller <davem@redhat.com>
6483
6484 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6485
29673b29
AC
64862002-04-20 Andrew Cagney <ac131313@redhat.com>
6487
6488 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6489 instead of NUM_PSEUDO_REGS.
6490
6c86dcd5
DM
64912002-04-20 David S. Miller <davem@redhat.com>
6492
6493 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6494 GDB_MULTI_ARCH_PARTIAL
6495 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6496 define, let tm-sp64.h do it.
6497
aa40ec90
JT
64982002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6499
6500 * frame.c (find_saved_register): Avoid a NULL pointer
6501 dereference and actually walk the frame list.
6502
0f79675b
AC
65032002-04-20 Andrew Cagney <ac131313@redhat.com>
6504
6505 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6506 sorted in most most-recent-used order. Document.
6507 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6508
c04a1aa8
DJ
65092002-04-20 Daniel Jacobowitz <drow@mvista.com>
6510
6511 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6512 (add_inferior): Call create_register_cache.
6513 (clear_inferiors): Call free_register_cache.
6514 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6515 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6516 (registers): Remove.
6517 (get_regcache): New function.
6518 (create_register_cache, free_register_cache): New functions.
6519 (set_register_cache): Don't initialize the register cache here.
6520 (registers_to_string, registers_from_string, register_data): Call
6521 get_regcache.
6522 * gdbserver/regcache.h: Add prototypes.
6523 * gdbserver/server.h: Likewise.
6524
611cb4a5
DJ
65252002-04-20 Daniel Jacobowitz <drow@mvista.com>
6526
6527 * gdbserver/mem-break.c: New file.
6528 * gdbserver/mem-break.h: New file.
6529 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6530 dependencies.
6531 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6532 member.
6533 (clear_inferiors): Free target_data member if set.
6534 (inferior_target_data, set_inferior_target_data): New functions.
6535 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6536 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6537 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6538 (struct inferior_linux_data): New.
6539 (linux_create_inferior): Use set_inferior_target_data.
6540 (linux_attach): Likewise. Call add_inferior.
6541 (linux_wait_for_one_inferior): New function.
6542 (linux_wait): Call it.
6543 (linux_write_memory): Add const.
6544 (initialize_low): Call set_breakpoint_data.
6545 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6546 handling members.
6547 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6548 call.
6549 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6550 prototypes.
6551 * gdbserver/target.c (read_inferior_memory)
6552 (write_inferior_memory): New functions.
6553 * gdbserver/target.h (read_inferior_memory)
6554 (write_inferior_memory): Change macros to prototypes.
6555 (struct target_ops): Update comments. Add const to write_memory
6556 definition.
6557
f91305dd 65582002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6559
6560 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6561 instead of ->prev.
6562 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6563 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6564 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6565 instead of ->prev.
6566
73d322b1
EZ
65672002-04-19 Elena Zannoni <ezannoni@redhat.com>
6568
6569 Fix PR gdb/471.
6570 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6571 (build_builtin_type_vec128): Ditto.
6572 (append_composite_type_field): Fix calculation of type length in
6573 union case.
6574
ccd9a834
EZ
65752002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6576
6577 * config/djgpp/README: Update.
6578
6579 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6580 compiler warnings.
6581
a57f9e49
JT
65822002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6583
6584 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6585 (alpha_setup_arbitrary_frame): ...to this.
6586 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6587 for alpha_setup_arbitrary_frame.
6588
f4f9705a
AC
65892002-04-18 Andrew Cagney <cagney@redhat.com>
6590
6591 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6592 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6593
f4f9705a
AC
6594 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6595 * target.h (memory_breakpoint_from_pc): Update declaration.
6596 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6597
6598 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6599 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6600 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6601 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6602 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6603 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6604 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6605 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6606 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6607 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6608 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6609 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6610
6611 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6612 const pointer.
6613 * monitor.c (monitor_insert_breakpoint): Ditto.
6614 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6615
6616 * config/mcore/tm-mcore.h: Update copyright.
6617 * mem-break.c: Ditto.
6618 * xstormy16-tdep.c: Ditto.
6619
29f319b8
PM
66202002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6621
6622 * p-exp.y: Add precedence rule for '^' token.
6623 This removes the shift/reduce conflicts.
6624 Remove the comment concerning these shift/reduce conflicts.
6625
ebeac11a
EZ
66262002-04-18 Elena Zannoni <ezannoni@redhat.com>
6627
6628 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6629 (registers_powerpc_nofp): New register set for processors
6630 without floating point unit.
6631
27c31547
DM
66322002-04-18 David S. Miller <davem@redhat.com>
6633
6634 * MAINTAINERS: Add myself to write-after-approval.
6635
47a73475
MS
66362002-04-17 Michael Snyder <msnyder@redhat.com>
6637
6638 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6639
953836b2
AC
66402002-04-17 Andrew Cagney <ac131313@redhat.com>
6641
6642 * rs6000-tdep.c (frame_initial_stack_address): Use
6643 frame_register_read to read the alloca_reg.
6644
8b0d4340
AC
66452002-04-17 Andrew Cagney <ac131313@redhat.com>
6646
6647 * frame.c (find_saved_register): Find saved registers in the next
6648 not prev frame.
6649 Fix PR gdb/365.
6650
d8864532
AC
66512002-04-17 Andrew Cagney <ac131313@redhat.com>
6652
6653 * gdbarch.sh (LANG): Set to ``c''.
6654
36cc83a3 66552002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6656
36cc83a3 6657 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6658
2f4150cc 66592002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6660
6661 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6662 Update copyright.
6663
628703c6 6664 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6665 Also fix PR gdb/391.
361d1df0 6666
56157b4a
AC
66672002-04-14 Andrew Cagney <ac131313@redhat.com>
6668
6669 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6670 * aclocal.m4, configure: Re-generate.
6671 Fix PR gdb/391.
361d1df0 6672
6d1e3329
EZ
66732002-04-14 Elena Zannoni <ezannoni@redhat.com>
6674
6675 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6676 instead of tm_print_insn.
6677
cb06fa07
EZ
66782002-04-14 Elena Zannoni <ezannoni@redhat.com>
6679
6680 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6681
f208ba17
AC
66822002-04-14 Andrew Cagney <ac131313@redhat.com>
6683
6684 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6685 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6686 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6687
20f01a46
DH
66882002-04-12 Don Howard <dhoward@redhat.com>
6689
6690 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6691 max_user_call_depth.
6692 (init_cmd_lists): Initialize the new value;
6693 * cli/cli-script.c (execute_user_command): Limit the call depth of
6694 user defined commands. This avoids a core-dump when user commands
6695 are infinitly recursive.
6696
a88376a3
KB
66972002-04-12 Kevin Buettner <kevinb@redhat.com>
6698
6699 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6700 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6701 from tdep struct instead of DEFAULT_LR_SAVE.
6702 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6703 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6704 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6705
f2172603
MS
67062002-04-12 Michael Snyder <msnyder@redhat.com>
6707
694f61fb 6708 * Remote.c: Spelling fix.
20fe79c8
MS
6709 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6710 If no symbol found for "sbrk", try "_sbrk".
6711 (make_output_phdrs): Use bfd_section_name.
6712 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6713 * eval.c: Indentation fix-ups.
169a7369
MS
6714 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6715 in case it gets applied to an address that is already
6716 in the instruction space.
de74f71f
MS
6717 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6718 * symfile.c: Fix indentation, long lines.
f2172603
MS
6719 * source.c: White space fix-up.
6720
cda5a58a
AC
67212002-04-12 Andrew Cagney <cagney@redhat.com>
6722
6723 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6724 * frame.c (frame_register_read): New function. Return non-zero on
6725 success.
6726 (read_relative_register_raw_bytes_for_frame): Delete.
6727 (read_relative_register_raw_bytes): Delete.
6728 * frame.h (frame_register_read): Declare.
6729 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6730 * sh-tdep.c: Ditto.
6731 * infcmd.c (do_registers_info): Ditto.
6732 * hppa-tdep.c: Ditto.
6733 * rs6000-tdep.c: Ditto.
6734 * h8500-tdep.c: Ditto.
6735 * mips-tdep.c: Ditto.
6736 * h8300-tdep.c: Ditto.
6737 * z8k-tdep.c: Ditto.
6738
2ea5f656
KB
67392002-04-12 Kevin Buettner <kevinb@redhat.com>
6740
6741 From Jimi X <jimix@watson.ibm.com>:
6742 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6743 64-bit SysV ABI.
6744
27b15785
KB
67452002-04-12 Kevin Buettner <kevinb@redhat.com>
6746
6747 From Jimi X <jimix@watson.ibm.com>:
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6749 bfd info.
6750
5d57ee30
KB
67512002-04-12 Kevin Buettner <kevinb@redhat.com>
6752
6753 From Jimi X <jimix@watson.ibm.com>:
6754 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6755 register sets for these processor variants.
6756
bc1e36ca
DJ
67572002-04-11 Daniel Jacobowitz <drow@mvista.com>
6758
6759 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6760 registers which are allowed to fail to store.
6761 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6762 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6763 (ppc_cannot_store_register): FPSCR may not be storable.
6764 * regformats/reg-ppc.dat: Support FPSCR.
6765
e3f36dbd
KB
67662002-04-11 Kevin Buettner <kevinb@redhat.com>
6767
6768 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6769 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6770 Add fpscr as an invalid/unfetchable register.
6771 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6772 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6773 (fill_fpregset): Add support for register fpscr.
6774 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6775 (fill_gregset): Account for the fact that register ``mq'' might
6776 not exist.
6777 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6778 (registers_power): Add fpscr to register set at slot 71.
6779 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6780 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6781
943c9c25
MS
67822002-04-11 Michael Snyder <msnyder@redhat.com>
6783
6784 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6785 * configure: Regenerate.
6786 * config.in: Regenerate.
6787 * acconfig.h: Add define for _SYSCALL32.
6788 * core-sol2.c: Remove #define _SYSCALL32.
6789 * solib-legacy.c: Remove #define _SYSCALL32.
6790
d8c0a2e7
AC
67912002-04-10 Andrew Cagney <ac131313@redhat.com>
6792
6793 * stack.c (select_frame): Cleanup internal error message, do not
6794 use %p.
6795
7cc19214
AC
67962002-04-10 Andrew Cagney <ac131313@redhat.com>
6797
6798 * stack.c (select_frame): Check that selected_frame and the
6799 specified level are as expected.
6800 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6801 Update copyright.
6802 * frame.h (struct frame_info): Add field `level'. Update
6803 copyright.
6804 Work-in-progress PR gdb/464.
6805
67a2b77e
AC
68062002-04-10 Andrew Cagney <ac131313@redhat.com>
6807
6808 * maint.c (maint_print_section_info): Rename print_section_info.
6809 (print_bfd_section_info, print_objfile_section_info): Update.
6810 * inferior.h (struct gdbarch): Add opaque declaration.
6811 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6812 * gdbarch.h: Regenerate.
6813
8cfda98c
ML
68142002-04-10 Michal Ludvig <mludvig@suse.cz>
6815
6816 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6817 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6818 (kernel_u_size): Added.
6819 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6820 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6821
ca439ad2 68222002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6823
ca439ad2
JI
6824 * valarith.c (find_size_for_pointer_math): New function, either returns
6825 the size for a pointer's target, returns 1 for void *, or errors for
6826 incomplete types.
6827 (value_add, value_sub): use find_size_for_pointer_math.
6828
2f2893d9
DJ
68292002-04-09 Daniel Jacobowitz <drow@mvista.com>
6830
6831 * linux-low.c (linux_look_up_symbols): New hook.
6832 (linux_target_ops): Add linux_look_up_symbols.
6833 * remote-utils.c (decode_address): New function.
6834 (look_up_one_symbol): New function.
6835 * server.c (handle_query): Call target look_up_symbols hook.
6836 * server.h (look_up_one_symbol): Add prototype.
6837 * target.h (struct target_ops): Add look_up_symbols hook.
6838
2ec06d2e
DJ
68392002-04-09 Daniel Jacobowitz <drow@mvista.com>
6840
d64b8841
DJ
6841 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6842 * ChangeLog: Correct paths in last ChangeLog entry.
6843
68442002-04-09 Daniel Jacobowitz <drow@mvista.com>
6845
6846 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6847 (struct linux_target_ops): New.
6848 (extern the_low_target): New.
d64b8841 6849 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6850 (register_addr): Use the_low_target explicitly.
6851 (fetch_register): Likewise.
6852 (usr_fetch_inferior_registers): Likewise.
6853 (usr_store_inferior_registers): Likewise.
d64b8841 6854 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6855 (arm_num_regs): Define.
6856 (arm_regmap): Renamed from regmap, made static.
6857 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6858 made static.
6859 (arm_cannot_store_register): Renamed from cannot_store_register,
6860 made static.
6861 (the_low_target): New.
d64b8841 6862 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6863 (i386_num_regs): Define.
6864 (i386_regmap): Renamed from regmap, made static.
6865 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6866 made static.
6867 (i386_cannot_store_register): Renamed from cannot_store_register,
6868 made static.
6869 (the_low_target): New.
d64b8841 6870 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6871 (ia64_num_regs): Define.
6872 (ia64_regmap): Renamed from regmap, made static.
6873 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6874 made static.
6875 (ia64_cannot_store_register): Renamed from cannot_store_register,
6876 made static.
6877 (the_low_target): New.
d64b8841 6878 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6879 (m68k_num_regs): Define.
6880 (m68k_regmap): Renamed from regmap, made static.
6881 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6882 made static.
6883 (m68k_cannot_store_register): Renamed from cannot_store_register,
6884 made static.
6885 (the_low_target): New.
d64b8841 6886 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6887 (mips_num_regs): Define.
6888 (mips_regmap): Renamed from regmap, made static.
6889 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6890 made static.
6891 (mips_cannot_store_register): Renamed from cannot_store_register,
6892 made static.
6893 (the_low_target): New.
d64b8841 6894 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6895 (ppc_num_regs): Define.
6896 (ppc_regmap): Renamed from regmap, made static.
6897 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6898 made static.
6899 (ppc_cannot_store_register): Renamed from cannot_store_register,
6900 made static.
6901 (the_low_target): New.
d64b8841 6902 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6903 (s390_num_regs): Define.
6904 (s390_regmap): Renamed from regmap, made static.
6905 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6906 made static.
6907 (s390_cannot_store_register): Renamed from cannot_store_register,
6908 made static.
6909 (the_low_target): New.
d64b8841 6910 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6911 (sh_num_regs): Define.
6912 (sh_regmap): Renamed from regmap, made static.
6913 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6914 made static.
6915 (sh_cannot_store_register): Renamed from cannot_store_register,
6916 made static.
6917 (the_low_target): New.
d64b8841 6918 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6919 (the_low_target): New.
6920
96cb11df
AC
69212002-04-09 Andrew Cagney <ac131313@redhat.com>
6922
6923 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6924 override FP_REGNUM with frame->fp. Update copyright.
6925 * parse.c (num_std_regs, std_regs): Delete.
6926 (target_map_name_to_register): Do not search std_regs. Update
6927 function description.
6928 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6929 declarations. Update copyright.
6930 Fix PR gdb/251.
361d1df0 6931
c3a3ccc7
DJ
69322002-04-09 Daniel Jacobowitz <drow@mvista.com>
6933
6934 * gdbserver/Makefile.in: Add stamp-h target.
6935 * gdbserver/configure.in: Create stamp-h.
6936 * gdbserver/configure: Regenerated.
6937
ce3a066d
DJ
69382002-04-09 Daniel Jacobowitz <drow@mvista.com>
6939
6940 * gdbserver/inferiors.c: New file.
6941 * gdbserver/target.c: New file.
6942 * gdbserver/target.h: New file.
6943 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6944 dependencies.
6945 * gdbserver/linux-low.c (inferior_pid): New static variable,
6946 moved from server.c.
6947 (linux_create_inferior): Renamed from create_inferior.
6948 Call add_inferior. Return 0 on success instead of a PID.
6949 (linux_attach): Renamed from myattach.
6950 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6951 (linux_thread_alive): Renamed from mythread_alive.
6952 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6953 child dies.
6954 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6955 (regsets_store_inferior_registers): Correct error message.
6956 Add missing ``return 0''.
6957 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6958 (linux_store_registers): Renamed from store_inferior_registers.
6959 (linux_read_memory): Renamed from read_inferior_memory.
6960 (linux_write_memory): Renamed from write_inferior_memory.
6961 (linux_target_ops): New structure.
6962 (initialize_low): Call set_target_ops ().
6963 * gdbserver/remote-utils.c (unhexify): New function.
6964 (hexify): New function.
6965 (input_interrupt): Send signals to ``signal_pid''.
6966 * gdbserver/server.c (inferior_pid): Remove.
6967 (start_inferior): Update create_inferior call.
6968 (attach_inferior): Call add_inferior.
6969 (handle_query): New function.
6970 (main): Call handle_query for `q' packets.
6971 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6972 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6973
0729219d
DJ
69742002-04-09 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6977 dependencies.
6978 * gdbserver/configure.in: Check for <string.h>
6979 * gdbserver/configure: Regenerate.
6980 * gdbserver/config.in: Regenerate.
6981 * gdbserver/gdbreplay.c: Include needed system headers.
6982 (remote_open): Remove strchr prototype.
6983 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6984 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6985 (supply_register_by_name): Likewise.
6986 (collect_register): Change buf argument to void *.
6987 (collect_register_by_name): Likewise.
6988 * gdbserver/regcache.h: Add missing prototypes.
6989 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6990 * gdbserver/server.c (handle_query): New function.
6991 (attached): New static variable, moved out of main.
6992 (main): Quiet longjmp clobber warnings.
6993 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6994 * gdbserver/utils.c (error): Remove NORETURN.
6995 (fatal): Likewise.
6996
97658e92
DJ
69972002-04-09 Daniel Jacobowitz <drow@mvista.com>
6998
6999 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7000 after the last symbol in a block.
7001
6044e3eb
PM
70022002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7003
7004 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7005 is non zero as a found symbol.
7006
0406ec40
AC
70072002-04-08 Andrew Cagney <ac131313@redhat.com>
7008
7009 * findvar.c: Include "builtin-regs.h".
7010 (value_of_register): Call value_of_builtin_reg when applicable.
7011 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7012 (target_map_name_to_register): Call
7013 builtin_reg_map_name_to_regnum.
7014 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7015 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7016 (builtin_regs_h): Define.
7017 (builtin-regs.o): New target.
7018 (findvar.o): Add $(builtin_regs_h).
7019 * builtin-regs.c, builtin-regs.h: New files.
7020 * std-regs.c: New file.
7021 Partial fix for PR gdb/251.
7022
56a6dfb9
KB
70232002-04-08 Kevin Buettner <kevinb@redhat.com>
7024
7025 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7026 it's no longer required.
7027
3a808432
AC
70282002-04-08 Andrew Cagney <ac131313@redhat.com>
7029
7030 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7031
7c40d541
KB
70322002-04-08 Kevin Buettner <kevinb@redhat.com>
7033
7034 From Jimi X <jimix@watson.ibm.com>:
7035 * rs6000-tdep.c (rs6000_software_single_step): Use
7036 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7037 and size. Use target_insert_breakpoint() and
7038 target_remove_breakpoint() to insert and remove breakpoints
7039 instead of explicit memory reads and writes.
7040
cc9836a8
KB
70412002-04-08 Kevin Buettner <kevinb@redhat.com>
7042
7043 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7044 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7045 ELF_OBJECT_FORMAT ifdef.
7046
7495d1dc
KB
70472002-04-08 Kevin Buettner <kevinb@redhat.com>
7048
7049 From Jimi X <jimix@watson.ibm.com>:
7050 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7051
4288e836
KB
70522002-04-08 Kevin Buettner <kevinb@redhat.com>
7053
7054 From Jimi X <jimix@watson.ibm.com>:
7055 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7056 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7057
a4e4e501
MK
70582002-04-07 Mark Kettenis <kettenis@gnu.org>
7059
7060 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7061 s/asprintf/xasprintf/.
7062 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7063
006defba
AC
70642002-04-07 Andrew Cagney <ac131313@redhat.com>
7065
7066 I believe Jeff Law denies responsability for this one:
7067 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7068 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7069 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7070 Work-around for PR gdb/366.
7071
7aa83cac
EZ
70722002-04-07 Elena Zannoni <ezannoni@redhat.com>
7073
7074 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7075 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7076 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7077
cf1fcca1
EZ
70782002-04-07 Elena Zannoni <ezannoni@redhat.com>
7079
7080 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7081 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7082 information.
7083
3f289e6f
AC
70842002-04-07 Andrew Cagney <ac131313@redhat.com>
7085
7086 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7087 maintainer.
7088
129188f6
AC
70892002-04-07 Andrew Cagney <ac131313@redhat.com>
7090
7091 * README (Reporting Bugs in GDB): Document the bug web page as the
7092 prefered way of submitting bugs.
7093 Fix PR gdb/402.
7094
1200cd6e
AC
70952002-04-06 Andrew Cagney <ac131313@redhat.com>
7096
7097 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7098 -1. Update comment.
7099 * gdbarch.h, gdbarch.c: Re-generate.
7100
2853c33c
AS
71012002-04-07 Andreas Schwab <schwab@suse.de>
7102
7103 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7104 buffer to regcache_collect.
7105
c2169756
AC
71062002-04-06 Andrew Cagney <ac131313@redhat.com>
7107
7108 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7109 * gdbarch.c, gdbarch.h: Re-generate.
7110
25f1b008
AC
71112002-04-06 Andrew Cagney <ac131313@redhat.com>
7112
7113 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7114 declaration. Fix -Werror.
7115
59263426
DJ
71162002-04-05 Daniel Jacobowitz <drow@mvista.com>
7117
7118 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7119 * gdbarch.c: Regenerate.
7120
f5db4da3
MS
71212002-04-05 Michael Snyder <msnyder@redhat.com>
7122
80f8a6eb
MS
7123 * breakpoint.c (clear_command): Rewrite middle section to
7124 combine two loops with identical control conditions.
7125 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7126 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7127
ad3dcc5c
L
71282002-04-05 H.J. Lu (hjl@gnu.org)
7129
7130 * solib-svr4.c (bkpt_names): Add "__start".
7131
f32e7a74
AC
71322002-04-04 Andrew Cagney <ac131313@redhat.com>
7133
7134 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7135 as test for 64 bit target.
7136
8227c0ff
AC
71372002-04-05 Andrew Cagney <ac131313@redhat.com>
7138
7139 * h8500-tdep.c (h8500_write_fp): Delete function.
7140 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7141 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7142 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7144 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7145 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7146 (s390_write_fp):
7147 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7148 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7149 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7150 (d10v_write_fp): Delete function.
7151 * inferior.h (write_fp, generic_target_write_fp): Delete
7152 declarations.
7153 * regcache.c (generic_target_write_fp): Delete function.
7154 (write_fp): Delete function.
7155 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7158 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7159 (sparc64_write_fp): Delete declaration.
7160 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7161 (h8500_write_fp): Delete declaration.
7162
2757dd86
AC
71632002-04-04 Andrew Cagney <ac131313@redhat.com>
7164
7165 * sparc-tdep.c (sparc64_write_fp): Delete.
7166 (sparc_push_dummy_frame): Replace write_fp call with code to store
7167 the FP directly.
7168 (sparc_gdbarch_init): Do not initialize write_fp.
7169
c69255e1
KB
71702002-04-05 Kevin Buettner <kevinb@redhat.com>
7171
7172 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7173 clause.
7174
ae767bfb
JB
71752002-03-29 Jim Blandy <jimb@redhat.com>
7176
7177 * stack.c (get_selected_block): Add new argument `addr_in_block',
7178 used to return the exact code address we used to select the block,
7179 not just the block.
7180 * blockframe.c (get_frame_block, get_current_block): Same.
7181 * frame.h (get_frame_block, get_current_block,
7182 get_selected_block): Update declarations.
7183 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7184 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7185
84d2ac95
MS
71862002-04-05 Michael Snyder <msnyder@redhat.com>
7187
7188 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7189 warning message.
7190
596aa3bf
JB
71912002-04-05 J. Brobecker <brobecker@gnat.com>
7192
7193 * utils.c (xfullpath): New function.
7194 * defs.h (xfullpath): Add declaration.
7195 * source.c (openp): Use xfullpath in place of gdb_realpath to
7196 avoid resolving the basename part of filenames when the
7197 associated file is a symbolic link. This fixes a potential
7198 inconsistency between the filenames known to GDB and the
7199 filenames it prints in the annotations.
7200 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7201 to be able to match a filename with either the real filename, or
7202 the name of any symbolic link to this file.
7203 (lookup_partial_symtab): Ditto.
7204
c02f5703
MS
72052002-04-04 Michael Snyder <msnyder@redhat.com>
7206
7207 * breakpoint.c: Add support for hardware breakpoints in overlays.
7208 (overlay_events_enabled): New state variable.
7209 (insert_breakpoints): Use overlay_events_enabled to decide
7210 whether to attempt to set a breakpoint at the overlay load addr.
7211 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7212 (remove_breakpoint): Use overlay_events_enabled to decide
7213 whether breakpoints need to be removed from overlay load addr.
7214 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7215 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7216 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7217 disable_overlay_breakpoints): Update overlay_events_enabled.
7218
5fb290d7
DJ
72192002-04-04 Daniel Jacobowitz <drow@mvista.com>
7220
7221 * dwarf2read.c (struct function_range): New.
7222 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7223 (check_cu_functions): New.
7224 (read_file_scope): Initialize global function lists.
7225 Call dwarf_decode_line after processing children.
7226 (read_func_scope): Add to global function list.
7227 (dwarf_decode_lines): Call check_cu_functions everywhere
7228 record_line is called. Call record_line with a linenumber
7229 of 0 to mark sequence ends.
7230
7b3fabf0
ML
72312002-04-04 Michal Ludvig <mludvig@suse.cz>
7232
361d1df0 7233 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7234 change sync with glibc.
7235
bce58c09
JB
72362002-04-03 Jim Blandy <jimb@redhat.com>
7237
7238 * configure.in: Call AC_C_INLINE.
7239 * configure: Regenerated.
361d1df0 7240
2fccf04a
DJ
72412002-04-01 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7244 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7245
2d1bfe2e
MK
72462002-03-31 Mark Kettenis <kettenis@gnu.org>
7247
a5941fbf
MK
7248 * NEWS: Mention gcore support on FreeBSD/i386.
7249
a90cd31d
MK
7250 * fbsd-proc.c: New file.
7251 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7252 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7253
2d1bfe2e
MK
7254 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7255 while statement.
7256
9eb6e5a1
JB
72572002-03-29 Jim Blandy <jimb@redhat.com>
7258
7259 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7260 unescaped newlines in string literals, but newer ones don't. So
7261 escape them.
7262
f02df580
MS
72632002-03-26 Michael Snyder <msnyder@redhat.com>
7264 Andrew Cagney <cagney@redhat.com>
7265
361d1df0 7266 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7267 restore file to memory.
7268 * cli/cli-dump.h: New file.
7269 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7270 * NEWS: Mention new commands.
f02df580 7271
109f874e
MS
72722002-03-28 Michael Snyder <msnyder@redhat.com>
7273
7274 * symfile.c (symbol_file_add): Move test for null symbols to later.
7275
520f6ade
AC
72762002-03-27 Andrew Cagney <ac131313@redhat.com>
7277
7278 From veksler at il.ibm.com:
7279 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7280 the xstrduped original path.
7281 Fix PR gdb/417.
7282
d4654627
MS
72832002-03-27 Michael Snyder <msnyder@redhat.com>
7284
7285 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7286 * infcmd.c (_initialize_infcmd): Ditto.
7287 * language.c (_initialize_language): Ditto.
7288 * symfile.c (_initialize_symfile): Ditto.
7289 * top.c (_init_main): Ditto.
7290 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7291
6be8bc0c
EZ
72922002-03-27 Elena Zannoni <ezannoni@redhat.com>
7293
7294 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7295 vector registers handling.
7296 (skip_prologue): Handle new AltiVec instructions. Fill in new
7297 fields of frame data.
7298 (frame_get_saved_regs): Fill in information for AltiVec registers.
7299
12af6855
JB
73002002-03-27 Jim Blandy <jimb@redhat.com>
7301
7302 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7303 a function; leave this macro here to invoke that function.
7304 (symbol_init_mangled_name): Declaration for that function.
7305 * symtab.c (symbol_init_mangled_name): New function.
7306
dc672865
AC
73072002-03-27 Andrew Cagney <ac131313@redhat.com>
7308
7309 * valarith.c: Replace strerror with safe_strerror.
7310 * tracepoint.c: Ditto.
7311 * lin-lwp.c: Ditto.
7312 * go32-nat.c: Ditto.
7313 * inflow.c: Ditto.
7314 * gnu-nat.c: Ditto.
7315
d96429cd
AS
73162002-03-27 Andreas Schwab <schwab@suse.de>
7317
7318 * event-top.c (command_line_handler): Remove useless if.
7319
7e336ba1
AJ
73202002-03-27 Andreas Jaeger <aj@suse.de>
7321
7322 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7323 comment.
7324
de220d0f
ML
73252002-03-27 Michal Ludvig <mludvig@suse.cz>
7326
7327 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7328 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7329 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7330 (x86_64_linux_dr_get_status, supply_gregset),
7331 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7332 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7333 (x86_64_register_info_table): Add.
7334 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7335 (x86_64_register_raw_size, x86_64_register_virtual_type),
7336 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7337 general x86_64_register_info_table.
7338 (i386_gdbarch_init): gdbarch_register_bytes is now set
7339 dynamicaly during initialization.
7340 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7341 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7342
0e98d0a7
DJ
73432002-03-27 Daniel Jacobowitz <drow@mvista.com>
7344
7345 * gdbserver/server.c (main): Call target_signal_to_host_p
7346 and target_signal_to_host on signals received from the remote.
7347 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7348 target_signal_from_host on signals sent to the remote.
7349 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7350 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7351
3130066b
DJ
73522002-03-27 Daniel Jacobowitz <drow@mvista.com>
7353
7354 * signals/signals.c: Include "server.h" in gdbserver build.
7355 (target_signal_from_name): Don't use STREQ.
7356 (_initialize_signals): Likewise. Don't include function in
7357 gdbserver build.
7358
9aedf4f4
DJ
73592002-03-27 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * signals.c: Moved to...
7362 * signals/signals.c: Here.
7e336ba1 7363 * Makefile (signals.o): Update.
9aedf4f4 7364
3fa41cdb
JL
73652002-03-26 Jeff Law (law@redhat.com)
7366
7367 * somread.c (som_symtab_read): Remove some commented out code and
7368 updated related comments. Do not set the minimal symbol table to
7369 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7370 in a dynamic executable.
7371 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7372 where we are unable to find the minimal symbol for the given
7373 PC value.
7374
ee677e8d
MS
73752002-03-25 Jeff Law (law@redhat.com)
7376
7377 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7378
e76e1718
ML
73792002-03-25 Michal Ludvig <mludvig@suse.cz>
7380
7381 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7382
18a642a1
AC
73832002-03-23 Andrew Cagney <ac131313@redhat.com>
7384
7385 * command.h: Update copyright.
7386 (struct cmd_list_element): Replace definition with opaque
7387 declaration.
7388 (enum cmd_types): Document that it will eventually be moved to
7389 cli/cli-decode.h
7390 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7391 (MALLOCED_REPLACEMENT): Delete macro.
7392 * Makefile.in (cli_decode_h): Add $(command_h).
7393 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7394 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7395 * completer.c: Include "cli/cli-decode.h".
7396 * maint.c: Include "cli/cli-decode.h".
7397 * cli/cli-decode.h: Include "command.h".
7398 (enum command_class): Delete.
7399 (enum cmd_types): Comment out.
7400 (enum cmd_auto_boolean): Delete.
7401 (enum var_types): Delete.
7402
b2875cc0
AC
74032002-03-23 Andrew Cagney <ac131313@redhat.com>
7404
7405 * cli/cli-decode.c: Include "gdb_assert.h".
7406 (add_set_or_show_cmd): New static function.
7407 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7408 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7409 all fields, such as func, from the set command.
7410
3b45974e
AC
74112002-03-23 Andrew Cagney <ac131313@redhat.com>
7412
7413 * MAINTAINERS (sh-elf): Change warning flag to -w.
7414
823ca731
AC
74152002-03-23 Andrew Cagney <cagney@redhat.com>
7416
7417 * defs.h (error): Add printf format attribute.
7418 * thread-db.c (thread_from_lwp): Fix error format string.
7419 * stack.c (parse_frame_specification): Ditto.
7420 * cli/cli-decode.c (undef_cmd_error): Ditto.
7421 * scm-lang.c (scm_lookup_name): Ditto.
7422 * tracepoint.c (trace_error): Ditto.
7423 * remote-utils.c (usage): Ditto.
7424 * remote.c (compare_sections_command): Ditto.
7425 Fix PR gdb/328.
7426
0e101458
AC
74272002-03-22 Andrew Cagney <ac131313@redhat.com>
7428
7429 * gdbtypes.c (append_composite_type_field): New function.
7430 (init_composite_type): New function.
7431 * gdbtypes.h (append_composite_type_field): Declare.
7432 (init_composite_type): Ditto.
7433
8e0662df
EZ
74342002-03-22 Elena Zannoni <ezannoni@redhat.com>
7435
7436 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7437 function.
8e0662df
EZ
7438 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7439 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7440 structure returning convention for SYSV ABI case, but not
7441 for GNU/Linux, FreeBSD, or NetBSD.
7442
3121eff0
DJ
74432002-03-22 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * symtab.h (lookup_block_symbol): Add mangled_name argument
7446 to prototype.
7447
7448 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7449 with new mangled_name argument.
7450 * linespec.c (decode_line_1): Likewise.
7451 * valops (value_of_this): Likewise.
7452 * symtab.c (lookup_transparent_type): Likewise.
7453 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7454 (lookup_symbol): If we are given a mangled name, pass it down
7455 to lookup_symbol_aux.
7456 (lookup_block_symbol): If we are given a mangled name to check
7457 against, only return symbols which match it.
7458
349b409f
CF
74592002-03-22 Christopher Faylor <cgf@redhat.com>
7460
7461 * win32-nat.c (child_create_inferior): Check for proper shell to use
7462 here, in case the user changes it on the fly.
7463 (_initialize_inftarg): Remove shell path considerations.
7464
2a873819
EZ
74652002-03-21 Elena Zannoni <ezannoni@redhat.com>
7466
7467 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7468 for gdbarch_max_register_raw_size and max_register_virtual_size.
7469 Adjust copyright year.
7470
a1b9830c
DJ
74712002-03-21 Daniel Jacobowitz <drow@mvista.com>
7472
7473 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7474 in a function to cover the entire beginning of the function
7475 as well if it does not already.
7476
8b5790f2
TR
74772002-03-21 Tom Rix <trix@redhat.com>
7478
7479 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7480 (rs6000_ptrace64): Renamed from ptrace64.
7481
bdbe5747
MH
74822002-03-20 Martin M. Hunt <hunt@redhat.com>
7483
7484 * gdbserver/remote-utils.c (remote_open): Don't call
7485 getprotobyname, we're all using TCP here so just use
7486 IPPROTO_TCP.
7e336ba1 7487 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7488
74892002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7490
bdbe5747
MH
7491 * regcache.c (_initialize_regcache): No need to call
7492 build_regcache() at this time; it gets called whenever
7493 the gdbarch changes.
7494
7781cd62
DB
74952002-03-20 David O'Brien <obrien@FreeBSD.org>
7496
7497 * sparc-nat.c: Include sys/param.h where possible.
7498
f65ca430
DJ
74992002-03-20 Daniel Jacobowitz <drow@mvista.com>
7500
7501 Fix PR gdb/422.
7502 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7503 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7504 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7505 complex types.
7506 * stabsread.c (rs6000_builtin_type): Likewise.
7507 (read_sun_floating_type): Likewise.
7508
0c867556
PS
75092002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7510
7511 * stabsread.c (read_member_functions): Remove skip code for duplicate
7512 constructor/destructor methods. Use standard parsing for these
7513 methods and just do not chain them to the list of methods after
7514 parsing.
7515
12b9c64f
AO
75162002-03-19 Alexandre Oliva <aoliva@redhat.com>
7517
7518 * coffread.c: Remove redundant static declarations. Replace
7519 occurrences of `PTR' with `void *'.
7520 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7521 * top.h (quit_cover): Likewise.
7522 * defs.h (catch_errors): Likewise.
7523
349c5d5f
AC
75242002-03-18 Andrew Cagney <ac131313@redhat.com>
7525
7526 * defs.h (XMALLOC): Define.
7527 * gdb-events.sh (XMALLOC): Delete macro.
7528 * gdb-events.c, gdb-events.h: Regenerate.
7529 * gdbarch.sh (XMALLOC): Delete macro.
7530 * gdbarch.c: Regenerate.
7531 * serial.c (XMALLOC): Delete macro.
7532 * ui-file.c (XMALLOC): Ditto.
7533 * ser-unix.h (XMALLOC): Ditto.
7534 * sh-tdep.c (XMALLOC): Ditto.
7535 * ui-out.c (XMALLOC): Ditto.
7536 * utils.c (XMALLOC): Ditto.
7537 * i386-tdep.c (XMALLOC): Ditto.
7538 * gdb-events.c (XMALLOC): Ditto.
7539 * d10v-tdep.c (XMALLOC): Ditto.
7540 * cli-out.c (XMALLOC): Ditto.
7541
7542 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7543 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7544 * ui-file.c, ui-out.c: Ditto.
7545
7d0766f3
AC
75462002-03-18 Andrew Cagney <ac131313@redhat.com>
7547
7548 * command.h (struct cmd_list_element): Add field context.
7549 (set_cmd_context, get_cmd_context): Declare.
7550 * cli/cli-decode.h: Ditto.
7551 * cli/cli-decode.c (get_cmd_context): New function.
7552 (set_cmd_context): New function.
7553 (add_cmd): Initialize context.
7554 Part of fixing PR gdb/145 and PR gdb/146.
7555
5913bcb0
AC
75562002-03-17 Andrew Cagney <ac131313@redhat.com>
7557
1868c04e
AC
7558 * cli/cli-decode.c (cmd_type): New function.
7559 * command.h (cmd_type): Declare.
7560 * infrun.c (set_schedlock_func): Call function cmd_type.
7561 * kod.c (kod_set_os): Call cmd_type.
7562 * cris-tdep.c (cris_version_update): Use function cmd_type.
7563 (cris_mode_update, cris_abi_update): Ditto.
7564
5913bcb0
AC
7565 * command.h: (execute_cmd_post_hook): Declare.
7566 (execute_cmd_pre_hook): Declare.
7567 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7568 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7569 functions. Execute pre/post hook while ensuring that afterwords
7570 hook_in is cleared.
7571 * top.c (execute_command): Use execute_cmd_post_hook, and
7572 execute_cmd_pre_hook to execute pre/post commands.
7573 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7574 hook_stop_stub.
7575 (hook_stop_stub): Call execute_cmd_pre_hook.
7576
b51450c9
AC
75772002-03-17 Andrew Cagney <ac131313@redhat.com>
7578
7579 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7580 set'' and this leads to a core dump. Move xstrdup of
7581 operating_system to after check that it is not NULL.
7582
f66c9f11
AC
75832002-03-17 Andrew Cagney <ac131313@redhat.com>
7584
8e694ecf
AC
7585 * kod.c (kod_set_os): Remove unnecessary check that
7586 ``command->type'' is set_cmd.
7587
f66c9f11
AC
7588 * valprint.c (set_input_radix): Use input_radix.
7589 (set_output_radix): Use output_radix.
7590 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7591 isn't reverted.
7592
9d01611c
AC
75932002-03-16 Andrew Cagney <ac131313@redhat.com>
7594
7595 * value.h (struct value): Delete field ``substring_addr''. Change
7596 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7597 force_core_addr_align and force_pointer_aligh.
7598
7599 * value.h (struct value): Fix typo in above change.
9d01611c 7600
4156bb53
PS
76012002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7602
7603 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7604 to fix internal_error from ``maintenance print architecture''.
7605
0e5e3ea6
PS
76062002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7607
7608 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7609 for gcc versions after gcc-2.8.1.
7610
9b013045
PS
76112002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7612
7613 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7614 for method resolution. Restore adjustment of ``this'' pointer after
7615 calling value_struct_elt, which was accidentally removed during the
7616 HP merge.
7617
376c9600
AC
76182002-03-15 Andrew Cagney <ac131313@redhat.com>
7619
7620 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7621 value_of_register.
7622 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7623 get_saved_register.
7624 * value.h (value_of_register): Update.
7625
a4db0f07
RH
76262002-03-14 Richard Henderson <rth@redhat.com>
7627
7628 * configure.in: Detect declaration for canonicalize_file_name.
7629 * utils.c (canonicalize_file_name): Declare, if needed.
7630 (gdb_realpath): Prefer realpath if available and usable.
7631 * config.in, configure: Rebuild.
7632
96383835
RH
76332002-03-14 Richard Henderson <rth@redhat.com>
7634
7635 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7636 a constant array bound.
7637
7638 * MAINTAINERS: Add myself to write-after-approval.
7639
75245b24
MS
76402002-03-14 Michael Snyder <msnyder@redhat.com>
7641
7642 * symfile.c (syms_from_objfile): Return immediately if no syms.
7643 (symbol_file_add): Return immediately if no syms.
7644 (find_sym_fns): Return immediately if no syms.
7645
e641a1ca
ML
76462002-03-13 Michal Ludvig <mludvig@suse.cz>
7647
7648 * gdbserver/remote-util.c (remote_open): Print remote-side's
7649 IP address when remote debugging over the network.
7e336ba1 7650
df08bfec
DB
76512002-03-12 David O'Brien <obrien@FreeBSD.org>
7652
7653 * config/sparc/fbsd.mh: Fix copyright.
7654 * config/sparc/fbsd.mt: Likewise.
7655
9a57864f
RE
76562002-03-11 Richard Earnshaw <rearnsha@arm.com>
7657
7658 * MAINTAINERS: Fix typo in name of gdb warnings option.
7659 (x86-64): Fix formating so that this can be parsed by awk.
7660
dd7bf85e
DJ
76612002-03-10 Daniel Jacobowitz <drow@mvista.com>
7662
7663 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7664 * defs.h: Include "gdb/signals.h".
7665 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7666
33a0a2ac
ML
76672002-03-10 Michal Ludvig <mludvig@suse.cz>
7668
7669 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7670 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7671 from x86-64-tdep.h
7672
dd824b04
DJ
76732002-03-10 Daniel Jacobowitz <drow@mvista.com>
7674 Don Howard <dhoward@redhat.com>
7675
7676 * mips-tdep.c (ST0_FR): Define.
7677 (mips2_fp_compat): New function, temporarily disabled.
7678 (mips_read_fp_register_single): New function.
7679 (mips_read_fp_register_double): New function.
7680 (mips_print_register): Use them.
7681 (do_fp_register_row): Likewise.
7682
6a41ff59
AC
76832002-03-09 Andrew Cagney <ac131313@redhat.com>
7684
7685 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7686 approval''.
7687
4ea09c10
PS
76882002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7689
7690 * stabsread.c (read_member_functions): Fix is_stub test for
7691 static member functions, improve comment.
7692
6ccc741d
RE
76932002-03-07 Richard Earnshaw <rearnsha@arm.com>
7694
7695 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7696 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7697 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7698 commands that set boolean values.
7699 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7700 (arm_rdi_resume): Always initialize PC.
7701 (arm_rdi_open): Don't use rslt as a boolean.
7702 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7703 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7704 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7705 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7706
438013df
AO
77072002-03-06 Alexandre Oliva <aoliva@redhat.com>
7708
7709 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7710 * configure: Rebuilt.
7711
70ed8774
SC
77122002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7713
7714 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7715 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7716
5ba2abeb
AC
77172002-03-06 Andrew Cagney <ac131313@redhat.com>
7718
7719 * cli/cli-decode.c (set_cmd_completer): New function.
7720 * command.h (set_cmd_completer): Declare.
7721 * cli/cli-decode.h (set_cmd_completer): Ditto.
7722
7723 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7724 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7725 * win32-nat.c (_initialize_inftarg): Ditto.
7726 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7727 * proc-api.c (_initialize_proc_api): Ditto.
7728 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7729 * source.c (_initialize_source): Ditto.
7730 * exec.c (_initialize_exec): Ditto.
7731 * solib.c (_initialize_solib): Ditto.
7732 * top.c (init_main): Ditto.
7733 * tracepoint.c (_initialize_tracepoint): Ditto.
7734 * symfile.c (_initialize_symfile): Ditto.
7735 * printcmd.c (_initialize_printcmd): Ditto.
7736 * infcmd.c (_initialize_infcmd): Ditto.
7737 * corefile.c (_initialize_core): Ditto.
7738
f779ca99
AC
77392002-03-05 Andrew Cagney <ac131313@redhat.com>
7740
7741 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7742
01a3934b
AC
77432002-03-05 Andrew Cagney <ac131313@redhat.com>
7744
7745 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7746
37057839
AC
77472002-03-05 Andrew Cagney <ac131313@redhat.com>
7748
7749 * NEWS: Update headings, 5.2 has branched.
7750
c6ecbae5
DJ
77512002-03-04 Daniel Jacobowitz <drow@mvista.com>
7752
7753 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7754 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7755 (register_addr, REGISTER_RAW_SIZE): Likewise.
7756 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7757 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7758
e9f30c21
ML
77592002-03-03 Michal Ludvig <mludvig@suse.cz>
7760
7761 * MAINTAINERS (x86-64): Add myself.
7762 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7763 changed value_ptr -> struct value *
7764
54394ac3
DB
77652002-03-01 David O'Brien <obrien@FreeBSD.org>
7766
7767 * configure.host (sparc64-*-freebsd): Add.
7768 * configure.tgt: Likewise.
7769 * config/sparc/fbsd.mh: New file.
7770 * config/sparc/fbsd.mt: Likewise.
7771 * config/sparc/nm-fbsd.h: Likewise.
7772 * config/sparc/tm-fbsd.h: Likewise.
7773
bfe95955
DJ
77742002-03-01 Daniel Jacobowitz <drow@mvista.com>
7775
7776 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7777 regformats/reg-s390x.dat.
7778
f33c6cbf
AC
77792002-03-01 Andrew Cagney <ac131313@redhat.com>
7780
7781 * utils.c: Add FIXME explaining true/false problem.
7782
5ecaa7dd
AC
77832002-02-28 Andrew Cagney <ac131313@redhat.com>
7784
7785 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7786
2a251cc2
MC
77872002-02-28 Michael Chastain <mec@shout.net>
7788
7789 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7790
6a8031a3 77912002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7792
7793 * gdbserver/linux-s390-low.c: New file.
7794 * regformats/reg-s390.dat: New file.
7795 * regformats/reg-s390x.dat: New file.
7796 * gdbserver/configure.srv: Add S/390.
7797 * gdbserver/Makefile.in: Add S/390.
7798 * configure.tgt: Enable gdbserver for S/390.
7799
ac469903
EZ
78002002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7801
7802 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7803 first line of the doc string for "info dos", except at the end of
7804 the sentence, since the short help stops at the first period.
7805
985cb1a3
JM
78062002-02-28 Jason Merrill <jason@redhat.com>
7807
7808 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7809
c570663e
FF
78102002-02-27 Fred Fish <fnf@redhat.com>
7811
7812 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7813 comment (dumy -> dummy).
7814
43630227
PS
78152002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7816
7817 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7818
b84911e8
RB
78192002-02-27 Rodney Brown <rbrown64@csc.com.au>
7820
7821 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7822
58caa3dc
DJ
78232002-02-27 Daniel Jacobowitz <drow@mvista.com>
7824
7825 * gdbserver/acconfig.h: New file.
7826 * gdbserver/i387-fp.c: New file.
7827 * gdbserver/i387-fp.h: New file.
7828 * gdbserver/linux-x86-64.c: New file.
7829 * regformats/reg-x86-64.dat: New file.
7830 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7831 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7832 * gdbserver/configure.in: Add support for regsets.
7833 * gdbserver/config.in: Regenerate.
7834 * gdbserver/configure: Regenerate.
7835 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7836 * gdbserver/linux-low.h: New file.
7837 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7838 for regsets.
7839 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7840 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7841 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7842 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7843 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7844 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7845 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7846 "i387-fp.h". Add PTRACE_GETREGS and friends.
7847 * gdbserver/regcache.c (supply_register): New function.
7848 (supply_register_by_name): New function.
7849 (collect_register): New function.
7850 (collect_register_by_name): New function.
7851
93652174
DJ
78522002-02-27 Daniel Jacobowitz <drow@mvista.com>
7853
7854 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7855 (config.status): Add configure.srv dependency.
7856 (server_h): Add config.h dependency.
7857
a02e4a61
DJ
78582002-02-27 Daniel Jacobowitz <drow@mvista.com>
7859
7860 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7861 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7862 * gdbserver/configure.srv: Change i386-*-linux* to use
7863 reg-i386-linux.o.
7864
ce0eebec
AC
78652002-02-26 Andrew Cagney <ac131313@redhat.com>
7866
7867 * x86-64-tdep.c: Re-indent. Update copyright date.
7868
82dbc5f7
AC
78692002-02-26 Andrew Cagney <ac131313@redhat.com>
7870
7871 From Michal Ludvig <mludvig@suse.cz>:
7872 * x86-64-tdep.c (value.h): Delete.
7873 (gdb_assert.h): Include.
7874 (x86_64_register_convert_to_virtual,
7875 x86_64_register_convert_to_raw ): Add check which lets only
7876 floating-point values to be converted.
7877 (value_push): Delete.
7878 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7879 (i386_gdbarch_init): Number of register_bytes fixed.
7880
e4621584
AC
78812002-02-26 Andrew Cagney <ac131313@redhat.com>
7882
7883 * MAINTAINERS: Add x86-64 target.
7884
81a9a963
AC
78852002-02-26 Andrew Cagney <ac131313@redhat.com>
7886
7887 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7888 * osfsolib.c (solib_map_sections): Ditto.
7889 * irix5-nat.c (solib_map_sections): Ditto.
7890 * corelow.c (gdb_check_format): Ditto.
7891 * symfile.c (symfile_bfd_open): Ditto.
7892 * solib.c (solib_map_sections): Ditto.
7893 Fix PR gdb/354.
7e336ba1 7894
0f017ab9
AC
78952002-02-26 Andrew Cagney <ac131313@redhat.com>
7896
7897 * remote.c (_initialize_remote): By default, disable ``e'' and
7898 ``E'' step out-of-range packets.
7899
75738c29
AS
79002002-02-26 Andreas Schwab <schwab@suse.de>
7901
7902 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7903 m68k_linux_frame_saved_pc.
7904 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7905 in_sigtramp.
7906 (SIGCONTEXT_PC_OFFSET): Remove.
7907 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7908 m68k_linux_sigtramp_saved_pc): New functions.
7909 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7910 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7911 (UCONTEXT_PC_OFFSET): Define.
7912 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7913 non-RT and RT signal trampolines.
7914
7e8ed687
RE
79152002-02-26 Richard Earnshaw <rearnsha@arm.com>
7916
7917 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7918 (TARGET_NBPG, STACK_END_ADDR): Delete
7919 (VARIABLES_INSIDE_BLOCK): Delete.
7920
6972bc8b
AC
79212002-02-25 Andrew Cagney <ac131313@redhat.com>
7922
7923 * utils.c (perror_with_name): Make string parameter constant.
7924 (print_sys_errmsg): Ditto.
7925 (query): Ditto.
7926 * defs.h (perror_with_name): Update.
7927 (print_sys_errmsg): Update.
7928 (query): Update.
7929
aa32f823
DJ
79302002-02-25 Daniel Jacobowitz <drow@mvista.com>
7931
7932 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7933 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7934
19caaa45
PS
79352002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7936
7937 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7938 if it already matches the current architecture from the exec file.
7939 Include arch-utils.h for gdbarch_info_init prototype.
7940 * Makefile.in (rs6000-nat.o): Update dependencies.
7941
d951901f
EZ
79422002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7943
7944 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7945 list of exported variables.
7946
7ea81414
DJ
79472002-02-24 Daniel Jacobowitz <drow@mvista.com>
7948
7949 * gdbserver/configure.srv: New file.
7950 * gdbserver/configure.in: Use configure.srv instead
7951 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7952 from it.
7953 * gdbserver/configure: Regenerated.
7954 * gdbserver/terminal.h: New file.
7955 * gdbserver/Makefile.in: Update for configure changes. Remove
7956 more unneeded include paths.
7957
080fe24b
AC
79582002-02-24 Andrew Cagney <ac131313@redhat.com>
7959
7960 From wiz at danbala:
7961 * config/sparc/tm-sp64.h: Fix grammar and typos.
7962 Fix PR gdb/287.
7963
8605d56e
AC
79642002-02-24 Andrew Cagney <ac131313@redhat.com>
7965
7966 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7967 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7968 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7969 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7970 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7971 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7972 * s390-tdep.c: Ditto.
92362027
AC
7973 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7974 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7975 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7976 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7977 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7978 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7979 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7980 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7981 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7982 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7983 Fix PR gdb/378.
7e336ba1 7984
8ed32cc0
AC
79852002-02-23 Andrew Cagney <ac131313@redhat.com>
7986
a3007b6f
AC
7987 * lin-thread.c: Delete file.
7988 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7989 to gdb_proc_service.h.
7990 * configure: Re-generate.
7991
50a9e2f1
AC
7992 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7993 * serial.c (serial_open): Delete check for "ocd".
7994 Fix PR gdb/349.
7995
8b6e7932
AC
7996 * Makefile.in (linux-thread.o): Delete target.
7997 * linux-thread.c: Delete file.
7998
d155c46b
AC
7999 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8000 renamed SH files to be consistent.
8001
8ed32cc0
AC
8002 * symtab.c (sort_search_symbols): Use xfree.
8003
0e18d038
RE
80042002-02-23 Richard Earnshaw <rearnsha@arm.com>
8005
8006 * arm-linux-tdep.c (arm_linux_init_abi): Register
8007 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8008 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8009 definition with undef, since we don't want the sysvr4 definition.
8010 (SKIP_TRAMPOLINE_CODE): Likewise.
8011
27aac7ff
AC
80122002-02-23 Andrew Cagney <ac131313@redhat.com>
8013
8014 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8015
8016 * configure.in: (AC_CHECK_FUNCS) Added test for
8017 canonicalize_file_name Regenerated.
8018 * config.in, configure: Regenerated.
8019 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8020 defined use canonicalize_file_name.
7e336ba1 8021
65a6e0ee
MC
80222002-02-23 Michael Chastain <mec@shout.net>
8023
8024 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8025
47b95330
AC
80262002-02-23 Andrew Cagney <ac131313@redhat.com>
8027
8028 * README: Remove references to cygnus.com.
8029 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8030 dot com'' form. Remove references to cygnus.com and sourceware.
8031
696f451b
AC
80322002-02-23 Andrew Cagney <ac131313@redhat.com>
8033
8034 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8035 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8036 1003.1-2001 no longer allows "head -1".
8037 * gdb/Makefile.in (version.c): Likewise.
8038 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8039 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8040 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8041
bbaca940
AC
80422002-02-23 Andrew Cagney <ac131313@redhat.com>
8043
8044 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8045 * command.h (cmd_cfunc_eq): Declare.
8046 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8047
8048 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8049 ``struct cmd_list_element *''.
8050 * cli/cli-cmds.c (is_complete_command): Update. Use
8051 cmd_cfunc_eq.
8052 * top.c (execute_command): Pass the command to
8053 is_complete_command.
8054 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8055
b8b8b047
AC
80562002-02-23 Andrew Cagney <ac131313@redhat.com>
8057
8058 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8059 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8060 architecture defines.
8061 * s390-tdep.c (s390_gdbarch_init): Likewise.
8062
19d3fc80
RE
80632002-02-23 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8066 (arm_linux_push_arguments): Likewise.
8067 (arm_linux_init_abi): Register them. Also register linux-specific
8068 call_dummy_words.
8069 (find_minsym_and_objfile): Use strcmp, not STREQ.
8070 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8071 (arm_linux_call_dummy_words): Delete declaration.
8072 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8073 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8074 declarations.
8075 (LOWEST_PC): Delete.
8076
3ab13650
PS
80772002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8078
8079 * maint.c (print_section_info): Do not prepend `0x' to filepos
8080 output, it will be handled by local_hex_string_custom.
8081
19d3fc80 80822002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8083
8084 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8085 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8086 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8087
d85a5daf
JB
80882002-02-22 Jim Blandy <jimb@redhat.com>
8089
8090 Indicate that the bcache functions don't change the strings
8091 they're passed.
8092 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8093 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8094
eeb25b8a
PM
80952002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8096
8097 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8098
6badb179
CF
80992002-02-21 Christopher Faylor <cgf@redhat.com>
8100
8101 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8102 find the complete path to a loaded DLL.
8103
e8717518
FF
81042002-02-21 Fred Fish <fnf@redhat.com>
8105
8106 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8107 that marks the end of the range of a function, enter a line number
8108 entry that has a line number of zero and a PC offset that matches
8109 the end of the function. This starts a range of PC's for which no
8110 line number information is known.
8111 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8112 PC's for which no line number info is found (line number is zero)
8113 then we didn't find any valid line information.
8114 * symtab.h: Document use of zero line number entry.
8115
9abe5450
EZ
81162002-02-21 Elena Zannoni <ezannoni@redhat.com>
8117
8118 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8119 (have_ptrace_getvrregs): Define for run time checks.
8120 (gdb_vrregset_t): New type for Altivec register handling.
8121 (fetch_register, store_register): Fetch/store altivec register
8122 when needed.
8123 (fetch_altivec_register, store_altivec_register): New functions.
8124 (supply_vrregset, fill_vrregset): New functions.
8125 (fetch_altivec_registers, store_altivec_registers): New functions.
8126 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8127 registers as well.
8128
aaa38bb5
AJ
81292002-02-21 Jiri Smid <smid@suse.cz>
8130
8131 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8132
b34db576
RE
81332002-02-21 Richard Earnshaw <rearnsha@arm.com>
8134
8135 * Makefile.in (armnbsd-nat.o): Update dependencies.
8136 * armnbsd-nat.c (supply_gregset): New function. Common code to
8137 supply the integer register set.
8138 (supply_fparegset): New function. Similar for FPA registers.
8139 (fetch_regs, fetch_fp_regs): Use them.
8140 (fetch_core_registers): Likewise.
8141 (fetch_elfcore_registers): New function.
8142 (arm_netbsd_elfcore_fns): New core-file type specification.
8143 (_initialize_arm_netbsd_nat): Register it.
8144
3e56fc4b
RE
81452002-02-21 Richard Earnshaw <rearnsha@arm.com>
8146
8147 * armnbsd-nat.c: Include gdbcore.h.
8148 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8149 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8150 'void' to declaration, to shut up ARI.
8151 (fetch_core_registers): Make static. Rewrite using supply_register.
8152 (arm_netbsd_core_fns): New core-file type specification.
8153 (_initialize_arm_netbsd_nat): New function.
8154
097f6b0b
CF
81552002-02-21 Christopher Faylor <cgf@redhat.com>
8156
8157 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8158 value.
8159
c914e0cc
CF
81602002-02-20 Christopher Faylor <cgf@redhat.com>
8161
8162 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8163 fails.
8164
385fa495
DJ
81652002-02-20 Daniel Jacobowitz <drow@mvista.com>
8166
8167 * jv-exp.y (parse_number): Change type of implicit longs
8168 to builtin_type_uint64.
8169
e5f1222d
DJ
81702002-02-20 Daniel Jacobowitz <drow@mvista.com>
8171
8172 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8173 to be an integer instead of a `union wait'.
8174
75c9abc6
DJ
81752002-02-20 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * mips-linux-nat.c: Call the operating system GNU/Linux.
8178 * mips-linux-tdep.c: Likewise.
8179 * mips-tdep.c: Likewise.
8180
551792a5
DJ
81812002-02-20 Daniel Jacobowitz <drow@mvista.com>
8182
8183 Fix PR gdb/265.
8184 * jv-exp.y (parse_number): Handle 64-bit integers.
8185
ee6e2b82
DJ
81862002-02-20 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8189 AC_STDC_HEADERS to AC_HEADER_STDC.
8190 * gdbserver/configure: Regenerated.
8191
a48442a0
RE
81922002-02-20 Richard Earnshaw <rearnsha@arm.com>
8193
8194 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8195 is defined.
8196 * sparc-tdep.c (get_longjmp_target): Likewise.
8197
fe419ffc
RE
81982002-02-20 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * News: Add news about ARM and Multi-arch. Mention the new target
8201 arm*-*-netbsd*.
8202
5832ed7e
JB
82032002-02-19 Jim Blandy <jimb@redhat.com>
8204
8205 * stabsread.c (error_type_complaint): Improve error message.
8206
84563040
DJ
82072002-02-19 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * gdbserver/README: Update documentation.
8210 * gdbserver/configure.in: Update configury to match documentation.
8211 * gdbserver/Makefile.in: Likewise.
8212 * gdbserver/configure: Regenerated.
8213 * gdbserver/aclocal.m4: New file, generated by aclocal.
8214 * gdbserver/config.in: New file, generated by autoheader.
8215
375fd65b
RE
82162002-02-19 Richard Earnshaw <rearnsha@arm.com>
8217
8218 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8219 armnbsd-nat.c.
8220
08216dd7
RE
82212002-02-19 Richard Earnshaw <rearnsha@arm.com>
8222
8223 * arm-tdep.h (enum arm_float_model): New enum.
8224 (struct gdbarch_tdep): Add fp_model.
8225 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8226 up floating-point conversions until we know the floating-point model
8227 in use by the inferior. Don't complain about being unable to
8228 determine the ABI of the inferior when we don't have one.
8229 (arm_extract_return_value): Support different floating-point models.
8230 (arm_store_return_value): Likewise.
aaa38bb5 8231 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8232 ARM_FLOAT_SOFT.
8233 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8234
65d6d66a
PS
82352002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8236
8237 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8238 of ``current_gdbarch''.
8239
47221191
RE
82402002-02-19 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * armnbsd-nat.c : ANSIfy all function declarations.
8243 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8244 (fetch_inferior_registers): Re-implement in terms of above.
8245 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8246 (store_inferior_registers): Re-implement in terms of above.
8247
fdf39c9a
RE
82482002-02-19 Richard Earnshaw <rearnsha@arm.com>
8249
aaa38bb5 8250 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8251 kernel.
8252 * arm-linux-tdep.c: Likewise.
8253 * config/arm/tm-linux.h: Likewise.
8254
93247f88
RE
82552002-02-19 Richard Earnshaw <rearnsha@arm.com>
8256
8257 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8258 * config/arm/nbsd.mt (TM_FILE): Delete.
8259 * config/arm/tm-nbsd.h: Delete.
8260
d7b486e7
RE
82612002-02-19 Richard Earnshaw <rearnsha@arm.com>
8262
8263 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8264 Initialize CALL_DUMMY_LENGTH.
8265
41d39a95
RE
82662002-02-19 Richard Earnshaw <rearnsha@arm.com>
8267
8268 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8269 function.
8270 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8271 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8272 defines one thing and that is incorrect for this port.
8273 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8274
e1195560
PM
82752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8276
8277 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8278
c1748f97
PM
82792002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8280
8281 * win32-nat.c (display_selector): New function. Displays information
8282 about the information returned by GetThreadSelectorEntry API function.
8283 (display_selectors): New function. Displays the infomation of
8284 the selector given as argument, or of CS, DS ans FS selectors
8285 if no argument is given.
8286 ( _initialize_inftarg): Add "w32" as info prefix command.
8287 Add "info w32 selector" as command calling display_selectors.
8288
e41e6bbf
PM
82892002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8290
8291 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8292 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8293 if not defined.
8294
0d3a9f48
RE
82952002-02-18 Richard Earnshaw <rearnsha@arm.com>
8296
8297 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8298
3fb4b924
RE
82992002-02-18 Richard Earnshaw <rearnsha@arm.com>
8300
8301 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8302 (arm_fix_call_dummy): Call it.
8303 (arm_call_dummy_breakpoint_offset): Delete.
8304 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8305 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8306
7f55af32
AC
83072002-02-18 Andrew Cagney <ac131313@redhat.com>
8308
8309 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8310 Default to func_frame_chain_valid.
8311 * gdbarch.h, gdbarch.c: Re-generate.
8312 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8313
05f13b9c
EZ
83142002-02-18 Elena Zannoni <ezannoni@redhat.com>
8315
8316 * ppc-linux-nat.c: Update copyright.
8317 (fetch_register, store_register): Add tid parameter, don't compute
8318 tid here.
8319 (fetch_ppc_registers, store_ppc_registers): Add tid
8320 parameter. Pass it along to callees.
8321 (fetch_inferior_registers, store_inferior_registers): Compute tid
8322 here, and pass it to calleed functions.
8323 (fill_gregset, supply_fpregset): Clean up formatting.
8324
d7afb4c9
RE
83252002-02-18 Richard Earnshaw <rearnsha@arm.com>
8326
8327 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8328 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8329
9df628e0
RE
83302002-02-18 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8333 * gdbarch.c gdbarch.h: Regenerate.
8334 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8335 function.
8336 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8337 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8338 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8339
8340 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8341 * arm-tdep.c (arm_get_longjmp_target): New function.
8342 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8343 this to a positive value register arm_get_longjmp_target as the
8344 longjmp handler.
8345 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8346 (arm_linux_init_abi): Set up longjmp description in tdep.
8347 * armnbsd-nat.c (get_longjmp_target): Delete.
8348 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8349 description in tdep.
8350 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8351 (get_longjmp_target): Delete declaration.
8352 (GET_LONGJMP_TARGET): Delete.
8353 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8354 (GET_LONGJMP_TARGET): Delete.
8355
57bc8964
KB
83562002-02-17 Kevin Buettner <kevinb@redhat.com>
8357
8358 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8359 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8360 of ``current_gdbarch''.
8361
83d31a92
TT
83622002-02-17 Tom Tromey <tromey@redhat.com>
8363
8364 * cli/cli-cmds.c (compare_strings): New function.
8365 (complete_command): Only print each unique item once.
8366 * completer.h (complete_line): Declare.
8367 * completer.c (complete_line): New function.
8368 (line_completion_function): Use it.
8369
17ef5d92
AC
83702002-02-16 Andrew Cagney <ac131313@redhat.com>
8371
8372 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8373 * gdbarch.h, gdbarch.c: Re-generate.
8374
491b8946
DJ
83752002-02-16 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8378
83792002-02-16 Daniel Jacobowitz <drow@mvista.com>
8380
8381 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8382 * valops.c (value_arg_coerce): Don't take the address of a reference
8383 to convert an argument to a reference.
8384
dfe7f3ac
CF
83852002-02-15 Christopher Faylor <cgf@redhat.com>
8386
8387 * win32-nat.c (get_image_name): New function.
8388 (handle_load_dll): Use get_image_name function.
8389 (get_child_debug_event): Avoid registering debug events until possibly
8390 execed process is started.
8391 (child_create_inferior): Allow invocation via shell so that command
8392 line redirection, etc. works ok.
8393 (_initialize_inftarg): Add new command: "set shell" to control whether
8394 a shell is used to start a process.
8395
1d33e73a
DJ
83962002-02-15 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8399 instead of find_register_by_number.
8400 (cannot_store_register): Likewise.
8401
48cd0caa
PM
84022002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8403
aaa38bb5 8404 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8405 fprintf_unfiltered (gdb_stderr, ...).
8406
8656e7d8
DJ
84072002-02-15 Daniel Jacobowitz <drow@mvista.com>
8408
8409 * gdbserver/gdbserver.1: Document --attach.
8410
66e810cd
RE
84112002-02-15 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8414 descriptions.
8415 * arm-tdep.c (arm_default_arm_le_breakpoint)
8416 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8417 (arm_default_thumb_be_breakpoint): New. Initialize them from
8418 traditional breakpoint defines.
8419 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8420 (arm_gdbarch_init): Initialize new breakpoint variables.
8421 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8422 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8423 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8424 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8425 code out to ...
8426 (arm_netbsd_init_abi_common): ... here; new function.
8427 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8428 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8429 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8430 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8431
97e03143
RE
84322002-02-15 Richard Earnshaw <rearnsha@arm.com>
8433
8434 * arm-tdep.h (enum arm_abi): New enum.
8435 (struct gdbarch_tdep): New structure.
8436 (LOWEST_PC): Provide a default.
8437 (arm_gdbarch_register_os_abi): Declare new function.
8438 * arm-tdep.c (arm_abi_names): New array.
8439 (process_note_abi_tag_sections): New function.
8440 (get_elfosabi): New function.
8441 (arm_gdbarch_register_os_abi): New function.
8442 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8443 support for that ABI has been built in, then call the appropriate
8444 configuration routine. Use gdbarch_num_regs() to get the number
8445 of registers.
8446 (arm_dump_tdep): New function.
8447 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8448 place-holder functions.
8449 (_initialize_arm_tdep): Register them.
8450 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8451
8452 * armnbsd-tdep.c: New file.
8453 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8454 * config/arm/nbsd.mt (TDEPFILES): Add it.
8455 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8456
8457 * armnbsd-nat.c: Include regcache.h.
8458 * Makefile.in (armnbsd-nat.o): Update dependency list.
8459
8460 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8461
ad68be46
DJ
84622002-02-14 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * gdbserver/Makefile.in: Fix typos in target rules.
8465
003d6d1d
DJ
84662002-02-14 Daniel Jacobowitz <drow@mvista.com>
8467
aaa38bb5 8468 Fix part of PR gdb/267.
003d6d1d
DJ
8469 * linespec.c (find_methods): Handle constructors specially for now.
8470
6b230f1b
CV
84712002-02-14 Corinna Vinschen <vinschen@redhat.com>
8472
8473 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8474 handling.
8475 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8476 standard_coerce_float_to_double().
8477
1ea98d12
CF
84782002-02-14 Christopher Faylor <cgf@redhat.com>
8479
8480 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8481 GDBINIT_FILENAME.
8482
dd47e6fd
EZ
84832002-02-14 Elena Zannoni <ezannoni@redhat.com>
8484
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8486 find_variant_by_name, because it confuses the multiarch
8487 framework. Return NULL if there isn't an architecture with the
8488 user supplied name, instead of forcing a different one without
8489 recording the change with the multiarch machinery.
8490 (find_variant_by_name): Delete.
8491
d7e39b9e
PS
84922002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8493
8494 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8495 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8496
76e42a4f
MH
84972002-02-13 Martin M. Hunt <hunt@redhat.com>
8498
aaa38bb5 8499 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8500 print_frame_info_listing_hook, set current_source_symtab.
8501
0a30fbc4
DJ
85022002-02-14 Daniel Jacobowitz <drow@mvista.com>
8503
8504 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8505 and remove unused $(INCLUDE_DIR).
8506 Add regcache.c to OBS.
8507 Add generated register protocol files to clean target.
8508 Update dependencies for new objects, obsolete old target code.
8509
8510 * gdbserver/linux-low.c: Remove all platform-specific code to
8511 new files. Remove various dead code. Update to use regcache
8512 functionality.
8513 * gdbserver/remote-utils.c (fromhex): Add return statement
8514 to quiet warning.
8515 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8516 constant.
8517 (input_interrupt): Add integer parameter to match prototype
8518 of a signal handler.
8519 (outreg): Use register_data ().
8520 (prepare_resume_reply): Use gdbserver_expedite_regs.
8521 * gdbserver/server.c (main): Dynamically allocate own_buf because
8522 PBUFSIZ is no longer constant. Use registers_to_string () and
8523 registers_from_string ().
8524 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8525 for error (), fatal (), and warning (). Update definition of
8526 PBUFSIZ to use regcache functionality. Add include guard.
8527 * gdbserver/utils.c (fatal): Add missing ``const''.
8528 (warning): New function.
8529
8530 * regformats/regdat.sh: Include "regcache.h" in generated files.
8531 Provide init_registers () function.
8532 * regformats/regdef.h: Add prototype for set_register_cache ().
8533 Add include guard.
8534
8535 * gdbserver/linux-arm-low.c: New file.
8536 * gdbserver/linux-i386-low.c: New file.
8537 * gdbserver/linux-ia64-low.c: New file.
8538 * gdbserver/linux-m68k-low.c: New file.
8539 * gdbserver/linux-mips-low.c: New file.
8540 * gdbserver/linux-ppc-low.c: New file.
8541 * gdbserver/linux-sh-low.c: New file.
8542
8543 * gdbserver/regcache.c: New file.
8544 * gdbserver/regcache.h: New file.
8545
8546 * gdbserver/low-linux.c: Removed obsolete file.
8547
4cc841d0
DJ
85482002-02-14 Daniel Jacobowitz <drow@mvista.com>
8549
8550 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8551 * config/i386/linux.mt: Likewise.
8552 * config/ia64/linux.mt: Likewise.
8553 * config/m68k/linux.mh: Likewise.
8554 * config/powerpc/linux.mh: Likewise.
8555 * config/mips/linux.mt: Likewise.
8556
8557 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8558
8559 * config/i386/i386lynx.mh: Mark gdbserver variables
8560 as (currently) obsolete for this target.
8561 * config/i386/nbsd.mt: Likewise.
8562 * config/i386/nbsdelf.mt: Likewise.
8563 * config/m32r/m32r.mt: Likewise.
8564 * config/m68k/m68klynx.mh: Likewise.
8565 * config/m68k/nbsd.mt: Likewise.
8566 * config/m68k/sun3os4.mh: Likewise.
8567 * config/mips/vr5000.mt: Likewise.
8568 * config/ns32k/nbsd.mt: Likewise.
8569 * config/pa/hppabsd.mh: Likewise.
8570 * config/pa/hppaosf.mh: Likewise.
8571 * config/powerpc/nbsd.mt: Likewise.
8572 * config/rs6000/rs6000lynx.mh: Likewise.
8573 * config/s390/s390.mt: Likewise.
8574 * config/s390/s390x.mt: Likewise.
8575 * config/sparc/sparclynx.mh: Likewise.
8576 * config/sparc/sun4os4.mh: Likewise.
8577 * config/i386/x86-64linux.mt: Likewise.
8578 * config/sparc/linux.mh: Likewise.
8579
a85f51e7
DJ
85802002-02-14 Daniel Jacobowitz <drow@mvista.com>
8581
8582 * configure.tgt: Configure gdbserver only for known working
8583 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8584 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8585 SUBDIRS if it is configured. Update comment for ${nativefile}.
8586 * configure: Regenerated.
8587
65554fef
MS
85882002-02-13 Michael Snyder <msnyder@redhat.com>
8589
670a52db
MS
8590 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8591
6dbdc4a3
MS
8592 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8593 (default_gcore_mach): Just return 0, work around a problem in bfd.
8594 (default_gcore_target): OK to return NULL if exec_bfd is null.
8595 (make_mem_sec): Use a cast, avoid a warning.
8596
8597 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8598 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8599 sizeof (host pointer) != sizeof (target pointer)).
8600 (procfs_make_note_section): Avoid overflow in psargs string.
8601
aaa38bb5 8602 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8603 implementation return an error.
8604
86052002-02-13 Rodney Brown <rbrown64@csc.com.au>
8606
8607 * procfs.c (procfs_make_note_section): Provide a default definition
8608 (for alpha-dec-osf4.0f). Fix typos.
8609
1e4d76e7
EZ
86102002-02-13 Elena Zannoni <ezannoni@redhat.com>
8611
8612 * linux-proc.c: Add include of regcache.h.
8613 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8614
b6d1a1d5
AC
86152002-02-13 Andrew Cagney <ac131313@redhat.com>
8616
8617 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8618 * memattr.c (create_mem_region): Disallow useless empty region.
8619 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8620 non-overlapping.
b6d1a1d5 8621
6c6ea35e
MC
86222002-02-13 Michael Chastain <mec@shout.net>
8623
8624 * defs.h: Kill CONST_PTR.
8625 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8626 * c-lang.c (c_builtin_types): Likewise.
8627 * ch-lang.c (ch_builtin_types): Likewise.
8628 * f-lang.c (f_builtin_types): Likewise.
8629 * language.c (unknown_builtin_types): Likewise.
8630 * m2-lang.c (m2_builtin_types): Likewise.
8631 * p-lang.c (pascal_builtin_types): Likewise.
8632 * scm-lang.c (c_builtin_types): Likewise.
8633
3e0b0f48
KS
86342002-02-13 Keith Seitz <keiths@redhat.com>
8635
8636 * arm-tdep.h (arm_get_next_pc): Add declaration.
8637
67255d04
RE
86382002-02-13 Richard Earnshaw <rearnsha@arm.com>
8639
8640 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8641 with other related struct-returning functions.
8642 (arm_extract_struct_value_address): New function.
8643 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8644 initialize float_format, double_format and long_double_format as
8645 appropriate to the endianness of the target.
8646 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8647 (arm_use_struct_convention): Delete declaration.
8648 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8649
079777f6
KS
86502002-02-13 Keith Seitz <keiths@redhat.com>
8651
8652 * defs.h (core_addr_to_string_nz): New function.
8653
34588f23
MK
86542002-02-13 Mark Kettenis <kettenis@gnu.org>
8655
8656 Apply missing bits of 2002-01-15 patch.
8657 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8658 (fill_fpregset): Use i387_fill_fsave.
8659
49b563f9
KS
86602002-02-12 Keith Seitz <keiths@redhat.com>
8661
49b563f9
KS
8662 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8663 (core_addr_to_string_nz): New function.
8664
aeb98c60
RE
86652002-02-11 Richard Earnshaw <rearnsha@arm.com>
8666
8667 * arm-linux-nat.c: Really include arm-tdep.h.
8668 * config/arm/tm-linux.h (struct type, struct value): Declare.
8669
65554fef
MS
86702002-02-11 Michael Snyder <msnyder@redhat.com>
8671
8672 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8673 (gcore section): Ifdef for Solaris and Unixware only.
8674 (procfs_do_thread_registers): Unixware needs one lwpstatus
8675 per thread (not one prstatus or pstatus).
8676 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8677 not over all gdb threads. For unixware, call elfcore_write_pstatus
8678 once before iterating over threads.
8679
34e8f22d
RE
86802002-02-11 Richard Earnshaw <rearnsha@arm.com>
8681
8682 * arm-tdep.h: New file.
8683 * arm-tdep.c: Include arm-tdep.h.
8684 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8685 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8686 (arm_print_float_info, arm_register_type, convert_to_extended)
8687 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8688 (arm_extract_return_value, arm_register_name): Make static.
8689 (arm_software_single_step): Similarly. Fix types in declaration.
8690 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8691 (arm_store_return_value, arm_store_struct_return): New functions.
8692 (arm_gdbarch_init): Register the above functions. Also register
8693 call_dummy_start_offset, sizeof_call_dummy_words,
8694 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8695 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8696 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8697 prologue_cache.saved_regs here, rather than ...
8698 (_initialize_arm_tdep): ... here.
8699 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8700 declarations.
8701 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8702 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8703 (arm_print_float_info, arm_register_type, convert_to_extended)
8704 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8705 (arm_extract_return_value, arm_register_name): Delete declarations.
8706 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8707 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8708 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8709 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8710 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8711 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8712 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8713 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8714 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8715 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8716 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8717 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8718 interface.
8719 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8720 * remote-rdi.c remote-rdp.c: Likewise.
8721 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8722 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8723 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8724 definition.
8725
8726 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8727 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8728 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8729 from non-ARM_ prefixed definitions.
8730 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8731 all uses of above.
8732 * remote-rdi.c remote-rdp.c: Likewise.
8733 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8734
148754e5
RE
87352002-02-11 Richard Earnshaw <rearnsha@arm.com>
8736
8737 * arm-tdep.c (arm_frameless_function_invocation)
8738 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8739 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8740 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8741 (arm_pop_frame, arm_get_next_pc): Make static.
8742 (arm_gdbarch_init): Register above in gdbarch structure.
8743 (arm_read_fp): Renamed from arm_target_read_fp.
8744 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8745 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8746 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8747 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8748 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8749 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8750 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8751 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8752 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8753 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8754 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8755
434d2d4f
DJ
87562002-02-10 Daniel Jacobowitz <drow@mvista.com>
8757
8758 * symtab.c (compare_search_syms): New function.
8759 (sort_search_symbols): New function.
8760 (search_symbols): Sort symbols after searching rather than
8761 before.
8762
55241689
AC
87632002-02-10 Andrew Cagney <ac131313@redhat.com>
8764
8765 * NEWS: Linux -> GNU/Linux.
8766
028c194b
AC
87672002-02-10 Andrew Cagney <ac131313@redhat.com>
8768
8769 * gdbarch.sh: For for level one methods, disallow a definition
8770 when partially multi-arched. Add comments explaining rationale.
8771 * gdbarch.h: Re-generate.
8772
6acf50cd
AC
87732002-02-10 Andrew Cagney <ac131313@redhat.com>
8774
8775 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8776 multi-arch partial.
aaa38bb5 8777
50248794
AC
87782002-02-10 Andrew Cagney <ac131313@redhat.com>
8779
8780 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8781 field. Use diff -u.
8782 * gdbarch.c: Re-generate.
8783
c30e0066
AC
87842002-02-10 Andrew Cagney <ac131313@redhat.com>
8785
9b56c5f3 8786 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8787 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8788 partial.
8789
6e6d6484
AC
87902002-02-10 Andrew Cagney <ac131313@redhat.com>
8791
8792 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8793 multi-arch partial.
8794 (PUSH_ARGUMENTS): Switch to using predefault.
8795 * gdbarch.c: Regenerate.
8796
c203844d
AC
87972002-02-10 Andrew Cagney <ac131313@redhat.com>
8798
8799 * valops.c (PUSH_ARGUMENTS): Delete definition.
8800 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8801 partial. Default to default_push_arguments.
8802 * gdbarch.h, gdbarch.c: Regenerate.
8803
b5a2688f
AC
88042002-02-09 Andrew Cagney <ac131313@redhat.com>
8805
8806 * defs.h (throw_exception): Rename return_to_top_level. Update
8807 comments.
8808 * utils.c (error_stream, internal_verror, quit): Ditto.
8809 * top.c (throw_exception, catcher): Ditto.
8810 * sparclet-rom.c (sparclet_load): Ditto.
8811 * remote.c (interrupt_query, minitelnet): Ditto.
8812 * remote-sds.c (interrupt_query): Ditto.
8813 * remote-mips.c (mips_error, mips_kill): Ditto.
8814 * ocd.c (interrupt_query): Ditto.
8815 * monitor.c (monitor_interrupt_query): Ditto.
8816 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8817 * target.h: Update comment.
aaa38bb5 8818
b5a2688f 8819 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8820
2fa5c1e0
AC
88212002-02-09 Andrew Cagney <ac131313@redhat.com>
8822
8823 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8824 default_double_format.
8825 * gdbarch.h, gdbarch.c: Re-generate.
8826 * findvar.c (floatformat_unknown): Delete variable definition.
8827 * doublest.h (floatformat_unknown): Delete variable declaration.
8828
da966255
JB
88292002-02-09 Jim Blandy <jimb@redhat.com>
8830
8831 * stabsread.c (read_type): Add code to parse Sun's syntax for
8832 prototyped function types.
8833
123a4891
AC
88342002-02-09 Andrew Cagney <ac131313@redhat.com>
8835
8836 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8837 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8838
fb39c8f3
PS
88392002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8840
8841 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8842 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8843 now _initialize_xcoffsolib gets called again and overrides the
8844 commands from solib.c in a native configuration.
8845
0b87a11d
MK
88462002-02-09 Mark Kettenis <kettenis@gnu.org>
8847
8848 * doublest.c (store_typed_floating): Don't try to return a value.
8849 Fixes PR gdb/290.
8850
bdc2fc72
JB
88512002-02-08 Jim Blandy <jimb@redhat.com>
8852
8853 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8854 is prototyped and has no arguments, print its argument list as
8855 `(void)'.
8856
da69bbcf
CD
88572002-02-08 Chris Demetriou <cgd@broadcom.com>
8858
8859 * MAINTAINERS (write-after-approval): Add myself.
8860 (paper-trail): I've escaped!
aaa38bb5 8861
b69571f5
CF
88622002-02-08 Christopher Faylor <cgf@redhat.com>
8863
8864 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8865 changes.
8866 (_initialize_check_for_gdb_ini): Ditto.
8867
f6871398
MH
88682002-02-08 Martin M. Hunt <hunt@redhat.com>
8869
8870 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8871 xaprintf -> xasprintf.
8872
4e52d31c
PM
88732002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8874
8875 * win32-nat.c: Remove use of printf and sprintf functions.
8876
39bbf761
RE
88772002-02-08 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arm-tdep.c (arm_frame_chain_valid): Make static.
8880 (arm_push_arguments): Likewise.
8881 (arm_gdbarch_init): New function.
8882 (_initialize_arm_tdep): Call it.
8883 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8884 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8885 (FRAME_CHAIN_VALID): Delete.
8886 (arm_frame_chain_valid): Delete declaration.
8887 (PUSH_ARGUMENTS): Delete.
8888 (arm_push_arguments): Delete declaration.
8889 (CALL_DUMMY_P): Delete.
8890
9c9532c9
CV
88912002-02-08 Andrew Cagney <ac131313@redhat.com>
8892 Corinna Vinschen <vinschen@redhat.com>
8893
8894 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8895 on builtin float types.
8896
4e8f7a8b
DJ
88972002-02-08 Daniel Jacobowitz <drow@mvista.com>
8898
8899 * utils.c: Include <curses.h> before "bfd.h".
8900 * tui/tui-hooks.c: Likewise.
8901 * tui/tui.c: Likewise.
8902 * tui/tuiCommand.c: Likewise.
8903 * tui/tuiData.c: Likewise.
8904 * tui/tuiDataWin.c: Likewise.
8905 * tui/tuiDisassem.c: Likewise.
8906 * tui/tuiGeneralWin.c: Likewise.
8907 * tui/tuiIO.c: Likewise.
8908 * tui/tuiLayout.c: Likewise.
8909 * tui/tuiRegs.c: Likewise.
8910 * tui/tuiSource.c: Likewise.
8911 * tui/tuiSourceWin.c: Likewise.
8912 * tui/tuiStack.c: Likewise.
8913 * tui/tuiWin.c: Likewise.
8914
cd4bffcf
EZ
89152002-02-07 Elena Zannoni <ezannoni@redhat.com>
8916
8917 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8918 to include space for pseudoregs as well. Update loops accordingly.
8919 (sh_fp_frame_init_saved_regs): Ditto.
8920 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8921
26806ce2
AC
89222002-02-07 Andrew Cagney <ac131313@redhat.com>
8923
8924 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8925 Add Richard Earnshaw to Arm maintainers.
8926
97fdab62
AC
89272002-02-07 Andrew Cagney <ac131313@redhat.com>
8928
a6b98203
AC
8929 * defs.h (warning_begin): Delete declaration.
8930
97fdab62
AC
8931 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8932 Delete macro.
8933
78b29b40
MS
89342002-02-07 Michael Snyder <msnyder@redhat.com>
8935
aaa38bb5 8936 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8937 Logic bug, remove misplaced else.
8938
d8849953
KD
89392002-02-07 Klee Dienes <klee@apple.com>
8940
8941 * fork-inferior.c (fork_inferior): Add '!' to the list of
8942 characters that need to be quoted when building a string for the
8943 shell. Quote '!' specifically with a backslash, since CSH chokes
8944 when trying to evaluate "str!str".
aaa38bb5 8945
095778a0
NC
89462002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8947
8948 * rdi-share/host.h: Only provide a typedef for bool if it is not
8949 defined.
8950
1900040c
MS
89512002-02-04 Michael Snyder <msnyder@redhat.com>
8952
8953 * breakpoint.h (enum bptype): Add new overlay event bp type.
8954 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8955
1900040c
MS
8956 * breakpoint.c (create_internal_breakpoint): New function.
8957 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8958 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8959 (create_thread_event_breakpoint): Ditto.
8960 (create_solib_event_breakpoint): Ditto.
8961 (create_overlay_event_breakpoint): New function.
8962 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8963 (update_breakpoints_after_exec): Delete and re-initialize
8964 overlay event breakpoints after an exec. Add FIXME comment
8965 about longjmp breakpoint.
8966 (print_it_typical): Ignore overlay event breakpoints.
8967 (print_one_breakpoint): Ditto.
8968 (mention): Ditto.
8969 (bpstat_what): Do not stop for overlay event breakpoints.
8970 (delete_breakpoint): Don't delete overlay event breakpoints.
8971 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8972 (breakpoint_re_set): Re-create overlay event breakpoint.
8973
8974 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8975 (overlay_manual_command): Disable overlay breakpoints.
8976 (overlay_off_command): Disable overlay breakpoints.
8977
082fc60d
RE
89782002-02-06 Richard Earnshaw <rearnsha@arm.com>
8979
8980 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8981 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8982 to here from config/tm-arm.h.
8983 (coff_sym_is_thumb): Make static.
8984 (arm_elf_make_msymbol_special): New function.
8985 (arm_coff_make_msymbol_special): New function.
8986 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8987 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8988 (coff_sym_is_thumb): Delete declaration.
8989 (arm_elf_make_msymbol_special): Declare.
8990 (arm_coff_make_msymbol_special): Declare.
8991 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8992 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8993
039c5766
RE
89942002-02-06 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8997
89982002-02-06 Richard Earnshaw <rearnsha@arm.com>
8999
9000 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9001 * gdbarch.c gdbarch.h: Regenerate.
9002 * arch-utils.c (default_print_float_info): New function.
9003 * arch-utils.h (default_print_float_info): Prototype it.
9004 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9005 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9006 (PRINT_FLOAT_INFO): Document it.
9007
9008 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9009 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9010 (PRINT_FLOAT_INFO): Define.
9011
58fa08f0
PM
90122002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9013
aaa38bb5 9014 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9015 Add typecast to sprintf argument to suppress a warning.
9016
7393af7c
PM
90172002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9018
58fa08f0 9019 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9020 to allow easier handling of pass state.
9021 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9022 that gives exception name and address.
9023 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9024 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9025 exceptions added.
aaa38bb5
AJ
9026 (child_continue): Correctly report continue_status.
9027 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9028 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9029 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9030 the exception should be passed to debuggee or not.
9031
6af4589c
MS
90322002-02-05 Michael Snyder <msnyder@redhat.com>
9033
9034 * regcache.c (fetch_register): Call target_fetch_register
9035 only if we don't call FETCH_PSEUDO_REGISTER.
9036 (store_register): Call target_store_register only if we
9037 don't call STORE_PSEUDO_REGISTER.
9038
a2cf933a
EZ
90392002-02-05 Elena Zannoni <ezannoni@redhat.com>
9040
9041 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9042 ELF_MAKE_MSYMBOL_SPECIAL.
9043 * gdbarch.c, gdbarch.h: Regenerate.
9044 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9045 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9046 * elfread.c (elf_symtab_read): Compile use of
9047 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9048 multiarched.
9049 * coffread.c (coff_symtab_read): Ditto, for
9050 COFF_MAKE_MSYMBOL_SPECIAL.
9051
6bb7be43
JB
90522002-02-05 Jim Blandy <jimb@redhat.com>
9053
9054 * solib-svr4.c (svr4_truncate_ptr): New function.
9055 (svr4_relocate_section_addresses): Do the address arithmetic with
9056 the appropriate truncation for target addresses, even when
9057 CORE_ADDR is larger than a target address.
9058
e18651ec
DJ
90592002-02-05 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9062 to (int *).
9063
6b2725be
DJ
90642002-02-05 Daniel Jacobowitz <drow@mvista.com>
9065
9066 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9067 code.
9068
fca9e603
DJ
90692002-02-05 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9072
6c537a52
DJ
90732002-02-05 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * gdbserver/linux-low.c: Remove unused include files.
9076
d844cde6
DJ
90772002-02-05 Daniel Jacobowitz <drow@mvista.com>
9078
9079 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9080 (read_inferior_memory): Use it.
9081 (write_inferior_memory): Likewise.
9082
d07c63e7
DJ
90832002-02-05 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9086 grubbing through sys_errlist.
9087
da6d8c04
DJ
90882002-02-05 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9091
5b421780
PM
90922002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9093 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9094
9f60d481
AC
90952002-02-04 Andrew Cagney <ac131313@redhat.com>
9096
9097 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9098 (do_sfunc, set_cmd_sfunc): New functions.
9099
9100 * command.h (struct cmd_list_element): Add field func.
9101 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9102 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9103 * cli/cli-decode.h: Ditto.
9104
9105 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9106 (help_all, help_cmd_list): Ditto.
9107 (find_cmd, complete_on_cmdlist): Ditto.
9108 * top.c (execute_command): Ditto.
9109
9110 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9111 function.sfunc.
9112
9113 * infcmd.c (notice_args_read): Fix function signature.
9114
9115 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9116 * cli/cli-decode.c (add_set_cmd): Ditto.
9117 * utils.c (initialize_utils): Ditto.
9118 * maint.c (_initialize_maint_cmds): Ditto.
9119 * infrun.c (_initialize_infrun): Ditto.
9120 * demangle.c (_initialize_demangler): Ditto.
9121 * remote.c (add_packet_config_cmd): Ditto.
9122 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9123 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9124 * proc-api.c (_initialize_proc_api): Ditto.
9125 * kod.c (_initialize_kod): Ditto.
9126 * valprint.c (_initialize_valprint): Ditto.
9127 * top.c (init_main): Ditto.
9128 * infcmd.c (_initialize_infcmd): Ditto.
9129 * corefile.c (_initialize_core): Ditto.
9130 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9131 * arch-utils.c (initialize_current_architecture): Ditto.
9132 (_initialize_gdbarch_utils): Ditto.
9133 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9134
9135 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9136 * wince.c (_initialize_inftarg): Ditto.
9137 * symfile.c (_initialize_symfile): Ditto.
9138 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9139 * language.c (_initialize_language): Ditto.
9140 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9141
f9ba0717
MS
91422002-02-04 Michael Snyder <msnyder@redhat.com>
9143
9144 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9145
0c74b2a7
DJ
91462002-02-04 Daniel Jacobowitz <drow@mvista.com>
9147
9148 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9149 Add rules for building the register data files.
9150
c638789f
DJ
91512002-02-04 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * regformats/regdat.sh: Add braces to the definition of
9154 expedite_regs_${arch}.
9155
db253027
DJ
91562002-02-04 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * regformats/regdef.h (struct reg): Add comment describing the
9159 requirements for offset and size fields.
9160
206be19c
AS
91612002-02-04 Andreas Schwab <schwab@suse.de>
9162
9163 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9164 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9165
181c1381
RE
91662002-02-04 Richard Earnshaw <rearnsha@arm.com>
9167
9168 * gdbarch.sh (copyright): Update years in generated header.
9169 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9170 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9171 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9172 * dbxread.c: Likewise.
9173 * dwarfread.c: Likewise.
9174 * elfread.c: Likewise.
9175 * somread.c: Likewise.
9176
9177 * arm-tdep.c (arm_smash_text_address): New function.
9178 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9179
fa4ba8da
PM
91802002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9181
9182 Add support for hardware watchpoints on win32 native.
aaa38bb5 9183 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9184 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9185 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9186 of debug registers.
9187 (debug_registers_changed): New variable. Reflects when debug registers
9188 are changed and need to be written to inferior.
aaa38bb5 9189 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9190 was set, used when new threads are created.
9191 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9192 i386-nat code.
9193 (thread_rec): Set dr array if id is the thread of current_event .
9194 (child_continue, child_resume): Change the debug registers for all
9195 threads if debug_registers_changed.
9196 (child_add_thread): Change the debug registers if debug_registers_used.
9197 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9198 Link nm.h to new nm-cygwin.h file.
9199 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9200 of hardware registers.
9201
a73c86fb
AC
92022002-02-03 Andrew Cagney <ac131313@redhat.com>
9203
9204 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9205 Restore behavour broken by 2002-01-20 Andrew Cagney
9206 <ac131313@redhat.com> IEEE_FLOAT removal.
9207
acf5ed49
DJ
92082002-02-03 Daniel Jacobowitz <drow@mvista.com>
9209
9210 * c-valprint.c (c_val_print): Pass a proper valaddr to
9211 cp_print_class_method.
9212 * valops.c (search_struct_method): If there is only one method
9213 and args is NULL, return that method.
9214
493d28d5
DJ
92152002-02-03 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9218 accessing tag_name directly.
9219
7495dfdb
DJ
92202002-02-03 Daniel Jacobowitz <drow@mvista.com>
9221
9222 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9223 of accessing tag_name directly.
9224
dd6bda65
DJ
92252002-02-03 Daniel Jacobowitz <drow@mvista.com>
9226
9227 PR gdb/280
9228 * gdbtypes.c (replace_type): New function.
9229 * gdbtypes.h (replace_type): Add prototype.
9230 * stabsread.c (read_type): Use replace_type.
9231
88fe217c
RE
92322002-02-03 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * Makefile.in (memattr.o): Add missing dependencies rule.
9235
e5d66720
PS
92362002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9237
9238 * breakpoint.c (break_at_finish_command): Really export.
9239 (break_at_finish_at_depth_command): Ditto.
9240 (tbreak_at_finish_command): Ditto.
9241 * hppa-tdep.c: Include completer.h.
9242 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9243 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9244
fffee0be
AC
92452002-02-01 Andrew Cagney <ac131313@redhat.com>
9246
9247 * utils.c (do_write): New function.
9248 (error_stream): Rewrite combining the code from error_begin and
9249 verror.
9250 (verror): Rewrite using error_stream.
9251 (error_begin): Delete function.
9252
255e7dbf
AC
92532002-02-01 Andrew Cagney <ac131313@redhat.com>
9254
9255 * utils.c (error_begin): Make static.
9256 * defs.h (error_begin): Delete declaration.
9257
9258 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9259 (decode_line_1): Use cplusplus_error instead of error_begin,
9260 cplusplus_hint and return_to_top_level.
9261 * coffread.c (coff_symfile_read): Use error instead of error_begin
9262 and return_to_top_level.
9263 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9264
ddfe3c15
AC
92652002-02-01 Andrew Cagney <ac131313@redhat.com>
9266
9267 * language.h (type_error, range_error): Make string parameter
9268 constant.
9269 * language.c (warning_pre_print): Delete extern declaration.
9270 * dwarfread.c (warning_pre_print): Ditto.
9271 * language.c (type_error, range_error): Rewrite to use verror and
9272 vwarning instead of warning_begin.
9273
03ac34d5
MS
92742002-02-01 Michael Snyder <msnyder@redhat.com>
9275
261c4ca2
MS
9276 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9277 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9278
e00d1dc8
AC
92792002-02-01 Andrew Cagney <ac131313@redhat.com>
9280
9281 * command.h (NO_FUNCTION): Delete macro.
9282 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9283 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9284 * tracepoint.c (_initialize_tracepoint): Ditto.
9285 * cli/cli-decode.c (add_set_cmd): Ditto.
9286 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9287
76b79d6e
DJ
92882002-02-01 Daniel Jacobowitz <drow@mvista.com>
9289
9290 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9291 Update ``this'' pointer when calling virtual functions.
9292
799f9e91
MS
92932002-02-01 Michael Snyder <msnyder@redhat.com>
9294
c7bd442c 9295 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9296 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9297
3cf384d4
DJ
92982002-02-01 Daniel Jacobowitz <drow@mvista.com>
9299
9300 * regformats/reg-arm.dat: New file.
9301 * regformats/reg-i386.dat: New file.
9302 * regformats/reg-ia64.dat: New file.
9303 * regformats/reg-m68k.dat: New file.
9304 * regformats/reg-mips.dat: New file.
9305 * regformats/reg-ppc.dat: New file.
9306 * regformats/reg-sh.dat: New file.
9307 * regformats/regdef.h: New file.
9308 * regformats/regdat.sh: New file.
9309
0defa245
RE
93102002-02-01 Richard Earnshaw <reanrsha@arm.com>
9311
9312 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9313 (arm_frame_args_address, arm_frame_locals_address): New functions.
9314 (arm_frame_num_args): New function.
9315 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9316 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9317 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9318
405f26e6
MS
93192002-01-31 Michael Snyder <msnyder@redhat.com>
9320
502fd408
MS
9321 * breakpoint.c (break_at_finish_command): Export.
9322 (break_at_finish_at_depth_command): Export.
9323 (tbreak_at_finish_command): Export.
9324 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9325 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9326 "tbreak" commands, which are HPPA specific.
9327
7d35e135
MS
9328 * printcmd.c (disassemble_command): Remove an ancient
9329 artifact of an old merge.
9330
aaa38bb5 9331 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9332 Define enum constant values for overlay mode.
9333 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9334 (overlay_is_mapped, overlay_auto_command,
9335 overlay_manual_command): Ditto.
d874f1e2 9336
aaa38bb5
AJ
9337 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9338 breakpoint_here_p, breakpoint_inserted_here_p,
9339 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9340 describe_other_breakpoints, check_duplicates, clear_command):
9341 Coding standard fixes.
9342
8add0441 9343 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9344 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9345 code: check bfd SEC_READONLY flag for section.
9346
e351066e
AC
93472002-01-31 Andrew Cagney <ac131313@redhat.com>
9348
7d35e135 9349 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9350
8a48e967
DJ
93512002-01-30 Daniel Jacobowitz <drow@mvista.com>
9352
9353 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9354 data symbols, since we search based on textlow and texthigh.
9355 (find_pc_sect_symtab): Likewise.
9356
f5a96129
AC
93572002-01-30 Andrew Cagney <ac131313@redhat.com>
9358
9359 * defs.h (vwarning): Declare.
f5a96129
AC
9360 * utils.c (vwarning): New function.
9361 (warning): Call vwarning.
9362 (warning_begin): Delete function.
9363
9364 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9365 the warning message.
9366 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9367 warning_begin.
9368
cefd4ef5
MS
93692002-01-30 Michael Snyder <msnyder@redhat.com>
9370
1a703748
MS
9371 * NEWS: Mention "set trust-readonly-sections" command.
9372 Mention generate-core-file command.
cefd4ef5 9373
3a11626d
MS
93742002-01-15 Michael Snyder <msnyder@redhat.com>
9375
9376 * target.c: New command, "set trust-readonly-sections on".
9377 (do_xfer_memory): Honor the suggestion to trust readonly sections
9378 by reading them from the object file instead of from the target.
9379 (initialize_targets): Register command "set trust-readonly-sections".
9380
d1c7e53b
AC
93812002-01-29 Andrew Cagney <ac131313@redhat.com>
9382
9383 * parse.c (target_map_name_to_register): Simplify, search regs and
9384 pseudo-regs using a single loop.
9385
e2c9a72c
AC
93862002-01-30 Andrew Cagney <ac131313@redhat.com>
9387
9388 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9389
69824b4e
MK
93902002-01-15 Rodney Brown <rbrown64@csc.com.au>
9391
9392 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9393 * config/i386/i386v42mp.mh: Add i387-nat.o .
9394 * i386v4-nat.c: Include i387-nat.h.
9395 (supply_fpregset): Use i387_supply_fsave.
9396 (fill_fpregset): Use i387_fill_fsave.
9397
6eb69eab
RE
93982002-01-30 Richard Earnshaw <rearnsha@arm.com>
9399
9400 * arm-tdep.c (arm_call_dummy_words): Define.
9401 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9402 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9403 (CALL_DUMMY_WORDS): Define.
9404 (arm_call_dummy_words): Declare.
9405 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9406 (arm_linux_call_dummy_words): Declare.
9407
9852326a
AS
94082002-01-30 Andreas Schwab <schwab@suse.de>
9409
9410 * m68klinux-nat.c: Fix last change to use regcache_collect
9411 instead of referencing registers[] directly.
9412
977a3030
AC
94132002-01-29 Andrew Cagney <ac131313@redhat.com>
9414
9415 * parse.c (target_map_name_to_register): Delete code wrapped in
9416 #ifdef REGISTER_NAME_ALIAS_HOOK.
9417
2076c72b
MS
94182002-01-28 Michael Snyder <msnyder@redhat.com>
9419
9420 * regcache.c (legacy_read_register_gen): Need to be able to
9421 read pseudo-register as well as real register.
9422 (legacy_write_register_gen): Ditto.
9423
8fcc723b
AC
94242002-01-28 Andrew Cagney <ac131313@redhat.com>
9425
9426 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9427 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9428 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9429 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9430 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9431 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9432 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9433 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9434 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9435 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9436 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9437 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9438 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9439 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9440 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9441 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9442 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9443 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9444 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9445 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9446
afe64c1a
AC
94472002-01-28 Andrew Cagney <ac131313@redhat.com>
9448
9449 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9450 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9451 (initialize_current_architecture): Update target_byte_order using
9452 information from BFD.
aaa38bb5 9453 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9454 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9455
75bc7ddf
AC
94562002-01-28 Andrew Cagney <ac131313@redhat.com>
9457
9458 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9459 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9460
9461 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9462 #ifdef INVALID_FLOAT.
9463 * infcmd.c (do_registers_info): Ditto.
9464 * values.c (unpack_double): Ditto. Add comment.
9465
9466 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9467 already commented out.
9468
0280a90a
AS
94692002-01-26 Andreas Schwab <schwab@suse.de>
9470
9471 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9472 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9473 registers and add support for PTRACE_GETREGS.
9474
7072a954
AC
94752002-01-24 Andrew Cagney <ac131313@redhat.com>
9476
9477 GDB 5.1.1 released from 5.1 branch.
9478 * NEWS: Add 5.1.1 news.
9479 * README: Sync with 5.1 branch.
9480
86f902e0
FF
94812002-01-23 Fred Fish <fnf@redhat.com>
9482
9483 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9484 stabstring on initial malloc. Reallocing will copy it for us,
9485 if necessary.
9486
8af51c36
EZ
94872002-01-23 Elena Zannoni <ezannoni@redhat.com>
9488
aaa38bb5 9489 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9490 (HFILES_NO_SRCDIR): Remove hpread.h.
9491 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9492 (hpread.o): Update dependencies.
9493 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9494
9495 * hp-psymtab-read.c: Remove file.
9496 * hp-symtab-read.c: Remove file.
9497 * hpread.h: Remove file.
9498
9499 * hpread.c: Merge all contents of hp-psymtab-read.c,
9500 hp-symtab-read.c and hpread.h into this file, as it was prior to
9501 January 1999.
9502
9503 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9504 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9505 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9506 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9507
dc5cfeb6
EZ
95082002-01-23 Elena Zannoni <ezannoni@redhat.com>
9509
9510 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9511 fill_gregset): Call gdbarch_tdep() just once, assign result to
9512 variable and use that, instead of calling the function several
9513 times.
9514
ea87b71b
AO
95152002-01-24 Alexandre Oliva <aoliva@redhat.com>
9516
9517 * configure.host: Accept sparcv9 as alias for sparc64.
9518 * configure.tgt: Likewise.
9519
13fc0c2f
KB
95202002-01-22 Kevin Buettner <kevinb@redhat.com>
9521
9522 * solib-aix5.c (build_so_list_from_mapfile)
9523 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9524 arguments is not reversed.
9525 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9526 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9527
7bd872fe
EZ
95282002-01-22 Elena Zannoni <ezannoni@redhat.com>
9529
9530 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9531 modified version of obsolete sh_fetch_pseudo_register.
9532 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9533 (sh4_register_read): New function.
9534 (sh_pseudo_register_write): New function. Renamed and modified
9535 version of obsolete sh_store_pseudo_register.
9536 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9537 (sh4_register_write): New function.
9538 (sh_gdbarch_init): Remove setting of gdbarch function
9539 fetch_pseudo_register and store_pseudo_register. Remove setting of
9540 register_convert_to_raw, register_convert_to_virtual,
9541 register_convertible.
9542 (sh_sh4_register_convertible): Delete. No longer needed. All is
9543 taken care by architecture specific functions
9544 register_read/register_write.
9545 (sh_sh4_register_convert_to_virtual): Make static.
9546 (sh_sh4_register_convert_to_raw): Ditto.
9547
069e84fd
AC
95482002-01-22 Andrew Cagney <ac131313@redhat.com>
9549
9550 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9551 (floatformat_is_nan, floatformat_mantissa): Ditto.
9552
9553 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9554 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9555 builtin_type_ieee_double_little,
9556 builtin_type_ieee_double_littlebyte_bigword,
9557 builtin_type_m68881_ext, builtin_type_i960_ext,
9558 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9559 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9560 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9561 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9562
211a4f69
CV
95632002-01-22 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9566 parameter. Set frameless flag if it exists and depended of
9567 whether the scanned function is frameless or not.
9568 (xstormy16_skip_prologue): If function is frameless, return
9569 result of xstormy16_scan_prologue().
9570 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9571 call.
9572
f81353e4
EZ
95732002-01-21 Elena Zannoni <ezannoni@redhat.com>
9574
9575 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9576 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9577 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9578 sh_sh4_register_byte, sh_sh4_register_raw_size,
9579 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9580 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9581 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9582 sh_store_pseudo_register, sh_do_pseudo_register): Call
9583 gdbarch_tdep() just once, assign result to variable and use that,
9584 instead of calling the function several times.
9585
63c73a17
MK
95862002-01-20 Mark Kettenis <kettenis@gnu.org>
9587
9588 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9589 macros instead of LAST_FPU_CTRL_REGNUM.
9590 (store_register): Likewise.
9591
39ad761d
JB
95922002-01-21 Jim Blandy <jimb@redhat.com>
9593
9594 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9595 is up-to-date before running the program, not just when a program
9596 exits.
9597
3d74b771
FF
95982002-01-21 Fred Fish <fnf@redhat.com>
9599
9600 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9601 when we have found all instructions we are looking for.
9602
966fbf70
RE
96032002-01-21 Richard Earnshaw <rearnsha@arm.com>
9604
9605 * arm-tdep.c (arm_register_name): New function.
9606 (arm_registers_names): Make static.
9607 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9608 (arm_register_name): Declare.
9609 (REGISTER_NAME): Use it.
9610
c3b4394c
RE
96112002-01-21 Richard Earnshaw <rearnsha@arm.com>
9612 Kevin Buettner <kevinb@redhat.com>
9613
9614 Convert arm targets to new FRAME interface.
9615 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9616 (arm_frame_find_save_regs): Delete.
9617 (arm_frame_init_saved_regs): New.
9618 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9619 Allocate extra_info as required. Convert all uses of fsr.regs
9620 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9621 to use extra_info.
9622 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9623 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9624 (check_prologue_cache, save_prologue_cache): Likewise.
9625 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9626 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9627 (FRAME_FIND_SAVED_REGS): Delete.
9628 (arm_frame_find_saved_regs): Delete prototype.
9629 (arm_frame_init_saved_regs): New prototype.
9630 (FRAME_INIT_SAVED_REGS): Define.
9631
61d99182
AC
96322002-01-20 Andrew Cagney <ac131313@redhat.com>
9633
9634 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9635
6aaea291
AC
96362002-01-20 Andrew Cagney <ac131313@redhat.com>
9637
9638 From Jeff Law <law@redhat.com>:
9639 * infttrace.c: Include <sys/pstat.h>.
9640 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9641 exec file if the ttrace equivalent fails.
9642
15f698d2
AC
96432002-01-20 Andrew Cagney <ac131313@redhat.com>
9644
9645 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9646 (closeLogFile): Ditto.
9647
f86ddd7c
MC
96482002-01-20 Michael Chastain <mec@shout.net>
9649
9650 * top.c (print_gdb_version): Bump copyright year to 2002.
9651
904507ce
AC
96522002-01-20 Andrew Cagney <ac131313@redhat.com>
9653
9654 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9655 Zannoni and Eli Zaretskii.
9656
d7f0b9ce
DJ
96572002-01-20 Daniel Jacobowitz <drow@mvista.com>
9658
9659 * buildsym.c: Update copyright years.
9660 * c-typeprint.c: Likewise.
9661 * dwarf2read.c: Likewise.
9662 * f-typeprint.c: Likewise.
9663 * gdbtypes.c: Likewise.
9664 * gdbtypes.h: Likewise.
9665 * hp-symtab-read.c: Likewise.
9666 * hpread.c: Likewise.
9667 * mdebugread.c: Likewise.
9668 * p-typeprint.c: Likewise.
9669
3fd3d7d2
AC
96702002-01-20 Andrew Cagney <ac131313@redhat.com>
9671
9672 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9673 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9674 byte-order selectable.
9675 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9676 * arch-utils.c: Ditto.
9677 (set_endian): Ditto.
9678 (set_endian_from_file): Ditto.
9679 * gdbserver/low-sim.c (create_inferior): Ditto.
9680 * gdbarch.sh: Ditto.
9681 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9682 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9683 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9684 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9685 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9686 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9687 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9688 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9689 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9690 macro definition.
9691 * config/mips/tm-wince.h: Remove #undef of macro
9692 TARGET_BYTE_ORDER_SELECTABLE.
9693 * config/sh/tm-wince.h: Ditto.
9694
b02dede2
DJ
96952002-01-20 Daniel Jacobowitz <drow@mvista.com>
9696
9697 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9698 member function fields. Add accessor macro
9699 TYPE_FN_FIELD_ARTIFICIAL.
9700 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9701 * c-typeprint.c (c_type_print_base): Skip artificial member
9702 functions.
9703
c3643761
DJ
97042002-01-20 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * f-typeprint.c: Delete unused function f_type_print_args.
9707 * p-typeprint.c: Delete unused function pascal_type_print_args.
9708
8176bb6d
DJ
97092002-01-20 Daniel Jacobowitz <drow@mvista.com>
9710
9711 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9712 comment. Add ``artificial'' to ``union field_location''.
9713
9714 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9715
9716 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9717 * mdebugread.c (parse_symbol): Likewise.
9718 * stabsread.c (define_symbol): Likewise.
9719 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9720 initializing TYPE_FIELD_BITPOS to n (obsolete).
9721 (hpread_doc_function_type): Likewise.
9722 * hpread.c (hpread_function_type): Likewise.
9723
7fd60527
AC
97242002-01-20 Andrew Cagney <ac131313@redhat.com>
9725
9726 * configure.in (host_makefile_frag): Only require a host makefile
9727 fragment when a native build.
9728 * configure: Re-generate.
9729
c2f05ac9
AC
97302002-01-20 Andrew Cagney <ac131313@redhat.com>
9731
9732 * doublest.h (floatformat_from_type): Declare.
9733 * doublest.c (floatformat_from_type): New function.
9734 (convert_typed_floating): Use.
9735
9736 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9737 call to function floatformat_from_type.
9738
9739 * gdbarch.sh (IEEE_FLOAT): Delete.
9740 * gdbarch.h, gdbarch.c: Re-generate.
9741 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9742 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9743 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9744 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9745 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9746 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9747 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9748 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9749 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9750 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9751 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9752 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9753
9754 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9755 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9756 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9757 * sh-tdep.c (sh_gdbarch_init): Ditto.
9758 * mips-tdep.c (mips_gdbarch_init): Ditto.
9759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9760 * cris-tdep.c (cris_gdbarch_init): Ditto.
9761
abf22e64
AJ
97622002-01-20 Jiri Smid <smid@suse.cz>
9763
9764 * configure.host, configure.tgt: Support x86-64.
9765 * NEWS: Note new target x86-64.
9766
b7c4cbf8
AJ
9767 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9768 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9769 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9770 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9771 x86-64-linux-nat.o): Fix dependencies.
9772
82600034
AC
97732002-01-19 Andrew Cagney <ac131313@redhat.com>
9774
9775 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9776 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9777 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9778 * config/sparc/xm-sun4os4.h: Delete file.
9779 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9780
bbe5c628
AC
97812002-01-19 Andrew Cagney <ac131313@redhat.com>
9782
9783 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9784 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9785 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9786 * config/i386/i386lynx.mh (XM_FILE): Delete.
9787 * config/rs6000/xm-rs6000ly.h: Delete file.
9788 * config/sparc/xm-sparclynx.h: Delete file.
9789 * config/m68k/xm-m68klynx.h: Delete file.
9790 * config/i386/xm-i386lynx.h: Delete file.
9791 * config/xm-lynx.h: Delete file.
9792 * config/djgpp/fnchange.lst: Update.
9793
f8453e34
JT
97942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9795
9796 * alpha-tdep.c (alpha_register_byte): New function.
9797 (alpha_register_raw_size): Ditto.
9798 (alpha_register_virtual_size): Ditto.
9799 (alpha_skip_prologue_internal): Renamed from
9800 alpha_skip_prologue.
9801 (alpha_skip_prologue): New version that calls
9802 alpha_skip_prologue_internal.
9803 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9804 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9805 second argument from alpha_skip_prologue.
9806 (REGISTER_BYTE): Use alpha_register_byte.
9807 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9808 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9809 (FRAMELESS_FUNCTION_INVOCATION): Use
9810 generic_frameless_function_invocation_not.
9811 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9812 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9813
52d9e613
AC
98142002-01-19 Andrew Cagney <ac131313@redhat.com>
9815
9816 * config/mips/xm-news-mips.h: Delete file.
9817 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9818
9819 * config/m88k/xm-m88k.h: Delete file.
9820 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9821 * config/m88k/xm-delta88v4.h: Ditto.
9822 * config/m88k/xm-delta88.h: Ditto.
9823
9824 * config/alpha/xm-fbsd.h: Delete file.
9825 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9826
9827 * config/sparc/xm-sparc.h: Delete file.
9828 * Makefile.in (xm-sun4os4.h): Delete dependency.
9829 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9830 * config/sparc/xm-sun4os4.h: Ditto.
9831 * config/sparc/xm-linux.h: Ditto.
9832
9833 * config/i386/xm-windows.h: Delete file.
9834
2d1b2124
AC
98352002-01-19 Andrew Cagney <ac131313@redhat.com>
9836
9837 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9838 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9839
ee1f65f0
JT
98402002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9841
9842 * alpha-tdep.c (alpha_call_dummy_words): New.
9843 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9844 (CALL_DUMMY_P): Define.
9845 (CALL_DUMMY_WORDS): Define.
9846 (SIZEOF_CALL_DUMMY_WORDS): Define.
9847
98081e55
PB
98482002-01-19 Per Bothner <per@bothner.com>
9849
9850 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9851 isn't NULL, which can happen with some gcj-3.x-produced code.
9852
0d056799
JT
98532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * alpha-tdep.c (alpha_register_virtual_type): New function.
9856 (alpha_init_frame_pc_first): Ditto.
9857 (alpha_fix_call_dummy): Ditto.
9858 (alpha_store_struct_return): Ditto.
9859 (alpha_extract_struct_value_address): Ditto.
9860 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9861 alpha_register_virtual_type.
9862 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9863 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9864 alpha_extract_struct_value_address.
9865 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9866 (INIT_FRAME_PC): Use init_frame_pc_noop.
9867 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9868
4604bcad
MK
98692002-01-19 Mark Kettenis <kettenis@gnu.org>
9870
9871 * i386gnu-nat.c: Include "i386-tdep.h".
9872 (fetch_fpregs): Simplify code dealing with uninitialized floating
9873 point states such that it doesn't require FP7_REGNUM.
9874
140f9984
JT
98752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9876
abf22e64
AJ
9877 * alpha-tdep.c (frame_extra_info): New.
9878 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9879 frame->extra_info.
9880 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9881 (alpha_frame_saved_pc): Use frame->extra_info.
9882 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9883 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9884 (init_extra_frame_info): Rename to...
9885 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9886 (alpha_print_extra_frame_info): New function.
140f9984
JT
9887 (alpha_frame_locals_address): Ditto.
9888 (alpha_frame_args_address): Ditto.
abf22e64 9889 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9890 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9891 alpha_frame_args_address.
abf22e64 9892 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9893 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9894 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9895 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9896 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9897 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9898
d734c450
JT
98992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9900
9901 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9902 (alpha_cannot_fetch_register): Ditto.
9903 (alpha_cannot_store_register): Ditto.
9904 (alpha_register_convertible): Ditto.
9905 (alpha_use_struct_convention): Ditto.
9906 * config/alpha/tm-alpha.h: Update copyright years.
9907 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9908 (INNER_THAN): Use core_addr_lessthan.
9909 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9910 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9911 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9912 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9913 (FRAME_CHAIN): Remove unnecessary cast.
9914
b4ceaee6
AC
99152002-01-18 Andrew Cagney <ac131313@redhat.com>
9916
9917 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9918 obsolete.
9919
0a65a603
AC
99202002-01-18 Andrew Cagney <ac131313@redhat.com>
9921
9922 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9923 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9924 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9925 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9926 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9927 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9928 * x86-64-linux-nat.c: Ditto.
9929
636a6dfc
JT
99302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9931
abf22e64 9932 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9933 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9934 (REGISTER_NAME): Define.
9935
acceddb6
JT
99362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9937
9938 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9939
ec32e4be
JT
99402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9941
9942 * alpha-tdep.c: Update copyright years.
9943 (alpha_next_pc): New function.
9944 (alpha_software_single_step): Ditto.
9945 * config/alpha/tm-alpha.h: Add prototype for
9946 alpha_software_single_step.
9947
e771a871
JT
99482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9949
9950 * alphabsd-nat.c: Update copyright years.
9951 (fill_gregset): Use regcache_collect.
9952 (fill_fpregset): Likewise.
9953 (fetch_inferior_registers): Only fetch integer registers
9954 if requested to do so.
9955 (store_inferior_registers): Only store integer registers
9956 if requested to do so.
9957
7708fa01
AC
99582002-01-17 Andrew Cagney <ac131313@redhat.com>
9959
9960 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9961 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9962 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9963 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9964 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9965 * config/arm/linux.mh (XDEPFILES): Delete.
9966 * config/arm/nbsd.mh (XDEPFILES): Delete.
9967 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9968 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9969 * config/i386/i386m3.mh (XDEPFILES): Delete.
9970 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9971 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9972 * config/i386/fbsd.mh (XDEPFILES): Delete.
9973 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9974 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9975 * config/i386/i386v4.mh (XDEPFILES): Delete.
9976 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9977 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9978 * config/i386/i386aix.mh (XDEPFILES): Delete.
9979 * config/i386/go32.mh (XDEPFILES): Delete.
9980 * config/i386/cygwin.mh (XDEPFILES): Delete.
9981 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9982 * config/i386/i386mach.mh (XDEPFILES): Delete.
9983 * config/i386/i386v32.mh (XDEPFILES): Delete.
9984 * config/i386/linux.mh (XDEPFILES): Delete.
9985 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9986 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9987 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9988 * config/i386/i386sco.mh (XDEPFILES): Delete.
9989 * config/i386/i386v.mh (XDEPFILES): Delete.
9990 * config/i386/nbsd.mh (XDEPFILES): Delete.
9991 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9992 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9993 * config/i386/symmetry.mh (XDEPFILES): Delete.
9994 * config/i386/obsd.mh (XDEPFILES): Delete.
9995 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9996 * config/ia64/linux.mh (XDEPFILES): Delete.
9997 * config/ia64/aix.mh (XDEPFILES): Delete.
9998 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9999 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10000 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10001 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10002 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10003 * config/m68k/linux.mh (XDEPFILES): Delete.
10004 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10005 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10006 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10007 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10008 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10009 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10010 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10011 * config/m88k/delta88.mh (XDEPFILES): Delete.
10012 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10013 * config/m88k/m88k.mh (XDEPFILES): Delete.
10014 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10015 * config/mips/linux.mh (XDEPFILES): Delete.
10016 * config/mips/irix6.mh (XDEPFILES): Delete.
10017 * config/mips/irix5.mh (XDEPFILES): Delete.
10018 * config/mips/irix4.mh (XDEPFILES): Delete.
10019 * config/mips/irix3.mh (XDEPFILES): Delete.
10020 * config/mips/decstation.mh (XDEPFILES): Delete.
10021 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10022 (NATDEPFILES): Move core-aout.o to here.
10023 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10024 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10025 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10026 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10027 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10028 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10029 * config/pa/hpux11.mh (XDEPFILES): Delete.
10030 * config/powerpc/aix.mh (XDEPFILES): Delete.
10031 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10032 * config/powerpc/linux.mh (XDEPFILES): Delete.
10033 * config/romp/rtbsd.mh: Rename XDEPFILES.
10034 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10035 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10036 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10037 * config/s390/s390.mh (XDEPFILES): Delete.
10038 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10039 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10040 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10041 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10042 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10043 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10044 * config/sparc/linux.mh (XDEPFILES): Delete.
10045 * config/vax/vaxult.mh (XDEPFILES): Delete.
10046 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10047 * Makefile.in (DEPFILES): Remove XDEPFILES.
10048
375fc983
AC
100492002-01-17 Andrew Cagney <ac131313@redhat.com>
10050
10051 * utils.c (internal_verror): Fix comments, default is yes not no.
10052 Update queries to match. Default to quit and dump core.
10053
8926118c
AC
100542002-01-17 Andrew Cagney <ac131313@redhat.com>
10055
10056 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10057 copyright.
10058 * defs.h, event-top.c, gdbcmd.h: Ditto.
10059 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10060 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10061 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10062 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10063 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10064 * mi/mi-main.c:Ditto.
10065
10066 * stack.c, symfile.c: Update copyright.
10067
45b7b345
DJ
100682002-01-17 Daniel Jacobowitz <drow@mvista.com>
10069
db728ff7
DJ
10070 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10071 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10072 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10073 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10074
db728ff7
DJ
100752002-01-17 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10078 * gdbserver/low-lynx.c (myattach): Likewise.
10079 * gdbserver/low-nbsd.c (myattach): Likewise.
10080 * gdbserver/low-sim.c (myattach): Likewise.
10081 * gdbserver/low-sparc.c (myattach): Likewise.
10082 * gdbserver/low-sun3.c (myattach): Likewise.
10083
10084 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10085
db728ff7 10086 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10087 (main): Handle "--attach".
10088
8de3c354
AC
100892002-01-16 Andrew Cagney <ac131313@redhat.com>
10090
10091 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10092 maintainer.
10093
b0129042
DJ
100942002-01-15 Daniel Jacobowitz <drow@mvista.com>
10095
10096 * c-typeprint.c (is_type_conversion_operator): Add additional
10097 check for non-conversion operators.
10098
ba8679fb 100992002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10100
10101 * linux-proc.c: Add "info proc" command, a la procfs.c.
10102 (read_mapping): New function, abstract and re-use code.
10103 (linux_find_memory_regions): Use new func read_mapping.
10104 (linux_info_proc_cmd): New function, implement "info proc".
10105 (_initialize_linux_proc): Add new command "info proc".
10106
e4f9b4d5
MS
101072002-01-15 Michael Snyder <msnyder@redhat.com>
10108
10109 * symfile.c (generic_load): Use bfd_map_over_sections method
10110 instead of manipulating bfd structure members directly.
10111 (add_section_size_callback): New function, bfd sections callback
10112 used by generic_load.
10113 (load_sections_callback): New function, bfd sections callback
10114 used by generic_load.
10115
08cf96df
EZ
101162002-01-15 Elena Zannoni <ezannoni@redhat.com>
10117
abf22e64 10118 [Based on work by Jim Blandy]
08cf96df
EZ
10119 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10120 (builtin_type_vec128): Export.
10121 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10122 types.
10123 (builtin_type_vec128): New builtin type for 128 bit vector
10124 registers.
10125 (build_gdbtypes): Initialize builtin_type_v16qi and
10126 builtin_type_v8hi. Create the vec128 register builtin type
10127 structure.
10128 (build_builtin_type_vec128): New function.
abf22e64 10129 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10130 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10131 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10132 AltiVec register to new builtin type.
10133
d7242108
DJ
101342001-01-15 Daniel Jacobowitz <drow@mvista.com>
10135
10136 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10137 to make_cv_type.
10138
4ee3352d
AC
101392002-01-14 Andrew Cagney <ac131313@redhat.com>
10140
10141 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10142 CLEAN_UP_REGISTER_VALUE.
10143 * regcache.c (supply_register): Update only call.
10144
f015b2e7
AC
101452002-01-14 Andrew Cagney <ac131313@redhat.com>
10146
10147 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10148 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10149 a29k-*-vxworks* targets as obsolete.
10150
356ae49d
MS
101512002-01-14 Michael Snyder <msnyder@redhat.com>
10152
10153 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10154 until we can resolve portability issues.
10155 * gregset.h: Remove references to fpxregs.
10156 * gcore.c (gcore_command): Initialize note_sec to NULL.
10157
ade8f45e
AC
101582002-01-13 Andrew Cagney <ac131313@redhat.com>
10159
10160 * signals.c (target_signal_to_name): Rewrite. Only use
10161 signals[].name when in bounds and non-NULL.
abf22e64 10162
89c49e7a
AC
101632002-01-13 Andrew Cagney <ac131313@redhat.com>
10164
10165 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10166 * signals.c (target_signal_to_name): Verify that SIG is within the
10167 bounds of the signals array.
10168
4daa9f9f
AC
101692002-01-13 Andrew Cagney <ac131313@redhat.com>
10170
10171 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10172
ba4bbdcb
KS
101732002-01-13 Keith Seitz <keiths@redhat.com>
10174
10175 * stack.c (print_frame_info_base): Print the frame's pc
10176 only if when print_frame_info_listing_hook is not defined.
10177
575bbeb6
KS
101782002-01-13 Keith Seitz <keiths@redhat.com>
10179
10180 * varobj.c (varobj_set_value): Make sure that there were no
10181 errors evaluating the object before attempting to set its
10182 value.
10183 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10184 so this offset adjustment is no longer necessary.
10185 (create_child): Don't set the error flag if the child is
10186 a CPLUS_FAKE_CHILD.
10187 (value_of_child): If value_fetch_lazy fails, return NULL
10188 so that callers will be notified that an error occurred.
10189 (c_value_of_variable): Delay check of variable's validity
10190 until later. We actually want all structs and unions to have
10191 the value "{...}".
10192 Do not return "???" for variables which could not be evaluated.
10193 This error condition must be returned to the caller so that it
10194 can get the error condition from gdb.
10195 (cplus_name_of_child): Adjust index for vptr before figuring
10196 out the name of the child.
10197 (cplus_value_of_child): If a child's (real) parent is not valid,
10198 don't even bother trying to give a value for it. Just return
10199 an error. Change all instances in this function.
10200 (cplus_type_of_child): If our parent is one of the "fake"
10201 parents, we need to get at the type of the real parent, and
10202 derive the child's true type using this information.
10203
b76898ab
AC
102042002-01-13 Andrew Cagney <ac131313@redhat.com>
10205
10206 From 2002-01-09 John Marshall <johnm@falch.net>:
10207 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10208 sources.redhat.com, and tweak some related URLs which had
10209 suffered from linkrot.
10210
b6649e88
AC
102112002-01-13 Andrew Cagney <ac131313@redhat.com>
10212
10213 From Jeff law:
10214 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10215 structures passed in registers.
10216
82cc5033
EZ
102172002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10218
10219 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10220 white space which prevented compilation. Reported by DSK
10221 <dsk@student.unsw.edu.au>.
10222
ba5f2f8a
MS
102232002-01-11 Michael Snyder <msnyder@redhat.com>
10224
fbd35540
MS
10225 * symfile.c (build_section_addr_info_from_section_tab):
10226 Use bfd access method instead of manipulating bfd directly.
10227 (syms_from_objfile): Ditto.
10228 (simple_overlay_update_1): Ditto.
10229 (simple_overlay_update): Ditto.
10230 (generic_load): Ditto.
10231 (overlay_unmapped_address): FIXME comment, bfd access methods.
10232 (sections_overlap): FIXME comment, bfd access methods.
10233 (pc_in_mapped_range): FIXME comment, bfd access methods.
10234 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10235 (section_is_mapped): FIXME comment, bfd access methods.
10236 (section_is_overlay): FIXME comment, bfd access methods.
10237
ba5f2f8a
MS
10238 * symfile.c (generic_load): Whitespace and long line cleanups.
10239 Remove duplicate variable, change several local variables to
10240 more appropriate data types.
10241 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10242
17df2af6
AC
102432002-01-12 Andrew Cagney <ac131313@redhat.com>
10244
10245 From Peter Schauer:
10246 * language.c (longest_local_hex_string_custom): Use phex_nz to
10247 convert NUM to a hex string.
10248
ec920329
EZ
102492002-01-12 Elena Zannoni <ezannoni@redhat.com>
10250
10251 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10252 the function.
538a76d6 10253 Update Copyright year.
ec920329 10254
3abd2e01
AC
102552002-01-12 Andrew Cagney <ac131313@redhat.com>
10256
10257 * language.c (longest_raw_hex_string): Delete unused function.
10258
b21b22e0
PS
102592002-01-11 Petr Sorfa <petrs@caldera.com>
10260
10261 * MAINTAINERS (write-after-approval): Add myself.
10262 * dwarf2read.c (read_tag_string_type): Handling of
10263 DW_AT_byte_size.
10264 (read_tag_string_type): FORTRAN fix to prevent propagation of
10265 first string size.
10266 (set_cu_language): Handling of DW_LANG_Fortran95
10267
747fe712
RE
102682002-01-11 Richard Earnshaw <rearnsha@arm.com>
10269
10270 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10271 GETPID(inferior_ptid).
10272 (store_inferior_registers): Likewise.
10273
f1bea926
JM
102742002-01-10 Jason Merrill <jason@redhat.com>
10275
10276 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10277 Fix DW_OP_minus.
10278
ae940673
AC
102792002-01-10 Andrew Cagney <ac131313@redhat.com>
10280
10281 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10282 and bfd/elf32-sh-nbsd.c.
10283
00546b04
MS
102842002-01-10 Michael Snyder <msnyder@redhat.com>
10285
352ed7b4
MS
10286 * NEWS: Mention --pid and corefile/proc-id behavior change.
10287
c18be923
MS
10288 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10289 * gcore.c: Include cli/cli-decode.h instead of command.h.
10290
00546b04
MS
10291 * main.c (captured_main): Add new command line option "--pid".
10292 If the second command line argument (following the symbol-file)
10293 begins with a digit, try to attach to it before trying to open
10294 it as a corefile.
10295 (print_gdb_help): Document the "--pid" argument.
10296
db60ec62
EZ
102972002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10298
10299 * completer.c (command_completer): New function.
10300
10301 * completer.h <command_completer>: Add prototype.
10302
10303 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10304 completer for the "help" command.
10305
39c22d1a
JM
103062002-01-09 Jason Merrill <jason@redhat.com>
10307
10308 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10309
c564377f
MS
103102002-01-09 Michael Snyder <msnyder@redhat.com>
10311
975aec09
MS
10312 * i386-linux-nat.c (fill_fpxregset): Make global.
10313 (store_fpxregset): Ditto.
10314
db4a10fa
MS
10315 * gregset.h (gdb_fpxregset_t): Define.
10316 (supply_fpxregset): Prototype.
10317 (fill_fpxregset): Prototype.
10318
c564377f
MS
10319 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10320
c3d45d70
RE
103212002-01-09 Richard Earnshaw <rearnsha@arm.com>
10322
10323 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10324 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10325 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10326
fcc87af1
AC
103272002-01-09 Andrew Cagney <ac131313@redhat.com>
10328
10329 * MAINTAINERS: Update target maintainer rules so that any
10330 Maintainer can approve a tested patch for a maintenance-only
10331 target.
10332
dd96c05b
RE
103332002-01-09 Richard Earnshaw <rearnsha@arm.com>
10334
d4297db9 10335 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10336
d4297db9 10337 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10338 IN_SIGTRAMP.
10339
145fdc6e
MS
103402002-01-08 Michael Snyder <msnyder@redhat.com>
10341
10342 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10343 real name of the executable, rather than the /proc name.
10344
be4d1333
MS
103452002-01-03 Michael Snyder <msnyder@redhat.com>
10346
10347 Implement a "generate-core-file" command in gdb, save target state.
10348 * gcore.c: New file. Implement new command 'generate-core-file'.
10349 Save a corefile image of the current state of the inferior.
10350 * linux-proc.c: Add linux-specific code for saving corefiles.
10351 * target.h (struct target_ops): Add new target vectors for saving
10352 corefiles; to_find_memory_regions and to_make_corefile_notes.
10353 (target_find_memory_regions): New macro.
10354 (target_make_corefile_notes): New macro.
10355 * target.c (update_current_target): Inherit new target methods.
10356 (dummy_find_memory_regions): New place-holder method.
10357 (dummy_make_corefile_notes): New place-holder method.
10358 (init_dummy_target): Initialize new dummy target vectors.
10359 * exec.c (exec_set_find_memory_regions): New function.
10360 Allow the exec_ops vector for memory regions to be taken over.
10361 (exec_make_note_section): New function, target vector method.
10362 * defs.h (exec_set_find_memory_regions): Export prototype.
10363 * procfs.c (proc_find_memory_regions): New function, corefile method.
10364 (procfs_make_note_section): New function, corefile method.
10365 (init_procfs_ops): Set new target vector pointers.
10366 (find_memory_regions_callback): New function.
10367 (procfs_do_thread_registers): New function.
10368 (procfs_corefile_thread_callback): New function.
10369 * sol-thread.c (sol_find_memory_regions): New function.
10370 (sol_make_note_section): New function.
10371 (init_sol_thread_ops): Initialize new target vectors.
10372 * inftarg.c (inftarg_set_find_memory_regions): New function.
10373 Allow to_find_memory_regions vector to be taken over.
10374 (inftarg_set_make_corefile_notes): New function.
10375 Allow to_make_corefile_notes vector to be taken over.
10376 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10377 interface layer if not target_has_execution (may be a corefile).
10378 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10379 * config/sparc/sun4sol2.mh: Ditto.
10380 * config/alpha/alpha-linux.mh: Ditto.
10381 * config/arm/linux.mh: Ditto.
10382 * config/i386/x86-64linux.mh: Ditto.
10383 * config/ia64/linux.mh: Ditto.
10384 * config/m68k/linux.mh: Ditto.
10385 * config/mips/linux.mh: Ditto.
10386 * config/powerpc/linux.mh: Ditto.
10387 * config/sparc/linux.mh: Ditto.
10388
c6b92abd
MS
103892002-01-07 Michael Snyder <msnyder@redhat.com>
10390
10391 * arm-linux-nat.c: Remove references to regcache.c internal data
10392 (registers[] and register_valid[]).
10393
4b09dc8c
MS
103942002-01-07 Michael Snyder <msnyder@redhat.com>
10395
abf22e64
AJ
10396 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10397 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10398 symbol file and shlibs.
10399 * Makefile.in: Add rule for linux-proc.o.
10400 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10401 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10402 * config/arm/linux.mh: Ditto.
10403 * config/i386/linux.mh: Ditto.
10404 * config/i386/x86-64linux.mh: Ditto.
10405 * config/ia64/linux.mh: Ditto.
10406 * config/m68k/linux.mh: Ditto.
10407 * config/mips/linux.mh: Ditto.
10408 * config/powerpc/linux.mh: Ditto.
10409 * config/sparc/linux.mh: Ditto.
10410
c25b74ac
PM
104112002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10412
10413 * win32-nat.c: Add i386-tdep.h dependency.
10414
94cd915f
MS
104152002-01-07 Michael Snyder <msnyder@redhat.com>
10416
c7cccb76
MS
10417 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10418 instead of bfd_get_arch_size. Don't bail out just because
10419 there's no exec_bfd.
abf22e64 10420
34c0bd93
MS
10421 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10422 * p-valprint.c (pascal_object_print_value): Ditto.
10423 * somread.c (som_symtab_read): Ditto.
10424 * symfile.c (simple_free_overlay_region_table): Ditto.
10425 * valops.c (value_assign): Ditto.
10426
21c1c920
MS
10427 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10428 use tilde_expand and strerror for opening save-tracepoints file.
10429
5bbd998e
MS
10430 * thread-db.c (thread_db_new_objfile): Indendation fix.
10431
94cd915f
MS
10432 * infptrace.c (GDB_MAX_ALLOCA): New define.
10433 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10434 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10435 can be overridden with whatever value is appropriate to the host).
10436 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10437 alloca to allocate potentially large buffer.
10438 * rs6000-nat.c (child_xfer_memory): Ditto.
10439 * symm-nat.c (child_xfer_memory): Ditto.
10440 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10441
494e8a93
JSC
104422002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10443
10444 From Nick Clifton <nickc@redhat.com>
10445 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10446
d0e1d48e
MS
104472002-01-07 Michael Snyder <msnyder@redhat.com>
10448
abf22e64 10449 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10450 Don't use exec_bfd if it's NULL.
10451
290b2c7a
MK
104522002-01-06 Mark Kettenis <kettenis@gnu.org>
10453
abf22e64 10454 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10455
aef21287
AC
104562002-01-06 Andrew Cagney <ac131313@redhat.com>
10457
10458 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10459 * gnu-nat.c: Ditto.
10460
30efa627
AC
104612002-01-06 Andrew Cagney <ac131313@redhat.com>
10462
10463 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10464 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10465 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10466 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10467 z8k-coff have not been multi-arched. Update z8k-coff build
10468 status.
10469
9b4ff276
AC
104702002-01-06 Andrew Cagney <ac131313@redhat.com>
10471
10472 * MAINTAINERS: Mark a29k target as obsolete.
10473 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10474 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10475 comments.
10476 * NEWS: Note that a29k targets are obsolete.
10477 * a29k-tdep.c: Mark as obsolete.
10478 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10479 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10480 a29k-*-vxworks* targets as obsolete.
10481 * remote-adapt.c: Obsolete.
10482 * remote-eb.c: Obsolete.
10483 * remote-mm.c: Obsolete.
10484 * remote-udi.c: Obsolete.
10485 * config/a29k/a29k-udi.mt: Obsolete.
10486 * config/a29k/a29k.mt: Obsolete.
10487 * config/a29k/tm-a29k.h: Obsolete.
10488 * config/a29k/tm-vx29k.h: Obsolete.
10489 * config/a29k/vx29k.mt: Obsolete.
10490
a9011d31
AC
104912002-01-05 Andrew Cagney <ac131313@redhat.com>
10492
10493 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10494 with BFD_ENDIAN_BIG.
10495
9299404e
AC
104962002-01-05 Andrew Cagney <ac131313@redhat.com>
10497
10498 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10499 * configure, config.in: Re-generate.
10500 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10501 * defs.h: Do not include <endian.h>.
10502
7e89e357
JT
105032002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10504
10505 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10506 * config.in: Regenerate.
10507 * configure.in: Update copyright years.
10508 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10509 * configure: Regenerate.
10510 * i386bsd-nat.c: Update copyright years.
10511 (fill_gregset): Use regcache_collect.
10512 (fetch_inferior_registers): Only fetch integer registers
10513 if requested to do so. Add support for XMM registers
10514 using PT_GETXMMREGS.
10515 (store_inferior_registers): Only store integer registers
10516 if requested to do so. Add support for XMM registers
10517 using PT_SETXMMREGS.
10518 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10519 (store_inferior_registers): Remove.
10520 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10521 (fetch_elfcore_registers): New function.
10522 (i386nbsd_elfcore_fns): New.
10523 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10524 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10525 i386bsd-nat.o.
10526 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10527 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10528 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10529 * config/i386/tm-nbsd.h: Update copyright years.
10530 (HAVE_SSE_REGS): Define.
10531 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10532 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10533 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10534 (SIGCONTEXT_PC_OFFSET): Remove.
10535 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10536
a752853e
AC
105372002-01-05 Andrew Cagney <ac131313@redhat.com>
10538
10539 * configure.tgt: Remove powerpc-*-macos* target.
10540 * config/m68k/xm-mpw.h: Delete file.
10541 * config/xm-mpw.h: Delete file.
10542 * ser-mac.c: Delete file.
10543 * mpw-make.sed: Delete file.
10544 * mpw-config.in: Delete file.
10545 * mac-xdep.c: Delete file.
10546 * mac-gdb.r: Delete file.
10547 * mac-defs.h: Delete file.
10548 * mac-nat.c: Delete file.
10549 * config/powerpc/macos.mh: Delete file.
10550 * config/powerpc/macos.mt: Delete file.
10551 * config/powerpc/nm-macos.h: Delete file.
10552 * config/powerpc/tm-macos.h: Delete file.
10553 * source.c (openp, open_source_file): Remove obsolete code.
10554 * top.c (gdb_readline): Ditto.
10555 * utils.c (query): Ditto.
10556 * event-top.c (display_gdb_prompt): Ditto.
10557 * Makefile.in (ser-mac.o): Delete obsolete target.
10558 * NEWS: Update.
10559
d7449b42
AC
105602002-01-04 Andrew Cagney <ac131313@redhat.com>
10561
10562 * defs.h (BIG_ENDIAN): Delete macro definition.
10563 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10564 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10565 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10566 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10567 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10568 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10569 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10570 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10571 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10572 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10573 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10574 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10575 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10576 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10577 * gdbarch.c: Re-generate.
10578
356374e8
DJ
105792002-01-04 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10582 for core files.
10583
a2b8f8f8
JT
105842002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10585
10586 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10587
12466af9
AC
105882002-01-04 Andrew Cagney <ac131313@redhat.com>
10589
10590 * value.h (value_ptr): Delete typedef.
10591
3549ab40
JT
105922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10593
10594 * i386nbsd-nat.c: Update copyright years.
10595 Include i386-tdep.h.
10596
fedbd091
EZ
105972002-01-04 Elena Zannoni <ezannoni@redhat.com>
10598
10599 * stabsread.c: Update copyright years.
10600
10601 From Debashis Mahata <debashis.mahata@wipro.com>:
10602 (read_struct_fields): Deal with Sun C compiler erroneous stab
10603 output for structs and unions.
fec8b34f 10604 Fix PR gdb/269.
fedbd091 10605
eb43544b
DJ
106062002-01-04 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10609 prototype.
10610
1514d34e
DJ
106112002-01-04 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * cp-abi.c: Fix whitespace.
10614 (baseclass_offset): New wrapper function.
10615 * cp-abi.h (baseclass_offset): Add prototype.
10616 (struct cp_abi_ops): Add baseclass_offset pointer.
10617
10618 * valops.c (vb_match): Move to...
10619 * gnu-v2-abi.c (vb_match): here.
10620 * valops.c (baseclass_offset): Move to...
10621 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10622
10623 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10624
10625 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10626 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10627 * hpacc-abi.c (init_hpacc_ops): Likewise.
10628
7f8c9282
DJ
106292002-01-04 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * valops.c (find_overload_match): Accept obj as a
10632 reference parameter. Update it before returning.
10633 * value.h (find_overload_match): Update prototype.
10634 * eval.c (evaluate_subexp_standard): Pass object to
10635 find_overload_match by reference.
10636
f23631e4
AC
106372002-01-03 Andrew Cagney <ac131313@redhat.com>
10638
10639 * valarith.c: Replace value_ptr with struct value pointer. Remove
10640 register attribute from value declarations.
10641 * valops.c: Ditto.
10642 * value.h: Ditto.
10643 * scm-lang.c (scm_lookup_name): Ditto.
10644
79e10fab 106452002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10646
79e10fab
AC
10647 Abstract the functionality of iterating over mapped memory
10648 regions into a general purpose iterator function.
abf22e64 10649 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10650 iterator for memory sections.
10651 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10652 (solib_mappings_callback): New function, callback for above.
10653 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10654 (info_mappings_callback): New function, callback for above.
10655
10656 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10657
c5ad026a
MK
106582002-01-01 Mark Kettenis <kettenis@gnu.org>
10659
d2a7c97a
MK
10660 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10661 * i386-tdep.c: Include "elf-bfd.h".
10662 (process_note_abi_tag_sections): New function.
10663 (i386_gdbarch_init): Add code to recognize various OS/ABI
10664 combinations.
10665
c5ad026a
MK
10666 * maint.c (_initialize_maint_cmds): Add missing \ in
10667 string-literal.
10668
a1a5b71e 10669For older changes see ChangeLog-2001
c906108c
SS
10670\f
10671Local Variables:
10672mode: change-log
10673left-margin: 8
10674fill-column: 74
10675version-control: never
10676End:
This page took 0.767234 seconds and 4 git commands to generate.