Index: ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ebba8386
AC
12002-08-23 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4 (DEPRECATED_STORE_RETURN_VALUE): New method.
5 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
6 * gdbarch.h, gdbarch.c: Re-generate.
7
8 * values.c (set_return_value): Pass current_regcache to
9 STORE_RETURN_VALUE.
10 * arch-utils.h (legacy_store_return_value): Declare.
11 * arch-utils.c (legacy_store_return_value): New function.
12 (legacy_extract_return_value): Update parameters.
13
14 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
15 STORE_RETURN_VALUE.
16 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
17 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
18 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
19 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
20 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
21 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
22 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
23 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
24 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
25 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
26
27 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
28 * i386-tdep.c (i386_extract_return_value): Update.
29 * arch-utils.c (legacy_extract_return_value): Update.
30 * frv-tdep.c (frv_gdbarch_init): Update.
31 * cris-tdep.c (cris_gdbarch_init): Update.
32 * d10v-tdep.c (d10v_gdbarch_init): Update.
33 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
34 * m68k-tdep.c (m68k_gdbarch_init): Update.
35 * mcore-tdep.c (mcore_gdbarch_init): Update.
36 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
37 * s390-tdep.c (s390_gdbarch_init): Update.
38 * sparc-tdep.c (sparc_gdbarch_init): Update.
39 * sh-tdep.c (sh_gdbarch_init): Update.
40 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
41 * v850-tdep.c (v850_gdbarch_init): Update.
42 * avr-tdep.c (avr_gdbarch_init): Update.
43 * ia64-tdep.c (ia64_gdbarch_init): Update.
44 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
45 * vax-tdep.c (vax_gdbarch_init): Update.
46 * alpha-tdep.c (alpha_gdbarch_init): Update.
47 * arm-tdep.c (arm_gdbarch_init): Update.
48 * mips-tdep.c (mips_gdbarch_init): Update.
49 * i386-tdep.c (i386_gdbarch_init): Update.
50
5bd8c6d0
AC
512002-08-23 Andrew Cagney <ac131313@redhat.com>
52
53 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
54 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
55
e73e1724
MK
562002-08-24 Mark Kettenis <kettenis@gnu.org>
57
58 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
59 problems.
60
3e6564e1
JB
612002-08-23 Joel Brobecker <brobecker@gnat.com>
62
63 * infrun.c (handle_inferior_event): Move a comment outside of a
64 function call, in order to avoid indent reformatting this part
65 of the code in an unreadable way.
66
81d0cc19
GS
672002-08-23 Grace Sainsbury <graces@redhat.com>
68
69 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
70 when breakpoints fail. Move general breakpoint error messages to
71 insert_breakpoints.
72 * breakpoint.c (insert_breakpoints): Change warnings when
73 breakpoints are nto inserted to specify the type. Remove call to
74 memory_error when hardware breakpoints can't be inserted. Remove
75 multiple calls to warning so all messages are sent to the user at
76 once.
77 (delete_breakpoints): Make insert error messsages more explicit.
78
17574093
DJ
792002-08-23 Daniel Jacobowitz <drow@mvista.com>
80
81 * ChangeLog: Move gdbserver entries after GDB 5.2 to
82 gdbserver/ChangeLog.
83
8acc2935
MK
842002-08-23 Mark Kettenis <kettenis@gnu.org>
85
dfe01d39
MK
86 * i386-tdep.c: Include "objfiles.h".
87 (i386_svr4_init_abi): Set in_solib_call_trampoline and
88 skip_trampoline_code.
89 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
90 (CPLUS_MARKER): Define to '.'.
91
8acc2935
MK
92 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
93 member.
94 (linux_corefile_thread_callback): Increase args->num_notes.
95 (linux_make_note_section): Initialize thread_args.num_notes, and
96 use it to determine whether notes for any threads were created.
97
640b227f
JB
982002-08-23 Donn Terry <dterry@microsoft.com>
99
100 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
101 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
102 and PCUNKILL.
103 (write_with_trace): Conditionalize out the switch branch handling
104 PCSHOLD if the corresponding macro is not defined. Likewise for
105 PRSABORT and PRSTOP.
106 This change will be needed by the Interix port.
107
96ff0de4
EZ
1082002-08-22 Elena Zannoni <ezannoni@redhat.com>
109
110 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
111 ev_offset fields.
112 (skip_prologue): Add support for BookE/e500 instructions.
113 (e500_extract_return_value): New function.
114 (frame_get_saved_regs): Add support for saving ev registers and
115 pseudo gpr's.
116 (e500_store_return_value): New function.
117 (rs6000_gdbarch_init): Move up default intializations of
118 deprecated_extract_return_value and store_return_value. Overwrite
119 init of store_return_value with e500 specific version.
120 Set extract_return_value for e500.
121
fbefca5b
EZ
1222002-08-22 Elena Zannoni <ezannoni@redhat.com>
123
124 * blockframe.c (generic_call_dummy_register_unwind): Use
125 regcache_cooked_read to catch cases in which the variable is
126 stored in a pseudo register.
127
4d210288
AC
1282002-08-22 Andrew Cagney <cagney@redhat.com>
129
130 * NEWS: Mention that the i960 has been made obsolete.
131 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
132 i960-tdep.c
133 (remote-nrom.o): Obsolete target.
134 (remote-nindy.o, i960-tdep.o): Ditto.
135 * remote-nrom.c: Make file obsolete.
136 * remote-nindy.c, remote-vx960.c: Ditto.
137 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
138 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
139 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
140 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
141 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
142 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
143 i960-*-vxworks* obsolete.
144 * MAINTAINERS: Note that the i960 is obsolete.
145
6c0c456d
CV
1462002-08-21 Corinna Vinschen <vinschen@redhat.com
147
148 * aix-thread.c (aix_thread_detach): Disable thread debugging on
149 detach to allow reinitialization.
150
9f9d12b3
AC
1512002-08-22 Andrew Cagney <ac131313@redhat.com>
152
153 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
154 attempt).
155
ebeb39fe
JB
1562002-08-22 Jim Blandy <jimb@redhat.com>
157
158 * coffread.c (coff_symfile_read): Don't try to read the line
159 number table from disk if the image file doesn't have a symbol
160 table; we'll never actually look at the info anyway, and Windows
161 ships DLL's with bogus file offsets for the line number data.
162
5bf1c677
EZ
1632002-08-21 Elena Zannoni <ezannoni@redhat.com>
164
165 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
166 an e500 executable.
167
71b8ef93
MS
1682002-08-21 Michael Snyder <msnyder@redhat.com>
169
170 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
171 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
172 (DEFAULT_MIPS_TYPE): Delete unused macro.
173 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
174 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 175
d174216d
JB
1762002-08-21 Jim Blandy <jimb@redhat.com>
177
178 * valops.c (value_cast): Simplify and correct logic for doing a
179 static cast from a pointer to a base class to a pointer to a
180 derived class.
181
0ab7a791
AC
1822002-08-21 Andrew Cagney <ac131313@redhat.com>
183
184 * infcmd.c (default_print_registers_info): Replace
185 do_registers_info.
186 (registers_info): Use gdbarch_print_registers_info instead of
187 DO_REGISTERS_INFO.
188 * inferior.h (default_print_registers_info): Replace
189 do_registers_info.
190 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
191 (DO_REGISTERS_INFO): Change to a predicate function.
192 * gdbarch.h, gdbarch.c: Regenerate.
193
e23792cc
KS
1942002-08-21 Keith Seitz <keiths@redhat.com>
195
196 * gdb-events.sh: Add target-changed event.
197 * gdb-events.c: Regenerated.
198 * gdb-events.c: Regenerated.
199 * valops.c (value_assign): Add target-changed event notification
200 to inlval_register, lval_memory, and lval_reg_frame_relative.
201
9fb14e79
JB
2022002-08-21 Joel Brobecker <brobecker@gnat.com>
203
204 * NEWS: Add an entry regarding the improvement of the next/step
205 operation on Alpha Tru64 multi-processor machines.
206
6d39a69f
AC
2072002-08-21 Andrew Cagney <ac131313@redhat.com>
208
72acd513
AC
209 * Makefile.in: Update dependencies for mi/ cli/ and tui/
210 directores.
342af04b 211 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
212 * Makefile.in (install-gdbtk): Move to install section.
213 (rdi-share/libangsd.a): Move to end of file.
214
fa5f27c7
AC
2152002-08-19 Andrew Cagney <ac131313@redhat.com>
216
217 * frame.c (frame_register_unwind): When a register, set addrp to
218 the register's byte.
219
5a89d8aa
MS
2202002-08-20 Michael Snyder <msnyder@redhat.com>
221
222 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
223 used locally, so move them from the target machine header to here.
224 (mips_set_processor_type, mips_register_name, mips32_next_pc,
225 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
226 Make static.
227 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
228
822e978b
AC
2292002-08-20 Andrew Cagney <cagney@redhat.com>
230
231 * NEWS: Mention that the Apollo line was made obsolete.
232 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
233 m68*-hp-hpux* obsolete.
234 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
235 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
236 * buildsym.c (make_blockvector): Make static.
237 * buildsym.h (make_blockvector): Make extern declaration obsolete.
238 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
239 (ALLDEPFILES): Remove dstread.c.
240 (dstread.o): Obsolete make rule.
241 * dstread.c: Makefile obsolete.
242 * dst.h: Ditto.
243 * config/m68k/hp300hpux.mt: Ditto.
244 * config/m68k/hp300hpux.mh: Ditto.
245 * config/m68k/hp300bsd.mt: Ditto.
246 * config/m68k/hp300bsd.mh: Ditto.
247 * config/m68k/apollo68b.mt: Ditto.
248 * config/m68k/apollo68v.mh: Ditto.
249 * config/m68k/apollo68b.mh: Ditto.
250
e41b17f0
MS
2512002-08-20 Michael Snyder <msnyder@redhat.com>
252
253 * mips-tdep.c (mips_in_return_stub): Make static.
254 (mips_gdbarch_init): Set in_solib_return_trampoline.
255 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
256
d50355b6
MS
2572002-08-20 Michael Snyder <msnyder@redhat.com>
258
259 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
260 * gdbarch.c, gdbarch.h: Regenerate.
261 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
262 Add.
263 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
264
757a7cc6
MS
2652002-08-20 Michael Snyder <msnyder@redhat.com>
266
267 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
268 (mips_gdbarch_init): Set skip_trampoline_code,
269 in_solib_call_trampoline.
270 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
271 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
272
c8001721
EZ
2732002-08-20 Elena Zannoni <ezannoni@redhat.com>
274
275 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
276
277 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
278 vector type for ev registers.
279 (e500_pseudo_register_read): New function.
280 (e500_pseudo_register_write): New function.
281 (e500_dwarf2_reg_to_regnum): New function.
282 (PPC_UISA_NOFP_SPRS): New macro.
283 (PPC_EV_REGS): New macro.
284 (PPC_GPRS_PSEUDO_REGS): New macro.
285 (registers_e500): New register set for e500.
286 (variants): Add e500 variant.
287 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
288 before setting architectural dependent variations. Initialize ev
289 registers numbers. Add case for e500 architecture. Set the
290 number of pseudo registers.
291
64366f1c
EZ
2922002-08-20 Elena Zannoni <ezannoni@redhat.com>
293
294 * rs6000-tdep.c: Clean up comments.
295
7e78f0ca
AC
2962002-08-20 Andrew Cagney <cagney@redhat.com>
297
298 * h8300-tdep.c: Re-indent file.
299
697f7479
JB
3002002-08-20 Jim Blandy <jimb@redhat.com>
301
302 * Makefile.in (LDFLAGS): Allow the configure script to establish a
303 default for this.
697f7479 304
e86ae29f
KS
3052002-08-20 Keith Seitz <keiths@redhat.com>
306
307 * breakpoints.c (watch_command_1): Use internal breakpoint
308 when setting a watchpoint_scope breakpoint.
309
216b504f
EZ
3102002-08-20 Elena Zannoni <ezannoni@redhat.com>
311
312 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
313 (build_builtin_type_vec64i): Ditto.
314 (build_builtin_type_vec128): Ditto.
315 (build_builtin_type_vec128i): Ditto.
316
f7ab6ec6
MS
3172002-08-19 Michael Snyder <msnyder@redhat.com>
318
319 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
320 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
321 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
322 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
323 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
324 CALL_DUMMY_ADDRESS): Delete.
325 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
326 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
327 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
328 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
329 push_return_address.
330 (mips_register_raw_size, mips_eabi_use_struct_convention,
331 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
332 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
333 mips_init_extra_frame_info, mips_eabi_push_arguments,
334 mips_n32n64_push_arguments, mips_push_return_address,
335 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
336 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
337
b5d1566e
MS
3382002-08-19 Michael Snyder <msnyder@redhat.com>
339
340 * mips-tdep.c (mips_frame_num_args): New function.
341 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
342 frame_saved_pc, frame_args_address, frame_locals_address,
343 frame_num_args, and frame_args_skip.
344 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
345 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
346 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
347 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
348
2f1488ce
MS
3492002-08-20 Michael Snyder <msnyder@redhat.com>
350
351 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
352 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
353 * mips-tdep.c (mips_store_struct_return): New function.
354 (mips_extract_struct_value_address): New function.
355 (mips_gdbarch_init): Set store_struct_return and
356 extract_struct_value_address.
357
41ff2da1
DC
3582002-08-20 David Carlton <carlton@math.stanford.edu>
359
360 * dwarf2read.c (dwarf2_build_psymtabs): Check that
361 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
362 (read_file_scope): Check that line_header is nonzero before
363 decoding macro information.
364
e5451d58
MK
3652002-08-20 Mark Kettenis <kettenis@gnu.org>
366
367 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
368 flag the general-purpose registers as floating-point on targets
369 that don't support the floating-point registers.
370
4a6daafa
EZ
3712002-08-20 Elena Zannoni <ezannoni@redhat.com>
372
373 * rs6000-tdep.c (altivec_register_p): Delete.
374 (rs6000_do_altivec_registers): Delete.
375 (rs6000_altivec_registers_info): Delete.
376 (rs6000_do_registers_info): Delete.
377 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
378 (rs6000_gdbarch_init): Remove setting of do_registers_info.
379
ab4327e0
EZ
3802002-08-20 Elena Zannoni <ezannoni@redhat.com>
381
382 * infcmd.c (do_registers_info): Print vector registers in hex
383 format only.
384 (print_vector_info): Check that printing registers
385 makes sense.
386 (print_float_info): Ditto.
387
cb1d2653
AC
3882002-08-20 Andrew Cagney <ac131313@redhat.com>
389
390 * mips-tdep.c (mips_gdbarch_init): Update.
391 (mips_o32_extract_return_value): Rewrite.
392 (mips_o32_store_return_value): Rewrite.
393 (mips_o32_xfer_return_value): New function.
394 (mips_xfer_register): Tweak debug print message. Allow for
395 buf_offset when dumping the value transfered.
396
dfc3d9b2
AC
3972002-08-20 Andrew Cagney <ac131313@redhat.com>
398
399 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
400 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
401 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
402 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
403 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
404
7807aa61
MS
4052002-08-14 Michael Snyder <msnyder@redhat.com>
406
407 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
408
489461e2
EZ
4092002-08-19 Elena Zannoni <ezannoni@redhat.com>
410
411 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
412 register.
413 (P): New macro to define a register as a pseudo register.
414 (R, R4, R8, R16, FR32, R64, R0): Updated.
415 (struct variant): Add new fields for number of pseudo registers
416 and number of total registers.
417 (tot_num_registers): New macro replacing....
418 (num_registers): ...deleted macro.
419 (num_registers): New function.
420 (num_pseudo_registers): New function.
421 (variants): Update all variants to intialize new fields correctly.
422 Postpone initialization of number of pseudo regs and real regs.
423 (init_variants): New function.
424 (rs6000_gdbarch_init): Initialize variants. Update calculation of
425 registers offsets.
426
fcaffe4c
DC
4272002-08-19 David Carlton <carlton@math.stanford.edu>
428
2c2738a0
DC
429 * valops.c (search_struct_field): Change error message to treat
430 return value of 0 from value_static_field as meaning that field is
431 optimized out.
432 (value_struct_elt_for_reference): Ditto.
433 * values.c (value_static_field): Treat an unresolved location the
434 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
435 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
436 enclosed. Fix PR gdb/574.
fcaffe4c
DC
437 * MAINTAINERS: Add self to Write After Approval list.
438
88658117
AC
4392002-08-19 Andrew Cagney <ac131313@redhat.com>
440
441 * mips-tdep.c (mips_xfer_register): New function.
442 (mips_n32n64_extract_return_value): Rewrite.
443 (mips_gdbarch_init): For N32 and N64, set extract_return_value
444 instead of deprecated_extract_return_value.
445
21283beb
EZ
4462002-08-19 Elena Zannoni <ezannoni@redhat.com>
447
448 * rs6000-tdep.c (TDEP): Delete macro.
449 (branch_dest): Replace use of TDEP macro with its body.
450 (rs6000_pop_frame): Ditto.
451 (rs6000_push_arguments): Ditto.
452 (rs6000_skip_trampoline_code): Ditto.
453 (rs6000_frame_saved_pc): Ditto.
454 (rs6000_frame_chain): Ditto.
455 (rs6000_register_name): Ditto.
456 (rs6000_register_byte): Ditto.
457 (rs6000_register_raw_size): Ditto.
458 (rs6000_register_virtual_type): Ditto.
459 (rs6000_register_convertible): Ditto.
460 (rs6000_convert_from_func_ptr_addr): Ditto.
461
bf072999
DJ
4622002-08-19 Daniel Jacobowitz <drow@mvista.com>
463
464 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
465 conditionally.
466 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
467 MIPS_LINUX_JB_ELEMENT_SIZE.
468 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
469 for MAX_REGISTER_RAW_SIZE arrays.
470 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
471 MIPS_LINUX_JB_ELEMENT_SIZE.
472
9b949a49
PM
4732002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
474
475 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
476
6d3e79c6
AS
4772002-08-19 Aidan Skinner <aidan@velvet.net>
478
479 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
480 ada-valprint.c ada-tasks.c.
481 (YYFILES): Add ada-exp.y.
482 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
483 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
484 (ada-exp.tab.o): New target.
485
06c0b04e
AC
4862002-08-18 Andrew Cagney <ac131313@redhat.com>
487
488 * regcache.c (regcache_xfer_part): New function.
489 (regcache_raw_read_part): New function.
490 (regcache_raw_write_part): New function.
491 (regcache_cooked_read_part): New function.
492 (regcache_cooked_write_part): New function.
493 * regcache.h (regcache_raw_read_part): Declare.
494 (regcache_raw_write_part): Declare.
495 (regcache_cooked_read_part): Declare.
496 (regcache_cooked_write_part): Declare.
497
92d1e331
DJ
4982002-08-18 Daniel Jacobowitz <drow@mvista.com>
499
500 * remote.c (remote_open_1): Add async_p.
501 (remote_async_open_1): Delete.
502 (open_remote_target): Delete.
503 (remote_open, extended_remote_open): Update calls to remote_open_1.
504 (remote_async_open, extended_remote_async_open): Call
505 remote_open_1 instead of remote_async_open_1.
506
247055de
MK
5072002-08-19 Mark Kettenis <kettenis@gnu.org>
508
509 * blockframe.c: Fix a few coding standard violations.
510
641eda39
MK
5112002-08-19 Mark Kettenis <kettenis@gnu.org>
512
0b717710
MK
513 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
514 here from ...
515 * config/i386/tm-i386sco5.h: ... here. File removed.
516 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
517
26d28e12 518 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
519 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
520 (TM_FILE): Set to tm-i386.h.
521 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
522 * config/i386/tm-i386v.h: Remove file.
523 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
524 instead of "i386/tm-i386v.h".
525 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
526 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
527 "i386/tm-i386v.h".
528 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
529 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
530 "i386/tm-i386.h".
531
d4e0bab4
MK
5322002-08-18 Mark Kettenis <kettenis@gnu.org>
533
534 * config/i386/nm-i386v.h: Add protection against
535 multiple-inclusion.
536 (i386_register_u_addr): Remove prototype.
537 (register_u_addr): New prototype.
538 (REGISTER_U_ADDR): Redefine accordingly.
539 * i386v-nat.c: Improve several comments.
540 (i386_register_u_addr): Change signature and rename to
541 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
542 ubase variable.
543
46cac009
AC
5442002-08-18 Andrew Cagney <ac131313@redhat.com>
545
546 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
547 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
548 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
549 deprecated_extract_return_value.
550 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
551 rename mips_o32o64_push_arguments.
552 (mips_gdbarch_init): Update.
553 (mips_extract_return_value): Delete.
554 (mips_o32_extract_return_value): Clone mips_extract_return_value.
555 (mips_o64_extract_return_value): Clone mips_extract_return_value.
556 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
557 (mips_n32n64_extract_return_value): Clone
558 mips_extract_return_value.
559 (mips_store_return_value): Delete.
560 (mips_o32_store_return_value): Clone mips_store_return_value.
561 (mips_o64_store_return_value): Clone mips_store_return_value.
562 (mips_eabi_store_return_value): Clone mips_store_return_value.
563 (mips_n32n64_store_return_value): Clone mips_store_return_value.
564
d2e4a39e
AS
5652002-08-18 Aidan Skinner <aidan@velvet.net>
566
0c30c098
AS
567 * ada-lang.c: Use gdb_string.h instead of <string.h>.
568 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
569
5702002-08-18 Aidan Skinner <aidan@velvet.net>
571
572 * ada-lang.c: Run through gdb_indent.sh.
573 * ada-lang.h: Run through gdb_indent.sh.
574 * ada-tasks.c: Run through gdb_indent.sh.
575 * ada-typeprint.c: Run through gdb_indent.sh.
576 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 577
01fc4e33
AC
5782002-08-18 Andrew Cagney <ac131313@redhat.com>
579
580 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
581 ABI.
582
d8ee244c
MK
5832002-08-18 Mark Kettenis <kettenis@gnu.org>
584
c38d8261
MK
585 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
586
222db64c
MK
587 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
588 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
589
c2848c82
MK
590 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
591 write_register_gen instead of write_register_bytes.
592
d8ee244c
MK
593 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
594 i[3456]-*-osf1mk* configurations have been made obsolete.
595 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
596 i[3456]86-*-osf1mk* hosts obsolete.
597 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
598 targets obsolete.
599 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
600 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
601 config/i386/i386m3.mt, config/i386/nm-m3.h,
602 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
603 config/i386/i386mk.mh, config/i386/i386mk.mt,
604 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
605 obsolete.
606 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
607 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
608 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
609
61d8d407
AC
6102002-08-18 Andrew Cagney <ac131313@redhat.com>
611
612 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
613 (hppa_value_returned_from_stack): Declare.
614 (hppa_extract_return_value): Declare.
615 * config/pa/hppa.mt: New file.
616 * configure.tgt: Recognize hppa*-*-*.
617 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
618
0c52bd59
MK
6192002-08-18 Mark Kettenis <kettenis@gnu.org>
620
621 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
622 comment.
623
b5686e99
MK
6242002-08-17 Mark Kettenis <kettenis@gnu.org>
625
626 * top.c (gdb_rl_operate_and_get_next): Make sure
627 operate-and-get-next functions correctly even when the history
628 list is completely filled.
629
c1bab85b
AC
6302002-08-18 Andrew Cagney <ac131313@redhat.com>
631
632 * MAINTAINERS (Target Instruction Set Architectures): Rename
633 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
634 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
635 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
636 already listed under Host/Native.
637
638 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
639 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
640 mips*-*-*.
641
32089c7c
AC
6422002-08-17 Andrew Cagney <ac131313@redhat.com>
643
644 * config/ia64/ia64.mt: New file.
645 * config/alpha/alpha.mt: New file.
646 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
647 ia64-linux-gnu. Mention that ia64-elf is broken.
648 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
649
b4671f85
MK
6502002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
651
652 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
653 generic_func_frame_valid instead of func_frame_valid.
654
c8edd8b4
JB
6552002-08-16 Joel Brobecker <brobecker@gnat.com>
656
657 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
658 procfs appears to be broken when debugging on multi-processor
659 machines. So enable software single stepping in order to avoid
660 using the procfs interface to do next/step operations, using
661 internal breakpoints instead.
662
663 * infrun.c (handle_inferior_event): Readjust the stop_pc by
664 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
665 make this pc address equal to the value it would have if the
666 system stepping capability was used. Also set a new flag used
667 to ensure that we don't readjust the PC one more time later.
668
669 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
670 address by DECR_PC_AFTER_BREAK when software single step is
671 in use for this architecture, as this has already been taken
672 care of in handle_inferior_event().
673
238617f6
JB
6742002-08-16 Joel Brobecker <brobecker@gnat.com>
675
676 * infrun.c (handle_inferior_event): Minor reformatting, to make
677 a rather long condition expression easier to read.
678
541a7aac
AC
6792002-08-16 Andrew Cagney <ac131313@redhat.com>
680
681 * Makefile.in (gdbtk.o): Move to end of file.
682 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
683 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
684 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
685 (gdbtk-wrapper.o, gdbres.o): Ditto.
686
f92d4a7b
AC
6872002-08-16 Andrew Cagney <ac131313@redhat.com>
688
689 * Makefile.in (copying.o): Separate out compile rule.
690 (hpux-thread.o, procfs.o, signals.o): Ditto.
691 (v850ice.o, z8k-tdep.o): Ditto.
692 (tui-file.o): Move to TUI section.
693 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
694 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
695
1cce71eb
JB
6962002-08-16 Joel Brobecker <brobecker@gnat.com>
697
698 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
699 skip_trampoline_code, for better namespace-proofing.
700
701 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
702
0851f23d
JB
7032002-08-16 Joel Brobecker <brobecker@gnat.com>
704
705 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
706
f8d40ec8
JB
7072002-08-16 Joel Brobecker <brobecker@gnat.com>
708
709 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
710 signal, check whether we hit a breakpoint before checking for a
711 single step breakpoint. Otherwise, GDB fails to notice that a
712 breakpoint has been hit when stepping onto a breakpoint.
713
63d022e0
KS
7142002-08-16 Keith Seitz <keiths@redhat.com>
715
716 * gdb-events.sh (clear_gdb_event_hooks): New function.
717 * gdb-events.c: Regenerate.
718 * gdb-events.h: Regenerate.
719
6e31adb3
AC
7202002-08-16 Andrew Cagney <ac131313@redhat.com>
721
722 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
723 not_a_sw_breakpoint.
724 * breakpoint.h (bpstat_stop_status): Add parameter names.
725
c8189ed1
GS
7262002-08-16 Grace Sainsbury <graces@redhat.com>
727
728 * remote.c (remote_insert_hw_breakpoint)
729 (remote_remove_hw_breakpoint): Fix calculation of length field
730 for Z-packet.
731
d05285fa
MS
7322002-08-15 Michael Snyder <msnyder@redhat.com>
733
466d7106
MS
734 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
735 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
736 (supply_fpregset): Ditto.
737
d05285fa
MS
738 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
739 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
740 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 741 (TARGET_READ_SP): Delete.
bf1f5b4c 742 (DO_REGISTERS_INFO): Delete.
102182a9
MS
743 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
744 Delete.
745 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
746 from macros to functions.
bf1f5b4c 747
d05285fa
MS
748 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
749 (mips_register_convertible, mips_register_convert_to_virtual,
750 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
751 (mips_read_sp): New function.
752 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
753 (mips_do_registers_info): Make static.
754 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
755 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
756 (mips_register_convert_from_type, mips_register_convert_to_type):
757 New functions.
758 (mips_gdbarch_init): Set up function_start_offset,
759 register_virtual_size, pc_in_sigtramp.
d05285fa 760
e76f1f2e
AC
7612002-08-15 Andrew Cagney <ac131313@redhat.com>
762
763 * infcmd.c (vector_info): New function.
764 (_initialize_infcmd): Add command "info vector".
765 (print_vector_info): New function.
766
767 * gdbarch.sh (PRINT_VECTOR_INFO): New method
768 * gdbarch.h, gdbarch.c: Regenerate.
769
4782dc19
AC
7702002-08-15 Andrew Cagney <ac131313@redhat.com>
771
772 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
773 ``print_all''. Only print vector registers when ``print_all''.
774
23e3a7ac
AC
7752002-08-15 Andrew Cagney <ac131313@redhat.com>
776
8e186fd6
AC
777 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
778 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
779
23e3a7ac
AC
780 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
781 Add `args' parameter.
782 * gdbarch.h, gdbarch.c: Regenerate.
783
784 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
785
786 * infcmd.c (float_info): Call print_float_info.
787 (print_float_info): New function. By default, print the
788 floating-point registers.
789
790 * arch-utils.h (default_print_float_info): Delete declaration.
791 * arch-utils.c (default_print_float_info): Delete function.
792
e0ca2bb9
MK
7932002-08-16 Mark Kettenis <kettenis@gnu.org>
794
3f733acc
MK
795 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
796 out define.
797
7d8d2918
MK
798 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
799 FRAME.
800
1c7cc583
MK
801 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
802 * configure.host: Make i[3456]86-*-aix host obsolete.
803 * configure.tgt: Make i[3456]86-*-aix target obsolete.
804 * config/i386/i386aix.mh, config/i386/i386aix.mt,
805 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
806 config/i386/xm-i386aix.h: Make files obsolete.
807 * i386aix-nat.c: Make file obsolete.
808 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
809 (i386aix-nat.o): Make target obsolete.
810
e0ca2bb9
MK
811 * config/i386/nm-gnu.h: Removed.
812 * config/i386/nm-i386gnu.h: New file.
813 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
814 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
815 Moved here from ...
816 * config/i386/tm-i386gnu.h: ... here. Removed.
817 * config/i386/xm-i386gnu.h: Removed.
818 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
819 (NAT_FILE): Set to nm-i386gnu.h.
820 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
821 * i386-tdep.c: New file.
822 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
823 (i386gnu-tdep.o): Specify dependencies.
824
16057ec7 8252002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 826
6b99ee2e
MK
827 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
828 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
829 Adjust a few comments to reflect reality a bit closer.
830 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
831 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
832 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
833 target_insert_watchpoint, target_remove_watchpoint):
834 Move defines to ...
835 * config/i386/nm-i386sco5.h: ... here.
836 (kernel_u_size): Add prototype. Improve a few comments and add
837 protection against multiple inclusion.
838
d9a6f65c
MK
839 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
840 out define.
841
047eff6a
MK
842 * uw-thread.c (SP_ARG0): Define if not already defined.
843 * config/i386/tm-i386.h (SO_ARG0): Remove define.
844
dcdb1290
MK
845 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
846
5d2d0b2a
MK
847 * config/i386/tm-i386.h: Don't include "regcache.h".
848
61113f8b
MK
849 * i387-tdep.h (i387_print_float_info): New prototype.
850 * i387-tdep.c (print_i387_value, print_i387_ext,
851 print_i387_status_word, print_i387_control_word): Add `struct
852 ui_file *' argument and use it for output.
853 (i387_print_float_info): Renamed from i387_float_info. Add
854 `struct gdbarch *' and `struct ui_file *' arguments and use the
855 latter for output.
856 * i386-tdep.c: Include "i387-tdep.h".
857 (i386_gdbarch_init): Set print_float_info.
858 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
859 (FLOAT_INFO): Remove define.
860
46e0f506
MS
8612002-08-13 Michael Snyder <msnyder@redhat.com>
862
863 * mips-tdep.c (mips_push_arguments): Rename to
864 mips_eabi_push_arguments, and tune for EABI.
865 (MIPS_REGS_HAVE_HOME_P): Delete.
866 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
867 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
868 Delete references to mips_regs_have_home_p.
869
409268de
KS
8702002-08-14 Keith Seitz <keiths@redhat.com>
871
872 * Makefile.in (install-gdbtk): Create insight plugin directory.
873 Install plugins.tcl file.
874
ffc6a242
KS
8752002-08-14 Keith Seitz <keiths@redhat.com>
876
877 * configure.in: Move SUBDIRS to near top of the file so that
878 --enable options may add things to it.
879 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
880 * configure: Regenerate.
881
ebafbe83
MS
8822002-08-13 Michael Snyder <msnyder@redhat.com>
883
884 * mips-tdep.c (mips_o32o64_push_arguments): New function,
885 cloned from mips_push_arguments, tuned for o32/o64 ABI.
886 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
887
32f6f25d
AC
8882002-08-13 Andrew Cagney <ac131313@redhat.com>
889
890 * vax-tdep.c (vax_get_saved_register): Delete function.
891 (vax_gdbarch_init): Update.
892 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
893 (ns32k_gdbarch_init): Update.
894 * alpha-tdep.c (alpha_get_saved_register): Delete function.
895 (alpha_gdbarch_init): Update.
896
53826de9
AC
8972002-08-13 Andrew Cagney <cagney@redhat.com>
898
899 * regcache.c (init_regcache_descr): Overallocate the
900 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
901 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
902 nr_raw_registers.
903 (set_register_cached): Add range checking assertions. Use
904 current_regcache.
905
16057ec7 9062002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
907
908 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
909 numbers for MMX registers.
910
7b4c2dce
AC
9112002-08-13 Andrew Cagney <cagney@redhat.com>
912
913 * i386-tdep.c (i386_gdbarch_init): Use
914 generic_unwind_get_saved_register.
915
1e03ad20
KB
9162002-08-13 Kevin Buettner <kevinb@redhat.com>
917
918 * procfs.c (procfs_can_use_hw_breakpoint): New function.
919 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
920 target vector.
921 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
922 Delete. Add comment regarding this now-deleted target method.
923
548bcbec
SC
9242002-08-13 Stephane Carrez <stcarrez@nerim.fr>
925
926 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
927 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
928 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
929 real PC and the page number (if it's within the memory bank window).
930 (m68hc11_pseudo_register_write): Likewise when saving.
931 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
932 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
933 (m68hc11_register_raw_size): And use 32-bit for it.
934 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
935 16K memory bank is used by the prog; also use the virtual pc.
936
7df11f59
SC
9372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
938
939 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
940 (m68hc11_gdbarch_init): Install it in gdbarch.
941 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
942 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
943 (MSYMBOL_SIZE): New for documentation.
944 (insn_return_kind): Enum to specify how a function returns.
945 (frame_extra_info): Cleanup and record the return mode.
946 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
947 register in address computation.
948 (m68hc11_get_return_insn): New to obtain the return instruction used
949 by the function.
950 (m68hc11_frame_init_saved_regs): Take into account the return
951 instruction used by the function for far and interrupt functions.
952 (m68hc11_init_extra_frame_info): Take into account page register.
953 (m68hc11_frame_args_address): Adjust according to the return mode.
954 (show_regs): Print page register only when it's used.
955
5706502a
SC
9562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
957
958 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
959 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
960 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
961 registers.
962 (m68hc11_register_raw_size): Likewise.
963
28fc6740
AC
9642002-08-13 Andrew Cagney <cagney@redhat.com>
965
966 * i386-tdep.c (i386_register_name): Handle mmx registers.
967 (mmx_regnum_p): New function.
968 (i386_mmx_names): New array.
969 (mmx_num_regs): New variable.
970 (i386_pseudo_register_read): New function.
971 (i386_pseudo_register_write): New function.
972 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
973
974 * regcache.c (regcache_raw_read_unsigned): New function.
975 (regcache_raw_read_signed): New function.
976 * regcache.h (regcache_raw_read_unsigned): Declare.
977 (regcache_raw_read_signed): Declare.
978
a378f419
AC
9792002-08-13 Andrew Cagney <cagney@redhat.com>
980
981 * regcache.c (regcache_raw_read_as_address): Delete function.
982 (regcache_cooked_read_signed): New function.
983 (regcache_cooked_read_unsigned): New function.
984 * regcache.h (regcache_cooked_read_signed): Declare.
985 (regcache_cooked_read_unsigned): Declare.
986 (regcache_raw_read_as_address): Delete declaration.
987
988 * blockframe.c (generic_read_register_dummy): Use
989 regcache_cooked_read_unsigned.
990 * i386-tdep.c (i386_extract_struct_value_address): Use
991 regcache_cooked_read_unsigned.
992
81967506
SC
9932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
994
995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
996 double sizes according to ELF ABI flags.
997 (gdbarch_tdep): Record elf_flags.
998
ffe1f3ee
SC
9992002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1000
1001 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1002 (m6812_prolog): They can appear in 68HC12 function prologue.
1003 (m68hc11_frame_chain): Cleanup.
1004
98216c5d
AC
10052002-08-12 Andrew Cagney <cagney@redhat.com>
1006
1007 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1008 declarations.
1009 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1010 (i386_linux_register_raw_size): Delete function.
1011 (i386_linux_init_abi): Update.
1012 * i386-tdep.c (i386_register_raw_size): Delete function.
1013 (i386_register_byte): Delete function.
1014 (i386_gdbarch_init): Update.
1015 (i386_register_size): Delete array.
1016 (i386_register_offset): Delete array.
1017
1018 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1019 (REGISTER_RAW_SIZE): Delete macro.
1020 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1021 (REGISTER_BYTE): Delete macro.
1022
3b19021e
AS
10232002-08-11 Aidan Skinner <aidan@velvet.net>
1024
1025 * ada-lang.c (ada_lookup_partial_symbol)
1026 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1027 prototype names so that grep ^func works properly.
1028
1029 * ada-lang.c (ada_array_element_type)
1030 (ada_lookup_partial_symbol): Fix typos in parameter list.
1031
1032 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1033 Fix prototype names so that grep ^func works properly.
1034
b063e7a2
AC
10352002-08-10 Andrew Cagney <cagney@redhat.com>
1036 Elena Zannoni <ezannoni@redhat.com>
1037 Martin M. Hunt <hunt@redhat.com>
1038
1039 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1040 (build_builtin_type_vec128i): Set the vector bit.
1041 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1042 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1043 (build_builtin_type_vec64): New function.
1044 (build_builtin_type_vec64i): New function.
1045 (build_gdbtypes): Initialize builtin_type_vec64 and
1046 builtin_type_vec64i.
1047
a7e3c2ad
AC
10482002-08-09 Andrew Cagney <cagney@redhat.com>
1049
1050 * regcache.c (regcache_dump): Compare the register offset
1051 with REGISTER_BYTE.
1052 * arch-utils.c (generic_register_byte): New function.
1053 * arch-utils.h (generic_register_byte): Declare.
1054 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1055 * gdbarch.h, gdbarch.c: Regenerate.
1056
af030b9a
AC
10572002-08-09 Andrew Cagney <cagney@redhat.com>
1058
1059 * regcache.c: Include "gdbcmd.h"
1060 (_initialize_regcache): Add commands "maintenance print
1061 registers", "maintenance print raw-registers" and "maintenance
1062 print cooked-registers".
1063 (enum regcache_dump_what): Define.
1064 (dump_endian_bytes): New function.
1065 (regcache_dump): New function.
1066 (regcache_print): New function.
1067 (maintenance_print_registers): New function.
1068 (maintenance_print_raw_registers): New function.
1069 (maintenance_print_cooked_registers): New function.
1070 * Makefile.in (regcache.o): Update dependencies.
1071
cb3d25d1
MS
10722002-08-09 Michael Snyder <msnyder@redhat.com>
1073
1074 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1075 (mips_push_arguments): Correct some comments. Use paddr_nz
1076 for printing addresses in debug output. Replace static
1077 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1078 (mips_n32n64_push_arguments): New function, cloned from
1079 mips_push_arguments and tuned for the n32/n64 ABI.
1080 (mips_push_register): Buffer needs dynamic allocation.
1081 (mips_print_register): Ditto.
1082 (do_gp_register_row): Ditto.
1083 (mips_store_return_value): Ditto.
1084 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1085
2163ab9d
DH
10862002-08-09 Don Howard <dhoward@redhat.com>
1087
1088 * memattr.c (mem_info_command): Print special case of upper bound
1089 as max CORE_ADDR + 1.
1090
b78bcb18
MS
10912002-08-08 Michael Snyder <msnyder@redhat.com>
1092
1093 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1094 returns structs by ref if they're too big to fit in two registers.
1095
ffabd70d
KB
10962002-08-09 Kevin Buettner <kevinb@redhat.com>
1097
1098 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1099 saved regs value.
1100 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1101 mips_find_saved_regs().
1102 (mips_pop_frame): Likewise.
1103
fbcdb4a3
KB
11042002-08-09 Kevin Buettner <kevinb@redhat.com>
1105
1106 * blockframe.c (frame_saved_regs_register_unwind): Revise
1107 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1108 frames are in use.
1109
3c3bea1c
GS
11102002-08-09 Grace Sainsbury <graces@redhat.com>
1111
1112 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1113 T-packets; the 'a' is not taken as a register number.
1114 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1115 (remote_stopped_data_address): New functions; add to target
1116 vector.
1117 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1118 prototypes to match other implementations of this
1119 function. replace integer argument with pointer -- the length
1120 field in the Z-packet is the length of what is pointed to or 1 if
1121 pointer is null. Add to target vector.
1122 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1123 target vector.
1124
1125 From Mark Salter:
1126 * remote.c (remote_wait): Add support to extract optional
1127 watchpoint information from T-packet. Ignore unrecognized
1128 optional info in T-packet.
1129 (remote_async_wait): Ditto.
1130
5d1d95de
CV
11312002-08-09 Corinna Vinschen <vinschen@redhat.com>
1132
1133 * cli/cli-dump.c: Change fopen modes to use binary open modes
1134 as defined in include/fopen-bin.h throughout.
1135
c86b5b38
MS
11362002-08-08 Michael Snyder <msnyder@redhat.com>
1137
1138 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1139
b30590dc
KB
11402002-08-08 Kevin Buettner <kevinb@redhat.com>
1141
1142 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1143 assertion failure by returning early after a warning.
1144
498868ed
KB
11452002-08-08 Kevin Buettner <kevinb@redhat.com>
1146
1147 * mips-tdep.c (mips_find_saved_regs): Make static.
1148 (mips_frame_init_saved_regs): New function.
1149 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1150 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1151 (mips_find_saved_regs): Delete declaration.
1152
b2dd6311
GS
11532002-08-08 Grace Sainsbury <graces@redhat.com>
1154
3c3bea1c
GS
1155 * remote.c (remote_wait, remote_async_wait): Change
1156 thread_num from int to ULONGEST.
1157 (unpack_varlen_hex): Change result parameter from
1158 int * to ULONGEST *.
b2dd6311 1159
ea47855f
AC
11602002-08-08 Andrew Cagney <ac131313@redhat.com>
1161
1162 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1163 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1164 powerpc*-*-*.
1165 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1166
69db8bae
AC
11672002-08-08 Andrew Cagney <cagney@redhat.com>
1168
1169 * gcore.c (override_derive_stack_segment): Delete variable.
1170 (preempt_derive_stack_segment): Delete function.
1171 (derive_stack_segment): Delete function.
1172 (default_derive_stack_segment): Renamed to derive_stack_segment.
1173 (override_derive_heap_segment): Delete variable.
1174 (preempt_derive_heap_segment): Delete function.
1175 (derive_heap_segment): Delete function.
1176 (default_derive_heap_segment): Rename to derive_heap_segment.
1177
cb811fe7
MS
11782002-08-06 Michael Snyder <msnyder@redhat.com>
1179
1180 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1181 * mips-tdep.c (mips_EABI_use_struct_convention,
1182 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1183 New functions. (mips_use_struct_convention): Delete.
1184 (mips_gdbarch_init): set use_gdbarch_convention.
1185
8b389c40
MS
11862002-08-06 Michael Snyder <msnyder@redhat.com>
1187
1188 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1189 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1190 mips_o32_reg_struct_has_addr): New functions.
1191 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1192
5c27f28a
AC
11932002-08-07 Andrew Cagney <ac131313@redhat.com>
1194
1195 * regcache.c (pseudo_register): Delete function.
1196 (fetch_register): Delete function.
1197 (store_register): Delete function.
1198 (regcache_raw_read, legacy_read_register_gen): Use
1199 target_fetch_registers instead of fetch_register.
1200 (legacy_write_register_gen, regcache_raw_write): Use
1201 target_store_register instead of store_register.
1202 (write_register_bytes): Ditto.
1203
1204 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1205 (STORE_PSEUDO_REGISTER): Delete.
1206 * gdbarch.h, gdbarch.c: Regenerate.
1207
5b331675
CV
12082002-08-06 Corinna Vinschen <vinschen@redhat.com>
1209
1210 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1211 write dump file binary.
1212
6acdf5c7
MS
12132002-08-05 Michael Snyder <msnyder@redhat.com>
1214
1215 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1216 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1217 (mips_gdbarch_init): Set N32 target to be mips64.
1218
b2f01c35
KB
12192002-08-06 Kevin Buettner <kevinb@redhat.com>
1220
1221 * frame.c (find_saved_register): Break out of loop once saved
1222 register address is found. Don't mention sparc in loop comment
1223 anymore.
1224
63db5580
KB
12252002-08-06 Kevin Buettner <kevinb@redhat.com>
1226
1227 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1228 mips_default_saved_regsize to 8.
1229
5e34e75e
AC
12302002-08-06 Andrew Cagney <ac131313@redhat.com>
1231
1232 * gcore.c: Do not include <sys/procfs.h>.
1233 * Makefile.in (gcore.o): Update dependencies.
1234
eb4c54a2
AC
12352002-08-06 Andrew Cagney <cagney@redhat.com>
1236
1237 * configure.tgt: Make arc-*-* obsolete.
1238 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1239 * MAINTAINERS: Make arc-elf obsolete.
1240 * arc-tdep.c: Make file obsolete.
1241 * config/arc/arc.mt: Ditto.
1242 * config/arc/tm-arc.h: Ditto.
1243
ced15480
TR
12442002-08-05 Theodore A. Roth <troth@verinet.com>
1245
c1bab85b 1246 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1247
b4743822
AC
12482002-08-05 Andrew Cagney <ac131313@redhat.com>
1249
1250 * mcore-tdep.c (mcore_gdbarch_init): Use
1251 generic_unwind_get_saved_register instead of
1252 generic_get_saved_register.
1253 * v850-tdep.c (v850_gdbarch_init): Ditto.
1254 * frv-tdep.c (frv_gdbarch_init): Ditto.
1255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1256 * s390-tdep.c (s390_gdbarch_init): Ditto.
1257 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1258 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1259 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1260
3956d554
JB
12612002-08-05 Joel Brobecker <brobecker@gnat.com>
1262
1263 * objfiles.h: Add missing #include "symfile.h"
1264
1265 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1266
8249c0d6
AC
12672002-08-04 Andrew Cagney <ac131313@redhat.com>
1268
1269 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1270 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1271 of FIELD_BITSIZE.
1272
b9d14705
DJ
12732002-08-04 Daniel Jacobowitz <drow@mvista.com>
1274
1275 * NEWS: Cleanup and nitpick.
1276
dd73b9bb
AC
12772002-08-03 Andrew Cagney <ac131313@redhat.com>
1278
1279 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1280
043a27f8
AC
12812002-08-03 Andrew Cagney <ac131313@redhat.com>
1282
1283 * Makefile.in (gdbtk-bp.o): Update dependencies.
1284 (gdbtk-register.o): Ditto.
1285 (gdbtk-varobj.o): Ditto.
1286
46ce284d
AC
12872002-08-03 Andrew Cagney <cagney@redhat.com>
1288
1289 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1290 m68hc11_fetch_pseudo_register.
1291 (m68hc11_pseudo_register_write): Replace
1292 m68hc11_store_pseudo_register.
1293 (m68hc11_gdbarch_init): Update.
1294
b66d6d2e
AC
1295Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1296
1297 * gdbarch.sh: Include "gdb_string.h".
1298 * gdbarch.c: Regenerate.
1299
1300 * regcache.c: Include "gdb_string.h".
1301 * ax-general.c: Ditto.
1302 * varobj.c: Ditto.
1303 * std-regs.c: Ditto.
1304 * fbsd-proc.c: Ditto.
1305 * thread.c: Ditto.
1306
1307 * Makefile.in (regcache.o): Update dependencies.
1308 (thread.o, gdbarch.o): Ditto.
1309 (ax-general.o, gdbarch.o): Ditto.
1310 (varobj.o, std-regs.o): Ditto.
1311 (fbsd-proc.o): Specify dependencies.
1312
29e1842b
AC
13132002-08-02 Andrew Cagney <cagney@redhat.com>
1314
1315 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1316 regnum.
1317 (regcache_cooked_write): Ditto.
1318
68365089
AC
13192002-08-02 Andrew Cagney <ac131313@redhat.com>
1320
1321 * regcache.c (regcache_cooked_read): New function.
1322 (regcache_cooked_write): New function.
1323 (read_register_gen): Rewrite using regcache_cooked_read.
1324 (write_register_gen): Rewrite using regcache_cooked_write.
1325
1326 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1327 Declare.
1328
d8124050
AC
13292002-08-02 Andrew Cagney <cagney@redhat.com>
1330
1331 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1332 Replace the architecture methods register_read and register_write.
1333 * gdbarch.h, gdbarch.c: Regenerate.
1334 * regcache.c (init_regcache_descr): Update.
1335 (read_register_gen): Update.
1336 (write_register_gen): Update.
1337 (supply_register): Update comment.
1338
1339 * sh-tdep.c (sh_gdbarch_init): Update.
1340 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1341 `regcache' and `gdbarch' parameters. Make `buffer' a void
1342 pointer. Update code.
1343 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1344 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1345 void pointer. Update code.
1346 (sh64_register_write): Delete.
1347 (sh4_register_read): Delete.
1348 (sh64_register_read): Delete.
1349 (sh4_register_write): Delete.
1350 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1351 void pointer, `to' parameter a void pointer.
1352 (sh_sh64_register_convert_to_raw): Ditto.
1353
a6425924
KB
13542002-08-01 Kevin Buettner <kevinb@redhat.com>
1355
1356 * mips-tdep.c (mips_register_virtual_type): Use architecture
1357 invariant return values.
1358
ff5922b5
AC
13592002-08-01 Andrew Cagney <cagney@redhat.com>
1360
1361 * linux-proc.c: Include "gdb_string.h".
1362 * Makefile.in (linux-proc.o): Update dependency list.
1363
32a6503c
KB
13642002-08-01 Kevin Buettner <kevinb@redhat.com>
1365
1366 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1367 comment.
1368
ccaa32c7
GS
13692002-08-01 Grace Sainsbury <graces@redhat.com>
1370
1371 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1372 to_insert_watchpoint, to_remove_watchpoint,
1373 to_stopped_by_watchpoint, to_stopped_data_address,
1374 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1375 target vecctor. Define their corresponding macros so they call
1376 them.
1377
1378 * target.c: Add default and debug versions of for
1379 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1380 to_insert_watchpoint, to_remove_watchpoint,
1381 to_stopped_by_watchpoint, to_stopped_data_address,
1382 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1383
78fde5f8
KB
13842002-08-01 Kevin Buettner <kevinb@redhat.com>
1385
1386 * mips-tdep.c (mips_register_virtual_type): New function.
1387 (mips_gdbarch_init): Register mips_register_virtual_type()
1388 with gdbarch machinery.
1389 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1390 this file instead of tm-bigmips.h.
1391 (MIPS_REGSIZE): Delete this macro.
1392 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1393 multiarch version in mips-tdep.c will be found.
1394
db034ac5
AC
13952002-08-01 Andrew Cagney <cagney@redhat.com>
1396
1397 * NEWS: Menion that CHILL has been made obsolete.
1398
1399 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
1400 * stabsread.c (read_range_type): Ditto.
1401 * gdbtypes.h: Ditto.
1402 * language.c (binop_type_check): Ditto.
1403 (binop_result_type): Ditto.
1404 (integral_type): Ditto.
1405 (character_type): Ditto.
1406 (string_type): Ditto.
1407 (boolean_type): Ditto.
1408 (structured_type): Ditto.
1409 (lang_bool_type): Ditto.
1410 (binop_type_check): Ditto.
1411 * language.h (_LANG_chill): Ditto.
1412 * dwarfread.c (set_cu_language): Ditto.
1413 * dwarfread.c (CHILL_PRODUCER): Ditto.
1414 * dwarfread.c (handle_producer): Ditto.
1415 * expression.h (enum exp_opcode): Ditto.
1416 * eval.c: Ditto for comments.
1417 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1418 * expprint.c (print_subexp): Ditto.
1419 (print_subexp): Ditto.
1420 * valops.c (value_cast): Ditto.
1421 (search_struct_field): Ditto.
1422 * value.h (COERCE_VARYING_ARRAY): Ditto.
1423 * symfile.c (init_filename_language_table): Ditto.
1424 (add_psymbol_with_dem_name_to_list): Ditto.
1425 * valarith.c (value_binop): Ditto.
1426 (value_neg): Ditto.
1427 * valops.c (value_slice): Ditto.
1428 * symtab.h (union language_specific): Ditto.
1429 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1430 (SYMBOL_DEMANGLED_NAME): Ditto.
1431 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1432 * defs.h (enum language): Ditto.
1433 * symtab.c (got_symtab): Ditto.
1434 * utils.c (fprintf_symbol_filtered): Ditto.
1435
1436 * ch-typeprint.c: Make file obsolete.
1437 * ch-valprint.c: Make file obsolete.
1438 * ch-lang.h: Make file obsolete.
1439 * ch-exp.c: Make file obsolete.
1440 * ch-lang.c: Make file obsolete.
1441
1442 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1443 CHILL_LIB.
1444 (TARGET_FLAGS_TO_PASS): Ditto.
1445 (CHILLFLAGS): Obsolete.
1446 (CHILL): Obsolete.
1447 (CHILL_FOR_TARGET): Obsolete.
1448 (CHILL_LIB): Obsolete.
1449 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1450 ch-valprint.c.
1451 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1452 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1453 ch-lang.o.
1454 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1455 targets.
1456
8aaf0b47
JB
14572002-07-31 Joel Brobecker <brobecker@gnat.com>
1458
1459 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1460 This does not change anything at the moment, but will be helpful
1461 later when full Ada support is integrated.
1462
f3a7b3a5
KB
14632002-07-31 Kevin Buettner <kevinb@redhat.com>
1464
1465 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1466 help message.
1467
fb850278
KB
14682002-07-31 Kevin Buettner <kevinb@redhat.com>
1469
1470 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1471 and save it in a local variable. Use variable in later test.
1472
e3bddbfa
KB
14732002-07-31 Kevin Buettner <kevinb@redhat.com>
1474
1475 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1476 test. (Thanks to Daniel Jacobowitz.)
1477
28d169de
KB
14782002-07-31 Kevin Buettner <kevinb@redhat.com>
1479
1480 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1481 (mips_abi_strings): Add "n64".
1482 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1483
7fe7e44e
KB
14842002-07-31 Kevin Buettner <kevinb@redhat.com>
1485
1486 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1487 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1488
c6caf090
KB
14892002-07-31 Kevin Buettner <kevinb@redhat.com>
1490
1491 * utils.c (host_pointer_to_address, address_to_host_pointer):
1492 Use gdb_assert() instead of explicit call to internal_error().
1493
c41669e0
KB
14942002-07-30 Kevin Buettner <kevinb@redhat.com>
1495
1496 * Makefile.in (rs6000-nat.o): Update dependencies.
1497
1498 From Nicholas Duffek:
1499 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1500 (aix-thread.o): New rule.
1501 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1502 * config/powerpc/aix432.mh: New file.
1503
2fda4977
DJ
15042002-07-30 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1507 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1508 (fetch_core_registers, ppc_linux_supply_gregset)
1509 (ppc_linux_supply_fpregset): New functions.
1510 (ppc_linux_regset_core_fns): New.
1511 (_initialize_ppc_linux_tdep): Call add_core_fns.
1512 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1513 and ppc_linux_supply_gregset.
1514 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1515 (supply_fpregset): Call ppc_linux_supply_fpregset.
1516 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1517 corelow.o.
1518 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1519
729051e6
DJ
15202002-07-30 Daniel Jacobowitz <drow@mvista.com>
1521
1522 * symtab.c (lookup_symbol): Demangle before lowercasing.
1523
5f8a3188
AC
15242002-07-30 Andrew Cagney <ac131313@redhat.com>
1525
1526 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1527 declaration.
1528 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1529 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1530 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1531 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1532 "gdb_string.h".
1533 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1534 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1535 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1536 (avr-tdep.o, mon960-rom.o): Ditto.
1537 (aout_stabs_gnu_h): Define.
1538 (symtab_h): Remove $(gdb_obstack_h).
1539
67f07146
JB
15402002-07-30 Jim Blandy <jimb@redhat.com>
1541
1542 Patch from David Carlton <carlton@math.stanford.edu>:
1543 * gdbinit.in: Move the `dir' commands that add GDB's own source
1544 directory to the search path to the end, so that the `gdb' source
1545 directory will be searched first.
1546
04ea0df1
AC
15472002-07-29 Andrew Cagney <ac131313@redhat.com>
1548
1549 * gdb_obstack.h: New file.
1550 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1551 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1552 * objfiles.h: Include "gdb_obstack.h".
1553 * Makefile.in (gdb_obstack_h): Define.
1554 (symtab_h): Add $(gdb_obstack_h).
1555 (objfiles_h): Add $(gdb_obstack_h).
1556
1557 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1558 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1559 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1560 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1561 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1562 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1563 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1564 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1565
1566 * Makefile.in (bcache.o): Update dependencies.
1567 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1568 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1569 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1570 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1571 (stabsread.o, symfile.o, symmisc.o): Ditto.
1572 (symtab.o, typeprint.o, macroexp.o): Ditto.
1573 (macrotab.o, mdebugread.o): Ditto.
1574 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1575 (coff_ecoff_h, aout_aout64_h): Define.
1576 (aout_stabs_gnu_h, libaout_h): Define.
1577
d138e37a
AC
15782002-07-29 Andrew Cagney <cagney@redhat.com>
1579
1580 * regcache.c (struct regcache_descr): Rename nr_registers to
1581 nr_cooked_registers. Revise comments describing the structure
1582 member fields.
1583 (init_regcache_descr): Update.
1584 (init_legacy_regcache_descr): Update.
1585 (read_register_gen, write_register_gen): When a cooked register in
1586 the raw register range, directly access the value from the raw
1587 register cache.
1588
460e6ec3
AC
15892002-07-29 Andrew Cagney <ac131313@redhat.com>
1590
1591 * z8k-tdep.c: Do not include "obstack.h".
1592 * h8300-tdep.c, h8500-tdep.c: Ditto.
1593 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1594 * valprint.c, v850-tdep.c: Ditto.
1595 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1596 * mn10200-tdep.c: Ditto.
1597
1598 * Makefile.in (z8k-tdep.o): Update dependencies.
1599 (m68hc11-tdep.o, valprint.o): Ditto.
1600 (v850-tdep.o, d10v-tdep.o): Ditto.
1601 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1602 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1603 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1604 (sh_opc_h, gdb_sim_sh_h): Define.
1605 (elf_sh_h, elf_bfd_h): Define.
1606 (opcode_m68hc11_h): Define.
1607 (OPCODES_SRC, OPCODES_DIR): define.
1608 (OPCODES): Use $(OPCODES_DIR).
1609 (gdb_sim_d10v_h): Rename sim_d10v_h.
1610 (gdb_sim_arm_h): Rename sim_arm_h.
1611
790c9cf0
KB
16122002-07-26 Kevin Buettner <kevinb@redhat.com>
1613
1614 * utils.c (host_pointer_to_address, address_to_host_pointer):
1615 Change internal_error() message to indicate function responsible
1616 for the error.
1617
9647fa49
KB
16182002-07-26 Kevin Buettner <kevinb@redhat.com>
1619
1620 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1621 calls to local_hex_string_custom().
1622
dabbe2c0
KB
16232002-07-26 Kevin Buettner <kevinb@redhat.com>
1624
1625 * irix5-nat.c: Move IRIX shared library support from here...
1626 * solib-irix.c: ...to here. Revised substantially to work with
1627 generic solib framework.
1628
b96d0a4e
KB
1629 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1630 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1631 * mips-irix-tdep.c: New file.
1632
313fb2f6
KB
1633 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1634 (mips-irix-tdep.o, solib-irix.o): New rules.
1635 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1636 solib-irix.o.
1637 * config/mips/irix6.mt (TDEPFILES): Likewise.
1638 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1639
ab2eaf26
KB
16402002-07-26 Kevin Buettner <kevinb@redhat.com>
1641
177e4768 1642 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
1643 disabled (via ``#if 0'') includes.
1644
7244546a
KB
16452002-07-26 Kevin Buettner <kevinb@redhat.com>
1646
1647 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1648 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1649 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1650 Add support for the fpscr register.
1651 * rs6000-nat.c (regmap, fetch_inferior_registers)
1652 (store_inferior_registers, fetch_core_registers): Likewise.
1653
dd7be90a
KB
16542002-07-26 Kevin Buettner <kevinb@redhat.com>
1655
1656 * rs6000-nat.c (language.h): Include.
1657 (special_regs): Delete this array.
1658 (regmap): New function.
1659 (fetch_register, store_register): Use regmap() to map gdb
1660 register numbers to ptrace register numbers. Also, use
1661 outputs from regmap() to make decisions regarding type of
1662 ptrace() call to make. In particular, don't compare against
1663 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1664 (fetch_inferior_registers, store_inferior_registers): Where
1665 possible, obtain register numbers from tdep struct. Don't
1666 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1667 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1668 (LAST_UISA_SP_REGNUM): Delete.
1669
11bf77db
KB
16702002-07-25 Kevin Buettner <kevinb@redhat.com>
1671
1672 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
1673 (fetch_registers, store_register, fetch_core_registers): Don't
1674 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
1675 regcache_collect() as appropriate.
1676 (find_toc_address): Format hex address with local_hex_string().
1677
06afebeb
AC
16782002-07-25 Andrew Cagney <ac131313@redhat.com>
1679
1680 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1681 bfd/elf32-frv.c.
1682
8c554d79
TT
16832002-07-24 Tom Tromey <tromey@redhat.com>
1684
1685 * jv-exp.y: Marked all strings with _().
1686 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1687 internal_error.
1688 (MethodInvocation, CastExpression, parse_number, yyerror,
1689 java_type_from_name, push_expression_name, yylex): Typo fixes.
1690
e4c242d9
DJ
16912002-07-24 Daniel Jacobowitz <drow@mvista.com>
1692
1693 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1694 (tee_file_flush, tee_file_write, tee_file_fputs)
1695 (tee_file_isatty): New.
1696 * ui-file.h (tee_file_new): Add prototype.
1697
ebf56fd3
AS
16982002-07-24 Aidan Skinner <aidan@velvet.net>
1699
1700 * ada-lang.c: Change k&r style function definitions to prototyped
1701 form.
1702 * ada-typeprint.c: Change k&r style function definitions to prototyped
1703 form.
1704 * ada-valprint.c: Change k&r style function definitions to prototyped
1705 form.
1706
7fb623f7
AC
17072002-07-24 Andrew Cagney <cagney@redhat.com>
1708
1709 * README: Remove reference to remote-bug.
1710 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1711 remote-bug.c.
1712 (m88k-nat.o): Delete rule.
1713 (m88k-tdep.o): Delete rule.
1714 (remote-bug.o): Delete rule.
1715 * MAINTAINERS: Mark as obsolete.
1716 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1717 * m88k-tdep.c: Make file obsolete.
1718 * config/m88k/m88k.mh: Ditto.
1719 * config/m88k/delta88v4.mh: Ditto.
1720 * config/m88k/delta88v4.mt: Ditto.
1721 * config/m88k/delta88.mt: Ditto.
1722 * config/m88k/delta88.mh: Ditto.
1723 * remote-bug.c: Ditto.
1724 * config/m88k/tm-delta88.h: Ditto.
1725 * config/m88k/nm-delta88v4.h: Ditto.
1726 * config/m88k/xm-delta88.h: Ditto.
1727 * config/m88k/xm-dgux.h: Ditto.
1728 * config/m88k/tm-m88k.h: Ditto.
1729 * config/m88k/nm-m88k.h: Ditto.
1730 * config/m88k/tm-delta88v4.h: Ditto.
1731 * m88k-nat.c: Ditto.
1732 * cxux-nat.c: Ditto.
1733 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1734 and m88*-*-* obsolete.
1735 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1736 m88*-*-* obsolete.
1737
37611a2b
AC
17382002-07-24 Andrew Cagney <cagney@redhat.com>
1739
1740 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1741 constant. Same for local pointer variables.
1742 (extract_signed_integer): Ditto.
1743 * defs.h (extract_unsigned_integer): Update.
1744 (extract_signed_integer): Update.
1745
1aaa5f99
AC
17462002-07-24 Andrew Cagney <cagney@redhat.com>
1747
1748 * regcache.c (regcache_raw_write): Change buf parameter to a
1749 constant void pointer.
1750 (regcache_raw_read): Change buf parameter to a void pointer.
1751 (legacy_write_register_gen): Change myaddr parameter a constant
1752 void pointer.
1753 (supply_register): Change val parameter to a const void pointer.
1754 * regcache.h (regcache_raw_write): Update declaration.
1755 (regcache_raw_read): Update declaration.
1756 (supply_register): Update declaration.
1757
b4f5539f
TT
17582002-07-24 Tom Tromey <tromey@redhat.com>
1759
1760 * defs.h (gdb_readline_wrapper): Declare.
1761 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1762 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1763 * top.c (gdb_readline_wrapper): New function.
1764 (command_line_input): Use it.
1765
0818c12a
AC
17662002-07-24 Andrew Cagney <cagney@redhat.com>
1767
1768 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1769 regcache_read and regcache_write.
1770 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1771 * regcache.c: Update.
1772 * sh-tdep.c (sh64_push_arguments): Update comment.
1773 (sh_pseudo_register_read): Update.
1774 (sh_pseudo_register_write): Update.
1775 (sh4_register_read): Update.
1776 (sh4_register_write): Update.
1777 (sh64_pseudo_register_read): Update.
1778 (sh64_pseudo_register_write): Update.
1779 (sh64_register_read): Update.
1780 (sh64_register_write): Update.
1781 * i386-tdep.c (i386_extract_return_value): Update.
1782 (i386_extract_struct_value_address): Update.
1783 (i386_extract_return_value): Update.
1784 * blockframe.c (generic_read_register_dummy): Update.
1785 (generic_call_dummy_register_unwind): Update
1786 * infrun.c (write_inferior_status_register): Update.
1787
f7321c06
JB
17882002-07-23 Jim Blandy <jimb@redhat.com>
1789
1790 * parser-defs.h (expression_context_pc): Make this extern.
1791 (Thanks to Michael Snyder.)
1792
2037aebb
AC
17932002-07-23 Andrew Cagney <ac131313@redhat.com>
1794
1795 GDB 5.2.1 released from 5.2 branch.
1796 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1797 * README: Update to mention 5.2.1.
1798
66504d44
MS
17992002-07-23 Mark Salter <msalter@redhat.com>
1800
1801 * remote.c (remote_read_bytes): Fix check for error.
1802
27bae383
KB
18032002-07-22 Kevin Buettner <kevinb@redhat.com>
1804
1805 * aix-thread.c (language.h): Include.
1806 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1807 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1808 Print newlines at end of debug messages.
1809 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1810 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1811
18122002-07-22 Kevin Buettner <kevinb@redhat.com>
1813
1814 * aix-thread.c (ppc-tdep.h): Include.
1815 (special_register_p): New function.
1816 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1817 (store_regs_user_thread): Use register number information from
1818 gdbarch_tdep struct instead of hardcoded offsets relative to
1819 FIRST_UISA_SP_REGNUM.
1820 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1821 special_register_p() instead of using FPLAST_REGNUM and
1822 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1823 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1824 will be MQ's register number.
1825
18262002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
1827
1828 * aix-thread.c (ops): Rename to aix_thread_ops.
1829 (base_ops): Rename to base_target.
1830 (ops_attach): Rename to aix_thread_attach.
1831 (ops_detach): Rename to aix_thread_detach.
1832 (ops_resume): Rename to aix_thread_detach.
1833 (ops_wait): Rename to aix_thread_wait.
1834 (ops_kill): Rename to aix_thread_kill.
1835 (init_ops): Rename to init_aix_thread_ops.
1836 (ops_fetch_register): Rename to aix_thread_fetch_register.
1837 (ops_store_register): Rename to aix_thread_store_register.
1838 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1839 (ops_thread_alive): Rename to aix_thread_thread_alive.
1840 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1841 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1842 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1843 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1844 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1845 (store_regs_lib): Rename to store_regs_user_thread.
1846 (store_regs_kern): Rename to store_regs_kernel_thread.
1847
27bae383 18482002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
1849
1850 * aix-thread.c (ops_prepare_to_store): Eliminate.
1851 (init_ops): Don't initialize ops.prepare_to_store.
1852 (store_regs_kern): Pre-fetch register buffers from child,
1853 because some registers may not be in the cache. Copy
1854 regs from register cache only if they are cached.
1855 (store_regs_lib): Copy regs from register cache only
1856 if they are cached.
1857 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1858 fill_gprs64): Ditto.
1859
61c5da0b
KB
18602002-07-22 Kevin Buettner <kevinb@redhat.com>
1861
1862 * aix-thread.c (gdb_assert.h): Include.
1863 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1864 register sizes (from register cache) match size of buffer holding
1865 register data.
1866 (fill_sprs32): Change parameter types to match those in the ptrace()
1867 buffer.
1868 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1869 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1870
18712002-07-22 Michael Snyder <msnyder@redhat.com>
1872
1873 * aix-thread.c (supply_sprs64): Cosmetic change.
1874 (supply_sprs32): Cosmetic change.
1875 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1876 (fill_sprs64): Use regcache_collect instead of read_register.
1877 (store_regs_lib): Use regcache_collect instead of
1878 read_register. Use fill_sprs32 instead of fill_sprs64,
1879 if debugging a 32-bit architecture.
1880 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1881 out of the register cache, instead of passing a pointer into
1882 the register cache directly to ptrace. Use regcache_collect
1883 insteaad of read_register.
1884 (ops_prepare_to_store): Use target_read_registers instead
1885 of read_register_bytes.
1886
36479eb1
AS
18872002-07-20 Aidan Skinner <aidan@velvet.net>
1888
1889 * MAINTAINERS: Add self under write after approval.
1890
80ae6ee2
AS
18912002-07-20 Aidan Skinner <aidan@velvet.net>
1892
1893 * ada-tasks.c: Change k&r style function definitions to prototyped
1894 form.
1895
8a8ab2b9
AC
18962002-07-19 Andrew Cagney <ac131313@redhat.com>
1897
1898 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1899 * x86-64-tdep.c: Include "objfiles.h".
1900 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1901 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1902
fb16b900
ML
19032002-07-17 Michal Ludvig <michal@suse.cz>
1904
1905 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1906 (update_context): Initialise cfa variable.
1907
0fe7bf7b
MS
19082002-07-17 Michael Snyder <msnyder@redhat.com>
1909
1910 * aix-thread.c: Shorten some long lines.
1911 Bring comments into line with code spec.
1912
488f131b
JB
19132002-07-18 Joel Brobecker <brobecker@gnat.com>
1914
1915 * infrun.c: Re-indent using gdb_indent.sh.
1916
46c415d2
JB
19172002-07-18 Joel Brobecker <brobecker@gnat.com>
1918
1919 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1920 Leave the indentation temporarily untouched, to minimize the diffs.
1921
cdecafbe
EZ
19222002-07-18 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * stabsread.c: Make os9k sections of the code obsolete,
1925 for real this time.
1926 * stabsread.h: Make os9k sections of the code obsolete.
1927
7b6aa020
ML
19282002-07-18 Michal Ludvig <mludvig@suse.cz>
1929
09ec9b38
ML
1930 * linux-low.c (regsets_store_inferior_registers): Add free()
1931 at the end of a loop to prevent memory leak.
1932 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1933 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
1934 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1935 line a comment.
4894ac5d 1936 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 1937
233282cd
JB
19382002-07-17 Jim Blandy <jimb@redhat.com>
1939
1940 * macrocmd.c (info_macro_command): Remove newline from error
1941 message.
1942
7b6aa020 19432002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
1944
1945 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1946 (sh_gdbarch_init): Use it for sh-dsp.
1947
f7ef9339
KB
19482002-07-16 Kevin Buettner <kevinb@redhat.com>
1949
1950 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1951 64-bit DWARF2 format.
1952
8dd72958
JB
19532002-07-16 Joel Brobecker <brobecker@gnat.com>
1954
1955 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1956 <sys/proc.h> when not available.
1957
a99a9e1b
AC
19582002-07-16 Andrew Cagney <ac131313@redhat.com>
1959
1960 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1961 * stabsread.c: Make os9k sections of the code obsolete.
1962 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1963 * config/i386/i386os9k.mt: Make file obsolete.
1964 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1965 (COMMON_OBS): Remove os9kread.o
1966 (SFILES): Remove os9kread.c.
1967 (os9kread.o, remote-os9k.o): Make target obsolete.
1968 * remote-os9k.c: Make file obsolete.
1969 * os9kread.c: Make file obsolete.
1970 * Makefile.in
1971
7a3085c1
AC
19722002-07-16 Andrew Cagney <ac131313@redhat.com>
1973
1974 * NEWS: Mention that the FR30 has been made obsolete.
1975 * fr30-tdep.c: Make file obsolete.
1976 * config/fr30/tm-fr30.h: Ditto.
1977 * config/fr30/fr30.mt: Ditto.
1978 * configure.tgt: Make fr30-*-elf obsolete.
1979 * MAINTAINERS: Make fr30-elf obsolete.
1980
28a93f5a
PM
19812002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1982
1983 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1984 found is not inside a section.
1985
be006b8b
KB
19862002-07-15 Kevin Buettner <kevinb@redhat.com>
1987
1988 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1989 strerror().
1990 (pdc_realloc): Use xrealloc() instead of realloc().
1991
14fa3751
KB
19922002-07-15 Kevin Buettner <kevinb@redhat.com>
1993
1994 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1995 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1996 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1997 macros.
1998
42cc437f
KB
19992002-07-15 Kevin Buettner <kevinb@redhat.com>
2000
2001 * aix-thread.c (ptrace_check): Eliminate goto.
2002 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2003 problem.
2004
8e2c28d4
KB
20052002-07-15 Kevin Buettner <kevinb@redhat.com>
2006
2007 * aix-thread.c (gdbcmd.h): Include.
2008 (DEBUG, DBG, DBG2, dbg): Eliminate.
2009 (debug_aix_thread): New static global.
2010 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2011 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2012 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2013 invocations to DBG and DBG2 macros to test against
2014 ``debug_aix_thread'' and call fprintf_unfiltered().
2015 (_initialize_aix_thread): Add new command "set debug aix-thread".
2016
30413464
AC
20172002-07-15 Andrew Cagney <ac131313@redhat.com>
2018
2019 From Gerhard Tonn <TON@de.ibm.com>:
2020 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2021 instead of supply_register.
2022
7c43edc1
AC
20232002-07-15 Andrew Cagney <ac131313@redhat.com>
2024
2025 * dwarf2cfi.c: Include "gdb_assert.h".
2026 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2027 non-NULL.
2028 (update_context): Do not use __func__. Add missing ``break''.
2029 (update_context): Do not use __func__.
2030
9364a0ef
EZ
20312002-07-15 Elena Zannoni <ezannoni@redhat.com>
2032
2033 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2034 and its setting. Set gdbarch instruction printing functions
2035 directly. For non-rs6000 case use new function
2036 gdb_print_insn_powerpc.
2037 (gdb_print_insn_powerpc): New function.
2038
3fbeef0b
AC
20392002-07-13 Andrew Cagney <ac131313@redhat.com>
2040
92eb23c5 2041 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2042 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2043 * configure.tgt: Mark d30v-*-* as obsolete.
2044 * d30v-tdep.c: Mark file as obsolete.
2045 * config/d30v/d30v.mt: Ditto.
2046 * config/d30v/tm-d30v.h: Ditto.
2047
aacb1f0a
AS
20482002-07-13 Aidan Skinner <aidan@velvet.net>
2049
2050 * ada-tasks.c (add_task_entry): replace calls to
2051 malloc() with xmalloc
2052 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2053
2054 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2055 ada_finish_decode_line_1, all_sals_for_line
2056 ada_breakpoint_rewrite): replace calls to free() with xfree()
2057
c11d79f2
KB
20582002-07-12 Kevin Buettner <kevinb@redhat.com>
2059
2060 From Nicholas Duffek (with minor changes by Martin Hunt,
2061 Louis Hamilton, and Kevin Buettner):
2062 * aix-thread.c: New file.
2063
8e19ed76
PS
20642002-07-12 Petr Sorfa <petrs@caldera.com>
2065
2066 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2067 complaint for invalid attribute class or form.
2068 (read_func_scope): DW_AT_frame_base
2069 better handling of DW_AT_block*.
2070 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2071 better handling of DW_AT_block*.
2072 (read_common_block): DW_AT_location
2073 better handling of DW_AT_block*.
2074 (read_partial_die): DW_AT_location better handling
2075 of DW_AT_block*.
2076 (new_symbol): DW_AT_external better handling of
2077 DW_AT_block*. Proper initialization of variable
2078 "addr".
2079 (attr_form_is_block): New function that returns true
2080 if the attribute's form is of DW_FORM_block*.
2081
295401f7
DJ
20822002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2083
2084 * valops.c (find_method_list): Remove comment about
2085 removed STATIC_MEMFUNCP argument.
2086 (value_find_oload_method_list): Likewise.
2087
e42dc924
KB
20882002-07-12 Kevin Buettner <kevinb@redhat.com>
2089
2090 From Nicholas Duffek:
2091 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2092 target_new_objfile_hook.
2093
6904b546
KB
20942002-07-12 Kevin Buettner <kevinb@redhat.com>
2095
2096 From Nicholas Duffek:
2097 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2098 csect.
2099
53fe9346
AC
21002002-07-12 Andrew Cagney <cagney@redhat.com>
2101
2102 * MAINTAINERS: Mention --enable-sim-build-warnings.
2103 (m68hc11-elf): Disable sim build warnings.
2104 (m32r-elf): Mark as broken obsolete candidate.
2105 (x86_64-linux-gnu): Mark as buildable with -Werror.
2106 (arm-elf): Change -w to ``,'' which enables warnings but not
2107 -Werror.
2108
af5f3db6
AC
21092002-07-12 Andrew Cagney <ac131313@redhat.com>
2110
2111 * bcache.h: Update copyright.
2112 (struct bstring, struct bcache): Move definition to "bcache.c".
2113 Replaced by opaque declaration.
2114 (bcache_xfree): Replace free_bcache.
2115 (bcache_xmalloc, bcache_memory_used): Declare.
2116
2117 * bcache.c: Update copyright.
2118 (struct bstring, struct bcache): Moved to here from "bcache.h".
2119 Update comments.
2120 (bcache_xmalloc, bcache_memory_used): New functions.
2121 (bcache_xfree): Replace function free_bcache.
2122
2123 * Makefile.in (objfiles.o): Add $(bcache_h).
2124 (objfiles_h): Remove $(bcache_h).
2125 (symfile.o): Add $(bcache_h).
2126
2127 * symmisc.c: Update copyright.
2128 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2129 (print_objfile_statistics): Use bcache_memory_used.
2130
2131 * symfile.c: Include "bcache.h".
2132 (reread_symbols): Use bcache_xfree.
2133 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2134 (add_psymbol_to_list): Pass psymbol_cache by value.
2135 (add_psymbol_with_dem_name_to_list): Ditto.
2136
2137 * objfiles.h: Update copyright.
2138 (struct bcache): Declare opaque. Do not include "bcache.h".
2139 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2140 bcache'' pointers.
2141 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2142
2143 * objfiles.c: Include "bcache.h". Update copyright.
2144 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2145 macro_cache.
2146 (free_objfile): Use bcache_xfree.
2147
444199e7
GS
21482002-07-11 Grace Sainsbury <graces@redhat.com>
2149
2150 * monitor.c (monitor_fetch_register): Make name a constant.
2151 (monitor_store_register): Same.
2152
261397f8
DJ
21532002-07-11 Daniel Jacobowitz <drow@mvista.com>
2154
2155 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2156 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2157 (finish_block) For non-function blocks, hash the symbol table. For
2158 function blocks, mark the symbol table as unhashed.
2159 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2160 (msymbol_hash_iw): Likewise.
2161 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2162 value.
2163 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2164 (lookup_minimal_symbol): Likewise for both.
2165 * symtab.h (struct block): Add `hashtable' flag. Comment the
2166 hashtable.
2167 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2168 (ALL_BLOCK_SYMBOLS): Update.
2169 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2170 (struct symbol): Add `hash_next' pointer.
2171 * symtab.c (lookup_block_symbol): Search using the hash table when
2172 possible.
2173 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2174 (search_symbols, find_addr_symbol): Likewise.
2175
2176 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2177 (read_dst_symtab): Likewise.
2178 * jv-lang.c (get_java_class_symtab): Likewise.
2179 * mdebugread.c: Include "gdb_assert.h".
2180 (shrink_block): Assert that the block being modified is not hashed.
2181 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2182 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2183 symbols.
2184 (dump_symtab): Recognize hashed blocks.
2185 * printcmd.c (print_frame_args): Assert that function blocks do not
2186 have hashed symbol tables.
2187 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2188 (fill_in_ada_prototype, debug_print_block): Likewise.
2189 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2190
6f0eaa01
CV
21912002-07-11 Corinna Vinschen <vinschen@redhat.com>
2192
2193 * stack.c (print_frame): Use result of frame_address_in_block()
2194 instead of fi->pc when evaluating symbols.
2195 (backtrace_command_1): Ditto.
2196
a208b0cb
AC
21972002-07-11 Andrew Cagney <cagney@redhat.com>
2198
2199 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2200 Make static.
2201
2202 * arm-tdep.c (arm_register_name): Make return type constant.
2203
a6b6b089
AC
22042002-07-10 Andrew Cagney <ac131313@redhat.com>
2205
5ae5f592
AC
2206 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2207 prototype.
2208 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2209 * s390-tdep.c (s390_fp_regnum): Ditto.
2210 (s390_read_fp): Ditto.
2211 (s390_pop_frame): Ditto.
2212 (_initialize_s390_tdep): Ditto.
2213 * remote.c (get_remote_state): Ditto.
2214 * procfs.c (mappingflags): Ditto.
2215 * memattr.c (_initialize_mem): Ditto.
2216 * mcore-tdep.c (mcore_pop_frame): Ditto.
2217 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2218 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2219 * language.c (set_case_str): Ditto.
2220 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2221 * frv-tdep.c (new_variant): Ditto.
2222 (frv_stopped_data_address): Ditto.
2223 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2224 (context_alloc): Ditto.
2225 (frame_state_alloc): Ditto.
2226 (unwind_tmp_obstack_init): Ditto.
2227 (unwind_tmp_obstack_free): Ditto.
2228 (cfi_read_fp): Ditto.
2229 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2230 (cris_pop_frame): Ditto.
2231 * c-lang.c (scanning_macro_expansion): Ditto.
2232 (finished_macro_expansion): Ditto.
2233 (c_preprocess_and_parse): Ditto.
2234 * gdbarch.sh: Ditto.
2235 * gdbarch.h, gdbarch.c: Regenerate.
2236 * config/mn10200/tm-mn10200.h: Adjust indentation.
2237 * target.c: Adjust indentation.
2238 * symtab.h: Adjust indentation.
2239 * stabsread.h: Adjust indentation.
2240 * remote-es.c: Adjust indentation.
2241 * os9kread.c: Adjust indentation.
2242
22432002-07-10 Andrew Cagney <ac131313@redhat.com>
2244
a6b6b089
AC
2245 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2246 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2247
a1789893
GS
22482002-07-10 Grace Sainsbury <graces@redhat.com>
2249
2250 * NEWS: Mention m68k, mcore multi-arching.
2251 * MAINTAINERS: Change status of m68k, mcore to reflect
2252 multi-arching.
2253
02f0d45d
DJ
22542002-07-10 Daniel Jacobowitz <drow@mvista.com>
2255
2256 * valops.c (find_overload_match): Free oload_syms.
2257
f15f768e
JB
22582002-07-09 Joel Brobecker <brobecker@gnat.com>
2259
2260 Define HAVE_SYS_PROC_H if sys/proc.h exists
2261 * configure.in: Add check for sys/proc.h
2262 * config.in: Regenerate.
2263 * configure: Regenerate.
2264
902a7139
GS
22652002-07-09 Grace Sainsbury <graces@redhat.com>
2266
2267 * config/m68k/tm-m68k.h: Remove macros wrapped in
2268 #if !GDB_MULTI_ARCH.
2269
a534e424
AC
22702002-07-08 Andrew Cagney <ac131313@redhat.com>
2271
2272 * config.in, configure: Regenerate.
2273
9b94f7bf
MK
22742002-07-08 Mark Kettenis <kettenis@gnu.org>
2275
2276 * dwarf2cfi.c: Include "gcore.h".
2277 (execute_stack_op): Fix implementation of the
2278 DW_OP_deref and DW_OP_deref_size operators by letting do their
2279 lookup in the target.
2280
1d34db41
MK
22812002-07-07 Mark Kettenis <kettenis@gnu.org>
2282
2283 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2284 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2285 tdep->sc_sp_offset.
2286
79d5b63a
DJ
22872002-07-05 Daniel Jacobowitz <drow@mvista.com>
2288
2289 Fix PR gdb/595, gdb/602
2290 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2291 Don't call value_cast, just read the vtable pointer; update comments
2292 to match.
2293
3bb912e8
GS
22942002-07-05 Grace Sainsbury <graces@redhat.com>
2295
2296 * config/mcore/tm-mcore.h: Remove file.
2297 * config/mcore/mcore.mt: Remove definition of TM_FILE
2298 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2299
ca39387d
MK
23002002-07-05 Mark Kettenis <kettenis@gnu.org>
2301
2302 * i386bsd-tdep.c: Include "gdb_string.h".
2303
efdc1108
GS
23042002-07-04 Grace Sainsbury <graces@redhat.com>
2305
2306 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2307 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2308 mcore-tdep.
2309 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2310 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2311 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2312 (RETVAL_REGNUM): Move macros from tm-mcore.h
2313 (mcore_reg_struct_has_addr): New function.
2314 (mcore_gdbarch_init): Added initializations for the macros removed
2315 from tm-mcore.h.
2316
bb21884d
MK
23172002-07-04 Mark Kettenis <kettenis@gnu.org>
2318
2319 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2320 traditonal string branding within the ELF header.
2321
228c6d41
DJ
23222002-07-04 Daniel Jacobowitz <drow@mvista.com>
2323
2324 * symtab.c (remove_params): New function.
2325 (make_symbol_overload_list): Use it instead of cplus_demangle.
2326 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2327
2404952e
MK
23282002-07-04 Mark Kettenis <kettenis@gnu.org>
2329
e5e4acad
MK
2330 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2331
baadce09
MK
2332 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2333 New variables.
2334 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2335 and tdep->sigtramp_end.
2336 * i386obsd-nat.c: New file.
2337 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2338
2404952e
MK
2339 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2340 Don't call get_current_frame().
2341
9b4f1ba7
PM
23422002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2343
2344 * i386-nat.c (child_post_startup_inferior): New function
2345 calling i386_cleanup_dregs if
2346 I386_USE_GENERIC_WATCHPOINTS is defined.
2347 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2348 conditional to acknowledge that i386-nat.c has its
2349 own child_post_startup_inferior function.
2350
c0d1d883
MK
23512002-07-04 Mark Kettenis <kettenis@gnu.org>
2352
00f8375e
MK
2353 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2354 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2355 instead of MAX_REGISTER_RAW_SIZE.
2356 (i386_extract_return_value, i386_extract_struct_value_address):
2357 Convert to use regcache.
2358 (i386_gdbarch_init): Set max_register_raw_size and
2359 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2360 Set extract_return_value and extract_struct_value_address instead
2361 of their deprecated variants.
2362
c0d1d883
MK
2363 Convert i386 target to generic dummy frames.
2364 * i386-tdep.c: Include "symfile.h".
2365 (i386_frameless_signal_p): Consider a function to be frameless if
2366 the pc points at the first instruction of the function.
2367 (i386_frame_chain): Handle (generic) call dummies.
2368 (i386_frame_saved_pc): Likewise.
2369 (i386_frame_init_saved_regs): Remove code dealing with call
2370 dummies on the stack.
2371 (i386_push_dummy_frame): Removed.
2372 (i386_call_dummy_words): Removed.
2373 (i386_fix_call_dummy): Removed.
2374 (i386_push_return_address): New function.
2375 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2376 parameter, and don't call get_current_frame.
2377 (i386_pop_frame): New function.
2378 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2379 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2380 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2381 call_dummy_length to 0, set call_dummy_words to NULL, set
2382 sizeof_call_dummy_words to 0, set fix_call_dummy to
2383 generic_fix_call_dummy, set pc_in_call_dummy to
2384 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2385 generic_push_dummy_frame, set push_return_address to
2386 i386_push_return_address and set frame_chain_valid to
2387 generic_file_frame_chain_valid.
2388
049ee0e4
AC
23892002-07-03 Andrew Cagney <ac131313@redhat.com>
2390
2391 * gdbarch.sh (struct regcache): Add opaque declaration.
2392 (EXTRACT_RETURN_VALUE): New architecture method.
2393 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2394 * gdbarch.h, gdbarch.c: Regenerate.
2395 * arch-utils.c (legacy_extract_return_value): New function.
2396 * arch-utils.h (legacy_extract_return_value): Declare.
2397 * values.c (value_being_returned): Re-enable code handling
2398 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2399 deprecated_grub_regcache_for_registers call to block handling
2400 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2401 (EXTRACT_RETURN_VALUE): Do not define.
2402
4e0d9804
GS
24032002-07-03 Grace Sainsbury <graces@redhat.com>
2404
2405 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2406 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2407 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2408 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2409 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2410 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2411 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2412 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2413 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2414 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2415 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2416 argument so the function fits the prototype in the architecture
2417 vector.
2418 (mcore_pop_frame): Remove argument so the function fits the
2419 prototype. Use get_current_frame instead of the argument.
2420 (mcore_push_arguments): Change type of struct_return so the
2421 function can be used in the architecture vector.
2422 (mcore_store_struct_return): Add.
2423 (mcore_frame_init_saved_regs): Add.
2424 (mcore_gdbarch_init): Add function calls to replace the macros
2425 removed from tm-mcore.h
2426
36160dc4
AC
24272002-07-03 Andrew Cagney <ac131313@redhat.com>
2428
2429 * infcmd.c (print_return_value): Remove compatibility code calling
2430 deprecated_grub_regcache_for_registers.
2431
2432 * values.c: Include "regcache.h".
2433 (value_being_returned): Update. Use
2434 deprecated_grub_regcache_for_registers to extract the register
2435 buffer address.
2436 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2437 ``struct regcache''.
2438 * Makefile.in (values.o): Add dependency on $(regcache_h).
2439
2440 * inferior.h (run_stack_dummy): Change type of second parameter to
2441 a ``struct regcache''.
2442 * valops.c (hand_function_call): Change type of retbuf to ``struct
2443 regcache''. Allocate using regcache_xmalloc, clean using
2444 make_cleanup_regcache_xfree.
2445 * infcmd.c (run_stack_dummy): Update. Use
2446 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2447
2448 * regcache.c (do_regcache_xfree): New function.
2449 (make_cleanup_regcache_xfree): New function.
2450 * regcache.h (make_cleanup_regcache_xfree): Declare.
2451
e64d9b3d
MH
24522002-07-03 Martin M. Hunt <hunt@redhat.com>
2453
4dd79c29
MH
2454 * event-top.c (command_line_handler): Don't read past
2455 beginning of buffer.
e64d9b3d 2456
4dd79c29
MH
24572002-07-03 Martin M. Hunt <hunt@redhat.com>
2458
e64d9b3d
MH
2459 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2460 struct frame_id.
2461 (varobj_create): Store frame_id for root.
2462 (varobj_gen_name): Use xasprintf.
2463 (varobj_update): Save and restore frame using get_frame_id() and
2464 frame_find_by_id().
2465 (create_child): Use xasprintf.
2466 (new_root_variable): Initialize frame_id.
2467 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2468 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2469 to prevent memory leak.
2470
26e6c56a
AC
24712002-07-03 Andrew Cagney <ac131313@redhat.com>
2472
2473 * valops.c (hand_function_call): Move declaration of retbuf to
2474 start of function, allocate using malloc, add a cleanup but before
2475 the inf_status cleanup, cleanup the buffer. Rename local variable
2476 old_chain to inf_status_cleanup.
2477
f436dd25
MH
24782002-07-03 Martin M. Hunt <hunt@redhat.com>
2479
2480 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2481
2482 * cli/cli-decode.c (cmd_func_p): New function.
2483 (cmd_func): New function.
2484
2485 * command.h: Add cmd_func() and cmd_func_p().
2486
4cfe2084
GS
24872002-07-03 Grace Sainsbury <graces@redhat.com>
2488
2489 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2490 (REGISTER_SIZE): Remove.
2491 (MAX_REGISTER_RAW_SIZE): Remove.
2492 (REGISTER_VIRTUAL_TYPE): Remove.
2493 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2494 (REGISTER_NAME): Remove.
2495 (USE_GENERIC_DUMMY_FRAMES): Remove.
2496 (CALL_DUMMY): Remove.
2497 (CALL_DUMMY_START_OFFSET): Remove.
2498 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2499 (CALL_DUMMY_LOCATION): Remove.
2500 (FIX_CALL_DUMMY): Remove.
2501 (CALL_DUMMY_ADDRESS): Remove.
2502 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2503 (SAVE_DUMMY_FRAME_TOS): Remove.
2504 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2505 (mcore_register_virtual_type): New function.
2506 (mcore_register_byte): New function.
2507 (mcore_register_size): New function.
2508 (mcore_register_name): New function.
2509 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2510 macros removed from tm-mcore.h.
2511 (mcore_dump_tdep): Add.
2512 (_initialize_mcore_tdep): Add gdbarch_register call.
2513
4fd667e9
MK
25142002-07-03 Mark Kettenis <kettenis@gnu.org>
2515
2516 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2517 frameless_look_for_prologue, such that we actually call this
2518 function.
2519
42f99ac2
JB
25202002-07-02 Joel Brobecker <brobecker@gnat.com>
2521
2522 * frame.h (frame_address_in_block): New function.
2523
2524 * blockframe.c (frame_address_in_block): New function extracted
2525 from get_frame_block().
2526 (get_frame_block): Use frame_address_in_block().
2527 (block_innermost_frame): Use frame_address_in_block() to match
2528 the frame pc address against the block boundaries rather than
2529 the frame pc directly. This prevents a failure when a frame pc
2530 is actually a return-address pointing immediately after the end
2531 of the given block.
2532
103a1597 25332002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
2534
2535 * MAINTAINERS: Add self under write after approval.
2536
25372002-07-02 Grace Sainsbury <graces@redhat.com>
2538
103a1597
GS
2539 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2540 used in architecture vector. The default is
2541 m68k_local_breakpoint_from_pc.
2542 (m68k_local_breakpoint_from_pc): Add.
2543 (enum): Add register numbers from tm-m68k.h.
2544 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2545 vector.
2546 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2547 GDB_MULTI_ARCH_PARTIAL.
2548 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2549 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2550 m68k-tdep.c.
2551 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2552 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2553 to enum in m68k-tdep.c
2554
7a5a0534
JB
25552002-07-02 Joel Brobecker <brobecker@gnat.com>
2556
2557 * solib-osf.c (open_map): Compute the list of shared libraries
2558 loaded by the inferior, rather than the list of libraries loaded
2559 by GDB itself. Otherwise, GDB ends up reading the symbols from
2560 the wrong shared libraries...
2561
6f558d74
MK
25622002-07-02 Mark Kettenis <kettenis@gnu.org>
2563
b7d15bf7
MK
2564 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2565 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2566 macros.
2567 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2568 Remove functions.
2569 (FRAMELESS_SIGNAL): Remove function.
2570 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2571 i386_linux_saved_pc_after_call): Removed.
2572 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2573 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2574 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2575
6bff26de
MK
2576 * i386-tdep.c (i386_frameless_signal_p): New function.
2577 (i386_frame_chain): Deal with frameless signals.
2578 (i386_sigtramp_saved_sp): New function.
2579 (i386_frame_saved_pc): Deal with frameless signals.
2580 (i386_saved_pc_after_call): Make sure the correct value is
2581 returned just after entry into a sigtramp.
2582 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2583 i386fbsd4_sc_sp_offset): New variables.
2584 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2585 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2586 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2587 similiar to what we already did for sc_pc_offset.
2588 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2589 tdep->sc_sp_offset.
2590
6f558d74
MK
2591 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2592
145564b7
ML
25932002-07-02 Michal Ludvig <mludvig@suse.cz>
2594
2595 * config/i386/tm-x86-64linux.h: New.
2596 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2597 definitions.
2598 * config/i386/nm-x86-64.h: Rename to ...
2599 * config/i386/nm-x86-64linux.h: ... this one.
2600 * config/i386/x86-64linux.mh: Reflect the above change.
2601
3a1e71e3
MK
26022002-07-01 Mark Kettenis <kettenis@gnu.org>
2603
21d0e8a4
MK
2604 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2605 with sigcontext_addr. Add sc_sp_offset.
2606 (i386bsd_sigtramp_saved_pc): Remove prototype.
2607 (i386bsd_sicontext_addr): Add prototype.
2608 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2609 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2610 (i386_svr4_sigtramp_saved_pc): Removed.
2611 (i386_svr4_sigcontext_addr): New function.
2612 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2613 Initialize tdep->sigcontext_addr instead. Initialize
2614 tdep->sc_pc_offset and tdep->sc_sp_offset.
2615 (i386_gdbarch_init): Likewise.
2616 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2617 any more.
2618 (i386bsd_sigtramp_saved_pc): Remove function.
2619 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2620 Initialize tdep->sigcontext_addr instead. Initialize
2621 tdep->sc_pc_offset.
2622 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2623 of tdep->sigtramp_saved_pc.
2624 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2625 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2626 instead.
2627
3a1e71e3
MK
2628 * i386-tdep.c (i386_frameless_function_invocation,
2629 i386_frame_num_args, i386_frame_init_saved_regs,
2630 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2631 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2632 i386_extract_return_value, i386_store_return_value,
2633 i386_extract_struct_value_address, i386_register_virtual_type,
2634 i386_register_convertible, i386_register_convert_to_virtual,
2635 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2636 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2637 static.
2638
52e9098c
MK
26392002-07-01 Mark Kettenis <kettenis@gnu.org>
2640
77b13a25
MK
2641 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2642
52e9098c
MK
2643 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2644 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2645 this macro. Include "value.h".
2646
1b372fff
AS
26472002-06-30 Aidan Skinner <aidan@velvet.net>
2648
2649 * ada-exp.tab.c: remove as it's a generated file
2650 * ada-lex.c: remove as it's a generated file
2651
9c5045b5
MK
26522002-06-30 Mark Kettenis <kettenis@gnu.org>
2653
4a93c5bb
MK
2654 * config/i386/tm-i386.h (struct frame_info, struct
2655 frame_saved_regs, struct value, struct type): Remove forward
2656 declarations.
2657
322d4fe0
MK
2658 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2659 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2660 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2661 (FILL_FPXREGSET): Define.
2662
fdd8263d
MK
2663 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2664
482e577b
MK
2665 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2666 i[3456]86-*-netbsd* case.
2667 * config/i386/tm-obsd.h: Removed.
2668 * config/i386/obsd.mt: Removed.
2669 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2670 core-aout.o.
2671 (MH_CFLAGS): Add -DYYDEBUG=0.
2672
6916549a
MK
2673 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2674 i386nbsd_sc_pc_offset on OpenBSD too.
2675
9c5045b5
MK
2676 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2677 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2678 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2679 define.
2680 * i386bsd-tdep.c: Include "arch-utils.h".
2681 (i386bsd_aout_in_solib_call_trampoline): New function.
2682 (i386bsd_init_abi): Set in_solib_call_trampoline to
2683 i386bsd_aout_in_solib_call_trampoline.
2684 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2685 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2686
aa84d1bb
AC
26872002-06-28 Andrew Cagney <ac131313@redhat.com>
2688
2689 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2690 (struct obstack, struct bcache): Add opaque declarations.
2691 * Makefile.in (macrotab_h): Update
2692
b4d83933
AC
26932002-06-28 Andrew Cagney <ac131313@redhat.com>
2694
2695 * blockframe.c (generic_find_dummy_frame): Change return type to
2696 ``struct regcache''.
2697 (struct dummy_frame): Replace field ``registers'' with regcache, a
2698 struct regcache object.
2699 (generic_find_dummy_frame): Update.
2700 (generic_push_dummy_frame): Update. Use regcache_xfree,
2701 regcache_xmalloc and regcache_cpy.
2702 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2703 regcache_xfree.
2704 (deprecated_generic_find_dummy_frame): Update.
2705 (generic_read_register_dummy): Update. Use
2706 regcache_read_as_address.
2707 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2708 (generic_get_saved_register): Update. Use regcache_read.
2709
08c0b5bc
AC
27102002-06-28 Andrew Cagney <ac131313@redhat.com>
2711
2712 * Makefile.in (objfiles_h): Add $(bcache_h).
2713 * objfiles.h: Include "bcache.h".
2714
2715 * Makefile.in (symtab_h): Remove $(bcache_h).
2716 * symtab.h: Do not include "bcache.h".
2717
1f89801a
AC
27182002-06-28 Andrew Cagney <ac131313@redhat.com>
2719
2720 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2721 generic_func_frame_chain_valid.
2722
b9644b58
DB
27232002-06-28 David O'Brien <obrien@FreeBSD.org>
2724
2725 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2726 * config/i386/tm-fbsd.h: Likewise.
2727
dd486634
AC
27282002-06-28 Andrew Cagney <ac131313@redhat.com>
2729
2730 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2731 generic_unwind_get_saved_register.
2732
0b434a00
AC
27332002-06-27 Andrew Cagney <ac131313@redhat.com>
2734
2735 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2736 * regcache.c (supply_register): Add missing argument to
2737 register_buffer call.
2738
f30e5a77
AC
27392002-06-27 Andrew Cagney <ac131313@redhat.com>
2740
2741 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2742 Solaris /bin/grep does not not like it. From Peter Schauer.
2743
9f064c95
TT
27442002-06-26 Tom Tromey <tromey@redhat.com>
2745
2746 * command.h (add_setshow_cmd): Declare.
2747 (add_setshow_cmd_full): Declare.
2748 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2749 returns void. Use add_setshow_cmd_full.
2750 (add_setshow_cmd_full): New function.
2751 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2752 (add_setshow_boolean_cmd): Likewise.
2753
099c7589
JT
27542002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2755
2756 * config/vax/tm-vax.h: Protect from multiple inclusion.
2757 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2758 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2759 * config/vax/tm-vaxbsd.h: ...here. New file.
2760 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2761
1d049c5e
JT
27622002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2763
2764 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2765 (BELIEVE_PCC_PROMOTION): Remove.
2766 (AP_REGNUM): Move to...
2767 * config/vax/nm-vax.h: ...here.
2768 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2769 (vax_breakpoint_from_pc): New function.
2770 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2771 and gdbarch_believe_pcc_promotion.
2772
4791e091
JT
27732002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2774
2775 * Makefile.in (vax_tdep_h): Define.
2776 (vax-tdep.o): Use $(vax_tdep_h).
2777 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2778 (vax_dump_tdep): New function.
2779 (_initialize_vax_tdep): Register vax_dump_tdep.
2780 * vax-tdep.h: Include osabi.h.
2781 (struct gdbarch_tdep): New.
2782
da130f98
AC
27832002-06-26 Andrew Cagney <cagney@redhat.com>
2784
2785 * frame.h (deprecated_generic_find_dummy_frame): Rename
2786 generic_find_dummy_frame.
2787 * blockframe.c (generic_find_dummy_frame): Make static.
2788 (deprecated_generic_find_dummy_frame): New function.
2789 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2790 generic_find_dummy_frame with deprecated_find_dummy_frame.
2791 (sh64_nofp_frame_init_saved_regs): Ditto.
2792 (sh_fp_frame_init_saved_regs): Ditto.
2793 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2794 (s390_frame_chain): Ditto.
2795 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2796
6300c360
GS
27972002-06-26 Grace Sainsbury <graces@redhat.com>
2798
2799 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2800 gdbarch vector are at the top.
2801 (NUM_REGS): Remove.
2802 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2803 (FRAME_ARGS_ADDRESS): Remove.
2804 (FRAME_LOCALS_ADDRESS): Remove.
2805 (FRAME_NUM_ARGS): Remove.
2806 (FRAME_ARGS_SKIP): Remove.
2807 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2808 (m68k_gdbarch_init): Add gdbarch initializations for macros
2809 undefined in tm-m68k.h
2810
1c617db8
GS
28112002-06-26 Grace Sainsbury <graces@redhat.com>
2812
2813 * monitor.h: Add the function regname to monitor_ops
2814 structure. This way NUM_REGS does not have to be a constant.
2815 * monitor.c (monitor_fetch_register): Added support for regname
2816 function. The function is called if the array regnames is NULL.
2817 (monitor_store_register): Same.
da130f98
AC
2818 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2819 regnames array.
1c617db8
GS
2820 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2821 cpu32bug_cmds.regname to point to new function.
2822 * abug-rom.c (abug_regname): Same as above.
2823 (init_abug_cmds): Same.
2824 * dbug-rom.c (dbug_regname): Same as above.
2825 (init_dbug_cmds): Same.
2826 * remote-est.c (est_regname): Same.
2827 (init_est_cmds): Same.
2828 * rom68k-rom.c (rom68k_regname): Same.
2829 (init_rom68k_cmds): Same.
2830
ea9365bb
TT
28312002-06-25 Tom Tromey <tromey@redhat.com>
2832
2833 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2834
72cec141
AC
28352002-06-25 Andrew Cagney <cagney@redhat.com>
2836
2837 * infrun.c (stop_registers): Change variable's type to ``struct
2838 regcache'''.
2839 (xmalloc_inferior_status): Delete function.
2840 (free_inferior_status): Delete function.
2841 (normal_stop): Use regcache_cpy.
2842 (struct inferior_status): Change type of fields ``stop_registers''
2843 and ``registers'' to ``struct regcache''.
2844 (write_inferior_status_register): Use regcache_write.
2845 (save_inferior_status): Instead of calling
2846 xmalloc_inferior_status, allocate the inf_status buffer directly.
2847 Use regcache_dup_no_passthrough and regcache_dup to save the
2848 buffers.
2849 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2850 Replace the stop_registers regcache instead of overriding it. Use
2851 regcache_xfree. Instead of calling free_inferior_status, xfree
2852 the buffer directly.
2853 (discard_inferior_status): Use regcache_xfree. Instead of calling
2854 free_inferior_status, xfree the buffer directly.
2855 (build_infrun): Use regcache_xmalloc.
2856 (_initialize_infrun): Delete redundant call to build_infrun.
2857
2858 * Makefile.in (infcmd.o): Add $(regcache_h).
2859
2860 * infcmd.c: Include "regcache.h".
2861 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2862 obtain the address of `stop_registers' register buffer.
2863 (print_return_value): Ditto.
2864
2865 * inferior.h (struct regcache): Add opaque declaration.
2866 (stop_registers): Change variable's declared type to ``struct
2867 regcache''.
2868
defc6f8c
TT
28692002-06-24 Tom Tromey <tromey@redhat.com>
2870
c0e624e7
TT
2871 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2872 * target.c (initialize_targets): Fixed typo in
2873 trust-readonly-sections `show' documentation.
2874
defc6f8c
TT
2875 * main.c: Marked all strings with _().
2876
2b236d82
DH
28772002-06-24 Don Howard <dhoward@redhat.com>
2878
2879 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2880 that means max CORE_ADDR+1.
2881 (lookup_mem_region): Ditto.
2882 (mem_info_command): Ditto.
2883
942dc0e9
GS
28842002-06-24 Grace Sainsbury <graces@redhat.com>
2885
2886 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2887 (REGISTER_BYTES_OK): Remove.
2888 (REGISTER_BYTES): Remove.
2889 (STORE_STRUCT_RETURN): Remove.
2890 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2891 (STORE_RETURN_VALUE): Remove.
2892 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2893 (FRAME_CHAIN): Remove.
2894 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2895 (FRAME_SAVED_PC): Remove.
2896 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2897 (m68k_store_struct_return): Add.
2898 (m68k_deprecated_extract_return_value): Add.
2899 (m68k_deprecated_extract_struct_value_address): Add.
2900 (m68k_store_return_value): Add.
2901 (m68k_frame_chain): Add.
2902 (m68k_frameless_function_invocation): Add.
2903 (m68k_frame_saved_pc): Add.
2904 (m68k_gdbarch_init): added set_gdbarch calls for new
2905 functions and deleted macros.
2906
03c30d4d
TT
29072002-06-23 Tom Tromey <tromey@redhat.com>
2908
2909 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2910 (ALLDEPFILES): Likewise.
2911 (udiheaders): Removed.
2912 (udip2soc.o): Likewise.
2913 (udi2go32.o): Likewise.
2914 (udr.o): Likewise.
2915 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2916
37e71372
AC
29172002-06-22 Andrew Cagney <ac131313@redhat.com>
2918
06a6ac57
AC
2919 * infrun.c (_initialize_infrun): Delete unnecessary call to
2920 build_infrun.
2921
37e71372
AC
2922 * regcache.h: Update comments describing the regcache_cpy family
2923 of functions.
2924 (regcache_save, regcache_restore): Delete declaration.
2925 (regcache_save_no_passthrough): Delete declaration.
2926 (regcache_restore_no_passthrough): Delete declaration.
2927 * regcache.c (regcache_save): Delete function.
2928 (regcache_save_no_passthrough): Delete function.
2929 (regcache_restore): Delete function.
2930 (regcache_restore_no_passthrough): Delete function.
2931
78f6d055
AC
29322002-06-21 Andrew Cagney <ac131313@redhat.com>
2933
2934 * config/m68k/tm-m68k.h: Fix typo.
2935 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2936 (m68k_frame_init_saved_regs): Declare.
2937
78b119cb
JB
29382002-06-21 Jim Blandy <jimb@redhat.com>
2939
2940 Remove some vestiges of Harris 88k support.
2941 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2942 register numbering quirk.
2943 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2944 odd symbols occurring in Harris 88k ELF targets.
2945
0fbb3da7
TT
29462002-06-21 Tom Tromey <tromey@redhat.com>
2947
2948 * gdb_locale.h: New file.
2949 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2950 (defs_h): Added gdb_locale.h.
2951 * configure, config.in: Rebuilt.
2952 * configure.in (PACKAGE): Define.
2953 * defs.h: Include gdb_locale.h.
2954 * main.c (captured_main): Call setlocale, bindtextdomain,
2955 textdomain.
2956
456f8b9d
DB
29572002-06-21 Dave Brolley <brolley@redhat.com>
2958
2959 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2960 * config/frv/frv.mt: New file.
2961 * config/frv/tm-frv.h: New file.
2962 * configure.tgt: Support frv-*-*.
2963 * Makefile.in (frv-tdep.o): New target.
2964 * frv-tdep.c: New file.
2965 * NEWS: Mention frv.
2966
cdd463f9
DB
29672002-06-21 Dave Brolley <brolley@redhat.com>
2968
2969 * MAINTAINERS: Add self to "Write After Approval" list.
2970
5d3ed2e3
GS
29712002-06-21 Grace Sainsbury <graces@redhat.com>
2972
2973 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2974 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2975 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2976 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2977 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2978
2979 * m68k-tdep.c: Include arch-utils.h
2980 (m68k_register_raw_size): Add.
2981 (m68k_register_virtual_size): Add.
2982 (m68k_register_virtual_type): Add.
2983 (m68k_register_name): Add.
2984 (m68k_stack_align): Add.
2985 (m68k_register_byte): Add.
2986 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2987 tm-m68k.h.
2988
7f8e7424
GS
29892002-06-21 Grace Sainsbury <graces@redhat.com>
2990
a2c6a6d5 2991 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
2992 m68k_find_saved_regs.
2993 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 2994 references to it with frame->saved_regs.
7f8e7424
GS
2995 (m68k_gdbarch_init): Added function calls to initialize the
2996 gdbarch structure.
a2c6a6d5
GS
2997 (m68k_fix_call_dummy): Add.
2998 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2999 (CALL_DUMMY): Remove.
3000 (CALL_DUMMY_LENGTH): Remove.
3001 (CALL_DUMMY_START_OFFSET): Remove.
3002 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3003 (FIX_CALL_DUMMY): Remove.
3004 (PUSH_DUMMY_FRAME): Remove.
3005 (POP_FRAME): Remove.
7f8e7424 3006
f461f5cf
PM
30072002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3008
3009 * parse.c (parse_fprintf): New function used to avoid calls to
3010 fprintf in bison parser generated debug code.
3011 * parser-defs.h: Declaration of new parse_fprintf function.
3012 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3013 Set YYDEBUG to 1 by default.
3014 Set YYFPRINTF as parse_fprintf.
3015
7f0c12ed
ML
30162002-06-21 Michal Ludvig <mludvig@suse.cz>
3017
3018 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3019 encoding anymore.
3020 (pointer_encoding, enum ptr_encoding): New.
3021 (execute_cfa_program): Take care about pointer encoding.
3022 (dwarf2_build_frame_info): Only call parse_frame_info for
3023 .debug_frame and .eh_frame.
3024 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3025 fixed augmentation handling, added relative addressing,
3026 ignore duplicate FDEs. Added comments.
19d833a2 3027 * dwarf2cfi.c: Reindented.
7f0c12ed 3028
87c4a039
EZ
30292002-06-20 Elena Zannoni <ezannoni@redhat.com>
3030
3031 * event-top.c (command_handler): Don't use space_at_cmd_start
3032 unless there is sbrk() on the host. Assign time and space data
3033 to union fields of the appropriate length.
3034
1cf877ad
ML
30352002-06-20 Michal Ludvig <mludvig@suse.cz>
3036
3037 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3038 x86_64_register_name. Return type changed to 'const char *'.
3039 (x86_64_register_name2nr): Rename to x86_64_register_number.
3040 (x86_64_gdbarch_init): Update to reflect the change.
3041 * x86-64-tdep.h: Ditto.
3042 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3043 (supply_fpregset): Ditto.
3044
3fadccb3
AC
30452002-06-19 Andrew Cagney <cagney@redhat.com>
3046
3047 * regcache.h: Update copyright.
3048 (struct regcache, struct gdbarch): Add opaque declarations.
3049 (current_regcache): Declare global variable.
3050 (regcache_read, regcache_write): Add gdbarch parameter.
3051 (regcache_save, regcache_save_no_passthrough)
3052 (regcache_restore, regcache_restore_no_passthrough)
3053 (regcache_dup, regcache_dup_no_passthrough)
3054 (regcache_cpy, regcache_cpy_no_passthrough)
3055 (deprecated_grub_regcache_for_registers)
3056 (deprecated_grub_regcache_for_register_valid)
3057 (regcache_valid_p): Add function declarations.
3058
3059 * regcache.c: Update copyright.
3060 (regcache_descr_handle): New global variable.
3061 (struct regcache_descr): Define.
3062 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3063 (regcache_descr, xfree_regcache_descr): New functions.
3064 (struct regcache): Define.
3065 (regcache_xmalloc, regcache_xfree): New functions.
3066 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3067 (regcache_dup, regcache_dup_no_passthrough): New functions.
3068 (regcache_valid_p, regcache_read_as_address): New functions.
3069 (deprecated_grub_regcache_for_registers): New function.
3070 (deprecated_grub_regcache_for_register_valid): New function.
3071 (current_regcache): New global variable.
3072 (register_buffer): Add regcache parameter. Update calls.
3073 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3074 (read_register_gen, write_register_gen): Update register_buffer
3075 call. Test for legacy_p instead of gdbarch_register_read_p or
3076 gdbarch_register_write_p.
3077 (regcache_collect): Update register_buffer call.
3078 (build_regcache): Rewrite. Use deprecated grub functions.
3079 (regcache_save, regcache_save_no_passthrough): New functions.
3080 (regcache_restore, regcache_restore_no_passthrough): New
3081 functions.
3082 (_initialize_regcache): Create the regcache_data_handle. Swap
3083 current_regcache global variable.
3084
3085 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3086 parameter to regcache_read and regcache_write calls.
3087 (sh4_register_read): Ditto.
3088 (sh64_pseudo_register_read): Ditto.
3089 (sh64_register_read): Ditto.
3090 (sh_pseudo_register_write): Ditto.
3091 (sh4_register_write): Ditto.
3092 (sh64_pseudo_register_write): Ditto.
3093 (sh64_register_write): Ditto.
3094
3095 * defs.h (XCALLOC): Define.
3096
152d9db6
GS
30972002-06-19 Grace Sainsbury <graces@redhat.com>
3098
3099 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3100 * m68k-tdep.c (m68k_gdbarch_init): Added.
3101 (m68k_dump_tdep): Added.
3102
170911c7
DJ
31032002-06-19 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * ada-lang.c (fill_in_ada_prototype): Update comment.
3106
2e4ebe70
DJ
31072002-06-19 Daniel Jacobowitz <drow@mvista.com>
3108
3109 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3110 MIPS_ABI_LAST.
3111 (mips_abi_string, mips_abi_strings): New.
3112 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3113 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3114 tdep->mips_abi_string. Honor mips_abi_string. Default to
3115 O32 if no ABI is found.
3116 (mips_dump_tdep): Use mips_abi_strings.
3117 (mips_abi_update): New function.
3118 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3119 ``set mips abi'' and ``show mips abi''. Check the size of
3120 mips_abi_strings.
3121
16775908
AC
31222002-06-19 Andrew Cagney <cagney@redhat.com>
3123
3124 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3125 constant.
3126
5051bfa4 31272002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3128
5051bfa4
JB
3129 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3130 current frame using only the first stack size adjustment. All
3131 subsequent size adjustments are not considered to be part of
3132 the "static" part of the current frame.
3133 Compute the address of the saved registers relative to the
3134 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3135 in use in this frame.
3136
56468235
DH
31372002-06-18 Don Howard <dhoward@redhat.com>
3138
3139 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3140 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3141 suggesting this solution.
3142
0b624158
AC
31432002-06-18 Andrew Cagney <ac131313@redhat.com>
3144
3145 * config/romp/xm-rtbsd.h: Delete file.
3146 * config/romp/rtbsd.mh: Delete file.
3147
221ea385
KS
31482002-06-18 Keith Seitz <keiths@redhat.com>
3149
3150 * breakpoint.c (condition_command): Post breakpoint_modify
3151 when a condition is added to an existing breakpoint.
3152 (commands_command): Likewise for commands.
3153 (set_ignore_count): Likewise for ignore counts.
3154 If no tty, do not simply return, still need to send event
3155 notification.
3156 (ignore_command): Only print a newline if the command came
3157 from a tty.
3158 Don't call breakpoints_changed, since this is now properly
3159 handled by set_ignore_count.
3160
5402eed1
AC
31612002-06-18 Andrew Cagney <cagney@redhat.com>
3162
3163 * MAINTAINERS: Note that cris-elf target can be compiled with
3164 -Werror.
3165 * cris-tdep.c (cris_register_name): Make return type constant.
3166 (cris_breakpoint_from_pc): Ditto.
3167
cc22880b
ML
31682002-06-18 Michal Ludvig <mludvig@suse.cz>
3169
3170 * frame.h (struct frame_info): Change type of context to
3171 'struct context'.
3172
fa88f677
AC
31732002-06-17 Andrew Cagney <cagney@redhat.com>
3174
3175 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3176 pointer.
3177 * gdbarch.h, gdbarch.c: Regenerate.
3178 * config/mips/tm-mips.h (mips_register_name): Update.
3179 * i386-tdep.h (i386_register_name): Update.
3180 * mips-tdep.c (mips_register_name): Update
3181 * alpha-tdep.c (alpha_register_name): Update.
3182 * arch-utils.c (legacy_register_name): Update.
3183 * arch-utils.h (legacy_register_name): Update.
3184 * avr-tdep.c (avr_register_name): Update.
3185 * ia64-tdep.c (ia64_register_name): Update.
3186 * i386-tdep.c (i386_register_name): Update.
3187 * sparc-tdep.c (sparc32_register_name): Update.
3188 (sparc64_register_name): Update.
3189 (sparclite_register_name): Update.
3190 (sparclet_register_name): Update.
3191 * sh-tdep.c (sh_generic_register_name): Update.
3192 (sh_sh_register_name): Update.
3193 (sh_sh3_register_name): Update.
3194 (sh_sh3e_register_name): Update.
3195 (sh_sh_dsp_register_name): Update.
3196 (sh_sh3_dsp_register_name): Update.
3197 (sh_sh4_register_name): Update.
3198 (sh_sh64_register_name): Update.
3199 * s390-tdep.c (s390_register_name): Update.
3200 * rs6000-tdep.c (rs6000_register_name): Update.
3201 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3202 (ns32k_register_name_32382): Update.
3203 * d10v-tdep.c (d10v_ts2_register_name): Update.
3204 (d10v_ts3_register_name): Update.
3205 * xstormy16-tdep.c (xstormy16_register_name): Update.
3206 * vax-tdep.c (vax_register_name): Update.
3207 * v850-tdep.c (v850_register_name): Update.
3208 * m68hc11-tdep.c (m68hc11_register_name): Update.
3209 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3210 (am33_register_name): Update.
3211
ea1e7ef6
GS
32122002-06-17 Grace Sainsbury <graces@redhat.com>
3213
3214 * m68k-tdep.c: Reindented.
3215
9b02dd1b
AC
32162002-06-17 Andrew Cagney <ac131313@redhat.com>
3217
3218 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3219 list of predefined types.
3220
8758dec1
MK
32212002-06-16 Mark Kettenis <kettenis@gnu.org>
3222
b6197528
MK
3223 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3224 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3225 REGISTER_CONVERT_TO_RAW): Remove defines.
3226 (i386_register_virtual_type, i386_register_convertible,
3227 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3228 Remove prototypes.
3229 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3230 macros mentioned above.
3231
82b47e62
MK
3232 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3233 (i386lynx_saved_pc_after_call): Remove prototype.
3234 * i386ly-tdep.c: Include "i386-tdep.h".
3235 (i386lynx_saved_pc_after_call): Make static. Use
3236 read_memory_nobpt instead of read_memory. Use
3237 read_memory_unsigned_integer instead of read_memory_integer.
3238 (i386lynx_init_abi): New function.
3239 (i386lynx_coff_osabi_sniffer): New function.
3240 (_initialize_i386bsd_tdep): New function.
3241
8758dec1
MK
3242 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3243 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3244 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3245 (i386_fix_call_dummy): Remove prototype.
3246 * i386-tdep.c (i386_call_dummy_words): New variable.
3247 (i386_gdbarch_init): Adjust for removal of the
3248 macros mentioned above.
3249
e9e68a56
AC
32502002-06-15 Andrew Cagney <ac131313@redhat.com>
3251
3252 * command.h (add_setshow_auto_boolean_cmd): Replace
3253 add_set_auto_boolean_cmd.
3254 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3255 add_set_auto_boolean_cmd.
3256 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3257 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3258 mask-address'' command.
3259 (show_mask_address): Add cmd parameter.
3260 * remote.c (add_packet_config_cmd): Update. Change type of
3261 set_func and show_func to cmd_sfunc_ftype.
3262 (_initialize_remote): Update `set remote Z-packet'
3263 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3264 (show_remote_protocol_e_packet_cmd): Ditto.
3265 (show_remote_protocol_E_packet_cmd): Ditto.
3266 (show_remote_protocol_P_packet_cmd): Ditto.
3267 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3268 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3269 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3270 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3271 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3272 (show_remote_protocol_Z_packet_cmd): Ditto.
3273 (show_remote_protocol_binary_download_cmd): Ditto.
3274 (show_remote_cmd): Pass NULL to all of above.
3275
fc08ec52
MK
32762002-06-15 Mark Kettenis <kettenis@gnu.org>
3277
3278 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3279 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3280 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3281 POP_FRAME): Remove defines.
3282 (i386_push_arguments, i386_store_struct_return,
3283 i386_extract_return_value, i386_store_return_value,
3284 i386_extract_struct_value_address, i386_push_dummy_frame,
3285 i386_pop_frame): Renove prototypes.
3286 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3287 macros mentioned above.
3288
e707bbc2
AC
32892002-06-15 Andrew Cagney <ac131313@redhat.com>
3290
3291 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3292 add_set_boolean_cmd.
3293 (add_setshow_cmd): New function.
3294 * command.h (add_setshow_boolean_cmd): Replace
3295 add_set_boolean_cmd.
3296 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3297 and ``set rdiromatzero''.
3298 * maint.c (_initialize_maint_cmds): Update commented out code.
3299 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3300 * target.c (initialize_targets): Update `set
3301 trust-readonly-sections'.
3302 * remote.c (_initialize_remote): Update `set remotebreak'.
3303
42fdc8df
MK
33042002-06-15 Mark Kettenis <kettenis@gnu.org>
3305
93924b6b
MK
3306 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3307 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3308 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3309 fit into multi-arch framework.
3310 (i386_breakpoint_from_pc): New function.
3311 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3312 above.
3313
42fdc8df
MK
3314 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3315 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3316 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3317 (i386_frameless_function_invocation, i386_frame_num_args,
3318 i386_frame_init_saved_regs): Remove prototypes.
3319 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3320 macros mentioned above.
3321
9773a94b
AC
33222002-06-15 Andrew Cagney <ac131313@redhat.com>
3323
3324 * cli/cli-decode.c (set_cmd_cfunc): Update.
3325 (set_cmd_sfunc): Update.
3326 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3327 (set_cmd_sfunc, set_cmd_cfunc): Update.
3328 * cli/cli-decode.h: Update.
3329
6e157172
MK
33302002-06-15 Mark Kettenis <kettenis@gnu.org>
3331
3332 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3333 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3334
7f19b9a2
AC
33352002-06-15 Andrew Cagney <ac131313@redhat.com>
3336
3337 * defs.h (auto_boolean): Declare enum.
3338 * command.h (cmd_auto_boolean): Delete enum.
3339 * mips-tdep.c (mask_address_var): Update.
3340 (mips_mask_address_p): Update.
3341 (show_mask_address): Update.
3342 * remote.c (struct packet_config): Update.
3343 (update_packet_config): Update.
3344 (show_packet_config_cmd): Update.
3345 (packet_ok): Update.
3346 (add_packet_config_cmd): Update.
3347 (_initialize_remote):
3348 * command.h: Update.
3349 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3350 (do_setshow_command): Update.
3351 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3352 * cli/cli-decode.h: Update.
3353
1cf88de5
MK
33542002-06-15 Mark Kettenis <kettenis@gnu.org>
3355
22ba8cf2
MK
3356 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3357 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3358 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3359 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3360 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3361 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3362
762c5349
MK
3363 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3364 list of DJGPP COFF targets.
3365
091198bb
MK
3366 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3367 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3368 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3369 (FP0_REGNUM): Remove define.
3370 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3371 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3372 (i386_register_virtual_size): Remove protoype.
3373 * i386-tdep.c (i386_register_virtual_size): Removed.
3374 (i386_extract_return_value, i386_store_return_value): Use
3375 FP0_REGNUM instead of NUM_FREGS to determine whether the
3376 floating-point registers are available.
3377 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3378 Adjust for removal of macros mentioned above.
3379
33802002-06-15 Mark Kettenis <kettenis@gnu.org>
3381
fcc9bf01
MK
3382 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3383 comments.
3384 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3385 Remove prototypes.
3386 (supply_gregset, fill_gregset): Remove use of register keyword and
3387 remove declaration for regmap. Use I386_NUM_GREGS instead of
3388 NUM_REGS and NUM_FREGS.
3389 (FPREGSET_FSAVE_OFFSET): Remove.
3390 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3391 NUM_FREGS to determine whether the floating-point registers are
3392 available.
3393
65e78234
MK
3394 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3395 gnu_store_registers): Replace usage of NUM_GREGS with
3396 I386_NUM_GREGS.
3397
98df6387
MK
3398 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3399 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3400 usage of NUM_GREGS with I386_NUM_GREGS.
3401
099a9414
MK
3402 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3403
57976e88
MK
3404 * i386bsd-nat.c: Include "i386-tdep.h".
3405 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3406 I386_NUM_GREGS.
3407
b335f4a6
MK
3408 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3409 and associated comment. They no longer make any sense, since we
3410 don't use this file anymore on Linux.
3411
1cf88de5
MK
3412 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3413 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3414 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3415 elements in these arrays.
3416 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3417 MAX_NUM_REGS.
3418
daa66587
MK
34192002-06-15 Mark Kettenis <kettenis@gnu.org>
3420
3421 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3422 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3423
26e9b323
AC
34242002-06-14 Andrew Cagney <cagney@redhat.com>
3425
3426 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3427 EXTRACT_RETURN_VALUE.
3428 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3429 EXTRACT_STRUCT_VALUE_ADDRESS.
3430 * gdbarch.h, gdbarch.c: Regenerate.
3431
3432 * values.c (value_being_returned): Handle
3433 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3434 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3435
3436 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3437 * arm-tdep.c (arm_gdbarch_init): Update.
3438 * avr-tdep.c (avr_gdbarch_init): Update.
3439 * cris-tdep.c (cris_gdbarch_init): Update.
3440 * d10v-tdep.c (d10v_gdbarch_init): Update.
3441 * ia64-tdep.c (ia64_gdbarch_init): Update.
3442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3443 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3444 * s390-tdep.c (s390_gdbarch_init): Update.
3445 * sh-tdep.c (sh_gdbarch_init): Update.
3446 * s390-tdep.c (s390_gdbarch_init): Update.
3447 * sparc-tdep.c (sparc_gdbarch_init): Update.
3448 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3449 * v850-tdep.c (v850_gdbarch_init): Update.
3450 * vax-tdep.c (vax_gdbarch_init): Update.
3451 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3453
3454 * config/arc/tm-arc.h: Update.
3455 * config/d30v/tm-d30v.h: Update.
3456 * config/fr30/tm-fr30.h: Update.
3457 * config/h8300/tm-h8300.h: Update.
3458 * config/h8500/tm-h8500.h: Update.
3459 * config/i386/tm-i386.h: Update.
3460 * config/i386/tm-ptx.h: Update.
3461 * config/i386/tm-symmetry.h: Update.
3462 * config/i960/tm-i960.h: Update.
3463 * config/m32r/tm-m32r.h: Update.
3464 * config/m68k/tm-delta68.h: Update.
3465 * config/m68k/tm-linux.h: Update.
3466 * config/m68k/tm-m68k.h: Update.
3467 * config/m88k/tm-m88k.h: Update.
3468 * config/mcore/tm-mcore.h: Update.
3469 * config/mips/tm-mips.h: Update.
3470 * config/mn10200/tm-mn10200.h: Update.
3471 * config/pa/tm-hppa.h: Update.
3472 * config/pa/tm-hppa64.h: Update.
3473 * config/sparc/tm-sp64.h: Update.
3474 * config/sparc/tm-sparc.h: Update.
3475 * config/sparc/tm-sparclet.h: Update.
3476 * config/z8k/tm-z8k.h: Update.
3477
5179e78f
AC
34782002-06-14 Andrew Cagney <cagney@redhat.com>
3479
3480 * Makefile.in (i386_linux_tdep_h): Define.
3481 (i386_tdep_h, i387_tdep_h): Define.
3482 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3483 $(i386_tdep_h) and $(i387_tdep_h).
3484 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3485
8201327c
MK
34862002-06-14 Mark Kettenis <kettenis@gnu.org>
3487
edf393ac
MK
3488 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3489 Already covered by the default.
3490
896fb97d
MK
3491 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3492 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3493 (i386_gdbarch_init): Initialize long_double_format and long_double
3494 bit.
3495
8201327c
MK
3496 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3497 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3498 Move these to ...
3499 * config/i386/i386sol2.mh: ... here.
3500 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3501 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3502 (SIGCONTEXT_PC_OFFSET): Remove define.
3503 (IN_SIGTRAMP): Remove define.
3504 * i386-sol2-tdep.c: New file.
3505
3506 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3507 * config/i386/tm-i386nw.h: Removed.
3508
3509 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3510 USE_STRUCT_CONVENTION): Remove defines.
3511 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3512 (get_longjmp_target): Remove prototype.
3513 (IN_SIGTRAMP): Remove define.
3514 (i386bsd_in_sigtramp): Remove prototype.
3515 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3516 function. Update comment accordingly
3517 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3518 (FRAME_SAVED_PC): Remove define.
3519 (i386bsd_frame_saved_pc): Remove prototype.
3520 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3521 GET_LONGJMP_TARGET): Remove defines.
3522 (get_longjmp_target): Remove prototype.
3523 (IN_SIGTRAMP): Remove define.
3524 (i386bsd_in_sigtramp): Remove prototype.
3525 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3526 function. Update comment accordingly
3527 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3528 (FRAME_SAVED_PC): Remove define.
3529 (i386bsd_frame_saved_pc): Remove prototype.
3530 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3531 Remove prototype.
3532 (USE_STRUCT_CONVENTION): Remove prototype.
3533 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3534 declaration.
3535 (_initialize_i386bsd_nat): Revise logic to determine some
3536 constants at compile time when compiling a native GDB. Warn if
3537 things don't match up with what we expect.
3538 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3539 Remove variables.
3540 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3541 to use date stored in `struct gdbarch_tdep'.
3542 (i386bsd_sigcontext_offset): Remove varaible.
3543 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3544 stored in `struct gdbarch_tdep'.
3545 (i386bsd_frame_saved_pc): Make static.
3546 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3547 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3548 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3549 i386fbsd4_sc_pc_offset): New variables.
3550 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3551 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3552 functions.
3553 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3554 functions.
3555 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3556 Modify the value of i386fbsd_sigtramp_start and
3557 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3558 i386fbsd_sigtramp_end.
3559 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3560 function.
3561
3562 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3563 define to i386-linux-tdep.h.
3564 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3565 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3566 defines.
3567 (i386_linux_register_name, i386_linux_register_byte,
3568 i386_linux_register_raw_size): Remove prototypes.
3569 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3570 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3571 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3572 TARGET_WRITE_PC): Remove defines.
3573 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3574 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3575 i386_linux_write_pc): Remove prototypes.
3576 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3577 (get_longjmp_target): Remove prototype.
3578 * i386-linux-tdep.h: New file.
3579 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3580 * i386-linux-tdep.c: Include "i386-tdep.h" and
3581 "i386-linux-tdep.h".
3582 (i386_linux_register_name, i386_linux_register_byte,
3583 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3584 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3585 Make static.
3586 (i386_linux_init_abi): New function.
3587 (_initialize_i386_linux_tdep): New function.
3588
3589 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3590 (i386_saved_pc_after_call): Remove prototype.
3591 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3592 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3593 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3594 (i386_register_name, i386_stab_reg_to_regnum,
3595 i386_dwarf_reg_to_regnum): Remove prototypes.
3596 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3597 SIZEOF_SSE_REGS): Remove defines.
3598 (REGISTER_BYTES): Remove define.
3599 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3600 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3601 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3602 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3603 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3604 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3605 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3606 (get_longjmp_target): Remove prototype.
3607 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3608 (sigtramp_saved_pc): Remove define.
3609 (i386v4_sigtramp_saved_pc): Remove prototype.
3610 * config/i386/tm-go32.h (FRAME_CHAIN,
3611 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3612 (i386go32_frame_saved_pc): Remove prototype.
3613 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3614 (get_longjmp_target): Remove prototype.
3615 * i386-tdep.h: Include "osabi.h".
3616 (enum i386_abi): Removed.
3617 (enum struct_return): New enum.
3618 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3619 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3620 sc_pc_offset members.
3621 (i386_gdbarch_register_os_abi): Remove prototype.
3622 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3623 I386_SSE_NUM_REGS): New defines.
3624 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3625 I386_SSE_SIZEOF_REGS): New defines.
3626 (i386_register_name, i386_register_byte, i386_register_raw_size):
3627 New prototypes.
3628 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3629 (i386bsd_sigtramp_saved_pc): New prototype.
3630 * i386-tdep.c: Don't include "elf-bfd.h".
3631 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3632 i386_frame_chain, i386_saved_pc_after_call): Make static.
3633 (i386_frame_saved_pc): Rewrite to call architecture dependent
3634 function to deal with signal handlers. Make static.
3635 (i386go32_frame_saved_pc): Removed.
3636 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3637 Removed.
3638 (i386_get_longjmp_target): New function.
3639 (default_struct_convention, pcc_struct_convention,
3640 reg_struct_convention, valid_conventions, struct_convention): New
3641 variables.
3642 (i386_use_struct_convention): New function.
3643 (i386v4_sigtramp_saved_pc): Renamed to
3644 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3645 (i386_pc_in_sigtramp): New function.
3646 (i386_abi_names): Removed.
3647 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3648 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3649 Removed.
3650 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3651 i386_gdbarch_register_os_abi): Removed.
3652 (struct i386_abi_handler): Removed.
3653 (i386_abi_handler_list): Removed.
3654 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3655 functions.
3656 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3657 i386_nw_init_abi): New functions.
3658 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3659 Use set_gdbarch_xxx() calls instead of relying on macros for a
3660 number of calls.
3661 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3662 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3663 Register the various architecture variants defined in this file.
3664
ad2f7632
DJ
36652002-06-14 Daniel Jacobowitz <drow@mvista.com>
3666
3667 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3668 (struct main_type): Remove arg_types member. Update comments for
3669 struct field.
3670 (TYPE_ARG_TYPES): Remove.
3671 (TYPE_FN_FIELD_ARGS): Update.
3672 (smash_to_method_type): Update prototype.
3673
3674 * c-typeprint.c (cp_type_print_method_args): Take method type
3675 instead of argument list. Use new argument layout. Simplify.
3676 (c_type_print_args): Use new argument layout. Simplify.
3677 (c_type_print_base): Update call to cp_type_print_method_args.
3678 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3679 argument; use die->type instead. Update call to
3680 smash_to_method_type.
3681 (read_structure_scope): Update call to dwarf2_add_member_fn.
3682 * gdbtypes.c (allocate_stub_method): Update comment.
3683 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3684 Use new argument layout.
3685 (check_stub_method): Use new argument layout. Don't count
3686 void as an argument.
3687 (print_arg_types): Update comments. Use new argument layout.
3688 (recursive_dump_type): Don't print arg_types member.
3689 * hpread.c (hpread_read_struct_type): Use new argument layout.
3690 (fixup_class_method_type): Likewise.
3691 (hpread_type_lookup): Likewise.
3692 * stabsread.c (read_type): Update calls to read_args and
3693 smash_to_method_type.
3694 (read_args): Use new argument layout. Simplify.
3695 * valops.c (typecmp): Use new argument layout. Update parameters
3696 and comments. Simplify.
3697 (hand_function_call): Use new argument layout.
3698 (search_struct_method): Update call to typecmp.
3699 (find_overload_match): Use new argument layout.
3700
6da02953
DJ
37012002-06-13 Daniel Jacobowitz <drow@mvista.com>
3702
3703 * NEWS: Mention multithreaded debug support for gdbserver.
3704
519b2366
DJ
37052002-06-13 Daniel Jacobowitz <drow@mvista.com>
3706
3707 * MAINTAINERS: Mention NEWS.
3708
6c0d6680
DJ
37092002-06-13 Daniel Jacobowitz <drow@mvista.com>
3710
3711 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3712 (struct mips_objfile_private, compare_pdr_entries): New.
3713 (non_heuristic_proc_desc): Read the ".pdr" section if it
3714 is present.
3715
6529d2dd
AC
37162002-06-12 Andrew Cagney <ac131313@redhat.com>
3717
3718 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3719 (arm_debug): New static variable.
3720 (_initialize_arm_tdep): Add ``set debug arm'' command.
3721
26216b98
AC
37222002-06-12 Andrew Cagney <ac131313@redhat.com>
3723
3724 * Makefile.in (sim_arm_h): Define.
3725 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3726 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3727 (arm_register_sim_regno): New function, map an internal REGNUM
3728 onto a simulator register number.
3729 (arm_gdbarch_init): Set register_sim_regno.
3730
814b3ba0
AH
37312002-06-09 Aldy Hernandez <aldyh@redhat.com>
3732
3733 * MAINTAINERS: Add self.
3734
475b0867
JB
37352002-06-11 Jim Blandy <jimb@redhat.com>
3736
919d772c
JB
3737 * source.c (source_info): Mention whether the symtab has
3738 information about preprocessor macros.
3739
475b0867
JB
3740 Call the command `info macro', not `show macro'.
3741 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3742 Fix error message.
3743 (_initialize_macrocmd): Register `info_macro_command' in
3744 `infolist', not `showlist'.
3745
9e364162
DJ
37462002-06-11 Daniel Jacobowitz <drow@mvista.com>
3747
3748 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3749 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3750 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3751 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3752 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3753 unconditionally.
3754 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3755 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3756 (_initialize_mips_tdep): Remove dead code.
3757 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3758 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3759 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3760 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3761 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3762 MIPS_LAST_FP_ARG_REGNUM): Remove.
3763
23aa4c72
ML
37642002-06-11 Michal Ludvig <mludvig@suse.cz>
3765
3766 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3767 (unwind_tmp_obstack_free, parse_frame_info)
3768 (update_context, cfi_read_fp, cfi_write_fp)
3769 (cfi_frame_chain, cfi_init_extra_frame_info)
3770 (cfi_virtual_frame_pointer): Use the above function.
264d1763 3771 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 3772
70eb15a4
CV
37732002-06-11 Corinna Vinschen <vinschen@redhat.com>
3774
3775 * v850-tdep.c (v850_type_is_scalar): New function.
3776 (v850_use_struct_convention): Match current gcc implementation
3777 as close as possible.
3778 (v850_push_arguments): Fix stack_offset handling. Don't write
3779 struct_addr into register. This is done by v850_store_struct_return.
3780 (v850_extract_return_value): Care for structs.
3781 (v850_store_return_value): Ditto.
3782 (v850_store_struct_return): Actually write address.
3783
482a4d06
ML
37842002-06-11 Michal Ludvig <mludvig@suse.cz>
3785
3786 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3787 without debug information too.
3788
d855c300
AC
37892002-06-10 Andrew Cagney <ac131313@redhat.com>
3790
3791 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3792 Make multi-arch pure.
3793 * gdbarch.h, gdbarch.c: Re-generate.
3794 * arm-tdep.c (arm_print_float_info): Update.
3795 * arch-utils.h (default_print_float_info): Update.
3796 * arch-utils.c (default_print_float_info): Update.
3797 * infcmd.c (float_info): Update call.
3798
dd12a101
AC
37992002-06-10 Andrew Cagney <ac131313@redhat.com>
3800
3801 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3802 the front of the initialize list.
3803
101dcfbe
AC
38042002-06-10 Andrew Cagney <ac131313@redhat.com>
3805
3806 * infrun.c (struct inferior_status): Replace fields
3807 selected_frame_address and selected_level with field
3808 selected_frame_id.
3809 (save_inferior_status): Update. Use get_frame_id.
3810 (struct restore_selected_frame_args): Delete.
3811 (restore_selected_frame): Update. Use frame_find_by_id.
3812 (restore_inferior_status): Update.
3813
3814 * breakpoint.h (struct breakpoint): Change type of
3815 watchpoint_frame to frame_id.
3816 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3817 call to get_current_frame.
3818 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3819 get_current_frame.
3820 (watchpoint_check): Use frame_find_by_id.
3821
3822 * frame.h (record_selected_frame): Delete declaration.
3823 * stack.c (record_selected_frame): Delete function.
3824
3825 * frame.h (struct frame_id): Define.
3826 (get_frame_id): Declare.
3827 (frame_find_by_id): Declare.
3828 * frame.c (frame_find_by_id): New function.
3829 (get_frame_id): New function.
3830
304270b6
AV
38312002-06-10 Andrey Volkov <avolkov@transas.com>
3832
3833 * ser-e7kpc.c: Fix duplicated define and call of
3834 _initialize_ser_e7000pc
3835
2f2cf184
DJ
38362002-06-09 Daniel Jacobowitz <drow@mvista.com>
3837
3838 * signals/signals.c (target_signal_from_host): Fix #ifdef
3839 SIGRTMIN case.
3840 (do_target_signal_to_host): Likewise.
3841
caaa3122
DJ
38422002-06-09 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * mips-tdep.c (mips_find_abi_section): New function.
3845 (mips_gdbarch_init): Call it.
3846
6ac5df3a
MK
38472002-06-09 Mark Kettenis <kettenis@gnu.org>
3848
3849 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3850 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3851 after Andrew's 2002-06-08 gdbarch change.
3852
82ea117a
MK
38532002-06-09 Mark Kettenis <kettenis@gnu.org>
3854
3855 * i386-linux-nat.c (suppy_gregset): Don't supply
3856 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3857 register cache.
3858 (fill_gregset): Don't fetch it under the same circumstances.
3859
3c25f8c7
AC
38602002-06-09 Andrew Cagney <cagney@redhat.com>
3861
3862 * Makefile.in (callback_h): Define.
3863 (remote_sim_h): Update path to remote-sim.h.
3864 (remote-rdp.o): Add $(callback_h).
3865 (remote-sim.o): Use $(callback_h).
3866 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3867 * remote-rdp.c: Include "gdb/callback.h".
3868
1029b7fa
MK
38692002-06-09 Mark Kettenis <kettenis@gnu.org>
3870
3871 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3872 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3873
616675d3
AC
38742002-06-08 Andrew Cagney <ac131313@redhat.com>
3875
a3efda28
AC
3876 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3877 * rdi-share/serpardr.c: Ditto.
3878 * rdi-share/unixcomm.c: Ditto.
3879 * rdi-share/serdrv.c: Ditto.
3880 * rdi-share/hostchan.h: Ditto.
3881 * rdi-share/hostchan.c: Ditto.
3882 * rdi-share/host.h: Ditto.
3883 * rdi-share/devsw.c: Ditto.
3884
c5f10366
AC
3885 * objfiles.h: Change type of obj_private to void pointer.
3886 * pa64solib.c: Update copyright. Don't include "assert.h", use
3887 strcmp instead of STREQ, use LONGEST, do not use PTR
3888 * somsolib.c: Ditto.
3889
616675d3
AC
3890 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3891 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3892 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3893
e4b415d9
AC
38942002-06-08 Andrew Cagney <ac131313@redhat.com>
3895
3896 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3897 (default_get_saved_register): Delete function.
3898 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3899 generic_unwind_get_saved_register.
3900 * gdbarch.h, gdbarch.c: Re-generate.
3901
ca0d0b52
AC
39022002-06-08 Andrew Cagney <ac131313@redhat.com>
3903
3904 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3905 generic_func_frame_chain_valid.
3906 * gdbarch.h, gdbarch.c: Re-generate.
3907 * blockframe.c (generic_func_frame_chain_valid): Only check
3908 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3909 passing FP to PC_IN_CALL_DUMMY.
3910 Fix PR gdb/360.
3911
76860b5f
AC
39122002-06-08 Andrew Cagney <ac131313@redhat.com>
3913
3914 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3915 (register_gdbarch_data): Initialize init_p.
3916 (gdbarch_data): Initialize data pointer using the init function.
3917 (init_gdbarch_data): Delete function.
3918 (gdbarch_update_p): Update.
3919 (initialize_non_multiarch): Update.
3920 (struct gdbarch): Add field initialized_p.
3921 * gdbarch.h, gdbarch.c: Re-generate.
3922
8dda9770
ML
39232002-06-07 Michal Ludvig <mludvig@suse.cz>
3924
3925 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3926 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3927 better do the things actually here.
3928 * x86-64-tdep.c (x86_64_register_name2nr): New.
3929 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3930 (x86_64_gdbarch_init): Respect the above change.
3931 * x86-64-tdep.h (x86_64_register_name2nr)
3932 (x86_64_register_nr2name): Add prototypes.
3933 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3934
3d79a47c
MS
39352002-06-06 Michael Snyder <msnyder@redhat.com>
3936
7bd91a28
MS
3937 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3938 Delete extra braces and re-indent.
3939 (d10v_store_return_value): Char return values
3d79a47c
MS
3940 must be shifted over by one byte in R0.
3941 (d10v_extract_return_value): Delete extra braces, re-indent.
3942
095a4c96
EZ
39432002-06-06 Elena Zannoni <ezannoni@redhat.com>
3944
3945 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3946 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3947 (d10v_integer_to_address): Rewrite.
3948 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3949 the d10v specific functions which take care of converting to the
3950 correct space.
3951
e8a77ca4
EZ
39522002-06-06 Elena Zannoni <ezannoni@redhat.com>
3953
3954 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3955 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3956
4f2e4a4f
AC
39572002-06-02 Andrew Cagney <ac131313@redhat.com>
3958
3959 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3960 includes.
3961 * config/tm-linux.h: Ditto.
3962 * config/alpha/tm-alphalinux.h: Ditto.
3963 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3964 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3965 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3966 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3967 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3968 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3969 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3970 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3971 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3972 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3973 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3974 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3975 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3976 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3977 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3978 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3979 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3980 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3981 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3982 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3983 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3984 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3985 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3986 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3987 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3988 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3989 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3990 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3991 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3992 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3993 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3994 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3995 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3996 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3997 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3998 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3999 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4000
ae2ab2ce
AS
40012002-05-04 Aidan Skinner <aidan@velvet.net>
4002
4003 * ada-exp.tab.c: New file
4004 * ada-exp.y: New file
4005 * ada-lang.c: New file
4006 * ada-lang.h: New file
4007 * ada-lex.c: New file
4008 * ada-lex.l: New file
4009 * ada-tasks.c: New file
4010 * ada-typeprint.c: New file
4011 * ada-valprint.c: New file
4012
0ddd0135
JT
40132002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4014
4015 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4016 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4017
750fbacc
JT
40182002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4019
4020 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4021 insetead of ppc-linux-tdep.o.
4022 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4023 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4024
df94e18a
AC
40252002-06-02 Andrew Cagney <ac131313@redhat.com>
4026
4027 2002-05-07 Christian Groessler <chris@groessler.org>
4028 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4029 bit register contents for little endian hosts.
4030
1a38ab75
AC
40312002-06-01 Andrew Cagney <ac131313@redhat.com>
4032
4033 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4034 any maintainer.
4035
8b1632ac
AC
40362002-06-01 Andrew Cagney <ac131313@redhat.com>
4037
4038 * gdbarch.h: Regenerate.
4039
627054c8
AC
40402002-06-01 Andrew Cagney <ac131313@redhat.com>
4041
4042 * MAINTAINERS: Add everyone to write-after-approval list.
4043
4f460812
AC
40442002-06-01 Andrew Cagney <ac131313@redhat.com>
4045
4046 * stack.c (frame_info): Use frame_register_unwind instead of
4047 saved_regs. Mention when the SP is on the stack or in a register.
4048
4049 * frame.h (frame_register_unwind_ftype): Define. Document.
4050 (struct frame_info): Add field register_unwind and
4051 register_unwind_cache.
4052 (frame_register_unwind): Declare.
4053 (generic_unwind_get_saved_register): Declare.
4054
4055 * frame.c (frame_register_unwind): New function.
4056 (generic_unwind_get_saved_register): New function.
4057
4058 * blockframe.c (generic_call_dummy_register_unwind): New function.
4059 (frame_saved_regs_register_unwind): New function.
4060 (set_unwind_by_pc): New function.
4061 (create_new_frame): New function.
4062 (get_prev_frame): New function.
4063
de888f76
AC
40642002-05-30 Andrew Cagney <ac131313@redhat.com>
4065
4066 * a29k-share/: Delete directory.
4067 * remote-vx29k.c: Delete file.
4068
2f2c3626
JT
40692002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4070
4071 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4072 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4073
9ce5c36a
JT
40742002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4075
4076 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4077 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4078 (sparc64nbsd-nat.o)
4079 (sparcnbsd-nat.o)
4080 (sparcnbsd-tdep.o): New dependency lists.
4081 * NEWS: Note new UltraSPARC NetBSD native configuration.
4082 * configure.host (sparc64-*-netbsd*): New host.
4083 * configure.tgt (sparc-*-netbsdelf*)
4084 (sparc-*-netbsd*): Set gdb_target to nbsd.
4085 (sparc64-*-netbsd*): New target.
4086 * sparc64nbsd-nat.c: New file.
4087 * sparcnbsd-nat.c: New file.
4088 * sparcnbsd-tdep.c: New file.
4089 * sparcnbsd-tdep.h: New file.
4090 * config/sparc/nbsd.mt: New file.
4091 * config/sparc/nbsd64.mh: New file.
4092 * config/sparc/nbsd64.mt: New file.
4093 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4094 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4095 (HOST_IPC): Remove.
4096 * config/sparc/nbsdaout.mt: Remove.
4097 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4098 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4099 (HOST_IPC): Remove.
4100 * config/sparc/nbsdelf.mt: Remove.
4101 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4102 sparc-nat.c compatiblity defines.
4103 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4104 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4105 * config/sparc/tm-nbsd64.h: New file.
4106 * config/sparc/tm-nbsdaout.h: Remove.
4107 * config/sparc/xm-nbsd.h: Remove.
4108
ef3cf062
JT
41092002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4110
4111 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4112 * sparc-tdep.c: Include osabi.h.
4113 (gdbarch_tdep): Add osabi member.
4114 (_initialize_sparc_tdep): Use gdbarch_register.
4115 (sparc_gdbarch_init): Use generic OS ABI framework.
4116 (sparc_dump_tdep): New function.
4117
ee8ff470
KB
41182002-05-30 Kevin Buettner <kevinb@redhat.com>
4119
4120 * corefile.c (do_captured_read_memory_integer): Return non-zero
4121 result.
4122 (safe_read_memory_integer): Copy result of memory read when
4123 status is non-zero. Also, add comments.
4124
7b112f9c
JT
41252002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4126
4127 * Makefile.in (ppc_tdep_h): Define.
4128 (ppc-linux-nat.o)
4129 (ppc-linux-tdep.o)
4130 (rs6000-tdep.o): Use $(ppc_tdep_h).
4131 (ppc-sysv-tdep.o)
4132 (ppcnbsd-nat.o)
4133 (ppcnbsd-tdep.o): New dependency lists.
4134 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4135 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4136 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4137 (ppc_sysv_abi_broken_use_struct_convention)
4138 (ppc_sysv_abi_use_struct_convention)
4139 (ppc_sysv_abi_push_arguments): Move to...
4140 * ppc-sysv-tdep.c: ...here.
4141 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4142 * rs6000-tdep.c (process_note_abi_tag_sections)
4143 (get_elfosabi): Remove.
4144 (rs6000_gdbarch_init): Use generic OS ABI framework.
4145 (rs6000_dump_tdep): New function.
4146 (_initialize_rs6000_tdep): Use gdbarch_register.
4147 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4148 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4149 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4150 of ppc-linux-tdep.o.
4151 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4152 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4153 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4154 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4155 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4156 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4157
480dd42a
JB
41582002-05-29 Jim Blandy <jimb@redhat.com>
4159
4160 * macroscope.c (default_macro_scope): Put `void' in empty argument
4161 list.
4162
4182591f
AC
41632002-05-29 Andrew Cagney <ac131313@redhat.com>
4164
4165 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4166 * arch-utils.c: Include "sim-regno.h".
4167 * gdbarch.sh: Don't include "sim-regno.h".
4168 * gdbarch.h, gdbarch.c: Regenerate.
4169 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4170 here.
4171 * arch-utils.h (legacy_register_sim_regno): To here.
4172 * remote-sim.c (legacy_register_sim_regno): Move function from
4173 here.
4174 * arch-utils.c (legacy_register_sim_regno): To here.
4175
8238d0bf
AC
41762002-05-28 Andrew Cagney <ac131313@redhat.com>
4177
4178 * sim-regno.h: New file.
4179 * Makefile.in (sim_regno_h): Define.
4180 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4181 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4182 (legacy_register_sim_regno): New function.
4183 (one2one_register_sim_regno): New function.
4184 (gdbsim_fetch_register): Rewrite.
4185 (gdbsim_store_register): Only store a register when
4186 REGISTER_SIM_REGNO is valid.
4187 * d10v-tdep.c: Include "sim-regno.h".
4188 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4189 (d10v_ts3_register_sim_regno): Ditto.
4190 * gdbarch.sh: Include "sim-regno.h".
4191 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4192 * gdbarch.h, gdbarch.c: Regenerate.
4193 * arch-utils.h (default_register_sim_regno): Delete declaration.
4194 * arch-utils.c (default_register_sim_regno): Delete function.
4195
485721b1
JT
41962002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4197
4198 * ppcnbsd-nat.c: Rewrite.
4199 * ppcnbsd-tdep.c: New file.
4200 * ppcnbsd-tdep.h: New file.
4201 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4202 solib.o, and solib-svr4.o.
4203 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4204 nbsd-tdep.o, and corelow.o.
4205
697f244d
AC
42062002-05-28 Andrew Cagney <ac131313@redhat.com>
4207
4208 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4209 `tr' and `sed'. Mention that `broken' targets are not expected to
4210 build.
4211
f08caad1 42122002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4213
4214 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4215 Let PC point right after the prologue before looking up symbols.
4216
3139facc
MH
42172002-05-27 Martin M. Hunt <hunt@redhat.com>
4218
4219 * i386-tdep.c (i386_register_virtual_type): Return
4220 builtin_type_vec128i for SSE registers.
4221
4222 * gdbtypes.h (builtin_type_vec128i): Declare.
4223
4224 * gdbtypes.c (build_builtin_type_vec128i): New function.
4225 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4226 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4227 (build_gdbtypes): Initialize new builtin vector types.
4228 (_initialize_gdbtypes): Register new vector types with gdbarch.
4229
6e3ba3b8
JT
42302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4231
4232 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4233 since it has been multi-arch'd.
4234 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4235 Move Alpha and VAX multi-arch news entries to same section
4236 as other multi-arch news.
4237
93d5585d
JT
42382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4239
4240 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4241 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4242 static. Rename some register numbers to put them in ns32k-tdep
4243 private namespace.
4244 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4245 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4246 functions.
4247 (_initialize_ns32k_tdep): Use gdbarch_register.
4248 * ns32k-tdep.h: New file.
4249 * ns32knbsd-tdep.c: New file.
4250 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4251 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4252 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4253 REGISTER_BYTES, REGISTER_BYTE): Remove.
4254 * config/ns32k/tm-ns32k.h: New file.
4255 * config/ns32k/tm-umax.h: Remove.
4256
efb2c70e
JT
42572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4258
4259 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4260 ns32k_store_struct_return, ns32k_extract_return_value,
4261 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4262 functions.
4263 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4264 ns32k_saved_pc_after_call.
4265 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4266 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4267 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4268 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4269 ns32k_extract_struct_value_address.
4270
7bcc927b
JT
42712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4272
4273 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4274 ns32k_fix_call_dummy): New.
4275 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4276 ns32k_call_dummy_words.
4277 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4278 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4279 CALL_DUMMY_NARGS): Remove.
4280 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4281
78f9d765
JT
42822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4283
4284 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4285 ns32k_frame_saved_pc, ns32k_frame_args_address,
4286 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4287 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4288 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4289 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4290 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4291 (BREAKPOINT): Remove..
4292 (FRAME_CHAIN): Define as ns32k_frame_chain.
4293 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4294 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4295 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4296 (FRAME_FIND_SAVED_REGS): Remove.
4297 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4298 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4299 (POP_FRAME): Define as ns32k_pop_frame.
4300
f2c762e0
JT
43012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4302
4303 * ns32k-tdep.c (ns32k_register_byte_32082,
4304 ns32k_register_byte_32382, ns32k_register_raw_size,
4305 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4306 functions.
4307 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4308 ns32k_register_byte_32382.
4309 * config/ns32k/tm-umax.h: Update copyright years.
4310 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4311 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4312 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4313 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4314 (ns32k_get_enter_addr): Fix prototype.
4315
af137673
JT
43162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4317
4318 * ns32k-tdep.c: Update copyright years.
4319 (ns32k_register_name_32082): New function.
4320 (ns32k_register_name_32382): Ditto.
4321 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4322 (REGISTER_NAME): Define as ns32k_register_name_32382.
4323 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4324 (REGISTER_NAME): Define as ns32k_register_name_32082.
4325
a8bc7b56
JB
43262002-05-24 Jim Blandy <jimb@redhat.com>
4327
4328 * dwarf2read.c (free_line_header): Use xfree, not free.
4329
83a45910
JT
43302002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4331
4332 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4333 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4334
0db71247
AC
43352002-05-23 Andrew Cagney <ac131313@redhat.com>
4336
4337 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4338
b9e5e4dd
AC
43392002-05-23 Andrew Cagney <ac131313@redhat.com>
4340
4341 From Ross Alexander at NEC Europe:
4342 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4343
de530e84
MS
43442002-05-23 Michael Snyder <msnyder@redhat.com>
4345
4346 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4347 for input, rather than parse_and_eval_address.
4348
b91b96f4
AC
43492002-05-23 Andrew Cagney <ac131313@redhat.com>
4350
4351 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4352 * Makefile.in (sim_d10v_h): Update definition.
4353
8b279e7a
AC
43542002-05-24 Andrew Cagney <cagney@redhat.com>
4355
4356 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4357 change `2002-05-22 Michael Snyder' below.
4358 (d10v_push_arguments): Ditto.
4359 (d10v_extract_return_value): Ditto.
4360
0a3d0425
JB
43612002-05-23 Jim Blandy <jimb@redhat.com>
4362
4363 * macrotab.c (check_for_redefinition): Don't complain if the new
4364 definition is the same as the previous one. Take more arguments
4365 to allow the comparison.
4366 (macro_define_object, macro_define_function): Pass more arguments
4367 to check_for_redefinition.
4368
78eac43e
MS
43692002-05-22 Michael Snyder <msnyder@redhat.com>
4370
4371 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4372 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4373 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4374 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4375 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4376 Add a temp variable to save a call (and a memory read).
4377 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4378 if possible (so that PC_IN_CALL_DUMMY will work).
4379
9bc1edb8
CV
43802002-05-22 Corinna Vinschen <vinschen@redhat.com>
4381
4382 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4383
005ef3d2
ML
43842002-05-22 Michal Ludvig <mludvig@suse.cz>
4385
4386 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4387 fde->cie_ptr.
4388 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4389 (dwarf2_build_frame_info): Add offset to fde->initial_location
4390 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
4391 (execute_stack_op): Change type of 'result' from ULONGEST to
4392 CORE_ADDR.
005ef3d2 4393
fcf4f891
JT
43942002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4395
4396 * config/alpha/tm-nbsd.h: Include solib.h.
4397
cfef91e4
JT
43982002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4399
4400 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4401 assumptions about the host's byte order.
4402
9964235a
JT
44032002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4404
4405 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4406 to dependency list.
4407 * alphanbsd-tdep.c: Include solib-svr4.h.
4408 * shnbsd-tdep.c: Ditto.
4409
9eeef8ef
JT
44102002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4411
4412 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4413 nbsd-tdep.h to dependency list.
4414 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4415 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4416 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4417 nbsdaout.mh and nbsdelf.mh consistently.
4418 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4419 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4420 nbsdaout.mt and nbsdelf.mh consistently.
4421 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4422 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4423 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4424 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4425 a.out shared library stuff from here...
4426 * config/nm-nbsdaout.h: ...to here.
4427 * config/tm-nbsd.h: Remove.
4428 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4429 * config/arm/nbsd.mh: Remove.
4430 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4431 nbsd-tdep.o.
4432 * config/arm/nbsdaout.mh: New file.
4433 * config/arm/nbsdelf.mh: New file.
4434 * config/arm/nm-nbsdaout.h: New file.
4435 * config/i386/nbsd.mh: Remove.
4436 * config/i386/nbsd.mt: Remove.
4437 * config/i386/nbsdaout.mh: New file.
4438 * config/i386/nbsdaout.mt: New file.
4439 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4440 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4441 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4442 i386_register_u_addr): Remove.
4443 * config/i386/nm-nbsdaout.h: New file.
4444 * config/i386/nm-nbsdelf.h: Remove.
4445 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4446 (USE_STRUCT_CONVENTION): Remove.
4447 * config/i386/tm-nbsdaout.h: New file.
4448 * config/i386/tm-nbsdelf.h: Remove.
4449 * config/m68k/nbsd.mh: Remove.
4450 * config/m68k/nbsd.mt: Remove.
4451 * config/m68k/nbsdaout.mh: New file.
4452 * config/m68k/nbsdaout.mt: New file.
4453 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4454 * config/m68k/nm-nbsdaout.h: New file.
4455 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4456 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4457 * config/ns32k/nbsd.mh: Remove.
4458 * config/ns32k/nbsd.mt: Remove.
4459 * config/ns32k/nbsdaout.mh: New file.
4460 * config/ns32k/nbsdaout.mt: New file.
4461 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4462 * config/ns32k/nm-nbsdaout.h: New file.
4463 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4464 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4465 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4466 (SVR4_SHARED_LIBS): Remove.
4467 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4468 * config/sparc/nbsd.mh: Remove.
4469 * config/sparc/nbsd.mt: Remove.
4470 * config/sparc/nbsdaout.mh: New file.
4471 * config/sparc/nbsdaout.mt: New file.
4472 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4473 * config/sparc/nbsdelf.mt: New file.
4474 * config/sparc/nm-nbsdaout.h: New file.
4475 * config/sparc/nm-nbsdelf.h: Remove.
4476 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4477 * config/sparc/tm-nbsdaout.h: New file.
4478
257ce470
JT
44792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4480
4481 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4482 mipsnbsd-tdep.c
4483 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4484
76a6d5fe
JT
44852002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4486
4487 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4488 shnbsd-nat.c.
4489 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4490
45888261
JT
44912002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4492
4493 * NEWS: Note new MIPS NetBSD native configuration.
4494 * configure.host (mips*-*-netbsd*): New host.
4495 * configure.tgt (mips*-*-netbsd*): New target.
4496 * mipsnbsd-nat.c: New file.
4497 * mipsnbsd-tdep.c: New file.
4498 * mipsnbsd-tdep.h: New file.
4499 * config/mips/nbsd.mh: New file.
4500 * config/mips/nbsd.mt: New file.
4501 * config/mips/nm-nbsd.h: New file.
4502 * config/mips/tm-nbsd.h: New file.
4503
70f80edf
JT
45042002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4505
4506 * Makefile.in (SFILES): Add osabi.c.
4507 (COMMON_OBS): Add osabi.o.
4508 (osabi.o): New dependency list.
4509 * osabi.c: New file.
4510 * osabi.h: New file.
4511 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4512
4513 * Makefile.in (alpha_tdep_h): Define and use instead of
4514 alpha-tdep.h.
4515 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4516 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4517 Remove.
4518 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4519 * alpha-tdep.h: Include osabi.h.
4520 (alpha_abi): Remove.
4521 (gdbarch_tdep): Use generic OS ABI framework.
4522 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4523 gdbarch_register_osabi.
4524 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4525 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4526 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4527
4528 * Makefile.in (sh_tdep_h): Add osabi.h.
4529 * sh-tdep.h (sh_osabi): Remove.
4530 (gdbarch_tdep): Use generic OS ABI framework.
4531 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4532 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4533 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4534 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4535
4536 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4537 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4538 gdbarch_register_osabi.
4539 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4540 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4541 (get_elfosabi): Rename to...
4542 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4543 ABI framework support routines.
4544 (arm_gdbarch_init): Use generic OS ABI framework.
4545 (arm_dump_tdep): Likewise.
4546 (_initialize_arm_tdep): Likewise.
4547 * arm-tdep.h: Include osabi.h.
4548 (arm_abi): Remove.
4549 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4550 osabi member.
4551 (arm_gdbarch_register_os_abi): Remove prototype.
4552 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4553 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4554
4555 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4556 * mips-tdep.c: Include osabi.h.
4557 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4558 OS ABI framework.
4559
d194345b
KH
45602002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4561
4562 * h8300-tdep.c: Fix formatting.
4563
70c6b0d1
EZ
45642002-05-20 Elena Zannoni <ezannoni@redhat.com>
4565
4566 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4567 printing vector registers.
4568
165b8e33
AC
45692002-05-19 Andrew Cagney <ac131313@redhat.com>
4570
4571 From Fernando Nasser:
4572 * remote.c (remote_async_open_1): Re-throw the exception when the
4573 connection fails.
4574 (remote_cisco_open): Ditto.
4575 (remote_open_1): Ditto.
4576
36918e70
AC
45772002-05-19 Andrew Cagney <ac131313@redhat.com>
4578
4579 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4580 (remote_start_remote): Add uiout parameter. Pass through to
4581 remote_start_remote_dummy.
4582 (remote_open_1): Use catch_exception instead of catch_errors.
4583 (remote_async_open_1): Ditto.
4584 (remote_cisco_open): Ditto.
4585
ae44c0c4
AC
45862002-05-19 Andrew Cagney <ac131313@redhat.com>
4587
4588 * remote.c (remote_start_remote): Replace PTR with void pointer.
4589 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4590 static.
4591
8efe637d
AC
45922002-05-18 Andrew Cagney <ac131313@redhat.com>
4593
4594 * gdb_indent.sh: Allow the script to be run in the sim directory.
4595
2f1b5984
MK
45962002-05-18 Mark Kettenis <kettenis@gnu.org>
4597
f0f625e2
MK
4598 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4599 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4600
2f1b5984
MK
4601 * corelow.c (core_open): Only call set_gdbarch_from_file if
4602 exec_bfd is NULL.
4603
fc974602
AV
46042002-05-17 Andrey Volkov <avolkov@transas.com>
4605
4606 * h8300-tdep.c: Add support of EXR register
4607 * config/h8300/tm-h8300.h: Ditto.
4608
906709f4
AV
46092002-05-17 Andrey Volkov <avolkov@transas.com>
4610
4611 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4612
6e591d68
AV
46132002-05-17 Andrey Volkov <avolkov@transas.com>
4614
4615 * h8300-tdep.c: Change literal regnums to REGNO.
4616
84f0252a
JB
46172002-05-17 Jim Blandy <jimb@redhat.com>
4618
e0e9281e
JB
4619 * NEWS: Note addition of macro support.
4620
84f0252a
JB
4621 Expand preprocessor macros in C expressions.
4622 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4623 (scan_macro_expansion, scanning_macro_expansion,
4624 finished_macro_expansion): New function declarations.
4625 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4626 variable declarations.
4627 * parser-defs.h (expression_context_pc): New declaration.
4628 * parse.c (expression_context_pc): New variable.
4629 (parse_exp_1): Set expression_context_pc, as well as
4630 expression_context_block.
4631 * c-exp.y (yylex): If we're not already reading the result of a
4632 macro expansion, try to macro-expand the next token. When we're
4633 done scanning a macro expansion, switch back to the mainline text.
4634 Commas and `if's in a macro's expansion don't terminate the input.
4635 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4636 (macro_original_text, macro_expanded_text,
4637 expression_macro_lookup_func, expression_macro_lookup_baton): New
4638 variables.
4639 (scan_macro_expansion, scanning_macro_expansion,
4640 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4641 c_preprocess_and_parse): New functions.
4642 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4643 c_preprocess_and_parse, instead of c_parse.
4644 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4645 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4646
1c509ca8
JR
4647Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4648
4649 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4650 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4651 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4652
2250ee0c
CV
46532002-05-17 Corinna Vinschen <vinschen@redhat.com>
4654
4655 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4656
ab3b8126
JT
46572002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4658
4659 * Makefile.in (sh_tdep_h): Define and use.
4660 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4661 register enum): Move to...
4662 * * sh-tdep.h: ...here.
4663 * sh-tdep.c: Include sh-tdep.h.
4664 * sh3-rom.c: Likewise.
4665 * shnbsd-tdep.c: Likewise.
4666
ed9d4749
MS
46672002-05-16 Michael Snyder <msnyder@redhat.com>
4668
4669 * arm-tdep.c: Spelling fix in comment.
4670
2e276125
JB
46712002-05-16 Jim Blandy <jimb@redhat.com>
4672
6821892e
JB
4673 Add commands for manually expanding macros and showing their
4674 definitions.
4675 * macrocmd.c, macroscope.c, macroscope.h: New files.
4676 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4677 (macroscope_h): New variable.
4678 (HFILES_NO_SRCDIR): Add macroscope.h.
4679 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4680 (macroscope.o, macrocmd.o): New rules.
4681
2e276125
JB
4682 Teach the Dwarf 2 reader to read macro information.
4683 * dwarf2read.c: #include "macrotab.h".
4684 (dwarf_macinfo_buffer): New variable.
4685 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4686 dwarf_macinfo_size.
4687 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4688 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4689 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4690 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4691 dwarf2_macro_spaces_in_definition): New complaints.
4692 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4693 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4694 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4695 the partial symbol table.
4696 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4697 from what's recorded in the partial symbol table.
4698 (read_file_scope): If the compilation unit has a
4699 `DW_AT_macro_info' attribute, read its macro information.
4700 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4701
2f53fe6c
DJ
47022002-05-16 Daniel Jacobowitz <drow@mvista.com>
4703
4704 Fix PR gdb/546
4705 * ser-tcp.c: Don't include <netinet/udp.h>.
4706
2be99286
SC
47072002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4708
4709 * MAINTAINERS: Update my email address.
4710
c9af212b 47112002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
4712
4713 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4714 include file of the same name.
4715
bf5f1a52
CV
47162002-05-16 Corinna Vinschen <vinschen@redhat.com>
4717
4718 * configure.tgt: Mark v850 as multi-arched.
4719 * config/v850/tm-v850.h: Remove file.
4720 * config/v850/v850.mt: Eliminate TM_FILE.
4721
435e042a
CV
47222002-05-16 Corinna Vinschen <vinschen@redhat.com>
4723
4724 * v850-tdep.c: Full multi-arch.
4725 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4726 Define GDB_MULTI_ARCH to 2.
4727
9819c6c8
PM
47282002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4729
4730 * p-exp.y (current_type): New static variable.
4731 Carries the type of the expression at the position that is parsed.
4732 (push_current_type, pop_current_type): Two new functions. Used
4733 to store/restore current_type in expression on specific tokens.
c9af212b
RE
4734 (search_field): New static variable. Set to one after parsing a point
4735 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
4736 (FIELDNAME): New token. After a point only a token belonging to
4737 current_type type definition is allowed.
4738 (all over token rules): reset and change current_type according
4739 to rules.
4740 (exp '[' rule): insert implicit array index field if
4741 exp is a pascal string type.
4742
3a06899a
CV
47432002-05-16 Corinna Vinschen <vinschen@redhat.com>
4744
4745 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4746 frame info. Use frame_info's saved_regs instead of matching member
4747 in extra_frame_info throughout.
4748 (v850_frame_init_saved_regs): New function.
4749 (v850_init_extra_frame_info): Move most functionality into
4750 v850_frame_init_saved_regs().
4751 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4752 (v850_frame_find_saved_regs): Remove declaration.
4753 (FRAME_FIND_SAVED_REGS): Remove definition.
4754 (v850_frame_init_saved_regs): Add declaration.
4755 (FRAME_INIT_SAVED_REGS): Add definition.
4756
6ed14b0e
CV
47572002-05-16 Corinna Vinschen <vinschen@redhat.com>
4758
4759 * v850-tdep.c: Begin multi-arch'ing v850.
4760 (v850_target_architecture_hook): Remove function.
4761 (v850_gdbarch_init): New function. Add code previously in
4762 v850_target_architecture_hook().
4763 (_initialize_v850_tdep): Don't set target_architecture_hook.
4764 Call register_gdbarch_init() instead.
4765
42725910
DJ
47662002-05-16 Daniel Jacobowitz <drow@mvista.com>
4767
4768 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4769 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4770 (fixup_class_method_type): Likewise.
4771
99d9066e
JB
47722002-05-15 Jim Blandy <jimb@redhat.com>
4773
4774 Add macro structures to GDB's symbol tables. Nobody puts anything
4775 in them yet.
4776 * symtab.h (struct symtab): New member: `macro_table'.
4777 * buildsym.h (pending_macros): New global variable.
4778 * buildsym.c: #include "macrotab.h".
4779 (buildsym_init): Initialize `pending_macros'.
4780 (end_symtab): If we found macro information while reading a CU's
4781 debugging info, do build a symtab structure for it. Make the
4782 symtab point to the macro information, and clear the
4783 `pending_macros' pointer which held it while we were reading the
4784 debug info.
4785 (really_free_pendings): Free any pending macro table.
4786 * objfiles.h (struct objfile): New member: `macro_cache'.
4787 * objfiles.c (allocate_objfile): Set allocate and free functions
4788 for the macro cache's objstack.
4789 (free_objfile): Empty the macro cache's obstack.
4790 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4791 set new allocate and free functions for it.
4792 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4793 free functions for the macro cache's objstack. (Why is this
4794 function building its own objfile?)
4795 * symmisc.c (print_objfile_statistics): Print statistics on the
4796 macro bcache.
4797 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4798
c899585b
RE
47992002-05-15 Richard Earnshaw <rearnsha@arm.com>
4800
4801 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4802 (REGISTER_U_ADDR): Delete definition.
4803 (arm_register_u_addr): Delete declaration.
4804
a6cdd8c5
RE
48052002-05-15 Richard Earnshaw <rearnsha@arm.com>
4806
4807 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4808 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4809
c97dcfc7
AC
48102002-05-14 Andrew Cagney <ac131313@redhat.com>
4811
4812 * regcache.c (register_valid): Revise comments refering to "Not
4813 available" and "unavailable".
4814 * frame.c (frame_register_read): Ditto.
4815 * findvar.c (value_of_register): Ditto.
4816
93021b7d
AC
48172002-05-15 Andrew Cagney <cagney@redhat.com>
4818
4819 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4820 (remote-sim.o): Update dependencies.
4821 (d10v-tdep.o): Specify dependencies.
4822 (sim_d10v_h): Define.
4823
a86bc61c
JB
48242002-05-14 Jim Blandy <jimb@redhat.com>
4825
4826 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4827 * macrotab.c (macro_lookup_inclusion, find_definition,
4828 new_macro_table): Same.
4829
4830 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4831 not `! strcmp ()'. This is a dubious improvement.
4832 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4833
4834 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4835 although it's not necessary, to avoid a warning.
4836
2fdde8f8
DJ
48372002-05-14 Daniel Jacobowitz <drow@mvista.com>
4838
4839 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4840 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4841 TYPE_INSTANCE_FLAGS.
4842 (struct main_type): New.
4843 (struct type): Move most members to struct main_type. Change
4844 cv_type and as_type to new type_chain member. Add instance_flags.
4845 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4846 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4847 (finish_cv_type): Remove prototype.
4848 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4849 Set TYPE_CHAIN.
4850 (alloc_type_instance): New function.
4851 (smash_type): New function.
4852 (make_pointer_type, make_reference_type, make_function_type)
4853 (smash_to_member_type, smash_to_method_type): Call smash_type.
4854 (make_qualified_type): New function.
4855 (make_type_with_address_space): Call make_qualified_type.
4856 (make_cv_type): Likewise.
4857 (finish_cv_type): Remove unnecessary function.
4858 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4859 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4860 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4861 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4862 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4863 * hpread.c (hpread_read_struct_type): Likewise.
4864 * stabsread.c (read_struct_type): Likewise.
4865
843fedf4
EZ
48662002-05-14 Elena Zannoni <ezannoni@redhat.com>
4867
4868 * configure.tgt: Add a catch all sh* target, for cases like
4869 sh[2,3,4]-elf and sh-hms.
4870
05a6c72c
KS
48712002-05-14 Keith Seitz <keiths@redhat.com>
4872
4873 * event-loop.c (create_file_handler): Don't do anything but
4874 update data when we are given a fd which we are already
4875 monitoring.
4876
5d085aaf
ML
48772002-05-14 Michal Ludvig <mludvig@suse.cz>
4878
4879 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4880 (update_context): Use __func__ in warnings.
4881
9db8d71f
DJ
48822002-05-14 Daniel Jacobowitz <drow@mvista.com>
4883
4884 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4885 and tcp_close to net_open and net_close.
4886 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4887 using UDP if requested. Don't try to disable Nagle on UDP
4888 sockets.
4889 * remote.c (remote_serial_open): New function. Warn about UDP.
4890 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4891
5dbc6baa
EZ
48922002-05-13 Elena Zannoni <ezannoni@redhat.com>
4893
4894 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4895
cc3023f7
EZ
48962002-05-13 Elena Zannoni <ezannoni@redhat.com>
4897
4898 * configure.tgt: Remove sh-hms target.
4899 * MAINTAINERS: Don't list sh-hms as a separate target.
4900
ec2bcbe7
JB
49012002-05-13 Jim Blandy <jimb@redhat.com>
4902
4903 Add first preprocessor macro-expansion files.
4904 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4905 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4906 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4907 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4908 (COMMON_OBS): Add macrotab.o, macroexp.o.
4909 (macroexp.o, macrotab.o): New rules.
4910
6d531722
AC
49112002-05-13 Andrew Cagney <ac131313@redhat.com>
4912
4913 * config/m88k/tm-m88k.h: Update copyright.
4914 (m88k_target_write_pc): Declare
4915 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4916 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4917 (SHIFT_INST_REGS): Update definition.
4918 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4919 using old definition of TARGET_WRITE_PC.
4920 * regcache.c (generic_target_write_pc): Delete code handling
4921 NNPC_REGNUM.
4922 * gdbarch.sh (NNPC_REGNUM): Delete.
4923 * gdbarch.h, gdbarch.c: Regenerate.
4924
3e3f2739
RE
49252002-05-13 Richard Earnshaw <rearnsha@arm.com>
4926
4927 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4928 builtin reg number.
4929
0004e5a2
DJ
49302002-05-13 Daniel Jacobowitz <drow@mvista.com>
4931
4932 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4933 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4934 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4935 access macros.
4936 * c-typeprint.c (cp_type_print_method_args): Likewise.
4937 (c_type_print_args): Likewise.
4938 * d10v-tdep.c (d10v_push_arguments): Likewise.
4939 (d10v_extract_return_value): Likewise.
4940 * expprint.c (print_subexp): Likewise.
4941 * gdbtypes.c (lookup_primitive_typename): Likewise.
4942 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4943 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4944 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4945 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4946 (TYPE_VECTOR): Likewise.
4947 * hpread.c (hpread_read_struct_type)
4948 (fix_static_member_physnames, fixup_class_method_type)
4949 (hpread_type_lookup): Likewise.
4950 * mdebugread.c (parse_symbol, parse_type): Likewise.
4951 * p-lang.c (is_pascal_string_type): Likewise.
4952 * valops.c (hand_function_call): Likewise.
4953 * x86-64-tdep.c (classify_argument): Likewise.
4954
4955 * hpread.c (hpread_read_function_type)
4956 (hpread_read_doc_function_type): Call replace_type.
4957 * dstread.c (create_new_type): Delete.
4958 (decode_dst_structure, process_dst_function): Call alloc_type.
4959 Use type access macros.
4960
dff95cc7
MK
49612002-05-12 Mark Kettenis <kettenis@gnu.org>
4962
4963 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4964 the're not supported by the current architecture.
4965 (i387_fill_fxsave): Likewise.
4966
bbcd32ad
FF
49672002-05-12 Fred Fish <fnf@redhat.com>
4968
4969 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4970 sect_index_xxx members to index the first slot in section_offsets
4971 if all of the section_offsets are zero.
4972
89cf4787
MK
49732002-05-12 Mark Kettenis <kettenis@gnu.org>
4974
4975 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4976 checked in with last change.
4977
1f77ffc5
MK
49782002-05-12 Mark Kettenis <kettenis@gnu.org>
4979
4980 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4981 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4982 config.sub.
4983
89b8b4a9
DJ
49842002-05-12 Daniel Jacobowitz <drow@mvista.com>
4985
4986 * Makefile.in: Update dependencies.
4987
14a5e767
AC
49882002-05-11 Andrew Cagney <ac131313@redhat.com>
4989
4990 * language.c (local_hex_string_custom): Simplify. Do not depend
4991 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4992
4993 * memattr.c (mem_info_command): Replace calls to
4994 longest_local_hex_string and longest_local_hex_string_custom.
4995 * buildsym.c (make_blockvector): Ditto.
4996 * solib.c (info_sharedlibrary_command): Ditto.
4997 * tracepoint.c (tracepoints_info): Ditto.
4998 * symtab.c (print_msymbol_info): Ditto.
4999
5000 * language.c (local_hex_string): Delete.
5001 (local_hex_string_custom): Delete.
5002 (longest_local_hex_string): Rename to local_hex_string.
5003 (longest_local_hex_string_custom): Rename to
5004 local_hex_string_custom.
5005 * language.h (local_hex_string): Change parameter type to LONGEST.
5006 (local_hex_string_custom): Ditto.
5007 (longest_local_hex_string): Delete declaration.
5008 (longest_local_hex_string_custom): Ditto.
5009
5010 * solib.c: Update copyright.
5011 * memattr.c: Update copyright.
5012
13d01224
AC
50132002-05-11 Andrew Cagney <ac131313@redhat.com>
5014
5015 * arch-utils.h (legacy_register_to_value): Declare.
5016 (legacy_value_to_register): Declare.
5017 (legacy_convert_register_p): Declare.
5018 * arch-utils.c (legacy_register_to_value): New function.
5019 (legacy_value_to_register): New function.
5020 (legacy_convert_register_p): New function.
5021
5022 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5023 (VALUE_TO_REGISTER): Define.
5024 (CONVERT_REGISTER_P): Define.
5025 * gdbarch.h, gdbarch.c: Regenerate.
5026
5027 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5028 VALUE_TO_REGISTER.
5029 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5030 CONVERT_REGISTER_P.
5031
4a1970e4
DJ
50322005-05-11 Daniel Jacobowitz <drow@mvista.com>
5033 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5034
5035 * Makefile.in: Update dependencies for valops.c.
5036 * valops.c: Include "gdb_assert.h".
5037 (typecmp): Skip THIS parameter to methods.
5038 (find_method_list): Remove static_memfuncp argument,
5039 update callers. Check for stub methods.
5040 (find_value_oload_method_list): Don't set *static_memfuncp.
5041 (find_overload_match): Don't check for stub methods. Assert
5042 that methods are not stubbed. Handle static methods.
5043 (value_find_oload_method_list): Remove static_memfuncp argument.
5044 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5045 to the argument list for static stub methods.
5046 * value.h (value_find_oload_method_list): Update prototype.
5047
b2e75d78
AC
50482002-05-11 Andrew Cagney <ac131313@redhat.com>
5049
5050 * arch-utils.h (generic_register_size): Declare.
5051 (generic_register_raw_size, generic_register_virtual_size): Delete
5052 declarations.
5053 * arch-utils.c (generic_register_raw_size): Delete.
5054 (generic_register_size): New function.
5055 (generic_register_virtual_size): Delete.
5056
5057 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5058 default generic_register_size.
5059 * gdbarch.h, gdbarch.c: Re-generate.
5060
5061 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5062 register_virtual_size.
5063 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5064 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5065
451fbdda
AC
50662002-05-11 Andrew Cagney <ac131313@redhat.com>
5067
5068 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5069 * gdbarch.h, gdbarch.c: Regenerate.
5070 * gnu-v3-abi.c: Update copyright.
5071 (vtable_address_point_offset): Update.
5072 (gnuv3_rtti_type): Update.
5073 (gnuv3_baseclass_offset): Update.
5074 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5075 (init_fetch_link_map_offsets): Update.
5076 * remote.c (get_remote_state): Update.
5077
6d2f5cea
DJ
50782002-05-11 Daniel Jacobowitz <drow@mvista.com>
5079
5080 * TODO: Remove value_headof/value_from_vtable_info comment.
5081 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5082 * values.c (value_headof, value_from_vtable_info): Delete.
5083 * value.h (value_from_vtable_info): Delete prototype.
5084
d2324da4
AC
50852002-05-11 Andrew Cagney <ac131313@redhat.com>
5086
5087 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5088 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5089 $(gdb_regex_h).
5090 (gdb_assert_h): Define.
5091 (gdb_wait_h): Define.
5092 (gdb_regex_h): Define.
5093
5c717440
DJ
50942002-05-11 Daniel Jacobowitz <drow@mvista.com>
5095
5096 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5097 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5098
6c7861b3
JT
50992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5100
5101 * nbsd-tdep.c: Fix comment.
5102
ea5bc2a6
JT
51032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5104
5105 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5106 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5107 (nbsd-tdep.o): New dependency list.
5108 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5109 nbsd-tdep.h.
5110 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5111 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5112 * nbsd-tdep.c: New file.
5113 * nbsd-tdep.h: New file.
5114 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5115 nbsd-tdep.h.
5116 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5117 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5118 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5119 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5120
b28da865
JT
51212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5122
5123 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5124 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5125 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5126 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5127 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5128 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5129
4b8ff1fa
JT
51302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5131
5132 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5133 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5134 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5135 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5136 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5137 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5138 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5139
dfe6eb1f
JT
51402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5141
5142 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5143 fetch_elfcore_registers to...
5144 * i386nbsd-tdep.c: ...here.
5145 (i386nbsd_use_struct_convention): Rename to...
5146 (i386nbsd_aout_use_struct_convention): ...this.
5147 (i386nbsd_supply_reg): New function.
5148 (i386nbsd_fill_reg): New function.
5149 (fetch_core_registers): Use i386nbsd_supply_reg.
5150 (fetch_elfcore_registers): Likewise.
5151 (_initialize_i386nbsd_tdep): New function.
5152 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5153 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5154 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5155 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5156 (i386nbsd_aout_use_struct_convention): ...this.
5157
20cb8cda
JT
51582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5159
5160 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5161 (store_inferior_registers): Use shnbsd_fill_reg.
5162 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5163 sh_nbsd_supply_register): Collapse into...
5164 (shnbsd_supply_reg): ...this.
5165 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5166 (shnbsd_fill_reg): ...this.
5167 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5168 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5169 (fetch_core_registers): Use shnbsd_supply_reg.
5170 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5171 (sh_nbsd_core_fns): Rename to...
5172 (shnbsd_core_fns): ...this.
5173 (sh_nbsd_elfcore_fns): Rename to...
5174 (shnbsd_elfcore_fns): ...this.
5175 (sh_nbsd_init_abi): Rename to...
5176 (shnbsd_init_abi): ...this.
5177 (_initialize_sh_nbsd_tdep): Rename to...
5178 (_initialize_shnbsd_tdep): ...this.
5179 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5180 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5181 sh_nbsd_fill_register): Remove prototypes.
5182 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5183
e750d25e
JT
51842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5185
5186 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5187 (i387-nat.o): Delete dependency list.
5188 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5189 (x86-64-linux-nat.o): Likewise.
5190 * i387-nat.c: Delete file, moving contents to...
5191 * i387-tdep.c: ...here.
5192 * i387-nat.h: Rename...
5193 * i387-tdep.h: ...to this.
5194 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5195 * i386-linux-nat.c: Likewise.
5196 * i386bsd-nat.c: Likewise.
5197 * i386gnu-nat.c: Likewise.
5198 * i386nbsd-nat.c: Likewise.
5199 * i386v4-nat.c: Likewise.
5200 * x86-64-linux-nat.c: Likewise.
5201 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5202 * config/i386/go32.mh (NATDEPFILES): Likewise.
5203 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5204 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5205 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5206 * config/i386/linux.mh (NATDEPFILES): Likewise.
5207 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5208 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5209 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5210 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5211
1aee598a
JT
52122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5213
5214 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5215 (alphanbsd-nat.o): Remove dependency list.
5216 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5217 * alphanbsd-nat.c: Delete. Contents moved to...
5218 * alphanbsd-tdep.c: ...here.
5219 (_initialize_alphanbsd_tdep): Register core functions.
5220 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5221
12bcb0fe
JT
52222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5223
5224 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5225 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5226 (alphanbsd-nat.o): Likewise.
5227 (alphabsd-tdep.o): New dependency list.
5228 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5229 (fill_gregset): Use alphabsd_fill_reg.
5230 (supply_fpregset): Use alphabsd_supply_fpreg.
5231 (fill_fpregset): Use alphabsd_fill_fpreg.
5232 (fetch_inferior_registers): Use struct reg and struct fpreg
5233 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5234 and alphabsd_supply_fpreg.
5235 (store_inferior_registers): Use struct reg and struct fpreg
5236 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5237 and alphabsd_fill_fpreg.
5238 * alphabsd-tdep.c: New file.
5239 * alphabsd-tdep.h: New file.
5240 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5241 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5242 alphabsd_supply_fpreg.
5243 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5244 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5245
361d1df0
EC
52462002-05-11 Eric Christopher <echristo@redhat.com>
5247
5248 * mips-tdep.c (mips_double_register_type): Fix thinko.
5249 (mips_single_register_type): Ditto.
5250 * MAINTAINERS: Add self.
5251
92dd7cee
MK
52522002-05-11 Mark Kettenis <kettenis@gnu.org>
5253
5254 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5255 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5256 right thing on architectures with different endianness and/or
5257 integer sizes.
5258
e27da16d
JT
52592002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5260
5261 From Christian Limpach <chris@Pin.LU>
5262 * configure.in: Change sed expression which comments out
5263 NATDEPFILES to also comment out continuation lines.
5264 * configure: Regenerate.
5265
ddde02bd
EZ
52662002-05-10 Elena Zannoni <ezannoni@redhat.com>
5267
5268 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5269 big patch.
5270
1c922164
EZ
52712002-05-10 Elena Zannoni <ezannoni@redhat.com>
5272
5273 * sh-tdep.c: Include correct file.
5274
283150cd
EZ
52752002-05-10 Elena Zannoni <ezannoni@redhat.com>
5276
5277 New support for sh64-elf (sh5) target.
5278
5279 * configure.tgt: For sh64-elf target, default to sh-elf.
5280
5281 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5282 (struct gdbarch_tdep): Add new fields for new registers and ABI
5283 info.
361d1df0 5284
283150cd
EZ
5285 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5286 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5287 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5288 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5289 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5290 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5291 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5292 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5293 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5294 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5295 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5296 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5297 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5298 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5299 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5300 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5301 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5302 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5303 sign_extend, sh64_nofp_frame_init_saved_regs,
5304 sh64_init_extra_frame_info, sh64_get_saved_register,
5305 sh64_extract_struct_value_address, sh64_pop_frame,
5306 sh64_push_arguments, sh64_extract_return_value,
5307 sh64_store_return_value, sh64_show_media_regs,
5308 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5309 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5310 sh_sh64_register_virtual_type,
5311 sh_sh64_register_convert_to_virtual,
5312 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5313 sh64_register_read, sh64_pseudo_register_write,
5314 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5315 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5316 sh64_do_pseudo_register, sh_compact_do_registers_info,
5317 sh64_do_registers_info, sh_gdbarch_init): New functions.
5318
3117ed25
EZ
53192002-05-10 Elena Zannoni <ezannoni@redhat.com>
5320
5321 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5322
2654e6d4
DJ
53232002-05-10 Daniel Jacobowitz <drow@mvista.com>
5324
5325 * linespec.c (decode_line_1): Check for a double quote after
5326 a filename correctly.
5327
9ab3e532
JB
53282002-05-10 Jim Blandy <jimb@redhat.com>
5329
5330 Properly track the size of the current objfile's .debug_line section.
5331 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5332 (DWARF_LINE_SIZE): New macro.
5333 (dwarf2_build_psymtabs_hard): Record the line section's size in
5334 the partial symbol table.
5335 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5336 symbol table.
5337
126fa72d
PS
53382002-05-10 Petr Sorfa <petrs@caldera.com>
5339
5340 * ia64-tdep.c: Handle breakpoints on L instruction type
5341 in MLX instruction bundle by moving the breakpoint to
5342 the third slot (X instruction type) as L holds only data.
5343
1f077a3e
KB
53442002-05-10 Kevin Buettner <kevinb@redhat.com>
5345
5346 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5347 (process_one_symbol): Complain about discarding local symbols
5348 due to a misplaced N_LBRAC entry.
5349
8120c9d5 53502002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5351
5352 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5353 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5354 decrease the depth we are at, in the case of templates.
361d1df0 5355
67b2c998
DJ
53562002-05-09 Daniel Jacobowitz <drow@mvista.com>
5357
5358 * mips-tdep.c (mips_float_register_type): New function.
5359 (mips_double_register_type): New function.
5360 (mips_print_register): Use them.
5361 (do_fp_register_row): Likewise.
5362
fd326606
DJ
53632002-05-09 Daniel Jacobowitz <drow@mvista.com>
5364
6609d9af 5365 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5366 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5367 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5368
bef35864
MS
53692002-05-09 Michael Snyder <msnyder@redhat.com>
5370
5371 * remote-rdp.c (remote_rdp_can_run): Remove.
5372
c55a3f73
TT
53732002-05-09 Tom Tromey <tromey@redhat.com>
5374
5375 * jv-valprint.c (java_val_print): Handle `char' as a special case
5376 of TYPE_CODE_INT.
5377
b8d5e71d
MS
53782002-05-09 Michael Snyder <msnyder@redhat.com>
5379
5380 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5381 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 5382 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 5383 str r(0123),[sp,#nn].
361d1df0 5384 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
5385 order-independent by placing it in a loop.
5386
e2cd42dd
MS
53872002-05-06 Michael Snyder <msnyder@redhat.com>
5388
5389 * stabsread.c (read_type): Add recognition for new attribute:
5390 "@V;" means that an array type is actually a vector.
5391 This is analogous to the vector flag that's been added to dwarf2.
5392
3ce1502b
MK
53932002-05-09 Mark Kettenis <kettenis@gnu.org>
5394
5395 * i386-tdep.h (i386_abi): New enum.
5396 (struct gdbarch_tdep): Replace os_ident member with abi.
5397 (i386_gdbarch_register_os_abi): New prototype.
5398 * i386-tdep.c (i386_abi_names): New array.
5399 (process_note_abi_tag_sections): Removed.
5400 (process_note_sections): New function.
5401 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5402 (struct i386_abi_handler): New struct.
5403 (i386_abi_handler_list): New variable.
5404 (i386_gdbarch_register_os_abi): New function.
5405 (i386_gdbarch_init): Adapt for the changes given above.
5406
084c156a
DJ
54072002-05-08 Daniel Jacobowitz <drow@mvista.com>
5408
5409 * gregset.h: Say "GNU/Linux".
5410
6599f021
EZ
54112002-05-08 Elena Zannoni <ezannoni@redhat.com>
5412
5413 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5414 (build_gdbtypes): Build builtin_type_v2_float.
5415 (_initialize_gdbtypes): Register new builtin type.
5416
40af4b0c
AC
54172002-05-08 Andrew Cagney <ac131313@redhat.com>
5418
5419 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5420 (clear_gdbarch_swap): New function.
5421 (initialize_non_multiarch): Call.
5422 (gdbarch_update_p): Before calling init(), swap out and clear the
5423 existing architecture.
5424 * gdbarch.c: Regenerate.
5425
4fe84f46
JT
54262002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5427
5428 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5429 alphanbsd-tdep.c.
5430
4015edd1
JT
54312002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5432
5433 * sh-nbsd-nat.c: Rename to...
5434 * shnbsd-nat.c: ...this.
5435 * sh-nbsd-tdep.c: Rename to...
5436 * shnbsd-tdep.c: ...this.
5437 * sh-nbsd-tdep.h: Rename to...
5438 * shnbsd-tdep.h: ...this.
5439 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5440 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5441
0e2bd219
RE
54422002-05-08 Richard Earnshaw <rearnsha@arm.com>
5443
5444 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5445 concatenation for command help messages.
5446
13a38d45
JT
54472002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5448
5449 * NEWS: Note new sh*-*-netbsdelf* configuration.
5450 * configure.host: Set gdb_host_cpu to sh for all sh*.
5451 (sh*-*-netbsdelf*): New host.
5452 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5453 (sh*-*-netbsdelf*): New target.
5454 * sh-nbsd-nat.c: New file.
5455 * sh-nbsd-tdep.c: New file.
5456 * sh-nbsd-tdep.h: New file.
5457 * config/sh/nbsd.mh: New file.
5458 * config/sh/nbsd.mt: New file.
5459 * config/sh/nm-nbsd.h: New file.
5460 * config/sh/tm-nbsd.h: New file.
5461
d658f924
JT
54622002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5463
5464 * sh-tdep.c (sh_osabi_names): Declare.
5465 (process_note_abi_tag_sections): New function.
5466 (get_elfosabi): Ditto.
5467 (sh_gdbarch_register_os_abi): Ditto.
5468 (sh_dump_tdep): Ditto.
5469 _initialize_sh_tdep): Use gdbarch_register to register
5470 sh_gdbarch_init and sh_dump_tdep.
5471 * config/sh/tm-sh.h (sh_osabi): Declare.
5472 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5473
848cfffb
AC
54742002-05-07 Andrew Cagney <ac131313@redhat.com>
5475
5476 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5477 (thumb_scan_prologue): Ditto.
5478 (arm_find_callers_reg): Ditto.
5479 (arm_frame_chain): Ditto.
5480 (arm_init_extra_frame_info): Ditto.
5481 (arm_frame_saved_pc): Ditto.
5482 (arm_pop_frame): Ditto.
5483 (arm_push_return_address): New function.
5484 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5485 call_dummy_location, call_dummy_breakpoint_offset_p,
5486 call_dummy_breakpoint_offset, call_dummy_p,
5487 call_dummy_stack_adjust_p, call_dummy_words,
5488 sizeof_call_dummy_words, call_dummy_start_offset,
5489 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5490 call_dummy_address, push_return_address and push_dummy_frame for
5491 generic dummy frames.
5492
e7d717c0
JT
54932002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5494
5495 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5496 size computation for alloca.
5497 (sh_fp_frame_init_saved_regs): Likewise.
5498
7bbcf283
RE
54992002-05-07 Richard Earnshaw <rearnsha@arm.com>
5500
5501 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5502 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 5503 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
5504 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5505 * remote-rdp.c (remote_rdp_fetch_register): Use
5506 ARM_MAX_REGISTER_RAW_SIZE.
5507 (remote_rdp_store_register): Likewise.
5508
4657573b
ML
55092002-05-07 Michal Ludvig <mludvig@suse.cz>
5510
361d1df0 5511 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
5512 added default labels to switch {} statements.
5513 * x86-64-tdep.c: Ditto.
5514 * x86-64-linux-nat.c: Ditto.
5515
010f3b2f
JT
55162002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5517
5518 * solib.h: Protect against multiple inclusion.
5519
debd256d
JB
55202002-05-06 Jim Blandy <jimb@redhat.com>
5521
9ab3e532
JB
5522 Add first preprocessor macro-expansion files.
5523 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5524 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5525 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5526 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5527 (COMMON_OBS): Add macrotab.o, macroexp.o.
5528 (macroexp.o, macrotab.o): New rules.
5529
debd256d
JB
5530 Separate the job of reading the line number info statement program
5531 header (...expialidocious) out into its own function.
5532 * dwarf2read.c (struct line_head, struct filenames, struct
5533 directories): Replace with...
5534 (struct line_header): New structure, containing the full
5535 contents of the statement program header, including the
5536 include directory and file name tables.
5537 (read_file_scope): If we have line number info, instead of just
5538 calling dwarf_decode_lines to do all the work, call
5539 dwarf_decode_line_header first to get a `struct line_header'
5540 containing the data in the statement program header, and then
5541 pass that to dwarf_decode_lines, which will pick up where that
5542 left off. Be sure to clean up the `struct line_header' object.
5543 (dwarf_decode_line_header, free_line_header, add_include_dir,
5544 add_file_name): New functions.
5545 (dwarf_decode_lines): Move all the code to read the statement
5546 program header into dwarf_decode_line_header. Take the line
5547 header it built as the first argument, instead of the offset to
5548 the compilation unit's line number info. Use the new `struct
5549 line_header' type instead of the old structures. No need to do
5550 cleanups here now, since we don't allocate anything.
5551 (dwarf2_statement_list_fits_in_line_number_section,
5552 dwarf2_line_header_too_long): New complaints.
5553
ac3aafc7
EZ
55542002-05-06 Elena Zannoni <ezannoni@redhat.com>
5555
5556 * gdbtypes.c (init_vector_type): New function.
5557 (build_builtin_type_vec128): Simplify the representation of SIMD
5558 registers.
5559 (build_gdbtypes): Initialize new builtin vector types.
5560 (_initialize_gdbtypes): Register new vector types with gdbarch.
5561 (builtin_type_v4_float, builtin_type_v4_int32,
5562 builtin_type_v8_int16, builtin_type_v16_int8,
5563 builtin_type_v2_int32, builtin_type_v4_int16,
5564 builtin_type_v8_int8): New (renamed) SIMD types.
5565
13e49980
MK
55662002-05-06 Mark Kettenis <kettenis@gnu.org>
5567
5568 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5569 (i387_fill_fxsave): Likewise.
5570
997b20b8
AO
55712002-05-05 Alexandre Oliva <aoliva@redhat.com>
5572
5573 * alpha-tdep.c (alpha_extract_return_value): Don't use
5574 non-constant array size in prototype.
5575
535c96ce
AC
55762002-05-04 Andrew Cagney <ac131313@redhat.com>
5577
5578 From Brian Taylor <briant at model dot com>:
5579 * ui-out.c (ui_out_field_core_addr): Use the function
5580 longest_local_hex_string_custom'to format addresses > 32 bits
5581 wide.
5582
5583 * ui-out.c (ui_out_field_core_addr): Update comment.
5584
bedfa57b
AC
55852002-05-04 Andrew Cagney <ac131313@redhat.com>
5586
5587 * stack.c (select_and_print_frame): Make static. Delete the
5588 parameter `level'.
5589 (func_command): Update call.
5590 (select_frame_command): Delete code computing the frame level.
5591 * frame.h (select_and_print_frame): Delete declaration.
5592
f621c63e
AC
55932002-05-04 Andrew Cagney <ac131313@redhat.com>
5594
5595 * sparc-tdep.c (sparc_get_saved_register): Comment why
5596 get_prev_frame call is safe.
5597
0f7d239c
AC
55982002-05-04 Andrew Cagney <ac131313@redhat.com>
5599
5600 * frame.h (select_frame): Delete level parameter.
5601 * stack.c (select_frame): Update. Use frame_relative_level to
5602 obtain the frame's level.
5603 (select_and_print_frame): Update call.
5604 (select_frame_command): Ditto.
5605 (up_silently_base): Ditto.
5606 (down_silently_base): Ditto.
5607 * ocd.c (ocd_start_remote): Ditto.
5608 * remote-rdp.c (remote_rdp_open): Ditto.
5609 * remote-mips.c (mips_initialize): Ditto.
5610 (common_open): Ditto.
5611 * remote-e7000.c (e7000_start_remote): Ditto.
5612 * m3-nat.c (select_thread): Ditto.
5613 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5614 (child_get_current_exception_event): Ditto.
5615 * varobj.c (varobj_create): Ditto.
5616 (varobj_update): Ditto.
5617 (c_value_of_root): Ditto.
5618 * tracepoint.c (finish_tfind_command): Ditto.
5619 * corelow.c (core_open): Ditto.
5620 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5621 * thread.c (info_threads_command): Ditto.
5622 (switch_to_thread): Ditto.
5623 * infrun.c (normal_stop): Ditto.
5624 (restore_selected_frame): Ditto.
5625 (restore_inferior_status): Ditto.
5626 * breakpoint.c (insert_breakpoints): Ditto.
5627 (watchpoint_check): Ditto.
5628 (bpstat_stop_status): Ditto.
5629 (do_enable_breakpoint): Ditto.
5630 * blockframe.c (flush_cached_frames): Ditto.
5631 (reinit_frame_cache): Ditto.
5632
71d6c7b1
AC
56332002-05-04 Andrew Cagney <ac131313@redhat.com>
5634
5635 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5636 maintainer.
5637
cda6c68a
JB
56382002-05-04 Jim Blandy <jimb@redhat.com>
5639
5640 * gdbtypes.c (replace_type): Doc fix.
5641
5c1c87f0
AC
56422002-05-04 Andrew Cagney <ac131313@redhat.com>
5643
5644 * valprint.c (strcat_longest): Delete commented out function.
5645 Update copyright.
5646
cd9bfe15
AC
56472002-05-04 Andrew Cagney <ac131313@redhat.com>
5648
5649 * MAINTAINERS: Mark a29k as deleted.
5650 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5651 Move new configurations to the top.
5652 * configure.tgt: Remove a29k.
5653 * config/a29k/tm-vx29k.h: Delete.
5654 * config/a29k/vx29k.mt: Delete.
5655 * config/a29k/tm-a29k.h: Delete.
5656 * config/a29k/a29k-udi.mt: Delete.
5657 * config/a29k/a29k.mt: Delete.
5658 * a29k-tdep.c: Delete.
5659 * remote-udi.c: Delete.
5660 * remote-mm.c: Delete.
5661 * remote-eb.c: Delete.
5662 * remote-adapt.c: Delete.
5663 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
5664 * config/s390/s390x.mt: Ditto.
5665 * config/s390/s390.mt: Ditto.
5666 * config/sparc/sparclynx.mh: Ditto.
5667 * config/sparc/linux.mh: Ditto.
5668 * config/pa/hppaosf.mh: Ditto.
5669 * config/pa/hppabsd.mh: Ditto.
5670 * config/ns32k/nbsd.mt: Ditto.
5671 * config/mips/vr5000.mt: Ditto.
5672 * config/m68k/sun3os4.mh: Ditto.
5673 * config/m68k/nbsd.mt: Ditto.
5674 * config/m68k/m68klynx.mh: Ditto.
5675 * config/m32r/m32r.mt: Ditto.
5676 * config/i386/x86-64linux.mt: Ditto.
5677 * config/i386/nbsdelf.mt: Ditto.
5678 * config/i386/nbsd.mt: Ditto.
5679 * config/i386/i386lynx.mh: Ditto.
5680
bf0c5130
AC
56812002-05-04 Andrew Cagney <ac131313@redhat.com>
5682
5683 * target.c (debug_print_register): New function. Handle oversize
5684 registers.
5685 (debug_to_fetch_registers): Call.
5686 (debug_to_store_registers): Call.
5687
2ae1c2d2
JB
56882002-05-03 Jim Blandy <jimb@redhat.com>
5689
13a393b0
JB
5690 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5691 (read_type): Doc fix.
5692 * gdbtypes.c (replace_type): Doc fix.
5693
2ae1c2d2
JB
5694 * stabsread.c (multiply_defined_struct): New complaint.
5695 (read_struct_type): If the type we were passed isn't empty, or
5696 incomplete, don't read the new struct type into it; complain,
5697 and return the original type unchanged. Take a new `type_code'
5698 argument, which is the type code for the new type.
5699 (read_type): Rather than storing the type's type code here, pass
5700 it as an argument to read_struct_type, and let that take care of
5701 storing it. That way, we don't overwrite the original type code,
5702 so read_struct_type can use it to decide whether we're overwriting
5703 something we shouldn't.
5704 (complain_about_struct_wipeout): New function.
5705
8de9bdc4
AC
57062002-05-03 Andrew Cagney <ac131313@redhat.com>
5707
5708 * gdbarch.sh: Assert that gdbarch is non-NULL.
5709 * gdbarch.c: Regenerate.
5710
f773fdbb
JM
57112002-05-03 Jason Merrill <jason@redhat.com>
5712
5713 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5714 and return NULL.
5715
0e04a514
ML
57162002-05-03 Michal Ludvig <mludvig@suse.cz>
5717
5718 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5719 (x86_64_dwarf2gdb_regno_map_length),
5720 (x86_64_dwarf2_reg_to_regnum): Added.
5721 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5722 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5723 (_initialize_x86_64_tdep): Synced with the change above.
5724 (x86_64_skip_prologue): Reformulated message.
5725
065432a8
PM
57262002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5727
5728 * f-exp.y: Also use new prev_lexptr variable
5729 to improve error reporting. Based on Michael Snyder
5730 2002-04-24 dated patch to c-exp.y.
5731 * jv-exp.y: Likewise.
5732 * m2-exp.y: Likewise.
5733
a3162708
EZ
57342002-05-02 Elena Zannoni <ezannoni@redhat.com>
5735
5736 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5737 we are dealing with vectors.
5738
03620c38
PM
57392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5740
5741 * config/m68k/tm-nbsd.h: Obvious fix,
5742 correct machine name.
5743
6604db2e
PM
57442002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5745
5746 * p-typeprint.c (pascal_type_print_base): Add support
5747 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5748
0906b739
PM
57492002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5750
5751 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5752 for fondamental pascal 'char' type.
5753
e2625b33
PM
57542002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5755
5756 * p-lang.h (is_pascal_string_type): Declaration changed,
5757 new sixth argument of type char ** added.
361d1df0 5758 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
5759 changed. Args length_pos, length_size, string_pos, char_size
5760 can now be NULL. New argument arrayname set to the field
5761 name of the char array. Return value set to char array
5762 field index plus one.
361d1df0 5763 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
5764 is_pascal_string_type function.
5765
cf17c188
AC
57662002-05-02 Andrew Cagney <cagney@redhat.com>
5767
5768 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5769 <cagney@redhat.com> change.
5770 * gdbarch.c: Regenerate.
5771
52bca491
AC
57722002-05-02 Andrew Cagney <cagney@redhat.com>
5773
5774 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5775 before probing for a new one. Detect errorenous gdbarch_init
5776 functions.
5777 * gdbarch.c: Regenerate.
5778
d5e72505
AC
57792002-05-01 Andrew Cagney <cagney@redhat.com>
5780
5781 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5782 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5783 * config/v850/tm-v850.h: Ditto. Update copyright.
5784
af566d9f
AC
57852002-04-30 Andrew Cagney <ac131313@redhat.com>
5786
5787 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5788 current_gdbarch.
5789
880d85fa
MS
57902002-04-30 Michael Snyder <msnyder@redhat.com>
5791
94c30b78
MS
5792 * arm-tdep.c: Whitespace clean-ups.
5793 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
5794 should have been removed as part of 4/24 change.
5795
6f5987a6
KB
57962002-04-30 Kevin Buettner <kevinb@redhat.com>
5797
5798 * rs6000-tdep.c: Added comment describing how fpscr register
5799 numbers were chosen.
5800
1a113c93
MS
58012002-04-30 Michael Snyder <msnyder@redhat.com>
5802
5803 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5804
9a6f53fe
EZ
58052002-04-29 Elena Zannoni <ezannoni@redhat.com>
5806
5807 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5808 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5809 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5810
11ed25ac
KB
58112002-04-29 Kevin Buettner <kevinb@redhat.com>
5812
5813 From Louis Hamilton <hamilton@redhat.com>:
5814 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5815 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5816 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5817 not bfd-private xcoff data, to determine wordsize.
5818 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5819
ae232405
AC
58202002-04-29 Andrew Cagney <ac131313@redhat.com>
5821
5822 GDB 5.2 released from 5.2 branch.
5823
91fd20f7
ML
58242002-04-29 Michal Ludvig <mludvig@suse.cz>
5825
5826 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5827 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5828 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 5829
2dc5091b
EZ
58302002-04-29 Elena Zannoni <ezannoni@redhat.com>
5831
5832 * rs6000-tdep.c (rs6000_extract_return_value,
5833 rs6000_store_return_value): Handle returning vectors.
5834 (rs6000_gdbarch_init): Use
5835 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5836 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5837 New function.
5838 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5839 vectors.
5840 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5841 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 5842
2b9848d8
PM
58432002-04-24 Pierre Muller <ics.u-strasbg.fr>
5844
5845 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 5846 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
5847 with fprintf_unfiltered (gdb_stderr,...).
5848
f8d17dc5
PM
58492002-04-24 Pierre Muller <ics.u-strasbg.fr>
5850
5851 * remote-array.c (printf_monitor, write_monitor,
361d1df0 5852 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
5853 Replace fprintf (stderr,...
5854 with fprintf_unfiltered (gdb_stderr,....
5855 * remote-es.c: Likewise.
5856 * remote-os9k.c: Likewise.
5857 * remote-st.c: Likewise.
5858
2f2f1ad1
AS
58592002-04-28 Andreas Schwab <schwab@suse.de>
5860
5861 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5862 linux-proc.o and gcore.o.
5863
b6779aa2
AC
58642002-04-26 Michal Ludvig <mludvig@suse.cz>
5865
5866 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5867 code without frame pointers.
5868
7e57f5f4
AC
58692002-04-26 Andrew Cagney <ac131313@redhat.com>
5870
5871 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5872 ON_STACK is needed.
5873
2ceb85d0
BE
58742002-04-26 Ben Elliston <bje@redhat.com>
5875
5876 * target.c (do_xfer_memory): Correct reference to the new option
5877 "trust-readonly-sections".
5878
f5f8a009
EZ
58792002-04-26 Elena Zannoni <ezannoni@redhat.com>
5880
5881 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5882 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5883 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5884 vectors.
5885 (read_array_type): Record the fact that this array type is really a
5886 vector (i.e. are passed in by value).
5887
5868c862
JT
58882002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5889
5890 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5891 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5892 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5893 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5894 * alpha-linux-tdep.c: Include frame.h.
5895 (alpha_linux_sigcontext_addr): New function.
5896 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5897 alpha_linux_sigcontext_addr.
5898 * alpha-osf1-tdep.c: Include gdbcore.h.
5899 (alpha_osf1_sigcontext_addr): New function.
5900 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5901 alpha_osf1_sigcontext_addr.
5902 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5903 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5904
bfb01f37
AC
59052002-04-26 Andrew Cagney <ac131313@redhat.com>
5906
361d1df0 5907 * stack.c (selected_frame_level):
bfb01f37
AC
5908 (select_frame): Do not set selected_frame_level.
5909 * frame.h (selected_frame_level): Delete declaration.
5910
15813d3f
AC
59112002-04-26 Andrew Cagney <ac131313@redhat.com>
5912
5913 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5914 convert_from_func_ptr-addr when AIX / PowerOpen.
5915
6096c27a
AC
59162002-04-25 Andrew Cagney <ac131313@redhat.com>
5917
5918 * valops.c (hand_function_call): Call
5919 generic_save_call_dummy_addr.
5920 * frame.h (generic_save_call_dummy_addr): Declare.
5921 * blockframe.c (struct dummy_frame): Add fields call_lo and
5922 call_hi.
5923 (generic_find_dummy_frame): Check for PC in range call_lo to
5924 call_hi instead of entry_point_address.
5925 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5926 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5927 (generic_save_call_dummy_addr): New function.
5928
f510d44e
DM
59292002-04-24 David S. Miller <davem@redhat.com>
5930
5931 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5932 sparc_skip_prologue.
5933 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5934 information to find prologue when possible.
5935 (sparc_prologue_frameless_p): Call examine_prologue directly.
5936 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5937 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5938 second argument.
5939 (SKIP_PROLOGUE): Likewise.
5940
15d72a92
JT
59412002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5944 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5945 indicate that the condition it was testing is always true.
5946 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5947 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5948 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5949
accc6d1f
JT
59502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5951
5952 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5953 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5954 tdep->jb_pc and tdep->jb_elt_size.
5955 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5956 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5957 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5958 * alpha-nat.c (get_longjmp_target): Remove.
5959 (JB_ELEMENT_SIZE): Ditto.
5960 (JB_PC): Ditto.
5961 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5962 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5963 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5964 to alpha_get_longjmp_target.
5965 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5966 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5967 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5968
1bfdc549
AC
59692002-04-25 Andrew Cagney <ac131313@redhat.com>
5970
5971 * README: Update to GDB 5.2.
5972
1bd316f0
AC
59732002-04-25 Andrew Cagney <ac131313@redhat.com>
5974
5975 * gdbarch.sh (LC_ALL): Set to `c'.
5976
2e5ff58c
TR
59772002-04-25 Theodore A. Roth <troth@verinet.com>
5978
5979 * avr-tdep.c: Ran through gdb_indent.sh.
5980
e33ce519
TR
59812002-04-25 Theodore A. Roth <troth@verinet.com>
5982
5983 * MAINTAINERS: Add myself as AVR maintainer.
5984 * NEWS: Note new target avr.
5985
8818c391
TR
59862002-04-25 Theodore A. Roth <troth@verinet.com>
5987
5988 * Makefile.in: Add support for AVR target.
5989 * configure.tgt: Add support for AVR target.
5990 * avr-tdep.c: New file
5991 * config/avr/avr.mt: New file.
5992
79509c2d
TR
59932002-04-25 Theodore A. Roth <troth@verinet.com>
5994
5995 * MAINTAINERS: Add myself to write-after-approval.
5996
dac8068e
PM
59972002-04-24 Pierre Muller <ics.u-strasbg.fr>
5998
5999 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6000 with fprintf_unfiltered (gdb_stderr,....
6001
25bf3106
PM
60022002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6003
6004 Fix PR gdb/508.
6005 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6006
24467a86
PM
60072002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6008
6009 * p-exp.y: Also use new prev_lexptr variable
6010 to improve error reporting. Based on Michael Snyder
6011 2002-04-24 dated patch to c-exp.y.
6012
95b80706
JT
60132002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6014
6015 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6016 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6017 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6018 to 0.
6019 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6020 and struct value.
6021 (FUNCTION_START_OFFSET): Remove.
6022 (BREAKPOINT): Ditto.
6023
e90cc612
JT
60242002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6025
6026 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6027 * NEWS: Ditto.
6028
6c72f9f9
JT
60292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6032 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6033 alpha_linux_pc_in_sigtramp.
6034 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6035 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6036 alpha_osf1_pc_in_sigtramp.
6037 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6038 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6039 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6040 alphafbsd_pc_in_sigtramp.
6041 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6042 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6043 alphanbsd_pc_in_sigtramp.
6044 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6045 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6046
5e4f3379
JT
60472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6048
6049 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6050
da8ca43d
JT
60512002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6052
6053 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6054 alphanbsd-tdep.c.
6055 (alphanbsd-nat.o): New dependency list.
6056 (alphanbsd-tdep.o): Ditto.
6057 * NEWS: Note new native NetBSD/alpha configuration.
6058 * alphanbsd-nat.c: New file.
6059 * alphanbsd-tdep.c: Ditto.
6060 * configure.host (alpha*-*-netbsd*): New host.
6061 * configure.tgt (alpha*-*-netbsd*): New target.
6062 * config/alpha/nbsd.mh: New file.
6063 * config/alpha/nbsd.mt: Ditto.
6064 * config/alpha/nm-nbsd.h: Ditto.
6065 * config/alpha/tm-nbsd.h: Ditto.
6066
36a6271d
JT
60672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6068
6069 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6070 (alpha-osf1-tdep.o): New dependency list.
6071 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6072 and skip_sigtramp_frame members.
6073 * alpha-linux-tdep.c: Include gdbcore.h.
6074 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6075 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6076 * alpha-osf1-tdep.c: New file.
6077 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6078 alpha-osf1-dep.c.
6079 (alpha_frame_past_sigtramp_frame): New function.
6080 (alpha_dynamic_sigtramp_offset): Ditto.
6081 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6082 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6083 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6084 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6085 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6086 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6087 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6088 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6089 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6090 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6091 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6092 to find_solib_trampoline_target.
6093 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6094 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6095 (SKIP_TRAMPOLINE_CODE): Remove.
6096 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6097 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6098 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6099 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6100 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6101 (PROC_SIGTRAMP_MAGIC): Ditto.
6102 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6103 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6104 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6105 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6106 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6107
2f4bc57b
JT
61082002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6109
6110 * NEWS: Note that Alpha targets are now multi-arch.
6111
665132f9
MS
61122002-04-24 Michael Snyder <msnyder@redhat.com>
6113
6114 * parser-defs.h (prev_lexptr): New external variable.
6115 * parse.c (parse_exp_1): Set prev_lexptr to null before
6116 calling the language-specific parser.
6117 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6118 (yyerror): Use prev_lexptr in error reporting.
6119
32872fa7
DJ
61202002-04-24 Daniel Jacobowitz <drow@mvista.com>
6121
6122 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6123 * gregset.h: If FILL_FPXREGSET is defined, provide
6124 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6125 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6126 is defined, call fill_fpxregset.
6127
57e76fac
MS
61282002-04-24 Roland McGrath <roland@frob.com>
6129
6130 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6131 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6132 (supply_gregset, supply_fpregset): New functions.
6133
6134 * gnu-nat.c (gnu_find_memory_regions): New function.
6135 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6136 (gnu_xfer_memory): Add a cast.
6137
f43845b3
MS
61382002-04-24 Michael Snyder <msnyder@redhat.com>
6139
361d1df0 6140 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6141 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6142 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6143 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6144 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6145 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6146
a0abec03
AC
6147Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6148
6149 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6150 NUM_PSEUDO_REGS can be used.
6151
d7bd68ca
AC
61522002-04-24 Andrew Cagney <ac131313@redhat.com>
6153
6154 * arch-utils.h: Update copyright.
6155
6156 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6157 * gdbarch.h, gdbarch.c: Re-generate.
6158
6159 * inferior.h (IN_SIGTRAMP): Delete definition.
6160 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6161 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6162
6163 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6164 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6165 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6166 (find_proc_framesize): Ditto.
6167 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6168 (alpha_init_extra_frame_info): Ditto.
6169 * infrun.c (handle_inferior_event): Ditto.
6170 (handle_inferior_event): Ditto.
6171 (check_sigtramp2): Ditto.
6172 * blockframe.c (create_new_frame): Ditto.
6173 (get_prev_frame): Ditto.
6174 * ppc-linux-tdep.c: Update comments.
6175 * i386-linux-tdep.c: Update comments.
6176 * breakpoint.c (bpstat_what): Update comment.
6177
4867e41e
DM
61782002-04-24 David S. Miller <davem@redhat.com>
6179
21d83aa5
DM
6180 * i960-tdep.c (register_in_window_p): New function.
6181 (i960_find_saved_register): Use it instead of
6182 REGISTER_IN_WINDOW_P.
6183 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6184
4867e41e
DM
6185 * symtab.h (find_stab_function_addr): Kill extern.
6186 * minsyms.c (find_stab_function_addr): Remove from here...
6187 * dbxread.c: ... to here, and mark it static.
6188
69cdf6a2
DM
61892002-04-20 David S. Miller <davem@redhat.com>
6190
6191 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6192 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6193
5a595886
DM
61942002-04-21 David S. Miller <davem@redhat.com>
6195
6196 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6197 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6198 (vx_write_register): Likewise.
6199
1da1a192
JB
62002002-04-23 J. Brobecker <brobecker@gnat.com>
6201
6202 * source.c (is_regular_file): New function.
6203 (openp): Check wether file to open is a regular file
6204 to avoid opening directories.
6205
baa6f10b
JT
62062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6207
6208 * findvar.c (extract_signed_integer): Cast printf argument
6209 to suppress format warning.
6210 (extract_unsigned_integer): Likewise.
6211 * infcmd.c (registers_info): Likewise.
6212 * top.c (get_prompt_1): Likewise.
6213 * valops.c (value_assign): Likewise.
6214 * valprint.c (print_decimal): Likewise.
6215
b2c4da81
L
62162002-04-22 H.J. Lu (hjl@gnu.org)
6217
6218 * c-exp.y (typebase): Support
361d1df0 6219
b2c4da81
L
6220 [long|long long|short] [signed|unsigned] [int|]
6221
6222 and
6223
6224 signed [long|long long|short] int
6225
f267bd6a
JT
62262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6229 and vax-tdep.h.
6230 * vax-tdep.h: New file.
6231 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6232 Make several routines static.
6233 (vax_get_saved_register): New function.
6234 (vax_gdbarch_init): New function.
6235 (_initialize_vax_tdep): Register vax_gdbarch_init.
6236 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6237 Remove macros now under the control of gdbarch.
6238
da3c6d4a
MS
62392002-04-22 Michael Snyder <msnyder@redhat.com>
6240
11d3b27d
MS
6241 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6242 Some whitespace and coding standards tweaks.
da3c6d4a 6243
a33f7558
JT
62442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6245
6246 * vax-tdep.c: Include regcache.h.
6247 (vax_call_dummy_words): New.
6248 (sizeof_vax_call_dummy_words): New.
6249 (vax_fix_call_dummy): New function.
6250 (vax_saved_pc_after_call): Ditto.
6251 * config/vax/tm-vax.h: Don't include regcache.h.
6252 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6253 (CALL_DUMMY): Remove.
6254 (CALL_DUMMY_WORDS): Define.
6255 (SIZEOF_CALL_DUMMY_WORDS): Define.
6256 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6257
47a73475
MS
62582002-04-18 Michael Snyder <msnyder@redhat.com>
6259
6260 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6261
52efde73
JT
62622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6263
6264 * vax-tdep.c (vax_frame_chain): New function.
6265 (vax_push_dummy_frame): Ditto.
6266 (vax_pop_frame): Ditto.
6267 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6268 (FRAMELESS_FUNCTION_INVOCATION): Use
6269 generic_frameless_function_invocation_not.
6270 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6271 (POP_FRAME): Use vax_pop_frame.
6272
ea74468c
JT
62732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6274
6275 * vax-tdep.c (vax_store_struct_return): New function.
6276 (vax_extract_return_value): Ditto.
6277 (vax_store_return_value): Ditto.
6278 (vax_extract_struct_value_address): Ditto.
6279 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6280 vax_store_struct_return.
6281 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6282 (STORE_RETURN_VALUE): Use vax_store_return_value.
6283 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6284
5516aa92
JT
62852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6286
6287 * vax-tdep.c (vax_frame_saved_pc): New function.
6288 (vax_frame_args_address_correct): Ditto.
6289 (vax_frame_args_address): Ditto.
6290 (vax_frame_locals_address): Ditto.
6291 (vax_frame_num_args): Move code to be in proximity to
6292 other frame-related functions.
6293 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6294 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6295 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6296 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6297 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6298
36af0b35
L
62992002-04-22 H.J. Lu (hjl@gnu.org)
6300
6301 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6302 includedir.
6303
ab62c900
JT
63042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6305
6306 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6307 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6308 (FRAME_INIT_SAVED_REGS): New macro.
6309
7232b100
JT
63102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6311
6312 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6313
b70d2aee
JT
63142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6317 where needed.
6318 (fetch_osf_core_registers): Likewise.
6319 (supply_gregset): Likewise.
6320
a0e8a2d1 63212002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6322
a0e8a2d1
JB
6323 * symfile.h (get_section_index): Define.
6324 * symfile.c (get_section_index): New function.
6325 * mdebugread.c (SC_IS_SBSS): New macro.
6326 (SC_IS_BSS): Return true for the scBss storage class only, as
6327 the scSBss storage class refers to the .sbss section.
6328 (parse_partial_symbols): Discard the symbols which associated
6329 section does not exist.
6330 Make sure to use the .sbss section index for symbols which
6331 storage class is scBss, rather than using the .bss section index.
6332
51eb8b08
JT
63332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * vax-tdep.c: Update copyright years.
6336 (vax_register_name): New function.
6337 (vax_register_byte): Ditto.
6338 (vax_register_raw_size): Ditto.
6339 (vax_register_virtual_size): Ditto.
6340 (vax_register_virtual_type): Ditto.
6341 * config/vax/tm-vax.h: Update copyright years.
6342 (REGISTER_NAMES): Remove.
6343 (REGISTER_NAME): Define.
6344 (REGISTER_BYTE): Use vax_register_byte.
6345 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6346 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6347 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6348
6cc1c0a8
AC
63492002-04-21 Andrew Cagney <ac131313@redhat.com>
6350
6351 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6352 declaration
6353 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6354
9319a2fe
DM
63552002-04-21 David S. Miller <davem@redhat.com>
6356
6357 * arch-utils.c (generic_prologue_frameless_p): Kill
6358 SKIP_PROLOGUE_FRAMELESS_P code.
6359 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6360 references.
6361 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6362 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6363 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6364 references.
6365 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6366 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6367 (sparc_gdbarch_init): Pass it to
6368 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6369
e9ed6d01
JT
63702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6371
6372 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6373 (alphabsd-nat.o): New dependency list.
6374
36012033
JT
63752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6376
6377 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6378 alphafbsd-tdep.c.
6379 (alpha-linux-tdep.o): New dependency list.
6380 (alphafbsd-tdep.o): Likewise.
6381
3379287a
JT
63822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6383
6384 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6385 to here...
6386 * alpha-tdep.c: ...from here.
6387 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6388
4bcbd6cb
JT
63892002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6390
6391 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6392 prototype from here...
6393 * alpha-tdep.h: ...to here.
6394
b31da25e
AC
63952002-04-21 Andrew Cagney <ac131313@redhat.com>
6396
6397 * frame.h (selected_frame_level): Document as deprecated.
6398 (frame_relative_level): Declare.
6399 * stack.c (frame_relative_level): New function.
6400 (selected_frame_level): Document as deprecated.
6401 (select_frame): Do not set the selected_frame_level.
6402
6403 * stack.c (frame_info, record_selected_frame): Update.
6404 (frame_command, current_frame_command): Update.
6405 (up_silently_base, up_command, down_silently_base): Update.
6406 (down_command): Update.
6407 * inflow.c (kill_command): Update.
6408 * tracepoint.c (finish_tfind_command): Update.
6409 * corelow.c (core_open): Update.
6410 * thread.c (info_threads_command): Update.
6411 (do_captured_thread_select): Update.
6412 * infcmd.c (finish_command): Update.
6413 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6414
9c1d6fe5
JT
64152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6416
6417 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6418
ab89facf
AC
64192002-04-21 Andrew Cagney <ac131313@redhat.com>
6420
6421 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6422 type const.
6423
82a4efa1
JT
64242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6425
6426 * alphafbsd-tdep.c: Update copyright years. Include
6427 alpha-tdep.h.
6428 (alphafbsd_use_struct_convention): Make static.
6429 (alphafbsd_init_abi): New function.
6430 (_initialize_alphafbsd_tdep): New function.
6431 * config/alpha/tm-fbsd.h: Update copyright years.
6432 (USE_STRUCT_CONVENTION): Remove.
6433
44dffaac
JT
64342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6435
6436 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6437 an Alpha ABI variant.
6438 (alpha_abi_handler_list): Declare.
6439 (alpha_gdbarch_register_os_abi): New function.
6440 (alpha_gdbarch_init): Give registered ABI variant handlers a
6441 chance to tweak the gdbarch once we have set up defaults.
6442 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6443
65585be4
JT
64442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6445
6446 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6447 to standard_coerce_float_to_double.
6448 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6449
d9b023cc
JT
64502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6451
6452 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6453 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6454 from gdbarch_tdep rather than a constant.
6455 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6456 the default text address for all Alpha Unix ABIs.
6457 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6458 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6459
dc129d82
JT
64602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6461
6462 * alpha-tdep.h: New file. Includes several Alpha target constants
6463 taken from...
6464 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6465 let gdbarch deal with.
6466 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6467 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6468 to dependency list.
6469 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6470 Alpha target register names.
6471 * alphabsd-nat.c: Likewise.
6472 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6473 Alpha target register names. Make serveral routines static.
6474 (alpha_get_saved_register): New function.
6475 (alpha_abi_names): New.
6476 (process_note_abi_tag_sections): New function.
6477 (get_elfosabi): New function.
6478 (alpha_gdbarch_init): New function.
6479 (alpha_dump_tdep): New function.
6480 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6481
d49d1e0a
AC
64822002-04-21 Andrew Cagney <ac131313@redhat.com>
6483
6484 * frame.c (find_saved_register): Delete #ifdef
6485 HAVE_REGISTER_WINDOWS code.
6486 * config/sparc/tm-sparc.h: Update comments.
6487 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6488
92e8c9ed
AC
64892002-04-21 Andrew Cagney <ac131313@redhat.com>
6490
6491 * i960-tdep.c (i960_find_saved_register): New function.
6492 (i960_get_saved_register): New function.
6493 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6494 (i960_get_saved_register): Declare.
6495 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6496
e1925118
DM
64972002-04-20 David S. Miller <davem@redhat.com>
6498
6499 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6500
29673b29
AC
65012002-04-20 Andrew Cagney <ac131313@redhat.com>
6502
6503 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6504 instead of NUM_PSEUDO_REGS.
6505
6c86dcd5
DM
65062002-04-20 David S. Miller <davem@redhat.com>
6507
6508 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6509 GDB_MULTI_ARCH_PARTIAL
6510 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6511 define, let tm-sp64.h do it.
6512
aa40ec90
JT
65132002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6514
6515 * frame.c (find_saved_register): Avoid a NULL pointer
6516 dereference and actually walk the frame list.
6517
0f79675b
AC
65182002-04-20 Andrew Cagney <ac131313@redhat.com>
6519
6520 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6521 sorted in most most-recent-used order. Document.
6522 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6523
f91305dd 65242002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
6525
6526 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6527 instead of ->prev.
6528 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6529 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6530 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6531 instead of ->prev.
6532
73d322b1
EZ
65332002-04-19 Elena Zannoni <ezannoni@redhat.com>
6534
6535 Fix PR gdb/471.
6536 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6537 (build_builtin_type_vec128): Ditto.
6538 (append_composite_type_field): Fix calculation of type length in
6539 union case.
6540
ccd9a834
EZ
65412002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6542
6543 * config/djgpp/README: Update.
6544
6545 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6546 compiler warnings.
6547
a57f9e49
JT
65482002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6549
6550 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6551 (alpha_setup_arbitrary_frame): ...to this.
6552 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6553 for alpha_setup_arbitrary_frame.
6554
f4f9705a
AC
65552002-04-18 Andrew Cagney <cagney@redhat.com>
6556
6557 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6558 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 6559
f4f9705a
AC
6560 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6561 * target.h (memory_breakpoint_from_pc): Update declaration.
6562 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6563
6564 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6565 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6566 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6567 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6568 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6569 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6570 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6571 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6572 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6573 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6574 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6575 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6576
6577 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6578 const pointer.
6579 * monitor.c (monitor_insert_breakpoint): Ditto.
6580 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6581
6582 * config/mcore/tm-mcore.h: Update copyright.
6583 * mem-break.c: Ditto.
6584 * xstormy16-tdep.c: Ditto.
6585
29f319b8
PM
65862002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6587
6588 * p-exp.y: Add precedence rule for '^' token.
6589 This removes the shift/reduce conflicts.
6590 Remove the comment concerning these shift/reduce conflicts.
6591
ebeac11a
EZ
65922002-04-18 Elena Zannoni <ezannoni@redhat.com>
6593
6594 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6595 (registers_powerpc_nofp): New register set for processors
6596 without floating point unit.
6597
27c31547
DM
65982002-04-18 David S. Miller <davem@redhat.com>
6599
6600 * MAINTAINERS: Add myself to write-after-approval.
6601
47a73475
MS
66022002-04-17 Michael Snyder <msnyder@redhat.com>
6603
6604 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6605
953836b2
AC
66062002-04-17 Andrew Cagney <ac131313@redhat.com>
6607
6608 * rs6000-tdep.c (frame_initial_stack_address): Use
6609 frame_register_read to read the alloca_reg.
6610
8b0d4340
AC
66112002-04-17 Andrew Cagney <ac131313@redhat.com>
6612
6613 * frame.c (find_saved_register): Find saved registers in the next
6614 not prev frame.
6615 Fix PR gdb/365.
6616
d8864532
AC
66172002-04-17 Andrew Cagney <ac131313@redhat.com>
6618
6619 * gdbarch.sh (LANG): Set to ``c''.
6620
36cc83a3 66212002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 6622
36cc83a3 6623 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 6624
2f4150cc 66252002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
6626
6627 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6628 Update copyright.
6629
628703c6 6630 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 6631 Also fix PR gdb/391.
361d1df0 6632
56157b4a
AC
66332002-04-14 Andrew Cagney <ac131313@redhat.com>
6634
6635 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6636 * aclocal.m4, configure: Re-generate.
6637 Fix PR gdb/391.
361d1df0 6638
6d1e3329
EZ
66392002-04-14 Elena Zannoni <ezannoni@redhat.com>
6640
6641 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6642 instead of tm_print_insn.
6643
cb06fa07
EZ
66442002-04-14 Elena Zannoni <ezannoni@redhat.com>
6645
6646 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6647
f208ba17
AC
66482002-04-14 Andrew Cagney <ac131313@redhat.com>
6649
6650 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6651 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6652 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6653
20f01a46
DH
66542002-04-12 Don Howard <dhoward@redhat.com>
6655
6656 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6657 max_user_call_depth.
6658 (init_cmd_lists): Initialize the new value;
6659 * cli/cli-script.c (execute_user_command): Limit the call depth of
6660 user defined commands. This avoids a core-dump when user commands
6661 are infinitly recursive.
6662
a88376a3
KB
66632002-04-12 Kevin Buettner <kevinb@redhat.com>
6664
6665 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6666 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6667 from tdep struct instead of DEFAULT_LR_SAVE.
6668 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6669 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6670 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6671
f2172603
MS
66722002-04-12 Michael Snyder <msnyder@redhat.com>
6673
694f61fb 6674 * Remote.c: Spelling fix.
20fe79c8
MS
6675 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6676 If no symbol found for "sbrk", try "_sbrk".
6677 (make_output_phdrs): Use bfd_section_name.
6678 (gcore_copy_callback): Use bfd_section_name.
62995fc4 6679 * eval.c: Indentation fix-ups.
169a7369
MS
6680 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6681 in case it gets applied to an address that is already
6682 in the instruction space.
de74f71f
MS
6683 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6684 * symfile.c: Fix indentation, long lines.
f2172603
MS
6685 * source.c: White space fix-up.
6686
cda5a58a
AC
66872002-04-12 Andrew Cagney <cagney@redhat.com>
6688
6689 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6690 * frame.c (frame_register_read): New function. Return non-zero on
6691 success.
6692 (read_relative_register_raw_bytes_for_frame): Delete.
6693 (read_relative_register_raw_bytes): Delete.
6694 * frame.h (frame_register_read): Declare.
6695 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6696 * sh-tdep.c: Ditto.
6697 * infcmd.c (do_registers_info): Ditto.
6698 * hppa-tdep.c: Ditto.
6699 * rs6000-tdep.c: Ditto.
6700 * h8500-tdep.c: Ditto.
6701 * mips-tdep.c: Ditto.
6702 * h8300-tdep.c: Ditto.
6703 * z8k-tdep.c: Ditto.
6704
2ea5f656
KB
67052002-04-12 Kevin Buettner <kevinb@redhat.com>
6706
6707 From Jimi X <jimix@watson.ibm.com>:
6708 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6709 64-bit SysV ABI.
6710
27b15785
KB
67112002-04-12 Kevin Buettner <kevinb@redhat.com>
6712
6713 From Jimi X <jimix@watson.ibm.com>:
6714 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6715 bfd info.
6716
5d57ee30
KB
67172002-04-12 Kevin Buettner <kevinb@redhat.com>
6718
6719 From Jimi X <jimix@watson.ibm.com>:
6720 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6721 register sets for these processor variants.
6722
bc1e36ca
DJ
67232002-04-11 Daniel Jacobowitz <drow@mvista.com>
6724
bc1e36ca
DJ
6725 * regformats/reg-ppc.dat: Support FPSCR.
6726
e3f36dbd
KB
67272002-04-11 Kevin Buettner <kevinb@redhat.com>
6728
6729 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6730 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6731 Add fpscr as an invalid/unfetchable register.
6732 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6733 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6734 (fill_fpregset): Add support for register fpscr.
6735 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6736 (fill_gregset): Account for the fact that register ``mq'' might
6737 not exist.
6738 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6739 (registers_power): Add fpscr to register set at slot 71.
6740 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6741 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6742
943c9c25
MS
67432002-04-11 Michael Snyder <msnyder@redhat.com>
6744
6745 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6746 * configure: Regenerate.
6747 * config.in: Regenerate.
6748 * acconfig.h: Add define for _SYSCALL32.
6749 * core-sol2.c: Remove #define _SYSCALL32.
6750 * solib-legacy.c: Remove #define _SYSCALL32.
6751
d8c0a2e7
AC
67522002-04-10 Andrew Cagney <ac131313@redhat.com>
6753
6754 * stack.c (select_frame): Cleanup internal error message, do not
6755 use %p.
6756
7cc19214
AC
67572002-04-10 Andrew Cagney <ac131313@redhat.com>
6758
6759 * stack.c (select_frame): Check that selected_frame and the
6760 specified level are as expected.
6761 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6762 Update copyright.
6763 * frame.h (struct frame_info): Add field `level'. Update
6764 copyright.
6765 Work-in-progress PR gdb/464.
6766
67a2b77e
AC
67672002-04-10 Andrew Cagney <ac131313@redhat.com>
6768
6769 * maint.c (maint_print_section_info): Rename print_section_info.
6770 (print_bfd_section_info, print_objfile_section_info): Update.
6771 * inferior.h (struct gdbarch): Add opaque declaration.
6772 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6773 * gdbarch.h: Regenerate.
6774
8cfda98c
ML
67752002-04-10 Michal Ludvig <mludvig@suse.cz>
6776
6777 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6778 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6779 (kernel_u_size): Added.
6780 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6781 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6782
ca439ad2 67832002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 6784
ca439ad2
JI
6785 * valarith.c (find_size_for_pointer_math): New function, either returns
6786 the size for a pointer's target, returns 1 for void *, or errors for
6787 incomplete types.
6788 (value_add, value_sub): use find_size_for_pointer_math.
6789
2f2893d9
DJ
67902002-04-09 Daniel Jacobowitz <drow@mvista.com>
6791
6792 * linux-low.c (linux_look_up_symbols): New hook.
6793 (linux_target_ops): Add linux_look_up_symbols.
6794 * remote-utils.c (decode_address): New function.
6795 (look_up_one_symbol): New function.
6796 * server.c (handle_query): Call target look_up_symbols hook.
6797 * server.h (look_up_one_symbol): Add prototype.
6798 * target.h (struct target_ops): Add look_up_symbols hook.
6799
96cb11df
AC
68002002-04-09 Andrew Cagney <ac131313@redhat.com>
6801
6802 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6803 override FP_REGNUM with frame->fp. Update copyright.
6804 * parse.c (num_std_regs, std_regs): Delete.
6805 (target_map_name_to_register): Do not search std_regs. Update
6806 function description.
6807 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6808 declarations. Update copyright.
6809 Fix PR gdb/251.
361d1df0 6810
97658e92
DJ
68112002-04-09 Daniel Jacobowitz <drow@mvista.com>
6812
6813 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6814 after the last symbol in a block.
6815
6044e3eb
PM
68162002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6817
6818 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6819 is non zero as a found symbol.
6820
0406ec40
AC
68212002-04-08 Andrew Cagney <ac131313@redhat.com>
6822
6823 * findvar.c: Include "builtin-regs.h".
6824 (value_of_register): Call value_of_builtin_reg when applicable.
6825 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6826 (target_map_name_to_register): Call
6827 builtin_reg_map_name_to_regnum.
6828 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6829 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6830 (builtin_regs_h): Define.
6831 (builtin-regs.o): New target.
6832 (findvar.o): Add $(builtin_regs_h).
6833 * builtin-regs.c, builtin-regs.h: New files.
6834 * std-regs.c: New file.
6835 Partial fix for PR gdb/251.
6836
56a6dfb9
KB
68372002-04-08 Kevin Buettner <kevinb@redhat.com>
6838
6839 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6840 it's no longer required.
6841
3a808432
AC
68422002-04-08 Andrew Cagney <ac131313@redhat.com>
6843
6844 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6845
7c40d541
KB
68462002-04-08 Kevin Buettner <kevinb@redhat.com>
6847
6848 From Jimi X <jimix@watson.ibm.com>:
6849 * rs6000-tdep.c (rs6000_software_single_step): Use
6850 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6851 and size. Use target_insert_breakpoint() and
6852 target_remove_breakpoint() to insert and remove breakpoints
6853 instead of explicit memory reads and writes.
6854
cc9836a8
KB
68552002-04-08 Kevin Buettner <kevinb@redhat.com>
6856
6857 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6858 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6859 ELF_OBJECT_FORMAT ifdef.
6860
7495d1dc
KB
68612002-04-08 Kevin Buettner <kevinb@redhat.com>
6862
6863 From Jimi X <jimix@watson.ibm.com>:
6864 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6865
4288e836
KB
68662002-04-08 Kevin Buettner <kevinb@redhat.com>
6867
6868 From Jimi X <jimix@watson.ibm.com>:
6869 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6870 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6871
a4e4e501
MK
68722002-04-07 Mark Kettenis <kettenis@gnu.org>
6873
6874 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6875 s/asprintf/xasprintf/.
6876 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6877
006defba
AC
68782002-04-07 Andrew Cagney <ac131313@redhat.com>
6879
6880 I believe Jeff Law denies responsability for this one:
6881 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6882 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6883 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6884 Work-around for PR gdb/366.
6885
7aa83cac
EZ
68862002-04-07 Elena Zannoni <ezannoni@redhat.com>
6887
6888 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6889 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6890 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6891
cf1fcca1
EZ
68922002-04-07 Elena Zannoni <ezannoni@redhat.com>
6893
6894 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6895 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6896 information.
6897
3f289e6f
AC
68982002-04-07 Andrew Cagney <ac131313@redhat.com>
6899
6900 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6901 maintainer.
6902
129188f6
AC
69032002-04-07 Andrew Cagney <ac131313@redhat.com>
6904
6905 * README (Reporting Bugs in GDB): Document the bug web page as the
6906 prefered way of submitting bugs.
6907 Fix PR gdb/402.
6908
1200cd6e
AC
69092002-04-06 Andrew Cagney <ac131313@redhat.com>
6910
6911 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6912 -1. Update comment.
6913 * gdbarch.h, gdbarch.c: Re-generate.
6914
2853c33c
AS
69152002-04-07 Andreas Schwab <schwab@suse.de>
6916
6917 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6918 buffer to regcache_collect.
6919
c2169756
AC
69202002-04-06 Andrew Cagney <ac131313@redhat.com>
6921
6922 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6923 * gdbarch.c, gdbarch.h: Re-generate.
6924
25f1b008
AC
69252002-04-06 Andrew Cagney <ac131313@redhat.com>
6926
6927 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6928 declaration. Fix -Werror.
6929
59263426
DJ
69302002-04-05 Daniel Jacobowitz <drow@mvista.com>
6931
6932 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6933 * gdbarch.c: Regenerate.
6934
f5db4da3
MS
69352002-04-05 Michael Snyder <msnyder@redhat.com>
6936
80f8a6eb
MS
6937 * breakpoint.c (clear_command): Rewrite middle section to
6938 combine two loops with identical control conditions.
6939 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
6940 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6941
ad3dcc5c
L
69422002-04-05 H.J. Lu (hjl@gnu.org)
6943
6944 * solib-svr4.c (bkpt_names): Add "__start".
6945
f32e7a74
AC
69462002-04-04 Andrew Cagney <ac131313@redhat.com>
6947
6948 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6949 as test for 64 bit target.
6950
8227c0ff
AC
69512002-04-05 Andrew Cagney <ac131313@redhat.com>
6952
6953 * h8500-tdep.c (h8500_write_fp): Delete function.
6954 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6955 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6956 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6958 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6959 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6960 (s390_write_fp):
6961 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6962 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6963 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6964 (d10v_write_fp): Delete function.
6965 * inferior.h (write_fp, generic_target_write_fp): Delete
6966 declarations.
6967 * regcache.c (generic_target_write_fp): Delete function.
6968 (write_fp): Delete function.
6969 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6970 * gdbarch.h, gdbarch.c: Regenerate.
6971 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6972 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6973 (sparc64_write_fp): Delete declaration.
6974 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6975 (h8500_write_fp): Delete declaration.
6976
2757dd86
AC
69772002-04-04 Andrew Cagney <ac131313@redhat.com>
6978
6979 * sparc-tdep.c (sparc64_write_fp): Delete.
6980 (sparc_push_dummy_frame): Replace write_fp call with code to store
6981 the FP directly.
6982 (sparc_gdbarch_init): Do not initialize write_fp.
6983
c69255e1
KB
69842002-04-05 Kevin Buettner <kevinb@redhat.com>
6985
6986 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6987 clause.
6988
ae767bfb
JB
69892002-03-29 Jim Blandy <jimb@redhat.com>
6990
6991 * stack.c (get_selected_block): Add new argument `addr_in_block',
6992 used to return the exact code address we used to select the block,
6993 not just the block.
6994 * blockframe.c (get_frame_block, get_current_block): Same.
6995 * frame.h (get_frame_block, get_current_block,
6996 get_selected_block): Update declarations.
6997 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6998 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6999
84d2ac95
MS
70002002-04-05 Michael Snyder <msnyder@redhat.com>
7001
7002 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7003 warning message.
7004
596aa3bf
JB
70052002-04-05 J. Brobecker <brobecker@gnat.com>
7006
7007 * utils.c (xfullpath): New function.
7008 * defs.h (xfullpath): Add declaration.
7009 * source.c (openp): Use xfullpath in place of gdb_realpath to
7010 avoid resolving the basename part of filenames when the
7011 associated file is a symbolic link. This fixes a potential
7012 inconsistency between the filenames known to GDB and the
7013 filenames it prints in the annotations.
7014 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7015 to be able to match a filename with either the real filename, or
7016 the name of any symbolic link to this file.
7017 (lookup_partial_symtab): Ditto.
7018
c02f5703
MS
70192002-04-04 Michael Snyder <msnyder@redhat.com>
7020
7021 * breakpoint.c: Add support for hardware breakpoints in overlays.
7022 (overlay_events_enabled): New state variable.
7023 (insert_breakpoints): Use overlay_events_enabled to decide
7024 whether to attempt to set a breakpoint at the overlay load addr.
7025 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7026 (remove_breakpoint): Use overlay_events_enabled to decide
7027 whether breakpoints need to be removed from overlay load addr.
7028 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7029 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7030 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7031 disable_overlay_breakpoints): Update overlay_events_enabled.
7032
5fb290d7
DJ
70332002-04-04 Daniel Jacobowitz <drow@mvista.com>
7034
7035 * dwarf2read.c (struct function_range): New.
7036 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7037 (check_cu_functions): New.
7038 (read_file_scope): Initialize global function lists.
7039 Call dwarf_decode_line after processing children.
7040 (read_func_scope): Add to global function list.
7041 (dwarf_decode_lines): Call check_cu_functions everywhere
7042 record_line is called. Call record_line with a linenumber
7043 of 0 to mark sequence ends.
7044
7b3fabf0
ML
70452002-04-04 Michal Ludvig <mludvig@suse.cz>
7046
361d1df0 7047 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7048 change sync with glibc.
7049
bce58c09
JB
70502002-04-03 Jim Blandy <jimb@redhat.com>
7051
7052 * configure.in: Call AC_C_INLINE.
7053 * configure: Regenerated.
361d1df0 7054
2fccf04a
DJ
70552002-04-01 Daniel Jacobowitz <drow@mvista.com>
7056
7057 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7058 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7059
2d1bfe2e
MK
70602002-03-31 Mark Kettenis <kettenis@gnu.org>
7061
a5941fbf
MK
7062 * NEWS: Mention gcore support on FreeBSD/i386.
7063
a90cd31d
MK
7064 * fbsd-proc.c: New file.
7065 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7066 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7067
2d1bfe2e
MK
7068 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7069 while statement.
7070
9eb6e5a1
JB
70712002-03-29 Jim Blandy <jimb@redhat.com>
7072
7073 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7074 unescaped newlines in string literals, but newer ones don't. So
7075 escape them.
7076
f02df580
MS
70772002-03-26 Michael Snyder <msnyder@redhat.com>
7078 Andrew Cagney <cagney@redhat.com>
7079
361d1df0 7080 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7081 restore file to memory.
7082 * cli/cli-dump.h: New file.
7083 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7084 * NEWS: Mention new commands.
f02df580 7085
109f874e
MS
70862002-03-28 Michael Snyder <msnyder@redhat.com>
7087
7088 * symfile.c (symbol_file_add): Move test for null symbols to later.
7089
520f6ade
AC
70902002-03-27 Andrew Cagney <ac131313@redhat.com>
7091
7092 From veksler at il.ibm.com:
7093 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7094 the xstrduped original path.
7095 Fix PR gdb/417.
7096
d4654627
MS
70972002-03-27 Michael Snyder <msnyder@redhat.com>
7098
7099 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7100 * infcmd.c (_initialize_infcmd): Ditto.
7101 * language.c (_initialize_language): Ditto.
7102 * symfile.c (_initialize_symfile): Ditto.
7103 * top.c (_init_main): Ditto.
7104 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7105
6be8bc0c
EZ
71062002-03-27 Elena Zannoni <ezannoni@redhat.com>
7107
7108 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7109 vector registers handling.
7110 (skip_prologue): Handle new AltiVec instructions. Fill in new
7111 fields of frame data.
7112 (frame_get_saved_regs): Fill in information for AltiVec registers.
7113
12af6855
JB
71142002-03-27 Jim Blandy <jimb@redhat.com>
7115
7116 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7117 a function; leave this macro here to invoke that function.
7118 (symbol_init_mangled_name): Declaration for that function.
7119 * symtab.c (symbol_init_mangled_name): New function.
7120
dc672865
AC
71212002-03-27 Andrew Cagney <ac131313@redhat.com>
7122
7123 * valarith.c: Replace strerror with safe_strerror.
7124 * tracepoint.c: Ditto.
7125 * lin-lwp.c: Ditto.
7126 * go32-nat.c: Ditto.
7127 * inflow.c: Ditto.
7128 * gnu-nat.c: Ditto.
7129
d96429cd
AS
71302002-03-27 Andreas Schwab <schwab@suse.de>
7131
7132 * event-top.c (command_line_handler): Remove useless if.
7133
7e336ba1
AJ
71342002-03-27 Andreas Jaeger <aj@suse.de>
7135
7136 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7137 comment.
7138
de220d0f
ML
71392002-03-27 Michal Ludvig <mludvig@suse.cz>
7140
7141 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7142 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7143 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7144 (x86_64_linux_dr_get_status, supply_gregset),
7145 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7146 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7147 (x86_64_register_info_table): Add.
7148 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7149 (x86_64_register_raw_size, x86_64_register_virtual_type),
7150 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7151 general x86_64_register_info_table.
7152 (i386_gdbarch_init): gdbarch_register_bytes is now set
7153 dynamicaly during initialization.
7154 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7155 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7156
0e98d0a7
DJ
71572002-03-27 Daniel Jacobowitz <drow@mvista.com>
7158
7159 * gdbserver/server.c (main): Call target_signal_to_host_p
7160 and target_signal_to_host on signals received from the remote.
7161 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7162 target_signal_from_host on signals sent to the remote.
7163 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7164 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7165
3130066b
DJ
71662002-03-27 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * signals/signals.c: Include "server.h" in gdbserver build.
7169 (target_signal_from_name): Don't use STREQ.
7170 (_initialize_signals): Likewise. Don't include function in
7171 gdbserver build.
7172
9aedf4f4
DJ
71732002-03-27 Daniel Jacobowitz <drow@mvista.com>
7174
7175 * signals.c: Moved to...
7176 * signals/signals.c: Here.
7e336ba1 7177 * Makefile (signals.o): Update.
9aedf4f4 7178
3fa41cdb
JL
71792002-03-26 Jeff Law (law@redhat.com)
7180
7181 * somread.c (som_symtab_read): Remove some commented out code and
7182 updated related comments. Do not set the minimal symbol table to
7183 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7184 in a dynamic executable.
7185 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7186 where we are unable to find the minimal symbol for the given
7187 PC value.
7188
ee677e8d
MS
71892002-03-25 Jeff Law (law@redhat.com)
7190
7191 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7192
e76e1718
ML
71932002-03-25 Michal Ludvig <mludvig@suse.cz>
7194
7195 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7196
18a642a1
AC
71972002-03-23 Andrew Cagney <ac131313@redhat.com>
7198
7199 * command.h: Update copyright.
7200 (struct cmd_list_element): Replace definition with opaque
7201 declaration.
7202 (enum cmd_types): Document that it will eventually be moved to
7203 cli/cli-decode.h
7204 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7205 (MALLOCED_REPLACEMENT): Delete macro.
7206 * Makefile.in (cli_decode_h): Add $(command_h).
7207 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7208 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7209 * completer.c: Include "cli/cli-decode.h".
7210 * maint.c: Include "cli/cli-decode.h".
7211 * cli/cli-decode.h: Include "command.h".
7212 (enum command_class): Delete.
7213 (enum cmd_types): Comment out.
7214 (enum cmd_auto_boolean): Delete.
7215 (enum var_types): Delete.
7216
b2875cc0
AC
72172002-03-23 Andrew Cagney <ac131313@redhat.com>
7218
7219 * cli/cli-decode.c: Include "gdb_assert.h".
7220 (add_set_or_show_cmd): New static function.
7221 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7222 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7223 all fields, such as func, from the set command.
7224
3b45974e
AC
72252002-03-23 Andrew Cagney <ac131313@redhat.com>
7226
7227 * MAINTAINERS (sh-elf): Change warning flag to -w.
7228
823ca731
AC
72292002-03-23 Andrew Cagney <cagney@redhat.com>
7230
7231 * defs.h (error): Add printf format attribute.
7232 * thread-db.c (thread_from_lwp): Fix error format string.
7233 * stack.c (parse_frame_specification): Ditto.
7234 * cli/cli-decode.c (undef_cmd_error): Ditto.
7235 * scm-lang.c (scm_lookup_name): Ditto.
7236 * tracepoint.c (trace_error): Ditto.
7237 * remote-utils.c (usage): Ditto.
7238 * remote.c (compare_sections_command): Ditto.
7239 Fix PR gdb/328.
7240
0e101458
AC
72412002-03-22 Andrew Cagney <ac131313@redhat.com>
7242
7243 * gdbtypes.c (append_composite_type_field): New function.
7244 (init_composite_type): New function.
7245 * gdbtypes.h (append_composite_type_field): Declare.
7246 (init_composite_type): Ditto.
7247
8e0662df
EZ
72482002-03-22 Elena Zannoni <ezannoni@redhat.com>
7249
7250 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7251 function.
8e0662df
EZ
7252 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7253 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7254 structure returning convention for SYSV ABI case, but not
7255 for GNU/Linux, FreeBSD, or NetBSD.
7256
3121eff0
DJ
72572002-03-22 Daniel Jacobowitz <drow@mvista.com>
7258
7259 * symtab.h (lookup_block_symbol): Add mangled_name argument
7260 to prototype.
7261
7262 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7263 with new mangled_name argument.
7264 * linespec.c (decode_line_1): Likewise.
7265 * valops (value_of_this): Likewise.
7266 * symtab.c (lookup_transparent_type): Likewise.
7267 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7268 (lookup_symbol): If we are given a mangled name, pass it down
7269 to lookup_symbol_aux.
7270 (lookup_block_symbol): If we are given a mangled name to check
7271 against, only return symbols which match it.
7272
349b409f
CF
72732002-03-22 Christopher Faylor <cgf@redhat.com>
7274
7275 * win32-nat.c (child_create_inferior): Check for proper shell to use
7276 here, in case the user changes it on the fly.
7277 (_initialize_inftarg): Remove shell path considerations.
7278
2a873819
EZ
72792002-03-21 Elena Zannoni <ezannoni@redhat.com>
7280
7281 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7282 for gdbarch_max_register_raw_size and max_register_virtual_size.
7283 Adjust copyright year.
7284
a1b9830c
DJ
72852002-03-21 Daniel Jacobowitz <drow@mvista.com>
7286
7287 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7288 in a function to cover the entire beginning of the function
7289 as well if it does not already.
7290
8b5790f2
TR
72912002-03-21 Tom Rix <trix@redhat.com>
7292
7293 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7294 (rs6000_ptrace64): Renamed from ptrace64.
7295
bdbe5747
MH
72962002-03-20 Martin M. Hunt <hunt@redhat.com>
7297
7298 * gdbserver/remote-utils.c (remote_open): Don't call
7299 getprotobyname, we're all using TCP here so just use
7300 IPPROTO_TCP.
7e336ba1 7301 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7302
73032002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7304
bdbe5747
MH
7305 * regcache.c (_initialize_regcache): No need to call
7306 build_regcache() at this time; it gets called whenever
7307 the gdbarch changes.
7308
7781cd62
DB
73092002-03-20 David O'Brien <obrien@FreeBSD.org>
7310
7311 * sparc-nat.c: Include sys/param.h where possible.
7312
f65ca430
DJ
73132002-03-20 Daniel Jacobowitz <drow@mvista.com>
7314
7315 Fix PR gdb/422.
7316 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7317 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7318 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7319 complex types.
7320 * stabsread.c (rs6000_builtin_type): Likewise.
7321 (read_sun_floating_type): Likewise.
7322
0c867556
PS
73232002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7324
7325 * stabsread.c (read_member_functions): Remove skip code for duplicate
7326 constructor/destructor methods. Use standard parsing for these
7327 methods and just do not chain them to the list of methods after
7328 parsing.
7329
12b9c64f
AO
73302002-03-19 Alexandre Oliva <aoliva@redhat.com>
7331
7332 * coffread.c: Remove redundant static declarations. Replace
7333 occurrences of `PTR' with `void *'.
7334 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7335 * top.h (quit_cover): Likewise.
7336 * defs.h (catch_errors): Likewise.
7337
349c5d5f
AC
73382002-03-18 Andrew Cagney <ac131313@redhat.com>
7339
7340 * defs.h (XMALLOC): Define.
7341 * gdb-events.sh (XMALLOC): Delete macro.
7342 * gdb-events.c, gdb-events.h: Regenerate.
7343 * gdbarch.sh (XMALLOC): Delete macro.
7344 * gdbarch.c: Regenerate.
7345 * serial.c (XMALLOC): Delete macro.
7346 * ui-file.c (XMALLOC): Ditto.
7347 * ser-unix.h (XMALLOC): Ditto.
7348 * sh-tdep.c (XMALLOC): Ditto.
7349 * ui-out.c (XMALLOC): Ditto.
7350 * utils.c (XMALLOC): Ditto.
7351 * i386-tdep.c (XMALLOC): Ditto.
7352 * gdb-events.c (XMALLOC): Ditto.
7353 * d10v-tdep.c (XMALLOC): Ditto.
7354 * cli-out.c (XMALLOC): Ditto.
7355
7356 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7357 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7358 * ui-file.c, ui-out.c: Ditto.
7359
7d0766f3
AC
73602002-03-18 Andrew Cagney <ac131313@redhat.com>
7361
7362 * command.h (struct cmd_list_element): Add field context.
7363 (set_cmd_context, get_cmd_context): Declare.
7364 * cli/cli-decode.h: Ditto.
7365 * cli/cli-decode.c (get_cmd_context): New function.
7366 (set_cmd_context): New function.
7367 (add_cmd): Initialize context.
7368 Part of fixing PR gdb/145 and PR gdb/146.
7369
5913bcb0
AC
73702002-03-17 Andrew Cagney <ac131313@redhat.com>
7371
1868c04e
AC
7372 * cli/cli-decode.c (cmd_type): New function.
7373 * command.h (cmd_type): Declare.
7374 * infrun.c (set_schedlock_func): Call function cmd_type.
7375 * kod.c (kod_set_os): Call cmd_type.
7376 * cris-tdep.c (cris_version_update): Use function cmd_type.
7377 (cris_mode_update, cris_abi_update): Ditto.
7378
5913bcb0
AC
7379 * command.h: (execute_cmd_post_hook): Declare.
7380 (execute_cmd_pre_hook): Declare.
7381 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7382 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7383 functions. Execute pre/post hook while ensuring that afterwords
7384 hook_in is cleared.
7385 * top.c (execute_command): Use execute_cmd_post_hook, and
7386 execute_cmd_pre_hook to execute pre/post commands.
7387 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7388 hook_stop_stub.
7389 (hook_stop_stub): Call execute_cmd_pre_hook.
7390
b51450c9
AC
73912002-03-17 Andrew Cagney <ac131313@redhat.com>
7392
7393 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7394 set'' and this leads to a core dump. Move xstrdup of
7395 operating_system to after check that it is not NULL.
7396
f66c9f11
AC
73972002-03-17 Andrew Cagney <ac131313@redhat.com>
7398
8e694ecf
AC
7399 * kod.c (kod_set_os): Remove unnecessary check that
7400 ``command->type'' is set_cmd.
7401
f66c9f11
AC
7402 * valprint.c (set_input_radix): Use input_radix.
7403 (set_output_radix): Use output_radix.
7404 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7405 isn't reverted.
7406
9d01611c
AC
74072002-03-16 Andrew Cagney <ac131313@redhat.com>
7408
7409 * value.h (struct value): Delete field ``substring_addr''. Change
7410 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
7411 force_core_addr_align and force_pointer_aligh.
7412
7413 * value.h (struct value): Fix typo in above change.
9d01611c 7414
4156bb53
PS
74152002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7416
7417 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7418 to fix internal_error from ``maintenance print architecture''.
7419
0e5e3ea6
PS
74202002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7421
7422 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7423 for gcc versions after gcc-2.8.1.
7424
9b013045
PS
74252002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7426
7427 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7428 for method resolution. Restore adjustment of ``this'' pointer after
7429 calling value_struct_elt, which was accidentally removed during the
7430 HP merge.
7431
376c9600
AC
74322002-03-15 Andrew Cagney <ac131313@redhat.com>
7433
7434 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7435 value_of_register.
7436 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7437 get_saved_register.
7438 * value.h (value_of_register): Update.
7439
a4db0f07
RH
74402002-03-14 Richard Henderson <rth@redhat.com>
7441
7442 * configure.in: Detect declaration for canonicalize_file_name.
7443 * utils.c (canonicalize_file_name): Declare, if needed.
7444 (gdb_realpath): Prefer realpath if available and usable.
7445 * config.in, configure: Rebuild.
7446
96383835
RH
74472002-03-14 Richard Henderson <rth@redhat.com>
7448
7449 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7450 a constant array bound.
7451
7452 * MAINTAINERS: Add myself to write-after-approval.
7453
75245b24
MS
74542002-03-14 Michael Snyder <msnyder@redhat.com>
7455
7456 * symfile.c (syms_from_objfile): Return immediately if no syms.
7457 (symbol_file_add): Return immediately if no syms.
7458 (find_sym_fns): Return immediately if no syms.
7459
e641a1ca
ML
74602002-03-13 Michal Ludvig <mludvig@suse.cz>
7461
7462 * gdbserver/remote-util.c (remote_open): Print remote-side's
7463 IP address when remote debugging over the network.
7e336ba1 7464
df08bfec
DB
74652002-03-12 David O'Brien <obrien@FreeBSD.org>
7466
7467 * config/sparc/fbsd.mh: Fix copyright.
7468 * config/sparc/fbsd.mt: Likewise.
7469
9a57864f
RE
74702002-03-11 Richard Earnshaw <rearnsha@arm.com>
7471
7472 * MAINTAINERS: Fix typo in name of gdb warnings option.
7473 (x86-64): Fix formating so that this can be parsed by awk.
7474
dd7bf85e
DJ
74752002-03-10 Daniel Jacobowitz <drow@mvista.com>
7476
7477 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7478 * defs.h: Include "gdb/signals.h".
7479 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7480
33a0a2ac
ML
74812002-03-10 Michal Ludvig <mludvig@suse.cz>
7482
7483 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 7484 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
7485 from x86-64-tdep.h
7486
dd824b04
DJ
74872002-03-10 Daniel Jacobowitz <drow@mvista.com>
7488 Don Howard <dhoward@redhat.com>
7489
7490 * mips-tdep.c (ST0_FR): Define.
7491 (mips2_fp_compat): New function, temporarily disabled.
7492 (mips_read_fp_register_single): New function.
7493 (mips_read_fp_register_double): New function.
7494 (mips_print_register): Use them.
7495 (do_fp_register_row): Likewise.
7496
6a41ff59
AC
74972002-03-09 Andrew Cagney <ac131313@redhat.com>
7498
7499 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7500 approval''.
7501
4ea09c10
PS
75022002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7503
7504 * stabsread.c (read_member_functions): Fix is_stub test for
7505 static member functions, improve comment.
7506
6ccc741d
RE
75072002-03-07 Richard Earnshaw <rearnsha@arm.com>
7508
7509 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7510 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7511 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7512 commands that set boolean values.
7513 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7514 (arm_rdi_resume): Always initialize PC.
7515 (arm_rdi_open): Don't use rslt as a boolean.
7516 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7517 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7518 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7519 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7520
438013df
AO
75212002-03-06 Alexandre Oliva <aoliva@redhat.com>
7522
7523 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7524 * configure: Rebuilt.
7525
70ed8774
SC
75262002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7527
7528 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7529 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7530
5ba2abeb
AC
75312002-03-06 Andrew Cagney <ac131313@redhat.com>
7532
7533 * cli/cli-decode.c (set_cmd_completer): New function.
7534 * command.h (set_cmd_completer): Declare.
7535 * cli/cli-decode.h (set_cmd_completer): Ditto.
7536
7537 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7538 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7539 * win32-nat.c (_initialize_inftarg): Ditto.
7540 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7541 * proc-api.c (_initialize_proc_api): Ditto.
7542 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7543 * source.c (_initialize_source): Ditto.
7544 * exec.c (_initialize_exec): Ditto.
7545 * solib.c (_initialize_solib): Ditto.
7546 * top.c (init_main): Ditto.
7547 * tracepoint.c (_initialize_tracepoint): Ditto.
7548 * symfile.c (_initialize_symfile): Ditto.
7549 * printcmd.c (_initialize_printcmd): Ditto.
7550 * infcmd.c (_initialize_infcmd): Ditto.
7551 * corefile.c (_initialize_core): Ditto.
7552
f779ca99
AC
75532002-03-05 Andrew Cagney <ac131313@redhat.com>
7554
7555 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7556
01a3934b
AC
75572002-03-05 Andrew Cagney <ac131313@redhat.com>
7558
7559 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7560
37057839
AC
75612002-03-05 Andrew Cagney <ac131313@redhat.com>
7562
7563 * NEWS: Update headings, 5.2 has branched.
7564
c6ecbae5
DJ
75652002-03-04 Daniel Jacobowitz <drow@mvista.com>
7566
7567 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7568 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7569 (register_addr, REGISTER_RAW_SIZE): Likewise.
7570 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7571 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7572
e9f30c21
ML
75732002-03-03 Michal Ludvig <mludvig@suse.cz>
7574
7575 * MAINTAINERS (x86-64): Add myself.
7576 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7577 changed value_ptr -> struct value *
7578
54394ac3
DB
75792002-03-01 David O'Brien <obrien@FreeBSD.org>
7580
7581 * configure.host (sparc64-*-freebsd): Add.
7582 * configure.tgt: Likewise.
7583 * config/sparc/fbsd.mh: New file.
7584 * config/sparc/fbsd.mt: Likewise.
7585 * config/sparc/nm-fbsd.h: Likewise.
7586 * config/sparc/tm-fbsd.h: Likewise.
7587
bfe95955
DJ
75882002-03-01 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7591 regformats/reg-s390x.dat.
7592
f33c6cbf
AC
75932002-03-01 Andrew Cagney <ac131313@redhat.com>
7594
7595 * utils.c: Add FIXME explaining true/false problem.
7596
5ecaa7dd
AC
75972002-02-28 Andrew Cagney <ac131313@redhat.com>
7598
7599 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7600
2a251cc2
MC
76012002-02-28 Michael Chastain <mec@shout.net>
7602
7603 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7604
6a8031a3 76052002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
7606
7607 * gdbserver/linux-s390-low.c: New file.
7608 * regformats/reg-s390.dat: New file.
7609 * regformats/reg-s390x.dat: New file.
7610 * gdbserver/configure.srv: Add S/390.
7611 * gdbserver/Makefile.in: Add S/390.
7612 * configure.tgt: Enable gdbserver for S/390.
7613
ac469903
EZ
76142002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7615
7616 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7617 first line of the doc string for "info dos", except at the end of
7618 the sentence, since the short help stops at the first period.
7619
985cb1a3
JM
76202002-02-28 Jason Merrill <jason@redhat.com>
7621
7622 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7623
c570663e
FF
76242002-02-27 Fred Fish <fnf@redhat.com>
7625
7626 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7627 comment (dumy -> dummy).
7628
43630227
PS
76292002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7630
7631 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7632
b84911e8
RB
76332002-02-27 Rodney Brown <rbrown64@csc.com.au>
7634
7635 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7636
58caa3dc
DJ
76372002-02-27 Daniel Jacobowitz <drow@mvista.com>
7638
7639 * gdbserver/acconfig.h: New file.
7640 * gdbserver/i387-fp.c: New file.
7641 * gdbserver/i387-fp.h: New file.
7642 * gdbserver/linux-x86-64.c: New file.
7643 * regformats/reg-x86-64.dat: New file.
7644 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7645 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7646 * gdbserver/configure.in: Add support for regsets.
7647 * gdbserver/config.in: Regenerate.
7648 * gdbserver/configure: Regenerate.
7649 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7650 * gdbserver/linux-low.h: New file.
7651 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7652 for regsets.
7653 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7654 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7655 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7656 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7657 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7658 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7659 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7660 "i387-fp.h". Add PTRACE_GETREGS and friends.
7661 * gdbserver/regcache.c (supply_register): New function.
7662 (supply_register_by_name): New function.
7663 (collect_register): New function.
7664 (collect_register_by_name): New function.
7665
93652174
DJ
76662002-02-27 Daniel Jacobowitz <drow@mvista.com>
7667
7668 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7669 (config.status): Add configure.srv dependency.
7670 (server_h): Add config.h dependency.
7671
a02e4a61
DJ
76722002-02-27 Daniel Jacobowitz <drow@mvista.com>
7673
7674 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7675 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7676 * gdbserver/configure.srv: Change i386-*-linux* to use
7677 reg-i386-linux.o.
7678
ce0eebec
AC
76792002-02-26 Andrew Cagney <ac131313@redhat.com>
7680
7681 * x86-64-tdep.c: Re-indent. Update copyright date.
7682
82dbc5f7
AC
76832002-02-26 Andrew Cagney <ac131313@redhat.com>
7684
7685 From Michal Ludvig <mludvig@suse.cz>:
7686 * x86-64-tdep.c (value.h): Delete.
7687 (gdb_assert.h): Include.
7688 (x86_64_register_convert_to_virtual,
7689 x86_64_register_convert_to_raw ): Add check which lets only
7690 floating-point values to be converted.
7691 (value_push): Delete.
7692 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7693 (i386_gdbarch_init): Number of register_bytes fixed.
7694
e4621584
AC
76952002-02-26 Andrew Cagney <ac131313@redhat.com>
7696
7697 * MAINTAINERS: Add x86-64 target.
7698
81a9a963
AC
76992002-02-26 Andrew Cagney <ac131313@redhat.com>
7700
7701 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7702 * osfsolib.c (solib_map_sections): Ditto.
7703 * irix5-nat.c (solib_map_sections): Ditto.
7704 * corelow.c (gdb_check_format): Ditto.
7705 * symfile.c (symfile_bfd_open): Ditto.
7706 * solib.c (solib_map_sections): Ditto.
7707 Fix PR gdb/354.
7e336ba1 7708
0f017ab9
AC
77092002-02-26 Andrew Cagney <ac131313@redhat.com>
7710
7711 * remote.c (_initialize_remote): By default, disable ``e'' and
7712 ``E'' step out-of-range packets.
7713
75738c29
AS
77142002-02-26 Andreas Schwab <schwab@suse.de>
7715
7716 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7717 m68k_linux_frame_saved_pc.
7718 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7719 in_sigtramp.
7720 (SIGCONTEXT_PC_OFFSET): Remove.
7721 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7722 m68k_linux_sigtramp_saved_pc): New functions.
7723 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7724 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7725 (UCONTEXT_PC_OFFSET): Define.
7726 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7727 non-RT and RT signal trampolines.
7728
7e8ed687
RE
77292002-02-26 Richard Earnshaw <rearnsha@arm.com>
7730
7731 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7732 (TARGET_NBPG, STACK_END_ADDR): Delete
7733 (VARIABLES_INSIDE_BLOCK): Delete.
7734
6972bc8b
AC
77352002-02-25 Andrew Cagney <ac131313@redhat.com>
7736
7737 * utils.c (perror_with_name): Make string parameter constant.
7738 (print_sys_errmsg): Ditto.
7739 (query): Ditto.
7740 * defs.h (perror_with_name): Update.
7741 (print_sys_errmsg): Update.
7742 (query): Update.
7743
aa32f823
DJ
77442002-02-25 Daniel Jacobowitz <drow@mvista.com>
7745
7746 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7747 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7748
19caaa45
PS
77492002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7750
7751 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7752 if it already matches the current architecture from the exec file.
7753 Include arch-utils.h for gdbarch_info_init prototype.
7754 * Makefile.in (rs6000-nat.o): Update dependencies.
7755
d951901f
EZ
77562002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7757
7758 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7759 list of exported variables.
7760
7ea81414
DJ
77612002-02-24 Daniel Jacobowitz <drow@mvista.com>
7762
7763 * gdbserver/configure.srv: New file.
7764 * gdbserver/configure.in: Use configure.srv instead
7765 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7766 from it.
7767 * gdbserver/configure: Regenerated.
7768 * gdbserver/terminal.h: New file.
7769 * gdbserver/Makefile.in: Update for configure changes. Remove
7770 more unneeded include paths.
7771
080fe24b
AC
77722002-02-24 Andrew Cagney <ac131313@redhat.com>
7773
7774 From wiz at danbala:
7775 * config/sparc/tm-sp64.h: Fix grammar and typos.
7776 Fix PR gdb/287.
7777
8605d56e
AC
77782002-02-24 Andrew Cagney <ac131313@redhat.com>
7779
7780 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
7781 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7782 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7783 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
7784 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7785 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7786 * s390-tdep.c: Ditto.
92362027
AC
7787 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7788 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7789 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7790 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7791 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7792 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7793 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7794 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7795 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7796 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 7797 Fix PR gdb/378.
7e336ba1 7798
8ed32cc0
AC
77992002-02-23 Andrew Cagney <ac131313@redhat.com>
7800
a3007b6f
AC
7801 * lin-thread.c: Delete file.
7802 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7803 to gdb_proc_service.h.
7804 * configure: Re-generate.
7805
50a9e2f1
AC
7806 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7807 * serial.c (serial_open): Delete check for "ocd".
7808 Fix PR gdb/349.
7809
8b6e7932
AC
7810 * Makefile.in (linux-thread.o): Delete target.
7811 * linux-thread.c: Delete file.
7812
d155c46b
AC
7813 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7814 renamed SH files to be consistent.
7815
8ed32cc0
AC
7816 * symtab.c (sort_search_symbols): Use xfree.
7817
0e18d038
RE
78182002-02-23 Richard Earnshaw <rearnsha@arm.com>
7819
7820 * arm-linux-tdep.c (arm_linux_init_abi): Register
7821 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7822 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7823 definition with undef, since we don't want the sysvr4 definition.
7824 (SKIP_TRAMPOLINE_CODE): Likewise.
7825
27aac7ff
AC
78262002-02-23 Andrew Cagney <ac131313@redhat.com>
7827
7828 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7829
7830 * configure.in: (AC_CHECK_FUNCS) Added test for
7831 canonicalize_file_name Regenerated.
7832 * config.in, configure: Regenerated.
7833 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7834 defined use canonicalize_file_name.
7e336ba1 7835
65a6e0ee
MC
78362002-02-23 Michael Chastain <mec@shout.net>
7837
7838 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7839
47b95330
AC
78402002-02-23 Andrew Cagney <ac131313@redhat.com>
7841
7842 * README: Remove references to cygnus.com.
7843 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7844 dot com'' form. Remove references to cygnus.com and sourceware.
7845
696f451b
AC
78462002-02-23 Andrew Cagney <ac131313@redhat.com>
7847
7848 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7849 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7850 1003.1-2001 no longer allows "head -1".
7851 * gdb/Makefile.in (version.c): Likewise.
7852 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7853 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7854 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7855
bbaca940
AC
78562002-02-23 Andrew Cagney <ac131313@redhat.com>
7857
7858 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7859 * command.h (cmd_cfunc_eq): Declare.
7860 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7861
7862 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7863 ``struct cmd_list_element *''.
7864 * cli/cli-cmds.c (is_complete_command): Update. Use
7865 cmd_cfunc_eq.
7866 * top.c (execute_command): Pass the command to
7867 is_complete_command.
7868 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7869
b8b8b047
AC
78702002-02-23 Andrew Cagney <ac131313@redhat.com>
7871
7872 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7873 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7874 architecture defines.
7875 * s390-tdep.c (s390_gdbarch_init): Likewise.
7876
19d3fc80
RE
78772002-02-23 Richard Earnshaw <rearnsha@arm.com>
7878
7879 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7880 (arm_linux_push_arguments): Likewise.
7881 (arm_linux_init_abi): Register them. Also register linux-specific
7882 call_dummy_words.
7883 (find_minsym_and_objfile): Use strcmp, not STREQ.
7884 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7885 (arm_linux_call_dummy_words): Delete declaration.
7886 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7887 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7888 declarations.
7889 (LOWEST_PC): Delete.
7890
3ab13650
PS
78912002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7892
7893 * maint.c (print_section_info): Do not prepend `0x' to filepos
7894 output, it will be handled by local_hex_string_custom.
7895
19d3fc80 78962002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
7897
7898 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7899 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7900 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7901
d85a5daf
JB
79022002-02-22 Jim Blandy <jimb@redhat.com>
7903
7904 Indicate that the bcache functions don't change the strings
7905 they're passed.
7906 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7907 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7908
eeb25b8a
PM
79092002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7910
7911 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7912
6badb179
CF
79132002-02-21 Christopher Faylor <cgf@redhat.com>
7914
7915 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7916 find the complete path to a loaded DLL.
7917
e8717518
FF
79182002-02-21 Fred Fish <fnf@redhat.com>
7919
7920 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7921 that marks the end of the range of a function, enter a line number
7922 entry that has a line number of zero and a PC offset that matches
7923 the end of the function. This starts a range of PC's for which no
7924 line number information is known.
7925 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7926 PC's for which no line number info is found (line number is zero)
7927 then we didn't find any valid line information.
7928 * symtab.h: Document use of zero line number entry.
7929
9abe5450
EZ
79302002-02-21 Elena Zannoni <ezannoni@redhat.com>
7931
7932 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7933 (have_ptrace_getvrregs): Define for run time checks.
7934 (gdb_vrregset_t): New type for Altivec register handling.
7935 (fetch_register, store_register): Fetch/store altivec register
7936 when needed.
7937 (fetch_altivec_register, store_altivec_register): New functions.
7938 (supply_vrregset, fill_vrregset): New functions.
7939 (fetch_altivec_registers, store_altivec_registers): New functions.
7940 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7941 registers as well.
7942
aaa38bb5
AJ
79432002-02-21 Jiri Smid <smid@suse.cz>
7944
7945 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7946
b34db576
RE
79472002-02-21 Richard Earnshaw <rearnsha@arm.com>
7948
7949 * Makefile.in (armnbsd-nat.o): Update dependencies.
7950 * armnbsd-nat.c (supply_gregset): New function. Common code to
7951 supply the integer register set.
7952 (supply_fparegset): New function. Similar for FPA registers.
7953 (fetch_regs, fetch_fp_regs): Use them.
7954 (fetch_core_registers): Likewise.
7955 (fetch_elfcore_registers): New function.
7956 (arm_netbsd_elfcore_fns): New core-file type specification.
7957 (_initialize_arm_netbsd_nat): Register it.
7958
3e56fc4b
RE
79592002-02-21 Richard Earnshaw <rearnsha@arm.com>
7960
7961 * armnbsd-nat.c: Include gdbcore.h.
7962 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7963 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7964 'void' to declaration, to shut up ARI.
7965 (fetch_core_registers): Make static. Rewrite using supply_register.
7966 (arm_netbsd_core_fns): New core-file type specification.
7967 (_initialize_arm_netbsd_nat): New function.
7968
097f6b0b
CF
79692002-02-21 Christopher Faylor <cgf@redhat.com>
7970
7971 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7972 value.
7973
c914e0cc
CF
79742002-02-20 Christopher Faylor <cgf@redhat.com>
7975
7976 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7977 fails.
7978
385fa495
DJ
79792002-02-20 Daniel Jacobowitz <drow@mvista.com>
7980
7981 * jv-exp.y (parse_number): Change type of implicit longs
7982 to builtin_type_uint64.
7983
e5f1222d
DJ
79842002-02-20 Daniel Jacobowitz <drow@mvista.com>
7985
7986 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7987 to be an integer instead of a `union wait'.
7988
75c9abc6
DJ
79892002-02-20 Daniel Jacobowitz <drow@mvista.com>
7990
7991 * mips-linux-nat.c: Call the operating system GNU/Linux.
7992 * mips-linux-tdep.c: Likewise.
7993 * mips-tdep.c: Likewise.
7994
551792a5
DJ
79952002-02-20 Daniel Jacobowitz <drow@mvista.com>
7996
7997 Fix PR gdb/265.
7998 * jv-exp.y (parse_number): Handle 64-bit integers.
7999
ee6e2b82
DJ
80002002-02-20 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8003 AC_STDC_HEADERS to AC_HEADER_STDC.
8004 * gdbserver/configure: Regenerated.
8005
a48442a0
RE
80062002-02-20 Richard Earnshaw <rearnsha@arm.com>
8007
8008 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8009 is defined.
8010 * sparc-tdep.c (get_longjmp_target): Likewise.
8011
fe419ffc
RE
80122002-02-20 Richard Earnshaw <rearnsha@arm.com>
8013
8014 * News: Add news about ARM and Multi-arch. Mention the new target
8015 arm*-*-netbsd*.
8016
5832ed7e
JB
80172002-02-19 Jim Blandy <jimb@redhat.com>
8018
8019 * stabsread.c (error_type_complaint): Improve error message.
8020
84563040
DJ
80212002-02-19 Daniel Jacobowitz <drow@mvista.com>
8022
8023 * gdbserver/README: Update documentation.
8024 * gdbserver/configure.in: Update configury to match documentation.
8025 * gdbserver/Makefile.in: Likewise.
8026 * gdbserver/configure: Regenerated.
8027 * gdbserver/aclocal.m4: New file, generated by aclocal.
8028 * gdbserver/config.in: New file, generated by autoheader.
8029
375fd65b
RE
80302002-02-19 Richard Earnshaw <rearnsha@arm.com>
8031
8032 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8033 armnbsd-nat.c.
8034
08216dd7
RE
80352002-02-19 Richard Earnshaw <rearnsha@arm.com>
8036
8037 * arm-tdep.h (enum arm_float_model): New enum.
8038 (struct gdbarch_tdep): Add fp_model.
8039 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8040 up floating-point conversions until we know the floating-point model
8041 in use by the inferior. Don't complain about being unable to
8042 determine the ABI of the inferior when we don't have one.
8043 (arm_extract_return_value): Support different floating-point models.
8044 (arm_store_return_value): Likewise.
aaa38bb5 8045 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8046 ARM_FLOAT_SOFT.
8047 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8048
65d6d66a
PS
80492002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8050
8051 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8052 of ``current_gdbarch''.
8053
47221191
RE
80542002-02-19 Richard Earnshaw <rearnsha@arm.com>
8055
8056 * armnbsd-nat.c : ANSIfy all function declarations.
8057 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8058 (fetch_inferior_registers): Re-implement in terms of above.
8059 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8060 (store_inferior_registers): Re-implement in terms of above.
8061
fdf39c9a
RE
80622002-02-19 Richard Earnshaw <rearnsha@arm.com>
8063
aaa38bb5 8064 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8065 kernel.
8066 * arm-linux-tdep.c: Likewise.
8067 * config/arm/tm-linux.h: Likewise.
8068
93247f88
RE
80692002-02-19 Richard Earnshaw <rearnsha@arm.com>
8070
8071 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8072 * config/arm/nbsd.mt (TM_FILE): Delete.
8073 * config/arm/tm-nbsd.h: Delete.
8074
d7b486e7
RE
80752002-02-19 Richard Earnshaw <rearnsha@arm.com>
8076
8077 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8078 Initialize CALL_DUMMY_LENGTH.
8079
41d39a95
RE
80802002-02-19 Richard Earnshaw <rearnsha@arm.com>
8081
8082 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8083 function.
8084 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8085 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8086 defines one thing and that is incorrect for this port.
8087 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8088
e1195560
PM
80892002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8090
8091 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8092
c1748f97
PM
80932002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8094
8095 * win32-nat.c (display_selector): New function. Displays information
8096 about the information returned by GetThreadSelectorEntry API function.
8097 (display_selectors): New function. Displays the infomation of
8098 the selector given as argument, or of CS, DS ans FS selectors
8099 if no argument is given.
8100 ( _initialize_inftarg): Add "w32" as info prefix command.
8101 Add "info w32 selector" as command calling display_selectors.
8102
e41e6bbf
PM
81032002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8104
8105 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8106 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8107 if not defined.
8108
0d3a9f48
RE
81092002-02-18 Richard Earnshaw <rearnsha@arm.com>
8110
8111 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8112
3fb4b924
RE
81132002-02-18 Richard Earnshaw <rearnsha@arm.com>
8114
8115 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8116 (arm_fix_call_dummy): Call it.
8117 (arm_call_dummy_breakpoint_offset): Delete.
8118 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8119 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8120
7f55af32
AC
81212002-02-18 Andrew Cagney <ac131313@redhat.com>
8122
8123 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8124 Default to func_frame_chain_valid.
8125 * gdbarch.h, gdbarch.c: Re-generate.
8126 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8127
05f13b9c
EZ
81282002-02-18 Elena Zannoni <ezannoni@redhat.com>
8129
8130 * ppc-linux-nat.c: Update copyright.
8131 (fetch_register, store_register): Add tid parameter, don't compute
8132 tid here.
8133 (fetch_ppc_registers, store_ppc_registers): Add tid
8134 parameter. Pass it along to callees.
8135 (fetch_inferior_registers, store_inferior_registers): Compute tid
8136 here, and pass it to calleed functions.
8137 (fill_gregset, supply_fpregset): Clean up formatting.
8138
d7afb4c9
RE
81392002-02-18 Richard Earnshaw <rearnsha@arm.com>
8140
8141 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8142 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8143
9df628e0
RE
81442002-02-18 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8147 * gdbarch.c gdbarch.h: Regenerate.
8148 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8149 function.
8150 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8151 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8152 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8153
8154 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8155 * arm-tdep.c (arm_get_longjmp_target): New function.
8156 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8157 this to a positive value register arm_get_longjmp_target as the
8158 longjmp handler.
8159 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8160 (arm_linux_init_abi): Set up longjmp description in tdep.
8161 * armnbsd-nat.c (get_longjmp_target): Delete.
8162 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8163 description in tdep.
8164 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8165 (get_longjmp_target): Delete declaration.
8166 (GET_LONGJMP_TARGET): Delete.
8167 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8168 (GET_LONGJMP_TARGET): Delete.
8169
57bc8964
KB
81702002-02-17 Kevin Buettner <kevinb@redhat.com>
8171
8172 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8173 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8174 of ``current_gdbarch''.
8175
83d31a92
TT
81762002-02-17 Tom Tromey <tromey@redhat.com>
8177
8178 * cli/cli-cmds.c (compare_strings): New function.
8179 (complete_command): Only print each unique item once.
8180 * completer.h (complete_line): Declare.
8181 * completer.c (complete_line): New function.
8182 (line_completion_function): Use it.
8183
17ef5d92
AC
81842002-02-16 Andrew Cagney <ac131313@redhat.com>
8185
8186 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8187 * gdbarch.h, gdbarch.c: Re-generate.
8188
491b8946
DJ
81892002-02-16 Daniel Jacobowitz <drow@mvista.com>
8190
8191 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8192
81932002-02-16 Daniel Jacobowitz <drow@mvista.com>
8194
8195 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8196 * valops.c (value_arg_coerce): Don't take the address of a reference
8197 to convert an argument to a reference.
8198
dfe7f3ac
CF
81992002-02-15 Christopher Faylor <cgf@redhat.com>
8200
8201 * win32-nat.c (get_image_name): New function.
8202 (handle_load_dll): Use get_image_name function.
8203 (get_child_debug_event): Avoid registering debug events until possibly
8204 execed process is started.
8205 (child_create_inferior): Allow invocation via shell so that command
8206 line redirection, etc. works ok.
8207 (_initialize_inftarg): Add new command: "set shell" to control whether
8208 a shell is used to start a process.
8209
1d33e73a
DJ
82102002-02-15 Daniel Jacobowitz <drow@mvista.com>
8211
8212 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8213 instead of find_register_by_number.
8214 (cannot_store_register): Likewise.
8215
48cd0caa
PM
82162002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8217
aaa38bb5 8218 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8219 fprintf_unfiltered (gdb_stderr, ...).
8220
8656e7d8
DJ
82212002-02-15 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * gdbserver/gdbserver.1: Document --attach.
8224
66e810cd
RE
82252002-02-15 Richard Earnshaw <rearnsha@arm.com>
8226
8227 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8228 descriptions.
8229 * arm-tdep.c (arm_default_arm_le_breakpoint)
8230 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8231 (arm_default_thumb_be_breakpoint): New. Initialize them from
8232 traditional breakpoint defines.
8233 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8234 (arm_gdbarch_init): Initialize new breakpoint variables.
8235 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8236 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8237 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8238 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8239 code out to ...
8240 (arm_netbsd_init_abi_common): ... here; new function.
8241 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8242 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8243 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8244 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8245
97e03143
RE
82462002-02-15 Richard Earnshaw <rearnsha@arm.com>
8247
8248 * arm-tdep.h (enum arm_abi): New enum.
8249 (struct gdbarch_tdep): New structure.
8250 (LOWEST_PC): Provide a default.
8251 (arm_gdbarch_register_os_abi): Declare new function.
8252 * arm-tdep.c (arm_abi_names): New array.
8253 (process_note_abi_tag_sections): New function.
8254 (get_elfosabi): New function.
8255 (arm_gdbarch_register_os_abi): New function.
8256 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8257 support for that ABI has been built in, then call the appropriate
8258 configuration routine. Use gdbarch_num_regs() to get the number
8259 of registers.
8260 (arm_dump_tdep): New function.
8261 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8262 place-holder functions.
8263 (_initialize_arm_tdep): Register them.
8264 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8265
8266 * armnbsd-tdep.c: New file.
8267 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8268 * config/arm/nbsd.mt (TDEPFILES): Add it.
8269 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8270
8271 * armnbsd-nat.c: Include regcache.h.
8272 * Makefile.in (armnbsd-nat.o): Update dependency list.
8273
8274 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8275
ad68be46
DJ
82762002-02-14 Daniel Jacobowitz <drow@mvista.com>
8277
8278 * gdbserver/Makefile.in: Fix typos in target rules.
8279
003d6d1d
DJ
82802002-02-14 Daniel Jacobowitz <drow@mvista.com>
8281
aaa38bb5 8282 Fix part of PR gdb/267.
003d6d1d
DJ
8283 * linespec.c (find_methods): Handle constructors specially for now.
8284
6b230f1b
CV
82852002-02-14 Corinna Vinschen <vinschen@redhat.com>
8286
8287 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8288 handling.
8289 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8290 standard_coerce_float_to_double().
8291
1ea98d12
CF
82922002-02-14 Christopher Faylor <cgf@redhat.com>
8293
8294 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8295 GDBINIT_FILENAME.
8296
dd47e6fd
EZ
82972002-02-14 Elena Zannoni <ezannoni@redhat.com>
8298
8299 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8300 find_variant_by_name, because it confuses the multiarch
8301 framework. Return NULL if there isn't an architecture with the
8302 user supplied name, instead of forcing a different one without
8303 recording the change with the multiarch machinery.
8304 (find_variant_by_name): Delete.
8305
d7e39b9e
PS
83062002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8307
8308 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8309 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8310
76e42a4f
MH
83112002-02-13 Martin M. Hunt <hunt@redhat.com>
8312
aaa38bb5 8313 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8314 print_frame_info_listing_hook, set current_source_symtab.
8315
0a30fbc4
DJ
83162002-02-14 Daniel Jacobowitz <drow@mvista.com>
8317
8318 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8319 and remove unused $(INCLUDE_DIR).
8320 Add regcache.c to OBS.
8321 Add generated register protocol files to clean target.
8322 Update dependencies for new objects, obsolete old target code.
8323
8324 * gdbserver/linux-low.c: Remove all platform-specific code to
8325 new files. Remove various dead code. Update to use regcache
8326 functionality.
8327 * gdbserver/remote-utils.c (fromhex): Add return statement
8328 to quiet warning.
8329 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8330 constant.
8331 (input_interrupt): Add integer parameter to match prototype
8332 of a signal handler.
8333 (outreg): Use register_data ().
8334 (prepare_resume_reply): Use gdbserver_expedite_regs.
8335 * gdbserver/server.c (main): Dynamically allocate own_buf because
8336 PBUFSIZ is no longer constant. Use registers_to_string () and
8337 registers_from_string ().
8338 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8339 for error (), fatal (), and warning (). Update definition of
8340 PBUFSIZ to use regcache functionality. Add include guard.
8341 * gdbserver/utils.c (fatal): Add missing ``const''.
8342 (warning): New function.
8343
8344 * regformats/regdat.sh: Include "regcache.h" in generated files.
8345 Provide init_registers () function.
8346 * regformats/regdef.h: Add prototype for set_register_cache ().
8347 Add include guard.
8348
8349 * gdbserver/linux-arm-low.c: New file.
8350 * gdbserver/linux-i386-low.c: New file.
8351 * gdbserver/linux-ia64-low.c: New file.
8352 * gdbserver/linux-m68k-low.c: New file.
8353 * gdbserver/linux-mips-low.c: New file.
8354 * gdbserver/linux-ppc-low.c: New file.
8355 * gdbserver/linux-sh-low.c: New file.
8356
8357 * gdbserver/regcache.c: New file.
8358 * gdbserver/regcache.h: New file.
8359
8360 * gdbserver/low-linux.c: Removed obsolete file.
8361
4cc841d0
DJ
83622002-02-14 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8365 * config/i386/linux.mt: Likewise.
8366 * config/ia64/linux.mt: Likewise.
8367 * config/m68k/linux.mh: Likewise.
8368 * config/powerpc/linux.mh: Likewise.
8369 * config/mips/linux.mt: Likewise.
8370
8371 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8372
8373 * config/i386/i386lynx.mh: Mark gdbserver variables
8374 as (currently) obsolete for this target.
8375 * config/i386/nbsd.mt: Likewise.
8376 * config/i386/nbsdelf.mt: Likewise.
8377 * config/m32r/m32r.mt: Likewise.
8378 * config/m68k/m68klynx.mh: Likewise.
8379 * config/m68k/nbsd.mt: Likewise.
8380 * config/m68k/sun3os4.mh: Likewise.
8381 * config/mips/vr5000.mt: Likewise.
8382 * config/ns32k/nbsd.mt: Likewise.
8383 * config/pa/hppabsd.mh: Likewise.
8384 * config/pa/hppaosf.mh: Likewise.
8385 * config/powerpc/nbsd.mt: Likewise.
8386 * config/rs6000/rs6000lynx.mh: Likewise.
8387 * config/s390/s390.mt: Likewise.
8388 * config/s390/s390x.mt: Likewise.
8389 * config/sparc/sparclynx.mh: Likewise.
8390 * config/sparc/sun4os4.mh: Likewise.
8391 * config/i386/x86-64linux.mt: Likewise.
8392 * config/sparc/linux.mh: Likewise.
8393
a85f51e7
DJ
83942002-02-14 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * configure.tgt: Configure gdbserver only for known working
8397 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8398 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8399 SUBDIRS if it is configured. Update comment for ${nativefile}.
8400 * configure: Regenerated.
8401
65554fef
MS
84022002-02-13 Michael Snyder <msnyder@redhat.com>
8403
670a52db
MS
8404 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8405
6dbdc4a3
MS
8406 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8407 (default_gcore_mach): Just return 0, work around a problem in bfd.
8408 (default_gcore_target): OK to return NULL if exec_bfd is null.
8409 (make_mem_sec): Use a cast, avoid a warning.
8410
8411 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 8412 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
8413 sizeof (host pointer) != sizeof (target pointer)).
8414 (procfs_make_note_section): Avoid overflow in psargs string.
8415
aaa38bb5 8416 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
8417 implementation return an error.
8418
84192002-02-13 Rodney Brown <rbrown64@csc.com.au>
8420
8421 * procfs.c (procfs_make_note_section): Provide a default definition
8422 (for alpha-dec-osf4.0f). Fix typos.
8423
1e4d76e7
EZ
84242002-02-13 Elena Zannoni <ezannoni@redhat.com>
8425
8426 * linux-proc.c: Add include of regcache.h.
8427 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8428
b6d1a1d5
AC
84292002-02-13 Andrew Cagney <ac131313@redhat.com>
8430
8431 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
8432 * memattr.c (create_mem_region): Disallow useless empty region.
8433 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 8434 non-overlapping.
b6d1a1d5 8435
6c6ea35e
MC
84362002-02-13 Michael Chastain <mec@shout.net>
8437
8438 * defs.h: Kill CONST_PTR.
8439 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8440 * c-lang.c (c_builtin_types): Likewise.
8441 * ch-lang.c (ch_builtin_types): Likewise.
8442 * f-lang.c (f_builtin_types): Likewise.
8443 * language.c (unknown_builtin_types): Likewise.
8444 * m2-lang.c (m2_builtin_types): Likewise.
8445 * p-lang.c (pascal_builtin_types): Likewise.
8446 * scm-lang.c (c_builtin_types): Likewise.
8447
3e0b0f48
KS
84482002-02-13 Keith Seitz <keiths@redhat.com>
8449
8450 * arm-tdep.h (arm_get_next_pc): Add declaration.
8451
67255d04
RE
84522002-02-13 Richard Earnshaw <rearnsha@arm.com>
8453
8454 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8455 with other related struct-returning functions.
8456 (arm_extract_struct_value_address): New function.
8457 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8458 initialize float_format, double_format and long_double_format as
8459 appropriate to the endianness of the target.
8460 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8461 (arm_use_struct_convention): Delete declaration.
8462 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8463
079777f6
KS
84642002-02-13 Keith Seitz <keiths@redhat.com>
8465
8466 * defs.h (core_addr_to_string_nz): New function.
8467
34588f23
MK
84682002-02-13 Mark Kettenis <kettenis@gnu.org>
8469
8470 Apply missing bits of 2002-01-15 patch.
8471 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8472 (fill_fpregset): Use i387_fill_fsave.
8473
49b563f9
KS
84742002-02-12 Keith Seitz <keiths@redhat.com>
8475
49b563f9
KS
8476 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8477 (core_addr_to_string_nz): New function.
8478
aeb98c60
RE
84792002-02-11 Richard Earnshaw <rearnsha@arm.com>
8480
8481 * arm-linux-nat.c: Really include arm-tdep.h.
8482 * config/arm/tm-linux.h (struct type, struct value): Declare.
8483
65554fef
MS
84842002-02-11 Michael Snyder <msnyder@redhat.com>
8485
8486 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8487 (gcore section): Ifdef for Solaris and Unixware only.
8488 (procfs_do_thread_registers): Unixware needs one lwpstatus
8489 per thread (not one prstatus or pstatus).
8490 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8491 not over all gdb threads. For unixware, call elfcore_write_pstatus
8492 once before iterating over threads.
8493
34e8f22d
RE
84942002-02-11 Richard Earnshaw <rearnsha@arm.com>
8495
8496 * arm-tdep.h: New file.
8497 * arm-tdep.c: Include arm-tdep.h.
8498 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8499 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8500 (arm_print_float_info, arm_register_type, convert_to_extended)
8501 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8502 (arm_extract_return_value, arm_register_name): Make static.
8503 (arm_software_single_step): Similarly. Fix types in declaration.
8504 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8505 (arm_store_return_value, arm_store_struct_return): New functions.
8506 (arm_gdbarch_init): Register the above functions. Also register
8507 call_dummy_start_offset, sizeof_call_dummy_words,
8508 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8509 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 8510 max_register_virtual_size, register_size. Set up
34e8f22d
RE
8511 prologue_cache.saved_regs here, rather than ...
8512 (_initialize_arm_tdep): ... here.
8513 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8514 declarations.
8515 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8516 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8517 (arm_print_float_info, arm_register_type, convert_to_extended)
8518 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8519 (arm_extract_return_value, arm_register_name): Delete declarations.
8520 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8521 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8522 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8523 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8524 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8525 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8526 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8527 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8528 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8529 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8530 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8531 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8532 interface.
8533 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8534 * remote-rdi.c remote-rdp.c: Likewise.
8535 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8536 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8537 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8538 definition.
8539
8540 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8541 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8542 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8543 from non-ARM_ prefixed definitions.
8544 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8545 all uses of above.
8546 * remote-rdi.c remote-rdp.c: Likewise.
8547 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8548
148754e5
RE
85492002-02-11 Richard Earnshaw <rearnsha@arm.com>
8550
8551 * arm-tdep.c (arm_frameless_function_invocation)
8552 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8553 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8554 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8555 (arm_pop_frame, arm_get_next_pc): Make static.
8556 (arm_gdbarch_init): Register above in gdbarch structure.
8557 (arm_read_fp): Renamed from arm_target_read_fp.
8558 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8559 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8560 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8561 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8562 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8563 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8564 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
8565 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8566 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8567 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8568 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 8569
434d2d4f
DJ
85702002-02-10 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * symtab.c (compare_search_syms): New function.
8573 (sort_search_symbols): New function.
8574 (search_symbols): Sort symbols after searching rather than
8575 before.
8576
55241689
AC
85772002-02-10 Andrew Cagney <ac131313@redhat.com>
8578
8579 * NEWS: Linux -> GNU/Linux.
8580
028c194b
AC
85812002-02-10 Andrew Cagney <ac131313@redhat.com>
8582
8583 * gdbarch.sh: For for level one methods, disallow a definition
8584 when partially multi-arched. Add comments explaining rationale.
8585 * gdbarch.h: Re-generate.
8586
6acf50cd
AC
85872002-02-10 Andrew Cagney <ac131313@redhat.com>
8588
8589 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8590 multi-arch partial.
aaa38bb5 8591
50248794
AC
85922002-02-10 Andrew Cagney <ac131313@redhat.com>
8593
8594 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8595 field. Use diff -u.
8596 * gdbarch.c: Re-generate.
8597
c30e0066
AC
85982002-02-10 Andrew Cagney <ac131313@redhat.com>
8599
9b56c5f3 8600 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
8601 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8602 partial.
8603
6e6d6484
AC
86042002-02-10 Andrew Cagney <ac131313@redhat.com>
8605
8606 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8607 multi-arch partial.
8608 (PUSH_ARGUMENTS): Switch to using predefault.
8609 * gdbarch.c: Regenerate.
8610
c203844d
AC
86112002-02-10 Andrew Cagney <ac131313@redhat.com>
8612
8613 * valops.c (PUSH_ARGUMENTS): Delete definition.
8614 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8615 partial. Default to default_push_arguments.
8616 * gdbarch.h, gdbarch.c: Regenerate.
8617
b5a2688f
AC
86182002-02-09 Andrew Cagney <ac131313@redhat.com>
8619
8620 * defs.h (throw_exception): Rename return_to_top_level. Update
8621 comments.
8622 * utils.c (error_stream, internal_verror, quit): Ditto.
8623 * top.c (throw_exception, catcher): Ditto.
8624 * sparclet-rom.c (sparclet_load): Ditto.
8625 * remote.c (interrupt_query, minitelnet): Ditto.
8626 * remote-sds.c (interrupt_query): Ditto.
8627 * remote-mips.c (mips_error, mips_kill): Ditto.
8628 * ocd.c (interrupt_query): Ditto.
8629 * monitor.c (monitor_interrupt_query): Ditto.
8630 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8631 * target.h: Update comment.
aaa38bb5 8632
b5a2688f 8633 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 8634
2fa5c1e0
AC
86352002-02-09 Andrew Cagney <ac131313@redhat.com>
8636
8637 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8638 default_double_format.
8639 * gdbarch.h, gdbarch.c: Re-generate.
8640 * findvar.c (floatformat_unknown): Delete variable definition.
8641 * doublest.h (floatformat_unknown): Delete variable declaration.
8642
da966255
JB
86432002-02-09 Jim Blandy <jimb@redhat.com>
8644
8645 * stabsread.c (read_type): Add code to parse Sun's syntax for
8646 prototyped function types.
8647
123a4891
AC
86482002-02-09 Andrew Cagney <ac131313@redhat.com>
8649
8650 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8651 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8652
fb39c8f3
PS
86532002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8654
8655 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8656 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8657 now _initialize_xcoffsolib gets called again and overrides the
8658 commands from solib.c in a native configuration.
8659
0b87a11d
MK
86602002-02-09 Mark Kettenis <kettenis@gnu.org>
8661
8662 * doublest.c (store_typed_floating): Don't try to return a value.
8663 Fixes PR gdb/290.
8664
bdc2fc72
JB
86652002-02-08 Jim Blandy <jimb@redhat.com>
8666
8667 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8668 is prototyped and has no arguments, print its argument list as
8669 `(void)'.
8670
da69bbcf
CD
86712002-02-08 Chris Demetriou <cgd@broadcom.com>
8672
8673 * MAINTAINERS (write-after-approval): Add myself.
8674 (paper-trail): I've escaped!
aaa38bb5 8675
b69571f5
CF
86762002-02-08 Christopher Faylor <cgf@redhat.com>
8677
8678 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8679 changes.
8680 (_initialize_check_for_gdb_ini): Ditto.
8681
f6871398
MH
86822002-02-08 Martin M. Hunt <hunt@redhat.com>
8683
8684 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8685 xaprintf -> xasprintf.
8686
4e52d31c
PM
86872002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8688
8689 * win32-nat.c: Remove use of printf and sprintf functions.
8690
39bbf761
RE
86912002-02-08 Richard Earnshaw <rearnsha@arm.com>
8692
8693 * arm-tdep.c (arm_frame_chain_valid): Make static.
8694 (arm_push_arguments): Likewise.
8695 (arm_gdbarch_init): New function.
8696 (_initialize_arm_tdep): Call it.
8697 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8698 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8699 (FRAME_CHAIN_VALID): Delete.
8700 (arm_frame_chain_valid): Delete declaration.
8701 (PUSH_ARGUMENTS): Delete.
8702 (arm_push_arguments): Delete declaration.
8703 (CALL_DUMMY_P): Delete.
8704
9c9532c9
CV
87052002-02-08 Andrew Cagney <ac131313@redhat.com>
8706 Corinna Vinschen <vinschen@redhat.com>
8707
8708 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8709 on builtin float types.
8710
4e8f7a8b
DJ
87112002-02-08 Daniel Jacobowitz <drow@mvista.com>
8712
8713 * utils.c: Include <curses.h> before "bfd.h".
8714 * tui/tui-hooks.c: Likewise.
8715 * tui/tui.c: Likewise.
8716 * tui/tuiCommand.c: Likewise.
8717 * tui/tuiData.c: Likewise.
8718 * tui/tuiDataWin.c: Likewise.
8719 * tui/tuiDisassem.c: Likewise.
8720 * tui/tuiGeneralWin.c: Likewise.
8721 * tui/tuiIO.c: Likewise.
8722 * tui/tuiLayout.c: Likewise.
8723 * tui/tuiRegs.c: Likewise.
8724 * tui/tuiSource.c: Likewise.
8725 * tui/tuiSourceWin.c: Likewise.
8726 * tui/tuiStack.c: Likewise.
8727 * tui/tuiWin.c: Likewise.
8728
cd4bffcf
EZ
87292002-02-07 Elena Zannoni <ezannoni@redhat.com>
8730
8731 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8732 to include space for pseudoregs as well. Update loops accordingly.
8733 (sh_fp_frame_init_saved_regs): Ditto.
8734 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8735
26806ce2
AC
87362002-02-07 Andrew Cagney <ac131313@redhat.com>
8737
8738 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8739 Add Richard Earnshaw to Arm maintainers.
8740
97fdab62
AC
87412002-02-07 Andrew Cagney <ac131313@redhat.com>
8742
a6b98203
AC
8743 * defs.h (warning_begin): Delete declaration.
8744
97fdab62
AC
8745 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8746 Delete macro.
8747
78b29b40
MS
87482002-02-07 Michael Snyder <msnyder@redhat.com>
8749
aaa38bb5 8750 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
8751 Logic bug, remove misplaced else.
8752
d8849953
KD
87532002-02-07 Klee Dienes <klee@apple.com>
8754
8755 * fork-inferior.c (fork_inferior): Add '!' to the list of
8756 characters that need to be quoted when building a string for the
8757 shell. Quote '!' specifically with a backslash, since CSH chokes
8758 when trying to evaluate "str!str".
aaa38bb5 8759
095778a0
NC
87602002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8761
8762 * rdi-share/host.h: Only provide a typedef for bool if it is not
8763 defined.
8764
1900040c
MS
87652002-02-04 Michael Snyder <msnyder@redhat.com>
8766
8767 * breakpoint.h (enum bptype): Add new overlay event bp type.
8768 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 8769
1900040c
MS
8770 * breakpoint.c (create_internal_breakpoint): New function.
8771 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8772 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8773 (create_thread_event_breakpoint): Ditto.
8774 (create_solib_event_breakpoint): Ditto.
8775 (create_overlay_event_breakpoint): New function.
8776 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8777 (update_breakpoints_after_exec): Delete and re-initialize
8778 overlay event breakpoints after an exec. Add FIXME comment
8779 about longjmp breakpoint.
8780 (print_it_typical): Ignore overlay event breakpoints.
8781 (print_one_breakpoint): Ditto.
8782 (mention): Ditto.
8783 (bpstat_what): Do not stop for overlay event breakpoints.
8784 (delete_breakpoint): Don't delete overlay event breakpoints.
8785 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8786 (breakpoint_re_set): Re-create overlay event breakpoint.
8787
8788 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8789 (overlay_manual_command): Disable overlay breakpoints.
8790 (overlay_off_command): Disable overlay breakpoints.
8791
082fc60d
RE
87922002-02-06 Richard Earnshaw <rearnsha@arm.com>
8793
8794 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8795 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8796 to here from config/tm-arm.h.
8797 (coff_sym_is_thumb): Make static.
8798 (arm_elf_make_msymbol_special): New function.
8799 (arm_coff_make_msymbol_special): New function.
8800 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8801 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8802 (coff_sym_is_thumb): Delete declaration.
8803 (arm_elf_make_msymbol_special): Declare.
8804 (arm_coff_make_msymbol_special): Declare.
8805 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8806 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8807
039c5766
RE
88082002-02-06 Richard Earnshaw <rearnsha@arm.com>
8809
8810 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8811
88122002-02-06 Richard Earnshaw <rearnsha@arm.com>
8813
8814 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8815 * gdbarch.c gdbarch.h: Regenerate.
8816 * arch-utils.c (default_print_float_info): New function.
8817 * arch-utils.h (default_print_float_info): Prototype it.
8818 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8819 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8820 (PRINT_FLOAT_INFO): Document it.
8821
8822 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8823 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8824 (PRINT_FLOAT_INFO): Define.
8825
58fa08f0
PM
88262002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8827
aaa38bb5 8828 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
8829 Add typecast to sprintf argument to suppress a warning.
8830
7393af7c
PM
88312002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8832
58fa08f0 8833 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
8834 to allow easier handling of pass state.
8835 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8836 that gives exception name and address.
8837 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 8838 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 8839 exceptions added.
aaa38bb5
AJ
8840 (child_continue): Correctly report continue_status.
8841 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 8842 TARGET_SIGNAL_0 (new default value).
aaa38bb5 8843 (child_resume): consider sig argument passed to decide if
7393af7c
PM
8844 the exception should be passed to debuggee or not.
8845
6af4589c
MS
88462002-02-05 Michael Snyder <msnyder@redhat.com>
8847
8848 * regcache.c (fetch_register): Call target_fetch_register
8849 only if we don't call FETCH_PSEUDO_REGISTER.
8850 (store_register): Call target_store_register only if we
8851 don't call STORE_PSEUDO_REGISTER.
8852
a2cf933a
EZ
88532002-02-05 Elena Zannoni <ezannoni@redhat.com>
8854
8855 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8856 ELF_MAKE_MSYMBOL_SPECIAL.
8857 * gdbarch.c, gdbarch.h: Regenerate.
8858 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 8859 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
8860 * elfread.c (elf_symtab_read): Compile use of
8861 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8862 multiarched.
8863 * coffread.c (coff_symtab_read): Ditto, for
8864 COFF_MAKE_MSYMBOL_SPECIAL.
8865
6bb7be43
JB
88662002-02-05 Jim Blandy <jimb@redhat.com>
8867
8868 * solib-svr4.c (svr4_truncate_ptr): New function.
8869 (svr4_relocate_section_addresses): Do the address arithmetic with
8870 the appropriate truncation for target addresses, even when
8871 CORE_ADDR is larger than a target address.
8872
e18651ec
DJ
88732002-02-05 Daniel Jacobowitz <drow@mvista.com>
8874
8875 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8876 to (int *).
8877
6b2725be
DJ
88782002-02-05 Daniel Jacobowitz <drow@mvista.com>
8879
8880 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8881 code.
8882
fca9e603
DJ
88832002-02-05 Daniel Jacobowitz <drow@mvista.com>
8884
8885 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8886
6c537a52
DJ
88872002-02-05 Daniel Jacobowitz <drow@mvista.com>
8888
8889 * gdbserver/linux-low.c: Remove unused include files.
8890
d844cde6
DJ
88912002-02-05 Daniel Jacobowitz <drow@mvista.com>
8892
8893 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8894 (read_inferior_memory): Use it.
8895 (write_inferior_memory): Likewise.
8896
d07c63e7
DJ
88972002-02-05 Daniel Jacobowitz <drow@mvista.com>
8898
8899 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8900 grubbing through sys_errlist.
8901
da6d8c04
DJ
89022002-02-05 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8905
5b421780
PM
89062002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8907 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8908
9f60d481
AC
89092002-02-04 Andrew Cagney <ac131313@redhat.com>
8910
8911 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8912 (do_sfunc, set_cmd_sfunc): New functions.
8913
8914 * command.h (struct cmd_list_element): Add field func.
8915 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8916 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8917 * cli/cli-decode.h: Ditto.
8918
8919 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8920 (help_all, help_cmd_list): Ditto.
8921 (find_cmd, complete_on_cmdlist): Ditto.
8922 * top.c (execute_command): Ditto.
8923
8924 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8925 function.sfunc.
8926
8927 * infcmd.c (notice_args_read): Fix function signature.
8928
8929 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8930 * cli/cli-decode.c (add_set_cmd): Ditto.
8931 * utils.c (initialize_utils): Ditto.
8932 * maint.c (_initialize_maint_cmds): Ditto.
8933 * infrun.c (_initialize_infrun): Ditto.
8934 * demangle.c (_initialize_demangler): Ditto.
8935 * remote.c (add_packet_config_cmd): Ditto.
8936 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8937 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8938 * proc-api.c (_initialize_proc_api): Ditto.
8939 * kod.c (_initialize_kod): Ditto.
8940 * valprint.c (_initialize_valprint): Ditto.
8941 * top.c (init_main): Ditto.
8942 * infcmd.c (_initialize_infcmd): Ditto.
8943 * corefile.c (_initialize_core): Ditto.
8944 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8945 * arch-utils.c (initialize_current_architecture): Ditto.
8946 (_initialize_gdbarch_utils): Ditto.
8947 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8948
8949 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8950 * wince.c (_initialize_inftarg): Ditto.
8951 * symfile.c (_initialize_symfile): Ditto.
8952 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8953 * language.c (_initialize_language): Ditto.
8954 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8955
f9ba0717
MS
89562002-02-04 Michael Snyder <msnyder@redhat.com>
8957
8958 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8959
0c74b2a7
DJ
89602002-02-04 Daniel Jacobowitz <drow@mvista.com>
8961
8962 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8963 Add rules for building the register data files.
8964
c638789f
DJ
89652002-02-04 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * regformats/regdat.sh: Add braces to the definition of
8968 expedite_regs_${arch}.
8969
db253027
DJ
89702002-02-04 Daniel Jacobowitz <drow@mvista.com>
8971
8972 * regformats/regdef.h (struct reg): Add comment describing the
8973 requirements for offset and size fields.
8974
206be19c
AS
89752002-02-04 Andreas Schwab <schwab@suse.de>
8976
8977 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8978 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8979
181c1381
RE
89802002-02-04 Richard Earnshaw <rearnsha@arm.com>
8981
8982 * gdbarch.sh (copyright): Update years in generated header.
8983 (SMASH_TEXT_ADDRESS): Add rule.
db253027 8984 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
8985 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8986 * dbxread.c: Likewise.
8987 * dwarfread.c: Likewise.
8988 * elfread.c: Likewise.
8989 * somread.c: Likewise.
8990
8991 * arm-tdep.c (arm_smash_text_address): New function.
8992 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8993
fa4ba8da
PM
89942002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8995
8996 Add support for hardware watchpoints on win32 native.
aaa38bb5 8997 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 8998 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 8999 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9000 of debug registers.
9001 (debug_registers_changed): New variable. Reflects when debug registers
9002 are changed and need to be written to inferior.
aaa38bb5 9003 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9004 was set, used when new threads are created.
9005 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9006 i386-nat code.
9007 (thread_rec): Set dr array if id is the thread of current_event .
9008 (child_continue, child_resume): Change the debug registers for all
9009 threads if debug_registers_changed.
9010 (child_add_thread): Change the debug registers if debug_registers_used.
9011 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9012 Link nm.h to new nm-cygwin.h file.
9013 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9014 of hardware registers.
9015
a73c86fb
AC
90162002-02-03 Andrew Cagney <ac131313@redhat.com>
9017
9018 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9019 Restore behavour broken by 2002-01-20 Andrew Cagney
9020 <ac131313@redhat.com> IEEE_FLOAT removal.
9021
acf5ed49
DJ
90222002-02-03 Daniel Jacobowitz <drow@mvista.com>
9023
9024 * c-valprint.c (c_val_print): Pass a proper valaddr to
9025 cp_print_class_method.
9026 * valops.c (search_struct_method): If there is only one method
9027 and args is NULL, return that method.
9028
493d28d5
DJ
90292002-02-03 Daniel Jacobowitz <drow@mvista.com>
9030
9031 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9032 accessing tag_name directly.
9033
7495dfdb
DJ
90342002-02-03 Daniel Jacobowitz <drow@mvista.com>
9035
9036 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9037 of accessing tag_name directly.
9038
dd6bda65
DJ
90392002-02-03 Daniel Jacobowitz <drow@mvista.com>
9040
9041 PR gdb/280
9042 * gdbtypes.c (replace_type): New function.
9043 * gdbtypes.h (replace_type): Add prototype.
9044 * stabsread.c (read_type): Use replace_type.
9045
88fe217c
RE
90462002-02-03 Richard Earnshaw <rearnsha@arm.com>
9047
9048 * Makefile.in (memattr.o): Add missing dependencies rule.
9049
e5d66720
PS
90502002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9051
9052 * breakpoint.c (break_at_finish_command): Really export.
9053 (break_at_finish_at_depth_command): Ditto.
9054 (tbreak_at_finish_command): Ditto.
9055 * hppa-tdep.c: Include completer.h.
9056 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9057 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9058
fffee0be
AC
90592002-02-01 Andrew Cagney <ac131313@redhat.com>
9060
9061 * utils.c (do_write): New function.
9062 (error_stream): Rewrite combining the code from error_begin and
9063 verror.
9064 (verror): Rewrite using error_stream.
9065 (error_begin): Delete function.
9066
255e7dbf
AC
90672002-02-01 Andrew Cagney <ac131313@redhat.com>
9068
9069 * utils.c (error_begin): Make static.
9070 * defs.h (error_begin): Delete declaration.
9071
9072 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9073 (decode_line_1): Use cplusplus_error instead of error_begin,
9074 cplusplus_hint and return_to_top_level.
9075 * coffread.c (coff_symfile_read): Use error instead of error_begin
9076 and return_to_top_level.
9077 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9078
ddfe3c15
AC
90792002-02-01 Andrew Cagney <ac131313@redhat.com>
9080
9081 * language.h (type_error, range_error): Make string parameter
9082 constant.
9083 * language.c (warning_pre_print): Delete extern declaration.
9084 * dwarfread.c (warning_pre_print): Ditto.
9085 * language.c (type_error, range_error): Rewrite to use verror and
9086 vwarning instead of warning_begin.
9087
03ac34d5
MS
90882002-02-01 Michael Snyder <msnyder@redhat.com>
9089
261c4ca2
MS
9090 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9091 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9092
e00d1dc8
AC
90932002-02-01 Andrew Cagney <ac131313@redhat.com>
9094
9095 * command.h (NO_FUNCTION): Delete macro.
9096 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9097 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9098 * tracepoint.c (_initialize_tracepoint): Ditto.
9099 * cli/cli-decode.c (add_set_cmd): Ditto.
9100 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9101
76b79d6e
DJ
91022002-02-01 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9105 Update ``this'' pointer when calling virtual functions.
9106
799f9e91
MS
91072002-02-01 Michael Snyder <msnyder@redhat.com>
9108
c7bd442c 9109 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9110 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9111
3cf384d4
DJ
91122002-02-01 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * regformats/reg-arm.dat: New file.
9115 * regformats/reg-i386.dat: New file.
9116 * regformats/reg-ia64.dat: New file.
9117 * regformats/reg-m68k.dat: New file.
9118 * regformats/reg-mips.dat: New file.
9119 * regformats/reg-ppc.dat: New file.
9120 * regformats/reg-sh.dat: New file.
9121 * regformats/regdef.h: New file.
9122 * regformats/regdat.sh: New file.
9123
0defa245
RE
91242002-02-01 Richard Earnshaw <reanrsha@arm.com>
9125
9126 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9127 (arm_frame_args_address, arm_frame_locals_address): New functions.
9128 (arm_frame_num_args): New function.
9129 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9130 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9131 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9132
405f26e6
MS
91332002-01-31 Michael Snyder <msnyder@redhat.com>
9134
502fd408
MS
9135 * breakpoint.c (break_at_finish_command): Export.
9136 (break_at_finish_at_depth_command): Export.
9137 (tbreak_at_finish_command): Export.
9138 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9139 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9140 "tbreak" commands, which are HPPA specific.
9141
7d35e135
MS
9142 * printcmd.c (disassemble_command): Remove an ancient
9143 artifact of an old merge.
9144
aaa38bb5 9145 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9146 Define enum constant values for overlay mode.
9147 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9148 (overlay_is_mapped, overlay_auto_command,
9149 overlay_manual_command): Ditto.
d874f1e2 9150
aaa38bb5
AJ
9151 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9152 breakpoint_here_p, breakpoint_inserted_here_p,
9153 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9154 describe_other_breakpoints, check_duplicates, clear_command):
9155 Coding standard fixes.
9156
8add0441 9157 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9158 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9159 code: check bfd SEC_READONLY flag for section.
9160
e351066e
AC
91612002-01-31 Andrew Cagney <ac131313@redhat.com>
9162
7d35e135 9163 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9164
8a48e967
DJ
91652002-01-30 Daniel Jacobowitz <drow@mvista.com>
9166
9167 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9168 data symbols, since we search based on textlow and texthigh.
9169 (find_pc_sect_symtab): Likewise.
9170
f5a96129
AC
91712002-01-30 Andrew Cagney <ac131313@redhat.com>
9172
9173 * defs.h (vwarning): Declare.
f5a96129
AC
9174 * utils.c (vwarning): New function.
9175 (warning): Call vwarning.
9176 (warning_begin): Delete function.
9177
9178 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9179 the warning message.
9180 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9181 warning_begin.
9182
cefd4ef5
MS
91832002-01-30 Michael Snyder <msnyder@redhat.com>
9184
1a703748
MS
9185 * NEWS: Mention "set trust-readonly-sections" command.
9186 Mention generate-core-file command.
cefd4ef5 9187
3a11626d
MS
91882002-01-15 Michael Snyder <msnyder@redhat.com>
9189
9190 * target.c: New command, "set trust-readonly-sections on".
9191 (do_xfer_memory): Honor the suggestion to trust readonly sections
9192 by reading them from the object file instead of from the target.
9193 (initialize_targets): Register command "set trust-readonly-sections".
9194
d1c7e53b
AC
91952002-01-29 Andrew Cagney <ac131313@redhat.com>
9196
9197 * parse.c (target_map_name_to_register): Simplify, search regs and
9198 pseudo-regs using a single loop.
9199
e2c9a72c
AC
92002002-01-30 Andrew Cagney <ac131313@redhat.com>
9201
9202 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9203
69824b4e
MK
92042002-01-15 Rodney Brown <rbrown64@csc.com.au>
9205
9206 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9207 * config/i386/i386v42mp.mh: Add i387-nat.o .
9208 * i386v4-nat.c: Include i387-nat.h.
9209 (supply_fpregset): Use i387_supply_fsave.
9210 (fill_fpregset): Use i387_fill_fsave.
9211
6eb69eab
RE
92122002-01-30 Richard Earnshaw <rearnsha@arm.com>
9213
9214 * arm-tdep.c (arm_call_dummy_words): Define.
9215 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9216 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9217 (CALL_DUMMY_WORDS): Define.
9218 (arm_call_dummy_words): Declare.
9219 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9220 (arm_linux_call_dummy_words): Declare.
9221
9852326a
AS
92222002-01-30 Andreas Schwab <schwab@suse.de>
9223
9224 * m68klinux-nat.c: Fix last change to use regcache_collect
9225 instead of referencing registers[] directly.
9226
977a3030
AC
92272002-01-29 Andrew Cagney <ac131313@redhat.com>
9228
9229 * parse.c (target_map_name_to_register): Delete code wrapped in
9230 #ifdef REGISTER_NAME_ALIAS_HOOK.
9231
2076c72b
MS
92322002-01-28 Michael Snyder <msnyder@redhat.com>
9233
9234 * regcache.c (legacy_read_register_gen): Need to be able to
9235 read pseudo-register as well as real register.
9236 (legacy_write_register_gen): Ditto.
9237
8fcc723b
AC
92382002-01-28 Andrew Cagney <ac131313@redhat.com>
9239
9240 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9241 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9242 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9243 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9244 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9245 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9246 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9247 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9248 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9249 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9250 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9251 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9252 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9253 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9254 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9255 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9256 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9257 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9258 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9259 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9260
afe64c1a
AC
92612002-01-28 Andrew Cagney <ac131313@redhat.com>
9262
9263 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9264 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9265 (initialize_current_architecture): Update target_byte_order using
9266 information from BFD.
aaa38bb5 9267 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9268 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9269
75bc7ddf
AC
92702002-01-28 Andrew Cagney <ac131313@redhat.com>
9271
9272 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9273 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9274
9275 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9276 #ifdef INVALID_FLOAT.
9277 * infcmd.c (do_registers_info): Ditto.
9278 * values.c (unpack_double): Ditto. Add comment.
9279
9280 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9281 already commented out.
9282
0280a90a
AS
92832002-01-26 Andreas Schwab <schwab@suse.de>
9284
9285 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9286 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9287 registers and add support for PTRACE_GETREGS.
9288
7072a954
AC
92892002-01-24 Andrew Cagney <ac131313@redhat.com>
9290
9291 GDB 5.1.1 released from 5.1 branch.
9292 * NEWS: Add 5.1.1 news.
9293 * README: Sync with 5.1 branch.
9294
86f902e0
FF
92952002-01-23 Fred Fish <fnf@redhat.com>
9296
9297 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9298 stabstring on initial malloc. Reallocing will copy it for us,
9299 if necessary.
9300
8af51c36
EZ
93012002-01-23 Elena Zannoni <ezannoni@redhat.com>
9302
aaa38bb5 9303 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9304 (HFILES_NO_SRCDIR): Remove hpread.h.
9305 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9306 (hpread.o): Update dependencies.
9307 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9308
9309 * hp-psymtab-read.c: Remove file.
9310 * hp-symtab-read.c: Remove file.
9311 * hpread.h: Remove file.
9312
9313 * hpread.c: Merge all contents of hp-psymtab-read.c,
9314 hp-symtab-read.c and hpread.h into this file, as it was prior to
9315 January 1999.
9316
9317 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9318 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9319 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9320 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9321
dc5cfeb6
EZ
93222002-01-23 Elena Zannoni <ezannoni@redhat.com>
9323
9324 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9325 fill_gregset): Call gdbarch_tdep() just once, assign result to
9326 variable and use that, instead of calling the function several
9327 times.
9328
ea87b71b
AO
93292002-01-24 Alexandre Oliva <aoliva@redhat.com>
9330
9331 * configure.host: Accept sparcv9 as alias for sparc64.
9332 * configure.tgt: Likewise.
9333
13fc0c2f
KB
93342002-01-22 Kevin Buettner <kevinb@redhat.com>
9335
9336 * solib-aix5.c (build_so_list_from_mapfile)
9337 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9338 arguments is not reversed.
9339 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9340 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9341
7bd872fe
EZ
93422002-01-22 Elena Zannoni <ezannoni@redhat.com>
9343
9344 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9345 modified version of obsolete sh_fetch_pseudo_register.
9346 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9347 (sh4_register_read): New function.
9348 (sh_pseudo_register_write): New function. Renamed and modified
9349 version of obsolete sh_store_pseudo_register.
9350 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9351 (sh4_register_write): New function.
9352 (sh_gdbarch_init): Remove setting of gdbarch function
9353 fetch_pseudo_register and store_pseudo_register. Remove setting of
9354 register_convert_to_raw, register_convert_to_virtual,
9355 register_convertible.
9356 (sh_sh4_register_convertible): Delete. No longer needed. All is
9357 taken care by architecture specific functions
9358 register_read/register_write.
9359 (sh_sh4_register_convert_to_virtual): Make static.
9360 (sh_sh4_register_convert_to_raw): Ditto.
9361
069e84fd
AC
93622002-01-22 Andrew Cagney <ac131313@redhat.com>
9363
9364 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9365 (floatformat_is_nan, floatformat_mantissa): Ditto.
9366
9367 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9368 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9369 builtin_type_ieee_double_little,
9370 builtin_type_ieee_double_littlebyte_bigword,
9371 builtin_type_m68881_ext, builtin_type_i960_ext,
9372 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9373 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9374 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9375 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9376
211a4f69
CV
93772002-01-22 Corinna Vinschen <vinschen@redhat.com>
9378
9379 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9380 parameter. Set frameless flag if it exists and depended of
9381 whether the scanned function is frameless or not.
9382 (xstormy16_skip_prologue): If function is frameless, return
9383 result of xstormy16_scan_prologue().
9384 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9385 call.
9386
f81353e4
EZ
93872002-01-21 Elena Zannoni <ezannoni@redhat.com>
9388
9389 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9390 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9391 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9392 sh_sh4_register_byte, sh_sh4_register_raw_size,
9393 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9394 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9395 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9396 sh_store_pseudo_register, sh_do_pseudo_register): Call
9397 gdbarch_tdep() just once, assign result to variable and use that,
9398 instead of calling the function several times.
9399
63c73a17
MK
94002002-01-20 Mark Kettenis <kettenis@gnu.org>
9401
9402 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9403 macros instead of LAST_FPU_CTRL_REGNUM.
9404 (store_register): Likewise.
9405
39ad761d
JB
94062002-01-21 Jim Blandy <jimb@redhat.com>
9407
9408 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9409 is up-to-date before running the program, not just when a program
9410 exits.
9411
3d74b771
FF
94122002-01-21 Fred Fish <fnf@redhat.com>
9413
9414 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9415 when we have found all instructions we are looking for.
9416
966fbf70
RE
94172002-01-21 Richard Earnshaw <rearnsha@arm.com>
9418
9419 * arm-tdep.c (arm_register_name): New function.
9420 (arm_registers_names): Make static.
9421 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9422 (arm_register_name): Declare.
9423 (REGISTER_NAME): Use it.
9424
c3b4394c
RE
94252002-01-21 Richard Earnshaw <rearnsha@arm.com>
9426 Kevin Buettner <kevinb@redhat.com>
9427
9428 Convert arm targets to new FRAME interface.
9429 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9430 (arm_frame_find_save_regs): Delete.
9431 (arm_frame_init_saved_regs): New.
9432 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9433 Allocate extra_info as required. Convert all uses of fsr.regs
9434 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9435 to use extra_info.
9436 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9437 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9438 (check_prologue_cache, save_prologue_cache): Likewise.
9439 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9440 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9441 (FRAME_FIND_SAVED_REGS): Delete.
9442 (arm_frame_find_saved_regs): Delete prototype.
9443 (arm_frame_init_saved_regs): New prototype.
9444 (FRAME_INIT_SAVED_REGS): Define.
9445
61d99182
AC
94462002-01-20 Andrew Cagney <ac131313@redhat.com>
9447
9448 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9449
6aaea291
AC
94502002-01-20 Andrew Cagney <ac131313@redhat.com>
9451
9452 From Jeff Law <law@redhat.com>:
9453 * infttrace.c: Include <sys/pstat.h>.
9454 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9455 exec file if the ttrace equivalent fails.
9456
15f698d2
AC
94572002-01-20 Andrew Cagney <ac131313@redhat.com>
9458
9459 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9460 (closeLogFile): Ditto.
9461
f86ddd7c
MC
94622002-01-20 Michael Chastain <mec@shout.net>
9463
9464 * top.c (print_gdb_version): Bump copyright year to 2002.
9465
904507ce
AC
94662002-01-20 Andrew Cagney <ac131313@redhat.com>
9467
9468 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9469 Zannoni and Eli Zaretskii.
9470
d7f0b9ce
DJ
94712002-01-20 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * buildsym.c: Update copyright years.
9474 * c-typeprint.c: Likewise.
9475 * dwarf2read.c: Likewise.
9476 * f-typeprint.c: Likewise.
9477 * gdbtypes.c: Likewise.
9478 * gdbtypes.h: Likewise.
9479 * hp-symtab-read.c: Likewise.
9480 * hpread.c: Likewise.
9481 * mdebugread.c: Likewise.
9482 * p-typeprint.c: Likewise.
9483
3fd3d7d2
AC
94842002-01-20 Andrew Cagney <ac131313@redhat.com>
9485
9486 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9487 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9488 byte-order selectable.
9489 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9490 * arch-utils.c: Ditto.
9491 (set_endian): Ditto.
9492 (set_endian_from_file): Ditto.
9493 * gdbserver/low-sim.c (create_inferior): Ditto.
9494 * gdbarch.sh: Ditto.
9495 * gdbarch.h: Re-generate.
aaa38bb5
AJ
9496 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9497 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9498 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9499 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9500 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9501 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9502 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
9503 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9504 macro definition.
9505 * config/mips/tm-wince.h: Remove #undef of macro
9506 TARGET_BYTE_ORDER_SELECTABLE.
9507 * config/sh/tm-wince.h: Ditto.
9508
b02dede2
DJ
95092002-01-20 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9512 member function fields. Add accessor macro
9513 TYPE_FN_FIELD_ARTIFICIAL.
9514 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9515 * c-typeprint.c (c_type_print_base): Skip artificial member
9516 functions.
9517
c3643761
DJ
95182002-01-20 Daniel Jacobowitz <drow@mvista.com>
9519
9520 * f-typeprint.c: Delete unused function f_type_print_args.
9521 * p-typeprint.c: Delete unused function pascal_type_print_args.
9522
8176bb6d
DJ
95232002-01-20 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9526 comment. Add ``artificial'' to ``union field_location''.
9527
9528 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9529
9530 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9531 * mdebugread.c (parse_symbol): Likewise.
9532 * stabsread.c (define_symbol): Likewise.
9533 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9534 initializing TYPE_FIELD_BITPOS to n (obsolete).
9535 (hpread_doc_function_type): Likewise.
9536 * hpread.c (hpread_function_type): Likewise.
9537
7fd60527
AC
95382002-01-20 Andrew Cagney <ac131313@redhat.com>
9539
9540 * configure.in (host_makefile_frag): Only require a host makefile
9541 fragment when a native build.
9542 * configure: Re-generate.
9543
c2f05ac9
AC
95442002-01-20 Andrew Cagney <ac131313@redhat.com>
9545
9546 * doublest.h (floatformat_from_type): Declare.
9547 * doublest.c (floatformat_from_type): New function.
9548 (convert_typed_floating): Use.
9549
9550 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9551 call to function floatformat_from_type.
9552
9553 * gdbarch.sh (IEEE_FLOAT): Delete.
9554 * gdbarch.h, gdbarch.c: Re-generate.
9555 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9556 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9557 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9558 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9559 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9560 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9561 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9562 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9563 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9564 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9565 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
9566 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9567
9568 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9569 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9570 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9571 * sh-tdep.c (sh_gdbarch_init): Ditto.
9572 * mips-tdep.c (mips_gdbarch_init): Ditto.
9573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9574 * cris-tdep.c (cris_gdbarch_init): Ditto.
9575
abf22e64
AJ
95762002-01-20 Jiri Smid <smid@suse.cz>
9577
9578 * configure.host, configure.tgt: Support x86-64.
9579 * NEWS: Note new target x86-64.
9580
b7c4cbf8
AJ
9581 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9582 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9583 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9584 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9585 x86-64-linux-nat.o): Fix dependencies.
9586
82600034
AC
95872002-01-19 Andrew Cagney <ac131313@redhat.com>
9588
9589 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9590 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9591 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9592 * config/sparc/xm-sun4os4.h: Delete file.
9593 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 9594
bbe5c628
AC
95952002-01-19 Andrew Cagney <ac131313@redhat.com>
9596
9597 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9598 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9599 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9600 * config/i386/i386lynx.mh (XM_FILE): Delete.
9601 * config/rs6000/xm-rs6000ly.h: Delete file.
9602 * config/sparc/xm-sparclynx.h: Delete file.
9603 * config/m68k/xm-m68klynx.h: Delete file.
9604 * config/i386/xm-i386lynx.h: Delete file.
9605 * config/xm-lynx.h: Delete file.
9606 * config/djgpp/fnchange.lst: Update.
9607
f8453e34
JT
96082002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9609
9610 * alpha-tdep.c (alpha_register_byte): New function.
9611 (alpha_register_raw_size): Ditto.
9612 (alpha_register_virtual_size): Ditto.
9613 (alpha_skip_prologue_internal): Renamed from
9614 alpha_skip_prologue.
9615 (alpha_skip_prologue): New version that calls
9616 alpha_skip_prologue_internal.
9617 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9618 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9619 second argument from alpha_skip_prologue.
9620 (REGISTER_BYTE): Use alpha_register_byte.
9621 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9622 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9623 (FRAMELESS_FUNCTION_INVOCATION): Use
9624 generic_frameless_function_invocation_not.
9625 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9626 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9627
52d9e613
AC
96282002-01-19 Andrew Cagney <ac131313@redhat.com>
9629
9630 * config/mips/xm-news-mips.h: Delete file.
9631 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9632
9633 * config/m88k/xm-m88k.h: Delete file.
9634 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9635 * config/m88k/xm-delta88v4.h: Ditto.
9636 * config/m88k/xm-delta88.h: Ditto.
9637
9638 * config/alpha/xm-fbsd.h: Delete file.
9639 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9640
9641 * config/sparc/xm-sparc.h: Delete file.
9642 * Makefile.in (xm-sun4os4.h): Delete dependency.
9643 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9644 * config/sparc/xm-sun4os4.h: Ditto.
9645 * config/sparc/xm-linux.h: Ditto.
9646
9647 * config/i386/xm-windows.h: Delete file.
9648
2d1b2124
AC
96492002-01-19 Andrew Cagney <ac131313@redhat.com>
9650
9651 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9652 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9653
ee1f65f0
JT
96542002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9655
9656 * alpha-tdep.c (alpha_call_dummy_words): New.
9657 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9658 (CALL_DUMMY_P): Define.
9659 (CALL_DUMMY_WORDS): Define.
9660 (SIZEOF_CALL_DUMMY_WORDS): Define.
9661
98081e55
PB
96622002-01-19 Per Bothner <per@bothner.com>
9663
9664 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9665 isn't NULL, which can happen with some gcj-3.x-produced code.
9666
0d056799
JT
96672002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9668
9669 * alpha-tdep.c (alpha_register_virtual_type): New function.
9670 (alpha_init_frame_pc_first): Ditto.
9671 (alpha_fix_call_dummy): Ditto.
9672 (alpha_store_struct_return): Ditto.
9673 (alpha_extract_struct_value_address): Ditto.
9674 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9675 alpha_register_virtual_type.
9676 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9677 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9678 alpha_extract_struct_value_address.
9679 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9680 (INIT_FRAME_PC): Use init_frame_pc_noop.
9681 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9682
4604bcad
MK
96832002-01-19 Mark Kettenis <kettenis@gnu.org>
9684
9685 * i386gnu-nat.c: Include "i386-tdep.h".
9686 (fetch_fpregs): Simplify code dealing with uninitialized floating
9687 point states such that it doesn't require FP7_REGNUM.
9688
140f9984
JT
96892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9690
abf22e64
AJ
9691 * alpha-tdep.c (frame_extra_info): New.
9692 (alpha_find_saved_regs): Make static. Use
140f9984
JT
9693 frame->extra_info.
9694 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
9695 (alpha_frame_saved_pc): Use frame->extra_info.
9696 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9697 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
9698 (init_extra_frame_info): Rename to...
9699 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 9700 (alpha_print_extra_frame_info): New function.
140f9984
JT
9701 (alpha_frame_locals_address): Ditto.
9702 (alpha_frame_args_address): Ditto.
abf22e64 9703 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
9704 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9705 alpha_frame_args_address.
abf22e64 9706 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 9707 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
9708 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9709 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
9710 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9711 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9712
d734c450
JT
97132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9714
9715 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9716 (alpha_cannot_fetch_register): Ditto.
9717 (alpha_cannot_store_register): Ditto.
9718 (alpha_register_convertible): Ditto.
9719 (alpha_use_struct_convention): Ditto.
9720 * config/alpha/tm-alpha.h: Update copyright years.
9721 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9722 (INNER_THAN): Use core_addr_lessthan.
9723 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9724 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9725 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9726 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9727 (FRAME_CHAIN): Remove unnecessary cast.
9728
b4ceaee6
AC
97292002-01-18 Andrew Cagney <ac131313@redhat.com>
9730
9731 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9732 obsolete.
9733
0a65a603
AC
97342002-01-18 Andrew Cagney <ac131313@redhat.com>
9735
9736 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9737 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9738 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9739 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9740 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9741 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9742 * x86-64-linux-nat.c: Ditto.
9743
636a6dfc
JT
97442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9745
abf22e64 9746 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
9747 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9748 (REGISTER_NAME): Define.
9749
acceddb6
JT
97502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9751
9752 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9753
ec32e4be
JT
97542002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9755
9756 * alpha-tdep.c: Update copyright years.
9757 (alpha_next_pc): New function.
9758 (alpha_software_single_step): Ditto.
9759 * config/alpha/tm-alpha.h: Add prototype for
9760 alpha_software_single_step.
9761
e771a871
JT
97622002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9763
9764 * alphabsd-nat.c: Update copyright years.
9765 (fill_gregset): Use regcache_collect.
9766 (fill_fpregset): Likewise.
9767 (fetch_inferior_registers): Only fetch integer registers
9768 if requested to do so.
9769 (store_inferior_registers): Only store integer registers
9770 if requested to do so.
9771
7708fa01
AC
97722002-01-17 Andrew Cagney <ac131313@redhat.com>
9773
9774 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9775 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9776 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9777 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9778 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9779 * config/arm/linux.mh (XDEPFILES): Delete.
9780 * config/arm/nbsd.mh (XDEPFILES): Delete.
9781 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9782 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9783 * config/i386/i386m3.mh (XDEPFILES): Delete.
9784 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9785 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9786 * config/i386/fbsd.mh (XDEPFILES): Delete.
9787 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9788 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9789 * config/i386/i386v4.mh (XDEPFILES): Delete.
9790 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9791 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9792 * config/i386/i386aix.mh (XDEPFILES): Delete.
9793 * config/i386/go32.mh (XDEPFILES): Delete.
9794 * config/i386/cygwin.mh (XDEPFILES): Delete.
9795 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9796 * config/i386/i386mach.mh (XDEPFILES): Delete.
9797 * config/i386/i386v32.mh (XDEPFILES): Delete.
9798 * config/i386/linux.mh (XDEPFILES): Delete.
9799 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9800 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9801 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9802 * config/i386/i386sco.mh (XDEPFILES): Delete.
9803 * config/i386/i386v.mh (XDEPFILES): Delete.
9804 * config/i386/nbsd.mh (XDEPFILES): Delete.
9805 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9806 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9807 * config/i386/symmetry.mh (XDEPFILES): Delete.
9808 * config/i386/obsd.mh (XDEPFILES): Delete.
9809 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9810 * config/ia64/linux.mh (XDEPFILES): Delete.
9811 * config/ia64/aix.mh (XDEPFILES): Delete.
9812 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9813 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9814 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9815 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9816 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9817 * config/m68k/linux.mh (XDEPFILES): Delete.
9818 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9819 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9820 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9821 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9822 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9823 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9824 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9825 * config/m88k/delta88.mh (XDEPFILES): Delete.
9826 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9827 * config/m88k/m88k.mh (XDEPFILES): Delete.
9828 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9829 * config/mips/linux.mh (XDEPFILES): Delete.
9830 * config/mips/irix6.mh (XDEPFILES): Delete.
9831 * config/mips/irix5.mh (XDEPFILES): Delete.
9832 * config/mips/irix4.mh (XDEPFILES): Delete.
9833 * config/mips/irix3.mh (XDEPFILES): Delete.
9834 * config/mips/decstation.mh (XDEPFILES): Delete.
9835 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9836 (NATDEPFILES): Move core-aout.o to here.
9837 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9838 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9839 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9840 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9841 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9842 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9843 * config/pa/hpux11.mh (XDEPFILES): Delete.
9844 * config/powerpc/aix.mh (XDEPFILES): Delete.
9845 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9846 * config/powerpc/linux.mh (XDEPFILES): Delete.
9847 * config/romp/rtbsd.mh: Rename XDEPFILES.
9848 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9849 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9850 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9851 * config/s390/s390.mh (XDEPFILES): Delete.
9852 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9853 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9854 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9855 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9856 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9857 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9858 * config/sparc/linux.mh (XDEPFILES): Delete.
9859 * config/vax/vaxult.mh (XDEPFILES): Delete.
9860 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9861 * Makefile.in (DEPFILES): Remove XDEPFILES.
9862
375fc983
AC
98632002-01-17 Andrew Cagney <ac131313@redhat.com>
9864
9865 * utils.c (internal_verror): Fix comments, default is yes not no.
9866 Update queries to match. Default to quit and dump core.
9867
8926118c
AC
98682002-01-17 Andrew Cagney <ac131313@redhat.com>
9869
9870 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9871 copyright.
9872 * defs.h, event-top.c, gdbcmd.h: Ditto.
9873 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9874 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9875 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9876 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9877 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9878 * mi/mi-main.c:Ditto.
9879
9880 * stack.c, symfile.c: Update copyright.
9881
45b7b345
DJ
98822002-01-17 Daniel Jacobowitz <drow@mvista.com>
9883
db728ff7
DJ
9884 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9885 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9886 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9887 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 9888
db728ff7
DJ
98892002-01-17 Daniel Jacobowitz <drow@mvista.com>
9890
9891 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9892 * gdbserver/low-lynx.c (myattach): Likewise.
9893 * gdbserver/low-nbsd.c (myattach): Likewise.
9894 * gdbserver/low-sim.c (myattach): Likewise.
9895 * gdbserver/low-sparc.c (myattach): Likewise.
9896 * gdbserver/low-sun3.c (myattach): Likewise.
9897
9898 * gdbserver/low-linux.c (myattach): New function.
45b7b345 9899
db728ff7 9900 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
9901 (main): Handle "--attach".
9902
8de3c354
AC
99032002-01-16 Andrew Cagney <ac131313@redhat.com>
9904
9905 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9906 maintainer.
9907
b0129042
DJ
99082002-01-15 Daniel Jacobowitz <drow@mvista.com>
9909
9910 * c-typeprint.c (is_type_conversion_operator): Add additional
9911 check for non-conversion operators.
9912
ba8679fb 99132002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
9914
9915 * linux-proc.c: Add "info proc" command, a la procfs.c.
9916 (read_mapping): New function, abstract and re-use code.
9917 (linux_find_memory_regions): Use new func read_mapping.
9918 (linux_info_proc_cmd): New function, implement "info proc".
9919 (_initialize_linux_proc): Add new command "info proc".
9920
e4f9b4d5
MS
99212002-01-15 Michael Snyder <msnyder@redhat.com>
9922
9923 * symfile.c (generic_load): Use bfd_map_over_sections method
9924 instead of manipulating bfd structure members directly.
9925 (add_section_size_callback): New function, bfd sections callback
9926 used by generic_load.
9927 (load_sections_callback): New function, bfd sections callback
9928 used by generic_load.
9929
08cf96df
EZ
99302002-01-15 Elena Zannoni <ezannoni@redhat.com>
9931
abf22e64 9932 [Based on work by Jim Blandy]
08cf96df
EZ
9933 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9934 (builtin_type_vec128): Export.
9935 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9936 types.
9937 (builtin_type_vec128): New builtin type for 128 bit vector
9938 registers.
9939 (build_gdbtypes): Initialize builtin_type_v16qi and
9940 builtin_type_v8hi. Create the vec128 register builtin type
9941 structure.
9942 (build_builtin_type_vec128): New function.
abf22e64 9943 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
9944 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9945 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9946 AltiVec register to new builtin type.
9947
d7242108
DJ
99482001-01-15 Daniel Jacobowitz <drow@mvista.com>
9949
9950 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9951 to make_cv_type.
9952
4ee3352d
AC
99532002-01-14 Andrew Cagney <ac131313@redhat.com>
9954
9955 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9956 CLEAN_UP_REGISTER_VALUE.
9957 * regcache.c (supply_register): Update only call.
9958
f015b2e7
AC
99592002-01-14 Andrew Cagney <ac131313@redhat.com>
9960
9961 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9962 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9963 a29k-*-vxworks* targets as obsolete.
9964
356ae49d
MS
99652002-01-14 Michael Snyder <msnyder@redhat.com>
9966
9967 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9968 until we can resolve portability issues.
9969 * gregset.h: Remove references to fpxregs.
9970 * gcore.c (gcore_command): Initialize note_sec to NULL.
9971
ade8f45e
AC
99722002-01-13 Andrew Cagney <ac131313@redhat.com>
9973
9974 * signals.c (target_signal_to_name): Rewrite. Only use
9975 signals[].name when in bounds and non-NULL.
abf22e64 9976
89c49e7a
AC
99772002-01-13 Andrew Cagney <ac131313@redhat.com>
9978
9979 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9980 * signals.c (target_signal_to_name): Verify that SIG is within the
9981 bounds of the signals array.
9982
4daa9f9f
AC
99832002-01-13 Andrew Cagney <ac131313@redhat.com>
9984
9985 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9986
ba4bbdcb
KS
99872002-01-13 Keith Seitz <keiths@redhat.com>
9988
9989 * stack.c (print_frame_info_base): Print the frame's pc
9990 only if when print_frame_info_listing_hook is not defined.
9991
575bbeb6
KS
99922002-01-13 Keith Seitz <keiths@redhat.com>
9993
9994 * varobj.c (varobj_set_value): Make sure that there were no
9995 errors evaluating the object before attempting to set its
9996 value.
9997 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9998 so this offset adjustment is no longer necessary.
9999 (create_child): Don't set the error flag if the child is
10000 a CPLUS_FAKE_CHILD.
10001 (value_of_child): If value_fetch_lazy fails, return NULL
10002 so that callers will be notified that an error occurred.
10003 (c_value_of_variable): Delay check of variable's validity
10004 until later. We actually want all structs and unions to have
10005 the value "{...}".
10006 Do not return "???" for variables which could not be evaluated.
10007 This error condition must be returned to the caller so that it
10008 can get the error condition from gdb.
10009 (cplus_name_of_child): Adjust index for vptr before figuring
10010 out the name of the child.
10011 (cplus_value_of_child): If a child's (real) parent is not valid,
10012 don't even bother trying to give a value for it. Just return
10013 an error. Change all instances in this function.
10014 (cplus_type_of_child): If our parent is one of the "fake"
10015 parents, we need to get at the type of the real parent, and
10016 derive the child's true type using this information.
10017
b76898ab
AC
100182002-01-13 Andrew Cagney <ac131313@redhat.com>
10019
10020 From 2002-01-09 John Marshall <johnm@falch.net>:
10021 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10022 sources.redhat.com, and tweak some related URLs which had
10023 suffered from linkrot.
10024
b6649e88
AC
100252002-01-13 Andrew Cagney <ac131313@redhat.com>
10026
10027 From Jeff law:
10028 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10029 structures passed in registers.
10030
82cc5033
EZ
100312002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10032
10033 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10034 white space which prevented compilation. Reported by DSK
10035 <dsk@student.unsw.edu.au>.
10036
ba5f2f8a
MS
100372002-01-11 Michael Snyder <msnyder@redhat.com>
10038
fbd35540
MS
10039 * symfile.c (build_section_addr_info_from_section_tab):
10040 Use bfd access method instead of manipulating bfd directly.
10041 (syms_from_objfile): Ditto.
10042 (simple_overlay_update_1): Ditto.
10043 (simple_overlay_update): Ditto.
10044 (generic_load): Ditto.
10045 (overlay_unmapped_address): FIXME comment, bfd access methods.
10046 (sections_overlap): FIXME comment, bfd access methods.
10047 (pc_in_mapped_range): FIXME comment, bfd access methods.
10048 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10049 (section_is_mapped): FIXME comment, bfd access methods.
10050 (section_is_overlay): FIXME comment, bfd access methods.
10051
ba5f2f8a
MS
10052 * symfile.c (generic_load): Whitespace and long line cleanups.
10053 Remove duplicate variable, change several local variables to
10054 more appropriate data types.
10055 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10056
17df2af6
AC
100572002-01-12 Andrew Cagney <ac131313@redhat.com>
10058
10059 From Peter Schauer:
10060 * language.c (longest_local_hex_string_custom): Use phex_nz to
10061 convert NUM to a hex string.
10062
ec920329
EZ
100632002-01-12 Elena Zannoni <ezannoni@redhat.com>
10064
10065 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10066 the function.
538a76d6 10067 Update Copyright year.
ec920329 10068
3abd2e01
AC
100692002-01-12 Andrew Cagney <ac131313@redhat.com>
10070
10071 * language.c (longest_raw_hex_string): Delete unused function.
10072
b21b22e0
PS
100732002-01-11 Petr Sorfa <petrs@caldera.com>
10074
10075 * MAINTAINERS (write-after-approval): Add myself.
10076 * dwarf2read.c (read_tag_string_type): Handling of
10077 DW_AT_byte_size.
10078 (read_tag_string_type): FORTRAN fix to prevent propagation of
10079 first string size.
10080 (set_cu_language): Handling of DW_LANG_Fortran95
10081
747fe712
RE
100822002-01-11 Richard Earnshaw <rearnsha@arm.com>
10083
10084 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10085 GETPID(inferior_ptid).
10086 (store_inferior_registers): Likewise.
10087
f1bea926
JM
100882002-01-10 Jason Merrill <jason@redhat.com>
10089
10090 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10091 Fix DW_OP_minus.
10092
ae940673
AC
100932002-01-10 Andrew Cagney <ac131313@redhat.com>
10094
10095 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10096 and bfd/elf32-sh-nbsd.c.
10097
00546b04
MS
100982002-01-10 Michael Snyder <msnyder@redhat.com>
10099
352ed7b4
MS
10100 * NEWS: Mention --pid and corefile/proc-id behavior change.
10101
c18be923
MS
10102 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10103 * gcore.c: Include cli/cli-decode.h instead of command.h.
10104
00546b04
MS
10105 * main.c (captured_main): Add new command line option "--pid".
10106 If the second command line argument (following the symbol-file)
10107 begins with a digit, try to attach to it before trying to open
10108 it as a corefile.
10109 (print_gdb_help): Document the "--pid" argument.
10110
db60ec62
EZ
101112002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10112
10113 * completer.c (command_completer): New function.
10114
10115 * completer.h <command_completer>: Add prototype.
10116
10117 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10118 completer for the "help" command.
10119
39c22d1a
JM
101202002-01-09 Jason Merrill <jason@redhat.com>
10121
10122 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10123
c564377f
MS
101242002-01-09 Michael Snyder <msnyder@redhat.com>
10125
975aec09
MS
10126 * i386-linux-nat.c (fill_fpxregset): Make global.
10127 (store_fpxregset): Ditto.
10128
db4a10fa
MS
10129 * gregset.h (gdb_fpxregset_t): Define.
10130 (supply_fpxregset): Prototype.
10131 (fill_fpxregset): Prototype.
10132
c564377f
MS
10133 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10134
c3d45d70
RE
101352002-01-09 Richard Earnshaw <rearnsha@arm.com>
10136
10137 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10138 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10139 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10140
fcc87af1
AC
101412002-01-09 Andrew Cagney <ac131313@redhat.com>
10142
10143 * MAINTAINERS: Update target maintainer rules so that any
10144 Maintainer can approve a tested patch for a maintenance-only
10145 target.
10146
dd96c05b
RE
101472002-01-09 Richard Earnshaw <rearnsha@arm.com>
10148
d4297db9 10149 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10150
d4297db9 10151 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10152 IN_SIGTRAMP.
10153
145fdc6e
MS
101542002-01-08 Michael Snyder <msnyder@redhat.com>
10155
10156 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10157 real name of the executable, rather than the /proc name.
10158
be4d1333
MS
101592002-01-03 Michael Snyder <msnyder@redhat.com>
10160
10161 Implement a "generate-core-file" command in gdb, save target state.
10162 * gcore.c: New file. Implement new command 'generate-core-file'.
10163 Save a corefile image of the current state of the inferior.
10164 * linux-proc.c: Add linux-specific code for saving corefiles.
10165 * target.h (struct target_ops): Add new target vectors for saving
10166 corefiles; to_find_memory_regions and to_make_corefile_notes.
10167 (target_find_memory_regions): New macro.
10168 (target_make_corefile_notes): New macro.
10169 * target.c (update_current_target): Inherit new target methods.
10170 (dummy_find_memory_regions): New place-holder method.
10171 (dummy_make_corefile_notes): New place-holder method.
10172 (init_dummy_target): Initialize new dummy target vectors.
10173 * exec.c (exec_set_find_memory_regions): New function.
10174 Allow the exec_ops vector for memory regions to be taken over.
10175 (exec_make_note_section): New function, target vector method.
10176 * defs.h (exec_set_find_memory_regions): Export prototype.
10177 * procfs.c (proc_find_memory_regions): New function, corefile method.
10178 (procfs_make_note_section): New function, corefile method.
10179 (init_procfs_ops): Set new target vector pointers.
10180 (find_memory_regions_callback): New function.
10181 (procfs_do_thread_registers): New function.
10182 (procfs_corefile_thread_callback): New function.
10183 * sol-thread.c (sol_find_memory_regions): New function.
10184 (sol_make_note_section): New function.
10185 (init_sol_thread_ops): Initialize new target vectors.
10186 * inftarg.c (inftarg_set_find_memory_regions): New function.
10187 Allow to_find_memory_regions vector to be taken over.
10188 (inftarg_set_make_corefile_notes): New function.
10189 Allow to_make_corefile_notes vector to be taken over.
10190 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10191 interface layer if not target_has_execution (may be a corefile).
10192 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10193 * config/sparc/sun4sol2.mh: Ditto.
10194 * config/alpha/alpha-linux.mh: Ditto.
10195 * config/arm/linux.mh: Ditto.
10196 * config/i386/x86-64linux.mh: Ditto.
10197 * config/ia64/linux.mh: Ditto.
10198 * config/m68k/linux.mh: Ditto.
10199 * config/mips/linux.mh: Ditto.
10200 * config/powerpc/linux.mh: Ditto.
10201 * config/sparc/linux.mh: Ditto.
10202
c6b92abd
MS
102032002-01-07 Michael Snyder <msnyder@redhat.com>
10204
10205 * arm-linux-nat.c: Remove references to regcache.c internal data
10206 (registers[] and register_valid[]).
10207
4b09dc8c
MS
102082002-01-07 Michael Snyder <msnyder@redhat.com>
10209
abf22e64
AJ
10210 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10211 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10212 symbol file and shlibs.
10213 * Makefile.in: Add rule for linux-proc.o.
10214 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10215 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10216 * config/arm/linux.mh: Ditto.
10217 * config/i386/linux.mh: Ditto.
10218 * config/i386/x86-64linux.mh: Ditto.
10219 * config/ia64/linux.mh: Ditto.
10220 * config/m68k/linux.mh: Ditto.
10221 * config/mips/linux.mh: Ditto.
10222 * config/powerpc/linux.mh: Ditto.
10223 * config/sparc/linux.mh: Ditto.
10224
c25b74ac
PM
102252002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10226
10227 * win32-nat.c: Add i386-tdep.h dependency.
10228
94cd915f
MS
102292002-01-07 Michael Snyder <msnyder@redhat.com>
10230
c7cccb76
MS
10231 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10232 instead of bfd_get_arch_size. Don't bail out just because
10233 there's no exec_bfd.
abf22e64 10234
34c0bd93
MS
10235 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10236 * p-valprint.c (pascal_object_print_value): Ditto.
10237 * somread.c (som_symtab_read): Ditto.
10238 * symfile.c (simple_free_overlay_region_table): Ditto.
10239 * valops.c (value_assign): Ditto.
10240
21c1c920
MS
10241 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10242 use tilde_expand and strerror for opening save-tracepoints file.
10243
5bbd998e
MS
10244 * thread-db.c (thread_db_new_objfile): Indendation fix.
10245
94cd915f
MS
10246 * infptrace.c (GDB_MAX_ALLOCA): New define.
10247 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10248 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10249 can be overridden with whatever value is appropriate to the host).
10250 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10251 alloca to allocate potentially large buffer.
10252 * rs6000-nat.c (child_xfer_memory): Ditto.
10253 * symm-nat.c (child_xfer_memory): Ditto.
10254 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10255
494e8a93
JSC
102562002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10257
10258 From Nick Clifton <nickc@redhat.com>
10259 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10260
d0e1d48e
MS
102612002-01-07 Michael Snyder <msnyder@redhat.com>
10262
abf22e64 10263 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10264 Don't use exec_bfd if it's NULL.
10265
290b2c7a
MK
102662002-01-06 Mark Kettenis <kettenis@gnu.org>
10267
abf22e64 10268 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10269
aef21287
AC
102702002-01-06 Andrew Cagney <ac131313@redhat.com>
10271
10272 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10273 * gnu-nat.c: Ditto.
10274
30efa627
AC
102752002-01-06 Andrew Cagney <ac131313@redhat.com>
10276
10277 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10278 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10279 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10280 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10281 z8k-coff have not been multi-arched. Update z8k-coff build
10282 status.
10283
9b4ff276
AC
102842002-01-06 Andrew Cagney <ac131313@redhat.com>
10285
10286 * MAINTAINERS: Mark a29k target as obsolete.
10287 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10288 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10289 comments.
10290 * NEWS: Note that a29k targets are obsolete.
10291 * a29k-tdep.c: Mark as obsolete.
10292 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10293 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10294 a29k-*-vxworks* targets as obsolete.
10295 * remote-adapt.c: Obsolete.
10296 * remote-eb.c: Obsolete.
10297 * remote-mm.c: Obsolete.
10298 * remote-udi.c: Obsolete.
10299 * config/a29k/a29k-udi.mt: Obsolete.
10300 * config/a29k/a29k.mt: Obsolete.
10301 * config/a29k/tm-a29k.h: Obsolete.
10302 * config/a29k/tm-vx29k.h: Obsolete.
10303 * config/a29k/vx29k.mt: Obsolete.
10304
a9011d31
AC
103052002-01-05 Andrew Cagney <ac131313@redhat.com>
10306
10307 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10308 with BFD_ENDIAN_BIG.
10309
9299404e
AC
103102002-01-05 Andrew Cagney <ac131313@redhat.com>
10311
10312 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10313 * configure, config.in: Re-generate.
10314 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10315 * defs.h: Do not include <endian.h>.
10316
7e89e357
JT
103172002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10318
10319 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10320 * config.in: Regenerate.
10321 * configure.in: Update copyright years.
10322 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10323 * configure: Regenerate.
10324 * i386bsd-nat.c: Update copyright years.
10325 (fill_gregset): Use regcache_collect.
10326 (fetch_inferior_registers): Only fetch integer registers
10327 if requested to do so. Add support for XMM registers
10328 using PT_GETXMMREGS.
10329 (store_inferior_registers): Only store integer registers
10330 if requested to do so. Add support for XMM registers
10331 using PT_SETXMMREGS.
10332 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10333 (store_inferior_registers): Remove.
10334 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10335 (fetch_elfcore_registers): New function.
10336 (i386nbsd_elfcore_fns): New.
10337 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10338 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10339 i386bsd-nat.o.
10340 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10341 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10342 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10343 * config/i386/tm-nbsd.h: Update copyright years.
10344 (HAVE_SSE_REGS): Define.
10345 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10346 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10347 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10348 (SIGCONTEXT_PC_OFFSET): Remove.
10349 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10350
a752853e
AC
103512002-01-05 Andrew Cagney <ac131313@redhat.com>
10352
10353 * configure.tgt: Remove powerpc-*-macos* target.
10354 * config/m68k/xm-mpw.h: Delete file.
10355 * config/xm-mpw.h: Delete file.
10356 * ser-mac.c: Delete file.
10357 * mpw-make.sed: Delete file.
10358 * mpw-config.in: Delete file.
10359 * mac-xdep.c: Delete file.
10360 * mac-gdb.r: Delete file.
10361 * mac-defs.h: Delete file.
10362 * mac-nat.c: Delete file.
10363 * config/powerpc/macos.mh: Delete file.
10364 * config/powerpc/macos.mt: Delete file.
10365 * config/powerpc/nm-macos.h: Delete file.
10366 * config/powerpc/tm-macos.h: Delete file.
10367 * source.c (openp, open_source_file): Remove obsolete code.
10368 * top.c (gdb_readline): Ditto.
10369 * utils.c (query): Ditto.
10370 * event-top.c (display_gdb_prompt): Ditto.
10371 * Makefile.in (ser-mac.o): Delete obsolete target.
10372 * NEWS: Update.
10373
d7449b42
AC
103742002-01-04 Andrew Cagney <ac131313@redhat.com>
10375
10376 * defs.h (BIG_ENDIAN): Delete macro definition.
10377 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10378 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10379 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10380 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10381 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10382 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10383 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10384 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10385 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10386 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10387 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10388 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10389 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10390 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10391 * gdbarch.c: Re-generate.
10392
356374e8
DJ
103932002-01-04 Daniel Jacobowitz <drow@mvista.com>
10394
10395 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10396 for core files.
10397
a2b8f8f8
JT
103982002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10399
10400 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10401
12466af9
AC
104022002-01-04 Andrew Cagney <ac131313@redhat.com>
10403
10404 * value.h (value_ptr): Delete typedef.
10405
3549ab40
JT
104062002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10407
10408 * i386nbsd-nat.c: Update copyright years.
10409 Include i386-tdep.h.
10410
fedbd091
EZ
104112002-01-04 Elena Zannoni <ezannoni@redhat.com>
10412
10413 * stabsread.c: Update copyright years.
10414
10415 From Debashis Mahata <debashis.mahata@wipro.com>:
10416 (read_struct_fields): Deal with Sun C compiler erroneous stab
10417 output for structs and unions.
fec8b34f 10418 Fix PR gdb/269.
fedbd091 10419
eb43544b
DJ
104202002-01-04 Daniel Jacobowitz <drow@mvista.com>
10421
10422 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10423 prototype.
10424
1514d34e
DJ
104252002-01-04 Daniel Jacobowitz <drow@mvista.com>
10426
10427 * cp-abi.c: Fix whitespace.
10428 (baseclass_offset): New wrapper function.
10429 * cp-abi.h (baseclass_offset): Add prototype.
10430 (struct cp_abi_ops): Add baseclass_offset pointer.
10431
10432 * valops.c (vb_match): Move to...
10433 * gnu-v2-abi.c (vb_match): here.
10434 * valops.c (baseclass_offset): Move to...
10435 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10436
10437 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10438
10439 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10440 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10441 * hpacc-abi.c (init_hpacc_ops): Likewise.
10442
7f8c9282
DJ
104432002-01-04 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * valops.c (find_overload_match): Accept obj as a
10446 reference parameter. Update it before returning.
10447 * value.h (find_overload_match): Update prototype.
10448 * eval.c (evaluate_subexp_standard): Pass object to
10449 find_overload_match by reference.
10450
f23631e4
AC
104512002-01-03 Andrew Cagney <ac131313@redhat.com>
10452
10453 * valarith.c: Replace value_ptr with struct value pointer. Remove
10454 register attribute from value declarations.
10455 * valops.c: Ditto.
10456 * value.h: Ditto.
10457 * scm-lang.c (scm_lookup_name): Ditto.
10458
79e10fab 104592002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 10460
79e10fab
AC
10461 Abstract the functionality of iterating over mapped memory
10462 regions into a general purpose iterator function.
abf22e64 10463 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
10464 iterator for memory sections.
10465 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10466 (solib_mappings_callback): New function, callback for above.
10467 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10468 (info_mappings_callback): New function, callback for above.
10469
10470 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10471
c5ad026a
MK
104722002-01-01 Mark Kettenis <kettenis@gnu.org>
10473
d2a7c97a
MK
10474 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10475 * i386-tdep.c: Include "elf-bfd.h".
10476 (process_note_abi_tag_sections): New function.
10477 (i386_gdbarch_init): Add code to recognize various OS/ABI
10478 combinations.
10479
c5ad026a
MK
10480 * maint.c (_initialize_maint_cmds): Add missing \ in
10481 string-literal.
10482
a1a5b71e 10483For older changes see ChangeLog-2001
c906108c
SS
10484\f
10485Local Variables:
10486mode: change-log
10487left-margin: 8
10488fill-column: 74
10489version-control: never
10490End:
This page took 0.760007 seconds and 4 git commands to generate.