2002-08-25 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2
3 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4 instead of deprecated_store_return_value. Fix fallout from
5 2002-08-23 Andrew Cagney <cagney@redhat.com>.
6
7 2002-08-25 Andrew Cagney <ac131313@redhat.com>
8
9 * regcache.c (max_register_size): New function.
10 (init_legacy_regcache_descr): Ensure that max_register_size is
11 large enough for REGISTER_VIRTUAL_SIZE.
12 * regcache.h (max_register_size): Declare.
13
14 2002-08-24 Andrew Cagney <ac131313@redhat.com>
15
16 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
17 store_return_value.
18 (e500_extract_return_value): Change type of valbuf pointer to
19 void.
20
21 2002-08-24 Mark Kettenis <kettenis@gnu.org>
22
23 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
24 workaround.
25
26 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
27 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
28 long long) to prevent compiler warning on 64-bit systems.
29
30 2002-08-23 Andrew Cagney <cagney@redhat.com>
31
32 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
33 (DEPRECATED_STORE_RETURN_VALUE): New method.
34 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
35 * gdbarch.h, gdbarch.c: Re-generate.
36
37 * values.c (set_return_value): Pass current_regcache to
38 STORE_RETURN_VALUE.
39 * arch-utils.h (legacy_store_return_value): Declare.
40 * arch-utils.c (legacy_store_return_value): New function.
41 (legacy_extract_return_value): Update parameters.
42
43 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
44 STORE_RETURN_VALUE.
45 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
46 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
47 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
48 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
49 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
50 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
51 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
52 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
53 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
54 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
55
56 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
57 * i386-tdep.c (i386_extract_return_value): Update.
58 * arch-utils.c (legacy_extract_return_value): Update.
59 * frv-tdep.c (frv_gdbarch_init): Update.
60 * cris-tdep.c (cris_gdbarch_init): Update.
61 * d10v-tdep.c (d10v_gdbarch_init): Update.
62 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
63 * m68k-tdep.c (m68k_gdbarch_init): Update.
64 * mcore-tdep.c (mcore_gdbarch_init): Update.
65 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
66 * s390-tdep.c (s390_gdbarch_init): Update.
67 * sparc-tdep.c (sparc_gdbarch_init): Update.
68 * sh-tdep.c (sh_gdbarch_init): Update.
69 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
70 * v850-tdep.c (v850_gdbarch_init): Update.
71 * avr-tdep.c (avr_gdbarch_init): Update.
72 * ia64-tdep.c (ia64_gdbarch_init): Update.
73 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
74 * vax-tdep.c (vax_gdbarch_init): Update.
75 * alpha-tdep.c (alpha_gdbarch_init): Update.
76 * arm-tdep.c (arm_gdbarch_init): Update.
77 * mips-tdep.c (mips_gdbarch_init): Update.
78 * i386-tdep.c (i386_gdbarch_init): Update.
79
80 2002-08-23 Andrew Cagney <ac131313@redhat.com>
81
82 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
83 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
84
85 2002-08-24 Mark Kettenis <kettenis@gnu.org>
86
87 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
88 problems.
89
90 2002-08-23 Joel Brobecker <brobecker@gnat.com>
91
92 * infrun.c (handle_inferior_event): Move a comment outside of a
93 function call, in order to avoid indent reformatting this part
94 of the code in an unreadable way.
95
96 2002-08-23 Grace Sainsbury <graces@redhat.com>
97
98 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
99 when breakpoints fail. Move general breakpoint error messages to
100 insert_breakpoints.
101 * breakpoint.c (insert_breakpoints): Change warnings when
102 breakpoints are nto inserted to specify the type. Remove call to
103 memory_error when hardware breakpoints can't be inserted. Remove
104 multiple calls to warning so all messages are sent to the user at
105 once.
106 (delete_breakpoints): Make insert error messsages more explicit.
107
108 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
109
110 * ChangeLog: Move gdbserver entries after GDB 5.2 to
111 gdbserver/ChangeLog.
112
113 2002-08-23 Mark Kettenis <kettenis@gnu.org>
114
115 * i386-tdep.c: Include "objfiles.h".
116 (i386_svr4_init_abi): Set in_solib_call_trampoline and
117 skip_trampoline_code.
118 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
119 (CPLUS_MARKER): Define to '.'.
120
121 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
122 member.
123 (linux_corefile_thread_callback): Increase args->num_notes.
124 (linux_make_note_section): Initialize thread_args.num_notes, and
125 use it to determine whether notes for any threads were created.
126
127 2002-08-23 Donn Terry <dterry@microsoft.com>
128
129 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
130 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
131 and PCUNKILL.
132 (write_with_trace): Conditionalize out the switch branch handling
133 PCSHOLD if the corresponding macro is not defined. Likewise for
134 PRSABORT and PRSTOP.
135 This change will be needed by the Interix port.
136
137 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
138
139 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
140 ev_offset fields.
141 (skip_prologue): Add support for BookE/e500 instructions.
142 (e500_extract_return_value): New function.
143 (frame_get_saved_regs): Add support for saving ev registers and
144 pseudo gpr's.
145 (e500_store_return_value): New function.
146 (rs6000_gdbarch_init): Move up default intializations of
147 deprecated_extract_return_value and store_return_value. Overwrite
148 init of store_return_value with e500 specific version.
149 Set extract_return_value for e500.
150
151 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
152
153 * blockframe.c (generic_call_dummy_register_unwind): Use
154 regcache_cooked_read to catch cases in which the variable is
155 stored in a pseudo register.
156
157 2002-08-22 Andrew Cagney <cagney@redhat.com>
158
159 * NEWS: Mention that the i960 has been made obsolete.
160 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
161 i960-tdep.c
162 (remote-nrom.o): Obsolete target.
163 (remote-nindy.o, i960-tdep.o): Ditto.
164 * remote-nrom.c: Make file obsolete.
165 * remote-nindy.c, remote-vx960.c: Ditto.
166 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
167 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
168 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
169 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
170 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
171 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
172 i960-*-vxworks* obsolete.
173 * MAINTAINERS: Note that the i960 is obsolete.
174
175 2002-08-21 Corinna Vinschen <vinschen@redhat.com
176
177 * aix-thread.c (aix_thread_detach): Disable thread debugging on
178 detach to allow reinitialization.
179
180 2002-08-22 Andrew Cagney <ac131313@redhat.com>
181
182 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
183 attempt).
184
185 2002-08-22 Jim Blandy <jimb@redhat.com>
186
187 * coffread.c (coff_symfile_read): Don't try to read the line
188 number table from disk if the image file doesn't have a symbol
189 table; we'll never actually look at the info anyway, and Windows
190 ships DLL's with bogus file offsets for the line number data.
191
192 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
193
194 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
195 an e500 executable.
196
197 2002-08-21 Michael Snyder <msnyder@redhat.com>
198
199 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
200 (MSYMBOL_SIZE): Replace macro with function.
201 (DEFAULT_MIPS_TYPE): Delete unused macro.
202 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
203 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
204
205 2002-08-21 Jim Blandy <jimb@redhat.com>
206
207 * valops.c (value_cast): Simplify and correct logic for doing a
208 static cast from a pointer to a base class to a pointer to a
209 derived class.
210
211 2002-08-21 Andrew Cagney <ac131313@redhat.com>
212
213 * infcmd.c (default_print_registers_info): Replace
214 do_registers_info.
215 (registers_info): Use gdbarch_print_registers_info instead of
216 DO_REGISTERS_INFO.
217 * inferior.h (default_print_registers_info): Replace
218 do_registers_info.
219 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
220 (DO_REGISTERS_INFO): Change to a predicate function.
221 * gdbarch.h, gdbarch.c: Regenerate.
222
223 2002-08-21 Keith Seitz <keiths@redhat.com>
224
225 * gdb-events.sh: Add target-changed event.
226 * gdb-events.c: Regenerated.
227 * gdb-events.c: Regenerated.
228 * valops.c (value_assign): Add target-changed event notification
229 to inlval_register, lval_memory, and lval_reg_frame_relative.
230
231 2002-08-21 Joel Brobecker <brobecker@gnat.com>
232
233 * NEWS: Add an entry regarding the improvement of the next/step
234 operation on Alpha Tru64 multi-processor machines.
235
236 2002-08-21 Andrew Cagney <ac131313@redhat.com>
237
238 * Makefile.in: Update dependencies for mi/ cli/ and tui/
239 directores.
240 * Makefile.in: Update all _h macro definitions.
241 * Makefile.in (install-gdbtk): Move to install section.
242 (rdi-share/libangsd.a): Move to end of file.
243
244 2002-08-19 Andrew Cagney <ac131313@redhat.com>
245
246 * frame.c (frame_register_unwind): When a register, set addrp to
247 the register's byte.
248
249 2002-08-20 Michael Snyder <msnyder@redhat.com>
250
251 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
252 used locally, so move them from the target machine header to here.
253 (mips_set_processor_type, mips_register_name, mips32_next_pc,
254 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
255 Make static.
256 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
257
258 2002-08-20 Andrew Cagney <cagney@redhat.com>
259
260 * NEWS: Mention that the Apollo line was made obsolete.
261 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
262 m68*-hp-hpux* obsolete.
263 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
264 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
265 * buildsym.c (make_blockvector): Make static.
266 * buildsym.h (make_blockvector): Make extern declaration obsolete.
267 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
268 (ALLDEPFILES): Remove dstread.c.
269 (dstread.o): Obsolete make rule.
270 * dstread.c: Makefile obsolete.
271 * dst.h: Ditto.
272 * config/m68k/hp300hpux.mt: Ditto.
273 * config/m68k/hp300hpux.mh: Ditto.
274 * config/m68k/hp300bsd.mt: Ditto.
275 * config/m68k/hp300bsd.mh: Ditto.
276 * config/m68k/apollo68b.mt: Ditto.
277 * config/m68k/apollo68v.mh: Ditto.
278 * config/m68k/apollo68b.mh: Ditto.
279
280 2002-08-20 Michael Snyder <msnyder@redhat.com>
281
282 * mips-tdep.c (mips_in_return_stub): Make static.
283 (mips_gdbarch_init): Set in_solib_return_trampoline.
284 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
285
286 2002-08-20 Michael Snyder <msnyder@redhat.com>
287
288 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
289 * gdbarch.c, gdbarch.h: Regenerate.
290 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
291 Add.
292 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
293
294 2002-08-20 Michael Snyder <msnyder@redhat.com>
295
296 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
297 (mips_gdbarch_init): Set skip_trampoline_code,
298 in_solib_call_trampoline.
299 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
300 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
301
302 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
303
304 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
305
306 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
307 vector type for ev registers.
308 (e500_pseudo_register_read): New function.
309 (e500_pseudo_register_write): New function.
310 (e500_dwarf2_reg_to_regnum): New function.
311 (PPC_UISA_NOFP_SPRS): New macro.
312 (PPC_EV_REGS): New macro.
313 (PPC_GPRS_PSEUDO_REGS): New macro.
314 (registers_e500): New register set for e500.
315 (variants): Add e500 variant.
316 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
317 before setting architectural dependent variations. Initialize ev
318 registers numbers. Add case for e500 architecture. Set the
319 number of pseudo registers.
320
321 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
322
323 * rs6000-tdep.c: Clean up comments.
324
325 2002-08-20 Andrew Cagney <cagney@redhat.com>
326
327 * h8300-tdep.c: Re-indent file.
328
329 2002-08-20 Jim Blandy <jimb@redhat.com>
330
331 * Makefile.in (LDFLAGS): Allow the configure script to establish a
332 default for this.
333
334 2002-08-20 Keith Seitz <keiths@redhat.com>
335
336 * breakpoints.c (watch_command_1): Use internal breakpoint
337 when setting a watchpoint_scope breakpoint.
338
339 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
340
341 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
342 (build_builtin_type_vec64i): Ditto.
343 (build_builtin_type_vec128): Ditto.
344 (build_builtin_type_vec128i): Ditto.
345
346 2002-08-19 Michael Snyder <msnyder@redhat.com>
347
348 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
349 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
350 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
351 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
352 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
353 CALL_DUMMY_ADDRESS): Delete.
354 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
355 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
356 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
357 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
358 push_return_address.
359 (mips_register_raw_size, mips_eabi_use_struct_convention,
360 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
361 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
362 mips_init_extra_frame_info, mips_eabi_push_arguments,
363 mips_n32n64_push_arguments, mips_push_return_address,
364 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
365 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
366
367 2002-08-19 Michael Snyder <msnyder@redhat.com>
368
369 * mips-tdep.c (mips_frame_num_args): New function.
370 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
371 frame_saved_pc, frame_args_address, frame_locals_address,
372 frame_num_args, and frame_args_skip.
373 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
374 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
375 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
376 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
377
378 2002-08-20 Michael Snyder <msnyder@redhat.com>
379
380 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
381 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
382 * mips-tdep.c (mips_store_struct_return): New function.
383 (mips_extract_struct_value_address): New function.
384 (mips_gdbarch_init): Set store_struct_return and
385 extract_struct_value_address.
386
387 2002-08-20 David Carlton <carlton@math.stanford.edu>
388
389 * dwarf2read.c (dwarf2_build_psymtabs): Check that
390 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
391 (read_file_scope): Check that line_header is nonzero before
392 decoding macro information.
393
394 2002-08-20 Mark Kettenis <kettenis@gnu.org>
395
396 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
397 flag the general-purpose registers as floating-point on targets
398 that don't support the floating-point registers.
399
400 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
401
402 * rs6000-tdep.c (altivec_register_p): Delete.
403 (rs6000_do_altivec_registers): Delete.
404 (rs6000_altivec_registers_info): Delete.
405 (rs6000_do_registers_info): Delete.
406 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
407 (rs6000_gdbarch_init): Remove setting of do_registers_info.
408
409 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
410
411 * infcmd.c (do_registers_info): Print vector registers in hex
412 format only.
413 (print_vector_info): Check that printing registers
414 makes sense.
415 (print_float_info): Ditto.
416
417 2002-08-20 Andrew Cagney <ac131313@redhat.com>
418
419 * mips-tdep.c (mips_gdbarch_init): Update.
420 (mips_o32_extract_return_value): Rewrite.
421 (mips_o32_store_return_value): Rewrite.
422 (mips_o32_xfer_return_value): New function.
423 (mips_xfer_register): Tweak debug print message. Allow for
424 buf_offset when dumping the value transfered.
425
426 2002-08-20 Andrew Cagney <ac131313@redhat.com>
427
428 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
429 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
430 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
431 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
432 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
433
434 2002-08-14 Michael Snyder <msnyder@redhat.com>
435
436 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
437
438 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
439
440 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
441 register.
442 (P): New macro to define a register as a pseudo register.
443 (R, R4, R8, R16, FR32, R64, R0): Updated.
444 (struct variant): Add new fields for number of pseudo registers
445 and number of total registers.
446 (tot_num_registers): New macro replacing....
447 (num_registers): ...deleted macro.
448 (num_registers): New function.
449 (num_pseudo_registers): New function.
450 (variants): Update all variants to intialize new fields correctly.
451 Postpone initialization of number of pseudo regs and real regs.
452 (init_variants): New function.
453 (rs6000_gdbarch_init): Initialize variants. Update calculation of
454 registers offsets.
455
456 2002-08-19 David Carlton <carlton@math.stanford.edu>
457
458 * valops.c (search_struct_field): Change error message to treat
459 return value of 0 from value_static_field as meaning that field is
460 optimized out.
461 (value_struct_elt_for_reference): Ditto.
462 * values.c (value_static_field): Treat an unresolved location the
463 same as a nonexistent symbol. Fix PR gdb/635.
464 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
465 enclosed. Fix PR gdb/574.
466 * MAINTAINERS: Add self to Write After Approval list.
467
468 2002-08-19 Andrew Cagney <ac131313@redhat.com>
469
470 * mips-tdep.c (mips_xfer_register): New function.
471 (mips_n32n64_extract_return_value): Rewrite.
472 (mips_gdbarch_init): For N32 and N64, set extract_return_value
473 instead of deprecated_extract_return_value.
474
475 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
476
477 * rs6000-tdep.c (TDEP): Delete macro.
478 (branch_dest): Replace use of TDEP macro with its body.
479 (rs6000_pop_frame): Ditto.
480 (rs6000_push_arguments): Ditto.
481 (rs6000_skip_trampoline_code): Ditto.
482 (rs6000_frame_saved_pc): Ditto.
483 (rs6000_frame_chain): Ditto.
484 (rs6000_register_name): Ditto.
485 (rs6000_register_byte): Ditto.
486 (rs6000_register_raw_size): Ditto.
487 (rs6000_register_virtual_type): Ditto.
488 (rs6000_register_convertible): Ditto.
489 (rs6000_convert_from_func_ptr_addr): Ditto.
490
491 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
492
493 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
494 conditionally.
495 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
496 MIPS_LINUX_JB_ELEMENT_SIZE.
497 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
498 for MAX_REGISTER_RAW_SIZE arrays.
499 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
500 MIPS_LINUX_JB_ELEMENT_SIZE.
501
502 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
503
504 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
505
506 2002-08-19 Aidan Skinner <aidan@velvet.net>
507
508 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
509 ada-valprint.c ada-tasks.c.
510 (YYFILES): Add ada-exp.y.
511 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
512 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
513 (ada-exp.tab.o): New target.
514
515 2002-08-18 Andrew Cagney <ac131313@redhat.com>
516
517 * regcache.c (regcache_xfer_part): New function.
518 (regcache_raw_read_part): New function.
519 (regcache_raw_write_part): New function.
520 (regcache_cooked_read_part): New function.
521 (regcache_cooked_write_part): New function.
522 * regcache.h (regcache_raw_read_part): Declare.
523 (regcache_raw_write_part): Declare.
524 (regcache_cooked_read_part): Declare.
525 (regcache_cooked_write_part): Declare.
526
527 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
528
529 * remote.c (remote_open_1): Add async_p.
530 (remote_async_open_1): Delete.
531 (open_remote_target): Delete.
532 (remote_open, extended_remote_open): Update calls to remote_open_1.
533 (remote_async_open, extended_remote_async_open): Call
534 remote_open_1 instead of remote_async_open_1.
535
536 2002-08-19 Mark Kettenis <kettenis@gnu.org>
537
538 * blockframe.c: Fix a few coding standard violations.
539
540 2002-08-19 Mark Kettenis <kettenis@gnu.org>
541
542 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
543 here from ...
544 * config/i386/tm-i386sco5.h: ... here. File removed.
545 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
546
547 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
548 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
549 (TM_FILE): Set to tm-i386.h.
550 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
551 * config/i386/tm-i386v.h: Remove file.
552 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
553 instead of "i386/tm-i386v.h".
554 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
555 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
556 "i386/tm-i386v.h".
557 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
558 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
559 "i386/tm-i386.h".
560
561 2002-08-18 Mark Kettenis <kettenis@gnu.org>
562
563 * config/i386/nm-i386v.h: Add protection against
564 multiple-inclusion.
565 (i386_register_u_addr): Remove prototype.
566 (register_u_addr): New prototype.
567 (REGISTER_U_ADDR): Redefine accordingly.
568 * i386v-nat.c: Improve several comments.
569 (i386_register_u_addr): Change signature and rename to
570 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
571 ubase variable.
572
573 2002-08-18 Andrew Cagney <ac131313@redhat.com>
574
575 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
576 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
577 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
578 deprecated_extract_return_value.
579 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
580 rename mips_o32o64_push_arguments.
581 (mips_gdbarch_init): Update.
582 (mips_extract_return_value): Delete.
583 (mips_o32_extract_return_value): Clone mips_extract_return_value.
584 (mips_o64_extract_return_value): Clone mips_extract_return_value.
585 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
586 (mips_n32n64_extract_return_value): Clone
587 mips_extract_return_value.
588 (mips_store_return_value): Delete.
589 (mips_o32_store_return_value): Clone mips_store_return_value.
590 (mips_o64_store_return_value): Clone mips_store_return_value.
591 (mips_eabi_store_return_value): Clone mips_store_return_value.
592 (mips_n32n64_store_return_value): Clone mips_store_return_value.
593
594 2002-08-18 Aidan Skinner <aidan@velvet.net>
595
596 * ada-lang.c: Use gdb_string.h instead of <string.h>.
597 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
598
599 2002-08-18 Aidan Skinner <aidan@velvet.net>
600
601 * ada-lang.c: Run through gdb_indent.sh.
602 * ada-lang.h: Run through gdb_indent.sh.
603 * ada-tasks.c: Run through gdb_indent.sh.
604 * ada-typeprint.c: Run through gdb_indent.sh.
605 * ada-valprint.c: Run through gdb_indent.sh.
606
607 2002-08-18 Andrew Cagney <ac131313@redhat.com>
608
609 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
610 ABI.
611
612 2002-08-18 Mark Kettenis <kettenis@gnu.org>
613
614 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
615
616 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
617 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
618
619 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
620 write_register_gen instead of write_register_bytes.
621
622 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
623 i[3456]-*-osf1mk* configurations have been made obsolete.
624 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
625 i[3456]86-*-osf1mk* hosts obsolete.
626 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
627 targets obsolete.
628 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
629 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
630 config/i386/i386m3.mt, config/i386/nm-m3.h,
631 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
632 config/i386/i386mk.mh, config/i386/i386mk.mt,
633 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
634 obsolete.
635 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
636 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
637 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
638
639 2002-08-18 Andrew Cagney <ac131313@redhat.com>
640
641 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
642 (hppa_value_returned_from_stack): Declare.
643 (hppa_extract_return_value): Declare.
644 * config/pa/hppa.mt: New file.
645 * configure.tgt: Recognize hppa*-*-*.
646 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
647
648 2002-08-18 Mark Kettenis <kettenis@gnu.org>
649
650 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
651 comment.
652
653 2002-08-17 Mark Kettenis <kettenis@gnu.org>
654
655 * top.c (gdb_rl_operate_and_get_next): Make sure
656 operate-and-get-next functions correctly even when the history
657 list is completely filled.
658
659 2002-08-18 Andrew Cagney <ac131313@redhat.com>
660
661 * MAINTAINERS (Target Instruction Set Architectures): Rename
662 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
663 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
664 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
665 already listed under Host/Native.
666
667 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
668 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
669 mips*-*-*.
670
671 2002-08-17 Andrew Cagney <ac131313@redhat.com>
672
673 * config/ia64/ia64.mt: New file.
674 * config/alpha/alpha.mt: New file.
675 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
676 ia64-linux-gnu. Mention that ia64-elf is broken.
677 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
678
679 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
680
681 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
682 generic_func_frame_valid instead of func_frame_valid.
683
684 2002-08-16 Joel Brobecker <brobecker@gnat.com>
685
686 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
687 procfs appears to be broken when debugging on multi-processor
688 machines. So enable software single stepping in order to avoid
689 using the procfs interface to do next/step operations, using
690 internal breakpoints instead.
691
692 * infrun.c (handle_inferior_event): Readjust the stop_pc by
693 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
694 make this pc address equal to the value it would have if the
695 system stepping capability was used. Also set a new flag used
696 to ensure that we don't readjust the PC one more time later.
697
698 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
699 address by DECR_PC_AFTER_BREAK when software single step is
700 in use for this architecture, as this has already been taken
701 care of in handle_inferior_event().
702
703 2002-08-16 Joel Brobecker <brobecker@gnat.com>
704
705 * infrun.c (handle_inferior_event): Minor reformatting, to make
706 a rather long condition expression easier to read.
707
708 2002-08-16 Andrew Cagney <ac131313@redhat.com>
709
710 * Makefile.in (gdbtk.o): Move to end of file.
711 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
712 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
713 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
714 (gdbtk-wrapper.o, gdbres.o): Ditto.
715
716 2002-08-16 Andrew Cagney <ac131313@redhat.com>
717
718 * Makefile.in (copying.o): Separate out compile rule.
719 (hpux-thread.o, procfs.o, signals.o): Ditto.
720 (v850ice.o, z8k-tdep.o): Ditto.
721 (tui-file.o): Move to TUI section.
722 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
723 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
724
725 2002-08-16 Joel Brobecker <brobecker@gnat.com>
726
727 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
728 skip_trampoline_code, for better namespace-proofing.
729
730 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
731
732 2002-08-16 Joel Brobecker <brobecker@gnat.com>
733
734 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
735
736 2002-08-16 Joel Brobecker <brobecker@gnat.com>
737
738 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
739 signal, check whether we hit a breakpoint before checking for a
740 single step breakpoint. Otherwise, GDB fails to notice that a
741 breakpoint has been hit when stepping onto a breakpoint.
742
743 2002-08-16 Keith Seitz <keiths@redhat.com>
744
745 * gdb-events.sh (clear_gdb_event_hooks): New function.
746 * gdb-events.c: Regenerate.
747 * gdb-events.h: Regenerate.
748
749 2002-08-16 Andrew Cagney <ac131313@redhat.com>
750
751 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
752 not_a_sw_breakpoint.
753 * breakpoint.h (bpstat_stop_status): Add parameter names.
754
755 2002-08-16 Grace Sainsbury <graces@redhat.com>
756
757 * remote.c (remote_insert_hw_breakpoint)
758 (remote_remove_hw_breakpoint): Fix calculation of length field
759 for Z-packet.
760
761 2002-08-15 Michael Snyder <msnyder@redhat.com>
762
763 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
764 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
765 (supply_fpregset): Ditto.
766
767 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
768 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
769 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
770 (TARGET_READ_SP): Delete.
771 (DO_REGISTERS_INFO): Delete.
772 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
773 Delete.
774 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
775 from macros to functions.
776
777 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
778 (mips_register_convertible, mips_register_convert_to_virtual,
779 mips_register_convert_to_raw): Make static.
780 (mips_read_sp): New function.
781 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
782 (mips_do_registers_info): Make static.
783 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
784 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
785 (mips_register_convert_from_type, mips_register_convert_to_type):
786 New functions.
787 (mips_gdbarch_init): Set up function_start_offset,
788 register_virtual_size, pc_in_sigtramp.
789
790 2002-08-15 Andrew Cagney <ac131313@redhat.com>
791
792 * infcmd.c (vector_info): New function.
793 (_initialize_infcmd): Add command "info vector".
794 (print_vector_info): New function.
795
796 * gdbarch.sh (PRINT_VECTOR_INFO): New method
797 * gdbarch.h, gdbarch.c: Regenerate.
798
799 2002-08-15 Andrew Cagney <ac131313@redhat.com>
800
801 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
802 ``print_all''. Only print vector registers when ``print_all''.
803
804 2002-08-15 Andrew Cagney <ac131313@redhat.com>
805
806 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
807 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
808
809 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
810 Add `args' parameter.
811 * gdbarch.h, gdbarch.c: Regenerate.
812
813 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
814
815 * infcmd.c (float_info): Call print_float_info.
816 (print_float_info): New function. By default, print the
817 floating-point registers.
818
819 * arch-utils.h (default_print_float_info): Delete declaration.
820 * arch-utils.c (default_print_float_info): Delete function.
821
822 2002-08-16 Mark Kettenis <kettenis@gnu.org>
823
824 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
825 out define.
826
827 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
828 FRAME.
829
830 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
831 * configure.host: Make i[3456]86-*-aix host obsolete.
832 * configure.tgt: Make i[3456]86-*-aix target obsolete.
833 * config/i386/i386aix.mh, config/i386/i386aix.mt,
834 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
835 config/i386/xm-i386aix.h: Make files obsolete.
836 * i386aix-nat.c: Make file obsolete.
837 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
838 (i386aix-nat.o): Make target obsolete.
839
840 * config/i386/nm-gnu.h: Removed.
841 * config/i386/nm-i386gnu.h: New file.
842 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
843 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
844 Moved here from ...
845 * config/i386/tm-i386gnu.h: ... here. Removed.
846 * config/i386/xm-i386gnu.h: Removed.
847 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
848 (NAT_FILE): Set to nm-i386gnu.h.
849 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
850 * i386-tdep.c: New file.
851 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
852 (i386gnu-tdep.o): Specify dependencies.
853
854 2002-08-15 Mark Kettenis <kettenis@gnu.org>
855
856 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
857 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
858 Adjust a few comments to reflect reality a bit closer.
859 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
860 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
861 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
862 target_insert_watchpoint, target_remove_watchpoint):
863 Move defines to ...
864 * config/i386/nm-i386sco5.h: ... here.
865 (kernel_u_size): Add prototype. Improve a few comments and add
866 protection against multiple inclusion.
867
868 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
869 out define.
870
871 * uw-thread.c (SP_ARG0): Define if not already defined.
872 * config/i386/tm-i386.h (SO_ARG0): Remove define.
873
874 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
875
876 * config/i386/tm-i386.h: Don't include "regcache.h".
877
878 * i387-tdep.h (i387_print_float_info): New prototype.
879 * i387-tdep.c (print_i387_value, print_i387_ext,
880 print_i387_status_word, print_i387_control_word): Add `struct
881 ui_file *' argument and use it for output.
882 (i387_print_float_info): Renamed from i387_float_info. Add
883 `struct gdbarch *' and `struct ui_file *' arguments and use the
884 latter for output.
885 * i386-tdep.c: Include "i387-tdep.h".
886 (i386_gdbarch_init): Set print_float_info.
887 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
888 (FLOAT_INFO): Remove define.
889
890 2002-08-13 Michael Snyder <msnyder@redhat.com>
891
892 * mips-tdep.c (mips_push_arguments): Rename to
893 mips_eabi_push_arguments, and tune for EABI.
894 (MIPS_REGS_HAVE_HOME_P): Delete.
895 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
896 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
897 Delete references to mips_regs_have_home_p.
898
899 2002-08-14 Keith Seitz <keiths@redhat.com>
900
901 * Makefile.in (install-gdbtk): Create insight plugin directory.
902 Install plugins.tcl file.
903
904 2002-08-14 Keith Seitz <keiths@redhat.com>
905
906 * configure.in: Move SUBDIRS to near top of the file so that
907 --enable options may add things to it.
908 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
909 * configure: Regenerate.
910
911 2002-08-13 Michael Snyder <msnyder@redhat.com>
912
913 * mips-tdep.c (mips_o32o64_push_arguments): New function,
914 cloned from mips_push_arguments, tuned for o32/o64 ABI.
915 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
916
917 2002-08-13 Andrew Cagney <ac131313@redhat.com>
918
919 * vax-tdep.c (vax_get_saved_register): Delete function.
920 (vax_gdbarch_init): Update.
921 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
922 (ns32k_gdbarch_init): Update.
923 * alpha-tdep.c (alpha_get_saved_register): Delete function.
924 (alpha_gdbarch_init): Update.
925
926 2002-08-13 Andrew Cagney <cagney@redhat.com>
927
928 * regcache.c (init_regcache_descr): Overallocate the
929 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
930 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
931 nr_raw_registers.
932 (set_register_cached): Add range checking assertions. Use
933 current_regcache.
934
935 2002-08-13 Mark Kettenis <kettenis@gnu.org>
936
937 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
938 numbers for MMX registers.
939
940 2002-08-13 Andrew Cagney <cagney@redhat.com>
941
942 * i386-tdep.c (i386_gdbarch_init): Use
943 generic_unwind_get_saved_register.
944
945 2002-08-13 Kevin Buettner <kevinb@redhat.com>
946
947 * procfs.c (procfs_can_use_hw_breakpoint): New function.
948 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
949 target vector.
950 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
951 Delete. Add comment regarding this now-deleted target method.
952
953 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
954
955 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
956 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
957 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
958 real PC and the page number (if it's within the memory bank window).
959 (m68hc11_pseudo_register_write): Likewise when saving.
960 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
961 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
962 (m68hc11_register_raw_size): And use 32-bit for it.
963 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
964 16K memory bank is used by the prog; also use the virtual pc.
965
966 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
967
968 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
969 (m68hc11_gdbarch_init): Install it in gdbarch.
970 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
971 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
972 (MSYMBOL_SIZE): New for documentation.
973 (insn_return_kind): Enum to specify how a function returns.
974 (frame_extra_info): Cleanup and record the return mode.
975 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
976 register in address computation.
977 (m68hc11_get_return_insn): New to obtain the return instruction used
978 by the function.
979 (m68hc11_frame_init_saved_regs): Take into account the return
980 instruction used by the function for far and interrupt functions.
981 (m68hc11_init_extra_frame_info): Take into account page register.
982 (m68hc11_frame_args_address): Adjust according to the return mode.
983 (show_regs): Print page register only when it's used.
984
985 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
986
987 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
988 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
989 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
990 registers.
991 (m68hc11_register_raw_size): Likewise.
992
993 2002-08-13 Andrew Cagney <cagney@redhat.com>
994
995 * i386-tdep.c (i386_register_name): Handle mmx registers.
996 (mmx_regnum_p): New function.
997 (i386_mmx_names): New array.
998 (mmx_num_regs): New variable.
999 (i386_pseudo_register_read): New function.
1000 (i386_pseudo_register_write): New function.
1001 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1002
1003 * regcache.c (regcache_raw_read_unsigned): New function.
1004 (regcache_raw_read_signed): New function.
1005 * regcache.h (regcache_raw_read_unsigned): Declare.
1006 (regcache_raw_read_signed): Declare.
1007
1008 2002-08-13 Andrew Cagney <cagney@redhat.com>
1009
1010 * regcache.c (regcache_raw_read_as_address): Delete function.
1011 (regcache_cooked_read_signed): New function.
1012 (regcache_cooked_read_unsigned): New function.
1013 * regcache.h (regcache_cooked_read_signed): Declare.
1014 (regcache_cooked_read_unsigned): Declare.
1015 (regcache_raw_read_as_address): Delete declaration.
1016
1017 * blockframe.c (generic_read_register_dummy): Use
1018 regcache_cooked_read_unsigned.
1019 * i386-tdep.c (i386_extract_struct_value_address): Use
1020 regcache_cooked_read_unsigned.
1021
1022 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1023
1024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1025 double sizes according to ELF ABI flags.
1026 (gdbarch_tdep): Record elf_flags.
1027
1028 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1029
1030 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1031 (m6812_prolog): They can appear in 68HC12 function prologue.
1032 (m68hc11_frame_chain): Cleanup.
1033
1034 2002-08-12 Andrew Cagney <cagney@redhat.com>
1035
1036 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1037 declarations.
1038 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1039 (i386_linux_register_raw_size): Delete function.
1040 (i386_linux_init_abi): Update.
1041 * i386-tdep.c (i386_register_raw_size): Delete function.
1042 (i386_register_byte): Delete function.
1043 (i386_gdbarch_init): Update.
1044 (i386_register_size): Delete array.
1045 (i386_register_offset): Delete array.
1046
1047 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1048 (REGISTER_RAW_SIZE): Delete macro.
1049 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1050 (REGISTER_BYTE): Delete macro.
1051
1052 2002-08-11 Aidan Skinner <aidan@velvet.net>
1053
1054 * ada-lang.c (ada_lookup_partial_symbol)
1055 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1056 prototype names so that grep ^func works properly.
1057
1058 * ada-lang.c (ada_array_element_type)
1059 (ada_lookup_partial_symbol): Fix typos in parameter list.
1060
1061 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1062 Fix prototype names so that grep ^func works properly.
1063
1064 2002-08-10 Andrew Cagney <cagney@redhat.com>
1065 Elena Zannoni <ezannoni@redhat.com>
1066 Martin M. Hunt <hunt@redhat.com>
1067
1068 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1069 (build_builtin_type_vec128i): Set the vector bit.
1070 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1071 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1072 (build_builtin_type_vec64): New function.
1073 (build_builtin_type_vec64i): New function.
1074 (build_gdbtypes): Initialize builtin_type_vec64 and
1075 builtin_type_vec64i.
1076
1077 2002-08-09 Andrew Cagney <cagney@redhat.com>
1078
1079 * regcache.c (regcache_dump): Compare the register offset
1080 with REGISTER_BYTE.
1081 * arch-utils.c (generic_register_byte): New function.
1082 * arch-utils.h (generic_register_byte): Declare.
1083 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1084 * gdbarch.h, gdbarch.c: Regenerate.
1085
1086 2002-08-09 Andrew Cagney <cagney@redhat.com>
1087
1088 * regcache.c: Include "gdbcmd.h"
1089 (_initialize_regcache): Add commands "maintenance print
1090 registers", "maintenance print raw-registers" and "maintenance
1091 print cooked-registers".
1092 (enum regcache_dump_what): Define.
1093 (dump_endian_bytes): New function.
1094 (regcache_dump): New function.
1095 (regcache_print): New function.
1096 (maintenance_print_registers): New function.
1097 (maintenance_print_raw_registers): New function.
1098 (maintenance_print_cooked_registers): New function.
1099 * Makefile.in (regcache.o): Update dependencies.
1100
1101 2002-08-09 Michael Snyder <msnyder@redhat.com>
1102
1103 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1104 (mips_push_arguments): Correct some comments. Use paddr_nz
1105 for printing addresses in debug output. Replace static
1106 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1107 (mips_n32n64_push_arguments): New function, cloned from
1108 mips_push_arguments and tuned for the n32/n64 ABI.
1109 (mips_push_register): Buffer needs dynamic allocation.
1110 (mips_print_register): Ditto.
1111 (do_gp_register_row): Ditto.
1112 (mips_store_return_value): Ditto.
1113 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1114
1115 2002-08-09 Don Howard <dhoward@redhat.com>
1116
1117 * memattr.c (mem_info_command): Print special case of upper bound
1118 as max CORE_ADDR + 1.
1119
1120 2002-08-08 Michael Snyder <msnyder@redhat.com>
1121
1122 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1123 returns structs by ref if they're too big to fit in two registers.
1124
1125 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1126
1127 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1128 saved regs value.
1129 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1130 mips_find_saved_regs().
1131 (mips_pop_frame): Likewise.
1132
1133 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1134
1135 * blockframe.c (frame_saved_regs_register_unwind): Revise
1136 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1137 frames are in use.
1138
1139 2002-08-09 Grace Sainsbury <graces@redhat.com>
1140
1141 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1142 T-packets; the 'a' is not taken as a register number.
1143 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1144 (remote_stopped_data_address): New functions; add to target
1145 vector.
1146 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1147 prototypes to match other implementations of this
1148 function. replace integer argument with pointer -- the length
1149 field in the Z-packet is the length of what is pointed to or 1 if
1150 pointer is null. Add to target vector.
1151 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1152 target vector.
1153
1154 From Mark Salter:
1155 * remote.c (remote_wait): Add support to extract optional
1156 watchpoint information from T-packet. Ignore unrecognized
1157 optional info in T-packet.
1158 (remote_async_wait): Ditto.
1159
1160 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1161
1162 * cli/cli-dump.c: Change fopen modes to use binary open modes
1163 as defined in include/fopen-bin.h throughout.
1164
1165 2002-08-08 Michael Snyder <msnyder@redhat.com>
1166
1167 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1168
1169 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1170
1171 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1172 assertion failure by returning early after a warning.
1173
1174 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1175
1176 * mips-tdep.c (mips_find_saved_regs): Make static.
1177 (mips_frame_init_saved_regs): New function.
1178 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1179 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1180 (mips_find_saved_regs): Delete declaration.
1181
1182 2002-08-08 Grace Sainsbury <graces@redhat.com>
1183
1184 * remote.c (remote_wait, remote_async_wait): Change
1185 thread_num from int to ULONGEST.
1186 (unpack_varlen_hex): Change result parameter from
1187 int * to ULONGEST *.
1188
1189 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1190
1191 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1192 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1193 powerpc*-*-*.
1194 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1195
1196 2002-08-08 Andrew Cagney <cagney@redhat.com>
1197
1198 * gcore.c (override_derive_stack_segment): Delete variable.
1199 (preempt_derive_stack_segment): Delete function.
1200 (derive_stack_segment): Delete function.
1201 (default_derive_stack_segment): Renamed to derive_stack_segment.
1202 (override_derive_heap_segment): Delete variable.
1203 (preempt_derive_heap_segment): Delete function.
1204 (derive_heap_segment): Delete function.
1205 (default_derive_heap_segment): Rename to derive_heap_segment.
1206
1207 2002-08-06 Michael Snyder <msnyder@redhat.com>
1208
1209 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1210 * mips-tdep.c (mips_EABI_use_struct_convention,
1211 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1212 New functions. (mips_use_struct_convention): Delete.
1213 (mips_gdbarch_init): set use_gdbarch_convention.
1214
1215 2002-08-06 Michael Snyder <msnyder@redhat.com>
1216
1217 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1218 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1219 mips_o32_reg_struct_has_addr): New functions.
1220 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1221
1222 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1223
1224 * regcache.c (pseudo_register): Delete function.
1225 (fetch_register): Delete function.
1226 (store_register): Delete function.
1227 (regcache_raw_read, legacy_read_register_gen): Use
1228 target_fetch_registers instead of fetch_register.
1229 (legacy_write_register_gen, regcache_raw_write): Use
1230 target_store_register instead of store_register.
1231 (write_register_bytes): Ditto.
1232
1233 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1234 (STORE_PSEUDO_REGISTER): Delete.
1235 * gdbarch.h, gdbarch.c: Regenerate.
1236
1237 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1238
1239 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1240 write dump file binary.
1241
1242 2002-08-05 Michael Snyder <msnyder@redhat.com>
1243
1244 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1245 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1246 (mips_gdbarch_init): Set N32 target to be mips64.
1247
1248 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1249
1250 * frame.c (find_saved_register): Break out of loop once saved
1251 register address is found. Don't mention sparc in loop comment
1252 anymore.
1253
1254 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1255
1256 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1257 mips_default_saved_regsize to 8.
1258
1259 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1260
1261 * gcore.c: Do not include <sys/procfs.h>.
1262 * Makefile.in (gcore.o): Update dependencies.
1263
1264 2002-08-06 Andrew Cagney <cagney@redhat.com>
1265
1266 * configure.tgt: Make arc-*-* obsolete.
1267 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1268 * MAINTAINERS: Make arc-elf obsolete.
1269 * arc-tdep.c: Make file obsolete.
1270 * config/arc/arc.mt: Ditto.
1271 * config/arc/tm-arc.h: Ditto.
1272
1273 2002-08-05 Theodore A. Roth <troth@verinet.com>
1274
1275 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1276
1277 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1278
1279 * mcore-tdep.c (mcore_gdbarch_init): Use
1280 generic_unwind_get_saved_register instead of
1281 generic_get_saved_register.
1282 * v850-tdep.c (v850_gdbarch_init): Ditto.
1283 * frv-tdep.c (frv_gdbarch_init): Ditto.
1284 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1285 * s390-tdep.c (s390_gdbarch_init): Ditto.
1286 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1287 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1288 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1289
1290 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1291
1292 * objfiles.h: Add missing #include "symfile.h"
1293
1294 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1295
1296 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1297
1298 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1299 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1300 of FIELD_BITSIZE.
1301
1302 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * NEWS: Cleanup and nitpick.
1305
1306 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1307
1308 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1309
1310 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1311
1312 * Makefile.in (gdbtk-bp.o): Update dependencies.
1313 (gdbtk-register.o): Ditto.
1314 (gdbtk-varobj.o): Ditto.
1315
1316 2002-08-03 Andrew Cagney <cagney@redhat.com>
1317
1318 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1319 m68hc11_fetch_pseudo_register.
1320 (m68hc11_pseudo_register_write): Replace
1321 m68hc11_store_pseudo_register.
1322 (m68hc11_gdbarch_init): Update.
1323
1324 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1325
1326 * gdbarch.sh: Include "gdb_string.h".
1327 * gdbarch.c: Regenerate.
1328
1329 * regcache.c: Include "gdb_string.h".
1330 * ax-general.c: Ditto.
1331 * varobj.c: Ditto.
1332 * std-regs.c: Ditto.
1333 * fbsd-proc.c: Ditto.
1334 * thread.c: Ditto.
1335
1336 * Makefile.in (regcache.o): Update dependencies.
1337 (thread.o, gdbarch.o): Ditto.
1338 (ax-general.o, gdbarch.o): Ditto.
1339 (varobj.o, std-regs.o): Ditto.
1340 (fbsd-proc.o): Specify dependencies.
1341
1342 2002-08-02 Andrew Cagney <cagney@redhat.com>
1343
1344 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1345 regnum.
1346 (regcache_cooked_write): Ditto.
1347
1348 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1349
1350 * regcache.c (regcache_cooked_read): New function.
1351 (regcache_cooked_write): New function.
1352 (read_register_gen): Rewrite using regcache_cooked_read.
1353 (write_register_gen): Rewrite using regcache_cooked_write.
1354
1355 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1356 Declare.
1357
1358 2002-08-02 Andrew Cagney <cagney@redhat.com>
1359
1360 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1361 Replace the architecture methods register_read and register_write.
1362 * gdbarch.h, gdbarch.c: Regenerate.
1363 * regcache.c (init_regcache_descr): Update.
1364 (read_register_gen): Update.
1365 (write_register_gen): Update.
1366 (supply_register): Update comment.
1367
1368 * sh-tdep.c (sh_gdbarch_init): Update.
1369 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1370 `regcache' and `gdbarch' parameters. Make `buffer' a void
1371 pointer. Update code.
1372 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1373 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1374 void pointer. Update code.
1375 (sh64_register_write): Delete.
1376 (sh4_register_read): Delete.
1377 (sh64_register_read): Delete.
1378 (sh4_register_write): Delete.
1379 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1380 void pointer, `to' parameter a void pointer.
1381 (sh_sh64_register_convert_to_raw): Ditto.
1382
1383 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1384
1385 * mips-tdep.c (mips_register_virtual_type): Use architecture
1386 invariant return values.
1387
1388 2002-08-01 Andrew Cagney <cagney@redhat.com>
1389
1390 * linux-proc.c: Include "gdb_string.h".
1391 * Makefile.in (linux-proc.o): Update dependency list.
1392
1393 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1394
1395 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1396 comment.
1397
1398 2002-08-01 Grace Sainsbury <graces@redhat.com>
1399
1400 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1401 to_insert_watchpoint, to_remove_watchpoint,
1402 to_stopped_by_watchpoint, to_stopped_data_address,
1403 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1404 target vecctor. Define their corresponding macros so they call
1405 them.
1406
1407 * target.c: Add default and debug versions of for
1408 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1409 to_insert_watchpoint, to_remove_watchpoint,
1410 to_stopped_by_watchpoint, to_stopped_data_address,
1411 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1412
1413 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1414
1415 * mips-tdep.c (mips_register_virtual_type): New function.
1416 (mips_gdbarch_init): Register mips_register_virtual_type()
1417 with gdbarch machinery.
1418 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1419 this file instead of tm-bigmips.h.
1420 (MIPS_REGSIZE): Delete this macro.
1421 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1422 multiarch version in mips-tdep.c will be found.
1423
1424 2002-08-01 Andrew Cagney <cagney@redhat.com>
1425
1426 * NEWS: Menion that CHILL has been made obsolete.
1427
1428 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1429 * stabsread.c (read_range_type): Ditto.
1430 * gdbtypes.h: Ditto.
1431 * language.c (binop_type_check): Ditto.
1432 (binop_result_type): Ditto.
1433 (integral_type): Ditto.
1434 (character_type): Ditto.
1435 (string_type): Ditto.
1436 (boolean_type): Ditto.
1437 (structured_type): Ditto.
1438 (lang_bool_type): Ditto.
1439 (binop_type_check): Ditto.
1440 * language.h (_LANG_chill): Ditto.
1441 * dwarfread.c (set_cu_language): Ditto.
1442 * dwarfread.c (CHILL_PRODUCER): Ditto.
1443 * dwarfread.c (handle_producer): Ditto.
1444 * expression.h (enum exp_opcode): Ditto.
1445 * eval.c: Ditto for comments.
1446 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1447 * expprint.c (print_subexp): Ditto.
1448 (print_subexp): Ditto.
1449 * valops.c (value_cast): Ditto.
1450 (search_struct_field): Ditto.
1451 * value.h (COERCE_VARYING_ARRAY): Ditto.
1452 * symfile.c (init_filename_language_table): Ditto.
1453 (add_psymbol_with_dem_name_to_list): Ditto.
1454 * valarith.c (value_binop): Ditto.
1455 (value_neg): Ditto.
1456 * valops.c (value_slice): Ditto.
1457 * symtab.h (union language_specific): Ditto.
1458 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1459 (SYMBOL_DEMANGLED_NAME): Ditto.
1460 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1461 * defs.h (enum language): Ditto.
1462 * symtab.c (got_symtab): Ditto.
1463 * utils.c (fprintf_symbol_filtered): Ditto.
1464
1465 * ch-typeprint.c: Make file obsolete.
1466 * ch-valprint.c: Make file obsolete.
1467 * ch-lang.h: Make file obsolete.
1468 * ch-exp.c: Make file obsolete.
1469 * ch-lang.c: Make file obsolete.
1470
1471 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1472 CHILL_LIB.
1473 (TARGET_FLAGS_TO_PASS): Ditto.
1474 (CHILLFLAGS): Obsolete.
1475 (CHILL): Obsolete.
1476 (CHILL_FOR_TARGET): Obsolete.
1477 (CHILL_LIB): Obsolete.
1478 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1479 ch-valprint.c.
1480 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1481 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1482 ch-lang.o.
1483 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1484 targets.
1485
1486 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1487
1488 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1489 This does not change anything at the moment, but will be helpful
1490 later when full Ada support is integrated.
1491
1492 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1493
1494 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1495 help message.
1496
1497 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1498
1499 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1500 and save it in a local variable. Use variable in later test.
1501
1502 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1503
1504 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1505 test. (Thanks to Daniel Jacobowitz.)
1506
1507 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1508
1509 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1510 (mips_abi_strings): Add "n64".
1511 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1512
1513 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1514
1515 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1516 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1517
1518 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1519
1520 * utils.c (host_pointer_to_address, address_to_host_pointer):
1521 Use gdb_assert() instead of explicit call to internal_error().
1522
1523 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1524
1525 * Makefile.in (rs6000-nat.o): Update dependencies.
1526
1527 From Nicholas Duffek:
1528 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1529 (aix-thread.o): New rule.
1530 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1531 * config/powerpc/aix432.mh: New file.
1532
1533 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1534
1535 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1536 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1537 (fetch_core_registers, ppc_linux_supply_gregset)
1538 (ppc_linux_supply_fpregset): New functions.
1539 (ppc_linux_regset_core_fns): New.
1540 (_initialize_ppc_linux_tdep): Call add_core_fns.
1541 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1542 and ppc_linux_supply_gregset.
1543 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1544 (supply_fpregset): Call ppc_linux_supply_fpregset.
1545 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1546 corelow.o.
1547 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1548
1549 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1550
1551 * symtab.c (lookup_symbol): Demangle before lowercasing.
1552
1553 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1554
1555 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1556 declaration.
1557 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1558 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1559 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1560 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1561 "gdb_string.h".
1562 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1563 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1564 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1565 (avr-tdep.o, mon960-rom.o): Ditto.
1566 (aout_stabs_gnu_h): Define.
1567 (symtab_h): Remove $(gdb_obstack_h).
1568
1569 2002-07-30 Jim Blandy <jimb@redhat.com>
1570
1571 Patch from David Carlton <carlton@math.stanford.edu>:
1572 * gdbinit.in: Move the `dir' commands that add GDB's own source
1573 directory to the search path to the end, so that the `gdb' source
1574 directory will be searched first.
1575
1576 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1577
1578 * gdb_obstack.h: New file.
1579 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1580 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1581 * objfiles.h: Include "gdb_obstack.h".
1582 * Makefile.in (gdb_obstack_h): Define.
1583 (symtab_h): Add $(gdb_obstack_h).
1584 (objfiles_h): Add $(gdb_obstack_h).
1585
1586 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1587 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1588 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1589 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1590 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1591 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1592 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1593 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1594
1595 * Makefile.in (bcache.o): Update dependencies.
1596 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1597 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1598 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1599 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1600 (stabsread.o, symfile.o, symmisc.o): Ditto.
1601 (symtab.o, typeprint.o, macroexp.o): Ditto.
1602 (macrotab.o, mdebugread.o): Ditto.
1603 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1604 (coff_ecoff_h, aout_aout64_h): Define.
1605 (aout_stabs_gnu_h, libaout_h): Define.
1606
1607 2002-07-29 Andrew Cagney <cagney@redhat.com>
1608
1609 * regcache.c (struct regcache_descr): Rename nr_registers to
1610 nr_cooked_registers. Revise comments describing the structure
1611 member fields.
1612 (init_regcache_descr): Update.
1613 (init_legacy_regcache_descr): Update.
1614 (read_register_gen, write_register_gen): When a cooked register in
1615 the raw register range, directly access the value from the raw
1616 register cache.
1617
1618 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1619
1620 * z8k-tdep.c: Do not include "obstack.h".
1621 * h8300-tdep.c, h8500-tdep.c: Ditto.
1622 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1623 * valprint.c, v850-tdep.c: Ditto.
1624 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1625 * mn10200-tdep.c: Ditto.
1626
1627 * Makefile.in (z8k-tdep.o): Update dependencies.
1628 (m68hc11-tdep.o, valprint.o): Ditto.
1629 (v850-tdep.o, d10v-tdep.o): Ditto.
1630 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1631 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1632 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1633 (sh_opc_h, gdb_sim_sh_h): Define.
1634 (elf_sh_h, elf_bfd_h): Define.
1635 (opcode_m68hc11_h): Define.
1636 (OPCODES_SRC, OPCODES_DIR): define.
1637 (OPCODES): Use $(OPCODES_DIR).
1638 (gdb_sim_d10v_h): Rename sim_d10v_h.
1639 (gdb_sim_arm_h): Rename sim_arm_h.
1640
1641 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1642
1643 * utils.c (host_pointer_to_address, address_to_host_pointer):
1644 Change internal_error() message to indicate function responsible
1645 for the error.
1646
1647 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1648
1649 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1650 calls to local_hex_string_custom().
1651
1652 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1653
1654 * irix5-nat.c: Move IRIX shared library support from here...
1655 * solib-irix.c: ...to here. Revised substantially to work with
1656 generic solib framework.
1657
1658 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1659 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1660 * mips-irix-tdep.c: New file.
1661
1662 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1663 (mips-irix-tdep.o, solib-irix.o): New rules.
1664 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1665 solib-irix.o.
1666 * config/mips/irix6.mt (TDEPFILES): Likewise.
1667 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1668
1669 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1670
1671 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1672 disabled (via ``#if 0'') includes.
1673
1674 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1675
1676 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1677 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1678 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1679 Add support for the fpscr register.
1680 * rs6000-nat.c (regmap, fetch_inferior_registers)
1681 (store_inferior_registers, fetch_core_registers): Likewise.
1682
1683 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1684
1685 * rs6000-nat.c (language.h): Include.
1686 (special_regs): Delete this array.
1687 (regmap): New function.
1688 (fetch_register, store_register): Use regmap() to map gdb
1689 register numbers to ptrace register numbers. Also, use
1690 outputs from regmap() to make decisions regarding type of
1691 ptrace() call to make. In particular, don't compare against
1692 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1693 (fetch_inferior_registers, store_inferior_registers): Where
1694 possible, obtain register numbers from tdep struct. Don't
1695 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1696 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1697 (LAST_UISA_SP_REGNUM): Delete.
1698
1699 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1700
1701 * rs6000-nat.c (ppc-tdep.h): Include.
1702 (fetch_registers, store_register, fetch_core_registers): Don't
1703 access registers[] directly. Instead, use supply_register() or
1704 regcache_collect() as appropriate.
1705 (find_toc_address): Format hex address with local_hex_string().
1706
1707 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1708
1709 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1710 bfd/elf32-frv.c.
1711
1712 2002-07-24 Tom Tromey <tromey@redhat.com>
1713
1714 * jv-exp.y: Marked all strings with _().
1715 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1716 internal_error.
1717 (MethodInvocation, CastExpression, parse_number, yyerror,
1718 java_type_from_name, push_expression_name, yylex): Typo fixes.
1719
1720 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1721
1722 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1723 (tee_file_flush, tee_file_write, tee_file_fputs)
1724 (tee_file_isatty): New.
1725 * ui-file.h (tee_file_new): Add prototype.
1726
1727 2002-07-24 Aidan Skinner <aidan@velvet.net>
1728
1729 * ada-lang.c: Change k&r style function definitions to prototyped
1730 form.
1731 * ada-typeprint.c: Change k&r style function definitions to prototyped
1732 form.
1733 * ada-valprint.c: Change k&r style function definitions to prototyped
1734 form.
1735
1736 2002-07-24 Andrew Cagney <cagney@redhat.com>
1737
1738 * README: Remove reference to remote-bug.
1739 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1740 remote-bug.c.
1741 (m88k-nat.o): Delete rule.
1742 (m88k-tdep.o): Delete rule.
1743 (remote-bug.o): Delete rule.
1744 * MAINTAINERS: Mark as obsolete.
1745 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1746 * m88k-tdep.c: Make file obsolete.
1747 * config/m88k/m88k.mh: Ditto.
1748 * config/m88k/delta88v4.mh: Ditto.
1749 * config/m88k/delta88v4.mt: Ditto.
1750 * config/m88k/delta88.mt: Ditto.
1751 * config/m88k/delta88.mh: Ditto.
1752 * remote-bug.c: Ditto.
1753 * config/m88k/tm-delta88.h: Ditto.
1754 * config/m88k/nm-delta88v4.h: Ditto.
1755 * config/m88k/xm-delta88.h: Ditto.
1756 * config/m88k/xm-dgux.h: Ditto.
1757 * config/m88k/tm-m88k.h: Ditto.
1758 * config/m88k/nm-m88k.h: Ditto.
1759 * config/m88k/tm-delta88v4.h: Ditto.
1760 * m88k-nat.c: Ditto.
1761 * cxux-nat.c: Ditto.
1762 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1763 and m88*-*-* obsolete.
1764 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1765 m88*-*-* obsolete.
1766
1767 2002-07-24 Andrew Cagney <cagney@redhat.com>
1768
1769 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1770 constant. Same for local pointer variables.
1771 (extract_signed_integer): Ditto.
1772 * defs.h (extract_unsigned_integer): Update.
1773 (extract_signed_integer): Update.
1774
1775 2002-07-24 Andrew Cagney <cagney@redhat.com>
1776
1777 * regcache.c (regcache_raw_write): Change buf parameter to a
1778 constant void pointer.
1779 (regcache_raw_read): Change buf parameter to a void pointer.
1780 (legacy_write_register_gen): Change myaddr parameter a constant
1781 void pointer.
1782 (supply_register): Change val parameter to a const void pointer.
1783 * regcache.h (regcache_raw_write): Update declaration.
1784 (regcache_raw_read): Update declaration.
1785 (supply_register): Update declaration.
1786
1787 2002-07-24 Tom Tromey <tromey@redhat.com>
1788
1789 * defs.h (gdb_readline_wrapper): Declare.
1790 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1791 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1792 * top.c (gdb_readline_wrapper): New function.
1793 (command_line_input): Use it.
1794
1795 2002-07-24 Andrew Cagney <cagney@redhat.com>
1796
1797 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1798 regcache_read and regcache_write.
1799 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1800 * regcache.c: Update.
1801 * sh-tdep.c (sh64_push_arguments): Update comment.
1802 (sh_pseudo_register_read): Update.
1803 (sh_pseudo_register_write): Update.
1804 (sh4_register_read): Update.
1805 (sh4_register_write): Update.
1806 (sh64_pseudo_register_read): Update.
1807 (sh64_pseudo_register_write): Update.
1808 (sh64_register_read): Update.
1809 (sh64_register_write): Update.
1810 * i386-tdep.c (i386_extract_return_value): Update.
1811 (i386_extract_struct_value_address): Update.
1812 (i386_extract_return_value): Update.
1813 * blockframe.c (generic_read_register_dummy): Update.
1814 (generic_call_dummy_register_unwind): Update
1815 * infrun.c (write_inferior_status_register): Update.
1816
1817 2002-07-23 Jim Blandy <jimb@redhat.com>
1818
1819 * parser-defs.h (expression_context_pc): Make this extern.
1820 (Thanks to Michael Snyder.)
1821
1822 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1823
1824 GDB 5.2.1 released from 5.2 branch.
1825 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1826 * README: Update to mention 5.2.1.
1827
1828 2002-07-23 Mark Salter <msalter@redhat.com>
1829
1830 * remote.c (remote_read_bytes): Fix check for error.
1831
1832 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1833
1834 * aix-thread.c (language.h): Include.
1835 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1836 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1837 Print newlines at end of debug messages.
1838 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1839 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1840
1841 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1842
1843 * aix-thread.c (ppc-tdep.h): Include.
1844 (special_register_p): New function.
1845 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1846 (store_regs_user_thread): Use register number information from
1847 gdbarch_tdep struct instead of hardcoded offsets relative to
1848 FIRST_UISA_SP_REGNUM.
1849 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1850 special_register_p() instead of using FPLAST_REGNUM and
1851 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1852 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1853 will be MQ's register number.
1854
1855 2002-07-22 Michael Snyder <msnyder@redhat.com>
1856
1857 * aix-thread.c (ops): Rename to aix_thread_ops.
1858 (base_ops): Rename to base_target.
1859 (ops_attach): Rename to aix_thread_attach.
1860 (ops_detach): Rename to aix_thread_detach.
1861 (ops_resume): Rename to aix_thread_detach.
1862 (ops_wait): Rename to aix_thread_wait.
1863 (ops_kill): Rename to aix_thread_kill.
1864 (init_ops): Rename to init_aix_thread_ops.
1865 (ops_fetch_register): Rename to aix_thread_fetch_register.
1866 (ops_store_register): Rename to aix_thread_store_register.
1867 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1868 (ops_thread_alive): Rename to aix_thread_thread_alive.
1869 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1870 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1871 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1872 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1873 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1874 (store_regs_lib): Rename to store_regs_user_thread.
1875 (store_regs_kern): Rename to store_regs_kernel_thread.
1876
1877 2002-07-22 Michael Snyder <msnyder@redhat.com>
1878
1879 * aix-thread.c (ops_prepare_to_store): Eliminate.
1880 (init_ops): Don't initialize ops.prepare_to_store.
1881 (store_regs_kern): Pre-fetch register buffers from child,
1882 because some registers may not be in the cache. Copy
1883 regs from register cache only if they are cached.
1884 (store_regs_lib): Copy regs from register cache only
1885 if they are cached.
1886 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1887 fill_gprs64): Ditto.
1888
1889 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1890
1891 * aix-thread.c (gdb_assert.h): Include.
1892 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1893 register sizes (from register cache) match size of buffer holding
1894 register data.
1895 (fill_sprs32): Change parameter types to match those in the ptrace()
1896 buffer.
1897 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1898 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1899
1900 2002-07-22 Michael Snyder <msnyder@redhat.com>
1901
1902 * aix-thread.c (supply_sprs64): Cosmetic change.
1903 (supply_sprs32): Cosmetic change.
1904 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1905 (fill_sprs64): Use regcache_collect instead of read_register.
1906 (store_regs_lib): Use regcache_collect instead of
1907 read_register. Use fill_sprs32 instead of fill_sprs64,
1908 if debugging a 32-bit architecture.
1909 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1910 out of the register cache, instead of passing a pointer into
1911 the register cache directly to ptrace. Use regcache_collect
1912 insteaad of read_register.
1913 (ops_prepare_to_store): Use target_read_registers instead
1914 of read_register_bytes.
1915
1916 2002-07-20 Aidan Skinner <aidan@velvet.net>
1917
1918 * MAINTAINERS: Add self under write after approval.
1919
1920 2002-07-20 Aidan Skinner <aidan@velvet.net>
1921
1922 * ada-tasks.c: Change k&r style function definitions to prototyped
1923 form.
1924
1925 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1926
1927 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1928 * x86-64-tdep.c: Include "objfiles.h".
1929 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1930 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1931
1932 2002-07-17 Michal Ludvig <michal@suse.cz>
1933
1934 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1935 (update_context): Initialise cfa variable.
1936
1937 2002-07-17 Michael Snyder <msnyder@redhat.com>
1938
1939 * aix-thread.c: Shorten some long lines.
1940 Bring comments into line with code spec.
1941
1942 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1943
1944 * infrun.c: Re-indent using gdb_indent.sh.
1945
1946 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1947
1948 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1949 Leave the indentation temporarily untouched, to minimize the diffs.
1950
1951 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1952
1953 * stabsread.c: Make os9k sections of the code obsolete,
1954 for real this time.
1955 * stabsread.h: Make os9k sections of the code obsolete.
1956
1957 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1958
1959 * linux-low.c (regsets_store_inferior_registers): Add free()
1960 at the end of a loop to prevent memory leak.
1961 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1962 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1963 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1964 line a comment.
1965 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1966
1967 2002-07-17 Jim Blandy <jimb@redhat.com>
1968
1969 * macrocmd.c (info_macro_command): Remove newline from error
1970 message.
1971
1972 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1973
1974 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1975 (sh_gdbarch_init): Use it for sh-dsp.
1976
1977 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1978
1979 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1980 64-bit DWARF2 format.
1981
1982 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1983
1984 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1985 <sys/proc.h> when not available.
1986
1987 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1988
1989 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1990 * stabsread.c: Make os9k sections of the code obsolete.
1991 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1992 * config/i386/i386os9k.mt: Make file obsolete.
1993 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1994 (COMMON_OBS): Remove os9kread.o
1995 (SFILES): Remove os9kread.c.
1996 (os9kread.o, remote-os9k.o): Make target obsolete.
1997 * remote-os9k.c: Make file obsolete.
1998 * os9kread.c: Make file obsolete.
1999 * Makefile.in
2000
2001 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2002
2003 * NEWS: Mention that the FR30 has been made obsolete.
2004 * fr30-tdep.c: Make file obsolete.
2005 * config/fr30/tm-fr30.h: Ditto.
2006 * config/fr30/fr30.mt: Ditto.
2007 * configure.tgt: Make fr30-*-elf obsolete.
2008 * MAINTAINERS: Make fr30-elf obsolete.
2009
2010 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2011
2012 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2013 found is not inside a section.
2014
2015 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2016
2017 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2018 strerror().
2019 (pdc_realloc): Use xrealloc() instead of realloc().
2020
2021 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2022
2023 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2024 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2025 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2026 macros.
2027
2028 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2029
2030 * aix-thread.c (ptrace_check): Eliminate goto.
2031 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2032 problem.
2033
2034 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2035
2036 * aix-thread.c (gdbcmd.h): Include.
2037 (DEBUG, DBG, DBG2, dbg): Eliminate.
2038 (debug_aix_thread): New static global.
2039 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2040 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2041 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2042 invocations to DBG and DBG2 macros to test against
2043 ``debug_aix_thread'' and call fprintf_unfiltered().
2044 (_initialize_aix_thread): Add new command "set debug aix-thread".
2045
2046 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2047
2048 From Gerhard Tonn <TON@de.ibm.com>:
2049 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2050 instead of supply_register.
2051
2052 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2053
2054 * dwarf2cfi.c: Include "gdb_assert.h".
2055 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2056 non-NULL.
2057 (update_context): Do not use __func__. Add missing ``break''.
2058 (update_context): Do not use __func__.
2059
2060 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2061
2062 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2063 and its setting. Set gdbarch instruction printing functions
2064 directly. For non-rs6000 case use new function
2065 gdb_print_insn_powerpc.
2066 (gdb_print_insn_powerpc): New function.
2067
2068 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2069
2070 * NEWS: Mention that the d30v has been marked obsolete.
2071 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2072 * configure.tgt: Mark d30v-*-* as obsolete.
2073 * d30v-tdep.c: Mark file as obsolete.
2074 * config/d30v/d30v.mt: Ditto.
2075 * config/d30v/tm-d30v.h: Ditto.
2076
2077 2002-07-13 Aidan Skinner <aidan@velvet.net>
2078
2079 * ada-tasks.c (add_task_entry): replace calls to
2080 malloc() with xmalloc
2081 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2082
2083 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2084 ada_finish_decode_line_1, all_sals_for_line
2085 ada_breakpoint_rewrite): replace calls to free() with xfree()
2086
2087 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2088
2089 From Nicholas Duffek (with minor changes by Martin Hunt,
2090 Louis Hamilton, and Kevin Buettner):
2091 * aix-thread.c: New file.
2092
2093 2002-07-12 Petr Sorfa <petrs@caldera.com>
2094
2095 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2096 complaint for invalid attribute class or form.
2097 (read_func_scope): DW_AT_frame_base
2098 better handling of DW_AT_block*.
2099 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2100 better handling of DW_AT_block*.
2101 (read_common_block): DW_AT_location
2102 better handling of DW_AT_block*.
2103 (read_partial_die): DW_AT_location better handling
2104 of DW_AT_block*.
2105 (new_symbol): DW_AT_external better handling of
2106 DW_AT_block*. Proper initialization of variable
2107 "addr".
2108 (attr_form_is_block): New function that returns true
2109 if the attribute's form is of DW_FORM_block*.
2110
2111 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2112
2113 * valops.c (find_method_list): Remove comment about
2114 removed STATIC_MEMFUNCP argument.
2115 (value_find_oload_method_list): Likewise.
2116
2117 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2118
2119 From Nicholas Duffek:
2120 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2121 target_new_objfile_hook.
2122
2123 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2124
2125 From Nicholas Duffek:
2126 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2127 csect.
2128
2129 2002-07-12 Andrew Cagney <cagney@redhat.com>
2130
2131 * MAINTAINERS: Mention --enable-sim-build-warnings.
2132 (m68hc11-elf): Disable sim build warnings.
2133 (m32r-elf): Mark as broken obsolete candidate.
2134 (x86_64-linux-gnu): Mark as buildable with -Werror.
2135 (arm-elf): Change -w to ``,'' which enables warnings but not
2136 -Werror.
2137
2138 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2139
2140 * bcache.h: Update copyright.
2141 (struct bstring, struct bcache): Move definition to "bcache.c".
2142 Replaced by opaque declaration.
2143 (bcache_xfree): Replace free_bcache.
2144 (bcache_xmalloc, bcache_memory_used): Declare.
2145
2146 * bcache.c: Update copyright.
2147 (struct bstring, struct bcache): Moved to here from "bcache.h".
2148 Update comments.
2149 (bcache_xmalloc, bcache_memory_used): New functions.
2150 (bcache_xfree): Replace function free_bcache.
2151
2152 * Makefile.in (objfiles.o): Add $(bcache_h).
2153 (objfiles_h): Remove $(bcache_h).
2154 (symfile.o): Add $(bcache_h).
2155
2156 * symmisc.c: Update copyright.
2157 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2158 (print_objfile_statistics): Use bcache_memory_used.
2159
2160 * symfile.c: Include "bcache.h".
2161 (reread_symbols): Use bcache_xfree.
2162 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2163 (add_psymbol_to_list): Pass psymbol_cache by value.
2164 (add_psymbol_with_dem_name_to_list): Ditto.
2165
2166 * objfiles.h: Update copyright.
2167 (struct bcache): Declare opaque. Do not include "bcache.h".
2168 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2169 bcache'' pointers.
2170 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2171
2172 * objfiles.c: Include "bcache.h". Update copyright.
2173 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2174 macro_cache.
2175 (free_objfile): Use bcache_xfree.
2176
2177 2002-07-11 Grace Sainsbury <graces@redhat.com>
2178
2179 * monitor.c (monitor_fetch_register): Make name a constant.
2180 (monitor_store_register): Same.
2181
2182 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2183
2184 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2185 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2186 (finish_block) For non-function blocks, hash the symbol table. For
2187 function blocks, mark the symbol table as unhashed.
2188 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2189 (msymbol_hash_iw): Likewise.
2190 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2191 value.
2192 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2193 (lookup_minimal_symbol): Likewise for both.
2194 * symtab.h (struct block): Add `hashtable' flag. Comment the
2195 hashtable.
2196 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2197 (ALL_BLOCK_SYMBOLS): Update.
2198 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2199 (struct symbol): Add `hash_next' pointer.
2200 * symtab.c (lookup_block_symbol): Search using the hash table when
2201 possible.
2202 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2203 (search_symbols, find_addr_symbol): Likewise.
2204
2205 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2206 (read_dst_symtab): Likewise.
2207 * jv-lang.c (get_java_class_symtab): Likewise.
2208 * mdebugread.c: Include "gdb_assert.h".
2209 (shrink_block): Assert that the block being modified is not hashed.
2210 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2211 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2212 symbols.
2213 (dump_symtab): Recognize hashed blocks.
2214 * printcmd.c (print_frame_args): Assert that function blocks do not
2215 have hashed symbol tables.
2216 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2217 (fill_in_ada_prototype, debug_print_block): Likewise.
2218 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2219
2220 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2221
2222 * stack.c (print_frame): Use result of frame_address_in_block()
2223 instead of fi->pc when evaluating symbols.
2224 (backtrace_command_1): Ditto.
2225
2226 2002-07-11 Andrew Cagney <cagney@redhat.com>
2227
2228 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2229 Make static.
2230
2231 * arm-tdep.c (arm_register_name): Make return type constant.
2232
2233 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2234
2235 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2236 prototype.
2237 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2238 * s390-tdep.c (s390_fp_regnum): Ditto.
2239 (s390_read_fp): Ditto.
2240 (s390_pop_frame): Ditto.
2241 (_initialize_s390_tdep): Ditto.
2242 * remote.c (get_remote_state): Ditto.
2243 * procfs.c (mappingflags): Ditto.
2244 * memattr.c (_initialize_mem): Ditto.
2245 * mcore-tdep.c (mcore_pop_frame): Ditto.
2246 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2247 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2248 * language.c (set_case_str): Ditto.
2249 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2250 * frv-tdep.c (new_variant): Ditto.
2251 (frv_stopped_data_address): Ditto.
2252 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2253 (context_alloc): Ditto.
2254 (frame_state_alloc): Ditto.
2255 (unwind_tmp_obstack_init): Ditto.
2256 (unwind_tmp_obstack_free): Ditto.
2257 (cfi_read_fp): Ditto.
2258 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2259 (cris_pop_frame): Ditto.
2260 * c-lang.c (scanning_macro_expansion): Ditto.
2261 (finished_macro_expansion): Ditto.
2262 (c_preprocess_and_parse): Ditto.
2263 * gdbarch.sh: Ditto.
2264 * gdbarch.h, gdbarch.c: Regenerate.
2265 * config/mn10200/tm-mn10200.h: Adjust indentation.
2266 * target.c: Adjust indentation.
2267 * symtab.h: Adjust indentation.
2268 * stabsread.h: Adjust indentation.
2269 * remote-es.c: Adjust indentation.
2270 * os9kread.c: Adjust indentation.
2271
2272 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2273
2274 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2275 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2276
2277 2002-07-10 Grace Sainsbury <graces@redhat.com>
2278
2279 * NEWS: Mention m68k, mcore multi-arching.
2280 * MAINTAINERS: Change status of m68k, mcore to reflect
2281 multi-arching.
2282
2283 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2284
2285 * valops.c (find_overload_match): Free oload_syms.
2286
2287 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2288
2289 Define HAVE_SYS_PROC_H if sys/proc.h exists
2290 * configure.in: Add check for sys/proc.h
2291 * config.in: Regenerate.
2292 * configure: Regenerate.
2293
2294 2002-07-09 Grace Sainsbury <graces@redhat.com>
2295
2296 * config/m68k/tm-m68k.h: Remove macros wrapped in
2297 #if !GDB_MULTI_ARCH.
2298
2299 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2300
2301 * config.in, configure: Regenerate.
2302
2303 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2304
2305 * dwarf2cfi.c: Include "gcore.h".
2306 (execute_stack_op): Fix implementation of the
2307 DW_OP_deref and DW_OP_deref_size operators by letting do their
2308 lookup in the target.
2309
2310 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2311
2312 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2313 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2314 tdep->sc_sp_offset.
2315
2316 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2317
2318 Fix PR gdb/595, gdb/602
2319 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2320 Don't call value_cast, just read the vtable pointer; update comments
2321 to match.
2322
2323 2002-07-05 Grace Sainsbury <graces@redhat.com>
2324
2325 * config/mcore/tm-mcore.h: Remove file.
2326 * config/mcore/mcore.mt: Remove definition of TM_FILE
2327 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2328
2329 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2330
2331 * i386bsd-tdep.c: Include "gdb_string.h".
2332
2333 2002-07-04 Grace Sainsbury <graces@redhat.com>
2334
2335 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2336 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2337 mcore-tdep.
2338 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2339 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2340 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2341 (RETVAL_REGNUM): Move macros from tm-mcore.h
2342 (mcore_reg_struct_has_addr): New function.
2343 (mcore_gdbarch_init): Added initializations for the macros removed
2344 from tm-mcore.h.
2345
2346 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2347
2348 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2349 traditonal string branding within the ELF header.
2350
2351 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2352
2353 * symtab.c (remove_params): New function.
2354 (make_symbol_overload_list): Use it instead of cplus_demangle.
2355 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2356
2357 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2358
2359 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2360
2361 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2362 New variables.
2363 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2364 and tdep->sigtramp_end.
2365 * i386obsd-nat.c: New file.
2366 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2367
2368 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2369 Don't call get_current_frame().
2370
2371 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2372
2373 * i386-nat.c (child_post_startup_inferior): New function
2374 calling i386_cleanup_dregs if
2375 I386_USE_GENERIC_WATCHPOINTS is defined.
2376 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2377 conditional to acknowledge that i386-nat.c has its
2378 own child_post_startup_inferior function.
2379
2380 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2381
2382 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2383 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2384 instead of MAX_REGISTER_RAW_SIZE.
2385 (i386_extract_return_value, i386_extract_struct_value_address):
2386 Convert to use regcache.
2387 (i386_gdbarch_init): Set max_register_raw_size and
2388 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2389 Set extract_return_value and extract_struct_value_address instead
2390 of their deprecated variants.
2391
2392 Convert i386 target to generic dummy frames.
2393 * i386-tdep.c: Include "symfile.h".
2394 (i386_frameless_signal_p): Consider a function to be frameless if
2395 the pc points at the first instruction of the function.
2396 (i386_frame_chain): Handle (generic) call dummies.
2397 (i386_frame_saved_pc): Likewise.
2398 (i386_frame_init_saved_regs): Remove code dealing with call
2399 dummies on the stack.
2400 (i386_push_dummy_frame): Removed.
2401 (i386_call_dummy_words): Removed.
2402 (i386_fix_call_dummy): Removed.
2403 (i386_push_return_address): New function.
2404 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2405 parameter, and don't call get_current_frame.
2406 (i386_pop_frame): New function.
2407 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2408 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2409 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2410 call_dummy_length to 0, set call_dummy_words to NULL, set
2411 sizeof_call_dummy_words to 0, set fix_call_dummy to
2412 generic_fix_call_dummy, set pc_in_call_dummy to
2413 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2414 generic_push_dummy_frame, set push_return_address to
2415 i386_push_return_address and set frame_chain_valid to
2416 generic_file_frame_chain_valid.
2417
2418 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2419
2420 * gdbarch.sh (struct regcache): Add opaque declaration.
2421 (EXTRACT_RETURN_VALUE): New architecture method.
2422 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2423 * gdbarch.h, gdbarch.c: Regenerate.
2424 * arch-utils.c (legacy_extract_return_value): New function.
2425 * arch-utils.h (legacy_extract_return_value): Declare.
2426 * values.c (value_being_returned): Re-enable code handling
2427 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2428 deprecated_grub_regcache_for_registers call to block handling
2429 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2430 (EXTRACT_RETURN_VALUE): Do not define.
2431
2432 2002-07-03 Grace Sainsbury <graces@redhat.com>
2433
2434 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2435 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2436 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2437 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2438 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2439 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2440 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2441 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2442 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2443 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2444 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2445 argument so the function fits the prototype in the architecture
2446 vector.
2447 (mcore_pop_frame): Remove argument so the function fits the
2448 prototype. Use get_current_frame instead of the argument.
2449 (mcore_push_arguments): Change type of struct_return so the
2450 function can be used in the architecture vector.
2451 (mcore_store_struct_return): Add.
2452 (mcore_frame_init_saved_regs): Add.
2453 (mcore_gdbarch_init): Add function calls to replace the macros
2454 removed from tm-mcore.h
2455
2456 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2457
2458 * infcmd.c (print_return_value): Remove compatibility code calling
2459 deprecated_grub_regcache_for_registers.
2460
2461 * values.c: Include "regcache.h".
2462 (value_being_returned): Update. Use
2463 deprecated_grub_regcache_for_registers to extract the register
2464 buffer address.
2465 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2466 ``struct regcache''.
2467 * Makefile.in (values.o): Add dependency on $(regcache_h).
2468
2469 * inferior.h (run_stack_dummy): Change type of second parameter to
2470 a ``struct regcache''.
2471 * valops.c (hand_function_call): Change type of retbuf to ``struct
2472 regcache''. Allocate using regcache_xmalloc, clean using
2473 make_cleanup_regcache_xfree.
2474 * infcmd.c (run_stack_dummy): Update. Use
2475 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2476
2477 * regcache.c (do_regcache_xfree): New function.
2478 (make_cleanup_regcache_xfree): New function.
2479 * regcache.h (make_cleanup_regcache_xfree): Declare.
2480
2481 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2482
2483 * event-top.c (command_line_handler): Don't read past
2484 beginning of buffer.
2485
2486 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2487
2488 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2489 struct frame_id.
2490 (varobj_create): Store frame_id for root.
2491 (varobj_gen_name): Use xasprintf.
2492 (varobj_update): Save and restore frame using get_frame_id() and
2493 frame_find_by_id().
2494 (create_child): Use xasprintf.
2495 (new_root_variable): Initialize frame_id.
2496 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2497 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2498 to prevent memory leak.
2499
2500 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2501
2502 * valops.c (hand_function_call): Move declaration of retbuf to
2503 start of function, allocate using malloc, add a cleanup but before
2504 the inf_status cleanup, cleanup the buffer. Rename local variable
2505 old_chain to inf_status_cleanup.
2506
2507 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2508
2509 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2510
2511 * cli/cli-decode.c (cmd_func_p): New function.
2512 (cmd_func): New function.
2513
2514 * command.h: Add cmd_func() and cmd_func_p().
2515
2516 2002-07-03 Grace Sainsbury <graces@redhat.com>
2517
2518 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2519 (REGISTER_SIZE): Remove.
2520 (MAX_REGISTER_RAW_SIZE): Remove.
2521 (REGISTER_VIRTUAL_TYPE): Remove.
2522 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2523 (REGISTER_NAME): Remove.
2524 (USE_GENERIC_DUMMY_FRAMES): Remove.
2525 (CALL_DUMMY): Remove.
2526 (CALL_DUMMY_START_OFFSET): Remove.
2527 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2528 (CALL_DUMMY_LOCATION): Remove.
2529 (FIX_CALL_DUMMY): Remove.
2530 (CALL_DUMMY_ADDRESS): Remove.
2531 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2532 (SAVE_DUMMY_FRAME_TOS): Remove.
2533 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2534 (mcore_register_virtual_type): New function.
2535 (mcore_register_byte): New function.
2536 (mcore_register_size): New function.
2537 (mcore_register_name): New function.
2538 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2539 macros removed from tm-mcore.h.
2540 (mcore_dump_tdep): Add.
2541 (_initialize_mcore_tdep): Add gdbarch_register call.
2542
2543 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2544
2545 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2546 frameless_look_for_prologue, such that we actually call this
2547 function.
2548
2549 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2550
2551 * frame.h (frame_address_in_block): New function.
2552
2553 * blockframe.c (frame_address_in_block): New function extracted
2554 from get_frame_block().
2555 (get_frame_block): Use frame_address_in_block().
2556 (block_innermost_frame): Use frame_address_in_block() to match
2557 the frame pc address against the block boundaries rather than
2558 the frame pc directly. This prevents a failure when a frame pc
2559 is actually a return-address pointing immediately after the end
2560 of the given block.
2561
2562 2002-07-02 Grace Sainsbury <graces@redhat.com>
2563
2564 * MAINTAINERS: Add self under write after approval.
2565
2566 2002-07-02 Grace Sainsbury <graces@redhat.com>
2567
2568 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2569 used in architecture vector. The default is
2570 m68k_local_breakpoint_from_pc.
2571 (m68k_local_breakpoint_from_pc): Add.
2572 (enum): Add register numbers from tm-m68k.h.
2573 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2574 vector.
2575 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2576 GDB_MULTI_ARCH_PARTIAL.
2577 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2578 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2579 m68k-tdep.c.
2580 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2581 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2582 to enum in m68k-tdep.c
2583
2584 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2585
2586 * solib-osf.c (open_map): Compute the list of shared libraries
2587 loaded by the inferior, rather than the list of libraries loaded
2588 by GDB itself. Otherwise, GDB ends up reading the symbols from
2589 the wrong shared libraries...
2590
2591 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2592
2593 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2594 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2595 macros.
2596 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2597 Remove functions.
2598 (FRAMELESS_SIGNAL): Remove function.
2599 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2600 i386_linux_saved_pc_after_call): Removed.
2601 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2602 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2603 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2604
2605 * i386-tdep.c (i386_frameless_signal_p): New function.
2606 (i386_frame_chain): Deal with frameless signals.
2607 (i386_sigtramp_saved_sp): New function.
2608 (i386_frame_saved_pc): Deal with frameless signals.
2609 (i386_saved_pc_after_call): Make sure the correct value is
2610 returned just after entry into a sigtramp.
2611 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2612 i386fbsd4_sc_sp_offset): New variables.
2613 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2614 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2615 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2616 similiar to what we already did for sc_pc_offset.
2617 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2618 tdep->sc_sp_offset.
2619
2620 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2621
2622 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2623
2624 * config/i386/tm-x86-64linux.h: New.
2625 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2626 definitions.
2627 * config/i386/nm-x86-64.h: Rename to ...
2628 * config/i386/nm-x86-64linux.h: ... this one.
2629 * config/i386/x86-64linux.mh: Reflect the above change.
2630
2631 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2632
2633 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2634 with sigcontext_addr. Add sc_sp_offset.
2635 (i386bsd_sigtramp_saved_pc): Remove prototype.
2636 (i386bsd_sicontext_addr): Add prototype.
2637 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2638 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2639 (i386_svr4_sigtramp_saved_pc): Removed.
2640 (i386_svr4_sigcontext_addr): New function.
2641 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2642 Initialize tdep->sigcontext_addr instead. Initialize
2643 tdep->sc_pc_offset and tdep->sc_sp_offset.
2644 (i386_gdbarch_init): Likewise.
2645 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2646 any more.
2647 (i386bsd_sigtramp_saved_pc): Remove function.
2648 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2649 Initialize tdep->sigcontext_addr instead. Initialize
2650 tdep->sc_pc_offset.
2651 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2652 of tdep->sigtramp_saved_pc.
2653 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2654 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2655 instead.
2656
2657 * i386-tdep.c (i386_frameless_function_invocation,
2658 i386_frame_num_args, i386_frame_init_saved_regs,
2659 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2660 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2661 i386_extract_return_value, i386_store_return_value,
2662 i386_extract_struct_value_address, i386_register_virtual_type,
2663 i386_register_convertible, i386_register_convert_to_virtual,
2664 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2665 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2666 static.
2667
2668 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2669
2670 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2671
2672 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2673 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2674 this macro. Include "value.h".
2675
2676 2002-06-30 Aidan Skinner <aidan@velvet.net>
2677
2678 * ada-exp.tab.c: remove as it's a generated file
2679 * ada-lex.c: remove as it's a generated file
2680
2681 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2682
2683 * config/i386/tm-i386.h (struct frame_info, struct
2684 frame_saved_regs, struct value, struct type): Remove forward
2685 declarations.
2686
2687 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2688 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2689 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2690 (FILL_FPXREGSET): Define.
2691
2692 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2693
2694 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2695 i[3456]86-*-netbsd* case.
2696 * config/i386/tm-obsd.h: Removed.
2697 * config/i386/obsd.mt: Removed.
2698 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2699 core-aout.o.
2700 (MH_CFLAGS): Add -DYYDEBUG=0.
2701
2702 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2703 i386nbsd_sc_pc_offset on OpenBSD too.
2704
2705 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2706 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2707 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2708 define.
2709 * i386bsd-tdep.c: Include "arch-utils.h".
2710 (i386bsd_aout_in_solib_call_trampoline): New function.
2711 (i386bsd_init_abi): Set in_solib_call_trampoline to
2712 i386bsd_aout_in_solib_call_trampoline.
2713 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2714 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2715
2716 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2717
2718 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2719 (struct obstack, struct bcache): Add opaque declarations.
2720 * Makefile.in (macrotab_h): Update
2721
2722 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2723
2724 * blockframe.c (generic_find_dummy_frame): Change return type to
2725 ``struct regcache''.
2726 (struct dummy_frame): Replace field ``registers'' with regcache, a
2727 struct regcache object.
2728 (generic_find_dummy_frame): Update.
2729 (generic_push_dummy_frame): Update. Use regcache_xfree,
2730 regcache_xmalloc and regcache_cpy.
2731 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2732 regcache_xfree.
2733 (deprecated_generic_find_dummy_frame): Update.
2734 (generic_read_register_dummy): Update. Use
2735 regcache_read_as_address.
2736 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2737 (generic_get_saved_register): Update. Use regcache_read.
2738
2739 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2740
2741 * Makefile.in (objfiles_h): Add $(bcache_h).
2742 * objfiles.h: Include "bcache.h".
2743
2744 * Makefile.in (symtab_h): Remove $(bcache_h).
2745 * symtab.h: Do not include "bcache.h".
2746
2747 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2748
2749 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2750 generic_func_frame_chain_valid.
2751
2752 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2753
2754 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2755 * config/i386/tm-fbsd.h: Likewise.
2756
2757 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2758
2759 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2760 generic_unwind_get_saved_register.
2761
2762 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2763
2764 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2765 * regcache.c (supply_register): Add missing argument to
2766 register_buffer call.
2767
2768 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2769
2770 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2771 Solaris /bin/grep does not not like it. From Peter Schauer.
2772
2773 2002-06-26 Tom Tromey <tromey@redhat.com>
2774
2775 * command.h (add_setshow_cmd): Declare.
2776 (add_setshow_cmd_full): Declare.
2777 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2778 returns void. Use add_setshow_cmd_full.
2779 (add_setshow_cmd_full): New function.
2780 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2781 (add_setshow_boolean_cmd): Likewise.
2782
2783 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2784
2785 * config/vax/tm-vax.h: Protect from multiple inclusion.
2786 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2787 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2788 * config/vax/tm-vaxbsd.h: ...here. New file.
2789 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2790
2791 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2792
2793 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2794 (BELIEVE_PCC_PROMOTION): Remove.
2795 (AP_REGNUM): Move to...
2796 * config/vax/nm-vax.h: ...here.
2797 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2798 (vax_breakpoint_from_pc): New function.
2799 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2800 and gdbarch_believe_pcc_promotion.
2801
2802 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2803
2804 * Makefile.in (vax_tdep_h): Define.
2805 (vax-tdep.o): Use $(vax_tdep_h).
2806 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2807 (vax_dump_tdep): New function.
2808 (_initialize_vax_tdep): Register vax_dump_tdep.
2809 * vax-tdep.h: Include osabi.h.
2810 (struct gdbarch_tdep): New.
2811
2812 2002-06-26 Andrew Cagney <cagney@redhat.com>
2813
2814 * frame.h (deprecated_generic_find_dummy_frame): Rename
2815 generic_find_dummy_frame.
2816 * blockframe.c (generic_find_dummy_frame): Make static.
2817 (deprecated_generic_find_dummy_frame): New function.
2818 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2819 generic_find_dummy_frame with deprecated_find_dummy_frame.
2820 (sh64_nofp_frame_init_saved_regs): Ditto.
2821 (sh_fp_frame_init_saved_regs): Ditto.
2822 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2823 (s390_frame_chain): Ditto.
2824 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2825
2826 2002-06-26 Grace Sainsbury <graces@redhat.com>
2827
2828 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2829 gdbarch vector are at the top.
2830 (NUM_REGS): Remove.
2831 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2832 (FRAME_ARGS_ADDRESS): Remove.
2833 (FRAME_LOCALS_ADDRESS): Remove.
2834 (FRAME_NUM_ARGS): Remove.
2835 (FRAME_ARGS_SKIP): Remove.
2836 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2837 (m68k_gdbarch_init): Add gdbarch initializations for macros
2838 undefined in tm-m68k.h
2839
2840 2002-06-26 Grace Sainsbury <graces@redhat.com>
2841
2842 * monitor.h: Add the function regname to monitor_ops
2843 structure. This way NUM_REGS does not have to be a constant.
2844 * monitor.c (monitor_fetch_register): Added support for regname
2845 function. The function is called if the array regnames is NULL.
2846 (monitor_store_register): Same.
2847 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2848 regnames array.
2849 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2850 cpu32bug_cmds.regname to point to new function.
2851 * abug-rom.c (abug_regname): Same as above.
2852 (init_abug_cmds): Same.
2853 * dbug-rom.c (dbug_regname): Same as above.
2854 (init_dbug_cmds): Same.
2855 * remote-est.c (est_regname): Same.
2856 (init_est_cmds): Same.
2857 * rom68k-rom.c (rom68k_regname): Same.
2858 (init_rom68k_cmds): Same.
2859
2860 2002-06-25 Tom Tromey <tromey@redhat.com>
2861
2862 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2863
2864 2002-06-25 Andrew Cagney <cagney@redhat.com>
2865
2866 * infrun.c (stop_registers): Change variable's type to ``struct
2867 regcache'''.
2868 (xmalloc_inferior_status): Delete function.
2869 (free_inferior_status): Delete function.
2870 (normal_stop): Use regcache_cpy.
2871 (struct inferior_status): Change type of fields ``stop_registers''
2872 and ``registers'' to ``struct regcache''.
2873 (write_inferior_status_register): Use regcache_write.
2874 (save_inferior_status): Instead of calling
2875 xmalloc_inferior_status, allocate the inf_status buffer directly.
2876 Use regcache_dup_no_passthrough and regcache_dup to save the
2877 buffers.
2878 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2879 Replace the stop_registers regcache instead of overriding it. Use
2880 regcache_xfree. Instead of calling free_inferior_status, xfree
2881 the buffer directly.
2882 (discard_inferior_status): Use regcache_xfree. Instead of calling
2883 free_inferior_status, xfree the buffer directly.
2884 (build_infrun): Use regcache_xmalloc.
2885 (_initialize_infrun): Delete redundant call to build_infrun.
2886
2887 * Makefile.in (infcmd.o): Add $(regcache_h).
2888
2889 * infcmd.c: Include "regcache.h".
2890 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2891 obtain the address of `stop_registers' register buffer.
2892 (print_return_value): Ditto.
2893
2894 * inferior.h (struct regcache): Add opaque declaration.
2895 (stop_registers): Change variable's declared type to ``struct
2896 regcache''.
2897
2898 2002-06-24 Tom Tromey <tromey@redhat.com>
2899
2900 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2901 * target.c (initialize_targets): Fixed typo in
2902 trust-readonly-sections `show' documentation.
2903
2904 * main.c: Marked all strings with _().
2905
2906 2002-06-24 Don Howard <dhoward@redhat.com>
2907
2908 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2909 that means max CORE_ADDR+1.
2910 (lookup_mem_region): Ditto.
2911 (mem_info_command): Ditto.
2912
2913 2002-06-24 Grace Sainsbury <graces@redhat.com>
2914
2915 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2916 (REGISTER_BYTES_OK): Remove.
2917 (REGISTER_BYTES): Remove.
2918 (STORE_STRUCT_RETURN): Remove.
2919 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2920 (STORE_RETURN_VALUE): Remove.
2921 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2922 (FRAME_CHAIN): Remove.
2923 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2924 (FRAME_SAVED_PC): Remove.
2925 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2926 (m68k_store_struct_return): Add.
2927 (m68k_deprecated_extract_return_value): Add.
2928 (m68k_deprecated_extract_struct_value_address): Add.
2929 (m68k_store_return_value): Add.
2930 (m68k_frame_chain): Add.
2931 (m68k_frameless_function_invocation): Add.
2932 (m68k_frame_saved_pc): Add.
2933 (m68k_gdbarch_init): added set_gdbarch calls for new
2934 functions and deleted macros.
2935
2936 2002-06-23 Tom Tromey <tromey@redhat.com>
2937
2938 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2939 (ALLDEPFILES): Likewise.
2940 (udiheaders): Removed.
2941 (udip2soc.o): Likewise.
2942 (udi2go32.o): Likewise.
2943 (udr.o): Likewise.
2944 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2945
2946 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2947
2948 * infrun.c (_initialize_infrun): Delete unnecessary call to
2949 build_infrun.
2950
2951 * regcache.h: Update comments describing the regcache_cpy family
2952 of functions.
2953 (regcache_save, regcache_restore): Delete declaration.
2954 (regcache_save_no_passthrough): Delete declaration.
2955 (regcache_restore_no_passthrough): Delete declaration.
2956 * regcache.c (regcache_save): Delete function.
2957 (regcache_save_no_passthrough): Delete function.
2958 (regcache_restore): Delete function.
2959 (regcache_restore_no_passthrough): Delete function.
2960
2961 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2962
2963 * config/m68k/tm-m68k.h: Fix typo.
2964 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2965 (m68k_frame_init_saved_regs): Declare.
2966
2967 2002-06-21 Jim Blandy <jimb@redhat.com>
2968
2969 Remove some vestiges of Harris 88k support.
2970 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2971 register numbering quirk.
2972 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2973 odd symbols occurring in Harris 88k ELF targets.
2974
2975 2002-06-21 Tom Tromey <tromey@redhat.com>
2976
2977 * gdb_locale.h: New file.
2978 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2979 (defs_h): Added gdb_locale.h.
2980 * configure, config.in: Rebuilt.
2981 * configure.in (PACKAGE): Define.
2982 * defs.h: Include gdb_locale.h.
2983 * main.c (captured_main): Call setlocale, bindtextdomain,
2984 textdomain.
2985
2986 2002-06-21 Dave Brolley <brolley@redhat.com>
2987
2988 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2989 * config/frv/frv.mt: New file.
2990 * config/frv/tm-frv.h: New file.
2991 * configure.tgt: Support frv-*-*.
2992 * Makefile.in (frv-tdep.o): New target.
2993 * frv-tdep.c: New file.
2994 * NEWS: Mention frv.
2995
2996 2002-06-21 Dave Brolley <brolley@redhat.com>
2997
2998 * MAINTAINERS: Add self to "Write After Approval" list.
2999
3000 2002-06-21 Grace Sainsbury <graces@redhat.com>
3001
3002 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3003 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3004 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3005 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3006 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3007
3008 * m68k-tdep.c: Include arch-utils.h
3009 (m68k_register_raw_size): Add.
3010 (m68k_register_virtual_size): Add.
3011 (m68k_register_virtual_type): Add.
3012 (m68k_register_name): Add.
3013 (m68k_stack_align): Add.
3014 (m68k_register_byte): Add.
3015 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3016 tm-m68k.h.
3017
3018 2002-06-21 Grace Sainsbury <graces@redhat.com>
3019
3020 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3021 m68k_find_saved_regs.
3022 (m68k_pop_frame): Removed saved_regs structure, and replaced
3023 references to it with frame->saved_regs.
3024 (m68k_gdbarch_init): Added function calls to initialize the
3025 gdbarch structure.
3026 (m68k_fix_call_dummy): Add.
3027 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3028 (CALL_DUMMY): Remove.
3029 (CALL_DUMMY_LENGTH): Remove.
3030 (CALL_DUMMY_START_OFFSET): Remove.
3031 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3032 (FIX_CALL_DUMMY): Remove.
3033 (PUSH_DUMMY_FRAME): Remove.
3034 (POP_FRAME): Remove.
3035
3036 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3037
3038 * parse.c (parse_fprintf): New function used to avoid calls to
3039 fprintf in bison parser generated debug code.
3040 * parser-defs.h: Declaration of new parse_fprintf function.
3041 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3042 Set YYDEBUG to 1 by default.
3043 Set YYFPRINTF as parse_fprintf.
3044
3045 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3046
3047 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3048 encoding anymore.
3049 (pointer_encoding, enum ptr_encoding): New.
3050 (execute_cfa_program): Take care about pointer encoding.
3051 (dwarf2_build_frame_info): Only call parse_frame_info for
3052 .debug_frame and .eh_frame.
3053 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3054 fixed augmentation handling, added relative addressing,
3055 ignore duplicate FDEs. Added comments.
3056 * dwarf2cfi.c: Reindented.
3057
3058 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3059
3060 * event-top.c (command_handler): Don't use space_at_cmd_start
3061 unless there is sbrk() on the host. Assign time and space data
3062 to union fields of the appropriate length.
3063
3064 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3065
3066 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3067 x86_64_register_name. Return type changed to 'const char *'.
3068 (x86_64_register_name2nr): Rename to x86_64_register_number.
3069 (x86_64_gdbarch_init): Update to reflect the change.
3070 * x86-64-tdep.h: Ditto.
3071 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3072 (supply_fpregset): Ditto.
3073
3074 2002-06-19 Andrew Cagney <cagney@redhat.com>
3075
3076 * regcache.h: Update copyright.
3077 (struct regcache, struct gdbarch): Add opaque declarations.
3078 (current_regcache): Declare global variable.
3079 (regcache_read, regcache_write): Add gdbarch parameter.
3080 (regcache_save, regcache_save_no_passthrough)
3081 (regcache_restore, regcache_restore_no_passthrough)
3082 (regcache_dup, regcache_dup_no_passthrough)
3083 (regcache_cpy, regcache_cpy_no_passthrough)
3084 (deprecated_grub_regcache_for_registers)
3085 (deprecated_grub_regcache_for_register_valid)
3086 (regcache_valid_p): Add function declarations.
3087
3088 * regcache.c: Update copyright.
3089 (regcache_descr_handle): New global variable.
3090 (struct regcache_descr): Define.
3091 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3092 (regcache_descr, xfree_regcache_descr): New functions.
3093 (struct regcache): Define.
3094 (regcache_xmalloc, regcache_xfree): New functions.
3095 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3096 (regcache_dup, regcache_dup_no_passthrough): New functions.
3097 (regcache_valid_p, regcache_read_as_address): New functions.
3098 (deprecated_grub_regcache_for_registers): New function.
3099 (deprecated_grub_regcache_for_register_valid): New function.
3100 (current_regcache): New global variable.
3101 (register_buffer): Add regcache parameter. Update calls.
3102 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3103 (read_register_gen, write_register_gen): Update register_buffer
3104 call. Test for legacy_p instead of gdbarch_register_read_p or
3105 gdbarch_register_write_p.
3106 (regcache_collect): Update register_buffer call.
3107 (build_regcache): Rewrite. Use deprecated grub functions.
3108 (regcache_save, regcache_save_no_passthrough): New functions.
3109 (regcache_restore, regcache_restore_no_passthrough): New
3110 functions.
3111 (_initialize_regcache): Create the regcache_data_handle. Swap
3112 current_regcache global variable.
3113
3114 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3115 parameter to regcache_read and regcache_write calls.
3116 (sh4_register_read): Ditto.
3117 (sh64_pseudo_register_read): Ditto.
3118 (sh64_register_read): Ditto.
3119 (sh_pseudo_register_write): Ditto.
3120 (sh4_register_write): Ditto.
3121 (sh64_pseudo_register_write): Ditto.
3122 (sh64_register_write): Ditto.
3123
3124 * defs.h (XCALLOC): Define.
3125
3126 2002-06-19 Grace Sainsbury <graces@redhat.com>
3127
3128 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3129 * m68k-tdep.c (m68k_gdbarch_init): Added.
3130 (m68k_dump_tdep): Added.
3131
3132 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3133
3134 * ada-lang.c (fill_in_ada_prototype): Update comment.
3135
3136 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3137
3138 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3139 MIPS_ABI_LAST.
3140 (mips_abi_string, mips_abi_strings): New.
3141 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3142 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3143 tdep->mips_abi_string. Honor mips_abi_string. Default to
3144 O32 if no ABI is found.
3145 (mips_dump_tdep): Use mips_abi_strings.
3146 (mips_abi_update): New function.
3147 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3148 ``set mips abi'' and ``show mips abi''. Check the size of
3149 mips_abi_strings.
3150
3151 2002-06-19 Andrew Cagney <cagney@redhat.com>
3152
3153 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3154 constant.
3155
3156 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3157
3158 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3159 current frame using only the first stack size adjustment. All
3160 subsequent size adjustments are not considered to be part of
3161 the "static" part of the current frame.
3162 Compute the address of the saved registers relative to the
3163 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3164 in use in this frame.
3165
3166 2002-06-18 Don Howard <dhoward@redhat.com>
3167
3168 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3169 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3170 suggesting this solution.
3171
3172 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3173
3174 * config/romp/xm-rtbsd.h: Delete file.
3175 * config/romp/rtbsd.mh: Delete file.
3176
3177 2002-06-18 Keith Seitz <keiths@redhat.com>
3178
3179 * breakpoint.c (condition_command): Post breakpoint_modify
3180 when a condition is added to an existing breakpoint.
3181 (commands_command): Likewise for commands.
3182 (set_ignore_count): Likewise for ignore counts.
3183 If no tty, do not simply return, still need to send event
3184 notification.
3185 (ignore_command): Only print a newline if the command came
3186 from a tty.
3187 Don't call breakpoints_changed, since this is now properly
3188 handled by set_ignore_count.
3189
3190 2002-06-18 Andrew Cagney <cagney@redhat.com>
3191
3192 * MAINTAINERS: Note that cris-elf target can be compiled with
3193 -Werror.
3194 * cris-tdep.c (cris_register_name): Make return type constant.
3195 (cris_breakpoint_from_pc): Ditto.
3196
3197 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3198
3199 * frame.h (struct frame_info): Change type of context to
3200 'struct context'.
3201
3202 2002-06-17 Andrew Cagney <cagney@redhat.com>
3203
3204 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3205 pointer.
3206 * gdbarch.h, gdbarch.c: Regenerate.
3207 * config/mips/tm-mips.h (mips_register_name): Update.
3208 * i386-tdep.h (i386_register_name): Update.
3209 * mips-tdep.c (mips_register_name): Update
3210 * alpha-tdep.c (alpha_register_name): Update.
3211 * arch-utils.c (legacy_register_name): Update.
3212 * arch-utils.h (legacy_register_name): Update.
3213 * avr-tdep.c (avr_register_name): Update.
3214 * ia64-tdep.c (ia64_register_name): Update.
3215 * i386-tdep.c (i386_register_name): Update.
3216 * sparc-tdep.c (sparc32_register_name): Update.
3217 (sparc64_register_name): Update.
3218 (sparclite_register_name): Update.
3219 (sparclet_register_name): Update.
3220 * sh-tdep.c (sh_generic_register_name): Update.
3221 (sh_sh_register_name): Update.
3222 (sh_sh3_register_name): Update.
3223 (sh_sh3e_register_name): Update.
3224 (sh_sh_dsp_register_name): Update.
3225 (sh_sh3_dsp_register_name): Update.
3226 (sh_sh4_register_name): Update.
3227 (sh_sh64_register_name): Update.
3228 * s390-tdep.c (s390_register_name): Update.
3229 * rs6000-tdep.c (rs6000_register_name): Update.
3230 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3231 (ns32k_register_name_32382): Update.
3232 * d10v-tdep.c (d10v_ts2_register_name): Update.
3233 (d10v_ts3_register_name): Update.
3234 * xstormy16-tdep.c (xstormy16_register_name): Update.
3235 * vax-tdep.c (vax_register_name): Update.
3236 * v850-tdep.c (v850_register_name): Update.
3237 * m68hc11-tdep.c (m68hc11_register_name): Update.
3238 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3239 (am33_register_name): Update.
3240
3241 2002-06-17 Grace Sainsbury <graces@redhat.com>
3242
3243 * m68k-tdep.c: Reindented.
3244
3245 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3246
3247 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3248 list of predefined types.
3249
3250 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3251
3252 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3253 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3254 REGISTER_CONVERT_TO_RAW): Remove defines.
3255 (i386_register_virtual_type, i386_register_convertible,
3256 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3257 Remove prototypes.
3258 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3259 macros mentioned above.
3260
3261 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3262 (i386lynx_saved_pc_after_call): Remove prototype.
3263 * i386ly-tdep.c: Include "i386-tdep.h".
3264 (i386lynx_saved_pc_after_call): Make static. Use
3265 read_memory_nobpt instead of read_memory. Use
3266 read_memory_unsigned_integer instead of read_memory_integer.
3267 (i386lynx_init_abi): New function.
3268 (i386lynx_coff_osabi_sniffer): New function.
3269 (_initialize_i386bsd_tdep): New function.
3270
3271 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3272 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3273 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3274 (i386_fix_call_dummy): Remove prototype.
3275 * i386-tdep.c (i386_call_dummy_words): New variable.
3276 (i386_gdbarch_init): Adjust for removal of the
3277 macros mentioned above.
3278
3279 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3280
3281 * command.h (add_setshow_auto_boolean_cmd): Replace
3282 add_set_auto_boolean_cmd.
3283 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3284 add_set_auto_boolean_cmd.
3285 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3286 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3287 mask-address'' command.
3288 (show_mask_address): Add cmd parameter.
3289 * remote.c (add_packet_config_cmd): Update. Change type of
3290 set_func and show_func to cmd_sfunc_ftype.
3291 (_initialize_remote): Update `set remote Z-packet'
3292 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3293 (show_remote_protocol_e_packet_cmd): Ditto.
3294 (show_remote_protocol_E_packet_cmd): Ditto.
3295 (show_remote_protocol_P_packet_cmd): Ditto.
3296 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3297 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3298 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3299 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3300 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3301 (show_remote_protocol_Z_packet_cmd): Ditto.
3302 (show_remote_protocol_binary_download_cmd): Ditto.
3303 (show_remote_cmd): Pass NULL to all of above.
3304
3305 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3306
3307 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3308 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3309 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3310 POP_FRAME): Remove defines.
3311 (i386_push_arguments, i386_store_struct_return,
3312 i386_extract_return_value, i386_store_return_value,
3313 i386_extract_struct_value_address, i386_push_dummy_frame,
3314 i386_pop_frame): Renove prototypes.
3315 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3316 macros mentioned above.
3317
3318 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3319
3320 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3321 add_set_boolean_cmd.
3322 (add_setshow_cmd): New function.
3323 * command.h (add_setshow_boolean_cmd): Replace
3324 add_set_boolean_cmd.
3325 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3326 and ``set rdiromatzero''.
3327 * maint.c (_initialize_maint_cmds): Update commented out code.
3328 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3329 * target.c (initialize_targets): Update `set
3330 trust-readonly-sections'.
3331 * remote.c (_initialize_remote): Update `set remotebreak'.
3332
3333 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3334
3335 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3336 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3337 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3338 fit into multi-arch framework.
3339 (i386_breakpoint_from_pc): New function.
3340 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3341 above.
3342
3343 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3344 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3345 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3346 (i386_frameless_function_invocation, i386_frame_num_args,
3347 i386_frame_init_saved_regs): Remove prototypes.
3348 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3349 macros mentioned above.
3350
3351 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3352
3353 * cli/cli-decode.c (set_cmd_cfunc): Update.
3354 (set_cmd_sfunc): Update.
3355 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3356 (set_cmd_sfunc, set_cmd_cfunc): Update.
3357 * cli/cli-decode.h: Update.
3358
3359 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3360
3361 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3362 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3363
3364 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3365
3366 * defs.h (auto_boolean): Declare enum.
3367 * command.h (cmd_auto_boolean): Delete enum.
3368 * mips-tdep.c (mask_address_var): Update.
3369 (mips_mask_address_p): Update.
3370 (show_mask_address): Update.
3371 * remote.c (struct packet_config): Update.
3372 (update_packet_config): Update.
3373 (show_packet_config_cmd): Update.
3374 (packet_ok): Update.
3375 (add_packet_config_cmd): Update.
3376 (_initialize_remote):
3377 * command.h: Update.
3378 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3379 (do_setshow_command): Update.
3380 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3381 * cli/cli-decode.h: Update.
3382
3383 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3384
3385 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3386 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3387 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3388 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3389 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3390 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3391
3392 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3393 list of DJGPP COFF targets.
3394
3395 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3396 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3397 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3398 (FP0_REGNUM): Remove define.
3399 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3400 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3401 (i386_register_virtual_size): Remove protoype.
3402 * i386-tdep.c (i386_register_virtual_size): Removed.
3403 (i386_extract_return_value, i386_store_return_value): Use
3404 FP0_REGNUM instead of NUM_FREGS to determine whether the
3405 floating-point registers are available.
3406 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3407 Adjust for removal of macros mentioned above.
3408
3409 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3410
3411 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3412 comments.
3413 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3414 Remove prototypes.
3415 (supply_gregset, fill_gregset): Remove use of register keyword and
3416 remove declaration for regmap. Use I386_NUM_GREGS instead of
3417 NUM_REGS and NUM_FREGS.
3418 (FPREGSET_FSAVE_OFFSET): Remove.
3419 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3420 NUM_FREGS to determine whether the floating-point registers are
3421 available.
3422
3423 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3424 gnu_store_registers): Replace usage of NUM_GREGS with
3425 I386_NUM_GREGS.
3426
3427 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3428 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3429 usage of NUM_GREGS with I386_NUM_GREGS.
3430
3431 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3432
3433 * i386bsd-nat.c: Include "i386-tdep.h".
3434 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3435 I386_NUM_GREGS.
3436
3437 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3438 and associated comment. They no longer make any sense, since we
3439 don't use this file anymore on Linux.
3440
3441 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3442 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3443 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3444 elements in these arrays.
3445 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3446 MAX_NUM_REGS.
3447
3448 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3449
3450 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3451 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3452
3453 2002-06-14 Andrew Cagney <cagney@redhat.com>
3454
3455 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3456 EXTRACT_RETURN_VALUE.
3457 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3458 EXTRACT_STRUCT_VALUE_ADDRESS.
3459 * gdbarch.h, gdbarch.c: Regenerate.
3460
3461 * values.c (value_being_returned): Handle
3462 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3463 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3464
3465 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3466 * arm-tdep.c (arm_gdbarch_init): Update.
3467 * avr-tdep.c (avr_gdbarch_init): Update.
3468 * cris-tdep.c (cris_gdbarch_init): Update.
3469 * d10v-tdep.c (d10v_gdbarch_init): Update.
3470 * ia64-tdep.c (ia64_gdbarch_init): Update.
3471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3473 * s390-tdep.c (s390_gdbarch_init): Update.
3474 * sh-tdep.c (sh_gdbarch_init): Update.
3475 * s390-tdep.c (s390_gdbarch_init): Update.
3476 * sparc-tdep.c (sparc_gdbarch_init): Update.
3477 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3478 * v850-tdep.c (v850_gdbarch_init): Update.
3479 * vax-tdep.c (vax_gdbarch_init): Update.
3480 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3482
3483 * config/arc/tm-arc.h: Update.
3484 * config/d30v/tm-d30v.h: Update.
3485 * config/fr30/tm-fr30.h: Update.
3486 * config/h8300/tm-h8300.h: Update.
3487 * config/h8500/tm-h8500.h: Update.
3488 * config/i386/tm-i386.h: Update.
3489 * config/i386/tm-ptx.h: Update.
3490 * config/i386/tm-symmetry.h: Update.
3491 * config/i960/tm-i960.h: Update.
3492 * config/m32r/tm-m32r.h: Update.
3493 * config/m68k/tm-delta68.h: Update.
3494 * config/m68k/tm-linux.h: Update.
3495 * config/m68k/tm-m68k.h: Update.
3496 * config/m88k/tm-m88k.h: Update.
3497 * config/mcore/tm-mcore.h: Update.
3498 * config/mips/tm-mips.h: Update.
3499 * config/mn10200/tm-mn10200.h: Update.
3500 * config/pa/tm-hppa.h: Update.
3501 * config/pa/tm-hppa64.h: Update.
3502 * config/sparc/tm-sp64.h: Update.
3503 * config/sparc/tm-sparc.h: Update.
3504 * config/sparc/tm-sparclet.h: Update.
3505 * config/z8k/tm-z8k.h: Update.
3506
3507 2002-06-14 Andrew Cagney <cagney@redhat.com>
3508
3509 * Makefile.in (i386_linux_tdep_h): Define.
3510 (i386_tdep_h, i387_tdep_h): Define.
3511 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3512 $(i386_tdep_h) and $(i387_tdep_h).
3513 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3514
3515 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3516
3517 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3518 Already covered by the default.
3519
3520 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3521 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3522 (i386_gdbarch_init): Initialize long_double_format and long_double
3523 bit.
3524
3525 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3526 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3527 Move these to ...
3528 * config/i386/i386sol2.mh: ... here.
3529 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3530 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3531 (SIGCONTEXT_PC_OFFSET): Remove define.
3532 (IN_SIGTRAMP): Remove define.
3533 * i386-sol2-tdep.c: New file.
3534
3535 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3536 * config/i386/tm-i386nw.h: Removed.
3537
3538 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3539 USE_STRUCT_CONVENTION): Remove defines.
3540 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3541 (get_longjmp_target): Remove prototype.
3542 (IN_SIGTRAMP): Remove define.
3543 (i386bsd_in_sigtramp): Remove prototype.
3544 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3545 function. Update comment accordingly
3546 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3547 (FRAME_SAVED_PC): Remove define.
3548 (i386bsd_frame_saved_pc): Remove prototype.
3549 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3550 GET_LONGJMP_TARGET): Remove defines.
3551 (get_longjmp_target): Remove prototype.
3552 (IN_SIGTRAMP): Remove define.
3553 (i386bsd_in_sigtramp): Remove prototype.
3554 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3555 function. Update comment accordingly
3556 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3557 (FRAME_SAVED_PC): Remove define.
3558 (i386bsd_frame_saved_pc): Remove prototype.
3559 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3560 Remove prototype.
3561 (USE_STRUCT_CONVENTION): Remove prototype.
3562 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3563 declaration.
3564 (_initialize_i386bsd_nat): Revise logic to determine some
3565 constants at compile time when compiling a native GDB. Warn if
3566 things don't match up with what we expect.
3567 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3568 Remove variables.
3569 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3570 to use date stored in `struct gdbarch_tdep'.
3571 (i386bsd_sigcontext_offset): Remove varaible.
3572 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3573 stored in `struct gdbarch_tdep'.
3574 (i386bsd_frame_saved_pc): Make static.
3575 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3576 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3577 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3578 i386fbsd4_sc_pc_offset): New variables.
3579 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3580 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3581 functions.
3582 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3583 functions.
3584 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3585 Modify the value of i386fbsd_sigtramp_start and
3586 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3587 i386fbsd_sigtramp_end.
3588 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3589 function.
3590
3591 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3592 define to i386-linux-tdep.h.
3593 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3594 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3595 defines.
3596 (i386_linux_register_name, i386_linux_register_byte,
3597 i386_linux_register_raw_size): Remove prototypes.
3598 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3599 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3600 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3601 TARGET_WRITE_PC): Remove defines.
3602 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3603 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3604 i386_linux_write_pc): Remove prototypes.
3605 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3606 (get_longjmp_target): Remove prototype.
3607 * i386-linux-tdep.h: New file.
3608 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3609 * i386-linux-tdep.c: Include "i386-tdep.h" and
3610 "i386-linux-tdep.h".
3611 (i386_linux_register_name, i386_linux_register_byte,
3612 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3613 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3614 Make static.
3615 (i386_linux_init_abi): New function.
3616 (_initialize_i386_linux_tdep): New function.
3617
3618 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3619 (i386_saved_pc_after_call): Remove prototype.
3620 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3621 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3622 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3623 (i386_register_name, i386_stab_reg_to_regnum,
3624 i386_dwarf_reg_to_regnum): Remove prototypes.
3625 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3626 SIZEOF_SSE_REGS): Remove defines.
3627 (REGISTER_BYTES): Remove define.
3628 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3629 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3630 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3631 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3632 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3633 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3634 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3635 (get_longjmp_target): Remove prototype.
3636 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3637 (sigtramp_saved_pc): Remove define.
3638 (i386v4_sigtramp_saved_pc): Remove prototype.
3639 * config/i386/tm-go32.h (FRAME_CHAIN,
3640 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3641 (i386go32_frame_saved_pc): Remove prototype.
3642 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3643 (get_longjmp_target): Remove prototype.
3644 * i386-tdep.h: Include "osabi.h".
3645 (enum i386_abi): Removed.
3646 (enum struct_return): New enum.
3647 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3648 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3649 sc_pc_offset members.
3650 (i386_gdbarch_register_os_abi): Remove prototype.
3651 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3652 I386_SSE_NUM_REGS): New defines.
3653 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3654 I386_SSE_SIZEOF_REGS): New defines.
3655 (i386_register_name, i386_register_byte, i386_register_raw_size):
3656 New prototypes.
3657 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3658 (i386bsd_sigtramp_saved_pc): New prototype.
3659 * i386-tdep.c: Don't include "elf-bfd.h".
3660 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3661 i386_frame_chain, i386_saved_pc_after_call): Make static.
3662 (i386_frame_saved_pc): Rewrite to call architecture dependent
3663 function to deal with signal handlers. Make static.
3664 (i386go32_frame_saved_pc): Removed.
3665 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3666 Removed.
3667 (i386_get_longjmp_target): New function.
3668 (default_struct_convention, pcc_struct_convention,
3669 reg_struct_convention, valid_conventions, struct_convention): New
3670 variables.
3671 (i386_use_struct_convention): New function.
3672 (i386v4_sigtramp_saved_pc): Renamed to
3673 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3674 (i386_pc_in_sigtramp): New function.
3675 (i386_abi_names): Removed.
3676 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3677 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3678 Removed.
3679 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3680 i386_gdbarch_register_os_abi): Removed.
3681 (struct i386_abi_handler): Removed.
3682 (i386_abi_handler_list): Removed.
3683 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3684 functions.
3685 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3686 i386_nw_init_abi): New functions.
3687 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3688 Use set_gdbarch_xxx() calls instead of relying on macros for a
3689 number of calls.
3690 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3691 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3692 Register the various architecture variants defined in this file.
3693
3694 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3695
3696 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3697 (struct main_type): Remove arg_types member. Update comments for
3698 struct field.
3699 (TYPE_ARG_TYPES): Remove.
3700 (TYPE_FN_FIELD_ARGS): Update.
3701 (smash_to_method_type): Update prototype.
3702
3703 * c-typeprint.c (cp_type_print_method_args): Take method type
3704 instead of argument list. Use new argument layout. Simplify.
3705 (c_type_print_args): Use new argument layout. Simplify.
3706 (c_type_print_base): Update call to cp_type_print_method_args.
3707 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3708 argument; use die->type instead. Update call to
3709 smash_to_method_type.
3710 (read_structure_scope): Update call to dwarf2_add_member_fn.
3711 * gdbtypes.c (allocate_stub_method): Update comment.
3712 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3713 Use new argument layout.
3714 (check_stub_method): Use new argument layout. Don't count
3715 void as an argument.
3716 (print_arg_types): Update comments. Use new argument layout.
3717 (recursive_dump_type): Don't print arg_types member.
3718 * hpread.c (hpread_read_struct_type): Use new argument layout.
3719 (fixup_class_method_type): Likewise.
3720 (hpread_type_lookup): Likewise.
3721 * stabsread.c (read_type): Update calls to read_args and
3722 smash_to_method_type.
3723 (read_args): Use new argument layout. Simplify.
3724 * valops.c (typecmp): Use new argument layout. Update parameters
3725 and comments. Simplify.
3726 (hand_function_call): Use new argument layout.
3727 (search_struct_method): Update call to typecmp.
3728 (find_overload_match): Use new argument layout.
3729
3730 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * NEWS: Mention multithreaded debug support for gdbserver.
3733
3734 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3735
3736 * MAINTAINERS: Mention NEWS.
3737
3738 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3739
3740 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3741 (struct mips_objfile_private, compare_pdr_entries): New.
3742 (non_heuristic_proc_desc): Read the ".pdr" section if it
3743 is present.
3744
3745 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3746
3747 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3748 (arm_debug): New static variable.
3749 (_initialize_arm_tdep): Add ``set debug arm'' command.
3750
3751 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3752
3753 * Makefile.in (sim_arm_h): Define.
3754 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3755 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3756 (arm_register_sim_regno): New function, map an internal REGNUM
3757 onto a simulator register number.
3758 (arm_gdbarch_init): Set register_sim_regno.
3759
3760 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3761
3762 * MAINTAINERS: Add self.
3763
3764 2002-06-11 Jim Blandy <jimb@redhat.com>
3765
3766 * source.c (source_info): Mention whether the symtab has
3767 information about preprocessor macros.
3768
3769 Call the command `info macro', not `show macro'.
3770 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3771 Fix error message.
3772 (_initialize_macrocmd): Register `info_macro_command' in
3773 `infolist', not `showlist'.
3774
3775 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3776
3777 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3778 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3779 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3780 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3781 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3782 unconditionally.
3783 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3784 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3785 (_initialize_mips_tdep): Remove dead code.
3786 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3787 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3788 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3789 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3790 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3791 MIPS_LAST_FP_ARG_REGNUM): Remove.
3792
3793 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3794
3795 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3796 (unwind_tmp_obstack_free, parse_frame_info)
3797 (update_context, cfi_read_fp, cfi_write_fp)
3798 (cfi_frame_chain, cfi_init_extra_frame_info)
3799 (cfi_virtual_frame_pointer): Use the above function.
3800 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3801
3802 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3803
3804 * v850-tdep.c (v850_type_is_scalar): New function.
3805 (v850_use_struct_convention): Match current gcc implementation
3806 as close as possible.
3807 (v850_push_arguments): Fix stack_offset handling. Don't write
3808 struct_addr into register. This is done by v850_store_struct_return.
3809 (v850_extract_return_value): Care for structs.
3810 (v850_store_return_value): Ditto.
3811 (v850_store_struct_return): Actually write address.
3812
3813 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3814
3815 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3816 without debug information too.
3817
3818 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3819
3820 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3821 Make multi-arch pure.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823 * arm-tdep.c (arm_print_float_info): Update.
3824 * arch-utils.h (default_print_float_info): Update.
3825 * arch-utils.c (default_print_float_info): Update.
3826 * infcmd.c (float_info): Update call.
3827
3828 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3829
3830 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3831 the front of the initialize list.
3832
3833 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3834
3835 * infrun.c (struct inferior_status): Replace fields
3836 selected_frame_address and selected_level with field
3837 selected_frame_id.
3838 (save_inferior_status): Update. Use get_frame_id.
3839 (struct restore_selected_frame_args): Delete.
3840 (restore_selected_frame): Update. Use frame_find_by_id.
3841 (restore_inferior_status): Update.
3842
3843 * breakpoint.h (struct breakpoint): Change type of
3844 watchpoint_frame to frame_id.
3845 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3846 call to get_current_frame.
3847 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3848 get_current_frame.
3849 (watchpoint_check): Use frame_find_by_id.
3850
3851 * frame.h (record_selected_frame): Delete declaration.
3852 * stack.c (record_selected_frame): Delete function.
3853
3854 * frame.h (struct frame_id): Define.
3855 (get_frame_id): Declare.
3856 (frame_find_by_id): Declare.
3857 * frame.c (frame_find_by_id): New function.
3858 (get_frame_id): New function.
3859
3860 2002-06-10 Andrey Volkov <avolkov@transas.com>
3861
3862 * ser-e7kpc.c: Fix duplicated define and call of
3863 _initialize_ser_e7000pc
3864
3865 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3866
3867 * signals/signals.c (target_signal_from_host): Fix #ifdef
3868 SIGRTMIN case.
3869 (do_target_signal_to_host): Likewise.
3870
3871 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3872
3873 * mips-tdep.c (mips_find_abi_section): New function.
3874 (mips_gdbarch_init): Call it.
3875
3876 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3877
3878 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3879 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3880 after Andrew's 2002-06-08 gdbarch change.
3881
3882 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3883
3884 * i386-linux-nat.c (suppy_gregset): Don't supply
3885 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3886 register cache.
3887 (fill_gregset): Don't fetch it under the same circumstances.
3888
3889 2002-06-09 Andrew Cagney <cagney@redhat.com>
3890
3891 * Makefile.in (callback_h): Define.
3892 (remote_sim_h): Update path to remote-sim.h.
3893 (remote-rdp.o): Add $(callback_h).
3894 (remote-sim.o): Use $(callback_h).
3895 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3896 * remote-rdp.c: Include "gdb/callback.h".
3897
3898 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3899
3900 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3901 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3902
3903 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3904
3905 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3906 * rdi-share/serpardr.c: Ditto.
3907 * rdi-share/unixcomm.c: Ditto.
3908 * rdi-share/serdrv.c: Ditto.
3909 * rdi-share/hostchan.h: Ditto.
3910 * rdi-share/hostchan.c: Ditto.
3911 * rdi-share/host.h: Ditto.
3912 * rdi-share/devsw.c: Ditto.
3913
3914 * objfiles.h: Change type of obj_private to void pointer.
3915 * pa64solib.c: Update copyright. Don't include "assert.h", use
3916 strcmp instead of STREQ, use LONGEST, do not use PTR
3917 * somsolib.c: Ditto.
3918
3919 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3920 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3921 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3922
3923 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3924
3925 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3926 (default_get_saved_register): Delete function.
3927 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3928 generic_unwind_get_saved_register.
3929 * gdbarch.h, gdbarch.c: Re-generate.
3930
3931 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3932
3933 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3934 generic_func_frame_chain_valid.
3935 * gdbarch.h, gdbarch.c: Re-generate.
3936 * blockframe.c (generic_func_frame_chain_valid): Only check
3937 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3938 passing FP to PC_IN_CALL_DUMMY.
3939 Fix PR gdb/360.
3940
3941 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3942
3943 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3944 (register_gdbarch_data): Initialize init_p.
3945 (gdbarch_data): Initialize data pointer using the init function.
3946 (init_gdbarch_data): Delete function.
3947 (gdbarch_update_p): Update.
3948 (initialize_non_multiarch): Update.
3949 (struct gdbarch): Add field initialized_p.
3950 * gdbarch.h, gdbarch.c: Re-generate.
3951
3952 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3953
3954 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3955 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3956 better do the things actually here.
3957 * x86-64-tdep.c (x86_64_register_name2nr): New.
3958 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3959 (x86_64_gdbarch_init): Respect the above change.
3960 * x86-64-tdep.h (x86_64_register_name2nr)
3961 (x86_64_register_nr2name): Add prototypes.
3962 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3963
3964 2002-06-06 Michael Snyder <msnyder@redhat.com>
3965
3966 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3967 Delete extra braces and re-indent.
3968 (d10v_store_return_value): Char return values
3969 must be shifted over by one byte in R0.
3970 (d10v_extract_return_value): Delete extra braces, re-indent.
3971
3972 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3973
3974 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3975 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3976 (d10v_integer_to_address): Rewrite.
3977 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3978 the d10v specific functions which take care of converting to the
3979 correct space.
3980
3981 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3982
3983 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3984 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3985
3986 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3987
3988 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3989 includes.
3990 * config/tm-linux.h: Ditto.
3991 * config/alpha/tm-alphalinux.h: Ditto.
3992 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3993 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3994 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3995 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3996 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3997 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3998 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3999 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4000 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4001 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4002 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4003 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4004 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4005 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4006 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4007 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4008 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4009 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4010 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4011 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4012 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4013 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4014 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4015 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4016 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4017 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4018 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4019 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4020 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4021 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4022 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4023 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4024 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4025 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4026 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4027 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4028 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4029
4030 2002-05-04 Aidan Skinner <aidan@velvet.net>
4031
4032 * ada-exp.tab.c: New file
4033 * ada-exp.y: New file
4034 * ada-lang.c: New file
4035 * ada-lang.h: New file
4036 * ada-lex.c: New file
4037 * ada-lex.l: New file
4038 * ada-tasks.c: New file
4039 * ada-typeprint.c: New file
4040 * ada-valprint.c: New file
4041
4042 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4043
4044 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4045 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4046
4047 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4048
4049 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4050 insetead of ppc-linux-tdep.o.
4051 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4052 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4053
4054 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4055
4056 2002-05-07 Christian Groessler <chris@groessler.org>
4057 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4058 bit register contents for little endian hosts.
4059
4060 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4061
4062 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4063 any maintainer.
4064
4065 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4066
4067 * gdbarch.h: Regenerate.
4068
4069 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4070
4071 * MAINTAINERS: Add everyone to write-after-approval list.
4072
4073 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4074
4075 * stack.c (frame_info): Use frame_register_unwind instead of
4076 saved_regs. Mention when the SP is on the stack or in a register.
4077
4078 * frame.h (frame_register_unwind_ftype): Define. Document.
4079 (struct frame_info): Add field register_unwind and
4080 register_unwind_cache.
4081 (frame_register_unwind): Declare.
4082 (generic_unwind_get_saved_register): Declare.
4083
4084 * frame.c (frame_register_unwind): New function.
4085 (generic_unwind_get_saved_register): New function.
4086
4087 * blockframe.c (generic_call_dummy_register_unwind): New function.
4088 (frame_saved_regs_register_unwind): New function.
4089 (set_unwind_by_pc): New function.
4090 (create_new_frame): New function.
4091 (get_prev_frame): New function.
4092
4093 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4094
4095 * a29k-share/: Delete directory.
4096 * remote-vx29k.c: Delete file.
4097
4098 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4099
4100 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4101 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4102
4103 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4104
4105 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4106 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4107 (sparc64nbsd-nat.o)
4108 (sparcnbsd-nat.o)
4109 (sparcnbsd-tdep.o): New dependency lists.
4110 * NEWS: Note new UltraSPARC NetBSD native configuration.
4111 * configure.host (sparc64-*-netbsd*): New host.
4112 * configure.tgt (sparc-*-netbsdelf*)
4113 (sparc-*-netbsd*): Set gdb_target to nbsd.
4114 (sparc64-*-netbsd*): New target.
4115 * sparc64nbsd-nat.c: New file.
4116 * sparcnbsd-nat.c: New file.
4117 * sparcnbsd-tdep.c: New file.
4118 * sparcnbsd-tdep.h: New file.
4119 * config/sparc/nbsd.mt: New file.
4120 * config/sparc/nbsd64.mh: New file.
4121 * config/sparc/nbsd64.mt: New file.
4122 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4123 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4124 (HOST_IPC): Remove.
4125 * config/sparc/nbsdaout.mt: Remove.
4126 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4127 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4128 (HOST_IPC): Remove.
4129 * config/sparc/nbsdelf.mt: Remove.
4130 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4131 sparc-nat.c compatiblity defines.
4132 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4133 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4134 * config/sparc/tm-nbsd64.h: New file.
4135 * config/sparc/tm-nbsdaout.h: Remove.
4136 * config/sparc/xm-nbsd.h: Remove.
4137
4138 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4139
4140 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4141 * sparc-tdep.c: Include osabi.h.
4142 (gdbarch_tdep): Add osabi member.
4143 (_initialize_sparc_tdep): Use gdbarch_register.
4144 (sparc_gdbarch_init): Use generic OS ABI framework.
4145 (sparc_dump_tdep): New function.
4146
4147 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4148
4149 * corefile.c (do_captured_read_memory_integer): Return non-zero
4150 result.
4151 (safe_read_memory_integer): Copy result of memory read when
4152 status is non-zero. Also, add comments.
4153
4154 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4155
4156 * Makefile.in (ppc_tdep_h): Define.
4157 (ppc-linux-nat.o)
4158 (ppc-linux-tdep.o)
4159 (rs6000-tdep.o): Use $(ppc_tdep_h).
4160 (ppc-sysv-tdep.o)
4161 (ppcnbsd-nat.o)
4162 (ppcnbsd-tdep.o): New dependency lists.
4163 * ppc-tdep.h: Use generic OS ABI framework.
4164 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4165 (ppc_linux_init_abi): New functions.
4166 (ppc_sysv_abi_broken_use_struct_convention)
4167 (ppc_sysv_abi_use_struct_convention)
4168 (ppc_sysv_abi_push_arguments): Move to...
4169 * ppc-sysv-tdep.c: ...here.
4170 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4171 * rs6000-tdep.c (process_note_abi_tag_sections)
4172 (get_elfosabi): Remove.
4173 (rs6000_gdbarch_init): Use generic OS ABI framework.
4174 (rs6000_dump_tdep): New function.
4175 (_initialize_rs6000_tdep): Use gdbarch_register.
4176 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4177 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4178 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4179 of ppc-linux-tdep.o.
4180 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4181 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4182 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4183 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4184 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4185 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4186
4187 2002-05-29 Jim Blandy <jimb@redhat.com>
4188
4189 * macroscope.c (default_macro_scope): Put `void' in empty argument
4190 list.
4191
4192 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4193
4194 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4195 * arch-utils.c: Include "sim-regno.h".
4196 * gdbarch.sh: Don't include "sim-regno.h".
4197 * gdbarch.h, gdbarch.c: Regenerate.
4198 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4199 here.
4200 * arch-utils.h (legacy_register_sim_regno): To here.
4201 * remote-sim.c (legacy_register_sim_regno): Move function from
4202 here.
4203 * arch-utils.c (legacy_register_sim_regno): To here.
4204
4205 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4206
4207 * sim-regno.h: New file.
4208 * Makefile.in (sim_regno_h): Define.
4209 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4210 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4211 (legacy_register_sim_regno): New function.
4212 (one2one_register_sim_regno): New function.
4213 (gdbsim_fetch_register): Rewrite.
4214 (gdbsim_store_register): Only store a register when
4215 REGISTER_SIM_REGNO is valid.
4216 * d10v-tdep.c: Include "sim-regno.h".
4217 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4218 (d10v_ts3_register_sim_regno): Ditto.
4219 * gdbarch.sh: Include "sim-regno.h".
4220 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4221 * gdbarch.h, gdbarch.c: Regenerate.
4222 * arch-utils.h (default_register_sim_regno): Delete declaration.
4223 * arch-utils.c (default_register_sim_regno): Delete function.
4224
4225 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4226
4227 * ppcnbsd-nat.c: Rewrite.
4228 * ppcnbsd-tdep.c: New file.
4229 * ppcnbsd-tdep.h: New file.
4230 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4231 solib.o, and solib-svr4.o.
4232 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4233 nbsd-tdep.o, and corelow.o.
4234
4235 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4236
4237 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4238 `tr' and `sed'. Mention that `broken' targets are not expected to
4239 build.
4240
4241 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4242
4243 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4244 Let PC point right after the prologue before looking up symbols.
4245
4246 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4247
4248 * i386-tdep.c (i386_register_virtual_type): Return
4249 builtin_type_vec128i for SSE registers.
4250
4251 * gdbtypes.h (builtin_type_vec128i): Declare.
4252
4253 * gdbtypes.c (build_builtin_type_vec128i): New function.
4254 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4255 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4256 (build_gdbtypes): Initialize new builtin vector types.
4257 (_initialize_gdbtypes): Register new vector types with gdbarch.
4258
4259 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4260
4261 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4262 since it has been multi-arch'd.
4263 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4264 Move Alpha and VAX multi-arch news entries to same section
4265 as other multi-arch news.
4266
4267 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4268
4269 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4270 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4271 static. Rename some register numbers to put them in ns32k-tdep
4272 private namespace.
4273 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4274 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4275 functions.
4276 (_initialize_ns32k_tdep): Use gdbarch_register.
4277 * ns32k-tdep.h: New file.
4278 * ns32knbsd-tdep.c: New file.
4279 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4280 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4281 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4282 REGISTER_BYTES, REGISTER_BYTE): Remove.
4283 * config/ns32k/tm-ns32k.h: New file.
4284 * config/ns32k/tm-umax.h: Remove.
4285
4286 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4287
4288 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4289 ns32k_store_struct_return, ns32k_extract_return_value,
4290 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4291 functions.
4292 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4293 ns32k_saved_pc_after_call.
4294 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4295 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4296 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4297 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4298 ns32k_extract_struct_value_address.
4299
4300 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4301
4302 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4303 ns32k_fix_call_dummy): New.
4304 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4305 ns32k_call_dummy_words.
4306 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4307 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4308 CALL_DUMMY_NARGS): Remove.
4309 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4310
4311 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4312
4313 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4314 ns32k_frame_saved_pc, ns32k_frame_args_address,
4315 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4316 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4317 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4318 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4319 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4320 (BREAKPOINT): Remove..
4321 (FRAME_CHAIN): Define as ns32k_frame_chain.
4322 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4323 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4324 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4325 (FRAME_FIND_SAVED_REGS): Remove.
4326 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4327 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4328 (POP_FRAME): Define as ns32k_pop_frame.
4329
4330 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4331
4332 * ns32k-tdep.c (ns32k_register_byte_32082,
4333 ns32k_register_byte_32382, ns32k_register_raw_size,
4334 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4335 functions.
4336 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4337 ns32k_register_byte_32382.
4338 * config/ns32k/tm-umax.h: Update copyright years.
4339 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4340 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4341 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4342 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4343 (ns32k_get_enter_addr): Fix prototype.
4344
4345 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4346
4347 * ns32k-tdep.c: Update copyright years.
4348 (ns32k_register_name_32082): New function.
4349 (ns32k_register_name_32382): Ditto.
4350 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4351 (REGISTER_NAME): Define as ns32k_register_name_32382.
4352 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4353 (REGISTER_NAME): Define as ns32k_register_name_32082.
4354
4355 2002-05-24 Jim Blandy <jimb@redhat.com>
4356
4357 * dwarf2read.c (free_line_header): Use xfree, not free.
4358
4359 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4360
4361 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4362 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4363
4364 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4365
4366 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4367
4368 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4369
4370 From Ross Alexander at NEC Europe:
4371 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4372
4373 2002-05-23 Michael Snyder <msnyder@redhat.com>
4374
4375 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4376 for input, rather than parse_and_eval_address.
4377
4378 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4379
4380 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4381 * Makefile.in (sim_d10v_h): Update definition.
4382
4383 2002-05-24 Andrew Cagney <cagney@redhat.com>
4384
4385 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4386 change `2002-05-22 Michael Snyder' below.
4387 (d10v_push_arguments): Ditto.
4388 (d10v_extract_return_value): Ditto.
4389
4390 2002-05-23 Jim Blandy <jimb@redhat.com>
4391
4392 * macrotab.c (check_for_redefinition): Don't complain if the new
4393 definition is the same as the previous one. Take more arguments
4394 to allow the comparison.
4395 (macro_define_object, macro_define_function): Pass more arguments
4396 to check_for_redefinition.
4397
4398 2002-05-22 Michael Snyder <msnyder@redhat.com>
4399
4400 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4401 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4402 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4403 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4404 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4405 Add a temp variable to save a call (and a memory read).
4406 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4407 if possible (so that PC_IN_CALL_DUMMY will work).
4408
4409 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4410
4411 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4412
4413 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4414
4415 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4416 fde->cie_ptr.
4417 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4418 (dwarf2_build_frame_info): Add offset to fde->initial_location
4419 so that frames of shared libraries are mapped correctly.
4420 (execute_stack_op): Change type of 'result' from ULONGEST to
4421 CORE_ADDR.
4422
4423 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * config/alpha/tm-nbsd.h: Include solib.h.
4426
4427 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4428
4429 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4430 assumptions about the host's byte order.
4431
4432 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4433
4434 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4435 to dependency list.
4436 * alphanbsd-tdep.c: Include solib-svr4.h.
4437 * shnbsd-tdep.c: Ditto.
4438
4439 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4440
4441 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4442 nbsd-tdep.h to dependency list.
4443 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4444 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4445 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4446 nbsdaout.mh and nbsdelf.mh consistently.
4447 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4448 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4449 nbsdaout.mt and nbsdelf.mh consistently.
4450 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4451 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4452 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4453 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4454 a.out shared library stuff from here...
4455 * config/nm-nbsdaout.h: ...to here.
4456 * config/tm-nbsd.h: Remove.
4457 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4458 * config/arm/nbsd.mh: Remove.
4459 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4460 nbsd-tdep.o.
4461 * config/arm/nbsdaout.mh: New file.
4462 * config/arm/nbsdelf.mh: New file.
4463 * config/arm/nm-nbsdaout.h: New file.
4464 * config/i386/nbsd.mh: Remove.
4465 * config/i386/nbsd.mt: Remove.
4466 * config/i386/nbsdaout.mh: New file.
4467 * config/i386/nbsdaout.mt: New file.
4468 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4469 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4470 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4471 i386_register_u_addr): Remove.
4472 * config/i386/nm-nbsdaout.h: New file.
4473 * config/i386/nm-nbsdelf.h: Remove.
4474 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4475 (USE_STRUCT_CONVENTION): Remove.
4476 * config/i386/tm-nbsdaout.h: New file.
4477 * config/i386/tm-nbsdelf.h: Remove.
4478 * config/m68k/nbsd.mh: Remove.
4479 * config/m68k/nbsd.mt: Remove.
4480 * config/m68k/nbsdaout.mh: New file.
4481 * config/m68k/nbsdaout.mt: New file.
4482 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4483 * config/m68k/nm-nbsdaout.h: New file.
4484 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4485 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4486 * config/ns32k/nbsd.mh: Remove.
4487 * config/ns32k/nbsd.mt: Remove.
4488 * config/ns32k/nbsdaout.mh: New file.
4489 * config/ns32k/nbsdaout.mt: New file.
4490 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4491 * config/ns32k/nm-nbsdaout.h: New file.
4492 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4493 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4494 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4495 (SVR4_SHARED_LIBS): Remove.
4496 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4497 * config/sparc/nbsd.mh: Remove.
4498 * config/sparc/nbsd.mt: Remove.
4499 * config/sparc/nbsdaout.mh: New file.
4500 * config/sparc/nbsdaout.mt: New file.
4501 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4502 * config/sparc/nbsdelf.mt: New file.
4503 * config/sparc/nm-nbsdaout.h: New file.
4504 * config/sparc/nm-nbsdelf.h: Remove.
4505 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4506 * config/sparc/tm-nbsdaout.h: New file.
4507
4508 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4509
4510 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4511 mipsnbsd-tdep.c
4512 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4513
4514 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4515
4516 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4517 shnbsd-nat.c.
4518 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4519
4520 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4521
4522 * NEWS: Note new MIPS NetBSD native configuration.
4523 * configure.host (mips*-*-netbsd*): New host.
4524 * configure.tgt (mips*-*-netbsd*): New target.
4525 * mipsnbsd-nat.c: New file.
4526 * mipsnbsd-tdep.c: New file.
4527 * mipsnbsd-tdep.h: New file.
4528 * config/mips/nbsd.mh: New file.
4529 * config/mips/nbsd.mt: New file.
4530 * config/mips/nm-nbsd.h: New file.
4531 * config/mips/tm-nbsd.h: New file.
4532
4533 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4534
4535 * Makefile.in (SFILES): Add osabi.c.
4536 (COMMON_OBS): Add osabi.o.
4537 (osabi.o): New dependency list.
4538 * osabi.c: New file.
4539 * osabi.h: New file.
4540 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4541
4542 * Makefile.in (alpha_tdep_h): Define and use instead of
4543 alpha-tdep.h.
4544 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4545 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4546 Remove.
4547 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4548 * alpha-tdep.h: Include osabi.h.
4549 (alpha_abi): Remove.
4550 (gdbarch_tdep): Use generic OS ABI framework.
4551 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4552 gdbarch_register_osabi.
4553 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4554 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4555 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4556
4557 * Makefile.in (sh_tdep_h): Add osabi.h.
4558 * sh-tdep.h (sh_osabi): Remove.
4559 (gdbarch_tdep): Use generic OS ABI framework.
4560 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4561 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4562 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4563 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4564
4565 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4566 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4567 gdbarch_register_osabi.
4568 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4569 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4570 (get_elfosabi): Rename to...
4571 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4572 ABI framework support routines.
4573 (arm_gdbarch_init): Use generic OS ABI framework.
4574 (arm_dump_tdep): Likewise.
4575 (_initialize_arm_tdep): Likewise.
4576 * arm-tdep.h: Include osabi.h.
4577 (arm_abi): Remove.
4578 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4579 osabi member.
4580 (arm_gdbarch_register_os_abi): Remove prototype.
4581 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4582 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4583
4584 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4585 * mips-tdep.c: Include osabi.h.
4586 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4587 OS ABI framework.
4588
4589 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4590
4591 * h8300-tdep.c: Fix formatting.
4592
4593 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4594
4595 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4596 printing vector registers.
4597
4598 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4599
4600 From Fernando Nasser:
4601 * remote.c (remote_async_open_1): Re-throw the exception when the
4602 connection fails.
4603 (remote_cisco_open): Ditto.
4604 (remote_open_1): Ditto.
4605
4606 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4607
4608 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4609 (remote_start_remote): Add uiout parameter. Pass through to
4610 remote_start_remote_dummy.
4611 (remote_open_1): Use catch_exception instead of catch_errors.
4612 (remote_async_open_1): Ditto.
4613 (remote_cisco_open): Ditto.
4614
4615 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4616
4617 * remote.c (remote_start_remote): Replace PTR with void pointer.
4618 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4619 static.
4620
4621 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4622
4623 * gdb_indent.sh: Allow the script to be run in the sim directory.
4624
4625 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4626
4627 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4628 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4629
4630 * corelow.c (core_open): Only call set_gdbarch_from_file if
4631 exec_bfd is NULL.
4632
4633 2002-05-17 Andrey Volkov <avolkov@transas.com>
4634
4635 * h8300-tdep.c: Add support of EXR register
4636 * config/h8300/tm-h8300.h: Ditto.
4637
4638 2002-05-17 Andrey Volkov <avolkov@transas.com>
4639
4640 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4641
4642 2002-05-17 Andrey Volkov <avolkov@transas.com>
4643
4644 * h8300-tdep.c: Change literal regnums to REGNO.
4645
4646 2002-05-17 Jim Blandy <jimb@redhat.com>
4647
4648 * NEWS: Note addition of macro support.
4649
4650 Expand preprocessor macros in C expressions.
4651 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4652 (scan_macro_expansion, scanning_macro_expansion,
4653 finished_macro_expansion): New function declarations.
4654 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4655 variable declarations.
4656 * parser-defs.h (expression_context_pc): New declaration.
4657 * parse.c (expression_context_pc): New variable.
4658 (parse_exp_1): Set expression_context_pc, as well as
4659 expression_context_block.
4660 * c-exp.y (yylex): If we're not already reading the result of a
4661 macro expansion, try to macro-expand the next token. When we're
4662 done scanning a macro expansion, switch back to the mainline text.
4663 Commas and `if's in a macro's expansion don't terminate the input.
4664 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4665 (macro_original_text, macro_expanded_text,
4666 expression_macro_lookup_func, expression_macro_lookup_baton): New
4667 variables.
4668 (scan_macro_expansion, scanning_macro_expansion,
4669 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4670 c_preprocess_and_parse): New functions.
4671 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4672 c_preprocess_and_parse, instead of c_parse.
4673 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4674 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4675
4676 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4677
4678 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4679 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4680 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4681
4682 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4683
4684 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4685
4686 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4687
4688 * Makefile.in (sh_tdep_h): Define and use.
4689 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4690 register enum): Move to...
4691 * * sh-tdep.h: ...here.
4692 * sh-tdep.c: Include sh-tdep.h.
4693 * sh3-rom.c: Likewise.
4694 * shnbsd-tdep.c: Likewise.
4695
4696 2002-05-16 Michael Snyder <msnyder@redhat.com>
4697
4698 * arm-tdep.c: Spelling fix in comment.
4699
4700 2002-05-16 Jim Blandy <jimb@redhat.com>
4701
4702 Add commands for manually expanding macros and showing their
4703 definitions.
4704 * macrocmd.c, macroscope.c, macroscope.h: New files.
4705 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4706 (macroscope_h): New variable.
4707 (HFILES_NO_SRCDIR): Add macroscope.h.
4708 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4709 (macroscope.o, macrocmd.o): New rules.
4710
4711 Teach the Dwarf 2 reader to read macro information.
4712 * dwarf2read.c: #include "macrotab.h".
4713 (dwarf_macinfo_buffer): New variable.
4714 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4715 dwarf_macinfo_size.
4716 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4717 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4718 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4719 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4720 dwarf2_macro_spaces_in_definition): New complaints.
4721 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4722 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4723 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4724 the partial symbol table.
4725 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4726 from what's recorded in the partial symbol table.
4727 (read_file_scope): If the compilation unit has a
4728 `DW_AT_macro_info' attribute, read its macro information.
4729 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4730
4731 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4732
4733 Fix PR gdb/546
4734 * ser-tcp.c: Don't include <netinet/udp.h>.
4735
4736 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4737
4738 * MAINTAINERS: Update my email address.
4739
4740 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4741
4742 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4743 include file of the same name.
4744
4745 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4746
4747 * configure.tgt: Mark v850 as multi-arched.
4748 * config/v850/tm-v850.h: Remove file.
4749 * config/v850/v850.mt: Eliminate TM_FILE.
4750
4751 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4752
4753 * v850-tdep.c: Full multi-arch.
4754 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4755 Define GDB_MULTI_ARCH to 2.
4756
4757 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4758
4759 * p-exp.y (current_type): New static variable.
4760 Carries the type of the expression at the position that is parsed.
4761 (push_current_type, pop_current_type): Two new functions. Used
4762 to store/restore current_type in expression on specific tokens.
4763 (search_field): New static variable. Set to one after parsing a point
4764 as at that point only a FIELDNAME token should be searched.
4765 (FIELDNAME): New token. After a point only a token belonging to
4766 current_type type definition is allowed.
4767 (all over token rules): reset and change current_type according
4768 to rules.
4769 (exp '[' rule): insert implicit array index field if
4770 exp is a pascal string type.
4771
4772 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4773
4774 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4775 frame info. Use frame_info's saved_regs instead of matching member
4776 in extra_frame_info throughout.
4777 (v850_frame_init_saved_regs): New function.
4778 (v850_init_extra_frame_info): Move most functionality into
4779 v850_frame_init_saved_regs().
4780 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4781 (v850_frame_find_saved_regs): Remove declaration.
4782 (FRAME_FIND_SAVED_REGS): Remove definition.
4783 (v850_frame_init_saved_regs): Add declaration.
4784 (FRAME_INIT_SAVED_REGS): Add definition.
4785
4786 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4787
4788 * v850-tdep.c: Begin multi-arch'ing v850.
4789 (v850_target_architecture_hook): Remove function.
4790 (v850_gdbarch_init): New function. Add code previously in
4791 v850_target_architecture_hook().
4792 (_initialize_v850_tdep): Don't set target_architecture_hook.
4793 Call register_gdbarch_init() instead.
4794
4795 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4796
4797 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4798 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4799 (fixup_class_method_type): Likewise.
4800
4801 2002-05-15 Jim Blandy <jimb@redhat.com>
4802
4803 Add macro structures to GDB's symbol tables. Nobody puts anything
4804 in them yet.
4805 * symtab.h (struct symtab): New member: `macro_table'.
4806 * buildsym.h (pending_macros): New global variable.
4807 * buildsym.c: #include "macrotab.h".
4808 (buildsym_init): Initialize `pending_macros'.
4809 (end_symtab): If we found macro information while reading a CU's
4810 debugging info, do build a symtab structure for it. Make the
4811 symtab point to the macro information, and clear the
4812 `pending_macros' pointer which held it while we were reading the
4813 debug info.
4814 (really_free_pendings): Free any pending macro table.
4815 * objfiles.h (struct objfile): New member: `macro_cache'.
4816 * objfiles.c (allocate_objfile): Set allocate and free functions
4817 for the macro cache's objstack.
4818 (free_objfile): Empty the macro cache's obstack.
4819 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4820 set new allocate and free functions for it.
4821 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4822 free functions for the macro cache's objstack. (Why is this
4823 function building its own objfile?)
4824 * symmisc.c (print_objfile_statistics): Print statistics on the
4825 macro bcache.
4826 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4827
4828 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4829
4830 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4831 (REGISTER_U_ADDR): Delete definition.
4832 (arm_register_u_addr): Delete declaration.
4833
4834 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4835
4836 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4837 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4838
4839 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4840
4841 * regcache.c (register_valid): Revise comments refering to "Not
4842 available" and "unavailable".
4843 * frame.c (frame_register_read): Ditto.
4844 * findvar.c (value_of_register): Ditto.
4845
4846 2002-05-15 Andrew Cagney <cagney@redhat.com>
4847
4848 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4849 (remote-sim.o): Update dependencies.
4850 (d10v-tdep.o): Specify dependencies.
4851 (sim_d10v_h): Define.
4852
4853 2002-05-14 Jim Blandy <jimb@redhat.com>
4854
4855 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4856 * macrotab.c (macro_lookup_inclusion, find_definition,
4857 new_macro_table): Same.
4858
4859 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4860 not `! strcmp ()'. This is a dubious improvement.
4861 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4862
4863 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4864 although it's not necessary, to avoid a warning.
4865
4866 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4867
4868 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4869 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4870 TYPE_INSTANCE_FLAGS.
4871 (struct main_type): New.
4872 (struct type): Move most members to struct main_type. Change
4873 cv_type and as_type to new type_chain member. Add instance_flags.
4874 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4875 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4876 (finish_cv_type): Remove prototype.
4877 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4878 Set TYPE_CHAIN.
4879 (alloc_type_instance): New function.
4880 (smash_type): New function.
4881 (make_pointer_type, make_reference_type, make_function_type)
4882 (smash_to_member_type, smash_to_method_type): Call smash_type.
4883 (make_qualified_type): New function.
4884 (make_type_with_address_space): Call make_qualified_type.
4885 (make_cv_type): Likewise.
4886 (finish_cv_type): Remove unnecessary function.
4887 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4888 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4889 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4890 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4891 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4892 * hpread.c (hpread_read_struct_type): Likewise.
4893 * stabsread.c (read_struct_type): Likewise.
4894
4895 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4896
4897 * configure.tgt: Add a catch all sh* target, for cases like
4898 sh[2,3,4]-elf and sh-hms.
4899
4900 2002-05-14 Keith Seitz <keiths@redhat.com>
4901
4902 * event-loop.c (create_file_handler): Don't do anything but
4903 update data when we are given a fd which we are already
4904 monitoring.
4905
4906 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4907
4908 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4909 (update_context): Use __func__ in warnings.
4910
4911 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4912
4913 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4914 and tcp_close to net_open and net_close.
4915 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4916 using UDP if requested. Don't try to disable Nagle on UDP
4917 sockets.
4918 * remote.c (remote_serial_open): New function. Warn about UDP.
4919 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4920
4921 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4922
4923 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4924
4925 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4926
4927 * configure.tgt: Remove sh-hms target.
4928 * MAINTAINERS: Don't list sh-hms as a separate target.
4929
4930 2002-05-13 Jim Blandy <jimb@redhat.com>
4931
4932 Add first preprocessor macro-expansion files.
4933 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4934 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4935 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4936 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4937 (COMMON_OBS): Add macrotab.o, macroexp.o.
4938 (macroexp.o, macrotab.o): New rules.
4939
4940 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4941
4942 * config/m88k/tm-m88k.h: Update copyright.
4943 (m88k_target_write_pc): Declare
4944 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4945 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4946 (SHIFT_INST_REGS): Update definition.
4947 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4948 using old definition of TARGET_WRITE_PC.
4949 * regcache.c (generic_target_write_pc): Delete code handling
4950 NNPC_REGNUM.
4951 * gdbarch.sh (NNPC_REGNUM): Delete.
4952 * gdbarch.h, gdbarch.c: Regenerate.
4953
4954 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4955
4956 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4957 builtin reg number.
4958
4959 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4960
4961 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4962 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4963 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4964 access macros.
4965 * c-typeprint.c (cp_type_print_method_args): Likewise.
4966 (c_type_print_args): Likewise.
4967 * d10v-tdep.c (d10v_push_arguments): Likewise.
4968 (d10v_extract_return_value): Likewise.
4969 * expprint.c (print_subexp): Likewise.
4970 * gdbtypes.c (lookup_primitive_typename): Likewise.
4971 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4972 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4973 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4974 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4975 (TYPE_VECTOR): Likewise.
4976 * hpread.c (hpread_read_struct_type)
4977 (fix_static_member_physnames, fixup_class_method_type)
4978 (hpread_type_lookup): Likewise.
4979 * mdebugread.c (parse_symbol, parse_type): Likewise.
4980 * p-lang.c (is_pascal_string_type): Likewise.
4981 * valops.c (hand_function_call): Likewise.
4982 * x86-64-tdep.c (classify_argument): Likewise.
4983
4984 * hpread.c (hpread_read_function_type)
4985 (hpread_read_doc_function_type): Call replace_type.
4986 * dstread.c (create_new_type): Delete.
4987 (decode_dst_structure, process_dst_function): Call alloc_type.
4988 Use type access macros.
4989
4990 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4991
4992 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4993 the're not supported by the current architecture.
4994 (i387_fill_fxsave): Likewise.
4995
4996 2002-05-12 Fred Fish <fnf@redhat.com>
4997
4998 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4999 sect_index_xxx members to index the first slot in section_offsets
5000 if all of the section_offsets are zero.
5001
5002 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5003
5004 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5005 checked in with last change.
5006
5007 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5008
5009 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5010 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5011 config.sub.
5012
5013 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5014
5015 * Makefile.in: Update dependencies.
5016
5017 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5018
5019 * language.c (local_hex_string_custom): Simplify. Do not depend
5020 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5021
5022 * memattr.c (mem_info_command): Replace calls to
5023 longest_local_hex_string and longest_local_hex_string_custom.
5024 * buildsym.c (make_blockvector): Ditto.
5025 * solib.c (info_sharedlibrary_command): Ditto.
5026 * tracepoint.c (tracepoints_info): Ditto.
5027 * symtab.c (print_msymbol_info): Ditto.
5028
5029 * language.c (local_hex_string): Delete.
5030 (local_hex_string_custom): Delete.
5031 (longest_local_hex_string): Rename to local_hex_string.
5032 (longest_local_hex_string_custom): Rename to
5033 local_hex_string_custom.
5034 * language.h (local_hex_string): Change parameter type to LONGEST.
5035 (local_hex_string_custom): Ditto.
5036 (longest_local_hex_string): Delete declaration.
5037 (longest_local_hex_string_custom): Ditto.
5038
5039 * solib.c: Update copyright.
5040 * memattr.c: Update copyright.
5041
5042 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5043
5044 * arch-utils.h (legacy_register_to_value): Declare.
5045 (legacy_value_to_register): Declare.
5046 (legacy_convert_register_p): Declare.
5047 * arch-utils.c (legacy_register_to_value): New function.
5048 (legacy_value_to_register): New function.
5049 (legacy_convert_register_p): New function.
5050
5051 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5052 (VALUE_TO_REGISTER): Define.
5053 (CONVERT_REGISTER_P): Define.
5054 * gdbarch.h, gdbarch.c: Regenerate.
5055
5056 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5057 VALUE_TO_REGISTER.
5058 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5059 CONVERT_REGISTER_P.
5060
5061 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5062 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5063
5064 * Makefile.in: Update dependencies for valops.c.
5065 * valops.c: Include "gdb_assert.h".
5066 (typecmp): Skip THIS parameter to methods.
5067 (find_method_list): Remove static_memfuncp argument,
5068 update callers. Check for stub methods.
5069 (find_value_oload_method_list): Don't set *static_memfuncp.
5070 (find_overload_match): Don't check for stub methods. Assert
5071 that methods are not stubbed. Handle static methods.
5072 (value_find_oload_method_list): Remove static_memfuncp argument.
5073 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5074 to the argument list for static stub methods.
5075 * value.h (value_find_oload_method_list): Update prototype.
5076
5077 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5078
5079 * arch-utils.h (generic_register_size): Declare.
5080 (generic_register_raw_size, generic_register_virtual_size): Delete
5081 declarations.
5082 * arch-utils.c (generic_register_raw_size): Delete.
5083 (generic_register_size): New function.
5084 (generic_register_virtual_size): Delete.
5085
5086 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5087 default generic_register_size.
5088 * gdbarch.h, gdbarch.c: Re-generate.
5089
5090 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5091 register_virtual_size.
5092 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5094
5095 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5096
5097 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5098 * gdbarch.h, gdbarch.c: Regenerate.
5099 * gnu-v3-abi.c: Update copyright.
5100 (vtable_address_point_offset): Update.
5101 (gnuv3_rtti_type): Update.
5102 (gnuv3_baseclass_offset): Update.
5103 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5104 (init_fetch_link_map_offsets): Update.
5105 * remote.c (get_remote_state): Update.
5106
5107 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5108
5109 * TODO: Remove value_headof/value_from_vtable_info comment.
5110 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5111 * values.c (value_headof, value_from_vtable_info): Delete.
5112 * value.h (value_from_vtable_info): Delete prototype.
5113
5114 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5115
5116 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5117 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5118 $(gdb_regex_h).
5119 (gdb_assert_h): Define.
5120 (gdb_wait_h): Define.
5121 (gdb_regex_h): Define.
5122
5123 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5124
5125 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5126 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5127
5128 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5129
5130 * nbsd-tdep.c: Fix comment.
5131
5132 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5133
5134 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5135 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5136 (nbsd-tdep.o): New dependency list.
5137 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5138 nbsd-tdep.h.
5139 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5140 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5141 * nbsd-tdep.c: New file.
5142 * nbsd-tdep.h: New file.
5143 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5144 nbsd-tdep.h.
5145 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5146 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5147 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5148 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5149
5150 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5151
5152 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5153 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5154 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5155 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5156 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5157 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5158
5159 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5160
5161 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5162 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5163 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5164 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5165 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5166 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5167 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5168
5169 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5170
5171 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5172 fetch_elfcore_registers to...
5173 * i386nbsd-tdep.c: ...here.
5174 (i386nbsd_use_struct_convention): Rename to...
5175 (i386nbsd_aout_use_struct_convention): ...this.
5176 (i386nbsd_supply_reg): New function.
5177 (i386nbsd_fill_reg): New function.
5178 (fetch_core_registers): Use i386nbsd_supply_reg.
5179 (fetch_elfcore_registers): Likewise.
5180 (_initialize_i386nbsd_tdep): New function.
5181 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5182 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5183 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5184 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5185 (i386nbsd_aout_use_struct_convention): ...this.
5186
5187 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5188
5189 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5190 (store_inferior_registers): Use shnbsd_fill_reg.
5191 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5192 sh_nbsd_supply_register): Collapse into...
5193 (shnbsd_supply_reg): ...this.
5194 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5195 (shnbsd_fill_reg): ...this.
5196 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5197 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5198 (fetch_core_registers): Use shnbsd_supply_reg.
5199 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5200 (sh_nbsd_core_fns): Rename to...
5201 (shnbsd_core_fns): ...this.
5202 (sh_nbsd_elfcore_fns): Rename to...
5203 (shnbsd_elfcore_fns): ...this.
5204 (sh_nbsd_init_abi): Rename to...
5205 (shnbsd_init_abi): ...this.
5206 (_initialize_sh_nbsd_tdep): Rename to...
5207 (_initialize_shnbsd_tdep): ...this.
5208 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5209 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5210 sh_nbsd_fill_register): Remove prototypes.
5211 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5212
5213 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5214
5215 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5216 (i387-nat.o): Delete dependency list.
5217 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5218 (x86-64-linux-nat.o): Likewise.
5219 * i387-nat.c: Delete file, moving contents to...
5220 * i387-tdep.c: ...here.
5221 * i387-nat.h: Rename...
5222 * i387-tdep.h: ...to this.
5223 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5224 * i386-linux-nat.c: Likewise.
5225 * i386bsd-nat.c: Likewise.
5226 * i386gnu-nat.c: Likewise.
5227 * i386nbsd-nat.c: Likewise.
5228 * i386v4-nat.c: Likewise.
5229 * x86-64-linux-nat.c: Likewise.
5230 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5231 * config/i386/go32.mh (NATDEPFILES): Likewise.
5232 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5233 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5234 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5235 * config/i386/linux.mh (NATDEPFILES): Likewise.
5236 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5237 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5238 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5239 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5240
5241 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5242
5243 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5244 (alphanbsd-nat.o): Remove dependency list.
5245 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5246 * alphanbsd-nat.c: Delete. Contents moved to...
5247 * alphanbsd-tdep.c: ...here.
5248 (_initialize_alphanbsd_tdep): Register core functions.
5249 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5250
5251 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5252
5253 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5254 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5255 (alphanbsd-nat.o): Likewise.
5256 (alphabsd-tdep.o): New dependency list.
5257 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5258 (fill_gregset): Use alphabsd_fill_reg.
5259 (supply_fpregset): Use alphabsd_supply_fpreg.
5260 (fill_fpregset): Use alphabsd_fill_fpreg.
5261 (fetch_inferior_registers): Use struct reg and struct fpreg
5262 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5263 and alphabsd_supply_fpreg.
5264 (store_inferior_registers): Use struct reg and struct fpreg
5265 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5266 and alphabsd_fill_fpreg.
5267 * alphabsd-tdep.c: New file.
5268 * alphabsd-tdep.h: New file.
5269 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5270 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5271 alphabsd_supply_fpreg.
5272 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5273 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5274
5275 2002-05-11 Eric Christopher <echristo@redhat.com>
5276
5277 * mips-tdep.c (mips_double_register_type): Fix thinko.
5278 (mips_single_register_type): Ditto.
5279 * MAINTAINERS: Add self.
5280
5281 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5282
5283 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5284 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5285 right thing on architectures with different endianness and/or
5286 integer sizes.
5287
5288 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5289
5290 From Christian Limpach <chris@Pin.LU>
5291 * configure.in: Change sed expression which comments out
5292 NATDEPFILES to also comment out continuation lines.
5293 * configure: Regenerate.
5294
5295 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5296
5297 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5298 big patch.
5299
5300 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5301
5302 * sh-tdep.c: Include correct file.
5303
5304 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5305
5306 New support for sh64-elf (sh5) target.
5307
5308 * configure.tgt: For sh64-elf target, default to sh-elf.
5309
5310 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5311 (struct gdbarch_tdep): Add new fields for new registers and ABI
5312 info.
5313
5314 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5315 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5316 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5317 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5318 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5319 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5320 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5321 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5322 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5323 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5324 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5325 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5326 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5327 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5328 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5329 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5330 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5331 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5332 sign_extend, sh64_nofp_frame_init_saved_regs,
5333 sh64_init_extra_frame_info, sh64_get_saved_register,
5334 sh64_extract_struct_value_address, sh64_pop_frame,
5335 sh64_push_arguments, sh64_extract_return_value,
5336 sh64_store_return_value, sh64_show_media_regs,
5337 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5338 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5339 sh_sh64_register_virtual_type,
5340 sh_sh64_register_convert_to_virtual,
5341 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5342 sh64_register_read, sh64_pseudo_register_write,
5343 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5344 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5345 sh64_do_pseudo_register, sh_compact_do_registers_info,
5346 sh64_do_registers_info, sh_gdbarch_init): New functions.
5347
5348 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5349
5350 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5351
5352 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5353
5354 * linespec.c (decode_line_1): Check for a double quote after
5355 a filename correctly.
5356
5357 2002-05-10 Jim Blandy <jimb@redhat.com>
5358
5359 Properly track the size of the current objfile's .debug_line section.
5360 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5361 (DWARF_LINE_SIZE): New macro.
5362 (dwarf2_build_psymtabs_hard): Record the line section's size in
5363 the partial symbol table.
5364 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5365 symbol table.
5366
5367 2002-05-10 Petr Sorfa <petrs@caldera.com>
5368
5369 * ia64-tdep.c: Handle breakpoints on L instruction type
5370 in MLX instruction bundle by moving the breakpoint to
5371 the third slot (X instruction type) as L holds only data.
5372
5373 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5374
5375 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5376 (process_one_symbol): Complain about discarding local symbols
5377 due to a misplaced N_LBRAC entry.
5378
5379 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5380
5381 From Daniel Berlin <dan@cgsoftware.com>
5382 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5383 decrease the depth we are at, in the case of templates.
5384
5385 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5386
5387 * mips-tdep.c (mips_float_register_type): New function.
5388 (mips_double_register_type): New function.
5389 (mips_print_register): Use them.
5390 (do_fp_register_row): Likewise.
5391
5392 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5393
5394 * signals/signals.c (signals): Remove conditional compilation around
5395 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5396 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5397
5398 2002-05-09 Michael Snyder <msnyder@redhat.com>
5399
5400 * remote-rdp.c (remote_rdp_can_run): Remove.
5401
5402 2002-05-09 Tom Tromey <tromey@redhat.com>
5403
5404 * jv-valprint.c (java_val_print): Handle `char' as a special case
5405 of TYPE_CODE_INT.
5406
5407 2002-05-09 Michael Snyder <msnyder@redhat.com>
5408
5409 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5410 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5411 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5412 str r(0123),[sp,#nn].
5413 (arm_skip_prologue): Ditto. Also make disassembly
5414 order-independent by placing it in a loop.
5415
5416 2002-05-06 Michael Snyder <msnyder@redhat.com>
5417
5418 * stabsread.c (read_type): Add recognition for new attribute:
5419 "@V;" means that an array type is actually a vector.
5420 This is analogous to the vector flag that's been added to dwarf2.
5421
5422 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5423
5424 * i386-tdep.h (i386_abi): New enum.
5425 (struct gdbarch_tdep): Replace os_ident member with abi.
5426 (i386_gdbarch_register_os_abi): New prototype.
5427 * i386-tdep.c (i386_abi_names): New array.
5428 (process_note_abi_tag_sections): Removed.
5429 (process_note_sections): New function.
5430 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5431 (struct i386_abi_handler): New struct.
5432 (i386_abi_handler_list): New variable.
5433 (i386_gdbarch_register_os_abi): New function.
5434 (i386_gdbarch_init): Adapt for the changes given above.
5435
5436 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5437
5438 * gregset.h: Say "GNU/Linux".
5439
5440 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5441
5442 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5443 (build_gdbtypes): Build builtin_type_v2_float.
5444 (_initialize_gdbtypes): Register new builtin type.
5445
5446 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5447
5448 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5449 (clear_gdbarch_swap): New function.
5450 (initialize_non_multiarch): Call.
5451 (gdbarch_update_p): Before calling init(), swap out and clear the
5452 existing architecture.
5453 * gdbarch.c: Regenerate.
5454
5455 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5456
5457 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5458 alphanbsd-tdep.c.
5459
5460 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5461
5462 * sh-nbsd-nat.c: Rename to...
5463 * shnbsd-nat.c: ...this.
5464 * sh-nbsd-tdep.c: Rename to...
5465 * shnbsd-tdep.c: ...this.
5466 * sh-nbsd-tdep.h: Rename to...
5467 * shnbsd-tdep.h: ...this.
5468 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5469 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5470
5471 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5472
5473 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5474 concatenation for command help messages.
5475
5476 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5477
5478 * NEWS: Note new sh*-*-netbsdelf* configuration.
5479 * configure.host: Set gdb_host_cpu to sh for all sh*.
5480 (sh*-*-netbsdelf*): New host.
5481 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5482 (sh*-*-netbsdelf*): New target.
5483 * sh-nbsd-nat.c: New file.
5484 * sh-nbsd-tdep.c: New file.
5485 * sh-nbsd-tdep.h: New file.
5486 * config/sh/nbsd.mh: New file.
5487 * config/sh/nbsd.mt: New file.
5488 * config/sh/nm-nbsd.h: New file.
5489 * config/sh/tm-nbsd.h: New file.
5490
5491 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5492
5493 * sh-tdep.c (sh_osabi_names): Declare.
5494 (process_note_abi_tag_sections): New function.
5495 (get_elfosabi): Ditto.
5496 (sh_gdbarch_register_os_abi): Ditto.
5497 (sh_dump_tdep): Ditto.
5498 _initialize_sh_tdep): Use gdbarch_register to register
5499 sh_gdbarch_init and sh_dump_tdep.
5500 * config/sh/tm-sh.h (sh_osabi): Declare.
5501 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5502
5503 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5504
5505 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5506 (thumb_scan_prologue): Ditto.
5507 (arm_find_callers_reg): Ditto.
5508 (arm_frame_chain): Ditto.
5509 (arm_init_extra_frame_info): Ditto.
5510 (arm_frame_saved_pc): Ditto.
5511 (arm_pop_frame): Ditto.
5512 (arm_push_return_address): New function.
5513 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5514 call_dummy_location, call_dummy_breakpoint_offset_p,
5515 call_dummy_breakpoint_offset, call_dummy_p,
5516 call_dummy_stack_adjust_p, call_dummy_words,
5517 sizeof_call_dummy_words, call_dummy_start_offset,
5518 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5519 call_dummy_address, push_return_address and push_dummy_frame for
5520 generic dummy frames.
5521
5522 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5525 size computation for alloca.
5526 (sh_fp_frame_init_saved_regs): Likewise.
5527
5528 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5529
5530 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5531 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5532 * arm-tdep.c (arm_store_return_value): Use them.
5533 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5534 * remote-rdp.c (remote_rdp_fetch_register): Use
5535 ARM_MAX_REGISTER_RAW_SIZE.
5536 (remote_rdp_store_register): Likewise.
5537
5538 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5539
5540 * dwarf2cfi.c: Code cleanup, removed unused variables,
5541 added default labels to switch {} statements.
5542 * x86-64-tdep.c: Ditto.
5543 * x86-64-linux-nat.c: Ditto.
5544
5545 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5546
5547 * solib.h: Protect against multiple inclusion.
5548
5549 2002-05-06 Jim Blandy <jimb@redhat.com>
5550
5551 Add first preprocessor macro-expansion files.
5552 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5553 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5554 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5555 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5556 (COMMON_OBS): Add macrotab.o, macroexp.o.
5557 (macroexp.o, macrotab.o): New rules.
5558
5559 Separate the job of reading the line number info statement program
5560 header (...expialidocious) out into its own function.
5561 * dwarf2read.c (struct line_head, struct filenames, struct
5562 directories): Replace with...
5563 (struct line_header): New structure, containing the full
5564 contents of the statement program header, including the
5565 include directory and file name tables.
5566 (read_file_scope): If we have line number info, instead of just
5567 calling dwarf_decode_lines to do all the work, call
5568 dwarf_decode_line_header first to get a `struct line_header'
5569 containing the data in the statement program header, and then
5570 pass that to dwarf_decode_lines, which will pick up where that
5571 left off. Be sure to clean up the `struct line_header' object.
5572 (dwarf_decode_line_header, free_line_header, add_include_dir,
5573 add_file_name): New functions.
5574 (dwarf_decode_lines): Move all the code to read the statement
5575 program header into dwarf_decode_line_header. Take the line
5576 header it built as the first argument, instead of the offset to
5577 the compilation unit's line number info. Use the new `struct
5578 line_header' type instead of the old structures. No need to do
5579 cleanups here now, since we don't allocate anything.
5580 (dwarf2_statement_list_fits_in_line_number_section,
5581 dwarf2_line_header_too_long): New complaints.
5582
5583 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5584
5585 * gdbtypes.c (init_vector_type): New function.
5586 (build_builtin_type_vec128): Simplify the representation of SIMD
5587 registers.
5588 (build_gdbtypes): Initialize new builtin vector types.
5589 (_initialize_gdbtypes): Register new vector types with gdbarch.
5590 (builtin_type_v4_float, builtin_type_v4_int32,
5591 builtin_type_v8_int16, builtin_type_v16_int8,
5592 builtin_type_v2_int32, builtin_type_v4_int16,
5593 builtin_type_v8_int8): New (renamed) SIMD types.
5594
5595 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5596
5597 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5598 (i387_fill_fxsave): Likewise.
5599
5600 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5601
5602 * alpha-tdep.c (alpha_extract_return_value): Don't use
5603 non-constant array size in prototype.
5604
5605 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5606
5607 From Brian Taylor <briant at model dot com>:
5608 * ui-out.c (ui_out_field_core_addr): Use the function
5609 longest_local_hex_string_custom'to format addresses > 32 bits
5610 wide.
5611
5612 * ui-out.c (ui_out_field_core_addr): Update comment.
5613
5614 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5615
5616 * stack.c (select_and_print_frame): Make static. Delete the
5617 parameter `level'.
5618 (func_command): Update call.
5619 (select_frame_command): Delete code computing the frame level.
5620 * frame.h (select_and_print_frame): Delete declaration.
5621
5622 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5623
5624 * sparc-tdep.c (sparc_get_saved_register): Comment why
5625 get_prev_frame call is safe.
5626
5627 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5628
5629 * frame.h (select_frame): Delete level parameter.
5630 * stack.c (select_frame): Update. Use frame_relative_level to
5631 obtain the frame's level.
5632 (select_and_print_frame): Update call.
5633 (select_frame_command): Ditto.
5634 (up_silently_base): Ditto.
5635 (down_silently_base): Ditto.
5636 * ocd.c (ocd_start_remote): Ditto.
5637 * remote-rdp.c (remote_rdp_open): Ditto.
5638 * remote-mips.c (mips_initialize): Ditto.
5639 (common_open): Ditto.
5640 * remote-e7000.c (e7000_start_remote): Ditto.
5641 * m3-nat.c (select_thread): Ditto.
5642 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5643 (child_get_current_exception_event): Ditto.
5644 * varobj.c (varobj_create): Ditto.
5645 (varobj_update): Ditto.
5646 (c_value_of_root): Ditto.
5647 * tracepoint.c (finish_tfind_command): Ditto.
5648 * corelow.c (core_open): Ditto.
5649 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5650 * thread.c (info_threads_command): Ditto.
5651 (switch_to_thread): Ditto.
5652 * infrun.c (normal_stop): Ditto.
5653 (restore_selected_frame): Ditto.
5654 (restore_inferior_status): Ditto.
5655 * breakpoint.c (insert_breakpoints): Ditto.
5656 (watchpoint_check): Ditto.
5657 (bpstat_stop_status): Ditto.
5658 (do_enable_breakpoint): Ditto.
5659 * blockframe.c (flush_cached_frames): Ditto.
5660 (reinit_frame_cache): Ditto.
5661
5662 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5663
5664 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5665 maintainer.
5666
5667 2002-05-04 Jim Blandy <jimb@redhat.com>
5668
5669 * gdbtypes.c (replace_type): Doc fix.
5670
5671 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5672
5673 * valprint.c (strcat_longest): Delete commented out function.
5674 Update copyright.
5675
5676 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5677
5678 * MAINTAINERS: Mark a29k as deleted.
5679 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5680 Move new configurations to the top.
5681 * configure.tgt: Remove a29k.
5682 * config/a29k/tm-vx29k.h: Delete.
5683 * config/a29k/vx29k.mt: Delete.
5684 * config/a29k/tm-a29k.h: Delete.
5685 * config/a29k/a29k-udi.mt: Delete.
5686 * config/a29k/a29k.mt: Delete.
5687 * a29k-tdep.c: Delete.
5688 * remote-udi.c: Delete.
5689 * remote-mm.c: Delete.
5690 * remote-eb.c: Delete.
5691 * remote-adapt.c: Delete.
5692 * Makefile.in: Remove obsolete code.
5693 * config/s390/s390x.mt: Ditto.
5694 * config/s390/s390.mt: Ditto.
5695 * config/sparc/sparclynx.mh: Ditto.
5696 * config/sparc/linux.mh: Ditto.
5697 * config/pa/hppaosf.mh: Ditto.
5698 * config/pa/hppabsd.mh: Ditto.
5699 * config/ns32k/nbsd.mt: Ditto.
5700 * config/mips/vr5000.mt: Ditto.
5701 * config/m68k/sun3os4.mh: Ditto.
5702 * config/m68k/nbsd.mt: Ditto.
5703 * config/m68k/m68klynx.mh: Ditto.
5704 * config/m32r/m32r.mt: Ditto.
5705 * config/i386/x86-64linux.mt: Ditto.
5706 * config/i386/nbsdelf.mt: Ditto.
5707 * config/i386/nbsd.mt: Ditto.
5708 * config/i386/i386lynx.mh: Ditto.
5709
5710 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5711
5712 * target.c (debug_print_register): New function. Handle oversize
5713 registers.
5714 (debug_to_fetch_registers): Call.
5715 (debug_to_store_registers): Call.
5716
5717 2002-05-03 Jim Blandy <jimb@redhat.com>
5718
5719 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5720 (read_type): Doc fix.
5721 * gdbtypes.c (replace_type): Doc fix.
5722
5723 * stabsread.c (multiply_defined_struct): New complaint.
5724 (read_struct_type): If the type we were passed isn't empty, or
5725 incomplete, don't read the new struct type into it; complain,
5726 and return the original type unchanged. Take a new `type_code'
5727 argument, which is the type code for the new type.
5728 (read_type): Rather than storing the type's type code here, pass
5729 it as an argument to read_struct_type, and let that take care of
5730 storing it. That way, we don't overwrite the original type code,
5731 so read_struct_type can use it to decide whether we're overwriting
5732 something we shouldn't.
5733 (complain_about_struct_wipeout): New function.
5734
5735 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5736
5737 * gdbarch.sh: Assert that gdbarch is non-NULL.
5738 * gdbarch.c: Regenerate.
5739
5740 2002-05-03 Jason Merrill <jason@redhat.com>
5741
5742 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5743 and return NULL.
5744
5745 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5746
5747 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5748 (x86_64_dwarf2gdb_regno_map_length),
5749 (x86_64_dwarf2_reg_to_regnum): Added.
5750 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5751 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5752 (_initialize_x86_64_tdep): Synced with the change above.
5753 (x86_64_skip_prologue): Reformulated message.
5754
5755 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5756
5757 * f-exp.y: Also use new prev_lexptr variable
5758 to improve error reporting. Based on Michael Snyder
5759 2002-04-24 dated patch to c-exp.y.
5760 * jv-exp.y: Likewise.
5761 * m2-exp.y: Likewise.
5762
5763 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5764
5765 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5766 we are dealing with vectors.
5767
5768 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5769
5770 * config/m68k/tm-nbsd.h: Obvious fix,
5771 correct machine name.
5772
5773 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5774
5775 * p-typeprint.c (pascal_type_print_base): Add support
5776 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5777
5778 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5779
5780 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5781 for fondamental pascal 'char' type.
5782
5783 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5784
5785 * p-lang.h (is_pascal_string_type): Declaration changed,
5786 new sixth argument of type char ** added.
5787 * p-lang.c (is_pascal_string_type): Implementation
5788 changed. Args length_pos, length_size, string_pos, char_size
5789 can now be NULL. New argument arrayname set to the field
5790 name of the char array. Return value set to char array
5791 field index plus one.
5792 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5793 is_pascal_string_type function.
5794
5795 2002-05-02 Andrew Cagney <cagney@redhat.com>
5796
5797 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5798 <cagney@redhat.com> change.
5799 * gdbarch.c: Regenerate.
5800
5801 2002-05-02 Andrew Cagney <cagney@redhat.com>
5802
5803 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5804 before probing for a new one. Detect errorenous gdbarch_init
5805 functions.
5806 * gdbarch.c: Regenerate.
5807
5808 2002-05-01 Andrew Cagney <cagney@redhat.com>
5809
5810 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5811 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5812 * config/v850/tm-v850.h: Ditto. Update copyright.
5813
5814 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5815
5816 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5817 current_gdbarch.
5818
5819 2002-04-30 Michael Snyder <msnyder@redhat.com>
5820
5821 * arm-tdep.c: Whitespace clean-ups.
5822 (arm_skip_prologue): Fix thinko; two lines
5823 should have been removed as part of 4/24 change.
5824
5825 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5826
5827 * rs6000-tdep.c: Added comment describing how fpscr register
5828 numbers were chosen.
5829
5830 2002-04-30 Michael Snyder <msnyder@redhat.com>
5831
5832 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5833
5834 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5835
5836 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5837 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5838 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5839
5840 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5841
5842 From Louis Hamilton <hamilton@redhat.com>:
5843 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5844 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5845 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5846 not bfd-private xcoff data, to determine wordsize.
5847 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5848
5849 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5850
5851 GDB 5.2 released from 5.2 branch.
5852
5853 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5854
5855 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5856 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5857 (x86_64_register_info_table): Added comments with register numbers.
5858
5859 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5860
5861 * rs6000-tdep.c (rs6000_extract_return_value,
5862 rs6000_store_return_value): Handle returning vectors.
5863 (rs6000_gdbarch_init): Use
5864 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5865 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5866 New function.
5867 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5868 vectors.
5869 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5870 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5871
5872 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5873
5874 * hpread.c (hpread_psymtab_to_symtab_1,
5875 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5876 with fprintf_unfiltered (gdb_stderr,...).
5877
5878 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5879
5880 * remote-array.c (printf_monitor, write_monitor,
5881 array_insert_breakpoint, array_remove_breakpoint ):
5882 Replace fprintf (stderr,...
5883 with fprintf_unfiltered (gdb_stderr,....
5884 * remote-es.c: Likewise.
5885 * remote-os9k.c: Likewise.
5886 * remote-st.c: Likewise.
5887
5888 2002-04-28 Andreas Schwab <schwab@suse.de>
5889
5890 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5891 linux-proc.o and gcore.o.
5892
5893 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5894
5895 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5896 code without frame pointers.
5897
5898 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5899
5900 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5901 ON_STACK is needed.
5902
5903 2002-04-26 Ben Elliston <bje@redhat.com>
5904
5905 * target.c (do_xfer_memory): Correct reference to the new option
5906 "trust-readonly-sections".
5907
5908 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5909
5910 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5911 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5912 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5913 vectors.
5914 (read_array_type): Record the fact that this array type is really a
5915 vector (i.e. are passed in by value).
5916
5917 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5920 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5921 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5922 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5923 * alpha-linux-tdep.c: Include frame.h.
5924 (alpha_linux_sigcontext_addr): New function.
5925 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5926 alpha_linux_sigcontext_addr.
5927 * alpha-osf1-tdep.c: Include gdbcore.h.
5928 (alpha_osf1_sigcontext_addr): New function.
5929 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5930 alpha_osf1_sigcontext_addr.
5931 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5932 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5933
5934 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5935
5936 * stack.c (selected_frame_level):
5937 (select_frame): Do not set selected_frame_level.
5938 * frame.h (selected_frame_level): Delete declaration.
5939
5940 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5941
5942 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5943 convert_from_func_ptr-addr when AIX / PowerOpen.
5944
5945 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5946
5947 * valops.c (hand_function_call): Call
5948 generic_save_call_dummy_addr.
5949 * frame.h (generic_save_call_dummy_addr): Declare.
5950 * blockframe.c (struct dummy_frame): Add fields call_lo and
5951 call_hi.
5952 (generic_find_dummy_frame): Check for PC in range call_lo to
5953 call_hi instead of entry_point_address.
5954 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5955 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5956 (generic_save_call_dummy_addr): New function.
5957
5958 2002-04-24 David S. Miller <davem@redhat.com>
5959
5960 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5961 sparc_skip_prologue.
5962 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5963 information to find prologue when possible.
5964 (sparc_prologue_frameless_p): Call examine_prologue directly.
5965 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5966 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5967 second argument.
5968 (SKIP_PROLOGUE): Likewise.
5969
5970 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5971
5972 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5973 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5974 indicate that the condition it was testing is always true.
5975 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5976 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5977 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5978
5979 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5980
5981 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5982 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5983 tdep->jb_pc and tdep->jb_elt_size.
5984 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5985 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5986 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5987 * alpha-nat.c (get_longjmp_target): Remove.
5988 (JB_ELEMENT_SIZE): Ditto.
5989 (JB_PC): Ditto.
5990 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5991 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5992 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5993 to alpha_get_longjmp_target.
5994 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5995 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5996 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5997
5998 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5999
6000 * README: Update to GDB 5.2.
6001
6002 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6003
6004 * gdbarch.sh (LC_ALL): Set to `c'.
6005
6006 2002-04-25 Theodore A. Roth <troth@verinet.com>
6007
6008 * avr-tdep.c: Ran through gdb_indent.sh.
6009
6010 2002-04-25 Theodore A. Roth <troth@verinet.com>
6011
6012 * MAINTAINERS: Add myself as AVR maintainer.
6013 * NEWS: Note new target avr.
6014
6015 2002-04-25 Theodore A. Roth <troth@verinet.com>
6016
6017 * Makefile.in: Add support for AVR target.
6018 * configure.tgt: Add support for AVR target.
6019 * avr-tdep.c: New file
6020 * config/avr/avr.mt: New file.
6021
6022 2002-04-25 Theodore A. Roth <troth@verinet.com>
6023
6024 * MAINTAINERS: Add myself to write-after-approval.
6025
6026 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6027
6028 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6029 with fprintf_unfiltered (gdb_stderr,....
6030
6031 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6032
6033 Fix PR gdb/508.
6034 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6035
6036 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6037
6038 * p-exp.y: Also use new prev_lexptr variable
6039 to improve error reporting. Based on Michael Snyder
6040 2002-04-24 dated patch to c-exp.y.
6041
6042 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6043
6044 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6045 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6046 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6047 to 0.
6048 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6049 and struct value.
6050 (FUNCTION_START_OFFSET): Remove.
6051 (BREAKPOINT): Ditto.
6052
6053 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6056 * NEWS: Ditto.
6057
6058 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6059
6060 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6061 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6062 alpha_linux_pc_in_sigtramp.
6063 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6064 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6065 alpha_osf1_pc_in_sigtramp.
6066 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6067 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6068 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6069 alphafbsd_pc_in_sigtramp.
6070 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6071 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6072 alphanbsd_pc_in_sigtramp.
6073 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6074 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6075
6076 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6079
6080 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6081
6082 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6083 alphanbsd-tdep.c.
6084 (alphanbsd-nat.o): New dependency list.
6085 (alphanbsd-tdep.o): Ditto.
6086 * NEWS: Note new native NetBSD/alpha configuration.
6087 * alphanbsd-nat.c: New file.
6088 * alphanbsd-tdep.c: Ditto.
6089 * configure.host (alpha*-*-netbsd*): New host.
6090 * configure.tgt (alpha*-*-netbsd*): New target.
6091 * config/alpha/nbsd.mh: New file.
6092 * config/alpha/nbsd.mt: Ditto.
6093 * config/alpha/nm-nbsd.h: Ditto.
6094 * config/alpha/tm-nbsd.h: Ditto.
6095
6096 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6099 (alpha-osf1-tdep.o): New dependency list.
6100 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6101 and skip_sigtramp_frame members.
6102 * alpha-linux-tdep.c: Include gdbcore.h.
6103 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6104 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6105 * alpha-osf1-tdep.c: New file.
6106 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6107 alpha-osf1-dep.c.
6108 (alpha_frame_past_sigtramp_frame): New function.
6109 (alpha_dynamic_sigtramp_offset): Ditto.
6110 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6111 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6112 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6113 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6114 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6115 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6116 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6117 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6118 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6119 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6120 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6121 to find_solib_trampoline_target.
6122 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6123 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6124 (SKIP_TRAMPOLINE_CODE): Remove.
6125 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6126 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6127 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6128 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6129 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6130 (PROC_SIGTRAMP_MAGIC): Ditto.
6131 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6132 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6133 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6134 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6135 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6136
6137 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6138
6139 * NEWS: Note that Alpha targets are now multi-arch.
6140
6141 2002-04-24 Michael Snyder <msnyder@redhat.com>
6142
6143 * parser-defs.h (prev_lexptr): New external variable.
6144 * parse.c (parse_exp_1): Set prev_lexptr to null before
6145 calling the language-specific parser.
6146 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6147 (yyerror): Use prev_lexptr in error reporting.
6148
6149 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6150
6151 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6152 * gregset.h: If FILL_FPXREGSET is defined, provide
6153 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6154 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6155 is defined, call fill_fpxregset.
6156
6157 2002-04-24 Roland McGrath <roland@frob.com>
6158
6159 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6160 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6161 (supply_gregset, supply_fpregset): New functions.
6162
6163 * gnu-nat.c (gnu_find_memory_regions): New function.
6164 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6165 (gnu_xfer_memory): Add a cast.
6166
6167 2002-04-24 Michael Snyder <msnyder@redhat.com>
6168
6169 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6170 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6171 of argument regs ("str r(0123), [r11, #-nn"]).
6172 (arm_skip_prologue): Better handling for frameless functions.
6173 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6174 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6175
6176 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6177
6178 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6179 NUM_PSEUDO_REGS can be used.
6180
6181 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6182
6183 * arch-utils.h: Update copyright.
6184
6185 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6186 * gdbarch.h, gdbarch.c: Re-generate.
6187
6188 * inferior.h (IN_SIGTRAMP): Delete definition.
6189 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6190 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6191
6192 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6193 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6194 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6195 (find_proc_framesize): Ditto.
6196 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6197 (alpha_init_extra_frame_info): Ditto.
6198 * infrun.c (handle_inferior_event): Ditto.
6199 (handle_inferior_event): Ditto.
6200 (check_sigtramp2): Ditto.
6201 * blockframe.c (create_new_frame): Ditto.
6202 (get_prev_frame): Ditto.
6203 * ppc-linux-tdep.c: Update comments.
6204 * i386-linux-tdep.c: Update comments.
6205 * breakpoint.c (bpstat_what): Update comment.
6206
6207 2002-04-24 David S. Miller <davem@redhat.com>
6208
6209 * i960-tdep.c (register_in_window_p): New function.
6210 (i960_find_saved_register): Use it instead of
6211 REGISTER_IN_WINDOW_P.
6212 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6213
6214 * symtab.h (find_stab_function_addr): Kill extern.
6215 * minsyms.c (find_stab_function_addr): Remove from here...
6216 * dbxread.c: ... to here, and mark it static.
6217
6218 2002-04-20 David S. Miller <davem@redhat.com>
6219
6220 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6221 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6222
6223 2002-04-21 David S. Miller <davem@redhat.com>
6224
6225 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6226 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6227 (vx_write_register): Likewise.
6228
6229 2002-04-23 J. Brobecker <brobecker@gnat.com>
6230
6231 * source.c (is_regular_file): New function.
6232 (openp): Check wether file to open is a regular file
6233 to avoid opening directories.
6234
6235 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6236
6237 * findvar.c (extract_signed_integer): Cast printf argument
6238 to suppress format warning.
6239 (extract_unsigned_integer): Likewise.
6240 * infcmd.c (registers_info): Likewise.
6241 * top.c (get_prompt_1): Likewise.
6242 * valops.c (value_assign): Likewise.
6243 * valprint.c (print_decimal): Likewise.
6244
6245 2002-04-22 H.J. Lu (hjl@gnu.org)
6246
6247 * c-exp.y (typebase): Support
6248
6249 [long|long long|short] [signed|unsigned] [int|]
6250
6251 and
6252
6253 signed [long|long long|short] int
6254
6255 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6256
6257 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6258 and vax-tdep.h.
6259 * vax-tdep.h: New file.
6260 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6261 Make several routines static.
6262 (vax_get_saved_register): New function.
6263 (vax_gdbarch_init): New function.
6264 (_initialize_vax_tdep): Register vax_gdbarch_init.
6265 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6266 Remove macros now under the control of gdbarch.
6267
6268 2002-04-22 Michael Snyder <msnyder@redhat.com>
6269
6270 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6271 Some whitespace and coding standards tweaks.
6272
6273 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6274
6275 * vax-tdep.c: Include regcache.h.
6276 (vax_call_dummy_words): New.
6277 (sizeof_vax_call_dummy_words): New.
6278 (vax_fix_call_dummy): New function.
6279 (vax_saved_pc_after_call): Ditto.
6280 * config/vax/tm-vax.h: Don't include regcache.h.
6281 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6282 (CALL_DUMMY): Remove.
6283 (CALL_DUMMY_WORDS): Define.
6284 (SIZEOF_CALL_DUMMY_WORDS): Define.
6285 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6286
6287 2002-04-18 Michael Snyder <msnyder@redhat.com>
6288
6289 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6290
6291 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6292
6293 * vax-tdep.c (vax_frame_chain): New function.
6294 (vax_push_dummy_frame): Ditto.
6295 (vax_pop_frame): Ditto.
6296 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6297 (FRAMELESS_FUNCTION_INVOCATION): Use
6298 generic_frameless_function_invocation_not.
6299 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6300 (POP_FRAME): Use vax_pop_frame.
6301
6302 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6303
6304 * vax-tdep.c (vax_store_struct_return): New function.
6305 (vax_extract_return_value): Ditto.
6306 (vax_store_return_value): Ditto.
6307 (vax_extract_struct_value_address): Ditto.
6308 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6309 vax_store_struct_return.
6310 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6311 (STORE_RETURN_VALUE): Use vax_store_return_value.
6312 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6313
6314 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * vax-tdep.c (vax_frame_saved_pc): New function.
6317 (vax_frame_args_address_correct): Ditto.
6318 (vax_frame_args_address): Ditto.
6319 (vax_frame_locals_address): Ditto.
6320 (vax_frame_num_args): Move code to be in proximity to
6321 other frame-related functions.
6322 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6323 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6324 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6325 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6326 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6327
6328 2002-04-22 H.J. Lu (hjl@gnu.org)
6329
6330 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6331 includedir.
6332
6333 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6336 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6337 (FRAME_INIT_SAVED_REGS): New macro.
6338
6339 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6340
6341 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6342
6343 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6344
6345 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6346 where needed.
6347 (fetch_osf_core_registers): Likewise.
6348 (supply_gregset): Likewise.
6349
6350 2002-04-22 J. Brobecker <brobecker@gnat.com>
6351
6352 * symfile.h (get_section_index): Define.
6353 * symfile.c (get_section_index): New function.
6354 * mdebugread.c (SC_IS_SBSS): New macro.
6355 (SC_IS_BSS): Return true for the scBss storage class only, as
6356 the scSBss storage class refers to the .sbss section.
6357 (parse_partial_symbols): Discard the symbols which associated
6358 section does not exist.
6359 Make sure to use the .sbss section index for symbols which
6360 storage class is scBss, rather than using the .bss section index.
6361
6362 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6363
6364 * vax-tdep.c: Update copyright years.
6365 (vax_register_name): New function.
6366 (vax_register_byte): Ditto.
6367 (vax_register_raw_size): Ditto.
6368 (vax_register_virtual_size): Ditto.
6369 (vax_register_virtual_type): Ditto.
6370 * config/vax/tm-vax.h: Update copyright years.
6371 (REGISTER_NAMES): Remove.
6372 (REGISTER_NAME): Define.
6373 (REGISTER_BYTE): Use vax_register_byte.
6374 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6375 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6376 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6377
6378 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6379
6380 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6381 declaration
6382 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6383
6384 2002-04-21 David S. Miller <davem@redhat.com>
6385
6386 * arch-utils.c (generic_prologue_frameless_p): Kill
6387 SKIP_PROLOGUE_FRAMELESS_P code.
6388 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6389 references.
6390 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6391 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6392 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6393 references.
6394 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6395 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6396 (sparc_gdbarch_init): Pass it to
6397 set_gdbarch_prologue_frameless_p.
6398
6399 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6400
6401 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6402 (alphabsd-nat.o): New dependency list.
6403
6404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6405
6406 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6407 alphafbsd-tdep.c.
6408 (alpha-linux-tdep.o): New dependency list.
6409 (alphafbsd-tdep.o): Likewise.
6410
6411 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6412
6413 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6414 to here...
6415 * alpha-tdep.c: ...from here.
6416 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6417
6418 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6419
6420 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6421 prototype from here...
6422 * alpha-tdep.h: ...to here.
6423
6424 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6425
6426 * frame.h (selected_frame_level): Document as deprecated.
6427 (frame_relative_level): Declare.
6428 * stack.c (frame_relative_level): New function.
6429 (selected_frame_level): Document as deprecated.
6430 (select_frame): Do not set the selected_frame_level.
6431
6432 * stack.c (frame_info, record_selected_frame): Update.
6433 (frame_command, current_frame_command): Update.
6434 (up_silently_base, up_command, down_silently_base): Update.
6435 (down_command): Update.
6436 * inflow.c (kill_command): Update.
6437 * tracepoint.c (finish_tfind_command): Update.
6438 * corelow.c (core_open): Update.
6439 * thread.c (info_threads_command): Update.
6440 (do_captured_thread_select): Update.
6441 * infcmd.c (finish_command): Update.
6442 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6443
6444 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6445
6446 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6447
6448 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6449
6450 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6451 type const.
6452
6453 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6454
6455 * alphafbsd-tdep.c: Update copyright years. Include
6456 alpha-tdep.h.
6457 (alphafbsd_use_struct_convention): Make static.
6458 (alphafbsd_init_abi): New function.
6459 (_initialize_alphafbsd_tdep): New function.
6460 * config/alpha/tm-fbsd.h: Update copyright years.
6461 (USE_STRUCT_CONVENTION): Remove.
6462
6463 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6464
6465 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6466 an Alpha ABI variant.
6467 (alpha_abi_handler_list): Declare.
6468 (alpha_gdbarch_register_os_abi): New function.
6469 (alpha_gdbarch_init): Give registered ABI variant handlers a
6470 chance to tweak the gdbarch once we have set up defaults.
6471 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6472
6473 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6474
6475 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6476 to standard_coerce_float_to_double.
6477 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6478
6479 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6480
6481 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6482 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6483 from gdbarch_tdep rather than a constant.
6484 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6485 the default text address for all Alpha Unix ABIs.
6486 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6487 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6488
6489 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * alpha-tdep.h: New file. Includes several Alpha target constants
6492 taken from...
6493 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6494 let gdbarch deal with.
6495 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6496 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6497 to dependency list.
6498 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6499 Alpha target register names.
6500 * alphabsd-nat.c: Likewise.
6501 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6502 Alpha target register names. Make serveral routines static.
6503 (alpha_get_saved_register): New function.
6504 (alpha_abi_names): New.
6505 (process_note_abi_tag_sections): New function.
6506 (get_elfosabi): New function.
6507 (alpha_gdbarch_init): New function.
6508 (alpha_dump_tdep): New function.
6509 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6510
6511 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6512
6513 * frame.c (find_saved_register): Delete #ifdef
6514 HAVE_REGISTER_WINDOWS code.
6515 * config/sparc/tm-sparc.h: Update comments.
6516 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6517
6518 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6519
6520 * i960-tdep.c (i960_find_saved_register): New function.
6521 (i960_get_saved_register): New function.
6522 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6523 (i960_get_saved_register): Declare.
6524 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6525
6526 2002-04-20 David S. Miller <davem@redhat.com>
6527
6528 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6529
6530 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6531
6532 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6533 instead of NUM_PSEUDO_REGS.
6534
6535 2002-04-20 David S. Miller <davem@redhat.com>
6536
6537 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6538 GDB_MULTI_ARCH_PARTIAL
6539 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6540 define, let tm-sp64.h do it.
6541
6542 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6543
6544 * frame.c (find_saved_register): Avoid a NULL pointer
6545 dereference and actually walk the frame list.
6546
6547 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6548
6549 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6550 sorted in most most-recent-used order. Document.
6551 * gdbarch.h, gdbarch.c: Regenerate.
6552
6553 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6554
6555 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6556 instead of ->prev.
6557 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6558 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6559 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6560 instead of ->prev.
6561
6562 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6563
6564 Fix PR gdb/471.
6565 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6566 (build_builtin_type_vec128): Ditto.
6567 (append_composite_type_field): Fix calculation of type length in
6568 union case.
6569
6570 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6571
6572 * config/djgpp/README: Update.
6573
6574 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6575 compiler warnings.
6576
6577 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6578
6579 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6580 (alpha_setup_arbitrary_frame): ...to this.
6581 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6582 for alpha_setup_arbitrary_frame.
6583
6584 2002-04-18 Andrew Cagney <cagney@redhat.com>
6585
6586 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6587 * gdbarch.h, gdbarch.c: Regenerate.
6588
6589 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6590 * target.h (memory_breakpoint_from_pc): Update declaration.
6591 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6592
6593 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6594 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6595 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6596 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6597 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6598 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6599 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6600 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6601 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6602 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6603 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6604 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6605
6606 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6607 const pointer.
6608 * monitor.c (monitor_insert_breakpoint): Ditto.
6609 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6610
6611 * config/mcore/tm-mcore.h: Update copyright.
6612 * mem-break.c: Ditto.
6613 * xstormy16-tdep.c: Ditto.
6614
6615 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6616
6617 * p-exp.y: Add precedence rule for '^' token.
6618 This removes the shift/reduce conflicts.
6619 Remove the comment concerning these shift/reduce conflicts.
6620
6621 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6622
6623 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6624 (registers_powerpc_nofp): New register set for processors
6625 without floating point unit.
6626
6627 2002-04-18 David S. Miller <davem@redhat.com>
6628
6629 * MAINTAINERS: Add myself to write-after-approval.
6630
6631 2002-04-17 Michael Snyder <msnyder@redhat.com>
6632
6633 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6634
6635 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6636
6637 * rs6000-tdep.c (frame_initial_stack_address): Use
6638 frame_register_read to read the alloca_reg.
6639
6640 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6641
6642 * frame.c (find_saved_register): Find saved registers in the next
6643 not prev frame.
6644 Fix PR gdb/365.
6645
6646 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6647
6648 * gdbarch.sh (LANG): Set to ``c''.
6649
6650 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6651
6652 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6653
6654 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6655
6656 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6657 Update copyright.
6658
6659 * hpread.c (hpread_get_lntt): Add declaration.
6660 Also fix PR gdb/391.
6661
6662 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6663
6664 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6665 * aclocal.m4, configure: Re-generate.
6666 Fix PR gdb/391.
6667
6668 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6669
6670 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6671 instead of tm_print_insn.
6672
6673 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6674
6675 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6676
6677 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6678
6679 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6680 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6681 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6682
6683 2002-04-12 Don Howard <dhoward@redhat.com>
6684
6685 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6686 max_user_call_depth.
6687 (init_cmd_lists): Initialize the new value;
6688 * cli/cli-script.c (execute_user_command): Limit the call depth of
6689 user defined commands. This avoids a core-dump when user commands
6690 are infinitly recursive.
6691
6692 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6693
6694 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6695 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6696 from tdep struct instead of DEFAULT_LR_SAVE.
6697 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6698 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6699 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6700
6701 2002-04-12 Michael Snyder <msnyder@redhat.com>
6702
6703 * Remote.c: Spelling fix.
6704 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6705 If no symbol found for "sbrk", try "_sbrk".
6706 (make_output_phdrs): Use bfd_section_name.
6707 (gcore_copy_callback): Use bfd_section_name.
6708 * eval.c: Indentation fix-ups.
6709 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6710 in case it gets applied to an address that is already
6711 in the instruction space.
6712 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6713 * symfile.c: Fix indentation, long lines.
6714 * source.c: White space fix-up.
6715
6716 2002-04-12 Andrew Cagney <cagney@redhat.com>
6717
6718 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6719 * frame.c (frame_register_read): New function. Return non-zero on
6720 success.
6721 (read_relative_register_raw_bytes_for_frame): Delete.
6722 (read_relative_register_raw_bytes): Delete.
6723 * frame.h (frame_register_read): Declare.
6724 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6725 * sh-tdep.c: Ditto.
6726 * infcmd.c (do_registers_info): Ditto.
6727 * hppa-tdep.c: Ditto.
6728 * rs6000-tdep.c: Ditto.
6729 * h8500-tdep.c: Ditto.
6730 * mips-tdep.c: Ditto.
6731 * h8300-tdep.c: Ditto.
6732 * z8k-tdep.c: Ditto.
6733
6734 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6735
6736 From Jimi X <jimix@watson.ibm.com>:
6737 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6738 64-bit SysV ABI.
6739
6740 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6741
6742 From Jimi X <jimix@watson.ibm.com>:
6743 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6744 bfd info.
6745
6746 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6747
6748 From Jimi X <jimix@watson.ibm.com>:
6749 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6750 register sets for these processor variants.
6751
6752 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6753
6754 * regformats/reg-ppc.dat: Support FPSCR.
6755
6756 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6757
6758 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6759 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6760 Add fpscr as an invalid/unfetchable register.
6761 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6762 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6763 (fill_fpregset): Add support for register fpscr.
6764 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6765 (fill_gregset): Account for the fact that register ``mq'' might
6766 not exist.
6767 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6768 (registers_power): Add fpscr to register set at slot 71.
6769 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6770 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6771
6772 2002-04-11 Michael Snyder <msnyder@redhat.com>
6773
6774 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6775 * configure: Regenerate.
6776 * config.in: Regenerate.
6777 * acconfig.h: Add define for _SYSCALL32.
6778 * core-sol2.c: Remove #define _SYSCALL32.
6779 * solib-legacy.c: Remove #define _SYSCALL32.
6780
6781 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6782
6783 * stack.c (select_frame): Cleanup internal error message, do not
6784 use %p.
6785
6786 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6787
6788 * stack.c (select_frame): Check that selected_frame and the
6789 specified level are as expected.
6790 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6791 Update copyright.
6792 * frame.h (struct frame_info): Add field `level'. Update
6793 copyright.
6794 Work-in-progress PR gdb/464.
6795
6796 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6797
6798 * maint.c (maint_print_section_info): Rename print_section_info.
6799 (print_bfd_section_info, print_objfile_section_info): Update.
6800 * inferior.h (struct gdbarch): Add opaque declaration.
6801 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6802 * gdbarch.h: Regenerate.
6803
6804 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6805
6806 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6807 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6808 (kernel_u_size): Added.
6809 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6810 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6811
6812 2002-04-04 Jim Ingham <jingham@apple.com>
6813
6814 * valarith.c (find_size_for_pointer_math): New function, either returns
6815 the size for a pointer's target, returns 1 for void *, or errors for
6816 incomplete types.
6817 (value_add, value_sub): use find_size_for_pointer_math.
6818
6819 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6820
6821 * linux-low.c (linux_look_up_symbols): New hook.
6822 (linux_target_ops): Add linux_look_up_symbols.
6823 * remote-utils.c (decode_address): New function.
6824 (look_up_one_symbol): New function.
6825 * server.c (handle_query): Call target look_up_symbols hook.
6826 * server.h (look_up_one_symbol): Add prototype.
6827 * target.h (struct target_ops): Add look_up_symbols hook.
6828
6829 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6830
6831 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6832 override FP_REGNUM with frame->fp. Update copyright.
6833 * parse.c (num_std_regs, std_regs): Delete.
6834 (target_map_name_to_register): Do not search std_regs. Update
6835 function description.
6836 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6837 declarations. Update copyright.
6838 Fix PR gdb/251.
6839
6840 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6841
6842 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6843 after the last symbol in a block.
6844
6845 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6846
6847 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6848 is non zero as a found symbol.
6849
6850 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6851
6852 * findvar.c: Include "builtin-regs.h".
6853 (value_of_register): Call value_of_builtin_reg when applicable.
6854 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6855 (target_map_name_to_register): Call
6856 builtin_reg_map_name_to_regnum.
6857 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6858 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6859 (builtin_regs_h): Define.
6860 (builtin-regs.o): New target.
6861 (findvar.o): Add $(builtin_regs_h).
6862 * builtin-regs.c, builtin-regs.h: New files.
6863 * std-regs.c: New file.
6864 Partial fix for PR gdb/251.
6865
6866 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6867
6868 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6869 it's no longer required.
6870
6871 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6872
6873 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6874
6875 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6876
6877 From Jimi X <jimix@watson.ibm.com>:
6878 * rs6000-tdep.c (rs6000_software_single_step): Use
6879 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6880 and size. Use target_insert_breakpoint() and
6881 target_remove_breakpoint() to insert and remove breakpoints
6882 instead of explicit memory reads and writes.
6883
6884 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6885
6886 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6887 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6888 ELF_OBJECT_FORMAT ifdef.
6889
6890 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6891
6892 From Jimi X <jimix@watson.ibm.com>:
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6894
6895 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6896
6897 From Jimi X <jimix@watson.ibm.com>:
6898 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6899 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6900
6901 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6902
6903 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6904 s/asprintf/xasprintf/.
6905 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6906
6907 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6908
6909 I believe Jeff Law denies responsability for this one:
6910 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6911 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6912 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6913 Work-around for PR gdb/366.
6914
6915 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6916
6917 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6918 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6919 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6920
6921 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6922
6923 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6924 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6925 information.
6926
6927 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6928
6929 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6930 maintainer.
6931
6932 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6933
6934 * README (Reporting Bugs in GDB): Document the bug web page as the
6935 prefered way of submitting bugs.
6936 Fix PR gdb/402.
6937
6938 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6939
6940 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6941 -1. Update comment.
6942 * gdbarch.h, gdbarch.c: Re-generate.
6943
6944 2002-04-07 Andreas Schwab <schwab@suse.de>
6945
6946 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6947 buffer to regcache_collect.
6948
6949 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6950
6951 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6952 * gdbarch.c, gdbarch.h: Re-generate.
6953
6954 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6955
6956 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6957 declaration. Fix -Werror.
6958
6959 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6962 * gdbarch.c: Regenerate.
6963
6964 2002-04-05 Michael Snyder <msnyder@redhat.com>
6965
6966 * breakpoint.c (clear_command): Rewrite middle section to
6967 combine two loops with identical control conditions.
6968 Add a cleanup to eliminate a memory leak.
6969 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6970
6971 2002-04-05 H.J. Lu (hjl@gnu.org)
6972
6973 * solib-svr4.c (bkpt_names): Add "__start".
6974
6975 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6976
6977 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6978 as test for 64 bit target.
6979
6980 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6981
6982 * h8500-tdep.c (h8500_write_fp): Delete function.
6983 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6984 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6985 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6987 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6988 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6989 (s390_write_fp):
6990 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6991 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6992 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6993 (d10v_write_fp): Delete function.
6994 * inferior.h (write_fp, generic_target_write_fp): Delete
6995 declarations.
6996 * regcache.c (generic_target_write_fp): Delete function.
6997 (write_fp): Delete function.
6998 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6999 * gdbarch.h, gdbarch.c: Regenerate.
7000 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7001 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7002 (sparc64_write_fp): Delete declaration.
7003 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7004 (h8500_write_fp): Delete declaration.
7005
7006 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7007
7008 * sparc-tdep.c (sparc64_write_fp): Delete.
7009 (sparc_push_dummy_frame): Replace write_fp call with code to store
7010 the FP directly.
7011 (sparc_gdbarch_init): Do not initialize write_fp.
7012
7013 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7014
7015 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7016 clause.
7017
7018 2002-03-29 Jim Blandy <jimb@redhat.com>
7019
7020 * stack.c (get_selected_block): Add new argument `addr_in_block',
7021 used to return the exact code address we used to select the block,
7022 not just the block.
7023 * blockframe.c (get_frame_block, get_current_block): Same.
7024 * frame.h (get_frame_block, get_current_block,
7025 get_selected_block): Update declarations.
7026 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7027 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7028
7029 2002-04-05 Michael Snyder <msnyder@redhat.com>
7030
7031 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7032 warning message.
7033
7034 2002-04-05 J. Brobecker <brobecker@gnat.com>
7035
7036 * utils.c (xfullpath): New function.
7037 * defs.h (xfullpath): Add declaration.
7038 * source.c (openp): Use xfullpath in place of gdb_realpath to
7039 avoid resolving the basename part of filenames when the
7040 associated file is a symbolic link. This fixes a potential
7041 inconsistency between the filenames known to GDB and the
7042 filenames it prints in the annotations.
7043 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7044 to be able to match a filename with either the real filename, or
7045 the name of any symbolic link to this file.
7046 (lookup_partial_symtab): Ditto.
7047
7048 2002-04-04 Michael Snyder <msnyder@redhat.com>
7049
7050 * breakpoint.c: Add support for hardware breakpoints in overlays.
7051 (overlay_events_enabled): New state variable.
7052 (insert_breakpoints): Use overlay_events_enabled to decide
7053 whether to attempt to set a breakpoint at the overlay load addr.
7054 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7055 (remove_breakpoint): Use overlay_events_enabled to decide
7056 whether breakpoints need to be removed from overlay load addr.
7057 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7058 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7059 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7060 disable_overlay_breakpoints): Update overlay_events_enabled.
7061
7062 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * dwarf2read.c (struct function_range): New.
7065 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7066 (check_cu_functions): New.
7067 (read_file_scope): Initialize global function lists.
7068 Call dwarf_decode_line after processing children.
7069 (read_func_scope): Add to global function list.
7070 (dwarf_decode_lines): Call check_cu_functions everywhere
7071 record_line is called. Call record_line with a linenumber
7072 of 0 to mark sequence ends.
7073
7074 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7075
7076 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7077 change sync with glibc.
7078
7079 2002-04-03 Jim Blandy <jimb@redhat.com>
7080
7081 * configure.in: Call AC_C_INLINE.
7082 * configure: Regenerated.
7083
7084 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7085
7086 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7087 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7088
7089 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7090
7091 * NEWS: Mention gcore support on FreeBSD/i386.
7092
7093 * fbsd-proc.c: New file.
7094 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7095 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7096
7097 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7098 while statement.
7099
7100 2002-03-29 Jim Blandy <jimb@redhat.com>
7101
7102 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7103 unescaped newlines in string literals, but newer ones don't. So
7104 escape them.
7105
7106 2002-03-26 Michael Snyder <msnyder@redhat.com>
7107 Andrew Cagney <cagney@redhat.com>
7108
7109 * cli/cli-dump.c: New file. Dump memory to file,
7110 restore file to memory.
7111 * cli/cli-dump.h: New file.
7112 * Makefile.in: Add rules, dependencies for cli-dump.o.
7113 * NEWS: Mention new commands.
7114
7115 2002-03-28 Michael Snyder <msnyder@redhat.com>
7116
7117 * symfile.c (symbol_file_add): Move test for null symbols to later.
7118
7119 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7120
7121 From veksler at il.ibm.com:
7122 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7123 the xstrduped original path.
7124 Fix PR gdb/417.
7125
7126 2002-03-27 Michael Snyder <msnyder@redhat.com>
7127
7128 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7129 * infcmd.c (_initialize_infcmd): Ditto.
7130 * language.c (_initialize_language): Ditto.
7131 * symfile.c (_initialize_symfile): Ditto.
7132 * top.c (_init_main): Ditto.
7133 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7134
7135 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7136
7137 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7138 vector registers handling.
7139 (skip_prologue): Handle new AltiVec instructions. Fill in new
7140 fields of frame data.
7141 (frame_get_saved_regs): Fill in information for AltiVec registers.
7142
7143 2002-03-27 Jim Blandy <jimb@redhat.com>
7144
7145 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7146 a function; leave this macro here to invoke that function.
7147 (symbol_init_mangled_name): Declaration for that function.
7148 * symtab.c (symbol_init_mangled_name): New function.
7149
7150 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7151
7152 * valarith.c: Replace strerror with safe_strerror.
7153 * tracepoint.c: Ditto.
7154 * lin-lwp.c: Ditto.
7155 * go32-nat.c: Ditto.
7156 * inflow.c: Ditto.
7157 * gnu-nat.c: Ditto.
7158
7159 2002-03-27 Andreas Schwab <schwab@suse.de>
7160
7161 * event-top.c (command_line_handler): Remove useless if.
7162
7163 2002-03-27 Andreas Jaeger <aj@suse.de>
7164
7165 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7166 comment.
7167
7168 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7169
7170 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7171 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7172 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7173 (x86_64_linux_dr_get_status, supply_gregset),
7174 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7175 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7176 (x86_64_register_info_table): Add.
7177 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7178 (x86_64_register_raw_size, x86_64_register_virtual_type),
7179 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7180 general x86_64_register_info_table.
7181 (i386_gdbarch_init): gdbarch_register_bytes is now set
7182 dynamicaly during initialization.
7183 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7184 * gdbserver/linux-x86-64-low.c: Ditto.
7185
7186 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7187
7188 * gdbserver/server.c (main): Call target_signal_to_host_p
7189 and target_signal_to_host on signals received from the remote.
7190 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7191 target_signal_from_host on signals sent to the remote.
7192 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7193 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7194
7195 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7196
7197 * signals/signals.c: Include "server.h" in gdbserver build.
7198 (target_signal_from_name): Don't use STREQ.
7199 (_initialize_signals): Likewise. Don't include function in
7200 gdbserver build.
7201
7202 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * signals.c: Moved to...
7205 * signals/signals.c: Here.
7206 * Makefile (signals.o): Update.
7207
7208 2002-03-26 Jeff Law (law@redhat.com)
7209
7210 * somread.c (som_symtab_read): Remove some commented out code and
7211 updated related comments. Do not set the minimal symbol table to
7212 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7213 in a dynamic executable.
7214 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7215 where we are unable to find the minimal symbol for the given
7216 PC value.
7217
7218 2002-03-25 Jeff Law (law@redhat.com)
7219
7220 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7221
7222 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7223
7224 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7225
7226 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7227
7228 * command.h: Update copyright.
7229 (struct cmd_list_element): Replace definition with opaque
7230 declaration.
7231 (enum cmd_types): Document that it will eventually be moved to
7232 cli/cli-decode.h
7233 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7234 (MALLOCED_REPLACEMENT): Delete macro.
7235 * Makefile.in (cli_decode_h): Add $(command_h).
7236 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7237 * top.c: Include "cli/cli-decode.h".
7238 * completer.c: Include "cli/cli-decode.h".
7239 * maint.c: Include "cli/cli-decode.h".
7240 * cli/cli-decode.h: Include "command.h".
7241 (enum command_class): Delete.
7242 (enum cmd_types): Comment out.
7243 (enum cmd_auto_boolean): Delete.
7244 (enum var_types): Delete.
7245
7246 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7247
7248 * cli/cli-decode.c: Include "gdb_assert.h".
7249 (add_set_or_show_cmd): New static function.
7250 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7251 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7252 all fields, such as func, from the set command.
7253
7254 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7255
7256 * MAINTAINERS (sh-elf): Change warning flag to -w.
7257
7258 2002-03-23 Andrew Cagney <cagney@redhat.com>
7259
7260 * defs.h (error): Add printf format attribute.
7261 * thread-db.c (thread_from_lwp): Fix error format string.
7262 * stack.c (parse_frame_specification): Ditto.
7263 * cli/cli-decode.c (undef_cmd_error): Ditto.
7264 * scm-lang.c (scm_lookup_name): Ditto.
7265 * tracepoint.c (trace_error): Ditto.
7266 * remote-utils.c (usage): Ditto.
7267 * remote.c (compare_sections_command): Ditto.
7268 Fix PR gdb/328.
7269
7270 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7271
7272 * gdbtypes.c (append_composite_type_field): New function.
7273 (init_composite_type): New function.
7274 * gdbtypes.h (append_composite_type_field): Declare.
7275 (init_composite_type): Ditto.
7276
7277 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7280 function.
7281 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7282 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7283 structure returning convention for SYSV ABI case, but not
7284 for GNU/Linux, FreeBSD, or NetBSD.
7285
7286 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7287
7288 * symtab.h (lookup_block_symbol): Add mangled_name argument
7289 to prototype.
7290
7291 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7292 with new mangled_name argument.
7293 * linespec.c (decode_line_1): Likewise.
7294 * valops (value_of_this): Likewise.
7295 * symtab.c (lookup_transparent_type): Likewise.
7296 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7297 (lookup_symbol): If we are given a mangled name, pass it down
7298 to lookup_symbol_aux.
7299 (lookup_block_symbol): If we are given a mangled name to check
7300 against, only return symbols which match it.
7301
7302 2002-03-22 Christopher Faylor <cgf@redhat.com>
7303
7304 * win32-nat.c (child_create_inferior): Check for proper shell to use
7305 here, in case the user changes it on the fly.
7306 (_initialize_inftarg): Remove shell path considerations.
7307
7308 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7309
7310 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7311 for gdbarch_max_register_raw_size and max_register_virtual_size.
7312 Adjust copyright year.
7313
7314 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7315
7316 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7317 in a function to cover the entire beginning of the function
7318 as well if it does not already.
7319
7320 2002-03-21 Tom Rix <trix@redhat.com>
7321
7322 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7323 (rs6000_ptrace64): Renamed from ptrace64.
7324
7325 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7326
7327 * gdbserver/remote-utils.c (remote_open): Don't call
7328 getprotobyname, we're all using TCP here so just use
7329 IPPROTO_TCP.
7330 * gdbserver/gdbreplay.c (remote_open): Ditto.
7331
7332 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7333
7334 * regcache.c (_initialize_regcache): No need to call
7335 build_regcache() at this time; it gets called whenever
7336 the gdbarch changes.
7337
7338 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7339
7340 * sparc-nat.c: Include sys/param.h where possible.
7341
7342 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7343
7344 Fix PR gdb/422.
7345 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7346 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7347 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7348 complex types.
7349 * stabsread.c (rs6000_builtin_type): Likewise.
7350 (read_sun_floating_type): Likewise.
7351
7352 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7353
7354 * stabsread.c (read_member_functions): Remove skip code for duplicate
7355 constructor/destructor methods. Use standard parsing for these
7356 methods and just do not chain them to the list of methods after
7357 parsing.
7358
7359 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7360
7361 * coffread.c: Remove redundant static declarations. Replace
7362 occurrences of `PTR' with `void *'.
7363 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7364 * top.h (quit_cover): Likewise.
7365 * defs.h (catch_errors): Likewise.
7366
7367 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7368
7369 * defs.h (XMALLOC): Define.
7370 * gdb-events.sh (XMALLOC): Delete macro.
7371 * gdb-events.c, gdb-events.h: Regenerate.
7372 * gdbarch.sh (XMALLOC): Delete macro.
7373 * gdbarch.c: Regenerate.
7374 * serial.c (XMALLOC): Delete macro.
7375 * ui-file.c (XMALLOC): Ditto.
7376 * ser-unix.h (XMALLOC): Ditto.
7377 * sh-tdep.c (XMALLOC): Ditto.
7378 * ui-out.c (XMALLOC): Ditto.
7379 * utils.c (XMALLOC): Ditto.
7380 * i386-tdep.c (XMALLOC): Ditto.
7381 * gdb-events.c (XMALLOC): Ditto.
7382 * d10v-tdep.c (XMALLOC): Ditto.
7383 * cli-out.c (XMALLOC): Ditto.
7384
7385 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7386 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7387 * ui-file.c, ui-out.c: Ditto.
7388
7389 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7390
7391 * command.h (struct cmd_list_element): Add field context.
7392 (set_cmd_context, get_cmd_context): Declare.
7393 * cli/cli-decode.h: Ditto.
7394 * cli/cli-decode.c (get_cmd_context): New function.
7395 (set_cmd_context): New function.
7396 (add_cmd): Initialize context.
7397 Part of fixing PR gdb/145 and PR gdb/146.
7398
7399 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7400
7401 * cli/cli-decode.c (cmd_type): New function.
7402 * command.h (cmd_type): Declare.
7403 * infrun.c (set_schedlock_func): Call function cmd_type.
7404 * kod.c (kod_set_os): Call cmd_type.
7405 * cris-tdep.c (cris_version_update): Use function cmd_type.
7406 (cris_mode_update, cris_abi_update): Ditto.
7407
7408 * command.h: (execute_cmd_post_hook): Declare.
7409 (execute_cmd_pre_hook): Declare.
7410 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7411 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7412 functions. Execute pre/post hook while ensuring that afterwords
7413 hook_in is cleared.
7414 * top.c (execute_command): Use execute_cmd_post_hook, and
7415 execute_cmd_pre_hook to execute pre/post commands.
7416 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7417 hook_stop_stub.
7418 (hook_stop_stub): Call execute_cmd_pre_hook.
7419
7420 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7421
7422 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7423 set'' and this leads to a core dump. Move xstrdup of
7424 operating_system to after check that it is not NULL.
7425
7426 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7427
7428 * kod.c (kod_set_os): Remove unnecessary check that
7429 ``command->type'' is set_cmd.
7430
7431 * valprint.c (set_input_radix): Use input_radix.
7432 (set_output_radix): Use output_radix.
7433 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7434 isn't reverted.
7435
7436 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7437
7438 * value.h (struct value): Delete field ``substring_addr''. Change
7439 aligner fields to force_doublest_align, force_longest_align,
7440 force_core_addr_align and force_pointer_aligh.
7441
7442 * value.h (struct value): Fix typo in above change.
7443
7444 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7445
7446 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7447 to fix internal_error from ``maintenance print architecture''.
7448
7449 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7450
7451 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7452 for gcc versions after gcc-2.8.1.
7453
7454 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7455
7456 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7457 for method resolution. Restore adjustment of ``this'' pointer after
7458 calling value_struct_elt, which was accidentally removed during the
7459 HP merge.
7460
7461 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7462
7463 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7464 value_of_register.
7465 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7466 get_saved_register.
7467 * value.h (value_of_register): Update.
7468
7469 2002-03-14 Richard Henderson <rth@redhat.com>
7470
7471 * configure.in: Detect declaration for canonicalize_file_name.
7472 * utils.c (canonicalize_file_name): Declare, if needed.
7473 (gdb_realpath): Prefer realpath if available and usable.
7474 * config.in, configure: Rebuild.
7475
7476 2002-03-14 Richard Henderson <rth@redhat.com>
7477
7478 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7479 a constant array bound.
7480
7481 * MAINTAINERS: Add myself to write-after-approval.
7482
7483 2002-03-14 Michael Snyder <msnyder@redhat.com>
7484
7485 * symfile.c (syms_from_objfile): Return immediately if no syms.
7486 (symbol_file_add): Return immediately if no syms.
7487 (find_sym_fns): Return immediately if no syms.
7488
7489 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7490
7491 * gdbserver/remote-util.c (remote_open): Print remote-side's
7492 IP address when remote debugging over the network.
7493
7494 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7495
7496 * config/sparc/fbsd.mh: Fix copyright.
7497 * config/sparc/fbsd.mt: Likewise.
7498
7499 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7500
7501 * MAINTAINERS: Fix typo in name of gdb warnings option.
7502 (x86-64): Fix formating so that this can be parsed by awk.
7503
7504 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7505
7506 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7507 * defs.h: Include "gdb/signals.h".
7508 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7509
7510 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7511
7512 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7513 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7514 from x86-64-tdep.h
7515
7516 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7517 Don Howard <dhoward@redhat.com>
7518
7519 * mips-tdep.c (ST0_FR): Define.
7520 (mips2_fp_compat): New function, temporarily disabled.
7521 (mips_read_fp_register_single): New function.
7522 (mips_read_fp_register_double): New function.
7523 (mips_print_register): Use them.
7524 (do_fp_register_row): Likewise.
7525
7526 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7527
7528 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7529 approval''.
7530
7531 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7532
7533 * stabsread.c (read_member_functions): Fix is_stub test for
7534 static member functions, improve comment.
7535
7536 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7537
7538 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7539 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7540 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7541 commands that set boolean values.
7542 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7543 (arm_rdi_resume): Always initialize PC.
7544 (arm_rdi_open): Don't use rslt as a boolean.
7545 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7546 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7547 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7548 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7549
7550 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7551
7552 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7553 * configure: Rebuilt.
7554
7555 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7556
7557 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7558 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7559
7560 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7561
7562 * cli/cli-decode.c (set_cmd_completer): New function.
7563 * command.h (set_cmd_completer): Declare.
7564 * cli/cli-decode.h (set_cmd_completer): Ditto.
7565
7566 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7567 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7568 * win32-nat.c (_initialize_inftarg): Ditto.
7569 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7570 * proc-api.c (_initialize_proc_api): Ditto.
7571 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7572 * source.c (_initialize_source): Ditto.
7573 * exec.c (_initialize_exec): Ditto.
7574 * solib.c (_initialize_solib): Ditto.
7575 * top.c (init_main): Ditto.
7576 * tracepoint.c (_initialize_tracepoint): Ditto.
7577 * symfile.c (_initialize_symfile): Ditto.
7578 * printcmd.c (_initialize_printcmd): Ditto.
7579 * infcmd.c (_initialize_infcmd): Ditto.
7580 * corefile.c (_initialize_core): Ditto.
7581
7582 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7583
7584 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7585
7586 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7587
7588 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7589
7590 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7591
7592 * NEWS: Update headings, 5.2 has branched.
7593
7594 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7595
7596 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7597 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7598 (register_addr, REGISTER_RAW_SIZE): Likewise.
7599 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7600 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7601
7602 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7603
7604 * MAINTAINERS (x86-64): Add myself.
7605 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7606 changed value_ptr -> struct value *
7607
7608 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7609
7610 * configure.host (sparc64-*-freebsd): Add.
7611 * configure.tgt: Likewise.
7612 * config/sparc/fbsd.mh: New file.
7613 * config/sparc/fbsd.mt: Likewise.
7614 * config/sparc/nm-fbsd.h: Likewise.
7615 * config/sparc/tm-fbsd.h: Likewise.
7616
7617 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7618
7619 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7620 regformats/reg-s390x.dat.
7621
7622 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7623
7624 * utils.c: Add FIXME explaining true/false problem.
7625
7626 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7627
7628 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7629
7630 2002-02-28 Michael Chastain <mec@shout.net>
7631
7632 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7633
7634 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7635
7636 * gdbserver/linux-s390-low.c: New file.
7637 * regformats/reg-s390.dat: New file.
7638 * regformats/reg-s390x.dat: New file.
7639 * gdbserver/configure.srv: Add S/390.
7640 * gdbserver/Makefile.in: Add S/390.
7641 * configure.tgt: Enable gdbserver for S/390.
7642
7643 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7644
7645 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7646 first line of the doc string for "info dos", except at the end of
7647 the sentence, since the short help stops at the first period.
7648
7649 2002-02-28 Jason Merrill <jason@redhat.com>
7650
7651 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7652
7653 2002-02-27 Fred Fish <fnf@redhat.com>
7654
7655 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7656 comment (dumy -> dummy).
7657
7658 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7659
7660 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7661
7662 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7663
7664 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7665
7666 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7667
7668 * gdbserver/acconfig.h: New file.
7669 * gdbserver/i387-fp.c: New file.
7670 * gdbserver/i387-fp.h: New file.
7671 * gdbserver/linux-x86-64.c: New file.
7672 * regformats/reg-x86-64.dat: New file.
7673 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7674 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7675 * gdbserver/configure.in: Add support for regsets.
7676 * gdbserver/config.in: Regenerate.
7677 * gdbserver/configure: Regenerate.
7678 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7679 * gdbserver/linux-low.h: New file.
7680 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7681 for regsets.
7682 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7683 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7684 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7685 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7686 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7687 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7688 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7689 "i387-fp.h". Add PTRACE_GETREGS and friends.
7690 * gdbserver/regcache.c (supply_register): New function.
7691 (supply_register_by_name): New function.
7692 (collect_register): New function.
7693 (collect_register_by_name): New function.
7694
7695 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7696
7697 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7698 (config.status): Add configure.srv dependency.
7699 (server_h): Add config.h dependency.
7700
7701 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7702
7703 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7704 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7705 * gdbserver/configure.srv: Change i386-*-linux* to use
7706 reg-i386-linux.o.
7707
7708 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7709
7710 * x86-64-tdep.c: Re-indent. Update copyright date.
7711
7712 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7713
7714 From Michal Ludvig <mludvig@suse.cz>:
7715 * x86-64-tdep.c (value.h): Delete.
7716 (gdb_assert.h): Include.
7717 (x86_64_register_convert_to_virtual,
7718 x86_64_register_convert_to_raw ): Add check which lets only
7719 floating-point values to be converted.
7720 (value_push): Delete.
7721 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7722 (i386_gdbarch_init): Number of register_bytes fixed.
7723
7724 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7725
7726 * MAINTAINERS: Add x86-64 target.
7727
7728 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7729
7730 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7731 * osfsolib.c (solib_map_sections): Ditto.
7732 * irix5-nat.c (solib_map_sections): Ditto.
7733 * corelow.c (gdb_check_format): Ditto.
7734 * symfile.c (symfile_bfd_open): Ditto.
7735 * solib.c (solib_map_sections): Ditto.
7736 Fix PR gdb/354.
7737
7738 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7739
7740 * remote.c (_initialize_remote): By default, disable ``e'' and
7741 ``E'' step out-of-range packets.
7742
7743 2002-02-26 Andreas Schwab <schwab@suse.de>
7744
7745 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7746 m68k_linux_frame_saved_pc.
7747 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7748 in_sigtramp.
7749 (SIGCONTEXT_PC_OFFSET): Remove.
7750 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7751 m68k_linux_sigtramp_saved_pc): New functions.
7752 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7753 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7754 (UCONTEXT_PC_OFFSET): Define.
7755 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7756 non-RT and RT signal trampolines.
7757
7758 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7759
7760 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7761 (TARGET_NBPG, STACK_END_ADDR): Delete
7762 (VARIABLES_INSIDE_BLOCK): Delete.
7763
7764 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7765
7766 * utils.c (perror_with_name): Make string parameter constant.
7767 (print_sys_errmsg): Ditto.
7768 (query): Ditto.
7769 * defs.h (perror_with_name): Update.
7770 (print_sys_errmsg): Update.
7771 (query): Update.
7772
7773 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7774
7775 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7776 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7777
7778 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7779
7780 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7781 if it already matches the current architecture from the exec file.
7782 Include arch-utils.h for gdbarch_info_init prototype.
7783 * Makefile.in (rs6000-nat.o): Update dependencies.
7784
7785 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7786
7787 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7788 list of exported variables.
7789
7790 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7791
7792 * gdbserver/configure.srv: New file.
7793 * gdbserver/configure.in: Use configure.srv instead
7794 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7795 from it.
7796 * gdbserver/configure: Regenerated.
7797 * gdbserver/terminal.h: New file.
7798 * gdbserver/Makefile.in: Update for configure changes. Remove
7799 more unneeded include paths.
7800
7801 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7802
7803 From wiz at danbala:
7804 * config/sparc/tm-sp64.h: Fix grammar and typos.
7805 Fix PR gdb/287.
7806
7807 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7808
7809 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7810 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7811 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7812 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7813 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7814 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7815 * s390-tdep.c: Ditto.
7816 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7817 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7818 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7819 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7820 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7821 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7822 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7823 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7824 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7825 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7826 Fix PR gdb/378.
7827
7828 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7829
7830 * lin-thread.c: Delete file.
7831 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7832 to gdb_proc_service.h.
7833 * configure: Re-generate.
7834
7835 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7836 * serial.c (serial_open): Delete check for "ocd".
7837 Fix PR gdb/349.
7838
7839 * Makefile.in (linux-thread.o): Delete target.
7840 * linux-thread.c: Delete file.
7841
7842 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7843 renamed SH files to be consistent.
7844
7845 * symtab.c (sort_search_symbols): Use xfree.
7846
7847 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7848
7849 * arm-linux-tdep.c (arm_linux_init_abi): Register
7850 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7851 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7852 definition with undef, since we don't want the sysvr4 definition.
7853 (SKIP_TRAMPOLINE_CODE): Likewise.
7854
7855 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7856
7857 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7858
7859 * configure.in: (AC_CHECK_FUNCS) Added test for
7860 canonicalize_file_name Regenerated.
7861 * config.in, configure: Regenerated.
7862 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7863 defined use canonicalize_file_name.
7864
7865 2002-02-23 Michael Chastain <mec@shout.net>
7866
7867 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7868
7869 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7870
7871 * README: Remove references to cygnus.com.
7872 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7873 dot com'' form. Remove references to cygnus.com and sourceware.
7874
7875 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7876
7877 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7878 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7879 1003.1-2001 no longer allows "head -1".
7880 * gdb/Makefile.in (version.c): Likewise.
7881 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7882 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7883 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7884
7885 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7886
7887 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7888 * command.h (cmd_cfunc_eq): Declare.
7889 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7890
7891 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7892 ``struct cmd_list_element *''.
7893 * cli/cli-cmds.c (is_complete_command): Update. Use
7894 cmd_cfunc_eq.
7895 * top.c (execute_command): Pass the command to
7896 is_complete_command.
7897 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7898
7899 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7900
7901 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7902 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7903 architecture defines.
7904 * s390-tdep.c (s390_gdbarch_init): Likewise.
7905
7906 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7907
7908 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7909 (arm_linux_push_arguments): Likewise.
7910 (arm_linux_init_abi): Register them. Also register linux-specific
7911 call_dummy_words.
7912 (find_minsym_and_objfile): Use strcmp, not STREQ.
7913 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7914 (arm_linux_call_dummy_words): Delete declaration.
7915 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7916 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7917 declarations.
7918 (LOWEST_PC): Delete.
7919
7920 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7921
7922 * maint.c (print_section_info): Do not prepend `0x' to filepos
7923 output, it will be handled by local_hex_string_custom.
7924
7925 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7926
7927 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7928 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7929 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7930
7931 2002-02-22 Jim Blandy <jimb@redhat.com>
7932
7933 Indicate that the bcache functions don't change the strings
7934 they're passed.
7935 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7936 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7937
7938 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7939
7940 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7941
7942 2002-02-21 Christopher Faylor <cgf@redhat.com>
7943
7944 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7945 find the complete path to a loaded DLL.
7946
7947 2002-02-21 Fred Fish <fnf@redhat.com>
7948
7949 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7950 that marks the end of the range of a function, enter a line number
7951 entry that has a line number of zero and a PC offset that matches
7952 the end of the function. This starts a range of PC's for which no
7953 line number information is known.
7954 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7955 PC's for which no line number info is found (line number is zero)
7956 then we didn't find any valid line information.
7957 * symtab.h: Document use of zero line number entry.
7958
7959 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7960
7961 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7962 (have_ptrace_getvrregs): Define for run time checks.
7963 (gdb_vrregset_t): New type for Altivec register handling.
7964 (fetch_register, store_register): Fetch/store altivec register
7965 when needed.
7966 (fetch_altivec_register, store_altivec_register): New functions.
7967 (supply_vrregset, fill_vrregset): New functions.
7968 (fetch_altivec_registers, store_altivec_registers): New functions.
7969 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7970 registers as well.
7971
7972 2002-02-21 Jiri Smid <smid@suse.cz>
7973
7974 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7975
7976 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7977
7978 * Makefile.in (armnbsd-nat.o): Update dependencies.
7979 * armnbsd-nat.c (supply_gregset): New function. Common code to
7980 supply the integer register set.
7981 (supply_fparegset): New function. Similar for FPA registers.
7982 (fetch_regs, fetch_fp_regs): Use them.
7983 (fetch_core_registers): Likewise.
7984 (fetch_elfcore_registers): New function.
7985 (arm_netbsd_elfcore_fns): New core-file type specification.
7986 (_initialize_arm_netbsd_nat): Register it.
7987
7988 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7989
7990 * armnbsd-nat.c: Include gdbcore.h.
7991 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7992 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7993 'void' to declaration, to shut up ARI.
7994 (fetch_core_registers): Make static. Rewrite using supply_register.
7995 (arm_netbsd_core_fns): New core-file type specification.
7996 (_initialize_arm_netbsd_nat): New function.
7997
7998 2002-02-21 Christopher Faylor <cgf@redhat.com>
7999
8000 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8001 value.
8002
8003 2002-02-20 Christopher Faylor <cgf@redhat.com>
8004
8005 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8006 fails.
8007
8008 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8009
8010 * jv-exp.y (parse_number): Change type of implicit longs
8011 to builtin_type_uint64.
8012
8013 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8014
8015 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8016 to be an integer instead of a `union wait'.
8017
8018 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8019
8020 * mips-linux-nat.c: Call the operating system GNU/Linux.
8021 * mips-linux-tdep.c: Likewise.
8022 * mips-tdep.c: Likewise.
8023
8024 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8025
8026 Fix PR gdb/265.
8027 * jv-exp.y (parse_number): Handle 64-bit integers.
8028
8029 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8032 AC_STDC_HEADERS to AC_HEADER_STDC.
8033 * gdbserver/configure: Regenerated.
8034
8035 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8036
8037 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8038 is defined.
8039 * sparc-tdep.c (get_longjmp_target): Likewise.
8040
8041 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8042
8043 * News: Add news about ARM and Multi-arch. Mention the new target
8044 arm*-*-netbsd*.
8045
8046 2002-02-19 Jim Blandy <jimb@redhat.com>
8047
8048 * stabsread.c (error_type_complaint): Improve error message.
8049
8050 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8051
8052 * gdbserver/README: Update documentation.
8053 * gdbserver/configure.in: Update configury to match documentation.
8054 * gdbserver/Makefile.in: Likewise.
8055 * gdbserver/configure: Regenerated.
8056 * gdbserver/aclocal.m4: New file, generated by aclocal.
8057 * gdbserver/config.in: New file, generated by autoheader.
8058
8059 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8060
8061 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8062 armnbsd-nat.c.
8063
8064 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8065
8066 * arm-tdep.h (enum arm_float_model): New enum.
8067 (struct gdbarch_tdep): Add fp_model.
8068 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8069 up floating-point conversions until we know the floating-point model
8070 in use by the inferior. Don't complain about being unable to
8071 determine the ABI of the inferior when we don't have one.
8072 (arm_extract_return_value): Support different floating-point models.
8073 (arm_store_return_value): Likewise.
8074 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8075 ARM_FLOAT_SOFT.
8076 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8077
8078 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8079
8080 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8081 of ``current_gdbarch''.
8082
8083 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8084
8085 * armnbsd-nat.c : ANSIfy all function declarations.
8086 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8087 (fetch_inferior_registers): Re-implement in terms of above.
8088 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8089 (store_inferior_registers): Re-implement in terms of above.
8090
8091 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8092
8093 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8094 kernel.
8095 * arm-linux-tdep.c: Likewise.
8096 * config/arm/tm-linux.h: Likewise.
8097
8098 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8099
8100 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8101 * config/arm/nbsd.mt (TM_FILE): Delete.
8102 * config/arm/tm-nbsd.h: Delete.
8103
8104 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8105
8106 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8107 Initialize CALL_DUMMY_LENGTH.
8108
8109 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8110
8111 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8112 function.
8113 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8114 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8115 defines one thing and that is incorrect for this port.
8116 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8117
8118 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8119
8120 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8121
8122 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8123
8124 * win32-nat.c (display_selector): New function. Displays information
8125 about the information returned by GetThreadSelectorEntry API function.
8126 (display_selectors): New function. Displays the infomation of
8127 the selector given as argument, or of CS, DS ans FS selectors
8128 if no argument is given.
8129 ( _initialize_inftarg): Add "w32" as info prefix command.
8130 Add "info w32 selector" as command calling display_selectors.
8131
8132 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8133
8134 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8135 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8136 if not defined.
8137
8138 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8139
8140 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8141
8142 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8143
8144 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8145 (arm_fix_call_dummy): Call it.
8146 (arm_call_dummy_breakpoint_offset): Delete.
8147 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8148 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8149
8150 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8151
8152 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8153 Default to func_frame_chain_valid.
8154 * gdbarch.h, gdbarch.c: Re-generate.
8155 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8156
8157 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8158
8159 * ppc-linux-nat.c: Update copyright.
8160 (fetch_register, store_register): Add tid parameter, don't compute
8161 tid here.
8162 (fetch_ppc_registers, store_ppc_registers): Add tid
8163 parameter. Pass it along to callees.
8164 (fetch_inferior_registers, store_inferior_registers): Compute tid
8165 here, and pass it to calleed functions.
8166 (fill_gregset, supply_fpregset): Clean up formatting.
8167
8168 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8169
8170 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8171 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8172
8173 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8176 * gdbarch.c gdbarch.h: Regenerate.
8177 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8178 function.
8179 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8180 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8181 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8182
8183 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8184 * arm-tdep.c (arm_get_longjmp_target): New function.
8185 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8186 this to a positive value register arm_get_longjmp_target as the
8187 longjmp handler.
8188 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8189 (arm_linux_init_abi): Set up longjmp description in tdep.
8190 * armnbsd-nat.c (get_longjmp_target): Delete.
8191 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8192 description in tdep.
8193 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8194 (get_longjmp_target): Delete declaration.
8195 (GET_LONGJMP_TARGET): Delete.
8196 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8197 (GET_LONGJMP_TARGET): Delete.
8198
8199 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8200
8201 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8202 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8203 of ``current_gdbarch''.
8204
8205 2002-02-17 Tom Tromey <tromey@redhat.com>
8206
8207 * cli/cli-cmds.c (compare_strings): New function.
8208 (complete_command): Only print each unique item once.
8209 * completer.h (complete_line): Declare.
8210 * completer.c (complete_line): New function.
8211 (line_completion_function): Use it.
8212
8213 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8214
8215 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8216 * gdbarch.h, gdbarch.c: Re-generate.
8217
8218 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8219
8220 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8221
8222 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8223
8224 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8225 * valops.c (value_arg_coerce): Don't take the address of a reference
8226 to convert an argument to a reference.
8227
8228 2002-02-15 Christopher Faylor <cgf@redhat.com>
8229
8230 * win32-nat.c (get_image_name): New function.
8231 (handle_load_dll): Use get_image_name function.
8232 (get_child_debug_event): Avoid registering debug events until possibly
8233 execed process is started.
8234 (child_create_inferior): Allow invocation via shell so that command
8235 line redirection, etc. works ok.
8236 (_initialize_inftarg): Add new command: "set shell" to control whether
8237 a shell is used to start a process.
8238
8239 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8242 instead of find_register_by_number.
8243 (cannot_store_register): Likewise.
8244
8245 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8246
8247 * dwarf2read.c: Replace fprintf (stderr, ...) by
8248 fprintf_unfiltered (gdb_stderr, ...).
8249
8250 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8251
8252 * gdbserver/gdbserver.1: Document --attach.
8253
8254 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8255
8256 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8257 descriptions.
8258 * arm-tdep.c (arm_default_arm_le_breakpoint)
8259 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8260 (arm_default_thumb_be_breakpoint): New. Initialize them from
8261 traditional breakpoint defines.
8262 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8263 (arm_gdbarch_init): Initialize new breakpoint variables.
8264 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8265 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8266 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8267 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8268 code out to ...
8269 (arm_netbsd_init_abi_common): ... here; new function.
8270 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8271 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8272 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8273 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8274
8275 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8276
8277 * arm-tdep.h (enum arm_abi): New enum.
8278 (struct gdbarch_tdep): New structure.
8279 (LOWEST_PC): Provide a default.
8280 (arm_gdbarch_register_os_abi): Declare new function.
8281 * arm-tdep.c (arm_abi_names): New array.
8282 (process_note_abi_tag_sections): New function.
8283 (get_elfosabi): New function.
8284 (arm_gdbarch_register_os_abi): New function.
8285 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8286 support for that ABI has been built in, then call the appropriate
8287 configuration routine. Use gdbarch_num_regs() to get the number
8288 of registers.
8289 (arm_dump_tdep): New function.
8290 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8291 place-holder functions.
8292 (_initialize_arm_tdep): Register them.
8293 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8294
8295 * armnbsd-tdep.c: New file.
8296 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8297 * config/arm/nbsd.mt (TDEPFILES): Add it.
8298 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8299
8300 * armnbsd-nat.c: Include regcache.h.
8301 * Makefile.in (armnbsd-nat.o): Update dependency list.
8302
8303 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8304
8305 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8306
8307 * gdbserver/Makefile.in: Fix typos in target rules.
8308
8309 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8310
8311 Fix part of PR gdb/267.
8312 * linespec.c (find_methods): Handle constructors specially for now.
8313
8314 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8315
8316 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8317 handling.
8318 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8319 standard_coerce_float_to_double().
8320
8321 2002-02-14 Christopher Faylor <cgf@redhat.com>
8322
8323 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8324 GDBINIT_FILENAME.
8325
8326 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8327
8328 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8329 find_variant_by_name, because it confuses the multiarch
8330 framework. Return NULL if there isn't an architecture with the
8331 user supplied name, instead of forcing a different one without
8332 recording the change with the multiarch machinery.
8333 (find_variant_by_name): Delete.
8334
8335 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8336
8337 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8338 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8339
8340 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8341
8342 * stack.c (print_frame_info_base): When calling
8343 print_frame_info_listing_hook, set current_source_symtab.
8344
8345 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8348 and remove unused $(INCLUDE_DIR).
8349 Add regcache.c to OBS.
8350 Add generated register protocol files to clean target.
8351 Update dependencies for new objects, obsolete old target code.
8352
8353 * gdbserver/linux-low.c: Remove all platform-specific code to
8354 new files. Remove various dead code. Update to use regcache
8355 functionality.
8356 * gdbserver/remote-utils.c (fromhex): Add return statement
8357 to quiet warning.
8358 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8359 constant.
8360 (input_interrupt): Add integer parameter to match prototype
8361 of a signal handler.
8362 (outreg): Use register_data ().
8363 (prepare_resume_reply): Use gdbserver_expedite_regs.
8364 * gdbserver/server.c (main): Dynamically allocate own_buf because
8365 PBUFSIZ is no longer constant. Use registers_to_string () and
8366 registers_from_string ().
8367 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8368 for error (), fatal (), and warning (). Update definition of
8369 PBUFSIZ to use regcache functionality. Add include guard.
8370 * gdbserver/utils.c (fatal): Add missing ``const''.
8371 (warning): New function.
8372
8373 * regformats/regdat.sh: Include "regcache.h" in generated files.
8374 Provide init_registers () function.
8375 * regformats/regdef.h: Add prototype for set_register_cache ().
8376 Add include guard.
8377
8378 * gdbserver/linux-arm-low.c: New file.
8379 * gdbserver/linux-i386-low.c: New file.
8380 * gdbserver/linux-ia64-low.c: New file.
8381 * gdbserver/linux-m68k-low.c: New file.
8382 * gdbserver/linux-mips-low.c: New file.
8383 * gdbserver/linux-ppc-low.c: New file.
8384 * gdbserver/linux-sh-low.c: New file.
8385
8386 * gdbserver/regcache.c: New file.
8387 * gdbserver/regcache.h: New file.
8388
8389 * gdbserver/low-linux.c: Removed obsolete file.
8390
8391 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8392
8393 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8394 * config/i386/linux.mt: Likewise.
8395 * config/ia64/linux.mt: Likewise.
8396 * config/m68k/linux.mh: Likewise.
8397 * config/powerpc/linux.mh: Likewise.
8398 * config/mips/linux.mt: Likewise.
8399
8400 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8401
8402 * config/i386/i386lynx.mh: Mark gdbserver variables
8403 as (currently) obsolete for this target.
8404 * config/i386/nbsd.mt: Likewise.
8405 * config/i386/nbsdelf.mt: Likewise.
8406 * config/m32r/m32r.mt: Likewise.
8407 * config/m68k/m68klynx.mh: Likewise.
8408 * config/m68k/nbsd.mt: Likewise.
8409 * config/m68k/sun3os4.mh: Likewise.
8410 * config/mips/vr5000.mt: Likewise.
8411 * config/ns32k/nbsd.mt: Likewise.
8412 * config/pa/hppabsd.mh: Likewise.
8413 * config/pa/hppaosf.mh: Likewise.
8414 * config/powerpc/nbsd.mt: Likewise.
8415 * config/rs6000/rs6000lynx.mh: Likewise.
8416 * config/s390/s390.mt: Likewise.
8417 * config/s390/s390x.mt: Likewise.
8418 * config/sparc/sparclynx.mh: Likewise.
8419 * config/sparc/sun4os4.mh: Likewise.
8420 * config/i386/x86-64linux.mt: Likewise.
8421 * config/sparc/linux.mh: Likewise.
8422
8423 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * configure.tgt: Configure gdbserver only for known working
8426 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8427 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8428 SUBDIRS if it is configured. Update comment for ${nativefile}.
8429 * configure: Regenerated.
8430
8431 2002-02-13 Michael Snyder <msnyder@redhat.com>
8432
8433 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8434
8435 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8436 (default_gcore_mach): Just return 0, work around a problem in bfd.
8437 (default_gcore_target): OK to return NULL if exec_bfd is null.
8438 (make_mem_sec): Use a cast, avoid a warning.
8439
8440 * procfs.c (find_memory_regions_callback): Use a cast instead of
8441 calling host_pointer_to_address (which complains if
8442 sizeof (host pointer) != sizeof (target pointer)).
8443 (procfs_make_note_section): Avoid overflow in psargs string.
8444
8445 * procfs.c (procfs_make_note_section): Make the default
8446 implementation return an error.
8447
8448 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8449
8450 * procfs.c (procfs_make_note_section): Provide a default definition
8451 (for alpha-dec-osf4.0f). Fix typos.
8452
8453 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8454
8455 * linux-proc.c: Add include of regcache.h.
8456 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8457
8458 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8459
8460 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8461 * memattr.c (create_mem_region): Disallow useless empty region.
8462 Regions are half-open intervals, so allow [A..B) [B..C) as
8463 non-overlapping.
8464
8465 2002-02-13 Michael Chastain <mec@shout.net>
8466
8467 * defs.h: Kill CONST_PTR.
8468 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8469 * c-lang.c (c_builtin_types): Likewise.
8470 * ch-lang.c (ch_builtin_types): Likewise.
8471 * f-lang.c (f_builtin_types): Likewise.
8472 * language.c (unknown_builtin_types): Likewise.
8473 * m2-lang.c (m2_builtin_types): Likewise.
8474 * p-lang.c (pascal_builtin_types): Likewise.
8475 * scm-lang.c (c_builtin_types): Likewise.
8476
8477 2002-02-13 Keith Seitz <keiths@redhat.com>
8478
8479 * arm-tdep.h (arm_get_next_pc): Add declaration.
8480
8481 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8482
8483 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8484 with other related struct-returning functions.
8485 (arm_extract_struct_value_address): New function.
8486 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8487 initialize float_format, double_format and long_double_format as
8488 appropriate to the endianness of the target.
8489 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8490 (arm_use_struct_convention): Delete declaration.
8491 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8492
8493 2002-02-13 Keith Seitz <keiths@redhat.com>
8494
8495 * defs.h (core_addr_to_string_nz): New function.
8496
8497 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8498
8499 Apply missing bits of 2002-01-15 patch.
8500 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8501 (fill_fpregset): Use i387_fill_fsave.
8502
8503 2002-02-12 Keith Seitz <keiths@redhat.com>
8504
8505 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8506 (core_addr_to_string_nz): New function.
8507
8508 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8509
8510 * arm-linux-nat.c: Really include arm-tdep.h.
8511 * config/arm/tm-linux.h (struct type, struct value): Declare.
8512
8513 2002-02-11 Michael Snyder <msnyder@redhat.com>
8514
8515 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8516 (gcore section): Ifdef for Solaris and Unixware only.
8517 (procfs_do_thread_registers): Unixware needs one lwpstatus
8518 per thread (not one prstatus or pstatus).
8519 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8520 not over all gdb threads. For unixware, call elfcore_write_pstatus
8521 once before iterating over threads.
8522
8523 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8524
8525 * arm-tdep.h: New file.
8526 * arm-tdep.c: Include arm-tdep.h.
8527 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8528 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8529 (arm_print_float_info, arm_register_type, convert_to_extended)
8530 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8531 (arm_extract_return_value, arm_register_name): Make static.
8532 (arm_software_single_step): Similarly. Fix types in declaration.
8533 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8534 (arm_store_return_value, arm_store_struct_return): New functions.
8535 (arm_gdbarch_init): Register the above functions. Also register
8536 call_dummy_start_offset, sizeof_call_dummy_words,
8537 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8538 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8539 max_register_virtual_size, register_size. Set up
8540 prologue_cache.saved_regs here, rather than ...
8541 (_initialize_arm_tdep): ... here.
8542 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8543 declarations.
8544 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8545 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8546 (arm_print_float_info, arm_register_type, convert_to_extended)
8547 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8548 (arm_extract_return_value, arm_register_name): Delete declarations.
8549 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8550 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8551 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8552 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8553 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8554 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8555 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8556 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8557 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8558 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8559 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8560 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8561 interface.
8562 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8563 * remote-rdi.c remote-rdp.c: Likewise.
8564 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8565 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8566 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8567 definition.
8568
8569 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8570 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8571 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8572 from non-ARM_ prefixed definitions.
8573 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8574 all uses of above.
8575 * remote-rdi.c remote-rdp.c: Likewise.
8576 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8577
8578 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8579
8580 * arm-tdep.c (arm_frameless_function_invocation)
8581 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8582 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8583 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8584 (arm_pop_frame, arm_get_next_pc): Make static.
8585 (arm_gdbarch_init): Register above in gdbarch structure.
8586 (arm_read_fp): Renamed from arm_target_read_fp.
8587 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8588 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8589 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8590 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8591 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8592 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8593 (arm_pc_is_thumb_dummy): Delete declarations.
8594 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8595 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8596 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8597 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8598
8599 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8600
8601 * symtab.c (compare_search_syms): New function.
8602 (sort_search_symbols): New function.
8603 (search_symbols): Sort symbols after searching rather than
8604 before.
8605
8606 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8607
8608 * NEWS: Linux -> GNU/Linux.
8609
8610 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8611
8612 * gdbarch.sh: For for level one methods, disallow a definition
8613 when partially multi-arched. Add comments explaining rationale.
8614 * gdbarch.h: Re-generate.
8615
8616 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8617
8618 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8619 multi-arch partial.
8620
8621 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8622
8623 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8624 field. Use diff -u.
8625 * gdbarch.c: Re-generate.
8626
8627 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8628
8629 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8630 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8631 partial.
8632
8633 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8634
8635 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8636 multi-arch partial.
8637 (PUSH_ARGUMENTS): Switch to using predefault.
8638 * gdbarch.c: Regenerate.
8639
8640 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8641
8642 * valops.c (PUSH_ARGUMENTS): Delete definition.
8643 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8644 partial. Default to default_push_arguments.
8645 * gdbarch.h, gdbarch.c: Regenerate.
8646
8647 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8648
8649 * defs.h (throw_exception): Rename return_to_top_level. Update
8650 comments.
8651 * utils.c (error_stream, internal_verror, quit): Ditto.
8652 * top.c (throw_exception, catcher): Ditto.
8653 * sparclet-rom.c (sparclet_load): Ditto.
8654 * remote.c (interrupt_query, minitelnet): Ditto.
8655 * remote-sds.c (interrupt_query): Ditto.
8656 * remote-mips.c (mips_error, mips_kill): Ditto.
8657 * ocd.c (interrupt_query): Ditto.
8658 * monitor.c (monitor_interrupt_query): Ditto.
8659 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8660 * target.h: Update comment.
8661
8662 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8663
8664 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8665
8666 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8667 default_double_format.
8668 * gdbarch.h, gdbarch.c: Re-generate.
8669 * findvar.c (floatformat_unknown): Delete variable definition.
8670 * doublest.h (floatformat_unknown): Delete variable declaration.
8671
8672 2002-02-09 Jim Blandy <jimb@redhat.com>
8673
8674 * stabsread.c (read_type): Add code to parse Sun's syntax for
8675 prototyped function types.
8676
8677 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8678
8679 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8680 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8681
8682 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8683
8684 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8685 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8686 now _initialize_xcoffsolib gets called again and overrides the
8687 commands from solib.c in a native configuration.
8688
8689 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8690
8691 * doublest.c (store_typed_floating): Don't try to return a value.
8692 Fixes PR gdb/290.
8693
8694 2002-02-08 Jim Blandy <jimb@redhat.com>
8695
8696 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8697 is prototyped and has no arguments, print its argument list as
8698 `(void)'.
8699
8700 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8701
8702 * MAINTAINERS (write-after-approval): Add myself.
8703 (paper-trail): I've escaped!
8704
8705 2002-02-08 Christopher Faylor <cgf@redhat.com>
8706
8707 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8708 changes.
8709 (_initialize_check_for_gdb_ini): Ditto.
8710
8711 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8712
8713 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8714 xaprintf -> xasprintf.
8715
8716 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8717
8718 * win32-nat.c: Remove use of printf and sprintf functions.
8719
8720 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8721
8722 * arm-tdep.c (arm_frame_chain_valid): Make static.
8723 (arm_push_arguments): Likewise.
8724 (arm_gdbarch_init): New function.
8725 (_initialize_arm_tdep): Call it.
8726 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8727 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8728 (FRAME_CHAIN_VALID): Delete.
8729 (arm_frame_chain_valid): Delete declaration.
8730 (PUSH_ARGUMENTS): Delete.
8731 (arm_push_arguments): Delete declaration.
8732 (CALL_DUMMY_P): Delete.
8733
8734 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8735 Corinna Vinschen <vinschen@redhat.com>
8736
8737 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8738 on builtin float types.
8739
8740 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * utils.c: Include <curses.h> before "bfd.h".
8743 * tui/tui-hooks.c: Likewise.
8744 * tui/tui.c: Likewise.
8745 * tui/tuiCommand.c: Likewise.
8746 * tui/tuiData.c: Likewise.
8747 * tui/tuiDataWin.c: Likewise.
8748 * tui/tuiDisassem.c: Likewise.
8749 * tui/tuiGeneralWin.c: Likewise.
8750 * tui/tuiIO.c: Likewise.
8751 * tui/tuiLayout.c: Likewise.
8752 * tui/tuiRegs.c: Likewise.
8753 * tui/tuiSource.c: Likewise.
8754 * tui/tuiSourceWin.c: Likewise.
8755 * tui/tuiStack.c: Likewise.
8756 * tui/tuiWin.c: Likewise.
8757
8758 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8759
8760 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8761 to include space for pseudoregs as well. Update loops accordingly.
8762 (sh_fp_frame_init_saved_regs): Ditto.
8763 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8764
8765 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8766
8767 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8768 Add Richard Earnshaw to Arm maintainers.
8769
8770 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8771
8772 * defs.h (warning_begin): Delete declaration.
8773
8774 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8775 Delete macro.
8776
8777 2002-02-07 Michael Snyder <msnyder@redhat.com>
8778
8779 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8780 Logic bug, remove misplaced else.
8781
8782 2002-02-07 Klee Dienes <klee@apple.com>
8783
8784 * fork-inferior.c (fork_inferior): Add '!' to the list of
8785 characters that need to be quoted when building a string for the
8786 shell. Quote '!' specifically with a backslash, since CSH chokes
8787 when trying to evaluate "str!str".
8788
8789 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8790
8791 * rdi-share/host.h: Only provide a typedef for bool if it is not
8792 defined.
8793
8794 2002-02-04 Michael Snyder <msnyder@redhat.com>
8795
8796 * breakpoint.h (enum bptype): Add new overlay event bp type.
8797 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8798
8799 * breakpoint.c (create_internal_breakpoint): New function.
8800 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8801 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8802 (create_thread_event_breakpoint): Ditto.
8803 (create_solib_event_breakpoint): Ditto.
8804 (create_overlay_event_breakpoint): New function.
8805 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8806 (update_breakpoints_after_exec): Delete and re-initialize
8807 overlay event breakpoints after an exec. Add FIXME comment
8808 about longjmp breakpoint.
8809 (print_it_typical): Ignore overlay event breakpoints.
8810 (print_one_breakpoint): Ditto.
8811 (mention): Ditto.
8812 (bpstat_what): Do not stop for overlay event breakpoints.
8813 (delete_breakpoint): Don't delete overlay event breakpoints.
8814 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8815 (breakpoint_re_set): Re-create overlay event breakpoint.
8816
8817 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8818 (overlay_manual_command): Disable overlay breakpoints.
8819 (overlay_off_command): Disable overlay breakpoints.
8820
8821 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8822
8823 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8824 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8825 to here from config/tm-arm.h.
8826 (coff_sym_is_thumb): Make static.
8827 (arm_elf_make_msymbol_special): New function.
8828 (arm_coff_make_msymbol_special): New function.
8829 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8830 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8831 (coff_sym_is_thumb): Delete declaration.
8832 (arm_elf_make_msymbol_special): Declare.
8833 (arm_coff_make_msymbol_special): Declare.
8834 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8835 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8836
8837 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8838
8839 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8840
8841 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8842
8843 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8844 * gdbarch.c gdbarch.h: Regenerate.
8845 * arch-utils.c (default_print_float_info): New function.
8846 * arch-utils.h (default_print_float_info): Prototype it.
8847 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8848 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8849 (PRINT_FLOAT_INFO): Document it.
8850
8851 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8852 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8853 (PRINT_FLOAT_INFO): Define.
8854
8855 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8856
8857 * win32-nat.c (_initialize_check_for_gdb_ini):
8858 Add typecast to sprintf argument to suppress a warning.
8859
8860 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8861
8862 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8863 to allow easier handling of pass state.
8864 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8865 that gives exception name and address.
8866 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8867 and set last_sig value to ourstatus->value.sig. Some missing
8868 exceptions added.
8869 (child_continue): Correctly report continue_status.
8870 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8871 TARGET_SIGNAL_0 (new default value).
8872 (child_resume): consider sig argument passed to decide if
8873 the exception should be passed to debuggee or not.
8874
8875 2002-02-05 Michael Snyder <msnyder@redhat.com>
8876
8877 * regcache.c (fetch_register): Call target_fetch_register
8878 only if we don't call FETCH_PSEUDO_REGISTER.
8879 (store_register): Call target_store_register only if we
8880 don't call STORE_PSEUDO_REGISTER.
8881
8882 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8883
8884 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8885 ELF_MAKE_MSYMBOL_SPECIAL.
8886 * gdbarch.c, gdbarch.h: Regenerate.
8887 * arch-utils.c (default_make_msymbol_special): New function.
8888 * arch-utils.h (default_make_msymbol_special): Export.
8889 * elfread.c (elf_symtab_read): Compile use of
8890 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8891 multiarched.
8892 * coffread.c (coff_symtab_read): Ditto, for
8893 COFF_MAKE_MSYMBOL_SPECIAL.
8894
8895 2002-02-05 Jim Blandy <jimb@redhat.com>
8896
8897 * solib-svr4.c (svr4_truncate_ptr): New function.
8898 (svr4_relocate_section_addresses): Do the address arithmetic with
8899 the appropriate truncation for target addresses, even when
8900 CORE_ADDR is larger than a target address.
8901
8902 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8905 to (int *).
8906
8907 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8910 code.
8911
8912 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8913
8914 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8915
8916 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8917
8918 * gdbserver/linux-low.c: Remove unused include files.
8919
8920 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8923 (read_inferior_memory): Use it.
8924 (write_inferior_memory): Likewise.
8925
8926 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8927
8928 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8929 grubbing through sys_errlist.
8930
8931 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8934
8935 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8936 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8937
8938 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8939
8940 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8941 (do_sfunc, set_cmd_sfunc): New functions.
8942
8943 * command.h (struct cmd_list_element): Add field func.
8944 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8945 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8946 * cli/cli-decode.h: Ditto.
8947
8948 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8949 (help_all, help_cmd_list): Ditto.
8950 (find_cmd, complete_on_cmdlist): Ditto.
8951 * top.c (execute_command): Ditto.
8952
8953 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8954 function.sfunc.
8955
8956 * infcmd.c (notice_args_read): Fix function signature.
8957
8958 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8959 * cli/cli-decode.c (add_set_cmd): Ditto.
8960 * utils.c (initialize_utils): Ditto.
8961 * maint.c (_initialize_maint_cmds): Ditto.
8962 * infrun.c (_initialize_infrun): Ditto.
8963 * demangle.c (_initialize_demangler): Ditto.
8964 * remote.c (add_packet_config_cmd): Ditto.
8965 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8966 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8967 * proc-api.c (_initialize_proc_api): Ditto.
8968 * kod.c (_initialize_kod): Ditto.
8969 * valprint.c (_initialize_valprint): Ditto.
8970 * top.c (init_main): Ditto.
8971 * infcmd.c (_initialize_infcmd): Ditto.
8972 * corefile.c (_initialize_core): Ditto.
8973 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8974 * arch-utils.c (initialize_current_architecture): Ditto.
8975 (_initialize_gdbarch_utils): Ditto.
8976 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8977
8978 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8979 * wince.c (_initialize_inftarg): Ditto.
8980 * symfile.c (_initialize_symfile): Ditto.
8981 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8982 * language.c (_initialize_language): Ditto.
8983 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8984
8985 2002-02-04 Michael Snyder <msnyder@redhat.com>
8986
8987 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8988
8989 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8990
8991 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8992 Add rules for building the register data files.
8993
8994 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8995
8996 * regformats/regdat.sh: Add braces to the definition of
8997 expedite_regs_${arch}.
8998
8999 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9000
9001 * regformats/regdef.h (struct reg): Add comment describing the
9002 requirements for offset and size fields.
9003
9004 2002-02-04 Andreas Schwab <schwab@suse.de>
9005
9006 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9007 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9008
9009 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9010
9011 * gdbarch.sh (copyright): Update years in generated header.
9012 (SMASH_TEXT_ADDRESS): Add rule.
9013 * gdbarch.h, gdbarch.c: Re-generate.
9014 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9015 * dbxread.c: Likewise.
9016 * dwarfread.c: Likewise.
9017 * elfread.c: Likewise.
9018 * somread.c: Likewise.
9019
9020 * arm-tdep.c (arm_smash_text_address): New function.
9021 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9022
9023 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9024
9025 Add support for hardware watchpoints on win32 native.
9026 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9027 CONTEXT_DEBUG_REGISTERS.
9028 (dr variable): New variable. Static array containing a local copy
9029 of debug registers.
9030 (debug_registers_changed): New variable. Reflects when debug registers
9031 are changed and need to be written to inferior.
9032 (debug_registers_used): New variable. Reflects when any debug register
9033 was set, used when new threads are created.
9034 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9035 i386-nat code.
9036 (thread_rec): Set dr array if id is the thread of current_event .
9037 (child_continue, child_resume): Change the debug registers for all
9038 threads if debug_registers_changed.
9039 (child_add_thread): Change the debug registers if debug_registers_used.
9040 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9041 Link nm.h to new nm-cygwin.h file.
9042 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9043 of hardware registers.
9044
9045 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9046
9047 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9048 Restore behavour broken by 2002-01-20 Andrew Cagney
9049 <ac131313@redhat.com> IEEE_FLOAT removal.
9050
9051 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * c-valprint.c (c_val_print): Pass a proper valaddr to
9054 cp_print_class_method.
9055 * valops.c (search_struct_method): If there is only one method
9056 and args is NULL, return that method.
9057
9058 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9061 accessing tag_name directly.
9062
9063 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9064
9065 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9066 of accessing tag_name directly.
9067
9068 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9069
9070 PR gdb/280
9071 * gdbtypes.c (replace_type): New function.
9072 * gdbtypes.h (replace_type): Add prototype.
9073 * stabsread.c (read_type): Use replace_type.
9074
9075 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9076
9077 * Makefile.in (memattr.o): Add missing dependencies rule.
9078
9079 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9080
9081 * breakpoint.c (break_at_finish_command): Really export.
9082 (break_at_finish_at_depth_command): Ditto.
9083 (tbreak_at_finish_command): Ditto.
9084 * hppa-tdep.c: Include completer.h.
9085 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9086 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9087
9088 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9089
9090 * utils.c (do_write): New function.
9091 (error_stream): Rewrite combining the code from error_begin and
9092 verror.
9093 (verror): Rewrite using error_stream.
9094 (error_begin): Delete function.
9095
9096 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9097
9098 * utils.c (error_begin): Make static.
9099 * defs.h (error_begin): Delete declaration.
9100
9101 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9102 (decode_line_1): Use cplusplus_error instead of error_begin,
9103 cplusplus_hint and return_to_top_level.
9104 * coffread.c (coff_symfile_read): Use error instead of error_begin
9105 and return_to_top_level.
9106 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9107
9108 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9109
9110 * language.h (type_error, range_error): Make string parameter
9111 constant.
9112 * language.c (warning_pre_print): Delete extern declaration.
9113 * dwarfread.c (warning_pre_print): Ditto.
9114 * language.c (type_error, range_error): Rewrite to use verror and
9115 vwarning instead of warning_begin.
9116
9117 2002-02-01 Michael Snyder <msnyder@redhat.com>
9118
9119 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9120 (set_ignore_count): Move misplaced comment back where it belongs.
9121
9122 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9123
9124 * command.h (NO_FUNCTION): Delete macro.
9125 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9126 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9127 * tracepoint.c (_initialize_tracepoint): Ditto.
9128 * cli/cli-decode.c (add_set_cmd): Ditto.
9129 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9130
9131 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9132
9133 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9134 Update ``this'' pointer when calling virtual functions.
9135
9136 2002-02-01 Michael Snyder <msnyder@redhat.com>
9137
9138 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9139 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9140
9141 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * regformats/reg-arm.dat: New file.
9144 * regformats/reg-i386.dat: New file.
9145 * regformats/reg-ia64.dat: New file.
9146 * regformats/reg-m68k.dat: New file.
9147 * regformats/reg-mips.dat: New file.
9148 * regformats/reg-ppc.dat: New file.
9149 * regformats/reg-sh.dat: New file.
9150 * regformats/regdef.h: New file.
9151 * regformats/regdat.sh: New file.
9152
9153 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9154
9155 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9156 (arm_frame_args_address, arm_frame_locals_address): New functions.
9157 (arm_frame_num_args): New function.
9158 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9159 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9160 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9161
9162 2002-01-31 Michael Snyder <msnyder@redhat.com>
9163
9164 * breakpoint.c (break_at_finish_command): Export.
9165 (break_at_finish_at_depth_command): Export.
9166 (tbreak_at_finish_command): Export.
9167 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9168 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9169 "tbreak" commands, which are HPPA specific.
9170
9171 * printcmd.c (disassemble_command): Remove an ancient
9172 artifact of an old merge.
9173
9174 * symfile.h (enum overlay_debugging_state):
9175 Define enum constant values for overlay mode.
9176 * symfile.c (overlay_debugging): Use enums instead of literals.
9177 (overlay_is_mapped, overlay_auto_command,
9178 overlay_manual_command): Ditto.
9179
9180 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9181 breakpoint_here_p, breakpoint_inserted_here_p,
9182 breakpoint_thread_match, bpstat_stop_status,
9183 describe_other_breakpoints, check_duplicates, clear_command):
9184 Coding standard fixes.
9185
9186 * target.c (target_xfer_memory): Add spaces, coding standard.
9187 (do_xfer_memory): Add missing line to trust-readonly
9188 code: check bfd SEC_READONLY flag for section.
9189
9190 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9191
9192 * PROBLEMS: Fix typo, 5.1->5.1.1.
9193
9194 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9195
9196 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9197 data symbols, since we search based on textlow and texthigh.
9198 (find_pc_sect_symtab): Likewise.
9199
9200 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9201
9202 * defs.h (vwarning): Declare.
9203 * utils.c (vwarning): New function.
9204 (warning): Call vwarning.
9205 (warning_begin): Delete function.
9206
9207 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9208 the warning message.
9209 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9210 warning_begin.
9211
9212 2002-01-30 Michael Snyder <msnyder@redhat.com>
9213
9214 * NEWS: Mention "set trust-readonly-sections" command.
9215 Mention generate-core-file command.
9216
9217 2002-01-15 Michael Snyder <msnyder@redhat.com>
9218
9219 * target.c: New command, "set trust-readonly-sections on".
9220 (do_xfer_memory): Honor the suggestion to trust readonly sections
9221 by reading them from the object file instead of from the target.
9222 (initialize_targets): Register command "set trust-readonly-sections".
9223
9224 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9225
9226 * parse.c (target_map_name_to_register): Simplify, search regs and
9227 pseudo-regs using a single loop.
9228
9229 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9230
9231 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9232
9233 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9234
9235 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9236 * config/i386/i386v42mp.mh: Add i387-nat.o .
9237 * i386v4-nat.c: Include i387-nat.h.
9238 (supply_fpregset): Use i387_supply_fsave.
9239 (fill_fpregset): Use i387_fill_fsave.
9240
9241 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9242
9243 * arm-tdep.c (arm_call_dummy_words): Define.
9244 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9245 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9246 (CALL_DUMMY_WORDS): Define.
9247 (arm_call_dummy_words): Declare.
9248 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9249 (arm_linux_call_dummy_words): Declare.
9250
9251 2002-01-30 Andreas Schwab <schwab@suse.de>
9252
9253 * m68klinux-nat.c: Fix last change to use regcache_collect
9254 instead of referencing registers[] directly.
9255
9256 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9257
9258 * parse.c (target_map_name_to_register): Delete code wrapped in
9259 #ifdef REGISTER_NAME_ALIAS_HOOK.
9260
9261 2002-01-28 Michael Snyder <msnyder@redhat.com>
9262
9263 * regcache.c (legacy_read_register_gen): Need to be able to
9264 read pseudo-register as well as real register.
9265 (legacy_write_register_gen): Ditto.
9266
9267 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9268
9269 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9270 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9271 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9272 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9273 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9274 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9275 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9276 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9277 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9278 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9279 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9280 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9281 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9282 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9283 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9284 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9285 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9286 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9287 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9288 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9289
9290 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9291
9292 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9293 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9294 (initialize_current_architecture): Update target_byte_order using
9295 information from BFD.
9296 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9297 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9298
9299 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9300
9301 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9302 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9303
9304 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9305 #ifdef INVALID_FLOAT.
9306 * infcmd.c (do_registers_info): Ditto.
9307 * values.c (unpack_double): Ditto. Add comment.
9308
9309 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9310 already commented out.
9311
9312 2002-01-26 Andreas Schwab <schwab@suse.de>
9313
9314 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9315 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9316 registers and add support for PTRACE_GETREGS.
9317
9318 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9319
9320 GDB 5.1.1 released from 5.1 branch.
9321 * NEWS: Add 5.1.1 news.
9322 * README: Sync with 5.1 branch.
9323
9324 2002-01-23 Fred Fish <fnf@redhat.com>
9325
9326 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9327 stabstring on initial malloc. Reallocing will copy it for us,
9328 if necessary.
9329
9330 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9331
9332 * Makefile.in (hpread_h): Delete.
9333 (HFILES_NO_SRCDIR): Remove hpread.h.
9334 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9335 (hpread.o): Update dependencies.
9336 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9337
9338 * hp-psymtab-read.c: Remove file.
9339 * hp-symtab-read.c: Remove file.
9340 * hpread.h: Remove file.
9341
9342 * hpread.c: Merge all contents of hp-psymtab-read.c,
9343 hp-symtab-read.c and hpread.h into this file, as it was prior to
9344 January 1999.
9345
9346 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9347 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9348 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9349 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9350
9351 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9352
9353 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9354 fill_gregset): Call gdbarch_tdep() just once, assign result to
9355 variable and use that, instead of calling the function several
9356 times.
9357
9358 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9359
9360 * configure.host: Accept sparcv9 as alias for sparc64.
9361 * configure.tgt: Likewise.
9362
9363 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9364
9365 * solib-aix5.c (build_so_list_from_mapfile)
9366 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9367 arguments is not reversed.
9368 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9369 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9370
9371 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9372
9373 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9374 modified version of obsolete sh_fetch_pseudo_register.
9375 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9376 (sh4_register_read): New function.
9377 (sh_pseudo_register_write): New function. Renamed and modified
9378 version of obsolete sh_store_pseudo_register.
9379 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9380 (sh4_register_write): New function.
9381 (sh_gdbarch_init): Remove setting of gdbarch function
9382 fetch_pseudo_register and store_pseudo_register. Remove setting of
9383 register_convert_to_raw, register_convert_to_virtual,
9384 register_convertible.
9385 (sh_sh4_register_convertible): Delete. No longer needed. All is
9386 taken care by architecture specific functions
9387 register_read/register_write.
9388 (sh_sh4_register_convert_to_virtual): Make static.
9389 (sh_sh4_register_convert_to_raw): Ditto.
9390
9391 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9392
9393 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9394 (floatformat_is_nan, floatformat_mantissa): Ditto.
9395
9396 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9397 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9398 builtin_type_ieee_double_little,
9399 builtin_type_ieee_double_littlebyte_bigword,
9400 builtin_type_m68881_ext, builtin_type_i960_ext,
9401 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9402 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9403 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9404 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9405
9406 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9407
9408 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9409 parameter. Set frameless flag if it exists and depended of
9410 whether the scanned function is frameless or not.
9411 (xstormy16_skip_prologue): If function is frameless, return
9412 result of xstormy16_scan_prologue().
9413 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9414 call.
9415
9416 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9417
9418 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9419 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9420 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9421 sh_sh4_register_byte, sh_sh4_register_raw_size,
9422 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9423 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9424 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9425 sh_store_pseudo_register, sh_do_pseudo_register): Call
9426 gdbarch_tdep() just once, assign result to variable and use that,
9427 instead of calling the function several times.
9428
9429 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9430
9431 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9432 macros instead of LAST_FPU_CTRL_REGNUM.
9433 (store_register): Likewise.
9434
9435 2002-01-21 Jim Blandy <jimb@redhat.com>
9436
9437 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9438 is up-to-date before running the program, not just when a program
9439 exits.
9440
9441 2002-01-21 Fred Fish <fnf@redhat.com>
9442
9443 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9444 when we have found all instructions we are looking for.
9445
9446 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9447
9448 * arm-tdep.c (arm_register_name): New function.
9449 (arm_registers_names): Make static.
9450 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9451 (arm_register_name): Declare.
9452 (REGISTER_NAME): Use it.
9453
9454 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9455 Kevin Buettner <kevinb@redhat.com>
9456
9457 Convert arm targets to new FRAME interface.
9458 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9459 (arm_frame_find_save_regs): Delete.
9460 (arm_frame_init_saved_regs): New.
9461 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9462 Allocate extra_info as required. Convert all uses of fsr.regs
9463 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9464 to use extra_info.
9465 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9466 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9467 (check_prologue_cache, save_prologue_cache): Likewise.
9468 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9469 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9470 (FRAME_FIND_SAVED_REGS): Delete.
9471 (arm_frame_find_saved_regs): Delete prototype.
9472 (arm_frame_init_saved_regs): New prototype.
9473 (FRAME_INIT_SAVED_REGS): Define.
9474
9475 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9476
9477 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9478
9479 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9480
9481 From Jeff Law <law@redhat.com>:
9482 * infttrace.c: Include <sys/pstat.h>.
9483 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9484 exec file if the ttrace equivalent fails.
9485
9486 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9487
9488 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9489 (closeLogFile): Ditto.
9490
9491 2002-01-20 Michael Chastain <mec@shout.net>
9492
9493 * top.c (print_gdb_version): Bump copyright year to 2002.
9494
9495 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9496
9497 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9498 Zannoni and Eli Zaretskii.
9499
9500 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9501
9502 * buildsym.c: Update copyright years.
9503 * c-typeprint.c: Likewise.
9504 * dwarf2read.c: Likewise.
9505 * f-typeprint.c: Likewise.
9506 * gdbtypes.c: Likewise.
9507 * gdbtypes.h: Likewise.
9508 * hp-symtab-read.c: Likewise.
9509 * hpread.c: Likewise.
9510 * mdebugread.c: Likewise.
9511 * p-typeprint.c: Likewise.
9512
9513 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9514
9515 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9516 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9517 byte-order selectable.
9518 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9519 * arch-utils.c: Ditto.
9520 (set_endian): Ditto.
9521 (set_endian_from_file): Ditto.
9522 * gdbserver/low-sim.c (create_inferior): Ditto.
9523 * gdbarch.sh: Ditto.
9524 * gdbarch.h: Re-generate.
9525 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9526 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9527 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9528 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9529 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9530 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9531 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9532 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9533 macro definition.
9534 * config/mips/tm-wince.h: Remove #undef of macro
9535 TARGET_BYTE_ORDER_SELECTABLE.
9536 * config/sh/tm-wince.h: Ditto.
9537
9538 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9539
9540 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9541 member function fields. Add accessor macro
9542 TYPE_FN_FIELD_ARTIFICIAL.
9543 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9544 * c-typeprint.c (c_type_print_base): Skip artificial member
9545 functions.
9546
9547 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * f-typeprint.c: Delete unused function f_type_print_args.
9550 * p-typeprint.c: Delete unused function pascal_type_print_args.
9551
9552 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9553
9554 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9555 comment. Add ``artificial'' to ``union field_location''.
9556
9557 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9558
9559 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9560 * mdebugread.c (parse_symbol): Likewise.
9561 * stabsread.c (define_symbol): Likewise.
9562 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9563 initializing TYPE_FIELD_BITPOS to n (obsolete).
9564 (hpread_doc_function_type): Likewise.
9565 * hpread.c (hpread_function_type): Likewise.
9566
9567 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9568
9569 * configure.in (host_makefile_frag): Only require a host makefile
9570 fragment when a native build.
9571 * configure: Re-generate.
9572
9573 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9574
9575 * doublest.h (floatformat_from_type): Declare.
9576 * doublest.c (floatformat_from_type): New function.
9577 (convert_typed_floating): Use.
9578
9579 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9580 call to function floatformat_from_type.
9581
9582 * gdbarch.sh (IEEE_FLOAT): Delete.
9583 * gdbarch.h, gdbarch.c: Re-generate.
9584 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9585 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9586 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9587 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9588 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9589 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9590 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9591 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9592 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9593 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9594 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9595 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9596
9597 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9598 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9600 * sh-tdep.c (sh_gdbarch_init): Ditto.
9601 * mips-tdep.c (mips_gdbarch_init): Ditto.
9602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9603 * cris-tdep.c (cris_gdbarch_init): Ditto.
9604
9605 2002-01-20 Jiri Smid <smid@suse.cz>
9606
9607 * configure.host, configure.tgt: Support x86-64.
9608 * NEWS: Note new target x86-64.
9609
9610 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9611 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9612 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9613 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9614 x86-64-linux-nat.o): Fix dependencies.
9615
9616 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9617
9618 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9619 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9620 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9621 * config/sparc/xm-sun4os4.h: Delete file.
9622 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9623
9624 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9625
9626 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9627 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9628 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9629 * config/i386/i386lynx.mh (XM_FILE): Delete.
9630 * config/rs6000/xm-rs6000ly.h: Delete file.
9631 * config/sparc/xm-sparclynx.h: Delete file.
9632 * config/m68k/xm-m68klynx.h: Delete file.
9633 * config/i386/xm-i386lynx.h: Delete file.
9634 * config/xm-lynx.h: Delete file.
9635 * config/djgpp/fnchange.lst: Update.
9636
9637 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9638
9639 * alpha-tdep.c (alpha_register_byte): New function.
9640 (alpha_register_raw_size): Ditto.
9641 (alpha_register_virtual_size): Ditto.
9642 (alpha_skip_prologue_internal): Renamed from
9643 alpha_skip_prologue.
9644 (alpha_skip_prologue): New version that calls
9645 alpha_skip_prologue_internal.
9646 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9647 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9648 second argument from alpha_skip_prologue.
9649 (REGISTER_BYTE): Use alpha_register_byte.
9650 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9651 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9652 (FRAMELESS_FUNCTION_INVOCATION): Use
9653 generic_frameless_function_invocation_not.
9654 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9655 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9656
9657 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9658
9659 * config/mips/xm-news-mips.h: Delete file.
9660 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9661
9662 * config/m88k/xm-m88k.h: Delete file.
9663 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9664 * config/m88k/xm-delta88v4.h: Ditto.
9665 * config/m88k/xm-delta88.h: Ditto.
9666
9667 * config/alpha/xm-fbsd.h: Delete file.
9668 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9669
9670 * config/sparc/xm-sparc.h: Delete file.
9671 * Makefile.in (xm-sun4os4.h): Delete dependency.
9672 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9673 * config/sparc/xm-sun4os4.h: Ditto.
9674 * config/sparc/xm-linux.h: Ditto.
9675
9676 * config/i386/xm-windows.h: Delete file.
9677
9678 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9679
9680 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9681 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9682
9683 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9684
9685 * alpha-tdep.c (alpha_call_dummy_words): New.
9686 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9687 (CALL_DUMMY_P): Define.
9688 (CALL_DUMMY_WORDS): Define.
9689 (SIZEOF_CALL_DUMMY_WORDS): Define.
9690
9691 2002-01-19 Per Bothner <per@bothner.com>
9692
9693 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9694 isn't NULL, which can happen with some gcj-3.x-produced code.
9695
9696 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9697
9698 * alpha-tdep.c (alpha_register_virtual_type): New function.
9699 (alpha_init_frame_pc_first): Ditto.
9700 (alpha_fix_call_dummy): Ditto.
9701 (alpha_store_struct_return): Ditto.
9702 (alpha_extract_struct_value_address): Ditto.
9703 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9704 alpha_register_virtual_type.
9705 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9706 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9707 alpha_extract_struct_value_address.
9708 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9709 (INIT_FRAME_PC): Use init_frame_pc_noop.
9710 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9711
9712 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9713
9714 * i386gnu-nat.c: Include "i386-tdep.h".
9715 (fetch_fpregs): Simplify code dealing with uninitialized floating
9716 point states such that it doesn't require FP7_REGNUM.
9717
9718 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9719
9720 * alpha-tdep.c (frame_extra_info): New.
9721 (alpha_find_saved_regs): Make static. Use
9722 frame->extra_info.
9723 (alpha_frame_init_saved_regs): New function.
9724 (alpha_frame_saved_pc): Use frame->extra_info.
9725 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9726 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9727 (init_extra_frame_info): Rename to...
9728 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9729 (alpha_print_extra_frame_info): New function.
9730 (alpha_frame_locals_address): Ditto.
9731 (alpha_frame_args_address): Ditto.
9732 (alpha_pop_frame): Use frame->extra_info.
9733 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9734 alpha_frame_args_address.
9735 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9736 (alpha_find_saved_regs): Remove prototype.
9737 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9738 (EXTRA_FRAME_INFO): Remove.
9739 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9740 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9741
9742 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9743
9744 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9745 (alpha_cannot_fetch_register): Ditto.
9746 (alpha_cannot_store_register): Ditto.
9747 (alpha_register_convertible): Ditto.
9748 (alpha_use_struct_convention): Ditto.
9749 * config/alpha/tm-alpha.h: Update copyright years.
9750 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9751 (INNER_THAN): Use core_addr_lessthan.
9752 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9753 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9754 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9755 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9756 (FRAME_CHAIN): Remove unnecessary cast.
9757
9758 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9759
9760 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9761 obsolete.
9762
9763 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9764
9765 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9766 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9767 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9768 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9769 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9770 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9771 * x86-64-linux-nat.c: Ditto.
9772
9773 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * alpha-tdep.c (alpha_register_name): New function.
9776 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9777 (REGISTER_NAME): Define.
9778
9779 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9780
9781 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9782
9783 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9784
9785 * alpha-tdep.c: Update copyright years.
9786 (alpha_next_pc): New function.
9787 (alpha_software_single_step): Ditto.
9788 * config/alpha/tm-alpha.h: Add prototype for
9789 alpha_software_single_step.
9790
9791 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9792
9793 * alphabsd-nat.c: Update copyright years.
9794 (fill_gregset): Use regcache_collect.
9795 (fill_fpregset): Likewise.
9796 (fetch_inferior_registers): Only fetch integer registers
9797 if requested to do so.
9798 (store_inferior_registers): Only store integer registers
9799 if requested to do so.
9800
9801 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9802
9803 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9804 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9805 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9806 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9807 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9808 * config/arm/linux.mh (XDEPFILES): Delete.
9809 * config/arm/nbsd.mh (XDEPFILES): Delete.
9810 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9811 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9812 * config/i386/i386m3.mh (XDEPFILES): Delete.
9813 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9814 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9815 * config/i386/fbsd.mh (XDEPFILES): Delete.
9816 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9817 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9818 * config/i386/i386v4.mh (XDEPFILES): Delete.
9819 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9820 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9821 * config/i386/i386aix.mh (XDEPFILES): Delete.
9822 * config/i386/go32.mh (XDEPFILES): Delete.
9823 * config/i386/cygwin.mh (XDEPFILES): Delete.
9824 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9825 * config/i386/i386mach.mh (XDEPFILES): Delete.
9826 * config/i386/i386v32.mh (XDEPFILES): Delete.
9827 * config/i386/linux.mh (XDEPFILES): Delete.
9828 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9829 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9830 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9831 * config/i386/i386sco.mh (XDEPFILES): Delete.
9832 * config/i386/i386v.mh (XDEPFILES): Delete.
9833 * config/i386/nbsd.mh (XDEPFILES): Delete.
9834 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9835 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9836 * config/i386/symmetry.mh (XDEPFILES): Delete.
9837 * config/i386/obsd.mh (XDEPFILES): Delete.
9838 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9839 * config/ia64/linux.mh (XDEPFILES): Delete.
9840 * config/ia64/aix.mh (XDEPFILES): Delete.
9841 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9842 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9843 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9844 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9845 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9846 * config/m68k/linux.mh (XDEPFILES): Delete.
9847 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9848 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9849 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9850 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9851 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9852 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9853 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9854 * config/m88k/delta88.mh (XDEPFILES): Delete.
9855 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9856 * config/m88k/m88k.mh (XDEPFILES): Delete.
9857 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9858 * config/mips/linux.mh (XDEPFILES): Delete.
9859 * config/mips/irix6.mh (XDEPFILES): Delete.
9860 * config/mips/irix5.mh (XDEPFILES): Delete.
9861 * config/mips/irix4.mh (XDEPFILES): Delete.
9862 * config/mips/irix3.mh (XDEPFILES): Delete.
9863 * config/mips/decstation.mh (XDEPFILES): Delete.
9864 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9865 (NATDEPFILES): Move core-aout.o to here.
9866 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9867 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9868 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9869 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9870 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9871 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9872 * config/pa/hpux11.mh (XDEPFILES): Delete.
9873 * config/powerpc/aix.mh (XDEPFILES): Delete.
9874 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9875 * config/powerpc/linux.mh (XDEPFILES): Delete.
9876 * config/romp/rtbsd.mh: Rename XDEPFILES.
9877 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9878 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9879 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9880 * config/s390/s390.mh (XDEPFILES): Delete.
9881 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9882 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9883 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9884 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9885 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9886 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9887 * config/sparc/linux.mh (XDEPFILES): Delete.
9888 * config/vax/vaxult.mh (XDEPFILES): Delete.
9889 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9890 * Makefile.in (DEPFILES): Remove XDEPFILES.
9891
9892 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9893
9894 * utils.c (internal_verror): Fix comments, default is yes not no.
9895 Update queries to match. Default to quit and dump core.
9896
9897 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9898
9899 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9900 copyright.
9901 * defs.h, event-top.c, gdbcmd.h: Ditto.
9902 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9903 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9904 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9905 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9906 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9907 * mi/mi-main.c:Ditto.
9908
9909 * stack.c, symfile.c: Update copyright.
9910
9911 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9914 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9915 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9916 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9917
9918 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9919
9920 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9921 * gdbserver/low-lynx.c (myattach): Likewise.
9922 * gdbserver/low-nbsd.c (myattach): Likewise.
9923 * gdbserver/low-sim.c (myattach): Likewise.
9924 * gdbserver/low-sparc.c (myattach): Likewise.
9925 * gdbserver/low-sun3.c (myattach): Likewise.
9926
9927 * gdbserver/low-linux.c (myattach): New function.
9928
9929 * gdbserver/server.c (attach_inferior): New function.
9930 (main): Handle "--attach".
9931
9932 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9933
9934 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9935 maintainer.
9936
9937 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * c-typeprint.c (is_type_conversion_operator): Add additional
9940 check for non-conversion operators.
9941
9942 2002-01-15 Michael Snyder <msnyder@redhat.com>
9943
9944 * linux-proc.c: Add "info proc" command, a la procfs.c.
9945 (read_mapping): New function, abstract and re-use code.
9946 (linux_find_memory_regions): Use new func read_mapping.
9947 (linux_info_proc_cmd): New function, implement "info proc".
9948 (_initialize_linux_proc): Add new command "info proc".
9949
9950 2002-01-15 Michael Snyder <msnyder@redhat.com>
9951
9952 * symfile.c (generic_load): Use bfd_map_over_sections method
9953 instead of manipulating bfd structure members directly.
9954 (add_section_size_callback): New function, bfd sections callback
9955 used by generic_load.
9956 (load_sections_callback): New function, bfd sections callback
9957 used by generic_load.
9958
9959 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9960
9961 [Based on work by Jim Blandy]
9962 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9963 (builtin_type_vec128): Export.
9964 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9965 types.
9966 (builtin_type_vec128): New builtin type for 128 bit vector
9967 registers.
9968 (build_gdbtypes): Initialize builtin_type_v16qi and
9969 builtin_type_v8hi. Create the vec128 register builtin type
9970 structure.
9971 (build_builtin_type_vec128): New function.
9972 (_initialize_gdbtypes): Register builtin_type_v16qi and
9973 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9974 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9975 AltiVec register to new builtin type.
9976
9977 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9978
9979 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9980 to make_cv_type.
9981
9982 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9983
9984 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9985 CLEAN_UP_REGISTER_VALUE.
9986 * regcache.c (supply_register): Update only call.
9987
9988 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9989
9990 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9991 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9992 a29k-*-vxworks* targets as obsolete.
9993
9994 2002-01-14 Michael Snyder <msnyder@redhat.com>
9995
9996 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9997 until we can resolve portability issues.
9998 * gregset.h: Remove references to fpxregs.
9999 * gcore.c (gcore_command): Initialize note_sec to NULL.
10000
10001 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10002
10003 * signals.c (target_signal_to_name): Rewrite. Only use
10004 signals[].name when in bounds and non-NULL.
10005
10006 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10007
10008 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10009 * signals.c (target_signal_to_name): Verify that SIG is within the
10010 bounds of the signals array.
10011
10012 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10013
10014 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10015
10016 2002-01-13 Keith Seitz <keiths@redhat.com>
10017
10018 * stack.c (print_frame_info_base): Print the frame's pc
10019 only if when print_frame_info_listing_hook is not defined.
10020
10021 2002-01-13 Keith Seitz <keiths@redhat.com>
10022
10023 * varobj.c (varobj_set_value): Make sure that there were no
10024 errors evaluating the object before attempting to set its
10025 value.
10026 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10027 so this offset adjustment is no longer necessary.
10028 (create_child): Don't set the error flag if the child is
10029 a CPLUS_FAKE_CHILD.
10030 (value_of_child): If value_fetch_lazy fails, return NULL
10031 so that callers will be notified that an error occurred.
10032 (c_value_of_variable): Delay check of variable's validity
10033 until later. We actually want all structs and unions to have
10034 the value "{...}".
10035 Do not return "???" for variables which could not be evaluated.
10036 This error condition must be returned to the caller so that it
10037 can get the error condition from gdb.
10038 (cplus_name_of_child): Adjust index for vptr before figuring
10039 out the name of the child.
10040 (cplus_value_of_child): If a child's (real) parent is not valid,
10041 don't even bother trying to give a value for it. Just return
10042 an error. Change all instances in this function.
10043 (cplus_type_of_child): If our parent is one of the "fake"
10044 parents, we need to get at the type of the real parent, and
10045 derive the child's true type using this information.
10046
10047 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10048
10049 From 2002-01-09 John Marshall <johnm@falch.net>:
10050 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10051 sources.redhat.com, and tweak some related URLs which had
10052 suffered from linkrot.
10053
10054 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10055
10056 From Jeff law:
10057 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10058 structures passed in registers.
10059
10060 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10061
10062 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10063 white space which prevented compilation. Reported by DSK
10064 <dsk@student.unsw.edu.au>.
10065
10066 2002-01-11 Michael Snyder <msnyder@redhat.com>
10067
10068 * symfile.c (build_section_addr_info_from_section_tab):
10069 Use bfd access method instead of manipulating bfd directly.
10070 (syms_from_objfile): Ditto.
10071 (simple_overlay_update_1): Ditto.
10072 (simple_overlay_update): Ditto.
10073 (generic_load): Ditto.
10074 (overlay_unmapped_address): FIXME comment, bfd access methods.
10075 (sections_overlap): FIXME comment, bfd access methods.
10076 (pc_in_mapped_range): FIXME comment, bfd access methods.
10077 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10078 (section_is_mapped): FIXME comment, bfd access methods.
10079 (section_is_overlay): FIXME comment, bfd access methods.
10080
10081 * symfile.c (generic_load): Whitespace and long line cleanups.
10082 Remove duplicate variable, change several local variables to
10083 more appropriate data types.
10084 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10085
10086 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10087
10088 From Peter Schauer:
10089 * language.c (longest_local_hex_string_custom): Use phex_nz to
10090 convert NUM to a hex string.
10091
10092 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10093
10094 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10095 the function.
10096 Update Copyright year.
10097
10098 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10099
10100 * language.c (longest_raw_hex_string): Delete unused function.
10101
10102 2002-01-11 Petr Sorfa <petrs@caldera.com>
10103
10104 * MAINTAINERS (write-after-approval): Add myself.
10105 * dwarf2read.c (read_tag_string_type): Handling of
10106 DW_AT_byte_size.
10107 (read_tag_string_type): FORTRAN fix to prevent propagation of
10108 first string size.
10109 (set_cu_language): Handling of DW_LANG_Fortran95
10110
10111 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10112
10113 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10114 GETPID(inferior_ptid).
10115 (store_inferior_registers): Likewise.
10116
10117 2002-01-10 Jason Merrill <jason@redhat.com>
10118
10119 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10120 Fix DW_OP_minus.
10121
10122 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10123
10124 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10125 and bfd/elf32-sh-nbsd.c.
10126
10127 2002-01-10 Michael Snyder <msnyder@redhat.com>
10128
10129 * NEWS: Mention --pid and corefile/proc-id behavior change.
10130
10131 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10132 * gcore.c: Include cli/cli-decode.h instead of command.h.
10133
10134 * main.c (captured_main): Add new command line option "--pid".
10135 If the second command line argument (following the symbol-file)
10136 begins with a digit, try to attach to it before trying to open
10137 it as a corefile.
10138 (print_gdb_help): Document the "--pid" argument.
10139
10140 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10141
10142 * completer.c (command_completer): New function.
10143
10144 * completer.h <command_completer>: Add prototype.
10145
10146 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10147 completer for the "help" command.
10148
10149 2002-01-09 Jason Merrill <jason@redhat.com>
10150
10151 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10152
10153 2002-01-09 Michael Snyder <msnyder@redhat.com>
10154
10155 * i386-linux-nat.c (fill_fpxregset): Make global.
10156 (store_fpxregset): Ditto.
10157
10158 * gregset.h (gdb_fpxregset_t): Define.
10159 (supply_fpxregset): Prototype.
10160 (fill_fpxregset): Prototype.
10161
10162 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10163
10164 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10165
10166 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10167 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10168 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10169
10170 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10171
10172 * MAINTAINERS: Update target maintainer rules so that any
10173 Maintainer can approve a tested patch for a maintenance-only
10174 target.
10175
10176 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10177
10178 * MAINTAINERS (write-after-approval): Add myself.
10179
10180 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10181 IN_SIGTRAMP.
10182
10183 2002-01-08 Michael Snyder <msnyder@redhat.com>
10184
10185 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10186 real name of the executable, rather than the /proc name.
10187
10188 2002-01-03 Michael Snyder <msnyder@redhat.com>
10189
10190 Implement a "generate-core-file" command in gdb, save target state.
10191 * gcore.c: New file. Implement new command 'generate-core-file'.
10192 Save a corefile image of the current state of the inferior.
10193 * linux-proc.c: Add linux-specific code for saving corefiles.
10194 * target.h (struct target_ops): Add new target vectors for saving
10195 corefiles; to_find_memory_regions and to_make_corefile_notes.
10196 (target_find_memory_regions): New macro.
10197 (target_make_corefile_notes): New macro.
10198 * target.c (update_current_target): Inherit new target methods.
10199 (dummy_find_memory_regions): New place-holder method.
10200 (dummy_make_corefile_notes): New place-holder method.
10201 (init_dummy_target): Initialize new dummy target vectors.
10202 * exec.c (exec_set_find_memory_regions): New function.
10203 Allow the exec_ops vector for memory regions to be taken over.
10204 (exec_make_note_section): New function, target vector method.
10205 * defs.h (exec_set_find_memory_regions): Export prototype.
10206 * procfs.c (proc_find_memory_regions): New function, corefile method.
10207 (procfs_make_note_section): New function, corefile method.
10208 (init_procfs_ops): Set new target vector pointers.
10209 (find_memory_regions_callback): New function.
10210 (procfs_do_thread_registers): New function.
10211 (procfs_corefile_thread_callback): New function.
10212 * sol-thread.c (sol_find_memory_regions): New function.
10213 (sol_make_note_section): New function.
10214 (init_sol_thread_ops): Initialize new target vectors.
10215 * inftarg.c (inftarg_set_find_memory_regions): New function.
10216 Allow to_find_memory_regions vector to be taken over.
10217 (inftarg_set_make_corefile_notes): New function.
10218 Allow to_make_corefile_notes vector to be taken over.
10219 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10220 interface layer if not target_has_execution (may be a corefile).
10221 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10222 * config/sparc/sun4sol2.mh: Ditto.
10223 * config/alpha/alpha-linux.mh: Ditto.
10224 * config/arm/linux.mh: Ditto.
10225 * config/i386/x86-64linux.mh: Ditto.
10226 * config/ia64/linux.mh: Ditto.
10227 * config/m68k/linux.mh: Ditto.
10228 * config/mips/linux.mh: Ditto.
10229 * config/powerpc/linux.mh: Ditto.
10230 * config/sparc/linux.mh: Ditto.
10231
10232 2002-01-07 Michael Snyder <msnyder@redhat.com>
10233
10234 * arm-linux-nat.c: Remove references to regcache.c internal data
10235 (registers[] and register_valid[]).
10236
10237 2002-01-07 Michael Snyder <msnyder@redhat.com>
10238
10239 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10240 so that attaching to a pid will automatically read the process's
10241 symbol file and shlibs.
10242 * Makefile.in: Add rule for linux-proc.o.
10243 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10244 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10245 * config/arm/linux.mh: Ditto.
10246 * config/i386/linux.mh: Ditto.
10247 * config/i386/x86-64linux.mh: Ditto.
10248 * config/ia64/linux.mh: Ditto.
10249 * config/m68k/linux.mh: Ditto.
10250 * config/mips/linux.mh: Ditto.
10251 * config/powerpc/linux.mh: Ditto.
10252 * config/sparc/linux.mh: Ditto.
10253
10254 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10255
10256 * win32-nat.c: Add i386-tdep.h dependency.
10257
10258 2002-01-07 Michael Snyder <msnyder@redhat.com>
10259
10260 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10261 instead of bfd_get_arch_size. Don't bail out just because
10262 there's no exec_bfd.
10263
10264 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10265 * p-valprint.c (pascal_object_print_value): Ditto.
10266 * somread.c (som_symtab_read): Ditto.
10267 * symfile.c (simple_free_overlay_region_table): Ditto.
10268 * valops.c (value_assign): Ditto.
10269
10270 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10271 use tilde_expand and strerror for opening save-tracepoints file.
10272
10273 * thread-db.c (thread_db_new_objfile): Indendation fix.
10274
10275 * infptrace.c (GDB_MAX_ALLOCA): New define.
10276 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10277 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10278 can be overridden with whatever value is appropriate to the host).
10279 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10280 alloca to allocate potentially large buffer.
10281 * rs6000-nat.c (child_xfer_memory): Ditto.
10282 * symm-nat.c (child_xfer_memory): Ditto.
10283 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10284
10285 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10286
10287 From Nick Clifton <nickc@redhat.com>
10288 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10289
10290 2002-01-07 Michael Snyder <msnyder@redhat.com>
10291
10292 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10293 Don't use exec_bfd if it's NULL.
10294
10295 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10296
10297 * valops.c (value_arg_coerce): Fix formatting.
10298
10299 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10300
10301 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10302 * gnu-nat.c: Ditto.
10303
10304 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10305
10306 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10307 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10308 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10309 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10310 z8k-coff have not been multi-arched. Update z8k-coff build
10311 status.
10312
10313 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10314
10315 * MAINTAINERS: Mark a29k target as obsolete.
10316 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10317 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10318 comments.
10319 * NEWS: Note that a29k targets are obsolete.
10320 * a29k-tdep.c: Mark as obsolete.
10321 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10322 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10323 a29k-*-vxworks* targets as obsolete.
10324 * remote-adapt.c: Obsolete.
10325 * remote-eb.c: Obsolete.
10326 * remote-mm.c: Obsolete.
10327 * remote-udi.c: Obsolete.
10328 * config/a29k/a29k-udi.mt: Obsolete.
10329 * config/a29k/a29k.mt: Obsolete.
10330 * config/a29k/tm-a29k.h: Obsolete.
10331 * config/a29k/tm-vx29k.h: Obsolete.
10332 * config/a29k/vx29k.mt: Obsolete.
10333
10334 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10335
10336 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10337 with BFD_ENDIAN_BIG.
10338
10339 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10340
10341 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10342 * configure, config.in: Re-generate.
10343 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10344 * defs.h: Do not include <endian.h>.
10345
10346 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10347
10348 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10349 * config.in: Regenerate.
10350 * configure.in: Update copyright years.
10351 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10352 * configure: Regenerate.
10353 * i386bsd-nat.c: Update copyright years.
10354 (fill_gregset): Use regcache_collect.
10355 (fetch_inferior_registers): Only fetch integer registers
10356 if requested to do so. Add support for XMM registers
10357 using PT_GETXMMREGS.
10358 (store_inferior_registers): Only store integer registers
10359 if requested to do so. Add support for XMM registers
10360 using PT_SETXMMREGS.
10361 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10362 (store_inferior_registers): Remove.
10363 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10364 (fetch_elfcore_registers): New function.
10365 (i386nbsd_elfcore_fns): New.
10366 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10367 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10368 i386bsd-nat.o.
10369 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10370 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10371 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10372 * config/i386/tm-nbsd.h: Update copyright years.
10373 (HAVE_SSE_REGS): Define.
10374 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10375 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10376 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10377 (SIGCONTEXT_PC_OFFSET): Remove.
10378 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10379
10380 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10381
10382 * configure.tgt: Remove powerpc-*-macos* target.
10383 * config/m68k/xm-mpw.h: Delete file.
10384 * config/xm-mpw.h: Delete file.
10385 * ser-mac.c: Delete file.
10386 * mpw-make.sed: Delete file.
10387 * mpw-config.in: Delete file.
10388 * mac-xdep.c: Delete file.
10389 * mac-gdb.r: Delete file.
10390 * mac-defs.h: Delete file.
10391 * mac-nat.c: Delete file.
10392 * config/powerpc/macos.mh: Delete file.
10393 * config/powerpc/macos.mt: Delete file.
10394 * config/powerpc/nm-macos.h: Delete file.
10395 * config/powerpc/tm-macos.h: Delete file.
10396 * source.c (openp, open_source_file): Remove obsolete code.
10397 * top.c (gdb_readline): Ditto.
10398 * utils.c (query): Ditto.
10399 * event-top.c (display_gdb_prompt): Ditto.
10400 * Makefile.in (ser-mac.o): Delete obsolete target.
10401 * NEWS: Update.
10402
10403 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10404
10405 * defs.h (BIG_ENDIAN): Delete macro definition.
10406 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10407 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10408 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10409 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10410 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10411 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10412 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10413 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10414 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10415 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10416 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10417 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10418 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10419 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10420 * gdbarch.c: Re-generate.
10421
10422 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10425 for core files.
10426
10427 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10428
10429 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10430
10431 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10432
10433 * value.h (value_ptr): Delete typedef.
10434
10435 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10436
10437 * i386nbsd-nat.c: Update copyright years.
10438 Include i386-tdep.h.
10439
10440 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10441
10442 * stabsread.c: Update copyright years.
10443
10444 From Debashis Mahata <debashis.mahata@wipro.com>:
10445 (read_struct_fields): Deal with Sun C compiler erroneous stab
10446 output for structs and unions.
10447 Fix PR gdb/269.
10448
10449 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10452 prototype.
10453
10454 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * cp-abi.c: Fix whitespace.
10457 (baseclass_offset): New wrapper function.
10458 * cp-abi.h (baseclass_offset): Add prototype.
10459 (struct cp_abi_ops): Add baseclass_offset pointer.
10460
10461 * valops.c (vb_match): Move to...
10462 * gnu-v2-abi.c (vb_match): here.
10463 * valops.c (baseclass_offset): Move to...
10464 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10465
10466 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10467
10468 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10469 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10470 * hpacc-abi.c (init_hpacc_ops): Likewise.
10471
10472 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10473
10474 * valops.c (find_overload_match): Accept obj as a
10475 reference parameter. Update it before returning.
10476 * value.h (find_overload_match): Update prototype.
10477 * eval.c (evaluate_subexp_standard): Pass object to
10478 find_overload_match by reference.
10479
10480 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10481
10482 * valarith.c: Replace value_ptr with struct value pointer. Remove
10483 register attribute from value declarations.
10484 * valops.c: Ditto.
10485 * value.h: Ditto.
10486 * scm-lang.c (scm_lookup_name): Ditto.
10487
10488 2002-01-03 Michael Snyder <msnyder@redhat.com>
10489
10490 Abstract the functionality of iterating over mapped memory
10491 regions into a general purpose iterator function.
10492 * procfs.c (iterate_over_mappings): New function, general purpose
10493 iterator for memory sections.
10494 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10495 (solib_mappings_callback): New function, callback for above.
10496 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10497 (info_mappings_callback): New function, callback for above.
10498
10499 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10500
10501 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10502
10503 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10504 * i386-tdep.c: Include "elf-bfd.h".
10505 (process_note_abi_tag_sections): New function.
10506 (i386_gdbarch_init): Add code to recognize various OS/ABI
10507 combinations.
10508
10509 * maint.c (_initialize_maint_cmds): Add missing \ in
10510 string-literal.
10511
10512 For older changes see ChangeLog-2001
10513 \f
10514 Local Variables:
10515 mode: change-log
10516 left-margin: 8
10517 fill-column: 74
10518 version-control: never
10519 End: