* coffread.c (coff_symfile_read): Don't try to read the line
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ebeb39fe
JB
12002-08-22 Jim Blandy <jimb@redhat.com>
2
3 * coffread.c (coff_symfile_read): Don't try to read the line
4 number table from disk if the image file doesn't have a symbol
5 table; we'll never actually look at the info anyway, and Windows
6 ships DLL's with bogus file offsets for the line number data.
7
5bf1c677
EZ
82002-08-21 Elena Zannoni <ezannoni@redhat.com>
9
10 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
11 an e500 executable.
12
71b8ef93
MS
132002-08-21 Michael Snyder <msnyder@redhat.com>
14
15 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
16 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
17 (DEFAULT_MIPS_TYPE): Delete unused macro.
18 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
19 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 20
d174216d
JB
212002-08-21 Jim Blandy <jimb@redhat.com>
22
23 * valops.c (value_cast): Simplify and correct logic for doing a
24 static cast from a pointer to a base class to a pointer to a
25 derived class.
26
0ab7a791
AC
272002-08-21 Andrew Cagney <ac131313@redhat.com>
28
29 * infcmd.c (default_print_registers_info): Replace
30 do_registers_info.
31 (registers_info): Use gdbarch_print_registers_info instead of
32 DO_REGISTERS_INFO.
33 * inferior.h (default_print_registers_info): Replace
34 do_registers_info.
35 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
36 (DO_REGISTERS_INFO): Change to a predicate function.
37 * gdbarch.h, gdbarch.c: Regenerate.
38
e23792cc
KS
392002-08-21 Keith Seitz <keiths@redhat.com>
40
41 * gdb-events.sh: Add target-changed event.
42 * gdb-events.c: Regenerated.
43 * gdb-events.c: Regenerated.
44 * valops.c (value_assign): Add target-changed event notification
45 to inlval_register, lval_memory, and lval_reg_frame_relative.
46
9fb14e79
JB
472002-08-21 Joel Brobecker <brobecker@gnat.com>
48
49 * NEWS: Add an entry regarding the improvement of the next/step
50 operation on Alpha Tru64 multi-processor machines.
51
6d39a69f
AC
522002-08-21 Andrew Cagney <ac131313@redhat.com>
53
72acd513
AC
54 * Makefile.in: Update dependencies for mi/ cli/ and tui/
55 directores.
342af04b 56 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
57 * Makefile.in (install-gdbtk): Move to install section.
58 (rdi-share/libangsd.a): Move to end of file.
59
fa5f27c7
AC
602002-08-19 Andrew Cagney <ac131313@redhat.com>
61
62 * frame.c (frame_register_unwind): When a register, set addrp to
63 the register's byte.
64
5a89d8aa
MS
652002-08-20 Michael Snyder <msnyder@redhat.com>
66
67 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
68 used locally, so move them from the target machine header to here.
69 (mips_set_processor_type, mips_register_name, mips32_next_pc,
70 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
71 Make static.
72 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
73
822e978b
AC
742002-08-20 Andrew Cagney <cagney@redhat.com>
75
76 * NEWS: Mention that the Apollo line was made obsolete.
77 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
78 m68*-hp-hpux* obsolete.
79 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
80 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
81 * buildsym.c (make_blockvector): Make static.
82 * buildsym.h (make_blockvector): Make extern declaration obsolete.
83 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
84 (ALLDEPFILES): Remove dstread.c.
85 (dstread.o): Obsolete make rule.
86 * dstread.c: Makefile obsolete.
87 * dst.h: Ditto.
88 * config/m68k/hp300hpux.mt: Ditto.
89 * config/m68k/hp300hpux.mh: Ditto.
90 * config/m68k/hp300bsd.mt: Ditto.
91 * config/m68k/hp300bsd.mh: Ditto.
92 * config/m68k/apollo68b.mt: Ditto.
93 * config/m68k/apollo68v.mh: Ditto.
94 * config/m68k/apollo68b.mh: Ditto.
95
e41b17f0
MS
962002-08-20 Michael Snyder <msnyder@redhat.com>
97
98 * mips-tdep.c (mips_in_return_stub): Make static.
99 (mips_gdbarch_init): Set in_solib_return_trampoline.
100 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
101
d50355b6
MS
1022002-08-20 Michael Snyder <msnyder@redhat.com>
103
104 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
105 * gdbarch.c, gdbarch.h: Regenerate.
106 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
107 Add.
108 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
109
757a7cc6
MS
1102002-08-20 Michael Snyder <msnyder@redhat.com>
111
112 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
113 (mips_gdbarch_init): Set skip_trampoline_code,
114 in_solib_call_trampoline.
115 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
116 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
117
c8001721
EZ
1182002-08-20 Elena Zannoni <ezannoni@redhat.com>
119
120 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
121
122 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
123 vector type for ev registers.
124 (e500_pseudo_register_read): New function.
125 (e500_pseudo_register_write): New function.
126 (e500_dwarf2_reg_to_regnum): New function.
127 (PPC_UISA_NOFP_SPRS): New macro.
128 (PPC_EV_REGS): New macro.
129 (PPC_GPRS_PSEUDO_REGS): New macro.
130 (registers_e500): New register set for e500.
131 (variants): Add e500 variant.
132 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
133 before setting architectural dependent variations. Initialize ev
134 registers numbers. Add case for e500 architecture. Set the
135 number of pseudo registers.
136
64366f1c
EZ
1372002-08-20 Elena Zannoni <ezannoni@redhat.com>
138
139 * rs6000-tdep.c: Clean up comments.
140
7e78f0ca
AC
1412002-08-20 Andrew Cagney <cagney@redhat.com>
142
143 * h8300-tdep.c: Re-indent file.
144
697f7479
JB
1452002-08-20 Jim Blandy <jimb@redhat.com>
146
147 * Makefile.in (LDFLAGS): Allow the configure script to establish a
148 default for this.
149 * gdbserver/Makefile.in (LDFLAGS): Same.
150
e86ae29f
KS
1512002-08-20 Keith Seitz <keiths@redhat.com>
152
153 * breakpoints.c (watch_command_1): Use internal breakpoint
154 when setting a watchpoint_scope breakpoint.
155
216b504f
EZ
1562002-08-20 Elena Zannoni <ezannoni@redhat.com>
157
158 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
159 (build_builtin_type_vec64i): Ditto.
160 (build_builtin_type_vec128): Ditto.
161 (build_builtin_type_vec128i): Ditto.
162
f7ab6ec6
MS
1632002-08-19 Michael Snyder <msnyder@redhat.com>
164
165 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
166 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
167 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
168 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
169 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
170 CALL_DUMMY_ADDRESS): Delete.
171 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
172 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
173 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
174 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
175 push_return_address.
176 (mips_register_raw_size, mips_eabi_use_struct_convention,
177 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
178 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
179 mips_init_extra_frame_info, mips_eabi_push_arguments,
180 mips_n32n64_push_arguments, mips_push_return_address,
181 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
182 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
183
b5d1566e
MS
1842002-08-19 Michael Snyder <msnyder@redhat.com>
185
186 * mips-tdep.c (mips_frame_num_args): New function.
187 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
188 frame_saved_pc, frame_args_address, frame_locals_address,
189 frame_num_args, and frame_args_skip.
190 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
191 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
192 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
193 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
194
2f1488ce
MS
1952002-08-20 Michael Snyder <msnyder@redhat.com>
196
197 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
198 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
199 * mips-tdep.c (mips_store_struct_return): New function.
200 (mips_extract_struct_value_address): New function.
201 (mips_gdbarch_init): Set store_struct_return and
202 extract_struct_value_address.
203
41ff2da1
DC
2042002-08-20 David Carlton <carlton@math.stanford.edu>
205
206 * dwarf2read.c (dwarf2_build_psymtabs): Check that
207 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
208 (read_file_scope): Check that line_header is nonzero before
209 decoding macro information.
210
e5451d58
MK
2112002-08-20 Mark Kettenis <kettenis@gnu.org>
212
213 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
214 flag the general-purpose registers as floating-point on targets
215 that don't support the floating-point registers.
216
4a6daafa
EZ
2172002-08-20 Elena Zannoni <ezannoni@redhat.com>
218
219 * rs6000-tdep.c (altivec_register_p): Delete.
220 (rs6000_do_altivec_registers): Delete.
221 (rs6000_altivec_registers_info): Delete.
222 (rs6000_do_registers_info): Delete.
223 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
224 (rs6000_gdbarch_init): Remove setting of do_registers_info.
225
ab4327e0
EZ
2262002-08-20 Elena Zannoni <ezannoni@redhat.com>
227
228 * infcmd.c (do_registers_info): Print vector registers in hex
229 format only.
230 (print_vector_info): Check that printing registers
231 makes sense.
232 (print_float_info): Ditto.
233
cb1d2653
AC
2342002-08-20 Andrew Cagney <ac131313@redhat.com>
235
236 * mips-tdep.c (mips_gdbarch_init): Update.
237 (mips_o32_extract_return_value): Rewrite.
238 (mips_o32_store_return_value): Rewrite.
239 (mips_o32_xfer_return_value): New function.
240 (mips_xfer_register): Tweak debug print message. Allow for
241 buf_offset when dumping the value transfered.
242
dfc3d9b2
AC
2432002-08-20 Andrew Cagney <ac131313@redhat.com>
244
245 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
246 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
247 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
248 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
249 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
250
7807aa61
MS
2512002-08-14 Michael Snyder <msnyder@redhat.com>
252
253 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
254
489461e2
EZ
2552002-08-19 Elena Zannoni <ezannoni@redhat.com>
256
257 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
258 register.
259 (P): New macro to define a register as a pseudo register.
260 (R, R4, R8, R16, FR32, R64, R0): Updated.
261 (struct variant): Add new fields for number of pseudo registers
262 and number of total registers.
263 (tot_num_registers): New macro replacing....
264 (num_registers): ...deleted macro.
265 (num_registers): New function.
266 (num_pseudo_registers): New function.
267 (variants): Update all variants to intialize new fields correctly.
268 Postpone initialization of number of pseudo regs and real regs.
269 (init_variants): New function.
270 (rs6000_gdbarch_init): Initialize variants. Update calculation of
271 registers offsets.
272
fcaffe4c
DC
2732002-08-19 David Carlton <carlton@math.stanford.edu>
274
2c2738a0
DC
275 * valops.c (search_struct_field): Change error message to treat
276 return value of 0 from value_static_field as meaning that field is
277 optimized out.
278 (value_struct_elt_for_reference): Ditto.
279 * values.c (value_static_field): Treat an unresolved location the
280 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
281 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
282 enclosed. Fix PR gdb/574.
fcaffe4c
DC
283 * MAINTAINERS: Add self to Write After Approval list.
284
88658117
AC
2852002-08-19 Andrew Cagney <ac131313@redhat.com>
286
287 * mips-tdep.c (mips_xfer_register): New function.
288 (mips_n32n64_extract_return_value): Rewrite.
289 (mips_gdbarch_init): For N32 and N64, set extract_return_value
290 instead of deprecated_extract_return_value.
291
21283beb
EZ
2922002-08-19 Elena Zannoni <ezannoni@redhat.com>
293
294 * rs6000-tdep.c (TDEP): Delete macro.
295 (branch_dest): Replace use of TDEP macro with its body.
296 (rs6000_pop_frame): Ditto.
297 (rs6000_push_arguments): Ditto.
298 (rs6000_skip_trampoline_code): Ditto.
299 (rs6000_frame_saved_pc): Ditto.
300 (rs6000_frame_chain): Ditto.
301 (rs6000_register_name): Ditto.
302 (rs6000_register_byte): Ditto.
303 (rs6000_register_raw_size): Ditto.
304 (rs6000_register_virtual_type): Ditto.
305 (rs6000_register_convertible): Ditto.
306 (rs6000_convert_from_func_ptr_addr): Ditto.
307
bf072999
DJ
3082002-08-19 Daniel Jacobowitz <drow@mvista.com>
309
310 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
311 conditionally.
312 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
313 MIPS_LINUX_JB_ELEMENT_SIZE.
314 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
315 for MAX_REGISTER_RAW_SIZE arrays.
316 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
317 MIPS_LINUX_JB_ELEMENT_SIZE.
318
9b949a49
PM
3192002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
320
321 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
322
6d3e79c6
AS
3232002-08-19 Aidan Skinner <aidan@velvet.net>
324
325 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
326 ada-valprint.c ada-tasks.c.
327 (YYFILES): Add ada-exp.y.
328 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
329 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
330 (ada-exp.tab.o): New target.
331
06c0b04e
AC
3322002-08-18 Andrew Cagney <ac131313@redhat.com>
333
334 * regcache.c (regcache_xfer_part): New function.
335 (regcache_raw_read_part): New function.
336 (regcache_raw_write_part): New function.
337 (regcache_cooked_read_part): New function.
338 (regcache_cooked_write_part): New function.
339 * regcache.h (regcache_raw_read_part): Declare.
340 (regcache_raw_write_part): Declare.
341 (regcache_cooked_read_part): Declare.
342 (regcache_cooked_write_part): Declare.
343
92d1e331
DJ
3442002-08-18 Daniel Jacobowitz <drow@mvista.com>
345
346 * remote.c (remote_open_1): Add async_p.
347 (remote_async_open_1): Delete.
348 (open_remote_target): Delete.
349 (remote_open, extended_remote_open): Update calls to remote_open_1.
350 (remote_async_open, extended_remote_async_open): Call
351 remote_open_1 instead of remote_async_open_1.
352
247055de
MK
3532002-08-19 Mark Kettenis <kettenis@gnu.org>
354
355 * blockframe.c: Fix a few coding standard violations.
356
641eda39
MK
3572002-08-19 Mark Kettenis <kettenis@gnu.org>
358
0b717710
MK
359 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
360 here from ...
361 * config/i386/tm-i386sco5.h: ... here. File removed.
362 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
363
26d28e12 364 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
365 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
366 (TM_FILE): Set to tm-i386.h.
367 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
368 * config/i386/tm-i386v.h: Remove file.
369 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
370 instead of "i386/tm-i386v.h".
371 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
372 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
373 "i386/tm-i386v.h".
374 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
375 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
376 "i386/tm-i386.h".
377
d4e0bab4
MK
3782002-08-18 Mark Kettenis <kettenis@gnu.org>
379
380 * config/i386/nm-i386v.h: Add protection against
381 multiple-inclusion.
382 (i386_register_u_addr): Remove prototype.
383 (register_u_addr): New prototype.
384 (REGISTER_U_ADDR): Redefine accordingly.
385 * i386v-nat.c: Improve several comments.
386 (i386_register_u_addr): Change signature and rename to
387 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
388 ubase variable.
389
46cac009
AC
3902002-08-18 Andrew Cagney <ac131313@redhat.com>
391
392 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
393 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
394 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
395 deprecated_extract_return_value.
396 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
397 rename mips_o32o64_push_arguments.
398 (mips_gdbarch_init): Update.
399 (mips_extract_return_value): Delete.
400 (mips_o32_extract_return_value): Clone mips_extract_return_value.
401 (mips_o64_extract_return_value): Clone mips_extract_return_value.
402 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
403 (mips_n32n64_extract_return_value): Clone
404 mips_extract_return_value.
405 (mips_store_return_value): Delete.
406 (mips_o32_store_return_value): Clone mips_store_return_value.
407 (mips_o64_store_return_value): Clone mips_store_return_value.
408 (mips_eabi_store_return_value): Clone mips_store_return_value.
409 (mips_n32n64_store_return_value): Clone mips_store_return_value.
410
d2e4a39e
AS
4112002-08-18 Aidan Skinner <aidan@velvet.net>
412
0c30c098
AS
413 * ada-lang.c: Use gdb_string.h instead of <string.h>.
414 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
415
4162002-08-18 Aidan Skinner <aidan@velvet.net>
417
418 * ada-lang.c: Run through gdb_indent.sh.
419 * ada-lang.h: Run through gdb_indent.sh.
420 * ada-tasks.c: Run through gdb_indent.sh.
421 * ada-typeprint.c: Run through gdb_indent.sh.
422 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 423
01fc4e33
AC
4242002-08-18 Andrew Cagney <ac131313@redhat.com>
425
426 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
427 ABI.
428
d8ee244c
MK
4292002-08-18 Mark Kettenis <kettenis@gnu.org>
430
c38d8261
MK
431 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
432
222db64c
MK
433 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
434 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
435
c2848c82
MK
436 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
437 write_register_gen instead of write_register_bytes.
438
d8ee244c
MK
439 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
440 i[3456]-*-osf1mk* configurations have been made obsolete.
441 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
442 i[3456]86-*-osf1mk* hosts obsolete.
443 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
444 targets obsolete.
445 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
446 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
447 config/i386/i386m3.mt, config/i386/nm-m3.h,
448 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
449 config/i386/i386mk.mh, config/i386/i386mk.mt,
450 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
451 obsolete.
452 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
453 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
454 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
455
61d8d407
AC
4562002-08-18 Andrew Cagney <ac131313@redhat.com>
457
458 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
459 (hppa_value_returned_from_stack): Declare.
460 (hppa_extract_return_value): Declare.
461 * config/pa/hppa.mt: New file.
462 * configure.tgt: Recognize hppa*-*-*.
463 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
464
0c52bd59
MK
4652002-08-18 Mark Kettenis <kettenis@gnu.org>
466
467 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
468 comment.
469
b5686e99
MK
4702002-08-17 Mark Kettenis <kettenis@gnu.org>
471
472 * top.c (gdb_rl_operate_and_get_next): Make sure
473 operate-and-get-next functions correctly even when the history
474 list is completely filled.
475
c1bab85b
AC
4762002-08-18 Andrew Cagney <ac131313@redhat.com>
477
478 * MAINTAINERS (Target Instruction Set Architectures): Rename
479 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
480 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
481 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
482 already listed under Host/Native.
483
484 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
485 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
486 mips*-*-*.
487
32089c7c
AC
4882002-08-17 Andrew Cagney <ac131313@redhat.com>
489
490 * config/ia64/ia64.mt: New file.
491 * config/alpha/alpha.mt: New file.
492 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
493 ia64-linux-gnu. Mention that ia64-elf is broken.
494 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
495
b4671f85
MK
4962002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
497
498 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
499 generic_func_frame_valid instead of func_frame_valid.
500
c8edd8b4
JB
5012002-08-16 Joel Brobecker <brobecker@gnat.com>
502
503 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
504 procfs appears to be broken when debugging on multi-processor
505 machines. So enable software single stepping in order to avoid
506 using the procfs interface to do next/step operations, using
507 internal breakpoints instead.
508
509 * infrun.c (handle_inferior_event): Readjust the stop_pc by
510 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
511 make this pc address equal to the value it would have if the
512 system stepping capability was used. Also set a new flag used
513 to ensure that we don't readjust the PC one more time later.
514
515 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
516 address by DECR_PC_AFTER_BREAK when software single step is
517 in use for this architecture, as this has already been taken
518 care of in handle_inferior_event().
519
238617f6
JB
5202002-08-16 Joel Brobecker <brobecker@gnat.com>
521
522 * infrun.c (handle_inferior_event): Minor reformatting, to make
523 a rather long condition expression easier to read.
524
541a7aac
AC
5252002-08-16 Andrew Cagney <ac131313@redhat.com>
526
527 * Makefile.in (gdbtk.o): Move to end of file.
528 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
529 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
530 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
531 (gdbtk-wrapper.o, gdbres.o): Ditto.
532
f92d4a7b
AC
5332002-08-16 Andrew Cagney <ac131313@redhat.com>
534
535 * Makefile.in (copying.o): Separate out compile rule.
536 (hpux-thread.o, procfs.o, signals.o): Ditto.
537 (v850ice.o, z8k-tdep.o): Ditto.
538 (tui-file.o): Move to TUI section.
539 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
540 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
541
1cce71eb
JB
5422002-08-16 Joel Brobecker <brobecker@gnat.com>
543
544 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
545 skip_trampoline_code, for better namespace-proofing.
546
547 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
548
0851f23d
JB
5492002-08-16 Joel Brobecker <brobecker@gnat.com>
550
551 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
552
f8d40ec8
JB
5532002-08-16 Joel Brobecker <brobecker@gnat.com>
554
555 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
556 signal, check whether we hit a breakpoint before checking for a
557 single step breakpoint. Otherwise, GDB fails to notice that a
558 breakpoint has been hit when stepping onto a breakpoint.
559
63d022e0
KS
5602002-08-16 Keith Seitz <keiths@redhat.com>
561
562 * gdb-events.sh (clear_gdb_event_hooks): New function.
563 * gdb-events.c: Regenerate.
564 * gdb-events.h: Regenerate.
565
6e31adb3
AC
5662002-08-16 Andrew Cagney <ac131313@redhat.com>
567
568 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
569 not_a_sw_breakpoint.
570 * breakpoint.h (bpstat_stop_status): Add parameter names.
571
c8189ed1
GS
5722002-08-16 Grace Sainsbury <graces@redhat.com>
573
574 * remote.c (remote_insert_hw_breakpoint)
575 (remote_remove_hw_breakpoint): Fix calculation of length field
576 for Z-packet.
577
d05285fa
MS
5782002-08-15 Michael Snyder <msnyder@redhat.com>
579
466d7106
MS
580 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
581 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
582 (supply_fpregset): Ditto.
583
d05285fa
MS
584 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
585 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
586 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 587 (TARGET_READ_SP): Delete.
bf1f5b4c 588 (DO_REGISTERS_INFO): Delete.
102182a9
MS
589 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
590 Delete.
591 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
592 from macros to functions.
bf1f5b4c 593
d05285fa
MS
594 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
595 (mips_register_convertible, mips_register_convert_to_virtual,
596 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
597 (mips_read_sp): New function.
598 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
599 (mips_do_registers_info): Make static.
600 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
601 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
602 (mips_register_convert_from_type, mips_register_convert_to_type):
603 New functions.
604 (mips_gdbarch_init): Set up function_start_offset,
605 register_virtual_size, pc_in_sigtramp.
d05285fa 606
e76f1f2e
AC
6072002-08-15 Andrew Cagney <ac131313@redhat.com>
608
609 * infcmd.c (vector_info): New function.
610 (_initialize_infcmd): Add command "info vector".
611 (print_vector_info): New function.
612
613 * gdbarch.sh (PRINT_VECTOR_INFO): New method
614 * gdbarch.h, gdbarch.c: Regenerate.
615
4782dc19
AC
6162002-08-15 Andrew Cagney <ac131313@redhat.com>
617
618 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
619 ``print_all''. Only print vector registers when ``print_all''.
620
23e3a7ac
AC
6212002-08-15 Andrew Cagney <ac131313@redhat.com>
622
8e186fd6
AC
623 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
624 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
625
23e3a7ac
AC
626 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
627 Add `args' parameter.
628 * gdbarch.h, gdbarch.c: Regenerate.
629
630 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
631
632 * infcmd.c (float_info): Call print_float_info.
633 (print_float_info): New function. By default, print the
634 floating-point registers.
635
636 * arch-utils.h (default_print_float_info): Delete declaration.
637 * arch-utils.c (default_print_float_info): Delete function.
638
e0ca2bb9
MK
6392002-08-16 Mark Kettenis <kettenis@gnu.org>
640
3f733acc
MK
641 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
642 out define.
643
7d8d2918
MK
644 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
645 FRAME.
646
1c7cc583
MK
647 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
648 * configure.host: Make i[3456]86-*-aix host obsolete.
649 * configure.tgt: Make i[3456]86-*-aix target obsolete.
650 * config/i386/i386aix.mh, config/i386/i386aix.mt,
651 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
652 config/i386/xm-i386aix.h: Make files obsolete.
653 * i386aix-nat.c: Make file obsolete.
654 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
655 (i386aix-nat.o): Make target obsolete.
656
e0ca2bb9
MK
657 * config/i386/nm-gnu.h: Removed.
658 * config/i386/nm-i386gnu.h: New file.
659 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
660 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
661 Moved here from ...
662 * config/i386/tm-i386gnu.h: ... here. Removed.
663 * config/i386/xm-i386gnu.h: Removed.
664 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
665 (NAT_FILE): Set to nm-i386gnu.h.
666 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
667 * i386-tdep.c: New file.
668 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
669 (i386gnu-tdep.o): Specify dependencies.
670
16057ec7 6712002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 672
6b99ee2e
MK
673 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
674 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
675 Adjust a few comments to reflect reality a bit closer.
676 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
677 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
678 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
679 target_insert_watchpoint, target_remove_watchpoint):
680 Move defines to ...
681 * config/i386/nm-i386sco5.h: ... here.
682 (kernel_u_size): Add prototype. Improve a few comments and add
683 protection against multiple inclusion.
684
d9a6f65c
MK
685 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
686 out define.
687
047eff6a
MK
688 * uw-thread.c (SP_ARG0): Define if not already defined.
689 * config/i386/tm-i386.h (SO_ARG0): Remove define.
690
dcdb1290
MK
691 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
692
5d2d0b2a
MK
693 * config/i386/tm-i386.h: Don't include "regcache.h".
694
61113f8b
MK
695 * i387-tdep.h (i387_print_float_info): New prototype.
696 * i387-tdep.c (print_i387_value, print_i387_ext,
697 print_i387_status_word, print_i387_control_word): Add `struct
698 ui_file *' argument and use it for output.
699 (i387_print_float_info): Renamed from i387_float_info. Add
700 `struct gdbarch *' and `struct ui_file *' arguments and use the
701 latter for output.
702 * i386-tdep.c: Include "i387-tdep.h".
703 (i386_gdbarch_init): Set print_float_info.
704 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
705 (FLOAT_INFO): Remove define.
706
46e0f506
MS
7072002-08-13 Michael Snyder <msnyder@redhat.com>
708
709 * mips-tdep.c (mips_push_arguments): Rename to
710 mips_eabi_push_arguments, and tune for EABI.
711 (MIPS_REGS_HAVE_HOME_P): Delete.
712 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
713 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
714 Delete references to mips_regs_have_home_p.
715
409268de
KS
7162002-08-14 Keith Seitz <keiths@redhat.com>
717
718 * Makefile.in (install-gdbtk): Create insight plugin directory.
719 Install plugins.tcl file.
720
ffc6a242
KS
7212002-08-14 Keith Seitz <keiths@redhat.com>
722
723 * configure.in: Move SUBDIRS to near top of the file so that
724 --enable options may add things to it.
725 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
726 * configure: Regenerate.
727
ebafbe83
MS
7282002-08-13 Michael Snyder <msnyder@redhat.com>
729
730 * mips-tdep.c (mips_o32o64_push_arguments): New function,
731 cloned from mips_push_arguments, tuned for o32/o64 ABI.
732 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
733
32f6f25d
AC
7342002-08-13 Andrew Cagney <ac131313@redhat.com>
735
736 * vax-tdep.c (vax_get_saved_register): Delete function.
737 (vax_gdbarch_init): Update.
738 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
739 (ns32k_gdbarch_init): Update.
740 * alpha-tdep.c (alpha_get_saved_register): Delete function.
741 (alpha_gdbarch_init): Update.
742
53826de9
AC
7432002-08-13 Andrew Cagney <cagney@redhat.com>
744
745 * regcache.c (init_regcache_descr): Overallocate the
746 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
747 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
748 nr_raw_registers.
749 (set_register_cached): Add range checking assertions. Use
750 current_regcache.
751
16057ec7 7522002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
753
754 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
755 numbers for MMX registers.
756
7b4c2dce
AC
7572002-08-13 Andrew Cagney <cagney@redhat.com>
758
759 * i386-tdep.c (i386_gdbarch_init): Use
760 generic_unwind_get_saved_register.
761
1e03ad20
KB
7622002-08-13 Kevin Buettner <kevinb@redhat.com>
763
764 * procfs.c (procfs_can_use_hw_breakpoint): New function.
765 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
766 target vector.
767 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
768 Delete. Add comment regarding this now-deleted target method.
769
548bcbec
SC
7702002-08-13 Stephane Carrez <stcarrez@nerim.fr>
771
772 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
773 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
774 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
775 real PC and the page number (if it's within the memory bank window).
776 (m68hc11_pseudo_register_write): Likewise when saving.
777 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
778 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
779 (m68hc11_register_raw_size): And use 32-bit for it.
780 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
781 16K memory bank is used by the prog; also use the virtual pc.
782
7df11f59
SC
7832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
784
785 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
786 (m68hc11_gdbarch_init): Install it in gdbarch.
787 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
788 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
789 (MSYMBOL_SIZE): New for documentation.
790 (insn_return_kind): Enum to specify how a function returns.
791 (frame_extra_info): Cleanup and record the return mode.
792 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
793 register in address computation.
794 (m68hc11_get_return_insn): New to obtain the return instruction used
795 by the function.
796 (m68hc11_frame_init_saved_regs): Take into account the return
797 instruction used by the function for far and interrupt functions.
798 (m68hc11_init_extra_frame_info): Take into account page register.
799 (m68hc11_frame_args_address): Adjust according to the return mode.
800 (show_regs): Print page register only when it's used.
801
5706502a
SC
8022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
803
804 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
805 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
806 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
807 registers.
808 (m68hc11_register_raw_size): Likewise.
809
28fc6740
AC
8102002-08-13 Andrew Cagney <cagney@redhat.com>
811
812 * i386-tdep.c (i386_register_name): Handle mmx registers.
813 (mmx_regnum_p): New function.
814 (i386_mmx_names): New array.
815 (mmx_num_regs): New variable.
816 (i386_pseudo_register_read): New function.
817 (i386_pseudo_register_write): New function.
818 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
819
820 * regcache.c (regcache_raw_read_unsigned): New function.
821 (regcache_raw_read_signed): New function.
822 * regcache.h (regcache_raw_read_unsigned): Declare.
823 (regcache_raw_read_signed): Declare.
824
a378f419
AC
8252002-08-13 Andrew Cagney <cagney@redhat.com>
826
827 * regcache.c (regcache_raw_read_as_address): Delete function.
828 (regcache_cooked_read_signed): New function.
829 (regcache_cooked_read_unsigned): New function.
830 * regcache.h (regcache_cooked_read_signed): Declare.
831 (regcache_cooked_read_unsigned): Declare.
832 (regcache_raw_read_as_address): Delete declaration.
833
834 * blockframe.c (generic_read_register_dummy): Use
835 regcache_cooked_read_unsigned.
836 * i386-tdep.c (i386_extract_struct_value_address): Use
837 regcache_cooked_read_unsigned.
838
81967506
SC
8392002-08-13 Stephane Carrez <stcarrez@nerim.fr>
840
841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
842 double sizes according to ELF ABI flags.
843 (gdbarch_tdep): Record elf_flags.
844
ffe1f3ee
SC
8452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
846
847 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
848 (m6812_prolog): They can appear in 68HC12 function prologue.
849 (m68hc11_frame_chain): Cleanup.
850
98216c5d
AC
8512002-08-12 Andrew Cagney <cagney@redhat.com>
852
853 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
854 declarations.
855 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
856 (i386_linux_register_raw_size): Delete function.
857 (i386_linux_init_abi): Update.
858 * i386-tdep.c (i386_register_raw_size): Delete function.
859 (i386_register_byte): Delete function.
860 (i386_gdbarch_init): Update.
861 (i386_register_size): Delete array.
862 (i386_register_offset): Delete array.
863
864 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
865 (REGISTER_RAW_SIZE): Delete macro.
866 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
867 (REGISTER_BYTE): Delete macro.
868
3b19021e
AS
8692002-08-11 Aidan Skinner <aidan@velvet.net>
870
871 * ada-lang.c (ada_lookup_partial_symbol)
872 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
873 prototype names so that grep ^func works properly.
874
875 * ada-lang.c (ada_array_element_type)
876 (ada_lookup_partial_symbol): Fix typos in parameter list.
877
878 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
879 Fix prototype names so that grep ^func works properly.
880
b063e7a2
AC
8812002-08-10 Andrew Cagney <cagney@redhat.com>
882 Elena Zannoni <ezannoni@redhat.com>
883 Martin M. Hunt <hunt@redhat.com>
884
885 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
886 (build_builtin_type_vec128i): Set the vector bit.
887 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
888 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
889 (build_builtin_type_vec64): New function.
890 (build_builtin_type_vec64i): New function.
891 (build_gdbtypes): Initialize builtin_type_vec64 and
892 builtin_type_vec64i.
893
a7e3c2ad
AC
8942002-08-09 Andrew Cagney <cagney@redhat.com>
895
896 * regcache.c (regcache_dump): Compare the register offset
897 with REGISTER_BYTE.
898 * arch-utils.c (generic_register_byte): New function.
899 * arch-utils.h (generic_register_byte): Declare.
900 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
901 * gdbarch.h, gdbarch.c: Regenerate.
902
af030b9a
AC
9032002-08-09 Andrew Cagney <cagney@redhat.com>
904
905 * regcache.c: Include "gdbcmd.h"
906 (_initialize_regcache): Add commands "maintenance print
907 registers", "maintenance print raw-registers" and "maintenance
908 print cooked-registers".
909 (enum regcache_dump_what): Define.
910 (dump_endian_bytes): New function.
911 (regcache_dump): New function.
912 (regcache_print): New function.
913 (maintenance_print_registers): New function.
914 (maintenance_print_raw_registers): New function.
915 (maintenance_print_cooked_registers): New function.
916 * Makefile.in (regcache.o): Update dependencies.
917
cb3d25d1
MS
9182002-08-09 Michael Snyder <msnyder@redhat.com>
919
920 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
921 (mips_push_arguments): Correct some comments. Use paddr_nz
922 for printing addresses in debug output. Replace static
923 allocation using MAX_REGISTER_RAW_SIZE with alloca.
924 (mips_n32n64_push_arguments): New function, cloned from
925 mips_push_arguments and tuned for the n32/n64 ABI.
926 (mips_push_register): Buffer needs dynamic allocation.
927 (mips_print_register): Ditto.
928 (do_gp_register_row): Ditto.
929 (mips_store_return_value): Ditto.
930 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
931
2163ab9d
DH
9322002-08-09 Don Howard <dhoward@redhat.com>
933
934 * memattr.c (mem_info_command): Print special case of upper bound
935 as max CORE_ADDR + 1.
936
b78bcb18
MS
9372002-08-08 Michael Snyder <msnyder@redhat.com>
938
939 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
940 returns structs by ref if they're too big to fit in two registers.
941
ffabd70d
KB
9422002-08-09 Kevin Buettner <kevinb@redhat.com>
943
944 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
945 saved regs value.
946 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
947 mips_find_saved_regs().
948 (mips_pop_frame): Likewise.
949
fbcdb4a3
KB
9502002-08-09 Kevin Buettner <kevinb@redhat.com>
951
952 * blockframe.c (frame_saved_regs_register_unwind): Revise
953 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
954 frames are in use.
955
3c3bea1c
GS
9562002-08-09 Grace Sainsbury <graces@redhat.com>
957
958 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
959 T-packets; the 'a' is not taken as a register number.
960 (remote_check_watch_resources, remote_stopped_by_watchpoint)
961 (remote_stopped_data_address): New functions; add to target
962 vector.
963 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
964 prototypes to match other implementations of this
965 function. replace integer argument with pointer -- the length
966 field in the Z-packet is the length of what is pointed to or 1 if
967 pointer is null. Add to target vector.
968 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
969 target vector.
970
971 From Mark Salter:
972 * remote.c (remote_wait): Add support to extract optional
973 watchpoint information from T-packet. Ignore unrecognized
974 optional info in T-packet.
975 (remote_async_wait): Ditto.
976
5d1d95de
CV
9772002-08-09 Corinna Vinschen <vinschen@redhat.com>
978
979 * cli/cli-dump.c: Change fopen modes to use binary open modes
980 as defined in include/fopen-bin.h throughout.
981
c86b5b38
MS
9822002-08-08 Michael Snyder <msnyder@redhat.com>
983
984 * mips-tdep.c: Minor whitespace and indentation clean-ups.
985
b30590dc
KB
9862002-08-08 Kevin Buettner <kevinb@redhat.com>
987
988 * doublest.c (store_floating): Avoid floatformat_from_doublest()
989 assertion failure by returning early after a warning.
990
498868ed
KB
9912002-08-08 Kevin Buettner <kevinb@redhat.com>
992
993 * mips-tdep.c (mips_find_saved_regs): Make static.
994 (mips_frame_init_saved_regs): New function.
995 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
996 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
997 (mips_find_saved_regs): Delete declaration.
998
b2dd6311
GS
9992002-08-08 Grace Sainsbury <graces@redhat.com>
1000
3c3bea1c
GS
1001 * remote.c (remote_wait, remote_async_wait): Change
1002 thread_num from int to ULONGEST.
1003 (unpack_varlen_hex): Change result parameter from
1004 int * to ULONGEST *.
b2dd6311 1005
ea47855f
AC
10062002-08-08 Andrew Cagney <ac131313@redhat.com>
1007
1008 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1009 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1010 powerpc*-*-*.
1011 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1012
69db8bae
AC
10132002-08-08 Andrew Cagney <cagney@redhat.com>
1014
1015 * gcore.c (override_derive_stack_segment): Delete variable.
1016 (preempt_derive_stack_segment): Delete function.
1017 (derive_stack_segment): Delete function.
1018 (default_derive_stack_segment): Renamed to derive_stack_segment.
1019 (override_derive_heap_segment): Delete variable.
1020 (preempt_derive_heap_segment): Delete function.
1021 (derive_heap_segment): Delete function.
1022 (default_derive_heap_segment): Rename to derive_heap_segment.
1023
cb811fe7
MS
10242002-08-06 Michael Snyder <msnyder@redhat.com>
1025
1026 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1027 * mips-tdep.c (mips_EABI_use_struct_convention,
1028 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1029 New functions. (mips_use_struct_convention): Delete.
1030 (mips_gdbarch_init): set use_gdbarch_convention.
1031
8b389c40
MS
10322002-08-06 Michael Snyder <msnyder@redhat.com>
1033
1034 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1035 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1036 mips_o32_reg_struct_has_addr): New functions.
1037 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1038
5c27f28a
AC
10392002-08-07 Andrew Cagney <ac131313@redhat.com>
1040
1041 * regcache.c (pseudo_register): Delete function.
1042 (fetch_register): Delete function.
1043 (store_register): Delete function.
1044 (regcache_raw_read, legacy_read_register_gen): Use
1045 target_fetch_registers instead of fetch_register.
1046 (legacy_write_register_gen, regcache_raw_write): Use
1047 target_store_register instead of store_register.
1048 (write_register_bytes): Ditto.
1049
1050 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1051 (STORE_PSEUDO_REGISTER): Delete.
1052 * gdbarch.h, gdbarch.c: Regenerate.
1053
5b331675
CV
10542002-08-06 Corinna Vinschen <vinschen@redhat.com>
1055
1056 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1057 write dump file binary.
1058
6acdf5c7
MS
10592002-08-05 Michael Snyder <msnyder@redhat.com>
1060
1061 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1062 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1063 (mips_gdbarch_init): Set N32 target to be mips64.
1064
b2f01c35
KB
10652002-08-06 Kevin Buettner <kevinb@redhat.com>
1066
1067 * frame.c (find_saved_register): Break out of loop once saved
1068 register address is found. Don't mention sparc in loop comment
1069 anymore.
1070
63db5580
KB
10712002-08-06 Kevin Buettner <kevinb@redhat.com>
1072
1073 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1074 mips_default_saved_regsize to 8.
1075
5e34e75e
AC
10762002-08-06 Andrew Cagney <ac131313@redhat.com>
1077
1078 * gcore.c: Do not include <sys/procfs.h>.
1079 * Makefile.in (gcore.o): Update dependencies.
1080
eb4c54a2
AC
10812002-08-06 Andrew Cagney <cagney@redhat.com>
1082
1083 * configure.tgt: Make arc-*-* obsolete.
1084 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1085 * MAINTAINERS: Make arc-elf obsolete.
1086 * arc-tdep.c: Make file obsolete.
1087 * config/arc/arc.mt: Ditto.
1088 * config/arc/tm-arc.h: Ditto.
1089
ced15480
TR
10902002-08-05 Theodore A. Roth <troth@verinet.com>
1091
c1bab85b 1092 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1093
b4743822
AC
10942002-08-05 Andrew Cagney <ac131313@redhat.com>
1095
1096 * mcore-tdep.c (mcore_gdbarch_init): Use
1097 generic_unwind_get_saved_register instead of
1098 generic_get_saved_register.
1099 * v850-tdep.c (v850_gdbarch_init): Ditto.
1100 * frv-tdep.c (frv_gdbarch_init): Ditto.
1101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1102 * s390-tdep.c (s390_gdbarch_init): Ditto.
1103 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1104 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1105 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1106
3956d554
JB
11072002-08-05 Joel Brobecker <brobecker@gnat.com>
1108
1109 * objfiles.h: Add missing #include "symfile.h"
1110
1111 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1112
8249c0d6
AC
11132002-08-04 Andrew Cagney <ac131313@redhat.com>
1114
1115 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1116 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1117 of FIELD_BITSIZE.
1118
b9d14705
DJ
11192002-08-04 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * NEWS: Cleanup and nitpick.
1122
dd73b9bb
AC
11232002-08-03 Andrew Cagney <ac131313@redhat.com>
1124
1125 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1126
043a27f8
AC
11272002-08-03 Andrew Cagney <ac131313@redhat.com>
1128
1129 * Makefile.in (gdbtk-bp.o): Update dependencies.
1130 (gdbtk-register.o): Ditto.
1131 (gdbtk-varobj.o): Ditto.
1132
46ce284d
AC
11332002-08-03 Andrew Cagney <cagney@redhat.com>
1134
1135 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1136 m68hc11_fetch_pseudo_register.
1137 (m68hc11_pseudo_register_write): Replace
1138 m68hc11_store_pseudo_register.
1139 (m68hc11_gdbarch_init): Update.
1140
b66d6d2e
AC
1141Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1142
1143 * gdbarch.sh: Include "gdb_string.h".
1144 * gdbarch.c: Regenerate.
1145
1146 * regcache.c: Include "gdb_string.h".
1147 * ax-general.c: Ditto.
1148 * varobj.c: Ditto.
1149 * std-regs.c: Ditto.
1150 * fbsd-proc.c: Ditto.
1151 * thread.c: Ditto.
1152
1153 * Makefile.in (regcache.o): Update dependencies.
1154 (thread.o, gdbarch.o): Ditto.
1155 (ax-general.o, gdbarch.o): Ditto.
1156 (varobj.o, std-regs.o): Ditto.
1157 (fbsd-proc.o): Specify dependencies.
1158
29e1842b
AC
11592002-08-02 Andrew Cagney <cagney@redhat.com>
1160
1161 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1162 regnum.
1163 (regcache_cooked_write): Ditto.
1164
68365089
AC
11652002-08-02 Andrew Cagney <ac131313@redhat.com>
1166
1167 * regcache.c (regcache_cooked_read): New function.
1168 (regcache_cooked_write): New function.
1169 (read_register_gen): Rewrite using regcache_cooked_read.
1170 (write_register_gen): Rewrite using regcache_cooked_write.
1171
1172 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1173 Declare.
1174
d8124050
AC
11752002-08-02 Andrew Cagney <cagney@redhat.com>
1176
1177 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1178 Replace the architecture methods register_read and register_write.
1179 * gdbarch.h, gdbarch.c: Regenerate.
1180 * regcache.c (init_regcache_descr): Update.
1181 (read_register_gen): Update.
1182 (write_register_gen): Update.
1183 (supply_register): Update comment.
1184
1185 * sh-tdep.c (sh_gdbarch_init): Update.
1186 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1187 `regcache' and `gdbarch' parameters. Make `buffer' a void
1188 pointer. Update code.
1189 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1190 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1191 void pointer. Update code.
1192 (sh64_register_write): Delete.
1193 (sh4_register_read): Delete.
1194 (sh64_register_read): Delete.
1195 (sh4_register_write): Delete.
1196 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1197 void pointer, `to' parameter a void pointer.
1198 (sh_sh64_register_convert_to_raw): Ditto.
1199
a6425924
KB
12002002-08-01 Kevin Buettner <kevinb@redhat.com>
1201
1202 * mips-tdep.c (mips_register_virtual_type): Use architecture
1203 invariant return values.
1204
ff5922b5
AC
12052002-08-01 Andrew Cagney <cagney@redhat.com>
1206
1207 * linux-proc.c: Include "gdb_string.h".
1208 * Makefile.in (linux-proc.o): Update dependency list.
1209
32a6503c
KB
12102002-08-01 Kevin Buettner <kevinb@redhat.com>
1211
1212 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1213 comment.
1214
ccaa32c7
GS
12152002-08-01 Grace Sainsbury <graces@redhat.com>
1216
1217 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1218 to_insert_watchpoint, to_remove_watchpoint,
1219 to_stopped_by_watchpoint, to_stopped_data_address,
1220 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1221 target vecctor. Define their corresponding macros so they call
1222 them.
1223
1224 * target.c: Add default and debug versions of for
1225 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1226 to_insert_watchpoint, to_remove_watchpoint,
1227 to_stopped_by_watchpoint, to_stopped_data_address,
1228 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1229
78fde5f8
KB
12302002-08-01 Kevin Buettner <kevinb@redhat.com>
1231
1232 * mips-tdep.c (mips_register_virtual_type): New function.
1233 (mips_gdbarch_init): Register mips_register_virtual_type()
1234 with gdbarch machinery.
1235 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1236 this file instead of tm-bigmips.h.
1237 (MIPS_REGSIZE): Delete this macro.
1238 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1239 multiarch version in mips-tdep.c will be found.
1240
db034ac5
AC
12412002-08-01 Andrew Cagney <cagney@redhat.com>
1242
1243 * NEWS: Menion that CHILL has been made obsolete.
1244
1245 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1246 * gdbserver/Makefile.in: Ditto.
1247 * stabsread.c (read_range_type): Ditto.
1248 * gdbtypes.h: Ditto.
1249 * language.c (binop_type_check): Ditto.
1250 (binop_result_type): Ditto.
1251 (integral_type): Ditto.
1252 (character_type): Ditto.
1253 (string_type): Ditto.
1254 (boolean_type): Ditto.
1255 (structured_type): Ditto.
1256 (lang_bool_type): Ditto.
1257 (binop_type_check): Ditto.
1258 * language.h (_LANG_chill): Ditto.
1259 * dwarfread.c (set_cu_language): Ditto.
1260 * dwarfread.c (CHILL_PRODUCER): Ditto.
1261 * dwarfread.c (handle_producer): Ditto.
1262 * expression.h (enum exp_opcode): Ditto.
1263 * eval.c: Ditto for comments.
1264 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1265 * expprint.c (print_subexp): Ditto.
1266 (print_subexp): Ditto.
1267 * valops.c (value_cast): Ditto.
1268 (search_struct_field): Ditto.
1269 * value.h (COERCE_VARYING_ARRAY): Ditto.
1270 * symfile.c (init_filename_language_table): Ditto.
1271 (add_psymbol_with_dem_name_to_list): Ditto.
1272 * valarith.c (value_binop): Ditto.
1273 (value_neg): Ditto.
1274 * valops.c (value_slice): Ditto.
1275 * symtab.h (union language_specific): Ditto.
1276 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1277 (SYMBOL_DEMANGLED_NAME): Ditto.
1278 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1279 * defs.h (enum language): Ditto.
1280 * symtab.c (got_symtab): Ditto.
1281 * utils.c (fprintf_symbol_filtered): Ditto.
1282
1283 * ch-typeprint.c: Make file obsolete.
1284 * ch-valprint.c: Make file obsolete.
1285 * ch-lang.h: Make file obsolete.
1286 * ch-exp.c: Make file obsolete.
1287 * ch-lang.c: Make file obsolete.
1288
1289 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1290 CHILL_LIB.
1291 (TARGET_FLAGS_TO_PASS): Ditto.
1292 (CHILLFLAGS): Obsolete.
1293 (CHILL): Obsolete.
1294 (CHILL_FOR_TARGET): Obsolete.
1295 (CHILL_LIB): Obsolete.
1296 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1297 ch-valprint.c.
1298 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1299 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1300 ch-lang.o.
1301 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1302 targets.
1303
8aaf0b47
JB
13042002-07-31 Joel Brobecker <brobecker@gnat.com>
1305
1306 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1307 This does not change anything at the moment, but will be helpful
1308 later when full Ada support is integrated.
1309
f3a7b3a5
KB
13102002-07-31 Kevin Buettner <kevinb@redhat.com>
1311
1312 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1313 help message.
1314
fb850278
KB
13152002-07-31 Kevin Buettner <kevinb@redhat.com>
1316
1317 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1318 and save it in a local variable. Use variable in later test.
1319
e3bddbfa
KB
13202002-07-31 Kevin Buettner <kevinb@redhat.com>
1321
1322 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1323 test. (Thanks to Daniel Jacobowitz.)
1324
28d169de
KB
13252002-07-31 Kevin Buettner <kevinb@redhat.com>
1326
1327 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1328 (mips_abi_strings): Add "n64".
1329 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1330
7fe7e44e
KB
13312002-07-31 Kevin Buettner <kevinb@redhat.com>
1332
1333 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1334 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1335
c6caf090
KB
13362002-07-31 Kevin Buettner <kevinb@redhat.com>
1337
1338 * utils.c (host_pointer_to_address, address_to_host_pointer):
1339 Use gdb_assert() instead of explicit call to internal_error().
1340
c41669e0
KB
13412002-07-30 Kevin Buettner <kevinb@redhat.com>
1342
1343 * Makefile.in (rs6000-nat.o): Update dependencies.
1344
1345 From Nicholas Duffek:
1346 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1347 (aix-thread.o): New rule.
1348 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1349 * config/powerpc/aix432.mh: New file.
1350
2fda4977
DJ
13512002-07-30 Daniel Jacobowitz <drow@mvista.com>
1352
1353 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1354 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1355 (fetch_core_registers, ppc_linux_supply_gregset)
1356 (ppc_linux_supply_fpregset): New functions.
1357 (ppc_linux_regset_core_fns): New.
1358 (_initialize_ppc_linux_tdep): Call add_core_fns.
1359 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1360 and ppc_linux_supply_gregset.
1361 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1362 (supply_fpregset): Call ppc_linux_supply_fpregset.
1363 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1364 corelow.o.
1365 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1366
729051e6
DJ
13672002-07-30 Daniel Jacobowitz <drow@mvista.com>
1368
1369 * symtab.c (lookup_symbol): Demangle before lowercasing.
1370
5f8a3188
AC
13712002-07-30 Andrew Cagney <ac131313@redhat.com>
1372
1373 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1374 declaration.
1375 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1376 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1377 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1378 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1379 "gdb_string.h".
1380 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1381 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1382 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1383 (avr-tdep.o, mon960-rom.o): Ditto.
1384 (aout_stabs_gnu_h): Define.
1385 (symtab_h): Remove $(gdb_obstack_h).
1386
67f07146
JB
13872002-07-30 Jim Blandy <jimb@redhat.com>
1388
1389 Patch from David Carlton <carlton@math.stanford.edu>:
1390 * gdbinit.in: Move the `dir' commands that add GDB's own source
1391 directory to the search path to the end, so that the `gdb' source
1392 directory will be searched first.
1393
04ea0df1
AC
13942002-07-29 Andrew Cagney <ac131313@redhat.com>
1395
1396 * gdb_obstack.h: New file.
1397 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1398 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1399 * objfiles.h: Include "gdb_obstack.h".
1400 * Makefile.in (gdb_obstack_h): Define.
1401 (symtab_h): Add $(gdb_obstack_h).
1402 (objfiles_h): Add $(gdb_obstack_h).
1403
1404 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1405 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1406 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1407 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1408 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1409 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1410 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1411 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1412
1413 * Makefile.in (bcache.o): Update dependencies.
1414 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1415 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1416 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1417 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1418 (stabsread.o, symfile.o, symmisc.o): Ditto.
1419 (symtab.o, typeprint.o, macroexp.o): Ditto.
1420 (macrotab.o, mdebugread.o): Ditto.
1421 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1422 (coff_ecoff_h, aout_aout64_h): Define.
1423 (aout_stabs_gnu_h, libaout_h): Define.
1424
d138e37a
AC
14252002-07-29 Andrew Cagney <cagney@redhat.com>
1426
1427 * regcache.c (struct regcache_descr): Rename nr_registers to
1428 nr_cooked_registers. Revise comments describing the structure
1429 member fields.
1430 (init_regcache_descr): Update.
1431 (init_legacy_regcache_descr): Update.
1432 (read_register_gen, write_register_gen): When a cooked register in
1433 the raw register range, directly access the value from the raw
1434 register cache.
1435
460e6ec3
AC
14362002-07-29 Andrew Cagney <ac131313@redhat.com>
1437
1438 * z8k-tdep.c: Do not include "obstack.h".
1439 * h8300-tdep.c, h8500-tdep.c: Ditto.
1440 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1441 * valprint.c, v850-tdep.c: Ditto.
1442 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1443 * mn10200-tdep.c: Ditto.
1444
1445 * Makefile.in (z8k-tdep.o): Update dependencies.
1446 (m68hc11-tdep.o, valprint.o): Ditto.
1447 (v850-tdep.o, d10v-tdep.o): Ditto.
1448 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1449 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1450 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1451 (sh_opc_h, gdb_sim_sh_h): Define.
1452 (elf_sh_h, elf_bfd_h): Define.
1453 (opcode_m68hc11_h): Define.
1454 (OPCODES_SRC, OPCODES_DIR): define.
1455 (OPCODES): Use $(OPCODES_DIR).
1456 (gdb_sim_d10v_h): Rename sim_d10v_h.
1457 (gdb_sim_arm_h): Rename sim_arm_h.
1458
790c9cf0
KB
14592002-07-26 Kevin Buettner <kevinb@redhat.com>
1460
1461 * utils.c (host_pointer_to_address, address_to_host_pointer):
1462 Change internal_error() message to indicate function responsible
1463 for the error.
1464
9647fa49
KB
14652002-07-26 Kevin Buettner <kevinb@redhat.com>
1466
1467 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1468 calls to local_hex_string_custom().
1469
dabbe2c0
KB
14702002-07-26 Kevin Buettner <kevinb@redhat.com>
1471
1472 * irix5-nat.c: Move IRIX shared library support from here...
1473 * solib-irix.c: ...to here. Revised substantially to work with
1474 generic solib framework.
1475
b96d0a4e
KB
1476 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1477 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1478 * mips-irix-tdep.c: New file.
1479
313fb2f6
KB
1480 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1481 (mips-irix-tdep.o, solib-irix.o): New rules.
1482 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1483 solib-irix.o.
1484 * config/mips/irix6.mt (TDEPFILES): Likewise.
1485 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1486
ab2eaf26
KB
14872002-07-26 Kevin Buettner <kevinb@redhat.com>
1488
177e4768 1489 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1490 disabled (via ``#if 0'') includes.
1491
7244546a
KB
14922002-07-26 Kevin Buettner <kevinb@redhat.com>
1493
1494 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1495 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1496 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1497 Add support for the fpscr register.
1498 * rs6000-nat.c (regmap, fetch_inferior_registers)
1499 (store_inferior_registers, fetch_core_registers): Likewise.
1500
dd7be90a
KB
15012002-07-26 Kevin Buettner <kevinb@redhat.com>
1502
1503 * rs6000-nat.c (language.h): Include.
1504 (special_regs): Delete this array.
1505 (regmap): New function.
1506 (fetch_register, store_register): Use regmap() to map gdb
1507 register numbers to ptrace register numbers. Also, use
1508 outputs from regmap() to make decisions regarding type of
1509 ptrace() call to make. In particular, don't compare against
1510 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1511 (fetch_inferior_registers, store_inferior_registers): Where
1512 possible, obtain register numbers from tdep struct. Don't
1513 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1514 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1515 (LAST_UISA_SP_REGNUM): Delete.
1516
11bf77db
KB
15172002-07-25 Kevin Buettner <kevinb@redhat.com>
1518
1519 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1520 (fetch_registers, store_register, fetch_core_registers): Don't
1521 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1522 regcache_collect() as appropriate.
1523 (find_toc_address): Format hex address with local_hex_string().
1524
06afebeb
AC
15252002-07-25 Andrew Cagney <ac131313@redhat.com>
1526
1527 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1528 bfd/elf32-frv.c.
1529
8c554d79
TT
15302002-07-24 Tom Tromey <tromey@redhat.com>
1531
1532 * jv-exp.y: Marked all strings with _().
1533 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1534 internal_error.
1535 (MethodInvocation, CastExpression, parse_number, yyerror,
1536 java_type_from_name, push_expression_name, yylex): Typo fixes.
1537
e4c242d9
DJ
15382002-07-24 Daniel Jacobowitz <drow@mvista.com>
1539
1540 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1541 (tee_file_flush, tee_file_write, tee_file_fputs)
1542 (tee_file_isatty): New.
1543 * ui-file.h (tee_file_new): Add prototype.
1544
ebf56fd3
AS
15452002-07-24 Aidan Skinner <aidan@velvet.net>
1546
1547 * ada-lang.c: Change k&r style function definitions to prototyped
1548 form.
1549 * ada-typeprint.c: Change k&r style function definitions to prototyped
1550 form.
1551 * ada-valprint.c: Change k&r style function definitions to prototyped
1552 form.
1553
7fb623f7
AC
15542002-07-24 Andrew Cagney <cagney@redhat.com>
1555
1556 * README: Remove reference to remote-bug.
1557 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1558 remote-bug.c.
1559 (m88k-nat.o): Delete rule.
1560 (m88k-tdep.o): Delete rule.
1561 (remote-bug.o): Delete rule.
1562 * MAINTAINERS: Mark as obsolete.
1563 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1564 * m88k-tdep.c: Make file obsolete.
1565 * config/m88k/m88k.mh: Ditto.
1566 * config/m88k/delta88v4.mh: Ditto.
1567 * config/m88k/delta88v4.mt: Ditto.
1568 * config/m88k/delta88.mt: Ditto.
1569 * config/m88k/delta88.mh: Ditto.
1570 * remote-bug.c: Ditto.
1571 * config/m88k/tm-delta88.h: Ditto.
1572 * config/m88k/nm-delta88v4.h: Ditto.
1573 * config/m88k/xm-delta88.h: Ditto.
1574 * config/m88k/xm-dgux.h: Ditto.
1575 * config/m88k/tm-m88k.h: Ditto.
1576 * config/m88k/nm-m88k.h: Ditto.
1577 * config/m88k/tm-delta88v4.h: Ditto.
1578 * m88k-nat.c: Ditto.
1579 * cxux-nat.c: Ditto.
1580 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1581 and m88*-*-* obsolete.
1582 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1583 m88*-*-* obsolete.
1584
37611a2b
AC
15852002-07-24 Andrew Cagney <cagney@redhat.com>
1586
1587 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1588 constant. Same for local pointer variables.
1589 (extract_signed_integer): Ditto.
1590 * defs.h (extract_unsigned_integer): Update.
1591 (extract_signed_integer): Update.
1592
18ff0538
KB
15932002-07-24 Kevin Buettner <kevinb@redhat.com>
1594
1595 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1596 * gdbserver/configure: Regenerate.
1597 * gdbserver/config.in: Regenerate.
1598
1aaa5f99
AC
15992002-07-24 Andrew Cagney <cagney@redhat.com>
1600
1601 * regcache.c (regcache_raw_write): Change buf parameter to a
1602 constant void pointer.
1603 (regcache_raw_read): Change buf parameter to a void pointer.
1604 (legacy_write_register_gen): Change myaddr parameter a constant
1605 void pointer.
1606 (supply_register): Change val parameter to a const void pointer.
1607 * regcache.h (regcache_raw_write): Update declaration.
1608 (regcache_raw_read): Update declaration.
1609 (supply_register): Update declaration.
1610
b4f5539f
TT
16112002-07-24 Tom Tromey <tromey@redhat.com>
1612
1613 * defs.h (gdb_readline_wrapper): Declare.
1614 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1615 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1616 * top.c (gdb_readline_wrapper): New function.
1617 (command_line_input): Use it.
1618
0818c12a
AC
16192002-07-24 Andrew Cagney <cagney@redhat.com>
1620
1621 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1622 regcache_read and regcache_write.
1623 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1624 * regcache.c: Update.
1625 * sh-tdep.c (sh64_push_arguments): Update comment.
1626 (sh_pseudo_register_read): Update.
1627 (sh_pseudo_register_write): Update.
1628 (sh4_register_read): Update.
1629 (sh4_register_write): Update.
1630 (sh64_pseudo_register_read): Update.
1631 (sh64_pseudo_register_write): Update.
1632 (sh64_register_read): Update.
1633 (sh64_register_write): Update.
1634 * i386-tdep.c (i386_extract_return_value): Update.
1635 (i386_extract_struct_value_address): Update.
1636 (i386_extract_return_value): Update.
1637 * blockframe.c (generic_read_register_dummy): Update.
1638 (generic_call_dummy_register_unwind): Update
1639 * infrun.c (write_inferior_status_register): Update.
1640
f7321c06
JB
16412002-07-23 Jim Blandy <jimb@redhat.com>
1642
1643 * parser-defs.h (expression_context_pc): Make this extern.
1644 (Thanks to Michael Snyder.)
1645
2037aebb
AC
16462002-07-23 Andrew Cagney <ac131313@redhat.com>
1647
1648 GDB 5.2.1 released from 5.2 branch.
1649 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1650 * README: Update to mention 5.2.1.
1651
66504d44
MS
16522002-07-23 Mark Salter <msalter@redhat.com>
1653
1654 * remote.c (remote_read_bytes): Fix check for error.
1655
27bae383
KB
16562002-07-22 Kevin Buettner <kevinb@redhat.com>
1657
1658 * aix-thread.c (language.h): Include.
1659 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1660 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1661 Print newlines at end of debug messages.
1662 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1663 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1664
16652002-07-22 Kevin Buettner <kevinb@redhat.com>
1666
1667 * aix-thread.c (ppc-tdep.h): Include.
1668 (special_register_p): New function.
1669 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1670 (store_regs_user_thread): Use register number information from
1671 gdbarch_tdep struct instead of hardcoded offsets relative to
1672 FIRST_UISA_SP_REGNUM.
1673 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1674 special_register_p() instead of using FPLAST_REGNUM and
1675 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1676 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1677 will be MQ's register number.
1678
16792002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1680
1681 * aix-thread.c (ops): Rename to aix_thread_ops.
1682 (base_ops): Rename to base_target.
1683 (ops_attach): Rename to aix_thread_attach.
1684 (ops_detach): Rename to aix_thread_detach.
1685 (ops_resume): Rename to aix_thread_detach.
1686 (ops_wait): Rename to aix_thread_wait.
1687 (ops_kill): Rename to aix_thread_kill.
1688 (init_ops): Rename to init_aix_thread_ops.
1689 (ops_fetch_register): Rename to aix_thread_fetch_register.
1690 (ops_store_register): Rename to aix_thread_store_register.
1691 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1692 (ops_thread_alive): Rename to aix_thread_thread_alive.
1693 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1694 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1695 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1696 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1697 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1698 (store_regs_lib): Rename to store_regs_user_thread.
1699 (store_regs_kern): Rename to store_regs_kernel_thread.
1700
27bae383 17012002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1702
1703 * aix-thread.c (ops_prepare_to_store): Eliminate.
1704 (init_ops): Don't initialize ops.prepare_to_store.
1705 (store_regs_kern): Pre-fetch register buffers from child,
1706 because some registers may not be in the cache. Copy
1707 regs from register cache only if they are cached.
1708 (store_regs_lib): Copy regs from register cache only
1709 if they are cached.
1710 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1711 fill_gprs64): Ditto.
1712
61c5da0b
KB
17132002-07-22 Kevin Buettner <kevinb@redhat.com>
1714
1715 * aix-thread.c (gdb_assert.h): Include.
1716 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1717 register sizes (from register cache) match size of buffer holding
1718 register data.
1719 (fill_sprs32): Change parameter types to match those in the ptrace()
1720 buffer.
1721 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1722 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1723
17242002-07-22 Michael Snyder <msnyder@redhat.com>
1725
1726 * aix-thread.c (supply_sprs64): Cosmetic change.
1727 (supply_sprs32): Cosmetic change.
1728 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1729 (fill_sprs64): Use regcache_collect instead of read_register.
1730 (store_regs_lib): Use regcache_collect instead of
1731 read_register. Use fill_sprs32 instead of fill_sprs64,
1732 if debugging a 32-bit architecture.
1733 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1734 out of the register cache, instead of passing a pointer into
1735 the register cache directly to ptrace. Use regcache_collect
1736 insteaad of read_register.
1737 (ops_prepare_to_store): Use target_read_registers instead
1738 of read_register_bytes.
1739
36479eb1
AS
17402002-07-20 Aidan Skinner <aidan@velvet.net>
1741
1742 * MAINTAINERS: Add self under write after approval.
1743
80ae6ee2
AS
17442002-07-20 Aidan Skinner <aidan@velvet.net>
1745
1746 * ada-tasks.c: Change k&r style function definitions to prototyped
1747 form.
1748
8a8ab2b9
AC
17492002-07-19 Andrew Cagney <ac131313@redhat.com>
1750
1751 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1752 * x86-64-tdep.c: Include "objfiles.h".
1753 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1754 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1755
fb16b900
ML
17562002-07-17 Michal Ludvig <michal@suse.cz>
1757
1758 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1759 (update_context): Initialise cfa variable.
1760
0fe7bf7b
MS
17612002-07-17 Michael Snyder <msnyder@redhat.com>
1762
1763 * aix-thread.c: Shorten some long lines.
1764 Bring comments into line with code spec.
1765
488f131b
JB
17662002-07-18 Joel Brobecker <brobecker@gnat.com>
1767
1768 * infrun.c: Re-indent using gdb_indent.sh.
1769
46c415d2
JB
17702002-07-18 Joel Brobecker <brobecker@gnat.com>
1771
1772 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1773 Leave the indentation temporarily untouched, to minimize the diffs.
1774
cdecafbe
EZ
17752002-07-18 Elena Zannoni <ezannoni@redhat.com>
1776
1777 * stabsread.c: Make os9k sections of the code obsolete,
1778 for real this time.
1779 * stabsread.h: Make os9k sections of the code obsolete.
1780
7b6aa020
ML
17812002-07-18 Michal Ludvig <mludvig@suse.cz>
1782
09ec9b38
ML
1783 * linux-low.c (regsets_store_inferior_registers): Add free()
1784 at the end of a loop to prevent memory leak.
1785 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1786 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1787 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1788 line a comment.
4894ac5d 1789 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1790
233282cd
JB
17912002-07-17 Jim Blandy <jimb@redhat.com>
1792
1793 * macrocmd.c (info_macro_command): Remove newline from error
1794 message.
1795
7b6aa020 17962002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1797
1798 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1799 (sh_gdbarch_init): Use it for sh-dsp.
1800
f7ef9339
KB
18012002-07-16 Kevin Buettner <kevinb@redhat.com>
1802
1803 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1804 64-bit DWARF2 format.
1805
8dd72958
JB
18062002-07-16 Joel Brobecker <brobecker@gnat.com>
1807
1808 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1809 <sys/proc.h> when not available.
1810
a99a9e1b
AC
18112002-07-16 Andrew Cagney <ac131313@redhat.com>
1812
1813 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1814 * stabsread.c: Make os9k sections of the code obsolete.
1815 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1816 * config/i386/i386os9k.mt: Make file obsolete.
1817 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1818 (COMMON_OBS): Remove os9kread.o
1819 (SFILES): Remove os9kread.c.
1820 (os9kread.o, remote-os9k.o): Make target obsolete.
1821 * remote-os9k.c: Make file obsolete.
1822 * os9kread.c: Make file obsolete.
1823 * Makefile.in
1824
7a3085c1
AC
18252002-07-16 Andrew Cagney <ac131313@redhat.com>
1826
1827 * NEWS: Mention that the FR30 has been made obsolete.
1828 * fr30-tdep.c: Make file obsolete.
1829 * config/fr30/tm-fr30.h: Ditto.
1830 * config/fr30/fr30.mt: Ditto.
1831 * configure.tgt: Make fr30-*-elf obsolete.
1832 * MAINTAINERS: Make fr30-elf obsolete.
1833
28a93f5a
PM
18342002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1835
1836 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1837 found is not inside a section.
1838
be006b8b
KB
18392002-07-15 Kevin Buettner <kevinb@redhat.com>
1840
1841 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1842 strerror().
1843 (pdc_realloc): Use xrealloc() instead of realloc().
1844
14fa3751
KB
18452002-07-15 Kevin Buettner <kevinb@redhat.com>
1846
1847 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1848 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1849 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1850 macros.
1851
42cc437f
KB
18522002-07-15 Kevin Buettner <kevinb@redhat.com>
1853
1854 * aix-thread.c (ptrace_check): Eliminate goto.
1855 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1856 problem.
1857
8e2c28d4
KB
18582002-07-15 Kevin Buettner <kevinb@redhat.com>
1859
1860 * aix-thread.c (gdbcmd.h): Include.
1861 (DEBUG, DBG, DBG2, dbg): Eliminate.
1862 (debug_aix_thread): New static global.
1863 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1864 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1865 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1866 invocations to DBG and DBG2 macros to test against
1867 ``debug_aix_thread'' and call fprintf_unfiltered().
1868 (_initialize_aix_thread): Add new command "set debug aix-thread".
1869
30413464
AC
18702002-07-15 Andrew Cagney <ac131313@redhat.com>
1871
1872 From Gerhard Tonn <TON@de.ibm.com>:
1873 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1874 instead of supply_register.
1875
7c43edc1
AC
18762002-07-15 Andrew Cagney <ac131313@redhat.com>
1877
1878 * dwarf2cfi.c: Include "gdb_assert.h".
1879 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1880 non-NULL.
1881 (update_context): Do not use __func__. Add missing ``break''.
1882 (update_context): Do not use __func__.
1883
9364a0ef
EZ
18842002-07-15 Elena Zannoni <ezannoni@redhat.com>
1885
1886 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1887 and its setting. Set gdbarch instruction printing functions
1888 directly. For non-rs6000 case use new function
1889 gdb_print_insn_powerpc.
1890 (gdb_print_insn_powerpc): New function.
1891
3fbeef0b
AC
18922002-07-13 Andrew Cagney <ac131313@redhat.com>
1893
92eb23c5 1894 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
1895 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1896 * configure.tgt: Mark d30v-*-* as obsolete.
1897 * d30v-tdep.c: Mark file as obsolete.
1898 * config/d30v/d30v.mt: Ditto.
1899 * config/d30v/tm-d30v.h: Ditto.
1900
aacb1f0a
AS
19012002-07-13 Aidan Skinner <aidan@velvet.net>
1902
1903 * ada-tasks.c (add_task_entry): replace calls to
1904 malloc() with xmalloc
1905 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1906
1907 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1908 ada_finish_decode_line_1, all_sals_for_line
1909 ada_breakpoint_rewrite): replace calls to free() with xfree()
1910
c11d79f2
KB
19112002-07-12 Kevin Buettner <kevinb@redhat.com>
1912
1913 From Nicholas Duffek (with minor changes by Martin Hunt,
1914 Louis Hamilton, and Kevin Buettner):
1915 * aix-thread.c: New file.
1916
8e19ed76
PS
19172002-07-12 Petr Sorfa <petrs@caldera.com>
1918
1919 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1920 complaint for invalid attribute class or form.
1921 (read_func_scope): DW_AT_frame_base
1922 better handling of DW_AT_block*.
1923 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1924 better handling of DW_AT_block*.
1925 (read_common_block): DW_AT_location
1926 better handling of DW_AT_block*.
1927 (read_partial_die): DW_AT_location better handling
1928 of DW_AT_block*.
1929 (new_symbol): DW_AT_external better handling of
1930 DW_AT_block*. Proper initialization of variable
1931 "addr".
1932 (attr_form_is_block): New function that returns true
1933 if the attribute's form is of DW_FORM_block*.
1934
295401f7
DJ
19352002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1936
1937 * valops.c (find_method_list): Remove comment about
1938 removed STATIC_MEMFUNCP argument.
1939 (value_find_oload_method_list): Likewise.
1940
e42dc924
KB
19412002-07-12 Kevin Buettner <kevinb@redhat.com>
1942
1943 From Nicholas Duffek:
1944 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1945 target_new_objfile_hook.
1946
6904b546
KB
19472002-07-12 Kevin Buettner <kevinb@redhat.com>
1948
1949 From Nicholas Duffek:
1950 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1951 csect.
1952
53fe9346
AC
19532002-07-12 Andrew Cagney <cagney@redhat.com>
1954
1955 * MAINTAINERS: Mention --enable-sim-build-warnings.
1956 (m68hc11-elf): Disable sim build warnings.
1957 (m32r-elf): Mark as broken obsolete candidate.
1958 (x86_64-linux-gnu): Mark as buildable with -Werror.
1959 (arm-elf): Change -w to ``,'' which enables warnings but not
1960 -Werror.
1961
af5f3db6
AC
19622002-07-12 Andrew Cagney <ac131313@redhat.com>
1963
1964 * bcache.h: Update copyright.
1965 (struct bstring, struct bcache): Move definition to "bcache.c".
1966 Replaced by opaque declaration.
1967 (bcache_xfree): Replace free_bcache.
1968 (bcache_xmalloc, bcache_memory_used): Declare.
1969
1970 * bcache.c: Update copyright.
1971 (struct bstring, struct bcache): Moved to here from "bcache.h".
1972 Update comments.
1973 (bcache_xmalloc, bcache_memory_used): New functions.
1974 (bcache_xfree): Replace function free_bcache.
1975
1976 * Makefile.in (objfiles.o): Add $(bcache_h).
1977 (objfiles_h): Remove $(bcache_h).
1978 (symfile.o): Add $(bcache_h).
1979
1980 * symmisc.c: Update copyright.
1981 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1982 (print_objfile_statistics): Use bcache_memory_used.
1983
1984 * symfile.c: Include "bcache.h".
1985 (reread_symbols): Use bcache_xfree.
1986 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1987 (add_psymbol_to_list): Pass psymbol_cache by value.
1988 (add_psymbol_with_dem_name_to_list): Ditto.
1989
1990 * objfiles.h: Update copyright.
1991 (struct bcache): Declare opaque. Do not include "bcache.h".
1992 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1993 bcache'' pointers.
1994 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1995
1996 * objfiles.c: Include "bcache.h". Update copyright.
1997 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1998 macro_cache.
1999 (free_objfile): Use bcache_xfree.
2000
444199e7
GS
20012002-07-11 Grace Sainsbury <graces@redhat.com>
2002
2003 * monitor.c (monitor_fetch_register): Make name a constant.
2004 (monitor_store_register): Same.
2005
261397f8
DJ
20062002-07-11 Daniel Jacobowitz <drow@mvista.com>
2007
2008 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2009 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2010 (finish_block) For non-function blocks, hash the symbol table. For
2011 function blocks, mark the symbol table as unhashed.
2012 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2013 (msymbol_hash_iw): Likewise.
2014 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2015 value.
2016 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2017 (lookup_minimal_symbol): Likewise for both.
2018 * symtab.h (struct block): Add `hashtable' flag. Comment the
2019 hashtable.
2020 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2021 (ALL_BLOCK_SYMBOLS): Update.
2022 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2023 (struct symbol): Add `hash_next' pointer.
2024 * symtab.c (lookup_block_symbol): Search using the hash table when
2025 possible.
2026 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2027 (search_symbols, find_addr_symbol): Likewise.
2028
2029 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2030 (read_dst_symtab): Likewise.
2031 * jv-lang.c (get_java_class_symtab): Likewise.
2032 * mdebugread.c: Include "gdb_assert.h".
2033 (shrink_block): Assert that the block being modified is not hashed.
2034 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2035 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2036 symbols.
2037 (dump_symtab): Recognize hashed blocks.
2038 * printcmd.c (print_frame_args): Assert that function blocks do not
2039 have hashed symbol tables.
2040 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2041 (fill_in_ada_prototype, debug_print_block): Likewise.
2042 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2043
6f0eaa01
CV
20442002-07-11 Corinna Vinschen <vinschen@redhat.com>
2045
2046 * stack.c (print_frame): Use result of frame_address_in_block()
2047 instead of fi->pc when evaluating symbols.
2048 (backtrace_command_1): Ditto.
2049
a208b0cb
AC
20502002-07-11 Andrew Cagney <cagney@redhat.com>
2051
2052 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2053 Make static.
2054
2055 * arm-tdep.c (arm_register_name): Make return type constant.
2056
a6b6b089
AC
20572002-07-10 Andrew Cagney <ac131313@redhat.com>
2058
5ae5f592
AC
2059 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2060 prototype.
2061 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2062 * s390-tdep.c (s390_fp_regnum): Ditto.
2063 (s390_read_fp): Ditto.
2064 (s390_pop_frame): Ditto.
2065 (_initialize_s390_tdep): Ditto.
2066 * remote.c (get_remote_state): Ditto.
2067 * procfs.c (mappingflags): Ditto.
2068 * memattr.c (_initialize_mem): Ditto.
2069 * mcore-tdep.c (mcore_pop_frame): Ditto.
2070 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2071 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2072 * language.c (set_case_str): Ditto.
2073 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2074 * frv-tdep.c (new_variant): Ditto.
2075 (frv_stopped_data_address): Ditto.
2076 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2077 (context_alloc): Ditto.
2078 (frame_state_alloc): Ditto.
2079 (unwind_tmp_obstack_init): Ditto.
2080 (unwind_tmp_obstack_free): Ditto.
2081 (cfi_read_fp): Ditto.
2082 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2083 (cris_pop_frame): Ditto.
2084 * c-lang.c (scanning_macro_expansion): Ditto.
2085 (finished_macro_expansion): Ditto.
2086 (c_preprocess_and_parse): Ditto.
2087 * gdbarch.sh: Ditto.
2088 * gdbarch.h, gdbarch.c: Regenerate.
2089 * config/mn10200/tm-mn10200.h: Adjust indentation.
2090 * target.c: Adjust indentation.
2091 * symtab.h: Adjust indentation.
2092 * stabsread.h: Adjust indentation.
2093 * remote-es.c: Adjust indentation.
2094 * os9kread.c: Adjust indentation.
2095
20962002-07-10 Andrew Cagney <ac131313@redhat.com>
2097
a6b6b089
AC
2098 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2099 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2100
a1789893
GS
21012002-07-10 Grace Sainsbury <graces@redhat.com>
2102
2103 * NEWS: Mention m68k, mcore multi-arching.
2104 * MAINTAINERS: Change status of m68k, mcore to reflect
2105 multi-arching.
2106
02f0d45d
DJ
21072002-07-10 Daniel Jacobowitz <drow@mvista.com>
2108
2109 * valops.c (find_overload_match): Free oload_syms.
2110
f15f768e
JB
21112002-07-09 Joel Brobecker <brobecker@gnat.com>
2112
2113 Define HAVE_SYS_PROC_H if sys/proc.h exists
2114 * configure.in: Add check for sys/proc.h
2115 * config.in: Regenerate.
2116 * configure: Regenerate.
2117
902a7139
GS
21182002-07-09 Grace Sainsbury <graces@redhat.com>
2119
2120 * config/m68k/tm-m68k.h: Remove macros wrapped in
2121 #if !GDB_MULTI_ARCH.
2122
82e0fd98
DB
21232002-07-09 David O'Brien <obrien@FreeBSD.org>
2124
2125 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
2126 (perror_with_name, remote_close, remote_open, expect, play): Static.
2127
a534e424
AC
21282002-07-08 Andrew Cagney <ac131313@redhat.com>
2129
2130 * config.in, configure: Regenerate.
2131
9b94f7bf
MK
21322002-07-08 Mark Kettenis <kettenis@gnu.org>
2133
2134 * dwarf2cfi.c: Include "gcore.h".
2135 (execute_stack_op): Fix implementation of the
2136 DW_OP_deref and DW_OP_deref_size operators by letting do their
2137 lookup in the target.
2138
1d34db41
MK
21392002-07-07 Mark Kettenis <kettenis@gnu.org>
2140
2141 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2142 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2143 tdep->sc_sp_offset.
2144
79d5b63a
DJ
21452002-07-05 Daniel Jacobowitz <drow@mvista.com>
2146
2147 Fix PR gdb/595, gdb/602
2148 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2149 Don't call value_cast, just read the vtable pointer; update comments
2150 to match.
2151
3bb912e8
GS
21522002-07-05 Grace Sainsbury <graces@redhat.com>
2153
2154 * config/mcore/tm-mcore.h: Remove file.
2155 * config/mcore/mcore.mt: Remove definition of TM_FILE
2156 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2157
ca39387d
MK
21582002-07-05 Mark Kettenis <kettenis@gnu.org>
2159
2160 * i386bsd-tdep.c: Include "gdb_string.h".
2161
efdc1108
GS
21622002-07-04 Grace Sainsbury <graces@redhat.com>
2163
2164 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2165 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2166 mcore-tdep.
2167 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2168 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2169 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2170 (RETVAL_REGNUM): Move macros from tm-mcore.h
2171 (mcore_reg_struct_has_addr): New function.
2172 (mcore_gdbarch_init): Added initializations for the macros removed
2173 from tm-mcore.h.
2174
bb21884d
MK
21752002-07-04 Mark Kettenis <kettenis@gnu.org>
2176
2177 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2178 traditonal string branding within the ELF header.
2179
228c6d41
DJ
21802002-07-04 Daniel Jacobowitz <drow@mvista.com>
2181
2182 * symtab.c (remove_params): New function.
2183 (make_symbol_overload_list): Use it instead of cplus_demangle.
2184 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2185
2404952e
MK
21862002-07-04 Mark Kettenis <kettenis@gnu.org>
2187
e5e4acad
MK
2188 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2189
baadce09
MK
2190 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2191 New variables.
2192 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2193 and tdep->sigtramp_end.
2194 * i386obsd-nat.c: New file.
2195 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2196
2404952e
MK
2197 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2198 Don't call get_current_frame().
2199
9b4f1ba7
PM
22002002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2201
2202 * i386-nat.c (child_post_startup_inferior): New function
2203 calling i386_cleanup_dregs if
2204 I386_USE_GENERIC_WATCHPOINTS is defined.
2205 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2206 conditional to acknowledge that i386-nat.c has its
2207 own child_post_startup_inferior function.
2208
c0d1d883
MK
22092002-07-04 Mark Kettenis <kettenis@gnu.org>
2210
00f8375e
MK
2211 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2212 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2213 instead of MAX_REGISTER_RAW_SIZE.
2214 (i386_extract_return_value, i386_extract_struct_value_address):
2215 Convert to use regcache.
2216 (i386_gdbarch_init): Set max_register_raw_size and
2217 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2218 Set extract_return_value and extract_struct_value_address instead
2219 of their deprecated variants.
2220
c0d1d883
MK
2221 Convert i386 target to generic dummy frames.
2222 * i386-tdep.c: Include "symfile.h".
2223 (i386_frameless_signal_p): Consider a function to be frameless if
2224 the pc points at the first instruction of the function.
2225 (i386_frame_chain): Handle (generic) call dummies.
2226 (i386_frame_saved_pc): Likewise.
2227 (i386_frame_init_saved_regs): Remove code dealing with call
2228 dummies on the stack.
2229 (i386_push_dummy_frame): Removed.
2230 (i386_call_dummy_words): Removed.
2231 (i386_fix_call_dummy): Removed.
2232 (i386_push_return_address): New function.
2233 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2234 parameter, and don't call get_current_frame.
2235 (i386_pop_frame): New function.
2236 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2237 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2238 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2239 call_dummy_length to 0, set call_dummy_words to NULL, set
2240 sizeof_call_dummy_words to 0, set fix_call_dummy to
2241 generic_fix_call_dummy, set pc_in_call_dummy to
2242 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2243 generic_push_dummy_frame, set push_return_address to
2244 i386_push_return_address and set frame_chain_valid to
2245 generic_file_frame_chain_valid.
2246
638c1580
ML
22472002-07-04 Michal Ludvig <mludvig@suse.cz>
2248
2249 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2250 byte offsets instead of an array of indexes.
2251 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2252
049ee0e4
AC
22532002-07-03 Andrew Cagney <ac131313@redhat.com>
2254
2255 * gdbarch.sh (struct regcache): Add opaque declaration.
2256 (EXTRACT_RETURN_VALUE): New architecture method.
2257 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2258 * gdbarch.h, gdbarch.c: Regenerate.
2259 * arch-utils.c (legacy_extract_return_value): New function.
2260 * arch-utils.h (legacy_extract_return_value): Declare.
2261 * values.c (value_being_returned): Re-enable code handling
2262 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2263 deprecated_grub_regcache_for_registers call to block handling
2264 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2265 (EXTRACT_RETURN_VALUE): Do not define.
2266
4e0d9804
GS
22672002-07-03 Grace Sainsbury <graces@redhat.com>
2268
2269 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2270 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2271 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2272 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2273 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2274 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2275 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2276 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2277 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2278 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2279 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2280 argument so the function fits the prototype in the architecture
2281 vector.
2282 (mcore_pop_frame): Remove argument so the function fits the
2283 prototype. Use get_current_frame instead of the argument.
2284 (mcore_push_arguments): Change type of struct_return so the
2285 function can be used in the architecture vector.
2286 (mcore_store_struct_return): Add.
2287 (mcore_frame_init_saved_regs): Add.
2288 (mcore_gdbarch_init): Add function calls to replace the macros
2289 removed from tm-mcore.h
2290
36160dc4
AC
22912002-07-03 Andrew Cagney <ac131313@redhat.com>
2292
2293 * infcmd.c (print_return_value): Remove compatibility code calling
2294 deprecated_grub_regcache_for_registers.
2295
2296 * values.c: Include "regcache.h".
2297 (value_being_returned): Update. Use
2298 deprecated_grub_regcache_for_registers to extract the register
2299 buffer address.
2300 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2301 ``struct regcache''.
2302 * Makefile.in (values.o): Add dependency on $(regcache_h).
2303
2304 * inferior.h (run_stack_dummy): Change type of second parameter to
2305 a ``struct regcache''.
2306 * valops.c (hand_function_call): Change type of retbuf to ``struct
2307 regcache''. Allocate using regcache_xmalloc, clean using
2308 make_cleanup_regcache_xfree.
2309 * infcmd.c (run_stack_dummy): Update. Use
2310 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2311
2312 * regcache.c (do_regcache_xfree): New function.
2313 (make_cleanup_regcache_xfree): New function.
2314 * regcache.h (make_cleanup_regcache_xfree): Declare.
2315
e64d9b3d
MH
23162002-07-03 Martin M. Hunt <hunt@redhat.com>
2317
4dd79c29
MH
2318 * event-top.c (command_line_handler): Don't read past
2319 beginning of buffer.
e64d9b3d 2320
4dd79c29
MH
23212002-07-03 Martin M. Hunt <hunt@redhat.com>
2322
e64d9b3d
MH
2323 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2324 struct frame_id.
2325 (varobj_create): Store frame_id for root.
2326 (varobj_gen_name): Use xasprintf.
2327 (varobj_update): Save and restore frame using get_frame_id() and
2328 frame_find_by_id().
2329 (create_child): Use xasprintf.
2330 (new_root_variable): Initialize frame_id.
2331 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2332 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2333 to prevent memory leak.
2334
26e6c56a
AC
23352002-07-03 Andrew Cagney <ac131313@redhat.com>
2336
2337 * valops.c (hand_function_call): Move declaration of retbuf to
2338 start of function, allocate using malloc, add a cleanup but before
2339 the inf_status cleanup, cleanup the buffer. Rename local variable
2340 old_chain to inf_status_cleanup.
2341
f436dd25
MH
23422002-07-03 Martin M. Hunt <hunt@redhat.com>
2343
2344 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2345
2346 * cli/cli-decode.c (cmd_func_p): New function.
2347 (cmd_func): New function.
2348
2349 * command.h: Add cmd_func() and cmd_func_p().
2350
4cfe2084
GS
23512002-07-03 Grace Sainsbury <graces@redhat.com>
2352
2353 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2354 (REGISTER_SIZE): Remove.
2355 (MAX_REGISTER_RAW_SIZE): Remove.
2356 (REGISTER_VIRTUAL_TYPE): Remove.
2357 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2358 (REGISTER_NAME): Remove.
2359 (USE_GENERIC_DUMMY_FRAMES): Remove.
2360 (CALL_DUMMY): Remove.
2361 (CALL_DUMMY_START_OFFSET): Remove.
2362 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2363 (CALL_DUMMY_LOCATION): Remove.
2364 (FIX_CALL_DUMMY): Remove.
2365 (CALL_DUMMY_ADDRESS): Remove.
2366 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2367 (SAVE_DUMMY_FRAME_TOS): Remove.
2368 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2369 (mcore_register_virtual_type): New function.
2370 (mcore_register_byte): New function.
2371 (mcore_register_size): New function.
2372 (mcore_register_name): New function.
2373 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2374 macros removed from tm-mcore.h.
2375 (mcore_dump_tdep): Add.
2376 (_initialize_mcore_tdep): Add gdbarch_register call.
2377
4fd667e9
MK
23782002-07-03 Mark Kettenis <kettenis@gnu.org>
2379
2380 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2381 frameless_look_for_prologue, such that we actually call this
2382 function.
2383
42f99ac2
JB
23842002-07-02 Joel Brobecker <brobecker@gnat.com>
2385
2386 * frame.h (frame_address_in_block): New function.
2387
2388 * blockframe.c (frame_address_in_block): New function extracted
2389 from get_frame_block().
2390 (get_frame_block): Use frame_address_in_block().
2391 (block_innermost_frame): Use frame_address_in_block() to match
2392 the frame pc address against the block boundaries rather than
2393 the frame pc directly. This prevents a failure when a frame pc
2394 is actually a return-address pointing immediately after the end
2395 of the given block.
2396
103a1597 23972002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2398
2399 * MAINTAINERS: Add self under write after approval.
2400
24012002-07-02 Grace Sainsbury <graces@redhat.com>
2402
103a1597
GS
2403 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2404 used in architecture vector. The default is
2405 m68k_local_breakpoint_from_pc.
2406 (m68k_local_breakpoint_from_pc): Add.
2407 (enum): Add register numbers from tm-m68k.h.
2408 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2409 vector.
2410 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2411 GDB_MULTI_ARCH_PARTIAL.
2412 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2413 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2414 m68k-tdep.c.
2415 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2416 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2417 to enum in m68k-tdep.c
2418
7a5a0534
JB
24192002-07-02 Joel Brobecker <brobecker@gnat.com>
2420
2421 * solib-osf.c (open_map): Compute the list of shared libraries
2422 loaded by the inferior, rather than the list of libraries loaded
2423 by GDB itself. Otherwise, GDB ends up reading the symbols from
2424 the wrong shared libraries...
2425
6f558d74
MK
24262002-07-02 Mark Kettenis <kettenis@gnu.org>
2427
b7d15bf7
MK
2428 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2429 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2430 macros.
2431 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2432 Remove functions.
2433 (FRAMELESS_SIGNAL): Remove function.
2434 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2435 i386_linux_saved_pc_after_call): Removed.
2436 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2437 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2438 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2439
6bff26de
MK
2440 * i386-tdep.c (i386_frameless_signal_p): New function.
2441 (i386_frame_chain): Deal with frameless signals.
2442 (i386_sigtramp_saved_sp): New function.
2443 (i386_frame_saved_pc): Deal with frameless signals.
2444 (i386_saved_pc_after_call): Make sure the correct value is
2445 returned just after entry into a sigtramp.
2446 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2447 i386fbsd4_sc_sp_offset): New variables.
2448 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2449 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2450 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2451 similiar to what we already did for sc_pc_offset.
2452 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2453 tdep->sc_sp_offset.
2454
6f558d74
MK
2455 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2456
145564b7
ML
24572002-07-02 Michal Ludvig <mludvig@suse.cz>
2458
2459 * config/i386/tm-x86-64linux.h: New.
2460 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2461 definitions.
2462 * config/i386/nm-x86-64.h: Rename to ...
2463 * config/i386/nm-x86-64linux.h: ... this one.
2464 * config/i386/x86-64linux.mh: Reflect the above change.
2465
3a1e71e3
MK
24662002-07-01 Mark Kettenis <kettenis@gnu.org>
2467
21d0e8a4
MK
2468 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2469 with sigcontext_addr. Add sc_sp_offset.
2470 (i386bsd_sigtramp_saved_pc): Remove prototype.
2471 (i386bsd_sicontext_addr): Add prototype.
2472 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2473 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2474 (i386_svr4_sigtramp_saved_pc): Removed.
2475 (i386_svr4_sigcontext_addr): New function.
2476 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2477 Initialize tdep->sigcontext_addr instead. Initialize
2478 tdep->sc_pc_offset and tdep->sc_sp_offset.
2479 (i386_gdbarch_init): Likewise.
2480 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2481 any more.
2482 (i386bsd_sigtramp_saved_pc): Remove function.
2483 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2484 Initialize tdep->sigcontext_addr instead. Initialize
2485 tdep->sc_pc_offset.
2486 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2487 of tdep->sigtramp_saved_pc.
2488 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2489 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2490 instead.
2491
3a1e71e3
MK
2492 * i386-tdep.c (i386_frameless_function_invocation,
2493 i386_frame_num_args, i386_frame_init_saved_regs,
2494 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2495 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2496 i386_extract_return_value, i386_store_return_value,
2497 i386_extract_struct_value_address, i386_register_virtual_type,
2498 i386_register_convertible, i386_register_convert_to_virtual,
2499 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2500 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2501 static.
2502
52e9098c
MK
25032002-07-01 Mark Kettenis <kettenis@gnu.org>
2504
77b13a25
MK
2505 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2506
52e9098c
MK
2507 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2508 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2509 this macro. Include "value.h".
2510
1b372fff
AS
25112002-06-30 Aidan Skinner <aidan@velvet.net>
2512
2513 * ada-exp.tab.c: remove as it's a generated file
2514 * ada-lex.c: remove as it's a generated file
2515
9c5045b5
MK
25162002-06-30 Mark Kettenis <kettenis@gnu.org>
2517
4a93c5bb
MK
2518 * config/i386/tm-i386.h (struct frame_info, struct
2519 frame_saved_regs, struct value, struct type): Remove forward
2520 declarations.
2521
322d4fe0
MK
2522 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2523 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2524 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2525 (FILL_FPXREGSET): Define.
2526
fdd8263d
MK
2527 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2528
482e577b
MK
2529 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2530 i[3456]86-*-netbsd* case.
2531 * config/i386/tm-obsd.h: Removed.
2532 * config/i386/obsd.mt: Removed.
2533 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2534 core-aout.o.
2535 (MH_CFLAGS): Add -DYYDEBUG=0.
2536
6916549a
MK
2537 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2538 i386nbsd_sc_pc_offset on OpenBSD too.
2539
9c5045b5
MK
2540 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2541 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2542 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2543 define.
2544 * i386bsd-tdep.c: Include "arch-utils.h".
2545 (i386bsd_aout_in_solib_call_trampoline): New function.
2546 (i386bsd_init_abi): Set in_solib_call_trampoline to
2547 i386bsd_aout_in_solib_call_trampoline.
2548 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2549 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2550
aa84d1bb
AC
25512002-06-28 Andrew Cagney <ac131313@redhat.com>
2552
2553 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2554 (struct obstack, struct bcache): Add opaque declarations.
2555 * Makefile.in (macrotab_h): Update
2556
b4d83933
AC
25572002-06-28 Andrew Cagney <ac131313@redhat.com>
2558
2559 * blockframe.c (generic_find_dummy_frame): Change return type to
2560 ``struct regcache''.
2561 (struct dummy_frame): Replace field ``registers'' with regcache, a
2562 struct regcache object.
2563 (generic_find_dummy_frame): Update.
2564 (generic_push_dummy_frame): Update. Use regcache_xfree,
2565 regcache_xmalloc and regcache_cpy.
2566 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2567 regcache_xfree.
2568 (deprecated_generic_find_dummy_frame): Update.
2569 (generic_read_register_dummy): Update. Use
2570 regcache_read_as_address.
2571 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2572 (generic_get_saved_register): Update. Use regcache_read.
2573
08c0b5bc
AC
25742002-06-28 Andrew Cagney <ac131313@redhat.com>
2575
2576 * Makefile.in (objfiles_h): Add $(bcache_h).
2577 * objfiles.h: Include "bcache.h".
2578
2579 * Makefile.in (symtab_h): Remove $(bcache_h).
2580 * symtab.h: Do not include "bcache.h".
2581
1f89801a
AC
25822002-06-28 Andrew Cagney <ac131313@redhat.com>
2583
2584 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2585 generic_func_frame_chain_valid.
2586
b9644b58
DB
25872002-06-28 David O'Brien <obrien@FreeBSD.org>
2588
2589 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2590 * config/i386/tm-fbsd.h: Likewise.
2591
dd486634
AC
25922002-06-28 Andrew Cagney <ac131313@redhat.com>
2593
2594 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2595 generic_unwind_get_saved_register.
2596
0b434a00
AC
25972002-06-27 Andrew Cagney <ac131313@redhat.com>
2598
2599 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2600 * regcache.c (supply_register): Add missing argument to
2601 register_buffer call.
2602
f30e5a77
AC
26032002-06-27 Andrew Cagney <ac131313@redhat.com>
2604
2605 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2606 Solaris /bin/grep does not not like it. From Peter Schauer.
2607
9f064c95
TT
26082002-06-26 Tom Tromey <tromey@redhat.com>
2609
2610 * command.h (add_setshow_cmd): Declare.
2611 (add_setshow_cmd_full): Declare.
2612 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2613 returns void. Use add_setshow_cmd_full.
2614 (add_setshow_cmd_full): New function.
2615 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2616 (add_setshow_boolean_cmd): Likewise.
2617
099c7589
JT
26182002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2619
2620 * config/vax/tm-vax.h: Protect from multiple inclusion.
2621 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2622 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2623 * config/vax/tm-vaxbsd.h: ...here. New file.
2624 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2625
1d049c5e
JT
26262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2627
2628 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2629 (BELIEVE_PCC_PROMOTION): Remove.
2630 (AP_REGNUM): Move to...
2631 * config/vax/nm-vax.h: ...here.
2632 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2633 (vax_breakpoint_from_pc): New function.
2634 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2635 and gdbarch_believe_pcc_promotion.
2636
4791e091
JT
26372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2638
2639 * Makefile.in (vax_tdep_h): Define.
2640 (vax-tdep.o): Use $(vax_tdep_h).
2641 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2642 (vax_dump_tdep): New function.
2643 (_initialize_vax_tdep): Register vax_dump_tdep.
2644 * vax-tdep.h: Include osabi.h.
2645 (struct gdbarch_tdep): New.
2646
da130f98
AC
26472002-06-26 Andrew Cagney <cagney@redhat.com>
2648
2649 * frame.h (deprecated_generic_find_dummy_frame): Rename
2650 generic_find_dummy_frame.
2651 * blockframe.c (generic_find_dummy_frame): Make static.
2652 (deprecated_generic_find_dummy_frame): New function.
2653 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2654 generic_find_dummy_frame with deprecated_find_dummy_frame.
2655 (sh64_nofp_frame_init_saved_regs): Ditto.
2656 (sh_fp_frame_init_saved_regs): Ditto.
2657 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2658 (s390_frame_chain): Ditto.
2659 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2660
6300c360
GS
26612002-06-26 Grace Sainsbury <graces@redhat.com>
2662
2663 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2664 gdbarch vector are at the top.
2665 (NUM_REGS): Remove.
2666 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2667 (FRAME_ARGS_ADDRESS): Remove.
2668 (FRAME_LOCALS_ADDRESS): Remove.
2669 (FRAME_NUM_ARGS): Remove.
2670 (FRAME_ARGS_SKIP): Remove.
2671 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2672 (m68k_gdbarch_init): Add gdbarch initializations for macros
2673 undefined in tm-m68k.h
2674
1c617db8
GS
26752002-06-26 Grace Sainsbury <graces@redhat.com>
2676
2677 * monitor.h: Add the function regname to monitor_ops
2678 structure. This way NUM_REGS does not have to be a constant.
2679 * monitor.c (monitor_fetch_register): Added support for regname
2680 function. The function is called if the array regnames is NULL.
2681 (monitor_store_register): Same.
da130f98
AC
2682 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2683 regnames array.
1c617db8
GS
2684 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2685 cpu32bug_cmds.regname to point to new function.
2686 * abug-rom.c (abug_regname): Same as above.
2687 (init_abug_cmds): Same.
2688 * dbug-rom.c (dbug_regname): Same as above.
2689 (init_dbug_cmds): Same.
2690 * remote-est.c (est_regname): Same.
2691 (init_est_cmds): Same.
2692 * rom68k-rom.c (rom68k_regname): Same.
2693 (init_rom68k_cmds): Same.
2694
ea9365bb
TT
26952002-06-25 Tom Tromey <tromey@redhat.com>
2696
2697 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2698
72cec141
AC
26992002-06-25 Andrew Cagney <cagney@redhat.com>
2700
2701 * infrun.c (stop_registers): Change variable's type to ``struct
2702 regcache'''.
2703 (xmalloc_inferior_status): Delete function.
2704 (free_inferior_status): Delete function.
2705 (normal_stop): Use regcache_cpy.
2706 (struct inferior_status): Change type of fields ``stop_registers''
2707 and ``registers'' to ``struct regcache''.
2708 (write_inferior_status_register): Use regcache_write.
2709 (save_inferior_status): Instead of calling
2710 xmalloc_inferior_status, allocate the inf_status buffer directly.
2711 Use regcache_dup_no_passthrough and regcache_dup to save the
2712 buffers.
2713 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2714 Replace the stop_registers regcache instead of overriding it. Use
2715 regcache_xfree. Instead of calling free_inferior_status, xfree
2716 the buffer directly.
2717 (discard_inferior_status): Use regcache_xfree. Instead of calling
2718 free_inferior_status, xfree the buffer directly.
2719 (build_infrun): Use regcache_xmalloc.
2720 (_initialize_infrun): Delete redundant call to build_infrun.
2721
2722 * Makefile.in (infcmd.o): Add $(regcache_h).
2723
2724 * infcmd.c: Include "regcache.h".
2725 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2726 obtain the address of `stop_registers' register buffer.
2727 (print_return_value): Ditto.
2728
2729 * inferior.h (struct regcache): Add opaque declaration.
2730 (stop_registers): Change variable's declared type to ``struct
2731 regcache''.
2732
defc6f8c
TT
27332002-06-24 Tom Tromey <tromey@redhat.com>
2734
c0e624e7
TT
2735 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2736 * target.c (initialize_targets): Fixed typo in
2737 trust-readonly-sections `show' documentation.
2738
defc6f8c
TT
2739 * main.c: Marked all strings with _().
2740
2b236d82
DH
27412002-06-24 Don Howard <dhoward@redhat.com>
2742
2743 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2744 that means max CORE_ADDR+1.
2745 (lookup_mem_region): Ditto.
2746 (mem_info_command): Ditto.
2747
942dc0e9
GS
27482002-06-24 Grace Sainsbury <graces@redhat.com>
2749
2750 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2751 (REGISTER_BYTES_OK): Remove.
2752 (REGISTER_BYTES): Remove.
2753 (STORE_STRUCT_RETURN): Remove.
2754 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2755 (STORE_RETURN_VALUE): Remove.
2756 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2757 (FRAME_CHAIN): Remove.
2758 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2759 (FRAME_SAVED_PC): Remove.
2760 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2761 (m68k_store_struct_return): Add.
2762 (m68k_deprecated_extract_return_value): Add.
2763 (m68k_deprecated_extract_struct_value_address): Add.
2764 (m68k_store_return_value): Add.
2765 (m68k_frame_chain): Add.
2766 (m68k_frameless_function_invocation): Add.
2767 (m68k_frame_saved_pc): Add.
2768 (m68k_gdbarch_init): added set_gdbarch calls for new
2769 functions and deleted macros.
2770
03c30d4d
TT
27712002-06-23 Tom Tromey <tromey@redhat.com>
2772
2773 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2774 (ALLDEPFILES): Likewise.
2775 (udiheaders): Removed.
2776 (udip2soc.o): Likewise.
2777 (udi2go32.o): Likewise.
2778 (udr.o): Likewise.
2779 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2780
37e71372
AC
27812002-06-22 Andrew Cagney <ac131313@redhat.com>
2782
06a6ac57
AC
2783 * infrun.c (_initialize_infrun): Delete unnecessary call to
2784 build_infrun.
2785
37e71372
AC
2786 * regcache.h: Update comments describing the regcache_cpy family
2787 of functions.
2788 (regcache_save, regcache_restore): Delete declaration.
2789 (regcache_save_no_passthrough): Delete declaration.
2790 (regcache_restore_no_passthrough): Delete declaration.
2791 * regcache.c (regcache_save): Delete function.
2792 (regcache_save_no_passthrough): Delete function.
2793 (regcache_restore): Delete function.
2794 (regcache_restore_no_passthrough): Delete function.
2795
78f6d055
AC
27962002-06-21 Andrew Cagney <ac131313@redhat.com>
2797
2798 * config/m68k/tm-m68k.h: Fix typo.
2799 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2800 (m68k_frame_init_saved_regs): Declare.
2801
78b119cb
JB
28022002-06-21 Jim Blandy <jimb@redhat.com>
2803
2804 Remove some vestiges of Harris 88k support.
2805 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2806 register numbering quirk.
2807 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2808 odd symbols occurring in Harris 88k ELF targets.
2809
0fbb3da7
TT
28102002-06-21 Tom Tromey <tromey@redhat.com>
2811
2812 * gdb_locale.h: New file.
2813 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2814 (defs_h): Added gdb_locale.h.
2815 * configure, config.in: Rebuilt.
2816 * configure.in (PACKAGE): Define.
2817 * defs.h: Include gdb_locale.h.
2818 * main.c (captured_main): Call setlocale, bindtextdomain,
2819 textdomain.
2820
456f8b9d
DB
28212002-06-21 Dave Brolley <brolley@redhat.com>
2822
2823 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2824 * config/frv/frv.mt: New file.
2825 * config/frv/tm-frv.h: New file.
2826 * configure.tgt: Support frv-*-*.
2827 * Makefile.in (frv-tdep.o): New target.
2828 * frv-tdep.c: New file.
2829 * NEWS: Mention frv.
2830
cdd463f9
DB
28312002-06-21 Dave Brolley <brolley@redhat.com>
2832
2833 * MAINTAINERS: Add self to "Write After Approval" list.
2834
5d3ed2e3
GS
28352002-06-21 Grace Sainsbury <graces@redhat.com>
2836
2837 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2838 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2839 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2840 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2841 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2842
2843 * m68k-tdep.c: Include arch-utils.h
2844 (m68k_register_raw_size): Add.
2845 (m68k_register_virtual_size): Add.
2846 (m68k_register_virtual_type): Add.
2847 (m68k_register_name): Add.
2848 (m68k_stack_align): Add.
2849 (m68k_register_byte): Add.
2850 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2851 tm-m68k.h.
2852
7f8e7424
GS
28532002-06-21 Grace Sainsbury <graces@redhat.com>
2854
a2c6a6d5 2855 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2856 m68k_find_saved_regs.
2857 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2858 references to it with frame->saved_regs.
7f8e7424
GS
2859 (m68k_gdbarch_init): Added function calls to initialize the
2860 gdbarch structure.
a2c6a6d5
GS
2861 (m68k_fix_call_dummy): Add.
2862 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2863 (CALL_DUMMY): Remove.
2864 (CALL_DUMMY_LENGTH): Remove.
2865 (CALL_DUMMY_START_OFFSET): Remove.
2866 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2867 (FIX_CALL_DUMMY): Remove.
2868 (PUSH_DUMMY_FRAME): Remove.
2869 (POP_FRAME): Remove.
7f8e7424 2870
f461f5cf
PM
28712002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2872
2873 * parse.c (parse_fprintf): New function used to avoid calls to
2874 fprintf in bison parser generated debug code.
2875 * parser-defs.h: Declaration of new parse_fprintf function.
2876 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2877 Set YYDEBUG to 1 by default.
2878 Set YYFPRINTF as parse_fprintf.
2879
7f0c12ed
ML
28802002-06-21 Michal Ludvig <mludvig@suse.cz>
2881
2882 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2883 encoding anymore.
2884 (pointer_encoding, enum ptr_encoding): New.
2885 (execute_cfa_program): Take care about pointer encoding.
2886 (dwarf2_build_frame_info): Only call parse_frame_info for
2887 .debug_frame and .eh_frame.
2888 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2889 fixed augmentation handling, added relative addressing,
2890 ignore duplicate FDEs. Added comments.
19d833a2 2891 * dwarf2cfi.c: Reindented.
7f0c12ed 2892
87c4a039
EZ
28932002-06-20 Elena Zannoni <ezannoni@redhat.com>
2894
2895 * event-top.c (command_handler): Don't use space_at_cmd_start
2896 unless there is sbrk() on the host. Assign time and space data
2897 to union fields of the appropriate length.
2898
1cf877ad
ML
28992002-06-20 Michal Ludvig <mludvig@suse.cz>
2900
2901 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2902 x86_64_register_name. Return type changed to 'const char *'.
2903 (x86_64_register_name2nr): Rename to x86_64_register_number.
2904 (x86_64_gdbarch_init): Update to reflect the change.
2905 * x86-64-tdep.h: Ditto.
2906 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2907 (supply_fpregset): Ditto.
2908
3fadccb3
AC
29092002-06-19 Andrew Cagney <cagney@redhat.com>
2910
2911 * regcache.h: Update copyright.
2912 (struct regcache, struct gdbarch): Add opaque declarations.
2913 (current_regcache): Declare global variable.
2914 (regcache_read, regcache_write): Add gdbarch parameter.
2915 (regcache_save, regcache_save_no_passthrough)
2916 (regcache_restore, regcache_restore_no_passthrough)
2917 (regcache_dup, regcache_dup_no_passthrough)
2918 (regcache_cpy, regcache_cpy_no_passthrough)
2919 (deprecated_grub_regcache_for_registers)
2920 (deprecated_grub_regcache_for_register_valid)
2921 (regcache_valid_p): Add function declarations.
2922
2923 * regcache.c: Update copyright.
2924 (regcache_descr_handle): New global variable.
2925 (struct regcache_descr): Define.
2926 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2927 (regcache_descr, xfree_regcache_descr): New functions.
2928 (struct regcache): Define.
2929 (regcache_xmalloc, regcache_xfree): New functions.
2930 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2931 (regcache_dup, regcache_dup_no_passthrough): New functions.
2932 (regcache_valid_p, regcache_read_as_address): New functions.
2933 (deprecated_grub_regcache_for_registers): New function.
2934 (deprecated_grub_regcache_for_register_valid): New function.
2935 (current_regcache): New global variable.
2936 (register_buffer): Add regcache parameter. Update calls.
2937 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2938 (read_register_gen, write_register_gen): Update register_buffer
2939 call. Test for legacy_p instead of gdbarch_register_read_p or
2940 gdbarch_register_write_p.
2941 (regcache_collect): Update register_buffer call.
2942 (build_regcache): Rewrite. Use deprecated grub functions.
2943 (regcache_save, regcache_save_no_passthrough): New functions.
2944 (regcache_restore, regcache_restore_no_passthrough): New
2945 functions.
2946 (_initialize_regcache): Create the regcache_data_handle. Swap
2947 current_regcache global variable.
2948
2949 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2950 parameter to regcache_read and regcache_write calls.
2951 (sh4_register_read): Ditto.
2952 (sh64_pseudo_register_read): Ditto.
2953 (sh64_register_read): Ditto.
2954 (sh_pseudo_register_write): Ditto.
2955 (sh4_register_write): Ditto.
2956 (sh64_pseudo_register_write): Ditto.
2957 (sh64_register_write): Ditto.
2958
2959 * defs.h (XCALLOC): Define.
2960
152d9db6
GS
29612002-06-19 Grace Sainsbury <graces@redhat.com>
2962
2963 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2964 * m68k-tdep.c (m68k_gdbarch_init): Added.
2965 (m68k_dump_tdep): Added.
2966
170911c7
DJ
29672002-06-19 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * ada-lang.c (fill_in_ada_prototype): Update comment.
2970
2e4ebe70
DJ
29712002-06-19 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2974 MIPS_ABI_LAST.
2975 (mips_abi_string, mips_abi_strings): New.
2976 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2977 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2978 tdep->mips_abi_string. Honor mips_abi_string. Default to
2979 O32 if no ABI is found.
2980 (mips_dump_tdep): Use mips_abi_strings.
2981 (mips_abi_update): New function.
2982 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2983 ``set mips abi'' and ``show mips abi''. Check the size of
2984 mips_abi_strings.
2985
16775908
AC
29862002-06-19 Andrew Cagney <cagney@redhat.com>
2987
2988 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2989 constant.
2990
5051bfa4 29912002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 2992
5051bfa4
JB
2993 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2994 current frame using only the first stack size adjustment. All
2995 subsequent size adjustments are not considered to be part of
2996 the "static" part of the current frame.
2997 Compute the address of the saved registers relative to the
2998 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2999 in use in this frame.
3000
56468235
DH
30012002-06-18 Don Howard <dhoward@redhat.com>
3002
3003 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3004 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3005 suggesting this solution.
3006
0b624158
AC
30072002-06-18 Andrew Cagney <ac131313@redhat.com>
3008
3009 * config/romp/xm-rtbsd.h: Delete file.
3010 * config/romp/rtbsd.mh: Delete file.
3011
221ea385
KS
30122002-06-18 Keith Seitz <keiths@redhat.com>
3013
3014 * breakpoint.c (condition_command): Post breakpoint_modify
3015 when a condition is added to an existing breakpoint.
3016 (commands_command): Likewise for commands.
3017 (set_ignore_count): Likewise for ignore counts.
3018 If no tty, do not simply return, still need to send event
3019 notification.
3020 (ignore_command): Only print a newline if the command came
3021 from a tty.
3022 Don't call breakpoints_changed, since this is now properly
3023 handled by set_ignore_count.
3024
5402eed1
AC
30252002-06-18 Andrew Cagney <cagney@redhat.com>
3026
3027 * MAINTAINERS: Note that cris-elf target can be compiled with
3028 -Werror.
3029 * cris-tdep.c (cris_register_name): Make return type constant.
3030 (cris_breakpoint_from_pc): Ditto.
3031
cc22880b
ML
30322002-06-18 Michal Ludvig <mludvig@suse.cz>
3033
3034 * frame.h (struct frame_info): Change type of context to
3035 'struct context'.
3036
fa88f677
AC
30372002-06-17 Andrew Cagney <cagney@redhat.com>
3038
3039 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3040 pointer.
3041 * gdbarch.h, gdbarch.c: Regenerate.
3042 * config/mips/tm-mips.h (mips_register_name): Update.
3043 * i386-tdep.h (i386_register_name): Update.
3044 * mips-tdep.c (mips_register_name): Update
3045 * alpha-tdep.c (alpha_register_name): Update.
3046 * arch-utils.c (legacy_register_name): Update.
3047 * arch-utils.h (legacy_register_name): Update.
3048 * avr-tdep.c (avr_register_name): Update.
3049 * ia64-tdep.c (ia64_register_name): Update.
3050 * i386-tdep.c (i386_register_name): Update.
3051 * sparc-tdep.c (sparc32_register_name): Update.
3052 (sparc64_register_name): Update.
3053 (sparclite_register_name): Update.
3054 (sparclet_register_name): Update.
3055 * sh-tdep.c (sh_generic_register_name): Update.
3056 (sh_sh_register_name): Update.
3057 (sh_sh3_register_name): Update.
3058 (sh_sh3e_register_name): Update.
3059 (sh_sh_dsp_register_name): Update.
3060 (sh_sh3_dsp_register_name): Update.
3061 (sh_sh4_register_name): Update.
3062 (sh_sh64_register_name): Update.
3063 * s390-tdep.c (s390_register_name): Update.
3064 * rs6000-tdep.c (rs6000_register_name): Update.
3065 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3066 (ns32k_register_name_32382): Update.
3067 * d10v-tdep.c (d10v_ts2_register_name): Update.
3068 (d10v_ts3_register_name): Update.
3069 * xstormy16-tdep.c (xstormy16_register_name): Update.
3070 * vax-tdep.c (vax_register_name): Update.
3071 * v850-tdep.c (v850_register_name): Update.
3072 * m68hc11-tdep.c (m68hc11_register_name): Update.
3073 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3074 (am33_register_name): Update.
3075
ea1e7ef6
GS
30762002-06-17 Grace Sainsbury <graces@redhat.com>
3077
3078 * m68k-tdep.c: Reindented.
3079
9b02dd1b
AC
30802002-06-17 Andrew Cagney <ac131313@redhat.com>
3081
3082 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3083 list of predefined types.
3084
8758dec1
MK
30852002-06-16 Mark Kettenis <kettenis@gnu.org>
3086
b6197528
MK
3087 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3088 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3089 REGISTER_CONVERT_TO_RAW): Remove defines.
3090 (i386_register_virtual_type, i386_register_convertible,
3091 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3092 Remove prototypes.
3093 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3094 macros mentioned above.
3095
82b47e62
MK
3096 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3097 (i386lynx_saved_pc_after_call): Remove prototype.
3098 * i386ly-tdep.c: Include "i386-tdep.h".
3099 (i386lynx_saved_pc_after_call): Make static. Use
3100 read_memory_nobpt instead of read_memory. Use
3101 read_memory_unsigned_integer instead of read_memory_integer.
3102 (i386lynx_init_abi): New function.
3103 (i386lynx_coff_osabi_sniffer): New function.
3104 (_initialize_i386bsd_tdep): New function.
3105
8758dec1
MK
3106 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3107 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3108 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3109 (i386_fix_call_dummy): Remove prototype.
3110 * i386-tdep.c (i386_call_dummy_words): New variable.
3111 (i386_gdbarch_init): Adjust for removal of the
3112 macros mentioned above.
3113
e9e68a56
AC
31142002-06-15 Andrew Cagney <ac131313@redhat.com>
3115
3116 * command.h (add_setshow_auto_boolean_cmd): Replace
3117 add_set_auto_boolean_cmd.
3118 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3119 add_set_auto_boolean_cmd.
3120 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3121 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3122 mask-address'' command.
3123 (show_mask_address): Add cmd parameter.
3124 * remote.c (add_packet_config_cmd): Update. Change type of
3125 set_func and show_func to cmd_sfunc_ftype.
3126 (_initialize_remote): Update `set remote Z-packet'
3127 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3128 (show_remote_protocol_e_packet_cmd): Ditto.
3129 (show_remote_protocol_E_packet_cmd): Ditto.
3130 (show_remote_protocol_P_packet_cmd): Ditto.
3131 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3132 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3133 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3134 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3135 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3136 (show_remote_protocol_Z_packet_cmd): Ditto.
3137 (show_remote_protocol_binary_download_cmd): Ditto.
3138 (show_remote_cmd): Pass NULL to all of above.
3139
fc08ec52
MK
31402002-06-15 Mark Kettenis <kettenis@gnu.org>
3141
3142 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3143 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3144 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3145 POP_FRAME): Remove defines.
3146 (i386_push_arguments, i386_store_struct_return,
3147 i386_extract_return_value, i386_store_return_value,
3148 i386_extract_struct_value_address, i386_push_dummy_frame,
3149 i386_pop_frame): Renove prototypes.
3150 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3151 macros mentioned above.
3152
e707bbc2
AC
31532002-06-15 Andrew Cagney <ac131313@redhat.com>
3154
3155 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3156 add_set_boolean_cmd.
3157 (add_setshow_cmd): New function.
3158 * command.h (add_setshow_boolean_cmd): Replace
3159 add_set_boolean_cmd.
3160 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3161 and ``set rdiromatzero''.
3162 * maint.c (_initialize_maint_cmds): Update commented out code.
3163 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3164 * target.c (initialize_targets): Update `set
3165 trust-readonly-sections'.
3166 * remote.c (_initialize_remote): Update `set remotebreak'.
3167
42fdc8df
MK
31682002-06-15 Mark Kettenis <kettenis@gnu.org>
3169
93924b6b
MK
3170 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3171 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3172 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3173 fit into multi-arch framework.
3174 (i386_breakpoint_from_pc): New function.
3175 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3176 above.
3177
42fdc8df
MK
3178 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3179 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3180 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3181 (i386_frameless_function_invocation, i386_frame_num_args,
3182 i386_frame_init_saved_regs): Remove prototypes.
3183 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3184 macros mentioned above.
3185
9773a94b
AC
31862002-06-15 Andrew Cagney <ac131313@redhat.com>
3187
3188 * cli/cli-decode.c (set_cmd_cfunc): Update.
3189 (set_cmd_sfunc): Update.
3190 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3191 (set_cmd_sfunc, set_cmd_cfunc): Update.
3192 * cli/cli-decode.h: Update.
3193
6e157172
MK
31942002-06-15 Mark Kettenis <kettenis@gnu.org>
3195
3196 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3197 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3198
7f19b9a2
AC
31992002-06-15 Andrew Cagney <ac131313@redhat.com>
3200
3201 * defs.h (auto_boolean): Declare enum.
3202 * command.h (cmd_auto_boolean): Delete enum.
3203 * mips-tdep.c (mask_address_var): Update.
3204 (mips_mask_address_p): Update.
3205 (show_mask_address): Update.
3206 * remote.c (struct packet_config): Update.
3207 (update_packet_config): Update.
3208 (show_packet_config_cmd): Update.
3209 (packet_ok): Update.
3210 (add_packet_config_cmd): Update.
3211 (_initialize_remote):
3212 * command.h: Update.
3213 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3214 (do_setshow_command): Update.
3215 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3216 * cli/cli-decode.h: Update.
3217
1cf88de5
MK
32182002-06-15 Mark Kettenis <kettenis@gnu.org>
3219
22ba8cf2
MK
3220 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3221 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3222 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3223 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3224 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3225 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3226
762c5349
MK
3227 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3228 list of DJGPP COFF targets.
3229
091198bb
MK
3230 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3231 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3232 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3233 (FP0_REGNUM): Remove define.
3234 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3235 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3236 (i386_register_virtual_size): Remove protoype.
3237 * i386-tdep.c (i386_register_virtual_size): Removed.
3238 (i386_extract_return_value, i386_store_return_value): Use
3239 FP0_REGNUM instead of NUM_FREGS to determine whether the
3240 floating-point registers are available.
3241 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3242 Adjust for removal of macros mentioned above.
3243
32442002-06-15 Mark Kettenis <kettenis@gnu.org>
3245
fcc9bf01
MK
3246 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3247 comments.
3248 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3249 Remove prototypes.
3250 (supply_gregset, fill_gregset): Remove use of register keyword and
3251 remove declaration for regmap. Use I386_NUM_GREGS instead of
3252 NUM_REGS and NUM_FREGS.
3253 (FPREGSET_FSAVE_OFFSET): Remove.
3254 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3255 NUM_FREGS to determine whether the floating-point registers are
3256 available.
3257
65e78234
MK
3258 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3259 gnu_store_registers): Replace usage of NUM_GREGS with
3260 I386_NUM_GREGS.
3261
98df6387
MK
3262 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3263 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3264 usage of NUM_GREGS with I386_NUM_GREGS.
3265
099a9414
MK
3266 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3267
57976e88
MK
3268 * i386bsd-nat.c: Include "i386-tdep.h".
3269 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3270 I386_NUM_GREGS.
3271
b335f4a6
MK
3272 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3273 and associated comment. They no longer make any sense, since we
3274 don't use this file anymore on Linux.
3275
1cf88de5
MK
3276 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3277 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3278 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3279 elements in these arrays.
3280 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3281 MAX_NUM_REGS.
3282
daa66587
MK
32832002-06-15 Mark Kettenis <kettenis@gnu.org>
3284
3285 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3286 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3287
26e9b323
AC
32882002-06-14 Andrew Cagney <cagney@redhat.com>
3289
3290 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3291 EXTRACT_RETURN_VALUE.
3292 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3293 EXTRACT_STRUCT_VALUE_ADDRESS.
3294 * gdbarch.h, gdbarch.c: Regenerate.
3295
3296 * values.c (value_being_returned): Handle
3297 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3298 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3299
3300 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3301 * arm-tdep.c (arm_gdbarch_init): Update.
3302 * avr-tdep.c (avr_gdbarch_init): Update.
3303 * cris-tdep.c (cris_gdbarch_init): Update.
3304 * d10v-tdep.c (d10v_gdbarch_init): Update.
3305 * ia64-tdep.c (ia64_gdbarch_init): Update.
3306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3308 * s390-tdep.c (s390_gdbarch_init): Update.
3309 * sh-tdep.c (sh_gdbarch_init): Update.
3310 * s390-tdep.c (s390_gdbarch_init): Update.
3311 * sparc-tdep.c (sparc_gdbarch_init): Update.
3312 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3313 * v850-tdep.c (v850_gdbarch_init): Update.
3314 * vax-tdep.c (vax_gdbarch_init): Update.
3315 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3317
3318 * config/arc/tm-arc.h: Update.
3319 * config/d30v/tm-d30v.h: Update.
3320 * config/fr30/tm-fr30.h: Update.
3321 * config/h8300/tm-h8300.h: Update.
3322 * config/h8500/tm-h8500.h: Update.
3323 * config/i386/tm-i386.h: Update.
3324 * config/i386/tm-ptx.h: Update.
3325 * config/i386/tm-symmetry.h: Update.
3326 * config/i960/tm-i960.h: Update.
3327 * config/m32r/tm-m32r.h: Update.
3328 * config/m68k/tm-delta68.h: Update.
3329 * config/m68k/tm-linux.h: Update.
3330 * config/m68k/tm-m68k.h: Update.
3331 * config/m88k/tm-m88k.h: Update.
3332 * config/mcore/tm-mcore.h: Update.
3333 * config/mips/tm-mips.h: Update.
3334 * config/mn10200/tm-mn10200.h: Update.
3335 * config/pa/tm-hppa.h: Update.
3336 * config/pa/tm-hppa64.h: Update.
3337 * config/sparc/tm-sp64.h: Update.
3338 * config/sparc/tm-sparc.h: Update.
3339 * config/sparc/tm-sparclet.h: Update.
3340 * config/z8k/tm-z8k.h: Update.
3341
5179e78f
AC
33422002-06-14 Andrew Cagney <cagney@redhat.com>
3343
3344 * Makefile.in (i386_linux_tdep_h): Define.
3345 (i386_tdep_h, i387_tdep_h): Define.
3346 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3347 $(i386_tdep_h) and $(i387_tdep_h).
3348 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3349
8201327c
MK
33502002-06-14 Mark Kettenis <kettenis@gnu.org>
3351
edf393ac
MK
3352 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3353 Already covered by the default.
3354
896fb97d
MK
3355 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3356 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3357 (i386_gdbarch_init): Initialize long_double_format and long_double
3358 bit.
3359
8201327c
MK
3360 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3361 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3362 Move these to ...
3363 * config/i386/i386sol2.mh: ... here.
3364 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3365 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3366 (SIGCONTEXT_PC_OFFSET): Remove define.
3367 (IN_SIGTRAMP): Remove define.
3368 * i386-sol2-tdep.c: New file.
3369
3370 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3371 * config/i386/tm-i386nw.h: Removed.
3372
3373 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3374 USE_STRUCT_CONVENTION): Remove defines.
3375 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3376 (get_longjmp_target): Remove prototype.
3377 (IN_SIGTRAMP): Remove define.
3378 (i386bsd_in_sigtramp): Remove prototype.
3379 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3380 function. Update comment accordingly
3381 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3382 (FRAME_SAVED_PC): Remove define.
3383 (i386bsd_frame_saved_pc): Remove prototype.
3384 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3385 GET_LONGJMP_TARGET): Remove defines.
3386 (get_longjmp_target): Remove prototype.
3387 (IN_SIGTRAMP): Remove define.
3388 (i386bsd_in_sigtramp): Remove prototype.
3389 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3390 function. Update comment accordingly
3391 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3392 (FRAME_SAVED_PC): Remove define.
3393 (i386bsd_frame_saved_pc): Remove prototype.
3394 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3395 Remove prototype.
3396 (USE_STRUCT_CONVENTION): Remove prototype.
3397 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3398 declaration.
3399 (_initialize_i386bsd_nat): Revise logic to determine some
3400 constants at compile time when compiling a native GDB. Warn if
3401 things don't match up with what we expect.
3402 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3403 Remove variables.
3404 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3405 to use date stored in `struct gdbarch_tdep'.
3406 (i386bsd_sigcontext_offset): Remove varaible.
3407 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3408 stored in `struct gdbarch_tdep'.
3409 (i386bsd_frame_saved_pc): Make static.
3410 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3411 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3412 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3413 i386fbsd4_sc_pc_offset): New variables.
3414 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3415 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3416 functions.
3417 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3418 functions.
3419 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3420 Modify the value of i386fbsd_sigtramp_start and
3421 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3422 i386fbsd_sigtramp_end.
3423 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3424 function.
3425
3426 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3427 define to i386-linux-tdep.h.
3428 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3429 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3430 defines.
3431 (i386_linux_register_name, i386_linux_register_byte,
3432 i386_linux_register_raw_size): Remove prototypes.
3433 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3434 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3435 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3436 TARGET_WRITE_PC): Remove defines.
3437 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3438 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3439 i386_linux_write_pc): Remove prototypes.
3440 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3441 (get_longjmp_target): Remove prototype.
3442 * i386-linux-tdep.h: New file.
3443 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3444 * i386-linux-tdep.c: Include "i386-tdep.h" and
3445 "i386-linux-tdep.h".
3446 (i386_linux_register_name, i386_linux_register_byte,
3447 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3448 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3449 Make static.
3450 (i386_linux_init_abi): New function.
3451 (_initialize_i386_linux_tdep): New function.
3452
3453 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3454 (i386_saved_pc_after_call): Remove prototype.
3455 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3456 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3457 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3458 (i386_register_name, i386_stab_reg_to_regnum,
3459 i386_dwarf_reg_to_regnum): Remove prototypes.
3460 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3461 SIZEOF_SSE_REGS): Remove defines.
3462 (REGISTER_BYTES): Remove define.
3463 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3464 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3465 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3466 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3467 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3468 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3469 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3470 (get_longjmp_target): Remove prototype.
3471 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3472 (sigtramp_saved_pc): Remove define.
3473 (i386v4_sigtramp_saved_pc): Remove prototype.
3474 * config/i386/tm-go32.h (FRAME_CHAIN,
3475 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3476 (i386go32_frame_saved_pc): Remove prototype.
3477 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3478 (get_longjmp_target): Remove prototype.
3479 * i386-tdep.h: Include "osabi.h".
3480 (enum i386_abi): Removed.
3481 (enum struct_return): New enum.
3482 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3483 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3484 sc_pc_offset members.
3485 (i386_gdbarch_register_os_abi): Remove prototype.
3486 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3487 I386_SSE_NUM_REGS): New defines.
3488 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3489 I386_SSE_SIZEOF_REGS): New defines.
3490 (i386_register_name, i386_register_byte, i386_register_raw_size):
3491 New prototypes.
3492 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3493 (i386bsd_sigtramp_saved_pc): New prototype.
3494 * i386-tdep.c: Don't include "elf-bfd.h".
3495 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3496 i386_frame_chain, i386_saved_pc_after_call): Make static.
3497 (i386_frame_saved_pc): Rewrite to call architecture dependent
3498 function to deal with signal handlers. Make static.
3499 (i386go32_frame_saved_pc): Removed.
3500 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3501 Removed.
3502 (i386_get_longjmp_target): New function.
3503 (default_struct_convention, pcc_struct_convention,
3504 reg_struct_convention, valid_conventions, struct_convention): New
3505 variables.
3506 (i386_use_struct_convention): New function.
3507 (i386v4_sigtramp_saved_pc): Renamed to
3508 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3509 (i386_pc_in_sigtramp): New function.
3510 (i386_abi_names): Removed.
3511 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3512 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3513 Removed.
3514 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3515 i386_gdbarch_register_os_abi): Removed.
3516 (struct i386_abi_handler): Removed.
3517 (i386_abi_handler_list): Removed.
3518 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3519 functions.
3520 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3521 i386_nw_init_abi): New functions.
3522 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3523 Use set_gdbarch_xxx() calls instead of relying on macros for a
3524 number of calls.
3525 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3526 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3527 Register the various architecture variants defined in this file.
3528
ad2f7632
DJ
35292002-06-14 Daniel Jacobowitz <drow@mvista.com>
3530
3531 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3532 (struct main_type): Remove arg_types member. Update comments for
3533 struct field.
3534 (TYPE_ARG_TYPES): Remove.
3535 (TYPE_FN_FIELD_ARGS): Update.
3536 (smash_to_method_type): Update prototype.
3537
3538 * c-typeprint.c (cp_type_print_method_args): Take method type
3539 instead of argument list. Use new argument layout. Simplify.
3540 (c_type_print_args): Use new argument layout. Simplify.
3541 (c_type_print_base): Update call to cp_type_print_method_args.
3542 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3543 argument; use die->type instead. Update call to
3544 smash_to_method_type.
3545 (read_structure_scope): Update call to dwarf2_add_member_fn.
3546 * gdbtypes.c (allocate_stub_method): Update comment.
3547 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3548 Use new argument layout.
3549 (check_stub_method): Use new argument layout. Don't count
3550 void as an argument.
3551 (print_arg_types): Update comments. Use new argument layout.
3552 (recursive_dump_type): Don't print arg_types member.
3553 * hpread.c (hpread_read_struct_type): Use new argument layout.
3554 (fixup_class_method_type): Likewise.
3555 (hpread_type_lookup): Likewise.
3556 * stabsread.c (read_type): Update calls to read_args and
3557 smash_to_method_type.
3558 (read_args): Use new argument layout. Simplify.
3559 * valops.c (typecmp): Use new argument layout. Update parameters
3560 and comments. Simplify.
3561 (hand_function_call): Use new argument layout.
3562 (search_struct_method): Update call to typecmp.
3563 (find_overload_match): Use new argument layout.
3564
6da02953
DJ
35652002-06-13 Daniel Jacobowitz <drow@mvista.com>
3566
3567 * NEWS: Mention multithreaded debug support for gdbserver.
3568
519b2366
DJ
35692002-06-13 Daniel Jacobowitz <drow@mvista.com>
3570
3571 * MAINTAINERS: Mention NEWS.
3572
a7f48742
DJ
35732002-06-13 Daniel Jacobowitz <drow@mvista.com>
3574
3575 * gdbserver/regcache.c: Add comment.
3576
6c0d6680
DJ
35772002-06-13 Daniel Jacobowitz <drow@mvista.com>
3578
3579 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3580 (struct mips_objfile_private, compare_pdr_entries): New.
3581 (non_heuristic_proc_desc): Read the ".pdr" section if it
3582 is present.
3583
6529d2dd
AC
35842002-06-12 Andrew Cagney <ac131313@redhat.com>
3585
3586 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3587 (arm_debug): New static variable.
3588 (_initialize_arm_tdep): Add ``set debug arm'' command.
3589
26216b98
AC
35902002-06-12 Andrew Cagney <ac131313@redhat.com>
3591
3592 * Makefile.in (sim_arm_h): Define.
3593 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3594 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3595 (arm_register_sim_regno): New function, map an internal REGNUM
3596 onto a simulator register number.
3597 (arm_gdbarch_init): Set register_sim_regno.
3598
814b3ba0
AH
35992002-06-09 Aldy Hernandez <aldyh@redhat.com>
3600
3601 * MAINTAINERS: Add self.
3602
475b0867
JB
36032002-06-11 Jim Blandy <jimb@redhat.com>
3604
919d772c
JB
3605 * source.c (source_info): Mention whether the symtab has
3606 information about preprocessor macros.
3607
475b0867
JB
3608 Call the command `info macro', not `show macro'.
3609 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3610 Fix error message.
3611 (_initialize_macrocmd): Register `info_macro_command' in
3612 `infolist', not `showlist'.
3613
9e364162
DJ
36142002-06-11 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3617 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3618 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3619 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3620 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3621 unconditionally.
3622 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3623 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3624 (_initialize_mips_tdep): Remove dead code.
3625 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3626 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3627 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3628 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3629 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3630 MIPS_LAST_FP_ARG_REGNUM): Remove.
3631
36322002-06-11 Daniel Jacobowitz <drow@mvista.com>
3633
3634 * gdbserver/thread-db.c: New file.
3635 * gdbserver/proc-service.c: New file.
3636 * gdbserver/acinclude.m4: New file.
3637 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3638 proc-service.o, and thread-db.o.
3639 (linux-low.o): Add USE_THREAD_DB.
3640 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3641 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3642 * gdbserver/aclocal.m4: Regenerated.
3643 * gdbserver/config.in: Regenerated.
3644 * gdbserver/configure: Regenerated.
3645 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3646 thread_db.h, and linux/elf.h headrs.
3647 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3648 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3649 Check for -lthread_db and thread support.
3650 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3651 PowerPC, and SuperH.
3652 * gdbserver/i387-fp.c: Constify arguments.
3653 * gdbserver/i387-fp.h: Likewise.
3654 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3655 `struct inferior_info'. Remove PID member. Use generic inferior
3656 list header. All uses updated.
3657 (inferiors, signal_pid): Removed.
3658 (all_threads): New variable.
3659 (get_thread): Define.
3660 (add_inferior_to_list): New function.
3661 (for_each_inferior): New function.
3662 (change_inferior_id): New function.
3663 (add_inferior): Removed.
3664 (remove_inferior): New function.
3665 (add_thread): New function.
3666 (free_one_thread): New function.
3667 (remove_thread): New function.
3668 (clear_inferiors): Use for_each_inferior and free_one_thread.
3669 (find_inferior): New function.
3670 (find_inferior_id): New function.
3671 (inferior_target_data): Update argument type.
3672 (set_inferior_target_data): Likewise.
3673 (inferior_regcache_data): Likewise.
3674 (set_inferior_regcache_data): Likewise.
3675 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3676 (all_processes, stopping_threads, using_thrads)
3677 (struct pending_signals, debug_threads, pid_of): New.
3678 (inferior_pid): Replace with macro.
3679 (struct inferior_linux_data): Remove.
3680 (get_stop_pc, add_process): New functions.
3681 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3682 Use add_process and add_thread.
3683 (linux_attach_lwp): New function, based on old linux_attach. Use
3684 add_process and add_thread. Set stop_expected for new threads.
3685 (linux_attach): New function.
3686 (linux_kill_one_process): New function.
3687 (linux_kill): Kill all LWPs.
3688 (linux_thread_alive): Use find_inferior_id.
3689 (check_removed_breakpoints, status_pending_p): New functions.
3690 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3691 Update. Use WNOHANG. Wait for cloned processes also. Update process
3692 struct for the found process.
3693 (linux_wait_for_event): New function.
3694 (linux_wait): Use it. Support LWPs.
3695 (send_sigstop, wait_for_sigstop, stop_all_processes)
3696 (linux_resume_one_process, linux_continue_one_process): New functions.
3697 (linux_resume): Support LWPs.
3698 (REGISTER_RAW_SIZE): Remove.
3699 (fetch_register): Use register_size instead. Call supply_register.
3700 (usr_store_inferior_registers): Likewise. Call collect_register.
3701 Fix recursive case.
3702 (regsets_fetch_inferior_registers): Improve error message.
3703 (regsets_store_inferior_registers): Add debugging.
3704 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3705 (unstopped_p, linux_signal_pid): New functions.
3706 (linux_target_ops): Add linux_signal_pid.
3707 (linux_init_signals): New function.
3708 (initialize_low): Call it. Initialize using_threads.
3709 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3710 flag.
3711 (get_regcache): Fetch registers lazily. Add fetch argument
3712 and update all callers.
3713 (regcache_invalidate_one, regcache_invalidate): New
3714 functions.
3715 (new_register_cache): Renamed from create_register_cache.
3716 Return the new regcache.
3717 (free_register_cache): Change argument to a void *.
3718 (registers_to_string, registers_from_string): Call get_regcache
3719 with fetch flag set.
3720 (register_data): Make static. Pass fetch flag to get_regcache.
3721 (supply_register): Call get_regcache with fetch flag clear.
3722 (collect_register): Call get_regcache with fetch flag set.
3723 (collect_register_as_string): New function.
3724 * gdbserver/regcache.h: Update.
3725 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3726 stderr.
3727 Handle input interrupts while waiting for an ACK.
3728 (input_interrupt): Use signal_pid method.
3729 (getpkt): Flush after debug output and use stderr.
3730 (outreg): Use collect_register_as_string.
3731 (new_thread_notify, dead_thread_notify): New functions.
3732 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3733 and general_thread.
3734 (look_up_one_symbol): Flush after debug output.
3735 * gdbserver/server.c (step_thread, server_waiting): New variables.
3736 (start_inferior): Don't use signal_pid. Update call to mywait.
3737 (attach_inferior): Update call to mywait.
3738 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3739 (main): Don't fetch/store registers explicitly. Use
3740 set_desired_inferior. Support proposed ``Hs'' packet. Update
3741 calls to mywait.
3742 * gdbserver/server.h: Update.
3743 (struct inferior_list, struct_inferior_list_entry): New.
3744 * gdbserver/target.c (set_desired_inferior): New.
3745 (write_inferior_memory): Constify.
3746 (mywait): New function.
3747 * gdbserver/target.h: Update.
3748 (struct target_ops): New signal_pid method.
3749 (mywait): Removed macro, added prototype.
3750
3751 * gdbserver/linux-low.h (regset_func): Removed.
3752 (regset_fill_func, regset_store_func): New.
3753 (enum regset_type): New.
3754 (struct regset_info): Add type field. Use new operation types.
3755 (struct linux_target_ops): stop_pc renamed to get_pc.
3756 Add decr_pc_after_break and breakpoint_at.
3757 (get_process, get_thread_proess, get_process_thread)
3758 (strut process_info, all_processes, linux_attach_lwp)
3759 (thread_db_init): New.
3760
3761 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3762 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3763 (the_low_target): Add new members.
3764 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3765 (i386_store_fpxregset): Constify.
3766 (target_regsets): Add new kind identifier.
3767 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3768 (i386_set_pc): Add debugging.
3769 (i386_breakpoint_at): New function.
3770 (the_low_target): Add new members.
3771 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3772 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3773 (mips_breakpoint_at): New.
3774 (the_low_target): Add new members.
3775 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3776 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3777 (the_low_target): Add new members.
3778 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3779 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3780 (the_low_target): Add new members.
3781 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3782 identifier.
3783
23aa4c72
ML
37842002-06-11 Michal Ludvig <mludvig@suse.cz>
3785
3786 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3787 (unwind_tmp_obstack_free, parse_frame_info)
3788 (update_context, cfi_read_fp, cfi_write_fp)
3789 (cfi_frame_chain, cfi_init_extra_frame_info)
3790 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3791 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3792
70eb15a4
CV
37932002-06-11 Corinna Vinschen <vinschen@redhat.com>
3794
3795 * v850-tdep.c (v850_type_is_scalar): New function.
3796 (v850_use_struct_convention): Match current gcc implementation
3797 as close as possible.
3798 (v850_push_arguments): Fix stack_offset handling. Don't write
3799 struct_addr into register. This is done by v850_store_struct_return.
3800 (v850_extract_return_value): Care for structs.
3801 (v850_store_return_value): Ditto.
3802 (v850_store_struct_return): Actually write address.
3803
482a4d06
ML
38042002-06-11 Michal Ludvig <mludvig@suse.cz>
3805
3806 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3807 without debug information too.
3808
d855c300
AC
38092002-06-10 Andrew Cagney <ac131313@redhat.com>
3810
3811 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3812 Make multi-arch pure.
3813 * gdbarch.h, gdbarch.c: Re-generate.
3814 * arm-tdep.c (arm_print_float_info): Update.
3815 * arch-utils.h (default_print_float_info): Update.
3816 * arch-utils.c (default_print_float_info): Update.
3817 * infcmd.c (float_info): Update call.
3818
dd12a101
AC
38192002-06-10 Andrew Cagney <ac131313@redhat.com>
3820
3821 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3822 the front of the initialize list.
3823
101dcfbe
AC
38242002-06-10 Andrew Cagney <ac131313@redhat.com>
3825
3826 * infrun.c (struct inferior_status): Replace fields
3827 selected_frame_address and selected_level with field
3828 selected_frame_id.
3829 (save_inferior_status): Update. Use get_frame_id.
3830 (struct restore_selected_frame_args): Delete.
3831 (restore_selected_frame): Update. Use frame_find_by_id.
3832 (restore_inferior_status): Update.
3833
3834 * breakpoint.h (struct breakpoint): Change type of
3835 watchpoint_frame to frame_id.
3836 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3837 call to get_current_frame.
3838 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3839 get_current_frame.
3840 (watchpoint_check): Use frame_find_by_id.
3841
3842 * frame.h (record_selected_frame): Delete declaration.
3843 * stack.c (record_selected_frame): Delete function.
3844
3845 * frame.h (struct frame_id): Define.
3846 (get_frame_id): Declare.
3847 (frame_find_by_id): Declare.
3848 * frame.c (frame_find_by_id): New function.
3849 (get_frame_id): New function.
3850
304270b6
AV
38512002-06-10 Andrey Volkov <avolkov@transas.com>
3852
3853 * ser-e7kpc.c: Fix duplicated define and call of
3854 _initialize_ser_e7000pc
3855
2f2cf184
DJ
38562002-06-09 Daniel Jacobowitz <drow@mvista.com>
3857
3858 * signals/signals.c (target_signal_from_host): Fix #ifdef
3859 SIGRTMIN case.
3860 (do_target_signal_to_host): Likewise.
3861
caaa3122
DJ
38622002-06-09 Daniel Jacobowitz <drow@mvista.com>
3863
3864 * mips-tdep.c (mips_find_abi_section): New function.
3865 (mips_gdbarch_init): Call it.
3866
6ac5df3a
MK
38672002-06-09 Mark Kettenis <kettenis@gnu.org>
3868
3869 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3870 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3871 after Andrew's 2002-06-08 gdbarch change.
3872
82ea117a
MK
38732002-06-09 Mark Kettenis <kettenis@gnu.org>
3874
3875 * i386-linux-nat.c (suppy_gregset): Don't supply
3876 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3877 register cache.
3878 (fill_gregset): Don't fetch it under the same circumstances.
3879
3c25f8c7
AC
38802002-06-09 Andrew Cagney <cagney@redhat.com>
3881
3882 * Makefile.in (callback_h): Define.
3883 (remote_sim_h): Update path to remote-sim.h.
3884 (remote-rdp.o): Add $(callback_h).
3885 (remote-sim.o): Use $(callback_h).
3886 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3887 * remote-rdp.c: Include "gdb/callback.h".
3888
1029b7fa
MK
38892002-06-09 Mark Kettenis <kettenis@gnu.org>
3890
3891 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3892 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3893
616675d3
AC
38942002-06-08 Andrew Cagney <ac131313@redhat.com>
3895
a3efda28
AC
3896 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3897 * rdi-share/serpardr.c: Ditto.
3898 * rdi-share/unixcomm.c: Ditto.
3899 * rdi-share/serdrv.c: Ditto.
3900 * rdi-share/hostchan.h: Ditto.
3901 * rdi-share/hostchan.c: Ditto.
3902 * rdi-share/host.h: Ditto.
3903 * rdi-share/devsw.c: Ditto.
3904
c5f10366
AC
3905 * objfiles.h: Change type of obj_private to void pointer.
3906 * pa64solib.c: Update copyright. Don't include "assert.h", use
3907 strcmp instead of STREQ, use LONGEST, do not use PTR
3908 * somsolib.c: Ditto.
3909
616675d3
AC
3910 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3911 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3912 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3913
e4b415d9
AC
39142002-06-08 Andrew Cagney <ac131313@redhat.com>
3915
3916 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3917 (default_get_saved_register): Delete function.
3918 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3919 generic_unwind_get_saved_register.
3920 * gdbarch.h, gdbarch.c: Re-generate.
3921
ca0d0b52
AC
39222002-06-08 Andrew Cagney <ac131313@redhat.com>
3923
3924 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3925 generic_func_frame_chain_valid.
3926 * gdbarch.h, gdbarch.c: Re-generate.
3927 * blockframe.c (generic_func_frame_chain_valid): Only check
3928 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3929 passing FP to PC_IN_CALL_DUMMY.
3930 Fix PR gdb/360.
3931
76860b5f
AC
39322002-06-08 Andrew Cagney <ac131313@redhat.com>
3933
3934 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3935 (register_gdbarch_data): Initialize init_p.
3936 (gdbarch_data): Initialize data pointer using the init function.
3937 (init_gdbarch_data): Delete function.
3938 (gdbarch_update_p): Update.
3939 (initialize_non_multiarch): Update.
3940 (struct gdbarch): Add field initialized_p.
3941 * gdbarch.h, gdbarch.c: Re-generate.
3942
8dda9770
ML
39432002-06-07 Michal Ludvig <mludvig@suse.cz>
3944
3945 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3946 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3947 better do the things actually here.
3948 * x86-64-tdep.c (x86_64_register_name2nr): New.
3949 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3950 (x86_64_gdbarch_init): Respect the above change.
3951 * x86-64-tdep.h (x86_64_register_name2nr)
3952 (x86_64_register_nr2name): Add prototypes.
3953 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3954
3d79a47c
MS
39552002-06-06 Michael Snyder <msnyder@redhat.com>
3956
7bd91a28
MS
3957 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3958 Delete extra braces and re-indent.
3959 (d10v_store_return_value): Char return values
3d79a47c
MS
3960 must be shifted over by one byte in R0.
3961 (d10v_extract_return_value): Delete extra braces, re-indent.
3962
095a4c96
EZ
39632002-06-06 Elena Zannoni <ezannoni@redhat.com>
3964
3965 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3966 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3967 (d10v_integer_to_address): Rewrite.
3968 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3969 the d10v specific functions which take care of converting to the
3970 correct space.
3971
e8a77ca4
EZ
39722002-06-06 Elena Zannoni <ezannoni@redhat.com>
3973
3974 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3975 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3976
4f2e4a4f
AC
39772002-06-02 Andrew Cagney <ac131313@redhat.com>
3978
3979 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3980 includes.
3981 * config/tm-linux.h: Ditto.
3982 * config/alpha/tm-alphalinux.h: Ditto.
3983 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3984 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3985 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3986 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3987 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3988 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3989 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3990 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3991 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3992 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3993 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3994 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3995 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3996 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3997 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3998 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3999 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4000 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4001 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4002 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4003 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4004 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4005 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4006 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4007 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4008 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4009 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4010 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4011 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4012 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4013 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4014 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4015 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4016 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4017 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4018 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4019 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4020
ae2ab2ce
AS
40212002-05-04 Aidan Skinner <aidan@velvet.net>
4022
4023 * ada-exp.tab.c: New file
4024 * ada-exp.y: New file
4025 * ada-lang.c: New file
4026 * ada-lang.h: New file
4027 * ada-lex.c: New file
4028 * ada-lex.l: New file
4029 * ada-tasks.c: New file
4030 * ada-typeprint.c: New file
4031 * ada-valprint.c: New file
4032
0ddd0135
JT
40332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4034
4035 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4036 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4037
750fbacc
JT
40382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4039
4040 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4041 insetead of ppc-linux-tdep.o.
4042 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4043 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4044
df94e18a
AC
40452002-06-02 Andrew Cagney <ac131313@redhat.com>
4046
4047 2002-05-07 Christian Groessler <chris@groessler.org>
4048 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4049 bit register contents for little endian hosts.
4050
1a38ab75
AC
40512002-06-01 Andrew Cagney <ac131313@redhat.com>
4052
4053 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4054 any maintainer.
4055
8b1632ac
AC
40562002-06-01 Andrew Cagney <ac131313@redhat.com>
4057
4058 * gdbarch.h: Regenerate.
4059
627054c8
AC
40602002-06-01 Andrew Cagney <ac131313@redhat.com>
4061
4062 * MAINTAINERS: Add everyone to write-after-approval list.
4063
4f460812
AC
40642002-06-01 Andrew Cagney <ac131313@redhat.com>
4065
4066 * stack.c (frame_info): Use frame_register_unwind instead of
4067 saved_regs. Mention when the SP is on the stack or in a register.
4068
4069 * frame.h (frame_register_unwind_ftype): Define. Document.
4070 (struct frame_info): Add field register_unwind and
4071 register_unwind_cache.
4072 (frame_register_unwind): Declare.
4073 (generic_unwind_get_saved_register): Declare.
4074
4075 * frame.c (frame_register_unwind): New function.
4076 (generic_unwind_get_saved_register): New function.
4077
4078 * blockframe.c (generic_call_dummy_register_unwind): New function.
4079 (frame_saved_regs_register_unwind): New function.
4080 (set_unwind_by_pc): New function.
4081 (create_new_frame): New function.
4082 (get_prev_frame): New function.
4083
de888f76
AC
40842002-05-30 Andrew Cagney <ac131313@redhat.com>
4085
4086 * a29k-share/: Delete directory.
4087 * remote-vx29k.c: Delete file.
4088
2f2c3626
JT
40892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4090
4091 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4092 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4093
9ce5c36a
JT
40942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4095
4096 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4097 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4098 (sparc64nbsd-nat.o)
4099 (sparcnbsd-nat.o)
4100 (sparcnbsd-tdep.o): New dependency lists.
4101 * NEWS: Note new UltraSPARC NetBSD native configuration.
4102 * configure.host (sparc64-*-netbsd*): New host.
4103 * configure.tgt (sparc-*-netbsdelf*)
4104 (sparc-*-netbsd*): Set gdb_target to nbsd.
4105 (sparc64-*-netbsd*): New target.
4106 * sparc64nbsd-nat.c: New file.
4107 * sparcnbsd-nat.c: New file.
4108 * sparcnbsd-tdep.c: New file.
4109 * sparcnbsd-tdep.h: New file.
4110 * config/sparc/nbsd.mt: New file.
4111 * config/sparc/nbsd64.mh: New file.
4112 * config/sparc/nbsd64.mt: New file.
4113 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4114 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4115 (HOST_IPC): Remove.
4116 * config/sparc/nbsdaout.mt: Remove.
4117 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4118 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4119 (HOST_IPC): Remove.
4120 * config/sparc/nbsdelf.mt: Remove.
4121 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4122 sparc-nat.c compatiblity defines.
4123 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4124 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4125 * config/sparc/tm-nbsd64.h: New file.
4126 * config/sparc/tm-nbsdaout.h: Remove.
4127 * config/sparc/xm-nbsd.h: Remove.
4128
ef3cf062
JT
41292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4130
4131 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4132 * sparc-tdep.c: Include osabi.h.
4133 (gdbarch_tdep): Add osabi member.
4134 (_initialize_sparc_tdep): Use gdbarch_register.
4135 (sparc_gdbarch_init): Use generic OS ABI framework.
4136 (sparc_dump_tdep): New function.
4137
ee8ff470
KB
41382002-05-30 Kevin Buettner <kevinb@redhat.com>
4139
4140 * corefile.c (do_captured_read_memory_integer): Return non-zero
4141 result.
4142 (safe_read_memory_integer): Copy result of memory read when
4143 status is non-zero. Also, add comments.
4144
7b112f9c
JT
41452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4146
4147 * Makefile.in (ppc_tdep_h): Define.
4148 (ppc-linux-nat.o)
4149 (ppc-linux-tdep.o)
4150 (rs6000-tdep.o): Use $(ppc_tdep_h).
4151 (ppc-sysv-tdep.o)
4152 (ppcnbsd-nat.o)
4153 (ppcnbsd-tdep.o): New dependency lists.
4154 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4155 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4156 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4157 (ppc_sysv_abi_broken_use_struct_convention)
4158 (ppc_sysv_abi_use_struct_convention)
4159 (ppc_sysv_abi_push_arguments): Move to...
4160 * ppc-sysv-tdep.c: ...here.
4161 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4162 * rs6000-tdep.c (process_note_abi_tag_sections)
4163 (get_elfosabi): Remove.
4164 (rs6000_gdbarch_init): Use generic OS ABI framework.
4165 (rs6000_dump_tdep): New function.
4166 (_initialize_rs6000_tdep): Use gdbarch_register.
4167 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4168 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4169 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4170 of ppc-linux-tdep.o.
4171 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4172 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4173 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4174 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4175 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4176 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4177
480dd42a
JB
41782002-05-29 Jim Blandy <jimb@redhat.com>
4179
4180 * macroscope.c (default_macro_scope): Put `void' in empty argument
4181 list.
4182
4182591f
AC
41832002-05-29 Andrew Cagney <ac131313@redhat.com>
4184
4185 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4186 * arch-utils.c: Include "sim-regno.h".
4187 * gdbarch.sh: Don't include "sim-regno.h".
4188 * gdbarch.h, gdbarch.c: Regenerate.
4189 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4190 here.
4191 * arch-utils.h (legacy_register_sim_regno): To here.
4192 * remote-sim.c (legacy_register_sim_regno): Move function from
4193 here.
4194 * arch-utils.c (legacy_register_sim_regno): To here.
4195
8238d0bf
AC
41962002-05-28 Andrew Cagney <ac131313@redhat.com>
4197
4198 * sim-regno.h: New file.
4199 * Makefile.in (sim_regno_h): Define.
4200 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4201 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4202 (legacy_register_sim_regno): New function.
4203 (one2one_register_sim_regno): New function.
4204 (gdbsim_fetch_register): Rewrite.
4205 (gdbsim_store_register): Only store a register when
4206 REGISTER_SIM_REGNO is valid.
4207 * d10v-tdep.c: Include "sim-regno.h".
4208 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4209 (d10v_ts3_register_sim_regno): Ditto.
4210 * gdbarch.sh: Include "sim-regno.h".
4211 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4212 * gdbarch.h, gdbarch.c: Regenerate.
4213 * arch-utils.h (default_register_sim_regno): Delete declaration.
4214 * arch-utils.c (default_register_sim_regno): Delete function.
4215
485721b1
JT
42162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4217
4218 * ppcnbsd-nat.c: Rewrite.
4219 * ppcnbsd-tdep.c: New file.
4220 * ppcnbsd-tdep.h: New file.
4221 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4222 solib.o, and solib-svr4.o.
4223 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4224 nbsd-tdep.o, and corelow.o.
4225
697f244d
AC
42262002-05-28 Andrew Cagney <ac131313@redhat.com>
4227
4228 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4229 `tr' and `sed'. Mention that `broken' targets are not expected to
4230 build.
4231
f08caad1 42322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4233
4234 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4235 Let PC point right after the prologue before looking up symbols.
4236
3139facc
MH
42372002-05-27 Martin M. Hunt <hunt@redhat.com>
4238
4239 * i386-tdep.c (i386_register_virtual_type): Return
4240 builtin_type_vec128i for SSE registers.
4241
4242 * gdbtypes.h (builtin_type_vec128i): Declare.
4243
4244 * gdbtypes.c (build_builtin_type_vec128i): New function.
4245 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4246 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4247 (build_gdbtypes): Initialize new builtin vector types.
4248 (_initialize_gdbtypes): Register new vector types with gdbarch.
4249
6e3ba3b8
JT
42502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4251
4252 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4253 since it has been multi-arch'd.
4254 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4255 Move Alpha and VAX multi-arch news entries to same section
4256 as other multi-arch news.
4257
93d5585d
JT
42582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4259
4260 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4261 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4262 static. Rename some register numbers to put them in ns32k-tdep
4263 private namespace.
4264 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4265 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4266 functions.
4267 (_initialize_ns32k_tdep): Use gdbarch_register.
4268 * ns32k-tdep.h: New file.
4269 * ns32knbsd-tdep.c: New file.
4270 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4271 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4272 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4273 REGISTER_BYTES, REGISTER_BYTE): Remove.
4274 * config/ns32k/tm-ns32k.h: New file.
4275 * config/ns32k/tm-umax.h: Remove.
4276
efb2c70e
JT
42772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4278
4279 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4280 ns32k_store_struct_return, ns32k_extract_return_value,
4281 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4282 functions.
4283 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4284 ns32k_saved_pc_after_call.
4285 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4286 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4287 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4288 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4289 ns32k_extract_struct_value_address.
4290
7bcc927b
JT
42912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4292
4293 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4294 ns32k_fix_call_dummy): New.
4295 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4296 ns32k_call_dummy_words.
4297 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4298 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4299 CALL_DUMMY_NARGS): Remove.
4300 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4301
78f9d765
JT
43022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4303
4304 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4305 ns32k_frame_saved_pc, ns32k_frame_args_address,
4306 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4307 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4308 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4309 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4310 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4311 (BREAKPOINT): Remove..
4312 (FRAME_CHAIN): Define as ns32k_frame_chain.
4313 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4314 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4315 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4316 (FRAME_FIND_SAVED_REGS): Remove.
4317 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4318 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4319 (POP_FRAME): Define as ns32k_pop_frame.
4320
f2c762e0
JT
43212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4322
4323 * ns32k-tdep.c (ns32k_register_byte_32082,
4324 ns32k_register_byte_32382, ns32k_register_raw_size,
4325 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4326 functions.
4327 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4328 ns32k_register_byte_32382.
4329 * config/ns32k/tm-umax.h: Update copyright years.
4330 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4331 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4332 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4333 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4334 (ns32k_get_enter_addr): Fix prototype.
4335
af137673
JT
43362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4337
4338 * ns32k-tdep.c: Update copyright years.
4339 (ns32k_register_name_32082): New function.
4340 (ns32k_register_name_32382): Ditto.
4341 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4342 (REGISTER_NAME): Define as ns32k_register_name_32382.
4343 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4344 (REGISTER_NAME): Define as ns32k_register_name_32082.
4345
a8bc7b56
JB
43462002-05-24 Jim Blandy <jimb@redhat.com>
4347
4348 * dwarf2read.c (free_line_header): Use xfree, not free.
4349
83a45910
JT
43502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4351
4352 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4353 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4354
0db71247
AC
43552002-05-23 Andrew Cagney <ac131313@redhat.com>
4356
4357 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4358
b9e5e4dd
AC
43592002-05-23 Andrew Cagney <ac131313@redhat.com>
4360
4361 From Ross Alexander at NEC Europe:
4362 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4363
de530e84
MS
43642002-05-23 Michael Snyder <msnyder@redhat.com>
4365
4366 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4367 for input, rather than parse_and_eval_address.
4368
b91b96f4
AC
43692002-05-23 Andrew Cagney <ac131313@redhat.com>
4370
4371 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4372 * Makefile.in (sim_d10v_h): Update definition.
4373
8b279e7a
AC
43742002-05-24 Andrew Cagney <cagney@redhat.com>
4375
4376 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4377 change `2002-05-22 Michael Snyder' below.
4378 (d10v_push_arguments): Ditto.
4379 (d10v_extract_return_value): Ditto.
4380
0a3d0425
JB
43812002-05-23 Jim Blandy <jimb@redhat.com>
4382
4383 * macrotab.c (check_for_redefinition): Don't complain if the new
4384 definition is the same as the previous one. Take more arguments
4385 to allow the comparison.
4386 (macro_define_object, macro_define_function): Pass more arguments
4387 to check_for_redefinition.
4388
78eac43e
MS
43892002-05-22 Michael Snyder <msnyder@redhat.com>
4390
4391 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4392 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4393 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4394 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4395 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4396 Add a temp variable to save a call (and a memory read).
4397 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4398 if possible (so that PC_IN_CALL_DUMMY will work).
4399
9bc1edb8
CV
44002002-05-22 Corinna Vinschen <vinschen@redhat.com>
4401
4402 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4403
005ef3d2
ML
44042002-05-22 Michal Ludvig <mludvig@suse.cz>
4405
4406 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4407 fde->cie_ptr.
4408 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4409 (dwarf2_build_frame_info): Add offset to fde->initial_location
4410 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4411 (execute_stack_op): Change type of 'result' from ULONGEST to
4412 CORE_ADDR.
005ef3d2 4413
fcf4f891
JT
44142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4415
4416 * config/alpha/tm-nbsd.h: Include solib.h.
4417
cfef91e4
JT
44182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4419
4420 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4421 assumptions about the host's byte order.
4422
9964235a
JT
44232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4426 to dependency list.
4427 * alphanbsd-tdep.c: Include solib-svr4.h.
4428 * shnbsd-tdep.c: Ditto.
4429
9eeef8ef
JT
44302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4431
4432 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4433 nbsd-tdep.h to dependency list.
4434 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4435 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4436 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4437 nbsdaout.mh and nbsdelf.mh consistently.
4438 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4439 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4440 nbsdaout.mt and nbsdelf.mh consistently.
4441 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4442 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4443 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4444 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4445 a.out shared library stuff from here...
4446 * config/nm-nbsdaout.h: ...to here.
4447 * config/tm-nbsd.h: Remove.
4448 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4449 * config/arm/nbsd.mh: Remove.
4450 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4451 nbsd-tdep.o.
4452 * config/arm/nbsdaout.mh: New file.
4453 * config/arm/nbsdelf.mh: New file.
4454 * config/arm/nm-nbsdaout.h: New file.
4455 * config/i386/nbsd.mh: Remove.
4456 * config/i386/nbsd.mt: Remove.
4457 * config/i386/nbsdaout.mh: New file.
4458 * config/i386/nbsdaout.mt: New file.
4459 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4460 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4461 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4462 i386_register_u_addr): Remove.
4463 * config/i386/nm-nbsdaout.h: New file.
4464 * config/i386/nm-nbsdelf.h: Remove.
4465 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4466 (USE_STRUCT_CONVENTION): Remove.
4467 * config/i386/tm-nbsdaout.h: New file.
4468 * config/i386/tm-nbsdelf.h: Remove.
4469 * config/m68k/nbsd.mh: Remove.
4470 * config/m68k/nbsd.mt: Remove.
4471 * config/m68k/nbsdaout.mh: New file.
4472 * config/m68k/nbsdaout.mt: New file.
4473 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4474 * config/m68k/nm-nbsdaout.h: New file.
4475 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4476 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4477 * config/ns32k/nbsd.mh: Remove.
4478 * config/ns32k/nbsd.mt: Remove.
4479 * config/ns32k/nbsdaout.mh: New file.
4480 * config/ns32k/nbsdaout.mt: New file.
4481 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4482 * config/ns32k/nm-nbsdaout.h: New file.
4483 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4484 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4485 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4486 (SVR4_SHARED_LIBS): Remove.
4487 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4488 * config/sparc/nbsd.mh: Remove.
4489 * config/sparc/nbsd.mt: Remove.
4490 * config/sparc/nbsdaout.mh: New file.
4491 * config/sparc/nbsdaout.mt: New file.
4492 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4493 * config/sparc/nbsdelf.mt: New file.
4494 * config/sparc/nm-nbsdaout.h: New file.
4495 * config/sparc/nm-nbsdelf.h: Remove.
4496 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4497 * config/sparc/tm-nbsdaout.h: New file.
4498
257ce470
JT
44992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4500
4501 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4502 mipsnbsd-tdep.c
4503 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4504
76a6d5fe
JT
45052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4506
4507 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4508 shnbsd-nat.c.
4509 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4510
45888261
JT
45112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4512
4513 * NEWS: Note new MIPS NetBSD native configuration.
4514 * configure.host (mips*-*-netbsd*): New host.
4515 * configure.tgt (mips*-*-netbsd*): New target.
4516 * mipsnbsd-nat.c: New file.
4517 * mipsnbsd-tdep.c: New file.
4518 * mipsnbsd-tdep.h: New file.
4519 * config/mips/nbsd.mh: New file.
4520 * config/mips/nbsd.mt: New file.
4521 * config/mips/nm-nbsd.h: New file.
4522 * config/mips/tm-nbsd.h: New file.
4523
70f80edf
JT
45242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4525
4526 * Makefile.in (SFILES): Add osabi.c.
4527 (COMMON_OBS): Add osabi.o.
4528 (osabi.o): New dependency list.
4529 * osabi.c: New file.
4530 * osabi.h: New file.
4531 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4532
4533 * Makefile.in (alpha_tdep_h): Define and use instead of
4534 alpha-tdep.h.
4535 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4536 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4537 Remove.
4538 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4539 * alpha-tdep.h: Include osabi.h.
4540 (alpha_abi): Remove.
4541 (gdbarch_tdep): Use generic OS ABI framework.
4542 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4543 gdbarch_register_osabi.
4544 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4545 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4546 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4547
4548 * Makefile.in (sh_tdep_h): Add osabi.h.
4549 * sh-tdep.h (sh_osabi): Remove.
4550 (gdbarch_tdep): Use generic OS ABI framework.
4551 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4552 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4553 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4554 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4555
4556 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4557 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4558 gdbarch_register_osabi.
4559 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4560 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4561 (get_elfosabi): Rename to...
4562 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4563 ABI framework support routines.
4564 (arm_gdbarch_init): Use generic OS ABI framework.
4565 (arm_dump_tdep): Likewise.
4566 (_initialize_arm_tdep): Likewise.
4567 * arm-tdep.h: Include osabi.h.
4568 (arm_abi): Remove.
4569 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4570 osabi member.
4571 (arm_gdbarch_register_os_abi): Remove prototype.
4572 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4573 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4574
4575 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4576 * mips-tdep.c: Include osabi.h.
4577 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4578 OS ABI framework.
4579
d194345b
KH
45802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4581
4582 * h8300-tdep.c: Fix formatting.
4583
70c6b0d1
EZ
45842002-05-20 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4587 printing vector registers.
4588
165b8e33
AC
45892002-05-19 Andrew Cagney <ac131313@redhat.com>
4590
4591 From Fernando Nasser:
4592 * remote.c (remote_async_open_1): Re-throw the exception when the
4593 connection fails.
4594 (remote_cisco_open): Ditto.
4595 (remote_open_1): Ditto.
4596
36918e70
AC
45972002-05-19 Andrew Cagney <ac131313@redhat.com>
4598
4599 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4600 (remote_start_remote): Add uiout parameter. Pass through to
4601 remote_start_remote_dummy.
4602 (remote_open_1): Use catch_exception instead of catch_errors.
4603 (remote_async_open_1): Ditto.
4604 (remote_cisco_open): Ditto.
4605
ae44c0c4
AC
46062002-05-19 Andrew Cagney <ac131313@redhat.com>
4607
4608 * remote.c (remote_start_remote): Replace PTR with void pointer.
4609 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4610 static.
4611
8efe637d
AC
46122002-05-18 Andrew Cagney <ac131313@redhat.com>
4613
4614 * gdb_indent.sh: Allow the script to be run in the sim directory.
4615
2f1b5984
MK
46162002-05-18 Mark Kettenis <kettenis@gnu.org>
4617
f0f625e2
MK
4618 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4619 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4620
2f1b5984
MK
4621 * corelow.c (core_open): Only call set_gdbarch_from_file if
4622 exec_bfd is NULL.
4623
fc974602
AV
46242002-05-17 Andrey Volkov <avolkov@transas.com>
4625
4626 * h8300-tdep.c: Add support of EXR register
4627 * config/h8300/tm-h8300.h: Ditto.
4628
906709f4
AV
46292002-05-17 Andrey Volkov <avolkov@transas.com>
4630
4631 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4632
6e591d68
AV
46332002-05-17 Andrey Volkov <avolkov@transas.com>
4634
4635 * h8300-tdep.c: Change literal regnums to REGNO.
4636
84f0252a
JB
46372002-05-17 Jim Blandy <jimb@redhat.com>
4638
e0e9281e
JB
4639 * NEWS: Note addition of macro support.
4640
84f0252a
JB
4641 Expand preprocessor macros in C expressions.
4642 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4643 (scan_macro_expansion, scanning_macro_expansion,
4644 finished_macro_expansion): New function declarations.
4645 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4646 variable declarations.
4647 * parser-defs.h (expression_context_pc): New declaration.
4648 * parse.c (expression_context_pc): New variable.
4649 (parse_exp_1): Set expression_context_pc, as well as
4650 expression_context_block.
4651 * c-exp.y (yylex): If we're not already reading the result of a
4652 macro expansion, try to macro-expand the next token. When we're
4653 done scanning a macro expansion, switch back to the mainline text.
4654 Commas and `if's in a macro's expansion don't terminate the input.
4655 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4656 (macro_original_text, macro_expanded_text,
4657 expression_macro_lookup_func, expression_macro_lookup_baton): New
4658 variables.
4659 (scan_macro_expansion, scanning_macro_expansion,
4660 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4661 c_preprocess_and_parse): New functions.
4662 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4663 c_preprocess_and_parse, instead of c_parse.
4664 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4665 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4666
1c509ca8
JR
4667Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4668
4669 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4670 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4671 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4672
2250ee0c
CV
46732002-05-17 Corinna Vinschen <vinschen@redhat.com>
4674
4675 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4676
ab3b8126
JT
46772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4678
4679 * Makefile.in (sh_tdep_h): Define and use.
4680 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4681 register enum): Move to...
4682 * * sh-tdep.h: ...here.
4683 * sh-tdep.c: Include sh-tdep.h.
4684 * sh3-rom.c: Likewise.
4685 * shnbsd-tdep.c: Likewise.
4686
ed9d4749
MS
46872002-05-16 Michael Snyder <msnyder@redhat.com>
4688
4689 * arm-tdep.c: Spelling fix in comment.
4690
2e276125
JB
46912002-05-16 Jim Blandy <jimb@redhat.com>
4692
6821892e
JB
4693 Add commands for manually expanding macros and showing their
4694 definitions.
4695 * macrocmd.c, macroscope.c, macroscope.h: New files.
4696 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4697 (macroscope_h): New variable.
4698 (HFILES_NO_SRCDIR): Add macroscope.h.
4699 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4700 (macroscope.o, macrocmd.o): New rules.
4701
2e276125
JB
4702 Teach the Dwarf 2 reader to read macro information.
4703 * dwarf2read.c: #include "macrotab.h".
4704 (dwarf_macinfo_buffer): New variable.
4705 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4706 dwarf_macinfo_size.
4707 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4708 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4709 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4710 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4711 dwarf2_macro_spaces_in_definition): New complaints.
4712 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4713 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4714 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4715 the partial symbol table.
4716 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4717 from what's recorded in the partial symbol table.
4718 (read_file_scope): If the compilation unit has a
4719 `DW_AT_macro_info' attribute, read its macro information.
4720 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4721
2f53fe6c
DJ
47222002-05-16 Daniel Jacobowitz <drow@mvista.com>
4723
4724 Fix PR gdb/546
4725 * ser-tcp.c: Don't include <netinet/udp.h>.
4726
2be99286
SC
47272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4728
4729 * MAINTAINERS: Update my email address.
4730
c9af212b 47312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4732
4733 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4734 include file of the same name.
4735
bf5f1a52
CV
47362002-05-16 Corinna Vinschen <vinschen@redhat.com>
4737
4738 * configure.tgt: Mark v850 as multi-arched.
4739 * config/v850/tm-v850.h: Remove file.
4740 * config/v850/v850.mt: Eliminate TM_FILE.
4741
435e042a
CV
47422002-05-16 Corinna Vinschen <vinschen@redhat.com>
4743
4744 * v850-tdep.c: Full multi-arch.
4745 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4746 Define GDB_MULTI_ARCH to 2.
4747
9819c6c8
PM
47482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4749
4750 * p-exp.y (current_type): New static variable.
4751 Carries the type of the expression at the position that is parsed.
4752 (push_current_type, pop_current_type): Two new functions. Used
4753 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4754 (search_field): New static variable. Set to one after parsing a point
4755 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4756 (FIELDNAME): New token. After a point only a token belonging to
4757 current_type type definition is allowed.
4758 (all over token rules): reset and change current_type according
4759 to rules.
4760 (exp '[' rule): insert implicit array index field if
4761 exp is a pascal string type.
4762
3a06899a
CV
47632002-05-16 Corinna Vinschen <vinschen@redhat.com>
4764
4765 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4766 frame info. Use frame_info's saved_regs instead of matching member
4767 in extra_frame_info throughout.
4768 (v850_frame_init_saved_regs): New function.
4769 (v850_init_extra_frame_info): Move most functionality into
4770 v850_frame_init_saved_regs().
4771 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4772 (v850_frame_find_saved_regs): Remove declaration.
4773 (FRAME_FIND_SAVED_REGS): Remove definition.
4774 (v850_frame_init_saved_regs): Add declaration.
4775 (FRAME_INIT_SAVED_REGS): Add definition.
4776
6ed14b0e
CV
47772002-05-16 Corinna Vinschen <vinschen@redhat.com>
4778
4779 * v850-tdep.c: Begin multi-arch'ing v850.
4780 (v850_target_architecture_hook): Remove function.
4781 (v850_gdbarch_init): New function. Add code previously in
4782 v850_target_architecture_hook().
4783 (_initialize_v850_tdep): Don't set target_architecture_hook.
4784 Call register_gdbarch_init() instead.
4785
42725910
DJ
47862002-05-16 Daniel Jacobowitz <drow@mvista.com>
4787
4788 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4789 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4790 (fixup_class_method_type): Likewise.
4791
0bc68c49
DJ
47922002-05-15 Daniel Jacobowitz <drow@mvista.com>
4793
4794 From Martin Pool <mbp@samba.org>:
4795 * gdbserver/server.c (gdbserver_usage): New function.
4796 (main): Call it.
4797
99d9066e
JB
47982002-05-15 Jim Blandy <jimb@redhat.com>
4799
4800 Add macro structures to GDB's symbol tables. Nobody puts anything
4801 in them yet.
4802 * symtab.h (struct symtab): New member: `macro_table'.
4803 * buildsym.h (pending_macros): New global variable.
4804 * buildsym.c: #include "macrotab.h".
4805 (buildsym_init): Initialize `pending_macros'.
4806 (end_symtab): If we found macro information while reading a CU's
4807 debugging info, do build a symtab structure for it. Make the
4808 symtab point to the macro information, and clear the
4809 `pending_macros' pointer which held it while we were reading the
4810 debug info.
4811 (really_free_pendings): Free any pending macro table.
4812 * objfiles.h (struct objfile): New member: `macro_cache'.
4813 * objfiles.c (allocate_objfile): Set allocate and free functions
4814 for the macro cache's objstack.
4815 (free_objfile): Empty the macro cache's obstack.
4816 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4817 set new allocate and free functions for it.
4818 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4819 free functions for the macro cache's objstack. (Why is this
4820 function building its own objfile?)
4821 * symmisc.c (print_objfile_statistics): Print statistics on the
4822 macro bcache.
4823 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4824
c899585b
RE
48252002-05-15 Richard Earnshaw <rearnsha@arm.com>
4826
4827 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4828 (REGISTER_U_ADDR): Delete definition.
4829 (arm_register_u_addr): Delete declaration.
4830
a6cdd8c5
RE
48312002-05-15 Richard Earnshaw <rearnsha@arm.com>
4832
4833 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4834 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4835
fd3a5ca1
DJ
48362002-05-14 Daniel Jacobowitz <drow@mvista.com>
4837
4838 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4839 stop_at -> stop_pc.
4840
c97dcfc7
AC
48412002-05-14 Andrew Cagney <ac131313@redhat.com>
4842
4843 * regcache.c (register_valid): Revise comments refering to "Not
4844 available" and "unavailable".
4845 * frame.c (frame_register_read): Ditto.
4846 * findvar.c (value_of_register): Ditto.
4847
93021b7d
AC
48482002-05-15 Andrew Cagney <cagney@redhat.com>
4849
4850 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4851 (remote-sim.o): Update dependencies.
4852 (d10v-tdep.o): Specify dependencies.
4853 (sim_d10v_h): Define.
4854
a86bc61c
JB
48552002-05-14 Jim Blandy <jimb@redhat.com>
4856
4857 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4858 * macrotab.c (macro_lookup_inclusion, find_definition,
4859 new_macro_table): Same.
4860
4861 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4862 not `! strcmp ()'. This is a dubious improvement.
4863 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4864
4865 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4866 although it's not necessary, to avoid a warning.
4867
2fdde8f8
DJ
48682002-05-14 Daniel Jacobowitz <drow@mvista.com>
4869
4870 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4871 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4872 TYPE_INSTANCE_FLAGS.
4873 (struct main_type): New.
4874 (struct type): Move most members to struct main_type. Change
4875 cv_type and as_type to new type_chain member. Add instance_flags.
4876 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4877 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4878 (finish_cv_type): Remove prototype.
4879 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4880 Set TYPE_CHAIN.
4881 (alloc_type_instance): New function.
4882 (smash_type): New function.
4883 (make_pointer_type, make_reference_type, make_function_type)
4884 (smash_to_member_type, smash_to_method_type): Call smash_type.
4885 (make_qualified_type): New function.
4886 (make_type_with_address_space): Call make_qualified_type.
4887 (make_cv_type): Likewise.
4888 (finish_cv_type): Remove unnecessary function.
4889 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4890 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4891 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4892 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4893 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4894 * hpread.c (hpread_read_struct_type): Likewise.
4895 * stabsread.c (read_struct_type): Likewise.
4896
843fedf4
EZ
48972002-05-14 Elena Zannoni <ezannoni@redhat.com>
4898
4899 * configure.tgt: Add a catch all sh* target, for cases like
4900 sh[2,3,4]-elf and sh-hms.
4901
05a6c72c
KS
49022002-05-14 Keith Seitz <keiths@redhat.com>
4903
4904 * event-loop.c (create_file_handler): Don't do anything but
4905 update data when we are given a fd which we are already
4906 monitoring.
4907
5d085aaf
ML
49082002-05-14 Michal Ludvig <mludvig@suse.cz>
4909
4910 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4911 (update_context): Use __func__ in warnings.
4912
9db8d71f
DJ
49132002-05-14 Daniel Jacobowitz <drow@mvista.com>
4914
4915 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4916 and tcp_close to net_open and net_close.
4917 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4918 using UDP if requested. Don't try to disable Nagle on UDP
4919 sockets.
4920 * remote.c (remote_serial_open): New function. Warn about UDP.
4921 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4922
5dbc6baa
EZ
49232002-05-13 Elena Zannoni <ezannoni@redhat.com>
4924
4925 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4926
cc3023f7
EZ
49272002-05-13 Elena Zannoni <ezannoni@redhat.com>
4928
4929 * configure.tgt: Remove sh-hms target.
4930 * MAINTAINERS: Don't list sh-hms as a separate target.
4931
ec2bcbe7
JB
49322002-05-13 Jim Blandy <jimb@redhat.com>
4933
4934 Add first preprocessor macro-expansion files.
4935 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4936 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4937 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4938 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4939 (COMMON_OBS): Add macrotab.o, macroexp.o.
4940 (macroexp.o, macrotab.o): New rules.
4941
6d531722
AC
49422002-05-13 Andrew Cagney <ac131313@redhat.com>
4943
4944 * config/m88k/tm-m88k.h: Update copyright.
4945 (m88k_target_write_pc): Declare
4946 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4947 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4948 (SHIFT_INST_REGS): Update definition.
4949 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4950 using old definition of TARGET_WRITE_PC.
4951 * regcache.c (generic_target_write_pc): Delete code handling
4952 NNPC_REGNUM.
4953 * gdbarch.sh (NNPC_REGNUM): Delete.
4954 * gdbarch.h, gdbarch.c: Regenerate.
4955
3e3f2739
RE
49562002-05-13 Richard Earnshaw <rearnsha@arm.com>
4957
4958 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4959 builtin reg number.
4960
0004e5a2
DJ
49612002-05-13 Daniel Jacobowitz <drow@mvista.com>
4962
4963 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4964 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4965 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4966 access macros.
4967 * c-typeprint.c (cp_type_print_method_args): Likewise.
4968 (c_type_print_args): Likewise.
4969 * d10v-tdep.c (d10v_push_arguments): Likewise.
4970 (d10v_extract_return_value): Likewise.
4971 * expprint.c (print_subexp): Likewise.
4972 * gdbtypes.c (lookup_primitive_typename): Likewise.
4973 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4974 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4975 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4976 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4977 (TYPE_VECTOR): Likewise.
4978 * hpread.c (hpread_read_struct_type)
4979 (fix_static_member_physnames, fixup_class_method_type)
4980 (hpread_type_lookup): Likewise.
4981 * mdebugread.c (parse_symbol, parse_type): Likewise.
4982 * p-lang.c (is_pascal_string_type): Likewise.
4983 * valops.c (hand_function_call): Likewise.
4984 * x86-64-tdep.c (classify_argument): Likewise.
4985
4986 * hpread.c (hpread_read_function_type)
4987 (hpread_read_doc_function_type): Call replace_type.
4988 * dstread.c (create_new_type): Delete.
4989 (decode_dst_structure, process_dst_function): Call alloc_type.
4990 Use type access macros.
4991
dff95cc7
MK
49922002-05-12 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4995 the're not supported by the current architecture.
4996 (i387_fill_fxsave): Likewise.
4997
bbcd32ad
FF
49982002-05-12 Fred Fish <fnf@redhat.com>
4999
5000 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5001 sect_index_xxx members to index the first slot in section_offsets
5002 if all of the section_offsets are zero.
5003
89cf4787
MK
50042002-05-12 Mark Kettenis <kettenis@gnu.org>
5005
5006 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5007 checked in with last change.
5008
1f77ffc5
MK
50092002-05-12 Mark Kettenis <kettenis@gnu.org>
5010
5011 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5012 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5013 config.sub.
5014
89b8b4a9
DJ
50152002-05-12 Daniel Jacobowitz <drow@mvista.com>
5016
5017 * Makefile.in: Update dependencies.
5018
14a5e767
AC
50192002-05-11 Andrew Cagney <ac131313@redhat.com>
5020
5021 * language.c (local_hex_string_custom): Simplify. Do not depend
5022 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5023
5024 * memattr.c (mem_info_command): Replace calls to
5025 longest_local_hex_string and longest_local_hex_string_custom.
5026 * buildsym.c (make_blockvector): Ditto.
5027 * solib.c (info_sharedlibrary_command): Ditto.
5028 * tracepoint.c (tracepoints_info): Ditto.
5029 * symtab.c (print_msymbol_info): Ditto.
5030
5031 * language.c (local_hex_string): Delete.
5032 (local_hex_string_custom): Delete.
5033 (longest_local_hex_string): Rename to local_hex_string.
5034 (longest_local_hex_string_custom): Rename to
5035 local_hex_string_custom.
5036 * language.h (local_hex_string): Change parameter type to LONGEST.
5037 (local_hex_string_custom): Ditto.
5038 (longest_local_hex_string): Delete declaration.
5039 (longest_local_hex_string_custom): Ditto.
5040
5041 * solib.c: Update copyright.
5042 * memattr.c: Update copyright.
5043
13d01224
AC
50442002-05-11 Andrew Cagney <ac131313@redhat.com>
5045
5046 * arch-utils.h (legacy_register_to_value): Declare.
5047 (legacy_value_to_register): Declare.
5048 (legacy_convert_register_p): Declare.
5049 * arch-utils.c (legacy_register_to_value): New function.
5050 (legacy_value_to_register): New function.
5051 (legacy_convert_register_p): New function.
5052
5053 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5054 (VALUE_TO_REGISTER): Define.
5055 (CONVERT_REGISTER_P): Define.
5056 * gdbarch.h, gdbarch.c: Regenerate.
5057
5058 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5059 VALUE_TO_REGISTER.
5060 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5061 CONVERT_REGISTER_P.
5062
4a1970e4
DJ
50632005-05-11 Daniel Jacobowitz <drow@mvista.com>
5064 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5065
5066 * Makefile.in: Update dependencies for valops.c.
5067 * valops.c: Include "gdb_assert.h".
5068 (typecmp): Skip THIS parameter to methods.
5069 (find_method_list): Remove static_memfuncp argument,
5070 update callers. Check for stub methods.
5071 (find_value_oload_method_list): Don't set *static_memfuncp.
5072 (find_overload_match): Don't check for stub methods. Assert
5073 that methods are not stubbed. Handle static methods.
5074 (value_find_oload_method_list): Remove static_memfuncp argument.
5075 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5076 to the argument list for static stub methods.
5077 * value.h (value_find_oload_method_list): Update prototype.
5078
b2e75d78
AC
50792002-05-11 Andrew Cagney <ac131313@redhat.com>
5080
5081 * arch-utils.h (generic_register_size): Declare.
5082 (generic_register_raw_size, generic_register_virtual_size): Delete
5083 declarations.
5084 * arch-utils.c (generic_register_raw_size): Delete.
5085 (generic_register_size): New function.
5086 (generic_register_virtual_size): Delete.
5087
5088 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5089 default generic_register_size.
5090 * gdbarch.h, gdbarch.c: Re-generate.
5091
5092 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5093 register_virtual_size.
5094 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5095 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5096
451fbdda
AC
50972002-05-11 Andrew Cagney <ac131313@redhat.com>
5098
5099 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5100 * gdbarch.h, gdbarch.c: Regenerate.
5101 * gnu-v3-abi.c: Update copyright.
5102 (vtable_address_point_offset): Update.
5103 (gnuv3_rtti_type): Update.
5104 (gnuv3_baseclass_offset): Update.
5105 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5106 (init_fetch_link_map_offsets): Update.
5107 * remote.c (get_remote_state): Update.
5108
6d2f5cea
DJ
51092002-05-11 Daniel Jacobowitz <drow@mvista.com>
5110
5111 * TODO: Remove value_headof/value_from_vtable_info comment.
5112 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5113 * values.c (value_headof, value_from_vtable_info): Delete.
5114 * value.h (value_from_vtable_info): Delete prototype.
5115
d2324da4
AC
51162002-05-11 Andrew Cagney <ac131313@redhat.com>
5117
5118 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5119 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5120 $(gdb_regex_h).
5121 (gdb_assert_h): Define.
5122 (gdb_wait_h): Define.
5123 (gdb_regex_h): Define.
5124
5c717440
DJ
51252002-05-11 Daniel Jacobowitz <drow@mvista.com>
5126
5127 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5128 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5129
6c7861b3
JT
51302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5131
5132 * nbsd-tdep.c: Fix comment.
5133
ea5bc2a6
JT
51342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5135
5136 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5137 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5138 (nbsd-tdep.o): New dependency list.
5139 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5140 nbsd-tdep.h.
5141 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5142 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5143 * nbsd-tdep.c: New file.
5144 * nbsd-tdep.h: New file.
5145 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5146 nbsd-tdep.h.
5147 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5148 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5149 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5150 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5151
b28da865
JT
51522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5153
5154 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5155 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5156 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5157 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5158 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5159 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5160
4b8ff1fa
JT
51612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5162
5163 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5164 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5165 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5166 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5167 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5168 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5169 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5170
dfe6eb1f
JT
51712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5172
5173 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5174 fetch_elfcore_registers to...
5175 * i386nbsd-tdep.c: ...here.
5176 (i386nbsd_use_struct_convention): Rename to...
5177 (i386nbsd_aout_use_struct_convention): ...this.
5178 (i386nbsd_supply_reg): New function.
5179 (i386nbsd_fill_reg): New function.
5180 (fetch_core_registers): Use i386nbsd_supply_reg.
5181 (fetch_elfcore_registers): Likewise.
5182 (_initialize_i386nbsd_tdep): New function.
5183 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5184 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5185 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5186 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5187 (i386nbsd_aout_use_struct_convention): ...this.
5188
20cb8cda
JT
51892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5190
5191 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5192 (store_inferior_registers): Use shnbsd_fill_reg.
5193 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5194 sh_nbsd_supply_register): Collapse into...
5195 (shnbsd_supply_reg): ...this.
5196 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5197 (shnbsd_fill_reg): ...this.
5198 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5199 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5200 (fetch_core_registers): Use shnbsd_supply_reg.
5201 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5202 (sh_nbsd_core_fns): Rename to...
5203 (shnbsd_core_fns): ...this.
5204 (sh_nbsd_elfcore_fns): Rename to...
5205 (shnbsd_elfcore_fns): ...this.
5206 (sh_nbsd_init_abi): Rename to...
5207 (shnbsd_init_abi): ...this.
5208 (_initialize_sh_nbsd_tdep): Rename to...
5209 (_initialize_shnbsd_tdep): ...this.
5210 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5211 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5212 sh_nbsd_fill_register): Remove prototypes.
5213 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5214
e750d25e
JT
52152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5216
5217 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5218 (i387-nat.o): Delete dependency list.
5219 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5220 (x86-64-linux-nat.o): Likewise.
5221 * i387-nat.c: Delete file, moving contents to...
5222 * i387-tdep.c: ...here.
5223 * i387-nat.h: Rename...
5224 * i387-tdep.h: ...to this.
5225 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5226 * i386-linux-nat.c: Likewise.
5227 * i386bsd-nat.c: Likewise.
5228 * i386gnu-nat.c: Likewise.
5229 * i386nbsd-nat.c: Likewise.
5230 * i386v4-nat.c: Likewise.
5231 * x86-64-linux-nat.c: Likewise.
5232 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5233 * config/i386/go32.mh (NATDEPFILES): Likewise.
5234 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5235 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5236 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5237 * config/i386/linux.mh (NATDEPFILES): Likewise.
5238 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5239 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5240 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5241 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5242
1aee598a
JT
52432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5244
5245 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5246 (alphanbsd-nat.o): Remove dependency list.
5247 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5248 * alphanbsd-nat.c: Delete. Contents moved to...
5249 * alphanbsd-tdep.c: ...here.
5250 (_initialize_alphanbsd_tdep): Register core functions.
5251 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5252
12bcb0fe
JT
52532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5254
5255 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5256 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5257 (alphanbsd-nat.o): Likewise.
5258 (alphabsd-tdep.o): New dependency list.
5259 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5260 (fill_gregset): Use alphabsd_fill_reg.
5261 (supply_fpregset): Use alphabsd_supply_fpreg.
5262 (fill_fpregset): Use alphabsd_fill_fpreg.
5263 (fetch_inferior_registers): Use struct reg and struct fpreg
5264 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5265 and alphabsd_supply_fpreg.
5266 (store_inferior_registers): Use struct reg and struct fpreg
5267 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5268 and alphabsd_fill_fpreg.
5269 * alphabsd-tdep.c: New file.
5270 * alphabsd-tdep.h: New file.
5271 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5272 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5273 alphabsd_supply_fpreg.
5274 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5275 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5276
361d1df0
EC
52772002-05-11 Eric Christopher <echristo@redhat.com>
5278
5279 * mips-tdep.c (mips_double_register_type): Fix thinko.
5280 (mips_single_register_type): Ditto.
5281 * MAINTAINERS: Add self.
5282
92dd7cee
MK
52832002-05-11 Mark Kettenis <kettenis@gnu.org>
5284
5285 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5286 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5287 right thing on architectures with different endianness and/or
5288 integer sizes.
5289
e27da16d
JT
52902002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5291
5292 From Christian Limpach <chris@Pin.LU>
5293 * configure.in: Change sed expression which comments out
5294 NATDEPFILES to also comment out continuation lines.
5295 * configure: Regenerate.
5296
ddde02bd
EZ
52972002-05-10 Elena Zannoni <ezannoni@redhat.com>
5298
5299 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5300 big patch.
5301
1c922164
EZ
53022002-05-10 Elena Zannoni <ezannoni@redhat.com>
5303
5304 * sh-tdep.c: Include correct file.
5305
283150cd
EZ
53062002-05-10 Elena Zannoni <ezannoni@redhat.com>
5307
5308 New support for sh64-elf (sh5) target.
5309
5310 * configure.tgt: For sh64-elf target, default to sh-elf.
5311
5312 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5313 (struct gdbarch_tdep): Add new fields for new registers and ABI
5314 info.
361d1df0 5315
283150cd
EZ
5316 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5317 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5318 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5319 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5320 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5321 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5322 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5323 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5324 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5325 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5326 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5327 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5328 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5329 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5330 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5331 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5332 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5333 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5334 sign_extend, sh64_nofp_frame_init_saved_regs,
5335 sh64_init_extra_frame_info, sh64_get_saved_register,
5336 sh64_extract_struct_value_address, sh64_pop_frame,
5337 sh64_push_arguments, sh64_extract_return_value,
5338 sh64_store_return_value, sh64_show_media_regs,
5339 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5340 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5341 sh_sh64_register_virtual_type,
5342 sh_sh64_register_convert_to_virtual,
5343 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5344 sh64_register_read, sh64_pseudo_register_write,
5345 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5346 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5347 sh64_do_pseudo_register, sh_compact_do_registers_info,
5348 sh64_do_registers_info, sh_gdbarch_init): New functions.
5349
3117ed25
EZ
53502002-05-10 Elena Zannoni <ezannoni@redhat.com>
5351
5352 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5353
2654e6d4
DJ
53542002-05-10 Daniel Jacobowitz <drow@mvista.com>
5355
5356 * linespec.c (decode_line_1): Check for a double quote after
5357 a filename correctly.
5358
9ab3e532
JB
53592002-05-10 Jim Blandy <jimb@redhat.com>
5360
5361 Properly track the size of the current objfile's .debug_line section.
5362 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5363 (DWARF_LINE_SIZE): New macro.
5364 (dwarf2_build_psymtabs_hard): Record the line section's size in
5365 the partial symbol table.
5366 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5367 symbol table.
5368
126fa72d
PS
53692002-05-10 Petr Sorfa <petrs@caldera.com>
5370
5371 * ia64-tdep.c: Handle breakpoints on L instruction type
5372 in MLX instruction bundle by moving the breakpoint to
5373 the third slot (X instruction type) as L holds only data.
5374
1f077a3e
KB
53752002-05-10 Kevin Buettner <kevinb@redhat.com>
5376
5377 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5378 (process_one_symbol): Complain about discarding local symbols
5379 due to a misplaced N_LBRAC entry.
5380
8120c9d5 53812002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5382
5383 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5384 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5385 decrease the depth we are at, in the case of templates.
361d1df0 5386
67b2c998
DJ
53872002-05-09 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * mips-tdep.c (mips_float_register_type): New function.
5390 (mips_double_register_type): New function.
5391 (mips_print_register): Use them.
5392 (do_fp_register_row): Likewise.
5393
fd326606
DJ
53942002-05-09 Daniel Jacobowitz <drow@mvista.com>
5395
6609d9af 5396 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5397 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5398 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5399
bef35864
MS
54002002-05-09 Michael Snyder <msnyder@redhat.com>
5401
5402 * remote-rdp.c (remote_rdp_can_run): Remove.
5403
c55a3f73
TT
54042002-05-09 Tom Tromey <tromey@redhat.com>
5405
5406 * jv-valprint.c (java_val_print): Handle `char' as a special case
5407 of TYPE_CODE_INT.
5408
b8d5e71d
MS
54092002-05-09 Michael Snyder <msnyder@redhat.com>
5410
5411 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5412 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5413 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5414 str r(0123),[sp,#nn].
361d1df0 5415 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5416 order-independent by placing it in a loop.
5417
e2cd42dd
MS
54182002-05-06 Michael Snyder <msnyder@redhat.com>
5419
5420 * stabsread.c (read_type): Add recognition for new attribute:
5421 "@V;" means that an array type is actually a vector.
5422 This is analogous to the vector flag that's been added to dwarf2.
5423
3ce1502b
MK
54242002-05-09 Mark Kettenis <kettenis@gnu.org>
5425
5426 * i386-tdep.h (i386_abi): New enum.
5427 (struct gdbarch_tdep): Replace os_ident member with abi.
5428 (i386_gdbarch_register_os_abi): New prototype.
5429 * i386-tdep.c (i386_abi_names): New array.
5430 (process_note_abi_tag_sections): Removed.
5431 (process_note_sections): New function.
5432 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5433 (struct i386_abi_handler): New struct.
5434 (i386_abi_handler_list): New variable.
5435 (i386_gdbarch_register_os_abi): New function.
5436 (i386_gdbarch_init): Adapt for the changes given above.
5437
084c156a
DJ
54382002-05-08 Daniel Jacobowitz <drow@mvista.com>
5439
5440 * gregset.h: Say "GNU/Linux".
5441
6599f021
EZ
54422002-05-08 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5445 (build_gdbtypes): Build builtin_type_v2_float.
5446 (_initialize_gdbtypes): Register new builtin type.
5447
40af4b0c
AC
54482002-05-08 Andrew Cagney <ac131313@redhat.com>
5449
5450 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5451 (clear_gdbarch_swap): New function.
5452 (initialize_non_multiarch): Call.
5453 (gdbarch_update_p): Before calling init(), swap out and clear the
5454 existing architecture.
5455 * gdbarch.c: Regenerate.
5456
4fe84f46
JT
54572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5458
5459 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5460 alphanbsd-tdep.c.
5461
4015edd1
JT
54622002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5463
5464 * sh-nbsd-nat.c: Rename to...
5465 * shnbsd-nat.c: ...this.
5466 * sh-nbsd-tdep.c: Rename to...
5467 * shnbsd-tdep.c: ...this.
5468 * sh-nbsd-tdep.h: Rename to...
5469 * shnbsd-tdep.h: ...this.
5470 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5471 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5472
0e2bd219
RE
54732002-05-08 Richard Earnshaw <rearnsha@arm.com>
5474
5475 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5476 concatenation for command help messages.
5477
13a38d45
JT
54782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5479
5480 * NEWS: Note new sh*-*-netbsdelf* configuration.
5481 * configure.host: Set gdb_host_cpu to sh for all sh*.
5482 (sh*-*-netbsdelf*): New host.
5483 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5484 (sh*-*-netbsdelf*): New target.
5485 * sh-nbsd-nat.c: New file.
5486 * sh-nbsd-tdep.c: New file.
5487 * sh-nbsd-tdep.h: New file.
5488 * config/sh/nbsd.mh: New file.
5489 * config/sh/nbsd.mt: New file.
5490 * config/sh/nm-nbsd.h: New file.
5491 * config/sh/tm-nbsd.h: New file.
5492
d658f924
JT
54932002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5494
5495 * sh-tdep.c (sh_osabi_names): Declare.
5496 (process_note_abi_tag_sections): New function.
5497 (get_elfosabi): Ditto.
5498 (sh_gdbarch_register_os_abi): Ditto.
5499 (sh_dump_tdep): Ditto.
5500 _initialize_sh_tdep): Use gdbarch_register to register
5501 sh_gdbarch_init and sh_dump_tdep.
5502 * config/sh/tm-sh.h (sh_osabi): Declare.
5503 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5504
848cfffb
AC
55052002-05-07 Andrew Cagney <ac131313@redhat.com>
5506
5507 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5508 (thumb_scan_prologue): Ditto.
5509 (arm_find_callers_reg): Ditto.
5510 (arm_frame_chain): Ditto.
5511 (arm_init_extra_frame_info): Ditto.
5512 (arm_frame_saved_pc): Ditto.
5513 (arm_pop_frame): Ditto.
5514 (arm_push_return_address): New function.
5515 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5516 call_dummy_location, call_dummy_breakpoint_offset_p,
5517 call_dummy_breakpoint_offset, call_dummy_p,
5518 call_dummy_stack_adjust_p, call_dummy_words,
5519 sizeof_call_dummy_words, call_dummy_start_offset,
5520 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5521 call_dummy_address, push_return_address and push_dummy_frame for
5522 generic dummy frames.
5523
e7d717c0
JT
55242002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5525
5526 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5527 size computation for alloca.
5528 (sh_fp_frame_init_saved_regs): Likewise.
5529
7bbcf283
RE
55302002-05-07 Richard Earnshaw <rearnsha@arm.com>
5531
5532 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5533 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5534 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5535 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5536 * remote-rdp.c (remote_rdp_fetch_register): Use
5537 ARM_MAX_REGISTER_RAW_SIZE.
5538 (remote_rdp_store_register): Likewise.
5539
4657573b
ML
55402002-05-07 Michal Ludvig <mludvig@suse.cz>
5541
361d1df0 5542 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5543 added default labels to switch {} statements.
5544 * x86-64-tdep.c: Ditto.
5545 * x86-64-linux-nat.c: Ditto.
5546
010f3b2f
JT
55472002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5548
5549 * solib.h: Protect against multiple inclusion.
5550
debd256d
JB
55512002-05-06 Jim Blandy <jimb@redhat.com>
5552
9ab3e532
JB
5553 Add first preprocessor macro-expansion files.
5554 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5555 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5556 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5557 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5558 (COMMON_OBS): Add macrotab.o, macroexp.o.
5559 (macroexp.o, macrotab.o): New rules.
5560
debd256d
JB
5561 Separate the job of reading the line number info statement program
5562 header (...expialidocious) out into its own function.
5563 * dwarf2read.c (struct line_head, struct filenames, struct
5564 directories): Replace with...
5565 (struct line_header): New structure, containing the full
5566 contents of the statement program header, including the
5567 include directory and file name tables.
5568 (read_file_scope): If we have line number info, instead of just
5569 calling dwarf_decode_lines to do all the work, call
5570 dwarf_decode_line_header first to get a `struct line_header'
5571 containing the data in the statement program header, and then
5572 pass that to dwarf_decode_lines, which will pick up where that
5573 left off. Be sure to clean up the `struct line_header' object.
5574 (dwarf_decode_line_header, free_line_header, add_include_dir,
5575 add_file_name): New functions.
5576 (dwarf_decode_lines): Move all the code to read the statement
5577 program header into dwarf_decode_line_header. Take the line
5578 header it built as the first argument, instead of the offset to
5579 the compilation unit's line number info. Use the new `struct
5580 line_header' type instead of the old structures. No need to do
5581 cleanups here now, since we don't allocate anything.
5582 (dwarf2_statement_list_fits_in_line_number_section,
5583 dwarf2_line_header_too_long): New complaints.
5584
ac3aafc7
EZ
55852002-05-06 Elena Zannoni <ezannoni@redhat.com>
5586
5587 * gdbtypes.c (init_vector_type): New function.
5588 (build_builtin_type_vec128): Simplify the representation of SIMD
5589 registers.
5590 (build_gdbtypes): Initialize new builtin vector types.
5591 (_initialize_gdbtypes): Register new vector types with gdbarch.
5592 (builtin_type_v4_float, builtin_type_v4_int32,
5593 builtin_type_v8_int16, builtin_type_v16_int8,
5594 builtin_type_v2_int32, builtin_type_v4_int16,
5595 builtin_type_v8_int8): New (renamed) SIMD types.
5596
13e49980
MK
55972002-05-06 Mark Kettenis <kettenis@gnu.org>
5598
5599 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5600 (i387_fill_fxsave): Likewise.
5601
997b20b8
AO
56022002-05-05 Alexandre Oliva <aoliva@redhat.com>
5603
5604 * alpha-tdep.c (alpha_extract_return_value): Don't use
5605 non-constant array size in prototype.
5606
535c96ce
AC
56072002-05-04 Andrew Cagney <ac131313@redhat.com>
5608
5609 From Brian Taylor <briant at model dot com>:
5610 * ui-out.c (ui_out_field_core_addr): Use the function
5611 longest_local_hex_string_custom'to format addresses > 32 bits
5612 wide.
5613
5614 * ui-out.c (ui_out_field_core_addr): Update comment.
5615
bedfa57b
AC
56162002-05-04 Andrew Cagney <ac131313@redhat.com>
5617
5618 * stack.c (select_and_print_frame): Make static. Delete the
5619 parameter `level'.
5620 (func_command): Update call.
5621 (select_frame_command): Delete code computing the frame level.
5622 * frame.h (select_and_print_frame): Delete declaration.
5623
f621c63e
AC
56242002-05-04 Andrew Cagney <ac131313@redhat.com>
5625
5626 * sparc-tdep.c (sparc_get_saved_register): Comment why
5627 get_prev_frame call is safe.
5628
0f7d239c
AC
56292002-05-04 Andrew Cagney <ac131313@redhat.com>
5630
5631 * frame.h (select_frame): Delete level parameter.
5632 * stack.c (select_frame): Update. Use frame_relative_level to
5633 obtain the frame's level.
5634 (select_and_print_frame): Update call.
5635 (select_frame_command): Ditto.
5636 (up_silently_base): Ditto.
5637 (down_silently_base): Ditto.
5638 * ocd.c (ocd_start_remote): Ditto.
5639 * remote-rdp.c (remote_rdp_open): Ditto.
5640 * remote-mips.c (mips_initialize): Ditto.
5641 (common_open): Ditto.
5642 * remote-e7000.c (e7000_start_remote): Ditto.
5643 * m3-nat.c (select_thread): Ditto.
5644 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5645 (child_get_current_exception_event): Ditto.
5646 * varobj.c (varobj_create): Ditto.
5647 (varobj_update): Ditto.
5648 (c_value_of_root): Ditto.
5649 * tracepoint.c (finish_tfind_command): Ditto.
5650 * corelow.c (core_open): Ditto.
5651 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5652 * thread.c (info_threads_command): Ditto.
5653 (switch_to_thread): Ditto.
5654 * infrun.c (normal_stop): Ditto.
5655 (restore_selected_frame): Ditto.
5656 (restore_inferior_status): Ditto.
5657 * breakpoint.c (insert_breakpoints): Ditto.
5658 (watchpoint_check): Ditto.
5659 (bpstat_stop_status): Ditto.
5660 (do_enable_breakpoint): Ditto.
5661 * blockframe.c (flush_cached_frames): Ditto.
5662 (reinit_frame_cache): Ditto.
5663
71d6c7b1
AC
56642002-05-04 Andrew Cagney <ac131313@redhat.com>
5665
5666 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5667 maintainer.
5668
cda6c68a
JB
56692002-05-04 Jim Blandy <jimb@redhat.com>
5670
5671 * gdbtypes.c (replace_type): Doc fix.
5672
5c1c87f0
AC
56732002-05-04 Andrew Cagney <ac131313@redhat.com>
5674
5675 * valprint.c (strcat_longest): Delete commented out function.
5676 Update copyright.
5677
cd9bfe15
AC
56782002-05-04 Andrew Cagney <ac131313@redhat.com>
5679
5680 * MAINTAINERS: Mark a29k as deleted.
5681 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5682 Move new configurations to the top.
5683 * configure.tgt: Remove a29k.
5684 * config/a29k/tm-vx29k.h: Delete.
5685 * config/a29k/vx29k.mt: Delete.
5686 * config/a29k/tm-a29k.h: Delete.
5687 * config/a29k/a29k-udi.mt: Delete.
5688 * config/a29k/a29k.mt: Delete.
5689 * a29k-tdep.c: Delete.
5690 * remote-udi.c: Delete.
5691 * remote-mm.c: Delete.
5692 * remote-eb.c: Delete.
5693 * remote-adapt.c: Delete.
5694 * Makefile.in: Remove obsolete code.
5695 * gdbserver/Makefile.in: Ditto.
5696 * config/s390/s390x.mt: Ditto.
5697 * config/s390/s390.mt: Ditto.
5698 * config/sparc/sparclynx.mh: Ditto.
5699 * config/sparc/linux.mh: Ditto.
5700 * config/pa/hppaosf.mh: Ditto.
5701 * config/pa/hppabsd.mh: Ditto.
5702 * config/ns32k/nbsd.mt: Ditto.
5703 * config/mips/vr5000.mt: Ditto.
5704 * config/m68k/sun3os4.mh: Ditto.
5705 * config/m68k/nbsd.mt: Ditto.
5706 * config/m68k/m68klynx.mh: Ditto.
5707 * config/m32r/m32r.mt: Ditto.
5708 * config/i386/x86-64linux.mt: Ditto.
5709 * config/i386/nbsdelf.mt: Ditto.
5710 * config/i386/nbsd.mt: Ditto.
5711 * config/i386/i386lynx.mh: Ditto.
5712
bf0c5130
AC
57132002-05-04 Andrew Cagney <ac131313@redhat.com>
5714
5715 * target.c (debug_print_register): New function. Handle oversize
5716 registers.
5717 (debug_to_fetch_registers): Call.
5718 (debug_to_store_registers): Call.
5719
2ae1c2d2
JB
57202002-05-03 Jim Blandy <jimb@redhat.com>
5721
13a393b0
JB
5722 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5723 (read_type): Doc fix.
5724 * gdbtypes.c (replace_type): Doc fix.
5725
2ae1c2d2
JB
5726 * stabsread.c (multiply_defined_struct): New complaint.
5727 (read_struct_type): If the type we were passed isn't empty, or
5728 incomplete, don't read the new struct type into it; complain,
5729 and return the original type unchanged. Take a new `type_code'
5730 argument, which is the type code for the new type.
5731 (read_type): Rather than storing the type's type code here, pass
5732 it as an argument to read_struct_type, and let that take care of
5733 storing it. That way, we don't overwrite the original type code,
5734 so read_struct_type can use it to decide whether we're overwriting
5735 something we shouldn't.
5736 (complain_about_struct_wipeout): New function.
5737
8de9bdc4
AC
57382002-05-03 Andrew Cagney <ac131313@redhat.com>
5739
5740 * gdbarch.sh: Assert that gdbarch is non-NULL.
5741 * gdbarch.c: Regenerate.
5742
f773fdbb
JM
57432002-05-03 Jason Merrill <jason@redhat.com>
5744
5745 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5746 and return NULL.
5747
0e04a514
ML
57482002-05-03 Michal Ludvig <mludvig@suse.cz>
5749
5750 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5751 (x86_64_dwarf2gdb_regno_map_length),
5752 (x86_64_dwarf2_reg_to_regnum): Added.
5753 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5754 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5755 (_initialize_x86_64_tdep): Synced with the change above.
5756 (x86_64_skip_prologue): Reformulated message.
5757
065432a8
PM
57582002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5759
5760 * f-exp.y: Also use new prev_lexptr variable
5761 to improve error reporting. Based on Michael Snyder
5762 2002-04-24 dated patch to c-exp.y.
5763 * jv-exp.y: Likewise.
5764 * m2-exp.y: Likewise.
5765
a3162708
EZ
57662002-05-02 Elena Zannoni <ezannoni@redhat.com>
5767
5768 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5769 we are dealing with vectors.
5770
03620c38
PM
57712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5772
5773 * config/m68k/tm-nbsd.h: Obvious fix,
5774 correct machine name.
5775
6604db2e
PM
57762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5777
5778 * p-typeprint.c (pascal_type_print_base): Add support
5779 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5780
0906b739
PM
57812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5782
5783 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5784 for fondamental pascal 'char' type.
5785
e2625b33
PM
57862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5787
5788 * p-lang.h (is_pascal_string_type): Declaration changed,
5789 new sixth argument of type char ** added.
361d1df0 5790 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5791 changed. Args length_pos, length_size, string_pos, char_size
5792 can now be NULL. New argument arrayname set to the field
5793 name of the char array. Return value set to char array
5794 field index plus one.
361d1df0 5795 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5796 is_pascal_string_type function.
5797
cf17c188
AC
57982002-05-02 Andrew Cagney <cagney@redhat.com>
5799
5800 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5801 <cagney@redhat.com> change.
5802 * gdbarch.c: Regenerate.
5803
52bca491
AC
58042002-05-02 Andrew Cagney <cagney@redhat.com>
5805
5806 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5807 before probing for a new one. Detect errorenous gdbarch_init
5808 functions.
5809 * gdbarch.c: Regenerate.
5810
d5e72505
AC
58112002-05-01 Andrew Cagney <cagney@redhat.com>
5812
5813 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5814 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5815 * config/v850/tm-v850.h: Ditto. Update copyright.
5816
af566d9f
AC
58172002-04-30 Andrew Cagney <ac131313@redhat.com>
5818
5819 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5820 current_gdbarch.
5821
880d85fa
MS
58222002-04-30 Michael Snyder <msnyder@redhat.com>
5823
94c30b78
MS
5824 * arm-tdep.c: Whitespace clean-ups.
5825 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5826 should have been removed as part of 4/24 change.
5827
6f5987a6
KB
58282002-04-30 Kevin Buettner <kevinb@redhat.com>
5829
5830 * rs6000-tdep.c: Added comment describing how fpscr register
5831 numbers were chosen.
5832
1a113c93
MS
58332002-04-30 Michael Snyder <msnyder@redhat.com>
5834
5835 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5836
9a6f53fe
EZ
58372002-04-29 Elena Zannoni <ezannoni@redhat.com>
5838
5839 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5840 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5841 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5842
11ed25ac
KB
58432002-04-29 Kevin Buettner <kevinb@redhat.com>
5844
5845 From Louis Hamilton <hamilton@redhat.com>:
5846 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5847 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5848 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5849 not bfd-private xcoff data, to determine wordsize.
5850 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5851
ae232405
AC
58522002-04-29 Andrew Cagney <ac131313@redhat.com>
5853
5854 GDB 5.2 released from 5.2 branch.
5855
91fd20f7
ML
58562002-04-29 Michal Ludvig <mludvig@suse.cz>
5857
5858 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5859 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5860 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5861
2dc5091b
EZ
58622002-04-29 Elena Zannoni <ezannoni@redhat.com>
5863
5864 * rs6000-tdep.c (rs6000_extract_return_value,
5865 rs6000_store_return_value): Handle returning vectors.
5866 (rs6000_gdbarch_init): Use
5867 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5868 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5869 New function.
5870 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5871 vectors.
5872 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5873 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5874
2b9848d8
PM
58752002-04-24 Pierre Muller <ics.u-strasbg.fr>
5876
5877 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5878 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5879 with fprintf_unfiltered (gdb_stderr,...).
5880
f8d17dc5
PM
58812002-04-24 Pierre Muller <ics.u-strasbg.fr>
5882
5883 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5884 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5885 Replace fprintf (stderr,...
5886 with fprintf_unfiltered (gdb_stderr,....
5887 * remote-es.c: Likewise.
5888 * remote-os9k.c: Likewise.
5889 * remote-st.c: Likewise.
5890
2f2f1ad1
AS
58912002-04-28 Andreas Schwab <schwab@suse.de>
5892
5893 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5894 linux-proc.o and gcore.o.
5895
b6779aa2
AC
58962002-04-26 Michal Ludvig <mludvig@suse.cz>
5897
5898 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5899 code without frame pointers.
5900
7e57f5f4
AC
59012002-04-26 Andrew Cagney <ac131313@redhat.com>
5902
5903 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5904 ON_STACK is needed.
5905
2ceb85d0
BE
59062002-04-26 Ben Elliston <bje@redhat.com>
5907
5908 * target.c (do_xfer_memory): Correct reference to the new option
5909 "trust-readonly-sections".
5910
f5f8a009
EZ
59112002-04-26 Elena Zannoni <ezannoni@redhat.com>
5912
5913 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5914 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5915 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5916 vectors.
5917 (read_array_type): Record the fact that this array type is really a
5918 vector (i.e. are passed in by value).
5919
5868c862
JT
59202002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5923 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5924 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5925 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5926 * alpha-linux-tdep.c: Include frame.h.
5927 (alpha_linux_sigcontext_addr): New function.
5928 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5929 alpha_linux_sigcontext_addr.
5930 * alpha-osf1-tdep.c: Include gdbcore.h.
5931 (alpha_osf1_sigcontext_addr): New function.
5932 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5933 alpha_osf1_sigcontext_addr.
5934 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5935 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5936
bfb01f37
AC
59372002-04-26 Andrew Cagney <ac131313@redhat.com>
5938
361d1df0 5939 * stack.c (selected_frame_level):
bfb01f37
AC
5940 (select_frame): Do not set selected_frame_level.
5941 * frame.h (selected_frame_level): Delete declaration.
5942
15813d3f
AC
59432002-04-26 Andrew Cagney <ac131313@redhat.com>
5944
5945 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5946 convert_from_func_ptr-addr when AIX / PowerOpen.
5947
6096c27a
AC
59482002-04-25 Andrew Cagney <ac131313@redhat.com>
5949
5950 * valops.c (hand_function_call): Call
5951 generic_save_call_dummy_addr.
5952 * frame.h (generic_save_call_dummy_addr): Declare.
5953 * blockframe.c (struct dummy_frame): Add fields call_lo and
5954 call_hi.
5955 (generic_find_dummy_frame): Check for PC in range call_lo to
5956 call_hi instead of entry_point_address.
5957 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5958 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5959 (generic_save_call_dummy_addr): New function.
5960
f510d44e
DM
59612002-04-24 David S. Miller <davem@redhat.com>
5962
5963 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5964 sparc_skip_prologue.
5965 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5966 information to find prologue when possible.
5967 (sparc_prologue_frameless_p): Call examine_prologue directly.
5968 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5969 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5970 second argument.
5971 (SKIP_PROLOGUE): Likewise.
5972
15d72a92
JT
59732002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5974
5975 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5976 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5977 indicate that the condition it was testing is always true.
5978 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5979 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5980 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5981
accc6d1f
JT
59822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5983
5984 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5985 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5986 tdep->jb_pc and tdep->jb_elt_size.
5987 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5988 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5989 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5990 * alpha-nat.c (get_longjmp_target): Remove.
5991 (JB_ELEMENT_SIZE): Ditto.
5992 (JB_PC): Ditto.
5993 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5994 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5995 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5996 to alpha_get_longjmp_target.
5997 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5998 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5999 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6000
1bfdc549
AC
60012002-04-25 Andrew Cagney <ac131313@redhat.com>
6002
6003 * README: Update to GDB 5.2.
6004
1bd316f0
AC
60052002-04-25 Andrew Cagney <ac131313@redhat.com>
6006
6007 * gdbarch.sh (LC_ALL): Set to `c'.
6008
2e5ff58c
TR
60092002-04-25 Theodore A. Roth <troth@verinet.com>
6010
6011 * avr-tdep.c: Ran through gdb_indent.sh.
6012
e33ce519
TR
60132002-04-25 Theodore A. Roth <troth@verinet.com>
6014
6015 * MAINTAINERS: Add myself as AVR maintainer.
6016 * NEWS: Note new target avr.
6017
8818c391
TR
60182002-04-25 Theodore A. Roth <troth@verinet.com>
6019
6020 * Makefile.in: Add support for AVR target.
6021 * configure.tgt: Add support for AVR target.
6022 * avr-tdep.c: New file
6023 * config/avr/avr.mt: New file.
6024
79509c2d
TR
60252002-04-25 Theodore A. Roth <troth@verinet.com>
6026
6027 * MAINTAINERS: Add myself to write-after-approval.
6028
dac8068e
PM
60292002-04-24 Pierre Muller <ics.u-strasbg.fr>
6030
6031 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6032 with fprintf_unfiltered (gdb_stderr,....
6033
25bf3106
PM
60342002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6035
6036 Fix PR gdb/508.
6037 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6038
24467a86
PM
60392002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6040
6041 * p-exp.y: Also use new prev_lexptr variable
6042 to improve error reporting. Based on Michael Snyder
6043 2002-04-24 dated patch to c-exp.y.
6044
95b80706
JT
60452002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6046
6047 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6048 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6049 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6050 to 0.
6051 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6052 and struct value.
6053 (FUNCTION_START_OFFSET): Remove.
6054 (BREAKPOINT): Ditto.
6055
e90cc612
JT
60562002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6057
6058 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6059 * NEWS: Ditto.
6060
6c72f9f9
JT
60612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6062
6063 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6064 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6065 alpha_linux_pc_in_sigtramp.
6066 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6067 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6068 alpha_osf1_pc_in_sigtramp.
6069 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6070 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6071 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6072 alphafbsd_pc_in_sigtramp.
6073 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6074 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6075 alphanbsd_pc_in_sigtramp.
6076 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6077 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6078
5e4f3379
JT
60792002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6080
6081 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6082
da8ca43d
JT
60832002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6086 alphanbsd-tdep.c.
6087 (alphanbsd-nat.o): New dependency list.
6088 (alphanbsd-tdep.o): Ditto.
6089 * NEWS: Note new native NetBSD/alpha configuration.
6090 * alphanbsd-nat.c: New file.
6091 * alphanbsd-tdep.c: Ditto.
6092 * configure.host (alpha*-*-netbsd*): New host.
6093 * configure.tgt (alpha*-*-netbsd*): New target.
6094 * config/alpha/nbsd.mh: New file.
6095 * config/alpha/nbsd.mt: Ditto.
6096 * config/alpha/nm-nbsd.h: Ditto.
6097 * config/alpha/tm-nbsd.h: Ditto.
6098
36a6271d
JT
60992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6100
6101 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6102 (alpha-osf1-tdep.o): New dependency list.
6103 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6104 and skip_sigtramp_frame members.
6105 * alpha-linux-tdep.c: Include gdbcore.h.
6106 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6107 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6108 * alpha-osf1-tdep.c: New file.
6109 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6110 alpha-osf1-dep.c.
6111 (alpha_frame_past_sigtramp_frame): New function.
6112 (alpha_dynamic_sigtramp_offset): Ditto.
6113 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6114 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6115 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6116 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6117 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6118 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6119 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6120 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6121 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6122 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6123 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6124 to find_solib_trampoline_target.
6125 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6126 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6127 (SKIP_TRAMPOLINE_CODE): Remove.
6128 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6129 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6130 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6131 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6132 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6133 (PROC_SIGTRAMP_MAGIC): Ditto.
6134 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6135 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6136 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6137 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6138 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6139
2f4bc57b
JT
61402002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * NEWS: Note that Alpha targets are now multi-arch.
6143
665132f9
MS
61442002-04-24 Michael Snyder <msnyder@redhat.com>
6145
6146 * parser-defs.h (prev_lexptr): New external variable.
6147 * parse.c (parse_exp_1): Set prev_lexptr to null before
6148 calling the language-specific parser.
6149 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6150 (yyerror): Use prev_lexptr in error reporting.
6151
32872fa7
DJ
61522002-04-24 Daniel Jacobowitz <drow@mvista.com>
6153
6154 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6155 * gregset.h: If FILL_FPXREGSET is defined, provide
6156 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6157 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6158 is defined, call fill_fpxregset.
6159
57e76fac
MS
61602002-04-24 Roland McGrath <roland@frob.com>
6161
6162 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6163 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6164 (supply_gregset, supply_fpregset): New functions.
6165
6166 * gnu-nat.c (gnu_find_memory_regions): New function.
6167 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6168 (gnu_xfer_memory): Add a cast.
6169
f43845b3
MS
61702002-04-24 Michael Snyder <msnyder@redhat.com>
6171
361d1df0 6172 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6173 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6174 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6175 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6176 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6177 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6178
a0abec03
AC
6179Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6180
6181 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6182 NUM_PSEUDO_REGS can be used.
6183
d7bd68ca
AC
61842002-04-24 Andrew Cagney <ac131313@redhat.com>
6185
6186 * arch-utils.h: Update copyright.
6187
6188 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6189 * gdbarch.h, gdbarch.c: Re-generate.
6190
6191 * inferior.h (IN_SIGTRAMP): Delete definition.
6192 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6193 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6194
6195 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6196 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6197 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6198 (find_proc_framesize): Ditto.
6199 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6200 (alpha_init_extra_frame_info): Ditto.
6201 * infrun.c (handle_inferior_event): Ditto.
6202 (handle_inferior_event): Ditto.
6203 (check_sigtramp2): Ditto.
6204 * blockframe.c (create_new_frame): Ditto.
6205 (get_prev_frame): Ditto.
6206 * ppc-linux-tdep.c: Update comments.
6207 * i386-linux-tdep.c: Update comments.
6208 * breakpoint.c (bpstat_what): Update comment.
6209
d06f167a
ML
62102002-04-24 Michal Ludvig <mludvig@suse.cz>
6211
6212 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 6213 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
6214 ptrace() calls.
6215 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6216
4867e41e
DM
62172002-04-24 David S. Miller <davem@redhat.com>
6218
21d83aa5
DM
6219 * i960-tdep.c (register_in_window_p): New function.
6220 (i960_find_saved_register): Use it instead of
6221 REGISTER_IN_WINDOW_P.
6222 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6223
4867e41e
DM
6224 * symtab.h (find_stab_function_addr): Kill extern.
6225 * minsyms.c (find_stab_function_addr): Remove from here...
6226 * dbxread.c: ... to here, and mark it static.
6227
69cdf6a2
DM
62282002-04-20 David S. Miller <davem@redhat.com>
6229
6230 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6231 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6232
5a595886
DM
62332002-04-21 David S. Miller <davem@redhat.com>
6234
6235 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6236 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6237 (vx_write_register): Likewise.
6238
1da1a192
JB
62392002-04-23 J. Brobecker <brobecker@gnat.com>
6240
6241 * source.c (is_regular_file): New function.
6242 (openp): Check wether file to open is a regular file
6243 to avoid opening directories.
6244
baa6f10b
JT
62452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * findvar.c (extract_signed_integer): Cast printf argument
6248 to suppress format warning.
6249 (extract_unsigned_integer): Likewise.
6250 * infcmd.c (registers_info): Likewise.
6251 * top.c (get_prompt_1): Likewise.
6252 * valops.c (value_assign): Likewise.
6253 * valprint.c (print_decimal): Likewise.
6254
b2c4da81
L
62552002-04-22 H.J. Lu (hjl@gnu.org)
6256
6257 * c-exp.y (typebase): Support
361d1df0 6258
b2c4da81
L
6259 [long|long long|short] [signed|unsigned] [int|]
6260
6261 and
6262
6263 signed [long|long long|short] int
6264
f267bd6a
JT
62652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6266
6267 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6268 and vax-tdep.h.
6269 * vax-tdep.h: New file.
6270 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6271 Make several routines static.
6272 (vax_get_saved_register): New function.
6273 (vax_gdbarch_init): New function.
6274 (_initialize_vax_tdep): Register vax_gdbarch_init.
6275 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6276 Remove macros now under the control of gdbarch.
6277
da3c6d4a
MS
62782002-04-22 Michael Snyder <msnyder@redhat.com>
6279
11d3b27d
MS
6280 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6281 Some whitespace and coding standards tweaks.
da3c6d4a 6282
a33f7558
JT
62832002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6284
6285 * vax-tdep.c: Include regcache.h.
6286 (vax_call_dummy_words): New.
6287 (sizeof_vax_call_dummy_words): New.
6288 (vax_fix_call_dummy): New function.
6289 (vax_saved_pc_after_call): Ditto.
6290 * config/vax/tm-vax.h: Don't include regcache.h.
6291 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6292 (CALL_DUMMY): Remove.
6293 (CALL_DUMMY_WORDS): Define.
6294 (SIZEOF_CALL_DUMMY_WORDS): Define.
6295 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6296
47a73475
MS
62972002-04-18 Michael Snyder <msnyder@redhat.com>
6298
6299 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6300
52efde73
JT
63012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6302
6303 * vax-tdep.c (vax_frame_chain): New function.
6304 (vax_push_dummy_frame): Ditto.
6305 (vax_pop_frame): Ditto.
6306 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6307 (FRAMELESS_FUNCTION_INVOCATION): Use
6308 generic_frameless_function_invocation_not.
6309 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6310 (POP_FRAME): Use vax_pop_frame.
6311
ea74468c
JT
63122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6313
6314 * vax-tdep.c (vax_store_struct_return): New function.
6315 (vax_extract_return_value): Ditto.
6316 (vax_store_return_value): Ditto.
6317 (vax_extract_struct_value_address): Ditto.
6318 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6319 vax_store_struct_return.
6320 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6321 (STORE_RETURN_VALUE): Use vax_store_return_value.
6322 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6323
5516aa92
JT
63242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6325
6326 * vax-tdep.c (vax_frame_saved_pc): New function.
6327 (vax_frame_args_address_correct): Ditto.
6328 (vax_frame_args_address): Ditto.
6329 (vax_frame_locals_address): Ditto.
6330 (vax_frame_num_args): Move code to be in proximity to
6331 other frame-related functions.
6332 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6333 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6334 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6335 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6336 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6337
36af0b35
L
63382002-04-22 H.J. Lu (hjl@gnu.org)
6339
6340 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6341 includedir.
6342
ab62c900
JT
63432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6344
6345 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6346 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6347 (FRAME_INIT_SAVED_REGS): New macro.
6348
7232b100
JT
63492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6350
6351 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6352
b70d2aee
JT
63532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6354
6355 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6356 where needed.
6357 (fetch_osf_core_registers): Likewise.
6358 (supply_gregset): Likewise.
6359
a0e8a2d1 63602002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6361
a0e8a2d1
JB
6362 * symfile.h (get_section_index): Define.
6363 * symfile.c (get_section_index): New function.
6364 * mdebugread.c (SC_IS_SBSS): New macro.
6365 (SC_IS_BSS): Return true for the scBss storage class only, as
6366 the scSBss storage class refers to the .sbss section.
6367 (parse_partial_symbols): Discard the symbols which associated
6368 section does not exist.
6369 Make sure to use the .sbss section index for symbols which
6370 storage class is scBss, rather than using the .bss section index.
6371
51eb8b08
JT
63722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6373
6374 * vax-tdep.c: Update copyright years.
6375 (vax_register_name): New function.
6376 (vax_register_byte): Ditto.
6377 (vax_register_raw_size): Ditto.
6378 (vax_register_virtual_size): Ditto.
6379 (vax_register_virtual_type): Ditto.
6380 * config/vax/tm-vax.h: Update copyright years.
6381 (REGISTER_NAMES): Remove.
6382 (REGISTER_NAME): Define.
6383 (REGISTER_BYTE): Use vax_register_byte.
6384 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6385 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6386 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6387
6cc1c0a8
AC
63882002-04-21 Andrew Cagney <ac131313@redhat.com>
6389
6390 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6391 declaration
6392 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6393
9319a2fe
DM
63942002-04-21 David S. Miller <davem@redhat.com>
6395
6396 * arch-utils.c (generic_prologue_frameless_p): Kill
6397 SKIP_PROLOGUE_FRAMELESS_P code.
6398 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6399 references.
6400 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6401 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6402 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6403 references.
6404 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6405 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6406 (sparc_gdbarch_init): Pass it to
6407 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6408
e9ed6d01
JT
64092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6412 (alphabsd-nat.o): New dependency list.
6413
36012033
JT
64142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6415
6416 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6417 alphafbsd-tdep.c.
6418 (alpha-linux-tdep.o): New dependency list.
6419 (alphafbsd-tdep.o): Likewise.
6420
3379287a
JT
64212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6422
6423 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6424 to here...
6425 * alpha-tdep.c: ...from here.
6426 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6427
4bcbd6cb
JT
64282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6429
6430 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6431 prototype from here...
6432 * alpha-tdep.h: ...to here.
6433
b31da25e
AC
64342002-04-21 Andrew Cagney <ac131313@redhat.com>
6435
6436 * frame.h (selected_frame_level): Document as deprecated.
6437 (frame_relative_level): Declare.
6438 * stack.c (frame_relative_level): New function.
6439 (selected_frame_level): Document as deprecated.
6440 (select_frame): Do not set the selected_frame_level.
6441
6442 * stack.c (frame_info, record_selected_frame): Update.
6443 (frame_command, current_frame_command): Update.
6444 (up_silently_base, up_command, down_silently_base): Update.
6445 (down_command): Update.
6446 * inflow.c (kill_command): Update.
6447 * tracepoint.c (finish_tfind_command): Update.
6448 * corelow.c (core_open): Update.
6449 * thread.c (info_threads_command): Update.
6450 (do_captured_thread_select): Update.
6451 * infcmd.c (finish_command): Update.
6452 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6453
9c1d6fe5
JT
64542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6455
6456 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6457
ab89facf
AC
64582002-04-21 Andrew Cagney <ac131313@redhat.com>
6459
6460 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6461 type const.
6462
82a4efa1
JT
64632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6464
6465 * alphafbsd-tdep.c: Update copyright years. Include
6466 alpha-tdep.h.
6467 (alphafbsd_use_struct_convention): Make static.
6468 (alphafbsd_init_abi): New function.
6469 (_initialize_alphafbsd_tdep): New function.
6470 * config/alpha/tm-fbsd.h: Update copyright years.
6471 (USE_STRUCT_CONVENTION): Remove.
6472
44dffaac
JT
64732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6474
6475 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6476 an Alpha ABI variant.
6477 (alpha_abi_handler_list): Declare.
6478 (alpha_gdbarch_register_os_abi): New function.
6479 (alpha_gdbarch_init): Give registered ABI variant handlers a
6480 chance to tweak the gdbarch once we have set up defaults.
6481 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6482
65585be4
JT
64832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6484
6485 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6486 to standard_coerce_float_to_double.
6487 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6488
d9b023cc
JT
64892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6492 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6493 from gdbarch_tdep rather than a constant.
6494 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6495 the default text address for all Alpha Unix ABIs.
6496 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6497 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6498
dc129d82
JT
64992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6500
6501 * alpha-tdep.h: New file. Includes several Alpha target constants
6502 taken from...
6503 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6504 let gdbarch deal with.
6505 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6506 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6507 to dependency list.
6508 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6509 Alpha target register names.
6510 * alphabsd-nat.c: Likewise.
6511 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6512 Alpha target register names. Make serveral routines static.
6513 (alpha_get_saved_register): New function.
6514 (alpha_abi_names): New.
6515 (process_note_abi_tag_sections): New function.
6516 (get_elfosabi): New function.
6517 (alpha_gdbarch_init): New function.
6518 (alpha_dump_tdep): New function.
6519 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6520
d49d1e0a
AC
65212002-04-21 Andrew Cagney <ac131313@redhat.com>
6522
6523 * frame.c (find_saved_register): Delete #ifdef
6524 HAVE_REGISTER_WINDOWS code.
6525 * config/sparc/tm-sparc.h: Update comments.
6526 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6527
92e8c9ed
AC
65282002-04-21 Andrew Cagney <ac131313@redhat.com>
6529
6530 * i960-tdep.c (i960_find_saved_register): New function.
6531 (i960_get_saved_register): New function.
6532 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6533 (i960_get_saved_register): Declare.
6534 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6535
e1925118
DM
65362002-04-20 David S. Miller <davem@redhat.com>
6537
6538 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6539
29673b29
AC
65402002-04-20 Andrew Cagney <ac131313@redhat.com>
6541
6542 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6543 instead of NUM_PSEUDO_REGS.
6544
6c86dcd5
DM
65452002-04-20 David S. Miller <davem@redhat.com>
6546
6547 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6548 GDB_MULTI_ARCH_PARTIAL
6549 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6550 define, let tm-sp64.h do it.
6551
aa40ec90
JT
65522002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6553
6554 * frame.c (find_saved_register): Avoid a NULL pointer
6555 dereference and actually walk the frame list.
6556
0f79675b
AC
65572002-04-20 Andrew Cagney <ac131313@redhat.com>
6558
6559 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6560 sorted in most most-recent-used order. Document.
6561 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6562
c04a1aa8
DJ
65632002-04-20 Daniel Jacobowitz <drow@mvista.com>
6564
6565 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6566 (add_inferior): Call create_register_cache.
6567 (clear_inferiors): Call free_register_cache.
6568 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6569 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6570 (registers): Remove.
6571 (get_regcache): New function.
6572 (create_register_cache, free_register_cache): New functions.
6573 (set_register_cache): Don't initialize the register cache here.
6574 (registers_to_string, registers_from_string, register_data): Call
6575 get_regcache.
6576 * gdbserver/regcache.h: Add prototypes.
6577 * gdbserver/server.h: Likewise.
6578
611cb4a5
DJ
65792002-04-20 Daniel Jacobowitz <drow@mvista.com>
6580
6581 * gdbserver/mem-break.c: New file.
6582 * gdbserver/mem-break.h: New file.
6583 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6584 dependencies.
6585 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6586 member.
6587 (clear_inferiors): Free target_data member if set.
6588 (inferior_target_data, set_inferior_target_data): New functions.
6589 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6590 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6591 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6592 (struct inferior_linux_data): New.
6593 (linux_create_inferior): Use set_inferior_target_data.
6594 (linux_attach): Likewise. Call add_inferior.
6595 (linux_wait_for_one_inferior): New function.
6596 (linux_wait): Call it.
6597 (linux_write_memory): Add const.
6598 (initialize_low): Call set_breakpoint_data.
6599 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6600 handling members.
6601 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6602 call.
6603 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6604 prototypes.
6605 * gdbserver/target.c (read_inferior_memory)
6606 (write_inferior_memory): New functions.
6607 * gdbserver/target.h (read_inferior_memory)
6608 (write_inferior_memory): Change macros to prototypes.
6609 (struct target_ops): Update comments. Add const to write_memory
6610 definition.
6611
f91305dd 66122002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6613
6614 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6615 instead of ->prev.
6616 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6617 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6618 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6619 instead of ->prev.
6620
73d322b1
EZ
66212002-04-19 Elena Zannoni <ezannoni@redhat.com>
6622
6623 Fix PR gdb/471.
6624 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6625 (build_builtin_type_vec128): Ditto.
6626 (append_composite_type_field): Fix calculation of type length in
6627 union case.
6628
ccd9a834
EZ
66292002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6630
6631 * config/djgpp/README: Update.
6632
6633 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6634 compiler warnings.
6635
a57f9e49
JT
66362002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6637
6638 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6639 (alpha_setup_arbitrary_frame): ...to this.
6640 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6641 for alpha_setup_arbitrary_frame.
6642
f4f9705a
AC
66432002-04-18 Andrew Cagney <cagney@redhat.com>
6644
6645 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6646 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6647
f4f9705a
AC
6648 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6649 * target.h (memory_breakpoint_from_pc): Update declaration.
6650 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6651
6652 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6653 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6654 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6655 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6656 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6657 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6658 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6659 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6660 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6661 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6662 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6663 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6664
6665 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6666 const pointer.
6667 * monitor.c (monitor_insert_breakpoint): Ditto.
6668 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6669
6670 * config/mcore/tm-mcore.h: Update copyright.
6671 * mem-break.c: Ditto.
6672 * xstormy16-tdep.c: Ditto.
6673
29f319b8
PM
66742002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6675
6676 * p-exp.y: Add precedence rule for '^' token.
6677 This removes the shift/reduce conflicts.
6678 Remove the comment concerning these shift/reduce conflicts.
6679
ebeac11a
EZ
66802002-04-18 Elena Zannoni <ezannoni@redhat.com>
6681
6682 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6683 (registers_powerpc_nofp): New register set for processors
6684 without floating point unit.
6685
27c31547
DM
66862002-04-18 David S. Miller <davem@redhat.com>
6687
6688 * MAINTAINERS: Add myself to write-after-approval.
6689
47a73475
MS
66902002-04-17 Michael Snyder <msnyder@redhat.com>
6691
6692 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6693
953836b2
AC
66942002-04-17 Andrew Cagney <ac131313@redhat.com>
6695
6696 * rs6000-tdep.c (frame_initial_stack_address): Use
6697 frame_register_read to read the alloca_reg.
6698
8b0d4340
AC
66992002-04-17 Andrew Cagney <ac131313@redhat.com>
6700
6701 * frame.c (find_saved_register): Find saved registers in the next
6702 not prev frame.
6703 Fix PR gdb/365.
6704
d8864532
AC
67052002-04-17 Andrew Cagney <ac131313@redhat.com>
6706
6707 * gdbarch.sh (LANG): Set to ``c''.
6708
36cc83a3 67092002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6710
36cc83a3 6711 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6712
2f4150cc 67132002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6714
6715 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6716 Update copyright.
6717
628703c6 6718 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6719 Also fix PR gdb/391.
361d1df0 6720
56157b4a
AC
67212002-04-14 Andrew Cagney <ac131313@redhat.com>
6722
6723 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6724 * aclocal.m4, configure: Re-generate.
6725 Fix PR gdb/391.
361d1df0 6726
6d1e3329
EZ
67272002-04-14 Elena Zannoni <ezannoni@redhat.com>
6728
6729 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6730 instead of tm_print_insn.
6731
cb06fa07
EZ
67322002-04-14 Elena Zannoni <ezannoni@redhat.com>
6733
6734 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6735
f208ba17
AC
67362002-04-14 Andrew Cagney <ac131313@redhat.com>
6737
6738 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6739 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6740 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6741
20f01a46
DH
67422002-04-12 Don Howard <dhoward@redhat.com>
6743
6744 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6745 max_user_call_depth.
6746 (init_cmd_lists): Initialize the new value;
6747 * cli/cli-script.c (execute_user_command): Limit the call depth of
6748 user defined commands. This avoids a core-dump when user commands
6749 are infinitly recursive.
6750
a88376a3
KB
67512002-04-12 Kevin Buettner <kevinb@redhat.com>
6752
6753 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6754 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6755 from tdep struct instead of DEFAULT_LR_SAVE.
6756 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6757 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6758 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6759
f2172603
MS
67602002-04-12 Michael Snyder <msnyder@redhat.com>
6761
694f61fb 6762 * Remote.c: Spelling fix.
20fe79c8
MS
6763 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6764 If no symbol found for "sbrk", try "_sbrk".
6765 (make_output_phdrs): Use bfd_section_name.
6766 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6767 * eval.c: Indentation fix-ups.
169a7369
MS
6768 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6769 in case it gets applied to an address that is already
6770 in the instruction space.
de74f71f
MS
6771 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6772 * symfile.c: Fix indentation, long lines.
f2172603
MS
6773 * source.c: White space fix-up.
6774
cda5a58a
AC
67752002-04-12 Andrew Cagney <cagney@redhat.com>
6776
6777 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6778 * frame.c (frame_register_read): New function. Return non-zero on
6779 success.
6780 (read_relative_register_raw_bytes_for_frame): Delete.
6781 (read_relative_register_raw_bytes): Delete.
6782 * frame.h (frame_register_read): Declare.
6783 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6784 * sh-tdep.c: Ditto.
6785 * infcmd.c (do_registers_info): Ditto.
6786 * hppa-tdep.c: Ditto.
6787 * rs6000-tdep.c: Ditto.
6788 * h8500-tdep.c: Ditto.
6789 * mips-tdep.c: Ditto.
6790 * h8300-tdep.c: Ditto.
6791 * z8k-tdep.c: Ditto.
6792
2ea5f656
KB
67932002-04-12 Kevin Buettner <kevinb@redhat.com>
6794
6795 From Jimi X <jimix@watson.ibm.com>:
6796 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6797 64-bit SysV ABI.
6798
27b15785
KB
67992002-04-12 Kevin Buettner <kevinb@redhat.com>
6800
6801 From Jimi X <jimix@watson.ibm.com>:
6802 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6803 bfd info.
6804
5d57ee30
KB
68052002-04-12 Kevin Buettner <kevinb@redhat.com>
6806
6807 From Jimi X <jimix@watson.ibm.com>:
6808 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6809 register sets for these processor variants.
6810
bc1e36ca
DJ
68112002-04-11 Daniel Jacobowitz <drow@mvista.com>
6812
6813 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6814 registers which are allowed to fail to store.
6815 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6816 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6817 (ppc_cannot_store_register): FPSCR may not be storable.
6818 * regformats/reg-ppc.dat: Support FPSCR.
6819
e3f36dbd
KB
68202002-04-11 Kevin Buettner <kevinb@redhat.com>
6821
6822 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6823 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6824 Add fpscr as an invalid/unfetchable register.
6825 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6826 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6827 (fill_fpregset): Add support for register fpscr.
6828 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6829 (fill_gregset): Account for the fact that register ``mq'' might
6830 not exist.
6831 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6832 (registers_power): Add fpscr to register set at slot 71.
6833 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6834 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6835
943c9c25
MS
68362002-04-11 Michael Snyder <msnyder@redhat.com>
6837
6838 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6839 * configure: Regenerate.
6840 * config.in: Regenerate.
6841 * acconfig.h: Add define for _SYSCALL32.
6842 * core-sol2.c: Remove #define _SYSCALL32.
6843 * solib-legacy.c: Remove #define _SYSCALL32.
6844
d8c0a2e7
AC
68452002-04-10 Andrew Cagney <ac131313@redhat.com>
6846
6847 * stack.c (select_frame): Cleanup internal error message, do not
6848 use %p.
6849
7cc19214
AC
68502002-04-10 Andrew Cagney <ac131313@redhat.com>
6851
6852 * stack.c (select_frame): Check that selected_frame and the
6853 specified level are as expected.
6854 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6855 Update copyright.
6856 * frame.h (struct frame_info): Add field `level'. Update
6857 copyright.
6858 Work-in-progress PR gdb/464.
6859
67a2b77e
AC
68602002-04-10 Andrew Cagney <ac131313@redhat.com>
6861
6862 * maint.c (maint_print_section_info): Rename print_section_info.
6863 (print_bfd_section_info, print_objfile_section_info): Update.
6864 * inferior.h (struct gdbarch): Add opaque declaration.
6865 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6866 * gdbarch.h: Regenerate.
6867
8cfda98c
ML
68682002-04-10 Michal Ludvig <mludvig@suse.cz>
6869
6870 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6871 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6872 (kernel_u_size): Added.
6873 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6874 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6875
ca439ad2 68762002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6877
ca439ad2
JI
6878 * valarith.c (find_size_for_pointer_math): New function, either returns
6879 the size for a pointer's target, returns 1 for void *, or errors for
6880 incomplete types.
6881 (value_add, value_sub): use find_size_for_pointer_math.
6882
2f2893d9
DJ
68832002-04-09 Daniel Jacobowitz <drow@mvista.com>
6884
6885 * linux-low.c (linux_look_up_symbols): New hook.
6886 (linux_target_ops): Add linux_look_up_symbols.
6887 * remote-utils.c (decode_address): New function.
6888 (look_up_one_symbol): New function.
6889 * server.c (handle_query): Call target look_up_symbols hook.
6890 * server.h (look_up_one_symbol): Add prototype.
6891 * target.h (struct target_ops): Add look_up_symbols hook.
6892
2ec06d2e
DJ
68932002-04-09 Daniel Jacobowitz <drow@mvista.com>
6894
d64b8841
DJ
6895 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6896 * ChangeLog: Correct paths in last ChangeLog entry.
6897
68982002-04-09 Daniel Jacobowitz <drow@mvista.com>
6899
6900 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
6901 (struct linux_target_ops): New.
6902 (extern the_low_target): New.
d64b8841 6903 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
6904 (register_addr): Use the_low_target explicitly.
6905 (fetch_register): Likewise.
6906 (usr_fetch_inferior_registers): Likewise.
6907 (usr_store_inferior_registers): Likewise.
d64b8841 6908 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
6909 (arm_num_regs): Define.
6910 (arm_regmap): Renamed from regmap, made static.
6911 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6912 made static.
6913 (arm_cannot_store_register): Renamed from cannot_store_register,
6914 made static.
6915 (the_low_target): New.
d64b8841 6916 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
6917 (i386_num_regs): Define.
6918 (i386_regmap): Renamed from regmap, made static.
6919 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6920 made static.
6921 (i386_cannot_store_register): Renamed from cannot_store_register,
6922 made static.
6923 (the_low_target): New.
d64b8841 6924 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
6925 (ia64_num_regs): Define.
6926 (ia64_regmap): Renamed from regmap, made static.
6927 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6928 made static.
6929 (ia64_cannot_store_register): Renamed from cannot_store_register,
6930 made static.
6931 (the_low_target): New.
d64b8841 6932 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
6933 (m68k_num_regs): Define.
6934 (m68k_regmap): Renamed from regmap, made static.
6935 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6936 made static.
6937 (m68k_cannot_store_register): Renamed from cannot_store_register,
6938 made static.
6939 (the_low_target): New.
d64b8841 6940 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
6941 (mips_num_regs): Define.
6942 (mips_regmap): Renamed from regmap, made static.
6943 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6944 made static.
6945 (mips_cannot_store_register): Renamed from cannot_store_register,
6946 made static.
6947 (the_low_target): New.
d64b8841 6948 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
6949 (ppc_num_regs): Define.
6950 (ppc_regmap): Renamed from regmap, made static.
6951 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6952 made static.
6953 (ppc_cannot_store_register): Renamed from cannot_store_register,
6954 made static.
6955 (the_low_target): New.
d64b8841 6956 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
6957 (s390_num_regs): Define.
6958 (s390_regmap): Renamed from regmap, made static.
6959 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6960 made static.
6961 (s390_cannot_store_register): Renamed from cannot_store_register,
6962 made static.
6963 (the_low_target): New.
d64b8841 6964 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
6965 (sh_num_regs): Define.
6966 (sh_regmap): Renamed from regmap, made static.
6967 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6968 made static.
6969 (sh_cannot_store_register): Renamed from cannot_store_register,
6970 made static.
6971 (the_low_target): New.
d64b8841 6972 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
6973 (the_low_target): New.
6974
96cb11df
AC
69752002-04-09 Andrew Cagney <ac131313@redhat.com>
6976
6977 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6978 override FP_REGNUM with frame->fp. Update copyright.
6979 * parse.c (num_std_regs, std_regs): Delete.
6980 (target_map_name_to_register): Do not search std_regs. Update
6981 function description.
6982 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6983 declarations. Update copyright.
6984 Fix PR gdb/251.
361d1df0 6985
c3a3ccc7
DJ
69862002-04-09 Daniel Jacobowitz <drow@mvista.com>
6987
6988 * gdbserver/Makefile.in: Add stamp-h target.
6989 * gdbserver/configure.in: Create stamp-h.
6990 * gdbserver/configure: Regenerated.
6991
ce3a066d
DJ
69922002-04-09 Daniel Jacobowitz <drow@mvista.com>
6993
6994 * gdbserver/inferiors.c: New file.
6995 * gdbserver/target.c: New file.
6996 * gdbserver/target.h: New file.
6997 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6998 dependencies.
6999 * gdbserver/linux-low.c (inferior_pid): New static variable,
7000 moved from server.c.
7001 (linux_create_inferior): Renamed from create_inferior.
7002 Call add_inferior. Return 0 on success instead of a PID.
7003 (linux_attach): Renamed from myattach.
7004 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
7005 (linux_thread_alive): Renamed from mythread_alive.
7006 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
7007 child dies.
7008 (linux_resume): Renamed from myresume. Add missing ``return 0''.
7009 (regsets_store_inferior_registers): Correct error message.
7010 Add missing ``return 0''.
7011 (linux_fetch_registers): Renamed from fetch_inferior_registers.
7012 (linux_store_registers): Renamed from store_inferior_registers.
7013 (linux_read_memory): Renamed from read_inferior_memory.
7014 (linux_write_memory): Renamed from write_inferior_memory.
7015 (linux_target_ops): New structure.
7016 (initialize_low): Call set_target_ops ().
7017 * gdbserver/remote-utils.c (unhexify): New function.
7018 (hexify): New function.
7019 (input_interrupt): Send signals to ``signal_pid''.
7020 * gdbserver/server.c (inferior_pid): Remove.
7021 (start_inferior): Update create_inferior call.
7022 (attach_inferior): Call add_inferior.
7023 (handle_query): New function.
7024 (main): Call handle_query for `q' packets.
7025 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
7026 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
7027
0729219d
DJ
70282002-04-09 Daniel Jacobowitz <drow@mvista.com>
7029
7030 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
7031 dependencies.
7032 * gdbserver/configure.in: Check for <string.h>
7033 * gdbserver/configure: Regenerate.
7034 * gdbserver/config.in: Regenerate.
7035 * gdbserver/gdbreplay.c: Include needed system headers.
7036 (remote_open): Remove strchr prototype.
7037 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
7038 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
7039 (supply_register_by_name): Likewise.
7040 (collect_register): Change buf argument to void *.
7041 (collect_register_by_name): Likewise.
7042 * gdbserver/regcache.h: Add missing prototypes.
7043 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
7044 * gdbserver/server.c (handle_query): New function.
7045 (attached): New static variable, moved out of main.
7046 (main): Quiet longjmp clobber warnings.
7047 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
7048 * gdbserver/utils.c (error): Remove NORETURN.
7049 (fatal): Likewise.
7050
97658e92
DJ
70512002-04-09 Daniel Jacobowitz <drow@mvista.com>
7052
7053 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7054 after the last symbol in a block.
7055
6044e3eb
PM
70562002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7057
7058 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7059 is non zero as a found symbol.
7060
0406ec40
AC
70612002-04-08 Andrew Cagney <ac131313@redhat.com>
7062
7063 * findvar.c: Include "builtin-regs.h".
7064 (value_of_register): Call value_of_builtin_reg when applicable.
7065 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7066 (target_map_name_to_register): Call
7067 builtin_reg_map_name_to_regnum.
7068 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7069 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7070 (builtin_regs_h): Define.
7071 (builtin-regs.o): New target.
7072 (findvar.o): Add $(builtin_regs_h).
7073 * builtin-regs.c, builtin-regs.h: New files.
7074 * std-regs.c: New file.
7075 Partial fix for PR gdb/251.
7076
56a6dfb9
KB
70772002-04-08 Kevin Buettner <kevinb@redhat.com>
7078
7079 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7080 it's no longer required.
7081
3a808432
AC
70822002-04-08 Andrew Cagney <ac131313@redhat.com>
7083
7084 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7085
7c40d541
KB
70862002-04-08 Kevin Buettner <kevinb@redhat.com>
7087
7088 From Jimi X <jimix@watson.ibm.com>:
7089 * rs6000-tdep.c (rs6000_software_single_step): Use
7090 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7091 and size. Use target_insert_breakpoint() and
7092 target_remove_breakpoint() to insert and remove breakpoints
7093 instead of explicit memory reads and writes.
7094
cc9836a8
KB
70952002-04-08 Kevin Buettner <kevinb@redhat.com>
7096
7097 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7098 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7099 ELF_OBJECT_FORMAT ifdef.
7100
7495d1dc
KB
71012002-04-08 Kevin Buettner <kevinb@redhat.com>
7102
7103 From Jimi X <jimix@watson.ibm.com>:
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7105
4288e836
KB
71062002-04-08 Kevin Buettner <kevinb@redhat.com>
7107
7108 From Jimi X <jimix@watson.ibm.com>:
7109 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7110 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7111
a4e4e501
MK
71122002-04-07 Mark Kettenis <kettenis@gnu.org>
7113
7114 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7115 s/asprintf/xasprintf/.
7116 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7117
006defba
AC
71182002-04-07 Andrew Cagney <ac131313@redhat.com>
7119
7120 I believe Jeff Law denies responsability for this one:
7121 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7122 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7123 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7124 Work-around for PR gdb/366.
7125
7aa83cac
EZ
71262002-04-07 Elena Zannoni <ezannoni@redhat.com>
7127
7128 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7129 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7130 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7131
cf1fcca1
EZ
71322002-04-07 Elena Zannoni <ezannoni@redhat.com>
7133
7134 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7135 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7136 information.
7137
3f289e6f
AC
71382002-04-07 Andrew Cagney <ac131313@redhat.com>
7139
7140 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7141 maintainer.
7142
129188f6
AC
71432002-04-07 Andrew Cagney <ac131313@redhat.com>
7144
7145 * README (Reporting Bugs in GDB): Document the bug web page as the
7146 prefered way of submitting bugs.
7147 Fix PR gdb/402.
7148
1200cd6e
AC
71492002-04-06 Andrew Cagney <ac131313@redhat.com>
7150
7151 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7152 -1. Update comment.
7153 * gdbarch.h, gdbarch.c: Re-generate.
7154
2853c33c
AS
71552002-04-07 Andreas Schwab <schwab@suse.de>
7156
7157 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7158 buffer to regcache_collect.
7159
c2169756
AC
71602002-04-06 Andrew Cagney <ac131313@redhat.com>
7161
7162 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7163 * gdbarch.c, gdbarch.h: Re-generate.
7164
25f1b008
AC
71652002-04-06 Andrew Cagney <ac131313@redhat.com>
7166
7167 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7168 declaration. Fix -Werror.
7169
59263426
DJ
71702002-04-05 Daniel Jacobowitz <drow@mvista.com>
7171
7172 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7173 * gdbarch.c: Regenerate.
7174
f5db4da3
MS
71752002-04-05 Michael Snyder <msnyder@redhat.com>
7176
80f8a6eb
MS
7177 * breakpoint.c (clear_command): Rewrite middle section to
7178 combine two loops with identical control conditions.
7179 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7180 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7181
ad3dcc5c
L
71822002-04-05 H.J. Lu (hjl@gnu.org)
7183
7184 * solib-svr4.c (bkpt_names): Add "__start".
7185
f32e7a74
AC
71862002-04-04 Andrew Cagney <ac131313@redhat.com>
7187
7188 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7189 as test for 64 bit target.
7190
8227c0ff
AC
71912002-04-05 Andrew Cagney <ac131313@redhat.com>
7192
7193 * h8500-tdep.c (h8500_write_fp): Delete function.
7194 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7195 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7196 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7198 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7199 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7200 (s390_write_fp):
7201 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7202 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7203 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7204 (d10v_write_fp): Delete function.
7205 * inferior.h (write_fp, generic_target_write_fp): Delete
7206 declarations.
7207 * regcache.c (generic_target_write_fp): Delete function.
7208 (write_fp): Delete function.
7209 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7210 * gdbarch.h, gdbarch.c: Regenerate.
7211 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7212 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7213 (sparc64_write_fp): Delete declaration.
7214 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7215 (h8500_write_fp): Delete declaration.
7216
2757dd86
AC
72172002-04-04 Andrew Cagney <ac131313@redhat.com>
7218
7219 * sparc-tdep.c (sparc64_write_fp): Delete.
7220 (sparc_push_dummy_frame): Replace write_fp call with code to store
7221 the FP directly.
7222 (sparc_gdbarch_init): Do not initialize write_fp.
7223
c69255e1
KB
72242002-04-05 Kevin Buettner <kevinb@redhat.com>
7225
7226 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7227 clause.
7228
ae767bfb
JB
72292002-03-29 Jim Blandy <jimb@redhat.com>
7230
7231 * stack.c (get_selected_block): Add new argument `addr_in_block',
7232 used to return the exact code address we used to select the block,
7233 not just the block.
7234 * blockframe.c (get_frame_block, get_current_block): Same.
7235 * frame.h (get_frame_block, get_current_block,
7236 get_selected_block): Update declarations.
7237 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7238 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7239
84d2ac95
MS
72402002-04-05 Michael Snyder <msnyder@redhat.com>
7241
7242 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7243 warning message.
7244
596aa3bf
JB
72452002-04-05 J. Brobecker <brobecker@gnat.com>
7246
7247 * utils.c (xfullpath): New function.
7248 * defs.h (xfullpath): Add declaration.
7249 * source.c (openp): Use xfullpath in place of gdb_realpath to
7250 avoid resolving the basename part of filenames when the
7251 associated file is a symbolic link. This fixes a potential
7252 inconsistency between the filenames known to GDB and the
7253 filenames it prints in the annotations.
7254 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7255 to be able to match a filename with either the real filename, or
7256 the name of any symbolic link to this file.
7257 (lookup_partial_symtab): Ditto.
7258
c02f5703
MS
72592002-04-04 Michael Snyder <msnyder@redhat.com>
7260
7261 * breakpoint.c: Add support for hardware breakpoints in overlays.
7262 (overlay_events_enabled): New state variable.
7263 (insert_breakpoints): Use overlay_events_enabled to decide
7264 whether to attempt to set a breakpoint at the overlay load addr.
7265 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7266 (remove_breakpoint): Use overlay_events_enabled to decide
7267 whether breakpoints need to be removed from overlay load addr.
7268 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7269 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7270 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7271 disable_overlay_breakpoints): Update overlay_events_enabled.
7272
5fb290d7
DJ
72732002-04-04 Daniel Jacobowitz <drow@mvista.com>
7274
7275 * dwarf2read.c (struct function_range): New.
7276 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7277 (check_cu_functions): New.
7278 (read_file_scope): Initialize global function lists.
7279 Call dwarf_decode_line after processing children.
7280 (read_func_scope): Add to global function list.
7281 (dwarf_decode_lines): Call check_cu_functions everywhere
7282 record_line is called. Call record_line with a linenumber
7283 of 0 to mark sequence ends.
7284
7b3fabf0
ML
72852002-04-04 Michal Ludvig <mludvig@suse.cz>
7286
361d1df0 7287 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7288 change sync with glibc.
7289
bce58c09
JB
72902002-04-03 Jim Blandy <jimb@redhat.com>
7291
7292 * configure.in: Call AC_C_INLINE.
7293 * configure: Regenerated.
361d1df0 7294
2fccf04a
DJ
72952002-04-01 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7298 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7299
2d1bfe2e
MK
73002002-03-31 Mark Kettenis <kettenis@gnu.org>
7301
a5941fbf
MK
7302 * NEWS: Mention gcore support on FreeBSD/i386.
7303
a90cd31d
MK
7304 * fbsd-proc.c: New file.
7305 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7306 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7307
2d1bfe2e
MK
7308 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7309 while statement.
7310
9eb6e5a1
JB
73112002-03-29 Jim Blandy <jimb@redhat.com>
7312
7313 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7314 unescaped newlines in string literals, but newer ones don't. So
7315 escape them.
7316
f02df580
MS
73172002-03-26 Michael Snyder <msnyder@redhat.com>
7318 Andrew Cagney <cagney@redhat.com>
7319
361d1df0 7320 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7321 restore file to memory.
7322 * cli/cli-dump.h: New file.
7323 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7324 * NEWS: Mention new commands.
f02df580 7325
109f874e
MS
73262002-03-28 Michael Snyder <msnyder@redhat.com>
7327
7328 * symfile.c (symbol_file_add): Move test for null symbols to later.
7329
520f6ade
AC
73302002-03-27 Andrew Cagney <ac131313@redhat.com>
7331
7332 From veksler at il.ibm.com:
7333 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7334 the xstrduped original path.
7335 Fix PR gdb/417.
7336
d4654627
MS
73372002-03-27 Michael Snyder <msnyder@redhat.com>
7338
7339 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7340 * infcmd.c (_initialize_infcmd): Ditto.
7341 * language.c (_initialize_language): Ditto.
7342 * symfile.c (_initialize_symfile): Ditto.
7343 * top.c (_init_main): Ditto.
7344 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7345
6be8bc0c
EZ
73462002-03-27 Elena Zannoni <ezannoni@redhat.com>
7347
7348 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7349 vector registers handling.
7350 (skip_prologue): Handle new AltiVec instructions. Fill in new
7351 fields of frame data.
7352 (frame_get_saved_regs): Fill in information for AltiVec registers.
7353
12af6855
JB
73542002-03-27 Jim Blandy <jimb@redhat.com>
7355
7356 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7357 a function; leave this macro here to invoke that function.
7358 (symbol_init_mangled_name): Declaration for that function.
7359 * symtab.c (symbol_init_mangled_name): New function.
7360
dc672865
AC
73612002-03-27 Andrew Cagney <ac131313@redhat.com>
7362
7363 * valarith.c: Replace strerror with safe_strerror.
7364 * tracepoint.c: Ditto.
7365 * lin-lwp.c: Ditto.
7366 * go32-nat.c: Ditto.
7367 * inflow.c: Ditto.
7368 * gnu-nat.c: Ditto.
7369
d96429cd
AS
73702002-03-27 Andreas Schwab <schwab@suse.de>
7371
7372 * event-top.c (command_line_handler): Remove useless if.
7373
7e336ba1
AJ
73742002-03-27 Andreas Jaeger <aj@suse.de>
7375
7376 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7377 comment.
7378
de220d0f
ML
73792002-03-27 Michal Ludvig <mludvig@suse.cz>
7380
7381 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7382 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7383 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7384 (x86_64_linux_dr_get_status, supply_gregset),
7385 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7386 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7387 (x86_64_register_info_table): Add.
7388 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7389 (x86_64_register_raw_size, x86_64_register_virtual_type),
7390 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7391 general x86_64_register_info_table.
7392 (i386_gdbarch_init): gdbarch_register_bytes is now set
7393 dynamicaly during initialization.
7394 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7395 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7396
0e98d0a7
DJ
73972002-03-27 Daniel Jacobowitz <drow@mvista.com>
7398
7399 * gdbserver/server.c (main): Call target_signal_to_host_p
7400 and target_signal_to_host on signals received from the remote.
7401 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7402 target_signal_from_host on signals sent to the remote.
7403 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7404 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7405
3130066b
DJ
74062002-03-27 Daniel Jacobowitz <drow@mvista.com>
7407
7408 * signals/signals.c: Include "server.h" in gdbserver build.
7409 (target_signal_from_name): Don't use STREQ.
7410 (_initialize_signals): Likewise. Don't include function in
7411 gdbserver build.
7412
9aedf4f4
DJ
74132002-03-27 Daniel Jacobowitz <drow@mvista.com>
7414
7415 * signals.c: Moved to...
7416 * signals/signals.c: Here.
7e336ba1 7417 * Makefile (signals.o): Update.
9aedf4f4 7418
3fa41cdb
JL
74192002-03-26 Jeff Law (law@redhat.com)
7420
7421 * somread.c (som_symtab_read): Remove some commented out code and
7422 updated related comments. Do not set the minimal symbol table to
7423 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7424 in a dynamic executable.
7425 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7426 where we are unable to find the minimal symbol for the given
7427 PC value.
7428
ee677e8d
MS
74292002-03-25 Jeff Law (law@redhat.com)
7430
7431 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7432
e76e1718
ML
74332002-03-25 Michal Ludvig <mludvig@suse.cz>
7434
7435 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7436
18a642a1
AC
74372002-03-23 Andrew Cagney <ac131313@redhat.com>
7438
7439 * command.h: Update copyright.
7440 (struct cmd_list_element): Replace definition with opaque
7441 declaration.
7442 (enum cmd_types): Document that it will eventually be moved to
7443 cli/cli-decode.h
7444 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7445 (MALLOCED_REPLACEMENT): Delete macro.
7446 * Makefile.in (cli_decode_h): Add $(command_h).
7447 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7448 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7449 * completer.c: Include "cli/cli-decode.h".
7450 * maint.c: Include "cli/cli-decode.h".
7451 * cli/cli-decode.h: Include "command.h".
7452 (enum command_class): Delete.
7453 (enum cmd_types): Comment out.
7454 (enum cmd_auto_boolean): Delete.
7455 (enum var_types): Delete.
7456
b2875cc0
AC
74572002-03-23 Andrew Cagney <ac131313@redhat.com>
7458
7459 * cli/cli-decode.c: Include "gdb_assert.h".
7460 (add_set_or_show_cmd): New static function.
7461 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7462 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7463 all fields, such as func, from the set command.
7464
3b45974e
AC
74652002-03-23 Andrew Cagney <ac131313@redhat.com>
7466
7467 * MAINTAINERS (sh-elf): Change warning flag to -w.
7468
823ca731
AC
74692002-03-23 Andrew Cagney <cagney@redhat.com>
7470
7471 * defs.h (error): Add printf format attribute.
7472 * thread-db.c (thread_from_lwp): Fix error format string.
7473 * stack.c (parse_frame_specification): Ditto.
7474 * cli/cli-decode.c (undef_cmd_error): Ditto.
7475 * scm-lang.c (scm_lookup_name): Ditto.
7476 * tracepoint.c (trace_error): Ditto.
7477 * remote-utils.c (usage): Ditto.
7478 * remote.c (compare_sections_command): Ditto.
7479 Fix PR gdb/328.
7480
0e101458
AC
74812002-03-22 Andrew Cagney <ac131313@redhat.com>
7482
7483 * gdbtypes.c (append_composite_type_field): New function.
7484 (init_composite_type): New function.
7485 * gdbtypes.h (append_composite_type_field): Declare.
7486 (init_composite_type): Ditto.
7487
8e0662df
EZ
74882002-03-22 Elena Zannoni <ezannoni@redhat.com>
7489
7490 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7491 function.
8e0662df
EZ
7492 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7493 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7494 structure returning convention for SYSV ABI case, but not
7495 for GNU/Linux, FreeBSD, or NetBSD.
7496
3121eff0
DJ
74972002-03-22 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * symtab.h (lookup_block_symbol): Add mangled_name argument
7500 to prototype.
7501
7502 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7503 with new mangled_name argument.
7504 * linespec.c (decode_line_1): Likewise.
7505 * valops (value_of_this): Likewise.
7506 * symtab.c (lookup_transparent_type): Likewise.
7507 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7508 (lookup_symbol): If we are given a mangled name, pass it down
7509 to lookup_symbol_aux.
7510 (lookup_block_symbol): If we are given a mangled name to check
7511 against, only return symbols which match it.
7512
349b409f
CF
75132002-03-22 Christopher Faylor <cgf@redhat.com>
7514
7515 * win32-nat.c (child_create_inferior): Check for proper shell to use
7516 here, in case the user changes it on the fly.
7517 (_initialize_inftarg): Remove shell path considerations.
7518
2a873819
EZ
75192002-03-21 Elena Zannoni <ezannoni@redhat.com>
7520
7521 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7522 for gdbarch_max_register_raw_size and max_register_virtual_size.
7523 Adjust copyright year.
7524
a1b9830c
DJ
75252002-03-21 Daniel Jacobowitz <drow@mvista.com>
7526
7527 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7528 in a function to cover the entire beginning of the function
7529 as well if it does not already.
7530
8b5790f2
TR
75312002-03-21 Tom Rix <trix@redhat.com>
7532
7533 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7534 (rs6000_ptrace64): Renamed from ptrace64.
7535
bdbe5747
MH
75362002-03-20 Martin M. Hunt <hunt@redhat.com>
7537
7538 * gdbserver/remote-utils.c (remote_open): Don't call
7539 getprotobyname, we're all using TCP here so just use
7540 IPPROTO_TCP.
7e336ba1 7541 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7542
75432002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7544
bdbe5747
MH
7545 * regcache.c (_initialize_regcache): No need to call
7546 build_regcache() at this time; it gets called whenever
7547 the gdbarch changes.
7548
7781cd62
DB
75492002-03-20 David O'Brien <obrien@FreeBSD.org>
7550
7551 * sparc-nat.c: Include sys/param.h where possible.
7552
f65ca430
DJ
75532002-03-20 Daniel Jacobowitz <drow@mvista.com>
7554
7555 Fix PR gdb/422.
7556 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7557 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7558 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7559 complex types.
7560 * stabsread.c (rs6000_builtin_type): Likewise.
7561 (read_sun_floating_type): Likewise.
7562
0c867556
PS
75632002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7564
7565 * stabsread.c (read_member_functions): Remove skip code for duplicate
7566 constructor/destructor methods. Use standard parsing for these
7567 methods and just do not chain them to the list of methods after
7568 parsing.
7569
12b9c64f
AO
75702002-03-19 Alexandre Oliva <aoliva@redhat.com>
7571
7572 * coffread.c: Remove redundant static declarations. Replace
7573 occurrences of `PTR' with `void *'.
7574 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7575 * top.h (quit_cover): Likewise.
7576 * defs.h (catch_errors): Likewise.
7577
349c5d5f
AC
75782002-03-18 Andrew Cagney <ac131313@redhat.com>
7579
7580 * defs.h (XMALLOC): Define.
7581 * gdb-events.sh (XMALLOC): Delete macro.
7582 * gdb-events.c, gdb-events.h: Regenerate.
7583 * gdbarch.sh (XMALLOC): Delete macro.
7584 * gdbarch.c: Regenerate.
7585 * serial.c (XMALLOC): Delete macro.
7586 * ui-file.c (XMALLOC): Ditto.
7587 * ser-unix.h (XMALLOC): Ditto.
7588 * sh-tdep.c (XMALLOC): Ditto.
7589 * ui-out.c (XMALLOC): Ditto.
7590 * utils.c (XMALLOC): Ditto.
7591 * i386-tdep.c (XMALLOC): Ditto.
7592 * gdb-events.c (XMALLOC): Ditto.
7593 * d10v-tdep.c (XMALLOC): Ditto.
7594 * cli-out.c (XMALLOC): Ditto.
7595
7596 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7597 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7598 * ui-file.c, ui-out.c: Ditto.
7599
7d0766f3
AC
76002002-03-18 Andrew Cagney <ac131313@redhat.com>
7601
7602 * command.h (struct cmd_list_element): Add field context.
7603 (set_cmd_context, get_cmd_context): Declare.
7604 * cli/cli-decode.h: Ditto.
7605 * cli/cli-decode.c (get_cmd_context): New function.
7606 (set_cmd_context): New function.
7607 (add_cmd): Initialize context.
7608 Part of fixing PR gdb/145 and PR gdb/146.
7609
5913bcb0
AC
76102002-03-17 Andrew Cagney <ac131313@redhat.com>
7611
1868c04e
AC
7612 * cli/cli-decode.c (cmd_type): New function.
7613 * command.h (cmd_type): Declare.
7614 * infrun.c (set_schedlock_func): Call function cmd_type.
7615 * kod.c (kod_set_os): Call cmd_type.
7616 * cris-tdep.c (cris_version_update): Use function cmd_type.
7617 (cris_mode_update, cris_abi_update): Ditto.
7618
5913bcb0
AC
7619 * command.h: (execute_cmd_post_hook): Declare.
7620 (execute_cmd_pre_hook): Declare.
7621 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7622 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7623 functions. Execute pre/post hook while ensuring that afterwords
7624 hook_in is cleared.
7625 * top.c (execute_command): Use execute_cmd_post_hook, and
7626 execute_cmd_pre_hook to execute pre/post commands.
7627 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7628 hook_stop_stub.
7629 (hook_stop_stub): Call execute_cmd_pre_hook.
7630
b51450c9
AC
76312002-03-17 Andrew Cagney <ac131313@redhat.com>
7632
7633 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7634 set'' and this leads to a core dump. Move xstrdup of
7635 operating_system to after check that it is not NULL.
7636
f66c9f11
AC
76372002-03-17 Andrew Cagney <ac131313@redhat.com>
7638
8e694ecf
AC
7639 * kod.c (kod_set_os): Remove unnecessary check that
7640 ``command->type'' is set_cmd.
7641
f66c9f11
AC
7642 * valprint.c (set_input_radix): Use input_radix.
7643 (set_output_radix): Use output_radix.
7644 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7645 isn't reverted.
7646
9d01611c
AC
76472002-03-16 Andrew Cagney <ac131313@redhat.com>
7648
7649 * value.h (struct value): Delete field ``substring_addr''. Change
7650 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7651 force_core_addr_align and force_pointer_aligh.
7652
7653 * value.h (struct value): Fix typo in above change.
9d01611c 7654
4156bb53
PS
76552002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7656
7657 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7658 to fix internal_error from ``maintenance print architecture''.
7659
0e5e3ea6
PS
76602002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7661
7662 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7663 for gcc versions after gcc-2.8.1.
7664
9b013045
PS
76652002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7666
7667 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7668 for method resolution. Restore adjustment of ``this'' pointer after
7669 calling value_struct_elt, which was accidentally removed during the
7670 HP merge.
7671
376c9600
AC
76722002-03-15 Andrew Cagney <ac131313@redhat.com>
7673
7674 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7675 value_of_register.
7676 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7677 get_saved_register.
7678 * value.h (value_of_register): Update.
7679
a4db0f07
RH
76802002-03-14 Richard Henderson <rth@redhat.com>
7681
7682 * configure.in: Detect declaration for canonicalize_file_name.
7683 * utils.c (canonicalize_file_name): Declare, if needed.
7684 (gdb_realpath): Prefer realpath if available and usable.
7685 * config.in, configure: Rebuild.
7686
96383835
RH
76872002-03-14 Richard Henderson <rth@redhat.com>
7688
7689 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7690 a constant array bound.
7691
7692 * MAINTAINERS: Add myself to write-after-approval.
7693
75245b24
MS
76942002-03-14 Michael Snyder <msnyder@redhat.com>
7695
7696 * symfile.c (syms_from_objfile): Return immediately if no syms.
7697 (symbol_file_add): Return immediately if no syms.
7698 (find_sym_fns): Return immediately if no syms.
7699
e641a1ca
ML
77002002-03-13 Michal Ludvig <mludvig@suse.cz>
7701
7702 * gdbserver/remote-util.c (remote_open): Print remote-side's
7703 IP address when remote debugging over the network.
7e336ba1 7704
df08bfec
DB
77052002-03-12 David O'Brien <obrien@FreeBSD.org>
7706
7707 * config/sparc/fbsd.mh: Fix copyright.
7708 * config/sparc/fbsd.mt: Likewise.
7709
9a57864f
RE
77102002-03-11 Richard Earnshaw <rearnsha@arm.com>
7711
7712 * MAINTAINERS: Fix typo in name of gdb warnings option.
7713 (x86-64): Fix formating so that this can be parsed by awk.
7714
dd7bf85e
DJ
77152002-03-10 Daniel Jacobowitz <drow@mvista.com>
7716
7717 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7718 * defs.h: Include "gdb/signals.h".
7719 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7720
33a0a2ac
ML
77212002-03-10 Michal Ludvig <mludvig@suse.cz>
7722
7723 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7724 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7725 from x86-64-tdep.h
7726
dd824b04
DJ
77272002-03-10 Daniel Jacobowitz <drow@mvista.com>
7728 Don Howard <dhoward@redhat.com>
7729
7730 * mips-tdep.c (ST0_FR): Define.
7731 (mips2_fp_compat): New function, temporarily disabled.
7732 (mips_read_fp_register_single): New function.
7733 (mips_read_fp_register_double): New function.
7734 (mips_print_register): Use them.
7735 (do_fp_register_row): Likewise.
7736
6a41ff59
AC
77372002-03-09 Andrew Cagney <ac131313@redhat.com>
7738
7739 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7740 approval''.
7741
4ea09c10
PS
77422002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7743
7744 * stabsread.c (read_member_functions): Fix is_stub test for
7745 static member functions, improve comment.
7746
6ccc741d
RE
77472002-03-07 Richard Earnshaw <rearnsha@arm.com>
7748
7749 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7750 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7751 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7752 commands that set boolean values.
7753 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7754 (arm_rdi_resume): Always initialize PC.
7755 (arm_rdi_open): Don't use rslt as a boolean.
7756 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7757 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7758 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7759 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7760
438013df
AO
77612002-03-06 Alexandre Oliva <aoliva@redhat.com>
7762
7763 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7764 * configure: Rebuilt.
7765
70ed8774
SC
77662002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7767
7768 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7769 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7770
5ba2abeb
AC
77712002-03-06 Andrew Cagney <ac131313@redhat.com>
7772
7773 * cli/cli-decode.c (set_cmd_completer): New function.
7774 * command.h (set_cmd_completer): Declare.
7775 * cli/cli-decode.h (set_cmd_completer): Ditto.
7776
7777 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7778 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7779 * win32-nat.c (_initialize_inftarg): Ditto.
7780 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7781 * proc-api.c (_initialize_proc_api): Ditto.
7782 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7783 * source.c (_initialize_source): Ditto.
7784 * exec.c (_initialize_exec): Ditto.
7785 * solib.c (_initialize_solib): Ditto.
7786 * top.c (init_main): Ditto.
7787 * tracepoint.c (_initialize_tracepoint): Ditto.
7788 * symfile.c (_initialize_symfile): Ditto.
7789 * printcmd.c (_initialize_printcmd): Ditto.
7790 * infcmd.c (_initialize_infcmd): Ditto.
7791 * corefile.c (_initialize_core): Ditto.
7792
f779ca99
AC
77932002-03-05 Andrew Cagney <ac131313@redhat.com>
7794
7795 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7796
01a3934b
AC
77972002-03-05 Andrew Cagney <ac131313@redhat.com>
7798
7799 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7800
37057839
AC
78012002-03-05 Andrew Cagney <ac131313@redhat.com>
7802
7803 * NEWS: Update headings, 5.2 has branched.
7804
c6ecbae5
DJ
78052002-03-04 Daniel Jacobowitz <drow@mvista.com>
7806
7807 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7808 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7809 (register_addr, REGISTER_RAW_SIZE): Likewise.
7810 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7811 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7812
e9f30c21
ML
78132002-03-03 Michal Ludvig <mludvig@suse.cz>
7814
7815 * MAINTAINERS (x86-64): Add myself.
7816 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7817 changed value_ptr -> struct value *
7818
54394ac3
DB
78192002-03-01 David O'Brien <obrien@FreeBSD.org>
7820
7821 * configure.host (sparc64-*-freebsd): Add.
7822 * configure.tgt: Likewise.
7823 * config/sparc/fbsd.mh: New file.
7824 * config/sparc/fbsd.mt: Likewise.
7825 * config/sparc/nm-fbsd.h: Likewise.
7826 * config/sparc/tm-fbsd.h: Likewise.
7827
bfe95955
DJ
78282002-03-01 Daniel Jacobowitz <drow@mvista.com>
7829
7830 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7831 regformats/reg-s390x.dat.
7832
f33c6cbf
AC
78332002-03-01 Andrew Cagney <ac131313@redhat.com>
7834
7835 * utils.c: Add FIXME explaining true/false problem.
7836
5ecaa7dd
AC
78372002-02-28 Andrew Cagney <ac131313@redhat.com>
7838
7839 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7840
2a251cc2
MC
78412002-02-28 Michael Chastain <mec@shout.net>
7842
7843 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7844
6a8031a3 78452002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7846
7847 * gdbserver/linux-s390-low.c: New file.
7848 * regformats/reg-s390.dat: New file.
7849 * regformats/reg-s390x.dat: New file.
7850 * gdbserver/configure.srv: Add S/390.
7851 * gdbserver/Makefile.in: Add S/390.
7852 * configure.tgt: Enable gdbserver for S/390.
7853
ac469903
EZ
78542002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7855
7856 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7857 first line of the doc string for "info dos", except at the end of
7858 the sentence, since the short help stops at the first period.
7859
985cb1a3
JM
78602002-02-28 Jason Merrill <jason@redhat.com>
7861
7862 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7863
c570663e
FF
78642002-02-27 Fred Fish <fnf@redhat.com>
7865
7866 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7867 comment (dumy -> dummy).
7868
43630227
PS
78692002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7870
7871 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7872
b84911e8
RB
78732002-02-27 Rodney Brown <rbrown64@csc.com.au>
7874
7875 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7876
58caa3dc
DJ
78772002-02-27 Daniel Jacobowitz <drow@mvista.com>
7878
7879 * gdbserver/acconfig.h: New file.
7880 * gdbserver/i387-fp.c: New file.
7881 * gdbserver/i387-fp.h: New file.
7882 * gdbserver/linux-x86-64.c: New file.
7883 * regformats/reg-x86-64.dat: New file.
7884 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7885 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7886 * gdbserver/configure.in: Add support for regsets.
7887 * gdbserver/config.in: Regenerate.
7888 * gdbserver/configure: Regenerate.
7889 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7890 * gdbserver/linux-low.h: New file.
7891 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7892 for regsets.
7893 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7894 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7895 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7896 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7897 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7898 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7899 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7900 "i387-fp.h". Add PTRACE_GETREGS and friends.
7901 * gdbserver/regcache.c (supply_register): New function.
7902 (supply_register_by_name): New function.
7903 (collect_register): New function.
7904 (collect_register_by_name): New function.
7905
93652174
DJ
79062002-02-27 Daniel Jacobowitz <drow@mvista.com>
7907
7908 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7909 (config.status): Add configure.srv dependency.
7910 (server_h): Add config.h dependency.
7911
a02e4a61
DJ
79122002-02-27 Daniel Jacobowitz <drow@mvista.com>
7913
7914 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7915 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7916 * gdbserver/configure.srv: Change i386-*-linux* to use
7917 reg-i386-linux.o.
7918
ce0eebec
AC
79192002-02-26 Andrew Cagney <ac131313@redhat.com>
7920
7921 * x86-64-tdep.c: Re-indent. Update copyright date.
7922
82dbc5f7
AC
79232002-02-26 Andrew Cagney <ac131313@redhat.com>
7924
7925 From Michal Ludvig <mludvig@suse.cz>:
7926 * x86-64-tdep.c (value.h): Delete.
7927 (gdb_assert.h): Include.
7928 (x86_64_register_convert_to_virtual,
7929 x86_64_register_convert_to_raw ): Add check which lets only
7930 floating-point values to be converted.
7931 (value_push): Delete.
7932 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7933 (i386_gdbarch_init): Number of register_bytes fixed.
7934
e4621584
AC
79352002-02-26 Andrew Cagney <ac131313@redhat.com>
7936
7937 * MAINTAINERS: Add x86-64 target.
7938
81a9a963
AC
79392002-02-26 Andrew Cagney <ac131313@redhat.com>
7940
7941 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7942 * osfsolib.c (solib_map_sections): Ditto.
7943 * irix5-nat.c (solib_map_sections): Ditto.
7944 * corelow.c (gdb_check_format): Ditto.
7945 * symfile.c (symfile_bfd_open): Ditto.
7946 * solib.c (solib_map_sections): Ditto.
7947 Fix PR gdb/354.
7e336ba1 7948
0f017ab9
AC
79492002-02-26 Andrew Cagney <ac131313@redhat.com>
7950
7951 * remote.c (_initialize_remote): By default, disable ``e'' and
7952 ``E'' step out-of-range packets.
7953
75738c29
AS
79542002-02-26 Andreas Schwab <schwab@suse.de>
7955
7956 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7957 m68k_linux_frame_saved_pc.
7958 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7959 in_sigtramp.
7960 (SIGCONTEXT_PC_OFFSET): Remove.
7961 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7962 m68k_linux_sigtramp_saved_pc): New functions.
7963 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7964 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7965 (UCONTEXT_PC_OFFSET): Define.
7966 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7967 non-RT and RT signal trampolines.
7968
7e8ed687
RE
79692002-02-26 Richard Earnshaw <rearnsha@arm.com>
7970
7971 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7972 (TARGET_NBPG, STACK_END_ADDR): Delete
7973 (VARIABLES_INSIDE_BLOCK): Delete.
7974
6972bc8b
AC
79752002-02-25 Andrew Cagney <ac131313@redhat.com>
7976
7977 * utils.c (perror_with_name): Make string parameter constant.
7978 (print_sys_errmsg): Ditto.
7979 (query): Ditto.
7980 * defs.h (perror_with_name): Update.
7981 (print_sys_errmsg): Update.
7982 (query): Update.
7983
aa32f823
DJ
79842002-02-25 Daniel Jacobowitz <drow@mvista.com>
7985
7986 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7987 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7988
19caaa45
PS
79892002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7990
7991 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7992 if it already matches the current architecture from the exec file.
7993 Include arch-utils.h for gdbarch_info_init prototype.
7994 * Makefile.in (rs6000-nat.o): Update dependencies.
7995
d951901f
EZ
79962002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7997
7998 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7999 list of exported variables.
8000
7ea81414
DJ
80012002-02-24 Daniel Jacobowitz <drow@mvista.com>
8002
8003 * gdbserver/configure.srv: New file.
8004 * gdbserver/configure.in: Use configure.srv instead
8005 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8006 from it.
8007 * gdbserver/configure: Regenerated.
8008 * gdbserver/terminal.h: New file.
8009 * gdbserver/Makefile.in: Update for configure changes. Remove
8010 more unneeded include paths.
8011
080fe24b
AC
80122002-02-24 Andrew Cagney <ac131313@redhat.com>
8013
8014 From wiz at danbala:
8015 * config/sparc/tm-sp64.h: Fix grammar and typos.
8016 Fix PR gdb/287.
8017
8605d56e
AC
80182002-02-24 Andrew Cagney <ac131313@redhat.com>
8019
8020 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8021 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8022 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8023 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8024 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8025 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8026 * s390-tdep.c: Ditto.
92362027
AC
8027 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8028 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8029 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8030 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8031 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8032 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8033 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8034 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8035 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8036 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8037 Fix PR gdb/378.
7e336ba1 8038
8ed32cc0
AC
80392002-02-23 Andrew Cagney <ac131313@redhat.com>
8040
a3007b6f
AC
8041 * lin-thread.c: Delete file.
8042 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8043 to gdb_proc_service.h.
8044 * configure: Re-generate.
8045
50a9e2f1
AC
8046 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8047 * serial.c (serial_open): Delete check for "ocd".
8048 Fix PR gdb/349.
8049
8b6e7932
AC
8050 * Makefile.in (linux-thread.o): Delete target.
8051 * linux-thread.c: Delete file.
8052
d155c46b
AC
8053 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8054 renamed SH files to be consistent.
8055
8ed32cc0
AC
8056 * symtab.c (sort_search_symbols): Use xfree.
8057
0e18d038
RE
80582002-02-23 Richard Earnshaw <rearnsha@arm.com>
8059
8060 * arm-linux-tdep.c (arm_linux_init_abi): Register
8061 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8062 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8063 definition with undef, since we don't want the sysvr4 definition.
8064 (SKIP_TRAMPOLINE_CODE): Likewise.
8065
27aac7ff
AC
80662002-02-23 Andrew Cagney <ac131313@redhat.com>
8067
8068 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8069
8070 * configure.in: (AC_CHECK_FUNCS) Added test for
8071 canonicalize_file_name Regenerated.
8072 * config.in, configure: Regenerated.
8073 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8074 defined use canonicalize_file_name.
7e336ba1 8075
65a6e0ee
MC
80762002-02-23 Michael Chastain <mec@shout.net>
8077
8078 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8079
47b95330
AC
80802002-02-23 Andrew Cagney <ac131313@redhat.com>
8081
8082 * README: Remove references to cygnus.com.
8083 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8084 dot com'' form. Remove references to cygnus.com and sourceware.
8085
696f451b
AC
80862002-02-23 Andrew Cagney <ac131313@redhat.com>
8087
8088 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8089 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8090 1003.1-2001 no longer allows "head -1".
8091 * gdb/Makefile.in (version.c): Likewise.
8092 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8093 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8094 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8095
bbaca940
AC
80962002-02-23 Andrew Cagney <ac131313@redhat.com>
8097
8098 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8099 * command.h (cmd_cfunc_eq): Declare.
8100 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8101
8102 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8103 ``struct cmd_list_element *''.
8104 * cli/cli-cmds.c (is_complete_command): Update. Use
8105 cmd_cfunc_eq.
8106 * top.c (execute_command): Pass the command to
8107 is_complete_command.
8108 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8109
b8b8b047
AC
81102002-02-23 Andrew Cagney <ac131313@redhat.com>
8111
8112 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8113 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8114 architecture defines.
8115 * s390-tdep.c (s390_gdbarch_init): Likewise.
8116
19d3fc80
RE
81172002-02-23 Richard Earnshaw <rearnsha@arm.com>
8118
8119 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8120 (arm_linux_push_arguments): Likewise.
8121 (arm_linux_init_abi): Register them. Also register linux-specific
8122 call_dummy_words.
8123 (find_minsym_and_objfile): Use strcmp, not STREQ.
8124 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8125 (arm_linux_call_dummy_words): Delete declaration.
8126 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8127 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8128 declarations.
8129 (LOWEST_PC): Delete.
8130
3ab13650
PS
81312002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8132
8133 * maint.c (print_section_info): Do not prepend `0x' to filepos
8134 output, it will be handled by local_hex_string_custom.
8135
19d3fc80 81362002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8137
8138 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8139 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8140 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8141
d85a5daf
JB
81422002-02-22 Jim Blandy <jimb@redhat.com>
8143
8144 Indicate that the bcache functions don't change the strings
8145 they're passed.
8146 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8147 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8148
eeb25b8a
PM
81492002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8150
8151 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8152
6badb179
CF
81532002-02-21 Christopher Faylor <cgf@redhat.com>
8154
8155 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8156 find the complete path to a loaded DLL.
8157
e8717518
FF
81582002-02-21 Fred Fish <fnf@redhat.com>
8159
8160 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8161 that marks the end of the range of a function, enter a line number
8162 entry that has a line number of zero and a PC offset that matches
8163 the end of the function. This starts a range of PC's for which no
8164 line number information is known.
8165 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8166 PC's for which no line number info is found (line number is zero)
8167 then we didn't find any valid line information.
8168 * symtab.h: Document use of zero line number entry.
8169
9abe5450
EZ
81702002-02-21 Elena Zannoni <ezannoni@redhat.com>
8171
8172 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8173 (have_ptrace_getvrregs): Define for run time checks.
8174 (gdb_vrregset_t): New type for Altivec register handling.
8175 (fetch_register, store_register): Fetch/store altivec register
8176 when needed.
8177 (fetch_altivec_register, store_altivec_register): New functions.
8178 (supply_vrregset, fill_vrregset): New functions.
8179 (fetch_altivec_registers, store_altivec_registers): New functions.
8180 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8181 registers as well.
8182
aaa38bb5
AJ
81832002-02-21 Jiri Smid <smid@suse.cz>
8184
8185 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8186
b34db576
RE
81872002-02-21 Richard Earnshaw <rearnsha@arm.com>
8188
8189 * Makefile.in (armnbsd-nat.o): Update dependencies.
8190 * armnbsd-nat.c (supply_gregset): New function. Common code to
8191 supply the integer register set.
8192 (supply_fparegset): New function. Similar for FPA registers.
8193 (fetch_regs, fetch_fp_regs): Use them.
8194 (fetch_core_registers): Likewise.
8195 (fetch_elfcore_registers): New function.
8196 (arm_netbsd_elfcore_fns): New core-file type specification.
8197 (_initialize_arm_netbsd_nat): Register it.
8198
3e56fc4b
RE
81992002-02-21 Richard Earnshaw <rearnsha@arm.com>
8200
8201 * armnbsd-nat.c: Include gdbcore.h.
8202 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8203 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8204 'void' to declaration, to shut up ARI.
8205 (fetch_core_registers): Make static. Rewrite using supply_register.
8206 (arm_netbsd_core_fns): New core-file type specification.
8207 (_initialize_arm_netbsd_nat): New function.
8208
097f6b0b
CF
82092002-02-21 Christopher Faylor <cgf@redhat.com>
8210
8211 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8212 value.
8213
c914e0cc
CF
82142002-02-20 Christopher Faylor <cgf@redhat.com>
8215
8216 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8217 fails.
8218
385fa495
DJ
82192002-02-20 Daniel Jacobowitz <drow@mvista.com>
8220
8221 * jv-exp.y (parse_number): Change type of implicit longs
8222 to builtin_type_uint64.
8223
e5f1222d
DJ
82242002-02-20 Daniel Jacobowitz <drow@mvista.com>
8225
8226 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8227 to be an integer instead of a `union wait'.
8228
75c9abc6
DJ
82292002-02-20 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * mips-linux-nat.c: Call the operating system GNU/Linux.
8232 * mips-linux-tdep.c: Likewise.
8233 * mips-tdep.c: Likewise.
8234
551792a5
DJ
82352002-02-20 Daniel Jacobowitz <drow@mvista.com>
8236
8237 Fix PR gdb/265.
8238 * jv-exp.y (parse_number): Handle 64-bit integers.
8239
ee6e2b82
DJ
82402002-02-20 Daniel Jacobowitz <drow@mvista.com>
8241
8242 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8243 AC_STDC_HEADERS to AC_HEADER_STDC.
8244 * gdbserver/configure: Regenerated.
8245
a48442a0
RE
82462002-02-20 Richard Earnshaw <rearnsha@arm.com>
8247
8248 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8249 is defined.
8250 * sparc-tdep.c (get_longjmp_target): Likewise.
8251
fe419ffc
RE
82522002-02-20 Richard Earnshaw <rearnsha@arm.com>
8253
8254 * News: Add news about ARM and Multi-arch. Mention the new target
8255 arm*-*-netbsd*.
8256
5832ed7e
JB
82572002-02-19 Jim Blandy <jimb@redhat.com>
8258
8259 * stabsread.c (error_type_complaint): Improve error message.
8260
84563040
DJ
82612002-02-19 Daniel Jacobowitz <drow@mvista.com>
8262
8263 * gdbserver/README: Update documentation.
8264 * gdbserver/configure.in: Update configury to match documentation.
8265 * gdbserver/Makefile.in: Likewise.
8266 * gdbserver/configure: Regenerated.
8267 * gdbserver/aclocal.m4: New file, generated by aclocal.
8268 * gdbserver/config.in: New file, generated by autoheader.
8269
375fd65b
RE
82702002-02-19 Richard Earnshaw <rearnsha@arm.com>
8271
8272 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8273 armnbsd-nat.c.
8274
08216dd7
RE
82752002-02-19 Richard Earnshaw <rearnsha@arm.com>
8276
8277 * arm-tdep.h (enum arm_float_model): New enum.
8278 (struct gdbarch_tdep): Add fp_model.
8279 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8280 up floating-point conversions until we know the floating-point model
8281 in use by the inferior. Don't complain about being unable to
8282 determine the ABI of the inferior when we don't have one.
8283 (arm_extract_return_value): Support different floating-point models.
8284 (arm_store_return_value): Likewise.
aaa38bb5 8285 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8286 ARM_FLOAT_SOFT.
8287 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8288
65d6d66a
PS
82892002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8290
8291 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8292 of ``current_gdbarch''.
8293
47221191
RE
82942002-02-19 Richard Earnshaw <rearnsha@arm.com>
8295
8296 * armnbsd-nat.c : ANSIfy all function declarations.
8297 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8298 (fetch_inferior_registers): Re-implement in terms of above.
8299 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8300 (store_inferior_registers): Re-implement in terms of above.
8301
fdf39c9a
RE
83022002-02-19 Richard Earnshaw <rearnsha@arm.com>
8303
aaa38bb5 8304 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8305 kernel.
8306 * arm-linux-tdep.c: Likewise.
8307 * config/arm/tm-linux.h: Likewise.
8308
93247f88
RE
83092002-02-19 Richard Earnshaw <rearnsha@arm.com>
8310
8311 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8312 * config/arm/nbsd.mt (TM_FILE): Delete.
8313 * config/arm/tm-nbsd.h: Delete.
8314
d7b486e7
RE
83152002-02-19 Richard Earnshaw <rearnsha@arm.com>
8316
8317 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8318 Initialize CALL_DUMMY_LENGTH.
8319
41d39a95
RE
83202002-02-19 Richard Earnshaw <rearnsha@arm.com>
8321
8322 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8323 function.
8324 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8325 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8326 defines one thing and that is incorrect for this port.
8327 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8328
e1195560
PM
83292002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8330
8331 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8332
c1748f97
PM
83332002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8334
8335 * win32-nat.c (display_selector): New function. Displays information
8336 about the information returned by GetThreadSelectorEntry API function.
8337 (display_selectors): New function. Displays the infomation of
8338 the selector given as argument, or of CS, DS ans FS selectors
8339 if no argument is given.
8340 ( _initialize_inftarg): Add "w32" as info prefix command.
8341 Add "info w32 selector" as command calling display_selectors.
8342
e41e6bbf
PM
83432002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8344
8345 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8346 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8347 if not defined.
8348
0d3a9f48
RE
83492002-02-18 Richard Earnshaw <rearnsha@arm.com>
8350
8351 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8352
3fb4b924
RE
83532002-02-18 Richard Earnshaw <rearnsha@arm.com>
8354
8355 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8356 (arm_fix_call_dummy): Call it.
8357 (arm_call_dummy_breakpoint_offset): Delete.
8358 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8359 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8360
7f55af32
AC
83612002-02-18 Andrew Cagney <ac131313@redhat.com>
8362
8363 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8364 Default to func_frame_chain_valid.
8365 * gdbarch.h, gdbarch.c: Re-generate.
8366 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8367
05f13b9c
EZ
83682002-02-18 Elena Zannoni <ezannoni@redhat.com>
8369
8370 * ppc-linux-nat.c: Update copyright.
8371 (fetch_register, store_register): Add tid parameter, don't compute
8372 tid here.
8373 (fetch_ppc_registers, store_ppc_registers): Add tid
8374 parameter. Pass it along to callees.
8375 (fetch_inferior_registers, store_inferior_registers): Compute tid
8376 here, and pass it to calleed functions.
8377 (fill_gregset, supply_fpregset): Clean up formatting.
8378
d7afb4c9
RE
83792002-02-18 Richard Earnshaw <rearnsha@arm.com>
8380
8381 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8382 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8383
9df628e0
RE
83842002-02-18 Richard Earnshaw <rearnsha@arm.com>
8385
8386 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8387 * gdbarch.c gdbarch.h: Regenerate.
8388 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8389 function.
8390 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8391 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8392 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8393
8394 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8395 * arm-tdep.c (arm_get_longjmp_target): New function.
8396 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8397 this to a positive value register arm_get_longjmp_target as the
8398 longjmp handler.
8399 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8400 (arm_linux_init_abi): Set up longjmp description in tdep.
8401 * armnbsd-nat.c (get_longjmp_target): Delete.
8402 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8403 description in tdep.
8404 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8405 (get_longjmp_target): Delete declaration.
8406 (GET_LONGJMP_TARGET): Delete.
8407 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8408 (GET_LONGJMP_TARGET): Delete.
8409
57bc8964
KB
84102002-02-17 Kevin Buettner <kevinb@redhat.com>
8411
8412 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8413 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8414 of ``current_gdbarch''.
8415
83d31a92
TT
84162002-02-17 Tom Tromey <tromey@redhat.com>
8417
8418 * cli/cli-cmds.c (compare_strings): New function.
8419 (complete_command): Only print each unique item once.
8420 * completer.h (complete_line): Declare.
8421 * completer.c (complete_line): New function.
8422 (line_completion_function): Use it.
8423
17ef5d92
AC
84242002-02-16 Andrew Cagney <ac131313@redhat.com>
8425
8426 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8427 * gdbarch.h, gdbarch.c: Re-generate.
8428
491b8946
DJ
84292002-02-16 Daniel Jacobowitz <drow@mvista.com>
8430
8431 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8432
84332002-02-16 Daniel Jacobowitz <drow@mvista.com>
8434
8435 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8436 * valops.c (value_arg_coerce): Don't take the address of a reference
8437 to convert an argument to a reference.
8438
dfe7f3ac
CF
84392002-02-15 Christopher Faylor <cgf@redhat.com>
8440
8441 * win32-nat.c (get_image_name): New function.
8442 (handle_load_dll): Use get_image_name function.
8443 (get_child_debug_event): Avoid registering debug events until possibly
8444 execed process is started.
8445 (child_create_inferior): Allow invocation via shell so that command
8446 line redirection, etc. works ok.
8447 (_initialize_inftarg): Add new command: "set shell" to control whether
8448 a shell is used to start a process.
8449
1d33e73a
DJ
84502002-02-15 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8453 instead of find_register_by_number.
8454 (cannot_store_register): Likewise.
8455
48cd0caa
PM
84562002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8457
aaa38bb5 8458 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8459 fprintf_unfiltered (gdb_stderr, ...).
8460
8656e7d8
DJ
84612002-02-15 Daniel Jacobowitz <drow@mvista.com>
8462
8463 * gdbserver/gdbserver.1: Document --attach.
8464
66e810cd
RE
84652002-02-15 Richard Earnshaw <rearnsha@arm.com>
8466
8467 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8468 descriptions.
8469 * arm-tdep.c (arm_default_arm_le_breakpoint)
8470 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8471 (arm_default_thumb_be_breakpoint): New. Initialize them from
8472 traditional breakpoint defines.
8473 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8474 (arm_gdbarch_init): Initialize new breakpoint variables.
8475 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8476 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8477 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8478 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8479 code out to ...
8480 (arm_netbsd_init_abi_common): ... here; new function.
8481 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8482 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8483 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8484 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8485
97e03143
RE
84862002-02-15 Richard Earnshaw <rearnsha@arm.com>
8487
8488 * arm-tdep.h (enum arm_abi): New enum.
8489 (struct gdbarch_tdep): New structure.
8490 (LOWEST_PC): Provide a default.
8491 (arm_gdbarch_register_os_abi): Declare new function.
8492 * arm-tdep.c (arm_abi_names): New array.
8493 (process_note_abi_tag_sections): New function.
8494 (get_elfosabi): New function.
8495 (arm_gdbarch_register_os_abi): New function.
8496 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8497 support for that ABI has been built in, then call the appropriate
8498 configuration routine. Use gdbarch_num_regs() to get the number
8499 of registers.
8500 (arm_dump_tdep): New function.
8501 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8502 place-holder functions.
8503 (_initialize_arm_tdep): Register them.
8504 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8505
8506 * armnbsd-tdep.c: New file.
8507 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8508 * config/arm/nbsd.mt (TDEPFILES): Add it.
8509 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8510
8511 * armnbsd-nat.c: Include regcache.h.
8512 * Makefile.in (armnbsd-nat.o): Update dependency list.
8513
8514 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8515
ad68be46
DJ
85162002-02-14 Daniel Jacobowitz <drow@mvista.com>
8517
8518 * gdbserver/Makefile.in: Fix typos in target rules.
8519
003d6d1d
DJ
85202002-02-14 Daniel Jacobowitz <drow@mvista.com>
8521
aaa38bb5 8522 Fix part of PR gdb/267.
003d6d1d
DJ
8523 * linespec.c (find_methods): Handle constructors specially for now.
8524
6b230f1b
CV
85252002-02-14 Corinna Vinschen <vinschen@redhat.com>
8526
8527 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8528 handling.
8529 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8530 standard_coerce_float_to_double().
8531
1ea98d12
CF
85322002-02-14 Christopher Faylor <cgf@redhat.com>
8533
8534 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8535 GDBINIT_FILENAME.
8536
dd47e6fd
EZ
85372002-02-14 Elena Zannoni <ezannoni@redhat.com>
8538
8539 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8540 find_variant_by_name, because it confuses the multiarch
8541 framework. Return NULL if there isn't an architecture with the
8542 user supplied name, instead of forcing a different one without
8543 recording the change with the multiarch machinery.
8544 (find_variant_by_name): Delete.
8545
d7e39b9e
PS
85462002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8547
8548 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8549 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8550
76e42a4f
MH
85512002-02-13 Martin M. Hunt <hunt@redhat.com>
8552
aaa38bb5 8553 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8554 print_frame_info_listing_hook, set current_source_symtab.
8555
0a30fbc4
DJ
85562002-02-14 Daniel Jacobowitz <drow@mvista.com>
8557
8558 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8559 and remove unused $(INCLUDE_DIR).
8560 Add regcache.c to OBS.
8561 Add generated register protocol files to clean target.
8562 Update dependencies for new objects, obsolete old target code.
8563
8564 * gdbserver/linux-low.c: Remove all platform-specific code to
8565 new files. Remove various dead code. Update to use regcache
8566 functionality.
8567 * gdbserver/remote-utils.c (fromhex): Add return statement
8568 to quiet warning.
8569 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8570 constant.
8571 (input_interrupt): Add integer parameter to match prototype
8572 of a signal handler.
8573 (outreg): Use register_data ().
8574 (prepare_resume_reply): Use gdbserver_expedite_regs.
8575 * gdbserver/server.c (main): Dynamically allocate own_buf because
8576 PBUFSIZ is no longer constant. Use registers_to_string () and
8577 registers_from_string ().
8578 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8579 for error (), fatal (), and warning (). Update definition of
8580 PBUFSIZ to use regcache functionality. Add include guard.
8581 * gdbserver/utils.c (fatal): Add missing ``const''.
8582 (warning): New function.
8583
8584 * regformats/regdat.sh: Include "regcache.h" in generated files.
8585 Provide init_registers () function.
8586 * regformats/regdef.h: Add prototype for set_register_cache ().
8587 Add include guard.
8588
8589 * gdbserver/linux-arm-low.c: New file.
8590 * gdbserver/linux-i386-low.c: New file.
8591 * gdbserver/linux-ia64-low.c: New file.
8592 * gdbserver/linux-m68k-low.c: New file.
8593 * gdbserver/linux-mips-low.c: New file.
8594 * gdbserver/linux-ppc-low.c: New file.
8595 * gdbserver/linux-sh-low.c: New file.
8596
8597 * gdbserver/regcache.c: New file.
8598 * gdbserver/regcache.h: New file.
8599
8600 * gdbserver/low-linux.c: Removed obsolete file.
8601
4cc841d0
DJ
86022002-02-14 Daniel Jacobowitz <drow@mvista.com>
8603
8604 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8605 * config/i386/linux.mt: Likewise.
8606 * config/ia64/linux.mt: Likewise.
8607 * config/m68k/linux.mh: Likewise.
8608 * config/powerpc/linux.mh: Likewise.
8609 * config/mips/linux.mt: Likewise.
8610
8611 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8612
8613 * config/i386/i386lynx.mh: Mark gdbserver variables
8614 as (currently) obsolete for this target.
8615 * config/i386/nbsd.mt: Likewise.
8616 * config/i386/nbsdelf.mt: Likewise.
8617 * config/m32r/m32r.mt: Likewise.
8618 * config/m68k/m68klynx.mh: Likewise.
8619 * config/m68k/nbsd.mt: Likewise.
8620 * config/m68k/sun3os4.mh: Likewise.
8621 * config/mips/vr5000.mt: Likewise.
8622 * config/ns32k/nbsd.mt: Likewise.
8623 * config/pa/hppabsd.mh: Likewise.
8624 * config/pa/hppaosf.mh: Likewise.
8625 * config/powerpc/nbsd.mt: Likewise.
8626 * config/rs6000/rs6000lynx.mh: Likewise.
8627 * config/s390/s390.mt: Likewise.
8628 * config/s390/s390x.mt: Likewise.
8629 * config/sparc/sparclynx.mh: Likewise.
8630 * config/sparc/sun4os4.mh: Likewise.
8631 * config/i386/x86-64linux.mt: Likewise.
8632 * config/sparc/linux.mh: Likewise.
8633
a85f51e7
DJ
86342002-02-14 Daniel Jacobowitz <drow@mvista.com>
8635
8636 * configure.tgt: Configure gdbserver only for known working
8637 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8638 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8639 SUBDIRS if it is configured. Update comment for ${nativefile}.
8640 * configure: Regenerated.
8641
65554fef
MS
86422002-02-13 Michael Snyder <msnyder@redhat.com>
8643
670a52db
MS
8644 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8645
6dbdc4a3
MS
8646 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8647 (default_gcore_mach): Just return 0, work around a problem in bfd.
8648 (default_gcore_target): OK to return NULL if exec_bfd is null.
8649 (make_mem_sec): Use a cast, avoid a warning.
8650
8651 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8652 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8653 sizeof (host pointer) != sizeof (target pointer)).
8654 (procfs_make_note_section): Avoid overflow in psargs string.
8655
aaa38bb5 8656 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8657 implementation return an error.
8658
86592002-02-13 Rodney Brown <rbrown64@csc.com.au>
8660
8661 * procfs.c (procfs_make_note_section): Provide a default definition
8662 (for alpha-dec-osf4.0f). Fix typos.
8663
1e4d76e7
EZ
86642002-02-13 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * linux-proc.c: Add include of regcache.h.
8667 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8668
b6d1a1d5
AC
86692002-02-13 Andrew Cagney <ac131313@redhat.com>
8670
8671 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8672 * memattr.c (create_mem_region): Disallow useless empty region.
8673 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8674 non-overlapping.
b6d1a1d5 8675
6c6ea35e
MC
86762002-02-13 Michael Chastain <mec@shout.net>
8677
8678 * defs.h: Kill CONST_PTR.
8679 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8680 * c-lang.c (c_builtin_types): Likewise.
8681 * ch-lang.c (ch_builtin_types): Likewise.
8682 * f-lang.c (f_builtin_types): Likewise.
8683 * language.c (unknown_builtin_types): Likewise.
8684 * m2-lang.c (m2_builtin_types): Likewise.
8685 * p-lang.c (pascal_builtin_types): Likewise.
8686 * scm-lang.c (c_builtin_types): Likewise.
8687
3e0b0f48
KS
86882002-02-13 Keith Seitz <keiths@redhat.com>
8689
8690 * arm-tdep.h (arm_get_next_pc): Add declaration.
8691
67255d04
RE
86922002-02-13 Richard Earnshaw <rearnsha@arm.com>
8693
8694 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8695 with other related struct-returning functions.
8696 (arm_extract_struct_value_address): New function.
8697 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8698 initialize float_format, double_format and long_double_format as
8699 appropriate to the endianness of the target.
8700 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8701 (arm_use_struct_convention): Delete declaration.
8702 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8703
079777f6
KS
87042002-02-13 Keith Seitz <keiths@redhat.com>
8705
8706 * defs.h (core_addr_to_string_nz): New function.
8707
34588f23
MK
87082002-02-13 Mark Kettenis <kettenis@gnu.org>
8709
8710 Apply missing bits of 2002-01-15 patch.
8711 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8712 (fill_fpregset): Use i387_fill_fsave.
8713
49b563f9
KS
87142002-02-12 Keith Seitz <keiths@redhat.com>
8715
49b563f9
KS
8716 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8717 (core_addr_to_string_nz): New function.
8718
aeb98c60
RE
87192002-02-11 Richard Earnshaw <rearnsha@arm.com>
8720
8721 * arm-linux-nat.c: Really include arm-tdep.h.
8722 * config/arm/tm-linux.h (struct type, struct value): Declare.
8723
65554fef
MS
87242002-02-11 Michael Snyder <msnyder@redhat.com>
8725
8726 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8727 (gcore section): Ifdef for Solaris and Unixware only.
8728 (procfs_do_thread_registers): Unixware needs one lwpstatus
8729 per thread (not one prstatus or pstatus).
8730 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8731 not over all gdb threads. For unixware, call elfcore_write_pstatus
8732 once before iterating over threads.
8733
34e8f22d
RE
87342002-02-11 Richard Earnshaw <rearnsha@arm.com>
8735
8736 * arm-tdep.h: New file.
8737 * arm-tdep.c: Include arm-tdep.h.
8738 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8739 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8740 (arm_print_float_info, arm_register_type, convert_to_extended)
8741 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8742 (arm_extract_return_value, arm_register_name): Make static.
8743 (arm_software_single_step): Similarly. Fix types in declaration.
8744 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8745 (arm_store_return_value, arm_store_struct_return): New functions.
8746 (arm_gdbarch_init): Register the above functions. Also register
8747 call_dummy_start_offset, sizeof_call_dummy_words,
8748 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8749 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8750 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8751 prologue_cache.saved_regs here, rather than ...
8752 (_initialize_arm_tdep): ... here.
8753 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8754 declarations.
8755 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8756 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8757 (arm_print_float_info, arm_register_type, convert_to_extended)
8758 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8759 (arm_extract_return_value, arm_register_name): Delete declarations.
8760 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8761 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8762 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8763 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8764 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8765 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8766 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8767 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8768 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8769 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8770 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8771 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8772 interface.
8773 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8774 * remote-rdi.c remote-rdp.c: Likewise.
8775 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8776 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8777 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8778 definition.
8779
8780 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8781 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8782 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8783 from non-ARM_ prefixed definitions.
8784 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8785 all uses of above.
8786 * remote-rdi.c remote-rdp.c: Likewise.
8787 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8788
148754e5
RE
87892002-02-11 Richard Earnshaw <rearnsha@arm.com>
8790
8791 * arm-tdep.c (arm_frameless_function_invocation)
8792 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8793 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8794 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8795 (arm_pop_frame, arm_get_next_pc): Make static.
8796 (arm_gdbarch_init): Register above in gdbarch structure.
8797 (arm_read_fp): Renamed from arm_target_read_fp.
8798 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8799 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8800 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8801 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8802 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8803 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8804 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8805 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8806 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8807 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8808 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8809
434d2d4f
DJ
88102002-02-10 Daniel Jacobowitz <drow@mvista.com>
8811
8812 * symtab.c (compare_search_syms): New function.
8813 (sort_search_symbols): New function.
8814 (search_symbols): Sort symbols after searching rather than
8815 before.
8816
55241689
AC
88172002-02-10 Andrew Cagney <ac131313@redhat.com>
8818
8819 * NEWS: Linux -> GNU/Linux.
8820
028c194b
AC
88212002-02-10 Andrew Cagney <ac131313@redhat.com>
8822
8823 * gdbarch.sh: For for level one methods, disallow a definition
8824 when partially multi-arched. Add comments explaining rationale.
8825 * gdbarch.h: Re-generate.
8826
6acf50cd
AC
88272002-02-10 Andrew Cagney <ac131313@redhat.com>
8828
8829 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8830 multi-arch partial.
aaa38bb5 8831
50248794
AC
88322002-02-10 Andrew Cagney <ac131313@redhat.com>
8833
8834 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8835 field. Use diff -u.
8836 * gdbarch.c: Re-generate.
8837
c30e0066
AC
88382002-02-10 Andrew Cagney <ac131313@redhat.com>
8839
9b56c5f3 8840 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8841 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8842 partial.
8843
6e6d6484
AC
88442002-02-10 Andrew Cagney <ac131313@redhat.com>
8845
8846 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8847 multi-arch partial.
8848 (PUSH_ARGUMENTS): Switch to using predefault.
8849 * gdbarch.c: Regenerate.
8850
c203844d
AC
88512002-02-10 Andrew Cagney <ac131313@redhat.com>
8852
8853 * valops.c (PUSH_ARGUMENTS): Delete definition.
8854 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8855 partial. Default to default_push_arguments.
8856 * gdbarch.h, gdbarch.c: Regenerate.
8857
b5a2688f
AC
88582002-02-09 Andrew Cagney <ac131313@redhat.com>
8859
8860 * defs.h (throw_exception): Rename return_to_top_level. Update
8861 comments.
8862 * utils.c (error_stream, internal_verror, quit): Ditto.
8863 * top.c (throw_exception, catcher): Ditto.
8864 * sparclet-rom.c (sparclet_load): Ditto.
8865 * remote.c (interrupt_query, minitelnet): Ditto.
8866 * remote-sds.c (interrupt_query): Ditto.
8867 * remote-mips.c (mips_error, mips_kill): Ditto.
8868 * ocd.c (interrupt_query): Ditto.
8869 * monitor.c (monitor_interrupt_query): Ditto.
8870 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8871 * target.h: Update comment.
aaa38bb5 8872
b5a2688f 8873 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8874
2fa5c1e0
AC
88752002-02-09 Andrew Cagney <ac131313@redhat.com>
8876
8877 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8878 default_double_format.
8879 * gdbarch.h, gdbarch.c: Re-generate.
8880 * findvar.c (floatformat_unknown): Delete variable definition.
8881 * doublest.h (floatformat_unknown): Delete variable declaration.
8882
da966255
JB
88832002-02-09 Jim Blandy <jimb@redhat.com>
8884
8885 * stabsread.c (read_type): Add code to parse Sun's syntax for
8886 prototyped function types.
8887
123a4891
AC
88882002-02-09 Andrew Cagney <ac131313@redhat.com>
8889
8890 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8891 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8892
fb39c8f3
PS
88932002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8894
8895 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8896 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8897 now _initialize_xcoffsolib gets called again and overrides the
8898 commands from solib.c in a native configuration.
8899
0b87a11d
MK
89002002-02-09 Mark Kettenis <kettenis@gnu.org>
8901
8902 * doublest.c (store_typed_floating): Don't try to return a value.
8903 Fixes PR gdb/290.
8904
bdc2fc72
JB
89052002-02-08 Jim Blandy <jimb@redhat.com>
8906
8907 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8908 is prototyped and has no arguments, print its argument list as
8909 `(void)'.
8910
da69bbcf
CD
89112002-02-08 Chris Demetriou <cgd@broadcom.com>
8912
8913 * MAINTAINERS (write-after-approval): Add myself.
8914 (paper-trail): I've escaped!
aaa38bb5 8915
b69571f5
CF
89162002-02-08 Christopher Faylor <cgf@redhat.com>
8917
8918 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8919 changes.
8920 (_initialize_check_for_gdb_ini): Ditto.
8921
f6871398
MH
89222002-02-08 Martin M. Hunt <hunt@redhat.com>
8923
8924 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8925 xaprintf -> xasprintf.
8926
4e52d31c
PM
89272002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8928
8929 * win32-nat.c: Remove use of printf and sprintf functions.
8930
39bbf761
RE
89312002-02-08 Richard Earnshaw <rearnsha@arm.com>
8932
8933 * arm-tdep.c (arm_frame_chain_valid): Make static.
8934 (arm_push_arguments): Likewise.
8935 (arm_gdbarch_init): New function.
8936 (_initialize_arm_tdep): Call it.
8937 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8938 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8939 (FRAME_CHAIN_VALID): Delete.
8940 (arm_frame_chain_valid): Delete declaration.
8941 (PUSH_ARGUMENTS): Delete.
8942 (arm_push_arguments): Delete declaration.
8943 (CALL_DUMMY_P): Delete.
8944
9c9532c9
CV
89452002-02-08 Andrew Cagney <ac131313@redhat.com>
8946 Corinna Vinschen <vinschen@redhat.com>
8947
8948 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8949 on builtin float types.
8950
4e8f7a8b
DJ
89512002-02-08 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * utils.c: Include <curses.h> before "bfd.h".
8954 * tui/tui-hooks.c: Likewise.
8955 * tui/tui.c: Likewise.
8956 * tui/tuiCommand.c: Likewise.
8957 * tui/tuiData.c: Likewise.
8958 * tui/tuiDataWin.c: Likewise.
8959 * tui/tuiDisassem.c: Likewise.
8960 * tui/tuiGeneralWin.c: Likewise.
8961 * tui/tuiIO.c: Likewise.
8962 * tui/tuiLayout.c: Likewise.
8963 * tui/tuiRegs.c: Likewise.
8964 * tui/tuiSource.c: Likewise.
8965 * tui/tuiSourceWin.c: Likewise.
8966 * tui/tuiStack.c: Likewise.
8967 * tui/tuiWin.c: Likewise.
8968
cd4bffcf
EZ
89692002-02-07 Elena Zannoni <ezannoni@redhat.com>
8970
8971 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8972 to include space for pseudoregs as well. Update loops accordingly.
8973 (sh_fp_frame_init_saved_regs): Ditto.
8974 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8975
26806ce2
AC
89762002-02-07 Andrew Cagney <ac131313@redhat.com>
8977
8978 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8979 Add Richard Earnshaw to Arm maintainers.
8980
97fdab62
AC
89812002-02-07 Andrew Cagney <ac131313@redhat.com>
8982
a6b98203
AC
8983 * defs.h (warning_begin): Delete declaration.
8984
97fdab62
AC
8985 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8986 Delete macro.
8987
78b29b40
MS
89882002-02-07 Michael Snyder <msnyder@redhat.com>
8989
aaa38bb5 8990 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8991 Logic bug, remove misplaced else.
8992
d8849953
KD
89932002-02-07 Klee Dienes <klee@apple.com>
8994
8995 * fork-inferior.c (fork_inferior): Add '!' to the list of
8996 characters that need to be quoted when building a string for the
8997 shell. Quote '!' specifically with a backslash, since CSH chokes
8998 when trying to evaluate "str!str".
aaa38bb5 8999
095778a0
NC
90002002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9001
9002 * rdi-share/host.h: Only provide a typedef for bool if it is not
9003 defined.
9004
1900040c
MS
90052002-02-04 Michael Snyder <msnyder@redhat.com>
9006
9007 * breakpoint.h (enum bptype): Add new overlay event bp type.
9008 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9009
1900040c
MS
9010 * breakpoint.c (create_internal_breakpoint): New function.
9011 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9012 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9013 (create_thread_event_breakpoint): Ditto.
9014 (create_solib_event_breakpoint): Ditto.
9015 (create_overlay_event_breakpoint): New function.
9016 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9017 (update_breakpoints_after_exec): Delete and re-initialize
9018 overlay event breakpoints after an exec. Add FIXME comment
9019 about longjmp breakpoint.
9020 (print_it_typical): Ignore overlay event breakpoints.
9021 (print_one_breakpoint): Ditto.
9022 (mention): Ditto.
9023 (bpstat_what): Do not stop for overlay event breakpoints.
9024 (delete_breakpoint): Don't delete overlay event breakpoints.
9025 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9026 (breakpoint_re_set): Re-create overlay event breakpoint.
9027
9028 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9029 (overlay_manual_command): Disable overlay breakpoints.
9030 (overlay_off_command): Disable overlay breakpoints.
9031
082fc60d
RE
90322002-02-06 Richard Earnshaw <rearnsha@arm.com>
9033
9034 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9035 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9036 to here from config/tm-arm.h.
9037 (coff_sym_is_thumb): Make static.
9038 (arm_elf_make_msymbol_special): New function.
9039 (arm_coff_make_msymbol_special): New function.
9040 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9041 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9042 (coff_sym_is_thumb): Delete declaration.
9043 (arm_elf_make_msymbol_special): Declare.
9044 (arm_coff_make_msymbol_special): Declare.
9045 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9046 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9047
039c5766
RE
90482002-02-06 Richard Earnshaw <rearnsha@arm.com>
9049
9050 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9051
90522002-02-06 Richard Earnshaw <rearnsha@arm.com>
9053
9054 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9055 * gdbarch.c gdbarch.h: Regenerate.
9056 * arch-utils.c (default_print_float_info): New function.
9057 * arch-utils.h (default_print_float_info): Prototype it.
9058 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9059 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9060 (PRINT_FLOAT_INFO): Document it.
9061
9062 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9063 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9064 (PRINT_FLOAT_INFO): Define.
9065
58fa08f0
PM
90662002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9067
aaa38bb5 9068 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9069 Add typecast to sprintf argument to suppress a warning.
9070
7393af7c
PM
90712002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9072
58fa08f0 9073 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9074 to allow easier handling of pass state.
9075 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9076 that gives exception name and address.
9077 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9078 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9079 exceptions added.
aaa38bb5
AJ
9080 (child_continue): Correctly report continue_status.
9081 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9082 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9083 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9084 the exception should be passed to debuggee or not.
9085
6af4589c
MS
90862002-02-05 Michael Snyder <msnyder@redhat.com>
9087
9088 * regcache.c (fetch_register): Call target_fetch_register
9089 only if we don't call FETCH_PSEUDO_REGISTER.
9090 (store_register): Call target_store_register only if we
9091 don't call STORE_PSEUDO_REGISTER.
9092
a2cf933a
EZ
90932002-02-05 Elena Zannoni <ezannoni@redhat.com>
9094
9095 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9096 ELF_MAKE_MSYMBOL_SPECIAL.
9097 * gdbarch.c, gdbarch.h: Regenerate.
9098 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9099 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9100 * elfread.c (elf_symtab_read): Compile use of
9101 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9102 multiarched.
9103 * coffread.c (coff_symtab_read): Ditto, for
9104 COFF_MAKE_MSYMBOL_SPECIAL.
9105
6bb7be43
JB
91062002-02-05 Jim Blandy <jimb@redhat.com>
9107
9108 * solib-svr4.c (svr4_truncate_ptr): New function.
9109 (svr4_relocate_section_addresses): Do the address arithmetic with
9110 the appropriate truncation for target addresses, even when
9111 CORE_ADDR is larger than a target address.
9112
e18651ec
DJ
91132002-02-05 Daniel Jacobowitz <drow@mvista.com>
9114
9115 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9116 to (int *).
9117
6b2725be
DJ
91182002-02-05 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9121 code.
9122
fca9e603
DJ
91232002-02-05 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9126
6c537a52
DJ
91272002-02-05 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * gdbserver/linux-low.c: Remove unused include files.
9130
d844cde6
DJ
91312002-02-05 Daniel Jacobowitz <drow@mvista.com>
9132
9133 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9134 (read_inferior_memory): Use it.
9135 (write_inferior_memory): Likewise.
9136
d07c63e7
DJ
91372002-02-05 Daniel Jacobowitz <drow@mvista.com>
9138
9139 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9140 grubbing through sys_errlist.
9141
da6d8c04
DJ
91422002-02-05 Daniel Jacobowitz <drow@mvista.com>
9143
9144 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9145
5b421780
PM
91462002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9147 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9148
9f60d481
AC
91492002-02-04 Andrew Cagney <ac131313@redhat.com>
9150
9151 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9152 (do_sfunc, set_cmd_sfunc): New functions.
9153
9154 * command.h (struct cmd_list_element): Add field func.
9155 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9156 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9157 * cli/cli-decode.h: Ditto.
9158
9159 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9160 (help_all, help_cmd_list): Ditto.
9161 (find_cmd, complete_on_cmdlist): Ditto.
9162 * top.c (execute_command): Ditto.
9163
9164 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9165 function.sfunc.
9166
9167 * infcmd.c (notice_args_read): Fix function signature.
9168
9169 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9170 * cli/cli-decode.c (add_set_cmd): Ditto.
9171 * utils.c (initialize_utils): Ditto.
9172 * maint.c (_initialize_maint_cmds): Ditto.
9173 * infrun.c (_initialize_infrun): Ditto.
9174 * demangle.c (_initialize_demangler): Ditto.
9175 * remote.c (add_packet_config_cmd): Ditto.
9176 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9177 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9178 * proc-api.c (_initialize_proc_api): Ditto.
9179 * kod.c (_initialize_kod): Ditto.
9180 * valprint.c (_initialize_valprint): Ditto.
9181 * top.c (init_main): Ditto.
9182 * infcmd.c (_initialize_infcmd): Ditto.
9183 * corefile.c (_initialize_core): Ditto.
9184 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9185 * arch-utils.c (initialize_current_architecture): Ditto.
9186 (_initialize_gdbarch_utils): Ditto.
9187 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9188
9189 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9190 * wince.c (_initialize_inftarg): Ditto.
9191 * symfile.c (_initialize_symfile): Ditto.
9192 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9193 * language.c (_initialize_language): Ditto.
9194 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9195
f9ba0717
MS
91962002-02-04 Michael Snyder <msnyder@redhat.com>
9197
9198 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9199
0c74b2a7
DJ
92002002-02-04 Daniel Jacobowitz <drow@mvista.com>
9201
9202 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9203 Add rules for building the register data files.
9204
c638789f
DJ
92052002-02-04 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * regformats/regdat.sh: Add braces to the definition of
9208 expedite_regs_${arch}.
9209
db253027
DJ
92102002-02-04 Daniel Jacobowitz <drow@mvista.com>
9211
9212 * regformats/regdef.h (struct reg): Add comment describing the
9213 requirements for offset and size fields.
9214
206be19c
AS
92152002-02-04 Andreas Schwab <schwab@suse.de>
9216
9217 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9218 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9219
181c1381
RE
92202002-02-04 Richard Earnshaw <rearnsha@arm.com>
9221
9222 * gdbarch.sh (copyright): Update years in generated header.
9223 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9224 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9225 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9226 * dbxread.c: Likewise.
9227 * dwarfread.c: Likewise.
9228 * elfread.c: Likewise.
9229 * somread.c: Likewise.
9230
9231 * arm-tdep.c (arm_smash_text_address): New function.
9232 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9233
fa4ba8da
PM
92342002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9235
9236 Add support for hardware watchpoints on win32 native.
aaa38bb5 9237 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9238 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9239 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9240 of debug registers.
9241 (debug_registers_changed): New variable. Reflects when debug registers
9242 are changed and need to be written to inferior.
aaa38bb5 9243 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9244 was set, used when new threads are created.
9245 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9246 i386-nat code.
9247 (thread_rec): Set dr array if id is the thread of current_event .
9248 (child_continue, child_resume): Change the debug registers for all
9249 threads if debug_registers_changed.
9250 (child_add_thread): Change the debug registers if debug_registers_used.
9251 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9252 Link nm.h to new nm-cygwin.h file.
9253 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9254 of hardware registers.
9255
a73c86fb
AC
92562002-02-03 Andrew Cagney <ac131313@redhat.com>
9257
9258 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9259 Restore behavour broken by 2002-01-20 Andrew Cagney
9260 <ac131313@redhat.com> IEEE_FLOAT removal.
9261
acf5ed49
DJ
92622002-02-03 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * c-valprint.c (c_val_print): Pass a proper valaddr to
9265 cp_print_class_method.
9266 * valops.c (search_struct_method): If there is only one method
9267 and args is NULL, return that method.
9268
493d28d5
DJ
92692002-02-03 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9272 accessing tag_name directly.
9273
7495dfdb
DJ
92742002-02-03 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9277 of accessing tag_name directly.
9278
dd6bda65
DJ
92792002-02-03 Daniel Jacobowitz <drow@mvista.com>
9280
9281 PR gdb/280
9282 * gdbtypes.c (replace_type): New function.
9283 * gdbtypes.h (replace_type): Add prototype.
9284 * stabsread.c (read_type): Use replace_type.
9285
88fe217c
RE
92862002-02-03 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * Makefile.in (memattr.o): Add missing dependencies rule.
9289
e5d66720
PS
92902002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9291
9292 * breakpoint.c (break_at_finish_command): Really export.
9293 (break_at_finish_at_depth_command): Ditto.
9294 (tbreak_at_finish_command): Ditto.
9295 * hppa-tdep.c: Include completer.h.
9296 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9297 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9298
fffee0be
AC
92992002-02-01 Andrew Cagney <ac131313@redhat.com>
9300
9301 * utils.c (do_write): New function.
9302 (error_stream): Rewrite combining the code from error_begin and
9303 verror.
9304 (verror): Rewrite using error_stream.
9305 (error_begin): Delete function.
9306
255e7dbf
AC
93072002-02-01 Andrew Cagney <ac131313@redhat.com>
9308
9309 * utils.c (error_begin): Make static.
9310 * defs.h (error_begin): Delete declaration.
9311
9312 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9313 (decode_line_1): Use cplusplus_error instead of error_begin,
9314 cplusplus_hint and return_to_top_level.
9315 * coffread.c (coff_symfile_read): Use error instead of error_begin
9316 and return_to_top_level.
9317 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9318
ddfe3c15
AC
93192002-02-01 Andrew Cagney <ac131313@redhat.com>
9320
9321 * language.h (type_error, range_error): Make string parameter
9322 constant.
9323 * language.c (warning_pre_print): Delete extern declaration.
9324 * dwarfread.c (warning_pre_print): Ditto.
9325 * language.c (type_error, range_error): Rewrite to use verror and
9326 vwarning instead of warning_begin.
9327
03ac34d5
MS
93282002-02-01 Michael Snyder <msnyder@redhat.com>
9329
261c4ca2
MS
9330 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9331 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9332
e00d1dc8
AC
93332002-02-01 Andrew Cagney <ac131313@redhat.com>
9334
9335 * command.h (NO_FUNCTION): Delete macro.
9336 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9337 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9338 * tracepoint.c (_initialize_tracepoint): Ditto.
9339 * cli/cli-decode.c (add_set_cmd): Ditto.
9340 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9341
76b79d6e
DJ
93422002-02-01 Daniel Jacobowitz <drow@mvista.com>
9343
9344 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9345 Update ``this'' pointer when calling virtual functions.
9346
799f9e91
MS
93472002-02-01 Michael Snyder <msnyder@redhat.com>
9348
c7bd442c 9349 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9350 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9351
3cf384d4
DJ
93522002-02-01 Daniel Jacobowitz <drow@mvista.com>
9353
9354 * regformats/reg-arm.dat: New file.
9355 * regformats/reg-i386.dat: New file.
9356 * regformats/reg-ia64.dat: New file.
9357 * regformats/reg-m68k.dat: New file.
9358 * regformats/reg-mips.dat: New file.
9359 * regformats/reg-ppc.dat: New file.
9360 * regformats/reg-sh.dat: New file.
9361 * regformats/regdef.h: New file.
9362 * regformats/regdat.sh: New file.
9363
0defa245
RE
93642002-02-01 Richard Earnshaw <reanrsha@arm.com>
9365
9366 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9367 (arm_frame_args_address, arm_frame_locals_address): New functions.
9368 (arm_frame_num_args): New function.
9369 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9370 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9371 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9372
405f26e6
MS
93732002-01-31 Michael Snyder <msnyder@redhat.com>
9374
502fd408
MS
9375 * breakpoint.c (break_at_finish_command): Export.
9376 (break_at_finish_at_depth_command): Export.
9377 (tbreak_at_finish_command): Export.
9378 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9379 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9380 "tbreak" commands, which are HPPA specific.
9381
7d35e135
MS
9382 * printcmd.c (disassemble_command): Remove an ancient
9383 artifact of an old merge.
9384
aaa38bb5 9385 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9386 Define enum constant values for overlay mode.
9387 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9388 (overlay_is_mapped, overlay_auto_command,
9389 overlay_manual_command): Ditto.
d874f1e2 9390
aaa38bb5
AJ
9391 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9392 breakpoint_here_p, breakpoint_inserted_here_p,
9393 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9394 describe_other_breakpoints, check_duplicates, clear_command):
9395 Coding standard fixes.
9396
8add0441 9397 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9398 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9399 code: check bfd SEC_READONLY flag for section.
9400
e351066e
AC
94012002-01-31 Andrew Cagney <ac131313@redhat.com>
9402
7d35e135 9403 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9404
8a48e967
DJ
94052002-01-30 Daniel Jacobowitz <drow@mvista.com>
9406
9407 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9408 data symbols, since we search based on textlow and texthigh.
9409 (find_pc_sect_symtab): Likewise.
9410
f5a96129
AC
94112002-01-30 Andrew Cagney <ac131313@redhat.com>
9412
9413 * defs.h (vwarning): Declare.
f5a96129
AC
9414 * utils.c (vwarning): New function.
9415 (warning): Call vwarning.
9416 (warning_begin): Delete function.
9417
9418 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9419 the warning message.
9420 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9421 warning_begin.
9422
cefd4ef5
MS
94232002-01-30 Michael Snyder <msnyder@redhat.com>
9424
1a703748
MS
9425 * NEWS: Mention "set trust-readonly-sections" command.
9426 Mention generate-core-file command.
cefd4ef5 9427
3a11626d
MS
94282002-01-15 Michael Snyder <msnyder@redhat.com>
9429
9430 * target.c: New command, "set trust-readonly-sections on".
9431 (do_xfer_memory): Honor the suggestion to trust readonly sections
9432 by reading them from the object file instead of from the target.
9433 (initialize_targets): Register command "set trust-readonly-sections".
9434
d1c7e53b
AC
94352002-01-29 Andrew Cagney <ac131313@redhat.com>
9436
9437 * parse.c (target_map_name_to_register): Simplify, search regs and
9438 pseudo-regs using a single loop.
9439
e2c9a72c
AC
94402002-01-30 Andrew Cagney <ac131313@redhat.com>
9441
9442 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9443
69824b4e
MK
94442002-01-15 Rodney Brown <rbrown64@csc.com.au>
9445
9446 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9447 * config/i386/i386v42mp.mh: Add i387-nat.o .
9448 * i386v4-nat.c: Include i387-nat.h.
9449 (supply_fpregset): Use i387_supply_fsave.
9450 (fill_fpregset): Use i387_fill_fsave.
9451
6eb69eab
RE
94522002-01-30 Richard Earnshaw <rearnsha@arm.com>
9453
9454 * arm-tdep.c (arm_call_dummy_words): Define.
9455 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9456 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9457 (CALL_DUMMY_WORDS): Define.
9458 (arm_call_dummy_words): Declare.
9459 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9460 (arm_linux_call_dummy_words): Declare.
9461
9852326a
AS
94622002-01-30 Andreas Schwab <schwab@suse.de>
9463
9464 * m68klinux-nat.c: Fix last change to use regcache_collect
9465 instead of referencing registers[] directly.
9466
977a3030
AC
94672002-01-29 Andrew Cagney <ac131313@redhat.com>
9468
9469 * parse.c (target_map_name_to_register): Delete code wrapped in
9470 #ifdef REGISTER_NAME_ALIAS_HOOK.
9471
2076c72b
MS
94722002-01-28 Michael Snyder <msnyder@redhat.com>
9473
9474 * regcache.c (legacy_read_register_gen): Need to be able to
9475 read pseudo-register as well as real register.
9476 (legacy_write_register_gen): Ditto.
9477
8fcc723b
AC
94782002-01-28 Andrew Cagney <ac131313@redhat.com>
9479
9480 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9481 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9482 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9483 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9484 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9485 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9486 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9487 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9488 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9489 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9490 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9491 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9492 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9493 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9494 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9495 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9496 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9497 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9498 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9499 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9500
afe64c1a
AC
95012002-01-28 Andrew Cagney <ac131313@redhat.com>
9502
9503 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9504 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9505 (initialize_current_architecture): Update target_byte_order using
9506 information from BFD.
aaa38bb5 9507 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9508 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9509
75bc7ddf
AC
95102002-01-28 Andrew Cagney <ac131313@redhat.com>
9511
9512 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9513 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9514
9515 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9516 #ifdef INVALID_FLOAT.
9517 * infcmd.c (do_registers_info): Ditto.
9518 * values.c (unpack_double): Ditto. Add comment.
9519
9520 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9521 already commented out.
9522
0280a90a
AS
95232002-01-26 Andreas Schwab <schwab@suse.de>
9524
9525 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9526 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9527 registers and add support for PTRACE_GETREGS.
9528
7072a954
AC
95292002-01-24 Andrew Cagney <ac131313@redhat.com>
9530
9531 GDB 5.1.1 released from 5.1 branch.
9532 * NEWS: Add 5.1.1 news.
9533 * README: Sync with 5.1 branch.
9534
86f902e0
FF
95352002-01-23 Fred Fish <fnf@redhat.com>
9536
9537 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9538 stabstring on initial malloc. Reallocing will copy it for us,
9539 if necessary.
9540
8af51c36
EZ
95412002-01-23 Elena Zannoni <ezannoni@redhat.com>
9542
aaa38bb5 9543 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9544 (HFILES_NO_SRCDIR): Remove hpread.h.
9545 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9546 (hpread.o): Update dependencies.
9547 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9548
9549 * hp-psymtab-read.c: Remove file.
9550 * hp-symtab-read.c: Remove file.
9551 * hpread.h: Remove file.
9552
9553 * hpread.c: Merge all contents of hp-psymtab-read.c,
9554 hp-symtab-read.c and hpread.h into this file, as it was prior to
9555 January 1999.
9556
9557 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9558 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9559 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9560 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9561
dc5cfeb6
EZ
95622002-01-23 Elena Zannoni <ezannoni@redhat.com>
9563
9564 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9565 fill_gregset): Call gdbarch_tdep() just once, assign result to
9566 variable and use that, instead of calling the function several
9567 times.
9568
ea87b71b
AO
95692002-01-24 Alexandre Oliva <aoliva@redhat.com>
9570
9571 * configure.host: Accept sparcv9 as alias for sparc64.
9572 * configure.tgt: Likewise.
9573
13fc0c2f
KB
95742002-01-22 Kevin Buettner <kevinb@redhat.com>
9575
9576 * solib-aix5.c (build_so_list_from_mapfile)
9577 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9578 arguments is not reversed.
9579 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9580 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9581
7bd872fe
EZ
95822002-01-22 Elena Zannoni <ezannoni@redhat.com>
9583
9584 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9585 modified version of obsolete sh_fetch_pseudo_register.
9586 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9587 (sh4_register_read): New function.
9588 (sh_pseudo_register_write): New function. Renamed and modified
9589 version of obsolete sh_store_pseudo_register.
9590 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9591 (sh4_register_write): New function.
9592 (sh_gdbarch_init): Remove setting of gdbarch function
9593 fetch_pseudo_register and store_pseudo_register. Remove setting of
9594 register_convert_to_raw, register_convert_to_virtual,
9595 register_convertible.
9596 (sh_sh4_register_convertible): Delete. No longer needed. All is
9597 taken care by architecture specific functions
9598 register_read/register_write.
9599 (sh_sh4_register_convert_to_virtual): Make static.
9600 (sh_sh4_register_convert_to_raw): Ditto.
9601
069e84fd
AC
96022002-01-22 Andrew Cagney <ac131313@redhat.com>
9603
9604 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9605 (floatformat_is_nan, floatformat_mantissa): Ditto.
9606
9607 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9608 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9609 builtin_type_ieee_double_little,
9610 builtin_type_ieee_double_littlebyte_bigword,
9611 builtin_type_m68881_ext, builtin_type_i960_ext,
9612 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9613 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9614 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9615 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9616
211a4f69
CV
96172002-01-22 Corinna Vinschen <vinschen@redhat.com>
9618
9619 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9620 parameter. Set frameless flag if it exists and depended of
9621 whether the scanned function is frameless or not.
9622 (xstormy16_skip_prologue): If function is frameless, return
9623 result of xstormy16_scan_prologue().
9624 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9625 call.
9626
f81353e4
EZ
96272002-01-21 Elena Zannoni <ezannoni@redhat.com>
9628
9629 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9630 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9631 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9632 sh_sh4_register_byte, sh_sh4_register_raw_size,
9633 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9634 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9635 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9636 sh_store_pseudo_register, sh_do_pseudo_register): Call
9637 gdbarch_tdep() just once, assign result to variable and use that,
9638 instead of calling the function several times.
9639
63c73a17
MK
96402002-01-20 Mark Kettenis <kettenis@gnu.org>
9641
9642 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9643 macros instead of LAST_FPU_CTRL_REGNUM.
9644 (store_register): Likewise.
9645
39ad761d
JB
96462002-01-21 Jim Blandy <jimb@redhat.com>
9647
9648 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9649 is up-to-date before running the program, not just when a program
9650 exits.
9651
3d74b771
FF
96522002-01-21 Fred Fish <fnf@redhat.com>
9653
9654 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9655 when we have found all instructions we are looking for.
9656
966fbf70
RE
96572002-01-21 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.c (arm_register_name): New function.
9660 (arm_registers_names): Make static.
9661 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9662 (arm_register_name): Declare.
9663 (REGISTER_NAME): Use it.
9664
c3b4394c
RE
96652002-01-21 Richard Earnshaw <rearnsha@arm.com>
9666 Kevin Buettner <kevinb@redhat.com>
9667
9668 Convert arm targets to new FRAME interface.
9669 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9670 (arm_frame_find_save_regs): Delete.
9671 (arm_frame_init_saved_regs): New.
9672 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9673 Allocate extra_info as required. Convert all uses of fsr.regs
9674 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9675 to use extra_info.
9676 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9677 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9678 (check_prologue_cache, save_prologue_cache): Likewise.
9679 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9680 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9681 (FRAME_FIND_SAVED_REGS): Delete.
9682 (arm_frame_find_saved_regs): Delete prototype.
9683 (arm_frame_init_saved_regs): New prototype.
9684 (FRAME_INIT_SAVED_REGS): Define.
9685
61d99182
AC
96862002-01-20 Andrew Cagney <ac131313@redhat.com>
9687
9688 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9689
6aaea291
AC
96902002-01-20 Andrew Cagney <ac131313@redhat.com>
9691
9692 From Jeff Law <law@redhat.com>:
9693 * infttrace.c: Include <sys/pstat.h>.
9694 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9695 exec file if the ttrace equivalent fails.
9696
15f698d2
AC
96972002-01-20 Andrew Cagney <ac131313@redhat.com>
9698
9699 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9700 (closeLogFile): Ditto.
9701
f86ddd7c
MC
97022002-01-20 Michael Chastain <mec@shout.net>
9703
9704 * top.c (print_gdb_version): Bump copyright year to 2002.
9705
904507ce
AC
97062002-01-20 Andrew Cagney <ac131313@redhat.com>
9707
9708 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9709 Zannoni and Eli Zaretskii.
9710
d7f0b9ce
DJ
97112002-01-20 Daniel Jacobowitz <drow@mvista.com>
9712
9713 * buildsym.c: Update copyright years.
9714 * c-typeprint.c: Likewise.
9715 * dwarf2read.c: Likewise.
9716 * f-typeprint.c: Likewise.
9717 * gdbtypes.c: Likewise.
9718 * gdbtypes.h: Likewise.
9719 * hp-symtab-read.c: Likewise.
9720 * hpread.c: Likewise.
9721 * mdebugread.c: Likewise.
9722 * p-typeprint.c: Likewise.
9723
3fd3d7d2
AC
97242002-01-20 Andrew Cagney <ac131313@redhat.com>
9725
9726 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9727 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9728 byte-order selectable.
9729 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9730 * arch-utils.c: Ditto.
9731 (set_endian): Ditto.
9732 (set_endian_from_file): Ditto.
9733 * gdbserver/low-sim.c (create_inferior): Ditto.
9734 * gdbarch.sh: Ditto.
9735 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9736 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9737 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9738 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9739 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9740 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9741 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9742 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9743 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9744 macro definition.
9745 * config/mips/tm-wince.h: Remove #undef of macro
9746 TARGET_BYTE_ORDER_SELECTABLE.
9747 * config/sh/tm-wince.h: Ditto.
9748
b02dede2
DJ
97492002-01-20 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9752 member function fields. Add accessor macro
9753 TYPE_FN_FIELD_ARTIFICIAL.
9754 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9755 * c-typeprint.c (c_type_print_base): Skip artificial member
9756 functions.
9757
c3643761
DJ
97582002-01-20 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * f-typeprint.c: Delete unused function f_type_print_args.
9761 * p-typeprint.c: Delete unused function pascal_type_print_args.
9762
8176bb6d
DJ
97632002-01-20 Daniel Jacobowitz <drow@mvista.com>
9764
9765 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9766 comment. Add ``artificial'' to ``union field_location''.
9767
9768 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9769
9770 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9771 * mdebugread.c (parse_symbol): Likewise.
9772 * stabsread.c (define_symbol): Likewise.
9773 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9774 initializing TYPE_FIELD_BITPOS to n (obsolete).
9775 (hpread_doc_function_type): Likewise.
9776 * hpread.c (hpread_function_type): Likewise.
9777
7fd60527
AC
97782002-01-20 Andrew Cagney <ac131313@redhat.com>
9779
9780 * configure.in (host_makefile_frag): Only require a host makefile
9781 fragment when a native build.
9782 * configure: Re-generate.
9783
c2f05ac9
AC
97842002-01-20 Andrew Cagney <ac131313@redhat.com>
9785
9786 * doublest.h (floatformat_from_type): Declare.
9787 * doublest.c (floatformat_from_type): New function.
9788 (convert_typed_floating): Use.
9789
9790 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9791 call to function floatformat_from_type.
9792
9793 * gdbarch.sh (IEEE_FLOAT): Delete.
9794 * gdbarch.h, gdbarch.c: Re-generate.
9795 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9796 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9797 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9798 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9799 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9800 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9801 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9802 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9803 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9804 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9805 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9806 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9807
9808 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9809 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9810 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9811 * sh-tdep.c (sh_gdbarch_init): Ditto.
9812 * mips-tdep.c (mips_gdbarch_init): Ditto.
9813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9814 * cris-tdep.c (cris_gdbarch_init): Ditto.
9815
abf22e64
AJ
98162002-01-20 Jiri Smid <smid@suse.cz>
9817
9818 * configure.host, configure.tgt: Support x86-64.
9819 * NEWS: Note new target x86-64.
9820
b7c4cbf8
AJ
9821 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9822 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9823 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9824 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9825 x86-64-linux-nat.o): Fix dependencies.
9826
82600034
AC
98272002-01-19 Andrew Cagney <ac131313@redhat.com>
9828
9829 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9830 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9831 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9832 * config/sparc/xm-sun4os4.h: Delete file.
9833 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9834
bbe5c628
AC
98352002-01-19 Andrew Cagney <ac131313@redhat.com>
9836
9837 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9838 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9839 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9840 * config/i386/i386lynx.mh (XM_FILE): Delete.
9841 * config/rs6000/xm-rs6000ly.h: Delete file.
9842 * config/sparc/xm-sparclynx.h: Delete file.
9843 * config/m68k/xm-m68klynx.h: Delete file.
9844 * config/i386/xm-i386lynx.h: Delete file.
9845 * config/xm-lynx.h: Delete file.
9846 * config/djgpp/fnchange.lst: Update.
9847
f8453e34
JT
98482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9849
9850 * alpha-tdep.c (alpha_register_byte): New function.
9851 (alpha_register_raw_size): Ditto.
9852 (alpha_register_virtual_size): Ditto.
9853 (alpha_skip_prologue_internal): Renamed from
9854 alpha_skip_prologue.
9855 (alpha_skip_prologue): New version that calls
9856 alpha_skip_prologue_internal.
9857 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9858 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9859 second argument from alpha_skip_prologue.
9860 (REGISTER_BYTE): Use alpha_register_byte.
9861 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9862 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9863 (FRAMELESS_FUNCTION_INVOCATION): Use
9864 generic_frameless_function_invocation_not.
9865 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9866 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9867
52d9e613
AC
98682002-01-19 Andrew Cagney <ac131313@redhat.com>
9869
9870 * config/mips/xm-news-mips.h: Delete file.
9871 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9872
9873 * config/m88k/xm-m88k.h: Delete file.
9874 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9875 * config/m88k/xm-delta88v4.h: Ditto.
9876 * config/m88k/xm-delta88.h: Ditto.
9877
9878 * config/alpha/xm-fbsd.h: Delete file.
9879 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9880
9881 * config/sparc/xm-sparc.h: Delete file.
9882 * Makefile.in (xm-sun4os4.h): Delete dependency.
9883 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9884 * config/sparc/xm-sun4os4.h: Ditto.
9885 * config/sparc/xm-linux.h: Ditto.
9886
9887 * config/i386/xm-windows.h: Delete file.
9888
2d1b2124
AC
98892002-01-19 Andrew Cagney <ac131313@redhat.com>
9890
9891 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9892 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9893
ee1f65f0
JT
98942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9895
9896 * alpha-tdep.c (alpha_call_dummy_words): New.
9897 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9898 (CALL_DUMMY_P): Define.
9899 (CALL_DUMMY_WORDS): Define.
9900 (SIZEOF_CALL_DUMMY_WORDS): Define.
9901
98081e55
PB
99022002-01-19 Per Bothner <per@bothner.com>
9903
9904 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9905 isn't NULL, which can happen with some gcj-3.x-produced code.
9906
0d056799
JT
99072002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9908
9909 * alpha-tdep.c (alpha_register_virtual_type): New function.
9910 (alpha_init_frame_pc_first): Ditto.
9911 (alpha_fix_call_dummy): Ditto.
9912 (alpha_store_struct_return): Ditto.
9913 (alpha_extract_struct_value_address): Ditto.
9914 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9915 alpha_register_virtual_type.
9916 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9917 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9918 alpha_extract_struct_value_address.
9919 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9920 (INIT_FRAME_PC): Use init_frame_pc_noop.
9921 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9922
4604bcad
MK
99232002-01-19 Mark Kettenis <kettenis@gnu.org>
9924
9925 * i386gnu-nat.c: Include "i386-tdep.h".
9926 (fetch_fpregs): Simplify code dealing with uninitialized floating
9927 point states such that it doesn't require FP7_REGNUM.
9928
140f9984
JT
99292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9930
abf22e64
AJ
9931 * alpha-tdep.c (frame_extra_info): New.
9932 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9933 frame->extra_info.
9934 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9935 (alpha_frame_saved_pc): Use frame->extra_info.
9936 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9937 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9938 (init_extra_frame_info): Rename to...
9939 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9940 (alpha_print_extra_frame_info): New function.
140f9984
JT
9941 (alpha_frame_locals_address): Ditto.
9942 (alpha_frame_args_address): Ditto.
abf22e64 9943 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9944 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9945 alpha_frame_args_address.
abf22e64 9946 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9947 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9948 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9949 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9950 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9951 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9952
d734c450
JT
99532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9954
9955 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9956 (alpha_cannot_fetch_register): Ditto.
9957 (alpha_cannot_store_register): Ditto.
9958 (alpha_register_convertible): Ditto.
9959 (alpha_use_struct_convention): Ditto.
9960 * config/alpha/tm-alpha.h: Update copyright years.
9961 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9962 (INNER_THAN): Use core_addr_lessthan.
9963 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9964 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9965 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9966 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9967 (FRAME_CHAIN): Remove unnecessary cast.
9968
b4ceaee6
AC
99692002-01-18 Andrew Cagney <ac131313@redhat.com>
9970
9971 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9972 obsolete.
9973
0a65a603
AC
99742002-01-18 Andrew Cagney <ac131313@redhat.com>
9975
9976 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9977 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9978 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9979 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9980 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9981 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9982 * x86-64-linux-nat.c: Ditto.
9983
636a6dfc
JT
99842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9985
abf22e64 9986 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9987 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9988 (REGISTER_NAME): Define.
9989
acceddb6
JT
99902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9991
9992 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9993
ec32e4be
JT
99942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9995
9996 * alpha-tdep.c: Update copyright years.
9997 (alpha_next_pc): New function.
9998 (alpha_software_single_step): Ditto.
9999 * config/alpha/tm-alpha.h: Add prototype for
10000 alpha_software_single_step.
10001
e771a871
JT
100022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10003
10004 * alphabsd-nat.c: Update copyright years.
10005 (fill_gregset): Use regcache_collect.
10006 (fill_fpregset): Likewise.
10007 (fetch_inferior_registers): Only fetch integer registers
10008 if requested to do so.
10009 (store_inferior_registers): Only store integer registers
10010 if requested to do so.
10011
7708fa01
AC
100122002-01-17 Andrew Cagney <ac131313@redhat.com>
10013
10014 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10015 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10016 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10017 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10018 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10019 * config/arm/linux.mh (XDEPFILES): Delete.
10020 * config/arm/nbsd.mh (XDEPFILES): Delete.
10021 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10022 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10023 * config/i386/i386m3.mh (XDEPFILES): Delete.
10024 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10025 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10026 * config/i386/fbsd.mh (XDEPFILES): Delete.
10027 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10028 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10029 * config/i386/i386v4.mh (XDEPFILES): Delete.
10030 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10031 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10032 * config/i386/i386aix.mh (XDEPFILES): Delete.
10033 * config/i386/go32.mh (XDEPFILES): Delete.
10034 * config/i386/cygwin.mh (XDEPFILES): Delete.
10035 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10036 * config/i386/i386mach.mh (XDEPFILES): Delete.
10037 * config/i386/i386v32.mh (XDEPFILES): Delete.
10038 * config/i386/linux.mh (XDEPFILES): Delete.
10039 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10040 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10041 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10042 * config/i386/i386sco.mh (XDEPFILES): Delete.
10043 * config/i386/i386v.mh (XDEPFILES): Delete.
10044 * config/i386/nbsd.mh (XDEPFILES): Delete.
10045 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10046 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10047 * config/i386/symmetry.mh (XDEPFILES): Delete.
10048 * config/i386/obsd.mh (XDEPFILES): Delete.
10049 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10050 * config/ia64/linux.mh (XDEPFILES): Delete.
10051 * config/ia64/aix.mh (XDEPFILES): Delete.
10052 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10053 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10054 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10055 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10056 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10057 * config/m68k/linux.mh (XDEPFILES): Delete.
10058 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10059 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10060 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10061 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10062 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10063 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10064 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10065 * config/m88k/delta88.mh (XDEPFILES): Delete.
10066 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10067 * config/m88k/m88k.mh (XDEPFILES): Delete.
10068 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10069 * config/mips/linux.mh (XDEPFILES): Delete.
10070 * config/mips/irix6.mh (XDEPFILES): Delete.
10071 * config/mips/irix5.mh (XDEPFILES): Delete.
10072 * config/mips/irix4.mh (XDEPFILES): Delete.
10073 * config/mips/irix3.mh (XDEPFILES): Delete.
10074 * config/mips/decstation.mh (XDEPFILES): Delete.
10075 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10076 (NATDEPFILES): Move core-aout.o to here.
10077 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10078 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10079 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10080 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10081 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10082 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10083 * config/pa/hpux11.mh (XDEPFILES): Delete.
10084 * config/powerpc/aix.mh (XDEPFILES): Delete.
10085 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10086 * config/powerpc/linux.mh (XDEPFILES): Delete.
10087 * config/romp/rtbsd.mh: Rename XDEPFILES.
10088 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10089 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10090 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10091 * config/s390/s390.mh (XDEPFILES): Delete.
10092 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10093 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10094 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10095 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10096 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10097 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10098 * config/sparc/linux.mh (XDEPFILES): Delete.
10099 * config/vax/vaxult.mh (XDEPFILES): Delete.
10100 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10101 * Makefile.in (DEPFILES): Remove XDEPFILES.
10102
375fc983
AC
101032002-01-17 Andrew Cagney <ac131313@redhat.com>
10104
10105 * utils.c (internal_verror): Fix comments, default is yes not no.
10106 Update queries to match. Default to quit and dump core.
10107
8926118c
AC
101082002-01-17 Andrew Cagney <ac131313@redhat.com>
10109
10110 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10111 copyright.
10112 * defs.h, event-top.c, gdbcmd.h: Ditto.
10113 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10114 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10115 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10116 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10117 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10118 * mi/mi-main.c:Ditto.
10119
10120 * stack.c, symfile.c: Update copyright.
10121
45b7b345
DJ
101222002-01-17 Daniel Jacobowitz <drow@mvista.com>
10123
db728ff7
DJ
10124 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10125 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10126 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10127 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10128
db728ff7
DJ
101292002-01-17 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10132 * gdbserver/low-lynx.c (myattach): Likewise.
10133 * gdbserver/low-nbsd.c (myattach): Likewise.
10134 * gdbserver/low-sim.c (myattach): Likewise.
10135 * gdbserver/low-sparc.c (myattach): Likewise.
10136 * gdbserver/low-sun3.c (myattach): Likewise.
10137
10138 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10139
db728ff7 10140 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10141 (main): Handle "--attach".
10142
8de3c354
AC
101432002-01-16 Andrew Cagney <ac131313@redhat.com>
10144
10145 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10146 maintainer.
10147
b0129042
DJ
101482002-01-15 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * c-typeprint.c (is_type_conversion_operator): Add additional
10151 check for non-conversion operators.
10152
ba8679fb 101532002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10154
10155 * linux-proc.c: Add "info proc" command, a la procfs.c.
10156 (read_mapping): New function, abstract and re-use code.
10157 (linux_find_memory_regions): Use new func read_mapping.
10158 (linux_info_proc_cmd): New function, implement "info proc".
10159 (_initialize_linux_proc): Add new command "info proc".
10160
e4f9b4d5
MS
101612002-01-15 Michael Snyder <msnyder@redhat.com>
10162
10163 * symfile.c (generic_load): Use bfd_map_over_sections method
10164 instead of manipulating bfd structure members directly.
10165 (add_section_size_callback): New function, bfd sections callback
10166 used by generic_load.
10167 (load_sections_callback): New function, bfd sections callback
10168 used by generic_load.
10169
08cf96df
EZ
101702002-01-15 Elena Zannoni <ezannoni@redhat.com>
10171
abf22e64 10172 [Based on work by Jim Blandy]
08cf96df
EZ
10173 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10174 (builtin_type_vec128): Export.
10175 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10176 types.
10177 (builtin_type_vec128): New builtin type for 128 bit vector
10178 registers.
10179 (build_gdbtypes): Initialize builtin_type_v16qi and
10180 builtin_type_v8hi. Create the vec128 register builtin type
10181 structure.
10182 (build_builtin_type_vec128): New function.
abf22e64 10183 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10184 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10185 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10186 AltiVec register to new builtin type.
10187
d7242108
DJ
101882001-01-15 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10191 to make_cv_type.
10192
4ee3352d
AC
101932002-01-14 Andrew Cagney <ac131313@redhat.com>
10194
10195 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10196 CLEAN_UP_REGISTER_VALUE.
10197 * regcache.c (supply_register): Update only call.
10198
f015b2e7
AC
101992002-01-14 Andrew Cagney <ac131313@redhat.com>
10200
10201 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10202 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10203 a29k-*-vxworks* targets as obsolete.
10204
356ae49d
MS
102052002-01-14 Michael Snyder <msnyder@redhat.com>
10206
10207 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10208 until we can resolve portability issues.
10209 * gregset.h: Remove references to fpxregs.
10210 * gcore.c (gcore_command): Initialize note_sec to NULL.
10211
ade8f45e
AC
102122002-01-13 Andrew Cagney <ac131313@redhat.com>
10213
10214 * signals.c (target_signal_to_name): Rewrite. Only use
10215 signals[].name when in bounds and non-NULL.
abf22e64 10216
89c49e7a
AC
102172002-01-13 Andrew Cagney <ac131313@redhat.com>
10218
10219 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10220 * signals.c (target_signal_to_name): Verify that SIG is within the
10221 bounds of the signals array.
10222
4daa9f9f
AC
102232002-01-13 Andrew Cagney <ac131313@redhat.com>
10224
10225 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10226
ba4bbdcb
KS
102272002-01-13 Keith Seitz <keiths@redhat.com>
10228
10229 * stack.c (print_frame_info_base): Print the frame's pc
10230 only if when print_frame_info_listing_hook is not defined.
10231
575bbeb6
KS
102322002-01-13 Keith Seitz <keiths@redhat.com>
10233
10234 * varobj.c (varobj_set_value): Make sure that there were no
10235 errors evaluating the object before attempting to set its
10236 value.
10237 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10238 so this offset adjustment is no longer necessary.
10239 (create_child): Don't set the error flag if the child is
10240 a CPLUS_FAKE_CHILD.
10241 (value_of_child): If value_fetch_lazy fails, return NULL
10242 so that callers will be notified that an error occurred.
10243 (c_value_of_variable): Delay check of variable's validity
10244 until later. We actually want all structs and unions to have
10245 the value "{...}".
10246 Do not return "???" for variables which could not be evaluated.
10247 This error condition must be returned to the caller so that it
10248 can get the error condition from gdb.
10249 (cplus_name_of_child): Adjust index for vptr before figuring
10250 out the name of the child.
10251 (cplus_value_of_child): If a child's (real) parent is not valid,
10252 don't even bother trying to give a value for it. Just return
10253 an error. Change all instances in this function.
10254 (cplus_type_of_child): If our parent is one of the "fake"
10255 parents, we need to get at the type of the real parent, and
10256 derive the child's true type using this information.
10257
b76898ab
AC
102582002-01-13 Andrew Cagney <ac131313@redhat.com>
10259
10260 From 2002-01-09 John Marshall <johnm@falch.net>:
10261 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10262 sources.redhat.com, and tweak some related URLs which had
10263 suffered from linkrot.
10264
b6649e88
AC
102652002-01-13 Andrew Cagney <ac131313@redhat.com>
10266
10267 From Jeff law:
10268 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10269 structures passed in registers.
10270
82cc5033
EZ
102712002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10272
10273 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10274 white space which prevented compilation. Reported by DSK
10275 <dsk@student.unsw.edu.au>.
10276
ba5f2f8a
MS
102772002-01-11 Michael Snyder <msnyder@redhat.com>
10278
fbd35540
MS
10279 * symfile.c (build_section_addr_info_from_section_tab):
10280 Use bfd access method instead of manipulating bfd directly.
10281 (syms_from_objfile): Ditto.
10282 (simple_overlay_update_1): Ditto.
10283 (simple_overlay_update): Ditto.
10284 (generic_load): Ditto.
10285 (overlay_unmapped_address): FIXME comment, bfd access methods.
10286 (sections_overlap): FIXME comment, bfd access methods.
10287 (pc_in_mapped_range): FIXME comment, bfd access methods.
10288 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10289 (section_is_mapped): FIXME comment, bfd access methods.
10290 (section_is_overlay): FIXME comment, bfd access methods.
10291
ba5f2f8a
MS
10292 * symfile.c (generic_load): Whitespace and long line cleanups.
10293 Remove duplicate variable, change several local variables to
10294 more appropriate data types.
10295 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10296
17df2af6
AC
102972002-01-12 Andrew Cagney <ac131313@redhat.com>
10298
10299 From Peter Schauer:
10300 * language.c (longest_local_hex_string_custom): Use phex_nz to
10301 convert NUM to a hex string.
10302
ec920329
EZ
103032002-01-12 Elena Zannoni <ezannoni@redhat.com>
10304
10305 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10306 the function.
538a76d6 10307 Update Copyright year.
ec920329 10308
3abd2e01
AC
103092002-01-12 Andrew Cagney <ac131313@redhat.com>
10310
10311 * language.c (longest_raw_hex_string): Delete unused function.
10312
b21b22e0
PS
103132002-01-11 Petr Sorfa <petrs@caldera.com>
10314
10315 * MAINTAINERS (write-after-approval): Add myself.
10316 * dwarf2read.c (read_tag_string_type): Handling of
10317 DW_AT_byte_size.
10318 (read_tag_string_type): FORTRAN fix to prevent propagation of
10319 first string size.
10320 (set_cu_language): Handling of DW_LANG_Fortran95
10321
747fe712
RE
103222002-01-11 Richard Earnshaw <rearnsha@arm.com>
10323
10324 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10325 GETPID(inferior_ptid).
10326 (store_inferior_registers): Likewise.
10327
f1bea926
JM
103282002-01-10 Jason Merrill <jason@redhat.com>
10329
10330 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10331 Fix DW_OP_minus.
10332
ae940673
AC
103332002-01-10 Andrew Cagney <ac131313@redhat.com>
10334
10335 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10336 and bfd/elf32-sh-nbsd.c.
10337
00546b04
MS
103382002-01-10 Michael Snyder <msnyder@redhat.com>
10339
352ed7b4
MS
10340 * NEWS: Mention --pid and corefile/proc-id behavior change.
10341
c18be923
MS
10342 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10343 * gcore.c: Include cli/cli-decode.h instead of command.h.
10344
00546b04
MS
10345 * main.c (captured_main): Add new command line option "--pid".
10346 If the second command line argument (following the symbol-file)
10347 begins with a digit, try to attach to it before trying to open
10348 it as a corefile.
10349 (print_gdb_help): Document the "--pid" argument.
10350
db60ec62
EZ
103512002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10352
10353 * completer.c (command_completer): New function.
10354
10355 * completer.h <command_completer>: Add prototype.
10356
10357 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10358 completer for the "help" command.
10359
39c22d1a
JM
103602002-01-09 Jason Merrill <jason@redhat.com>
10361
10362 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10363
c564377f
MS
103642002-01-09 Michael Snyder <msnyder@redhat.com>
10365
975aec09
MS
10366 * i386-linux-nat.c (fill_fpxregset): Make global.
10367 (store_fpxregset): Ditto.
10368
db4a10fa
MS
10369 * gregset.h (gdb_fpxregset_t): Define.
10370 (supply_fpxregset): Prototype.
10371 (fill_fpxregset): Prototype.
10372
c564377f
MS
10373 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10374
c3d45d70
RE
103752002-01-09 Richard Earnshaw <rearnsha@arm.com>
10376
10377 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10378 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10379 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10380
fcc87af1
AC
103812002-01-09 Andrew Cagney <ac131313@redhat.com>
10382
10383 * MAINTAINERS: Update target maintainer rules so that any
10384 Maintainer can approve a tested patch for a maintenance-only
10385 target.
10386
dd96c05b
RE
103872002-01-09 Richard Earnshaw <rearnsha@arm.com>
10388
d4297db9 10389 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10390
d4297db9 10391 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10392 IN_SIGTRAMP.
10393
145fdc6e
MS
103942002-01-08 Michael Snyder <msnyder@redhat.com>
10395
10396 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10397 real name of the executable, rather than the /proc name.
10398
be4d1333
MS
103992002-01-03 Michael Snyder <msnyder@redhat.com>
10400
10401 Implement a "generate-core-file" command in gdb, save target state.
10402 * gcore.c: New file. Implement new command 'generate-core-file'.
10403 Save a corefile image of the current state of the inferior.
10404 * linux-proc.c: Add linux-specific code for saving corefiles.
10405 * target.h (struct target_ops): Add new target vectors for saving
10406 corefiles; to_find_memory_regions and to_make_corefile_notes.
10407 (target_find_memory_regions): New macro.
10408 (target_make_corefile_notes): New macro.
10409 * target.c (update_current_target): Inherit new target methods.
10410 (dummy_find_memory_regions): New place-holder method.
10411 (dummy_make_corefile_notes): New place-holder method.
10412 (init_dummy_target): Initialize new dummy target vectors.
10413 * exec.c (exec_set_find_memory_regions): New function.
10414 Allow the exec_ops vector for memory regions to be taken over.
10415 (exec_make_note_section): New function, target vector method.
10416 * defs.h (exec_set_find_memory_regions): Export prototype.
10417 * procfs.c (proc_find_memory_regions): New function, corefile method.
10418 (procfs_make_note_section): New function, corefile method.
10419 (init_procfs_ops): Set new target vector pointers.
10420 (find_memory_regions_callback): New function.
10421 (procfs_do_thread_registers): New function.
10422 (procfs_corefile_thread_callback): New function.
10423 * sol-thread.c (sol_find_memory_regions): New function.
10424 (sol_make_note_section): New function.
10425 (init_sol_thread_ops): Initialize new target vectors.
10426 * inftarg.c (inftarg_set_find_memory_regions): New function.
10427 Allow to_find_memory_regions vector to be taken over.
10428 (inftarg_set_make_corefile_notes): New function.
10429 Allow to_make_corefile_notes vector to be taken over.
10430 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10431 interface layer if not target_has_execution (may be a corefile).
10432 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10433 * config/sparc/sun4sol2.mh: Ditto.
10434 * config/alpha/alpha-linux.mh: Ditto.
10435 * config/arm/linux.mh: Ditto.
10436 * config/i386/x86-64linux.mh: Ditto.
10437 * config/ia64/linux.mh: Ditto.
10438 * config/m68k/linux.mh: Ditto.
10439 * config/mips/linux.mh: Ditto.
10440 * config/powerpc/linux.mh: Ditto.
10441 * config/sparc/linux.mh: Ditto.
10442
c6b92abd
MS
104432002-01-07 Michael Snyder <msnyder@redhat.com>
10444
10445 * arm-linux-nat.c: Remove references to regcache.c internal data
10446 (registers[] and register_valid[]).
10447
4b09dc8c
MS
104482002-01-07 Michael Snyder <msnyder@redhat.com>
10449
abf22e64
AJ
10450 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10451 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10452 symbol file and shlibs.
10453 * Makefile.in: Add rule for linux-proc.o.
10454 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10455 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10456 * config/arm/linux.mh: Ditto.
10457 * config/i386/linux.mh: Ditto.
10458 * config/i386/x86-64linux.mh: Ditto.
10459 * config/ia64/linux.mh: Ditto.
10460 * config/m68k/linux.mh: Ditto.
10461 * config/mips/linux.mh: Ditto.
10462 * config/powerpc/linux.mh: Ditto.
10463 * config/sparc/linux.mh: Ditto.
10464
c25b74ac
PM
104652002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10466
10467 * win32-nat.c: Add i386-tdep.h dependency.
10468
94cd915f
MS
104692002-01-07 Michael Snyder <msnyder@redhat.com>
10470
c7cccb76
MS
10471 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10472 instead of bfd_get_arch_size. Don't bail out just because
10473 there's no exec_bfd.
abf22e64 10474
34c0bd93
MS
10475 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10476 * p-valprint.c (pascal_object_print_value): Ditto.
10477 * somread.c (som_symtab_read): Ditto.
10478 * symfile.c (simple_free_overlay_region_table): Ditto.
10479 * valops.c (value_assign): Ditto.
10480
21c1c920
MS
10481 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10482 use tilde_expand and strerror for opening save-tracepoints file.
10483
5bbd998e
MS
10484 * thread-db.c (thread_db_new_objfile): Indendation fix.
10485
94cd915f
MS
10486 * infptrace.c (GDB_MAX_ALLOCA): New define.
10487 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10488 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10489 can be overridden with whatever value is appropriate to the host).
10490 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10491 alloca to allocate potentially large buffer.
10492 * rs6000-nat.c (child_xfer_memory): Ditto.
10493 * symm-nat.c (child_xfer_memory): Ditto.
10494 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10495
494e8a93
JSC
104962002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10497
10498 From Nick Clifton <nickc@redhat.com>
10499 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10500
d0e1d48e
MS
105012002-01-07 Michael Snyder <msnyder@redhat.com>
10502
abf22e64 10503 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10504 Don't use exec_bfd if it's NULL.
10505
290b2c7a
MK
105062002-01-06 Mark Kettenis <kettenis@gnu.org>
10507
abf22e64 10508 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10509
aef21287
AC
105102002-01-06 Andrew Cagney <ac131313@redhat.com>
10511
10512 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10513 * gnu-nat.c: Ditto.
10514
30efa627
AC
105152002-01-06 Andrew Cagney <ac131313@redhat.com>
10516
10517 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10518 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10519 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10520 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10521 z8k-coff have not been multi-arched. Update z8k-coff build
10522 status.
10523
9b4ff276
AC
105242002-01-06 Andrew Cagney <ac131313@redhat.com>
10525
10526 * MAINTAINERS: Mark a29k target as obsolete.
10527 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10528 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10529 comments.
10530 * NEWS: Note that a29k targets are obsolete.
10531 * a29k-tdep.c: Mark as obsolete.
10532 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10533 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10534 a29k-*-vxworks* targets as obsolete.
10535 * remote-adapt.c: Obsolete.
10536 * remote-eb.c: Obsolete.
10537 * remote-mm.c: Obsolete.
10538 * remote-udi.c: Obsolete.
10539 * config/a29k/a29k-udi.mt: Obsolete.
10540 * config/a29k/a29k.mt: Obsolete.
10541 * config/a29k/tm-a29k.h: Obsolete.
10542 * config/a29k/tm-vx29k.h: Obsolete.
10543 * config/a29k/vx29k.mt: Obsolete.
10544
a9011d31
AC
105452002-01-05 Andrew Cagney <ac131313@redhat.com>
10546
10547 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10548 with BFD_ENDIAN_BIG.
10549
9299404e
AC
105502002-01-05 Andrew Cagney <ac131313@redhat.com>
10551
10552 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10553 * configure, config.in: Re-generate.
10554 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10555 * defs.h: Do not include <endian.h>.
10556
7e89e357
JT
105572002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10558
10559 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10560 * config.in: Regenerate.
10561 * configure.in: Update copyright years.
10562 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10563 * configure: Regenerate.
10564 * i386bsd-nat.c: Update copyright years.
10565 (fill_gregset): Use regcache_collect.
10566 (fetch_inferior_registers): Only fetch integer registers
10567 if requested to do so. Add support for XMM registers
10568 using PT_GETXMMREGS.
10569 (store_inferior_registers): Only store integer registers
10570 if requested to do so. Add support for XMM registers
10571 using PT_SETXMMREGS.
10572 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10573 (store_inferior_registers): Remove.
10574 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10575 (fetch_elfcore_registers): New function.
10576 (i386nbsd_elfcore_fns): New.
10577 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10578 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10579 i386bsd-nat.o.
10580 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10581 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10582 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10583 * config/i386/tm-nbsd.h: Update copyright years.
10584 (HAVE_SSE_REGS): Define.
10585 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10586 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10587 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10588 (SIGCONTEXT_PC_OFFSET): Remove.
10589 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10590
a752853e
AC
105912002-01-05 Andrew Cagney <ac131313@redhat.com>
10592
10593 * configure.tgt: Remove powerpc-*-macos* target.
10594 * config/m68k/xm-mpw.h: Delete file.
10595 * config/xm-mpw.h: Delete file.
10596 * ser-mac.c: Delete file.
10597 * mpw-make.sed: Delete file.
10598 * mpw-config.in: Delete file.
10599 * mac-xdep.c: Delete file.
10600 * mac-gdb.r: Delete file.
10601 * mac-defs.h: Delete file.
10602 * mac-nat.c: Delete file.
10603 * config/powerpc/macos.mh: Delete file.
10604 * config/powerpc/macos.mt: Delete file.
10605 * config/powerpc/nm-macos.h: Delete file.
10606 * config/powerpc/tm-macos.h: Delete file.
10607 * source.c (openp, open_source_file): Remove obsolete code.
10608 * top.c (gdb_readline): Ditto.
10609 * utils.c (query): Ditto.
10610 * event-top.c (display_gdb_prompt): Ditto.
10611 * Makefile.in (ser-mac.o): Delete obsolete target.
10612 * NEWS: Update.
10613
d7449b42
AC
106142002-01-04 Andrew Cagney <ac131313@redhat.com>
10615
10616 * defs.h (BIG_ENDIAN): Delete macro definition.
10617 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10618 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10619 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10620 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10621 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10622 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10623 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10624 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10625 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10626 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10627 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10628 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10629 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10630 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10631 * gdbarch.c: Re-generate.
10632
356374e8
DJ
106332002-01-04 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10636 for core files.
10637
a2b8f8f8
JT
106382002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10639
10640 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10641
12466af9
AC
106422002-01-04 Andrew Cagney <ac131313@redhat.com>
10643
10644 * value.h (value_ptr): Delete typedef.
10645
3549ab40
JT
106462002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10647
10648 * i386nbsd-nat.c: Update copyright years.
10649 Include i386-tdep.h.
10650
fedbd091
EZ
106512002-01-04 Elena Zannoni <ezannoni@redhat.com>
10652
10653 * stabsread.c: Update copyright years.
10654
10655 From Debashis Mahata <debashis.mahata@wipro.com>:
10656 (read_struct_fields): Deal with Sun C compiler erroneous stab
10657 output for structs and unions.
fec8b34f 10658 Fix PR gdb/269.
fedbd091 10659
eb43544b
DJ
106602002-01-04 Daniel Jacobowitz <drow@mvista.com>
10661
10662 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10663 prototype.
10664
1514d34e
DJ
106652002-01-04 Daniel Jacobowitz <drow@mvista.com>
10666
10667 * cp-abi.c: Fix whitespace.
10668 (baseclass_offset): New wrapper function.
10669 * cp-abi.h (baseclass_offset): Add prototype.
10670 (struct cp_abi_ops): Add baseclass_offset pointer.
10671
10672 * valops.c (vb_match): Move to...
10673 * gnu-v2-abi.c (vb_match): here.
10674 * valops.c (baseclass_offset): Move to...
10675 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10676
10677 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10678
10679 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10680 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10681 * hpacc-abi.c (init_hpacc_ops): Likewise.
10682
7f8c9282
DJ
106832002-01-04 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * valops.c (find_overload_match): Accept obj as a
10686 reference parameter. Update it before returning.
10687 * value.h (find_overload_match): Update prototype.
10688 * eval.c (evaluate_subexp_standard): Pass object to
10689 find_overload_match by reference.
10690
f23631e4
AC
106912002-01-03 Andrew Cagney <ac131313@redhat.com>
10692
10693 * valarith.c: Replace value_ptr with struct value pointer. Remove
10694 register attribute from value declarations.
10695 * valops.c: Ditto.
10696 * value.h: Ditto.
10697 * scm-lang.c (scm_lookup_name): Ditto.
10698
79e10fab 106992002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10700
79e10fab
AC
10701 Abstract the functionality of iterating over mapped memory
10702 regions into a general purpose iterator function.
abf22e64 10703 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10704 iterator for memory sections.
10705 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10706 (solib_mappings_callback): New function, callback for above.
10707 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10708 (info_mappings_callback): New function, callback for above.
10709
10710 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10711
c5ad026a
MK
107122002-01-01 Mark Kettenis <kettenis@gnu.org>
10713
d2a7c97a
MK
10714 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10715 * i386-tdep.c: Include "elf-bfd.h".
10716 (process_note_abi_tag_sections): New function.
10717 (i386_gdbarch_init): Add code to recognize various OS/ABI
10718 combinations.
10719
c5ad026a
MK
10720 * maint.c (_initialize_maint_cmds): Add missing \ in
10721 string-literal.
10722
a1a5b71e 10723For older changes see ChangeLog-2001
c906108c
SS
10724\f
10725Local Variables:
10726mode: change-log
10727left-margin: 8
10728fill-column: 74
10729version-control: never
10730End:
This page took 1.030078 seconds and 4 git commands to generate.